]>
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 | |
d14a1e28 RD |
12 | |
13 | #ifdef __cplusplus | |
14 | template<class T> class SwigValueWrapper { | |
15 | T *tt; | |
16 | public: | |
17 | SwigValueWrapper() : tt(0) { } | |
18 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
19 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
20 | ~SwigValueWrapper() { delete tt; } | |
21 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
22 | operator T&() const { return *tt; } | |
23 | T *operator&() { return tt; } | |
24 | private: | |
25 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 26 | }; |
d14a1e28 RD |
27 | #endif |
28 | ||
32fe5131 RD |
29 | /*********************************************************************** |
30 | * | |
31 | * This section contains generic SWIG labels for method/variable | |
32 | * declarations/attributes, and other compiler dependent labels. | |
33 | * | |
34 | ************************************************************************/ | |
d14a1e28 | 35 | |
32fe5131 RD |
36 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
37 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
38 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
093d3ff1 | 40 | # else |
32fe5131 | 41 | # define SWIGTEMPLATEDISAMBIGUATOR |
093d3ff1 RD |
42 | # endif |
43 | #endif | |
d14a1e28 | 44 | |
32fe5131 RD |
45 | /* inline attribute */ |
46 | #ifndef SWIGINLINE | |
47 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
48 | # define SWIGINLINE inline | |
49 | # else | |
50 | # define SWIGINLINE | |
51 | # endif | |
52 | #endif | |
53 | ||
54 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
55 | #ifndef SWIGUNUSED | |
56 | # if defined(__GNUC__) || defined(__ICC) | |
57 | # define SWIGUNUSED __attribute__ ((unused)) | |
58 | # else | |
59 | # define SWIGUNUSED | |
60 | # endif | |
61 | #endif | |
62 | ||
63 | /* internal SWIG method */ | |
64 | #ifndef SWIGINTERN | |
65 | # define SWIGINTERN static SWIGUNUSED | |
66 | #endif | |
67 | ||
68 | /* internal inline SWIG method */ | |
69 | #ifndef SWIGINTERNINLINE | |
70 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
71 | #endif | |
72 | ||
73 | /* exporting methods for Windows DLLs */ | |
74 | #ifndef SWIGEXPORT | |
75 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
76 | # if defined(STATIC_LINKED) | |
77 | # define SWIGEXPORT | |
78 | # else | |
79 | # define SWIGEXPORT __declspec(dllexport) | |
80 | # endif | |
81 | # else | |
82 | # define SWIGEXPORT | |
83 | # endif | |
84 | #endif | |
85 | ||
86 | /* calling conventions for Windows */ | |
87 | #ifndef SWIGSTDCALL | |
88 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
89 | # define SWIGSTDCALL __stdcall | |
90 | # else | |
91 | # define SWIGSTDCALL | |
92 | # endif | |
93 | #endif | |
94 | ||
95 | ||
c9c7117a | 96 | |
093d3ff1 | 97 | #include <Python.h> |
d14a1e28 RD |
98 | |
99 | /*********************************************************************** | |
093d3ff1 | 100 | * swigrun.swg |
d14a1e28 | 101 | * |
093d3ff1 RD |
102 | * This file contains generic CAPI SWIG runtime support for pointer |
103 | * type checking. | |
d14a1e28 RD |
104 | * |
105 | ************************************************************************/ | |
106 | ||
093d3ff1 RD |
107 | /* This should only be incremented when either the layout of swig_type_info changes, |
108 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 109 | #define SWIG_RUNTIME_VERSION "2" |
d14a1e28 | 110 | |
093d3ff1 RD |
111 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
112 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
113 | # define SWIG_QUOTE_STRING(x) #x |
114 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
115 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d14a1e28 | 116 | #else |
32fe5131 | 117 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
118 | #endif |
119 | ||
120 | /* | |
121 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
122 | creating a static or dynamic library from the swig runtime code. | |
123 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
124 | ||
125 | But only do this if is strictly necessary, ie, if you have problems | |
126 | with your compiler or so. | |
127 | */ | |
32fe5131 | 128 | |
093d3ff1 | 129 | #ifndef SWIGRUNTIME |
32fe5131 | 130 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 131 | #endif |
32fe5131 | 132 | |
093d3ff1 | 133 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 134 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d14a1e28 RD |
135 | #endif |
136 | ||
32fe5131 RD |
137 | #include <string.h> |
138 | ||
d14a1e28 RD |
139 | #ifdef __cplusplus |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | typedef void *(*swig_converter_func)(void *); | |
144 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
145 | ||
32fe5131 | 146 | /* Structure to store inforomation on one type */ |
d14a1e28 | 147 | typedef struct swig_type_info { |
32fe5131 RD |
148 | const char *name; /* mangled name of this type */ |
149 | const char *str; /* human readable name of this type */ | |
150 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
151 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
152 | void *clientdata; /* language specific type data */ | |
d14a1e28 RD |
153 | } swig_type_info; |
154 | ||
32fe5131 RD |
155 | /* Structure to store a type and conversion function used for casting */ |
156 | typedef struct swig_cast_info { | |
157 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
158 | swig_converter_func converter; /* function to cast the void pointers */ | |
159 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
160 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
161 | } swig_cast_info; | |
162 | ||
163 | /* Structure used to store module information | |
164 | * Each module generates one structure like this, and the runtime collects | |
165 | * all of these structures and stores them in a circularly linked list.*/ | |
166 | typedef struct swig_module_info { | |
167 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
168 | size_t size; /* Number of types in this module */ | |
169 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
170 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
171 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
172 | void *clientdata; /* Language specific module data */ | |
173 | } swig_module_info; | |
174 | ||
175 | ||
093d3ff1 RD |
176 | /* |
177 | Compare two type names skipping the space characters, therefore | |
178 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
179 | ||
180 | Return 0 when the two name types are equivalent, as in | |
181 | strncmp, but skipping ' '. | |
182 | */ | |
183 | SWIGRUNTIME int | |
184 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
185 | const char *f2, const char *l2) { | |
186 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
187 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
188 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
32fe5131 | 189 | if (*f1 != *f2) return (int)(*f1 - *f2); |
093d3ff1 RD |
190 | } |
191 | return (l1 - f1) - (l2 - f2); | |
192 | } | |
193 | ||
194 | /* | |
195 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 196 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
197 | */ |
198 | SWIGRUNTIME int | |
199 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
200 | int equiv = 0; | |
201 | const char* te = tb + strlen(tb); | |
202 | const char* ne = nb; | |
203 | while (!equiv && *ne) { | |
204 | for (nb = ne; *ne; ++ne) { | |
205 | if (*ne == '|') break; | |
206 | } | |
32fe5131 | 207 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
208 | if (*ne) ++ne; |
209 | } | |
210 | return equiv; | |
211 | } | |
212 | ||
213 | /* | |
32fe5131 RD |
214 | Check type equivalence in a name list like <name1>|<name2>|... |
215 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 216 | */ |
32fe5131 RD |
217 | SWIGRUNTIME int |
218 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
219 | int equiv = 0; | |
220 | const char* te = tb + strlen(tb); | |
221 | const char* ne = nb; | |
222 | while (!equiv && *ne) { | |
223 | for (nb = ne; *ne; ++ne) { | |
224 | if (*ne == '|') break; | |
093d3ff1 | 225 | } |
32fe5131 RD |
226 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
227 | if (*ne) ++ne; | |
093d3ff1 | 228 | } |
32fe5131 | 229 | return equiv; |
093d3ff1 RD |
230 | } |
231 | ||
32fe5131 RD |
232 | |
233 | /* think of this as a c++ template<> or a scheme macro */ | |
234 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
235 | if (ty) { \ | |
236 | swig_cast_info *iter = ty->cast; \ | |
237 | while (iter) { \ | |
238 | if (comparison) { \ | |
239 | if (iter == ty->cast) return iter; \ | |
240 | /* Move iter to the top of the linked list */ \ | |
241 | iter->prev->next = iter->next; \ | |
242 | if (iter->next) \ | |
243 | iter->next->prev = iter->prev; \ | |
244 | iter->next = ty->cast; \ | |
245 | iter->prev = 0; \ | |
246 | if (ty->cast) ty->cast->prev = iter; \ | |
247 | ty->cast = iter; \ | |
248 | return iter; \ | |
249 | } \ | |
250 | iter = iter->next; \ | |
251 | } \ | |
252 | } \ | |
253 | return 0 | |
254 | ||
093d3ff1 RD |
255 | /* |
256 | Check the typename | |
257 | */ | |
32fe5131 | 258 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 259 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
260 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
261 | } | |
262 | ||
263 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
264 | SWIGRUNTIME swig_cast_info * | |
265 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
266 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
267 | } |
268 | ||
269 | /* | |
270 | Cast a pointer up an inheritance hierarchy | |
271 | */ | |
272 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 273 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
274 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
275 | } | |
276 | ||
277 | /* | |
278 | Dynamic pointer casting. Down an inheritance hierarchy | |
279 | */ | |
280 | SWIGRUNTIME swig_type_info * | |
281 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
282 | swig_type_info *lastty = ty; | |
283 | if (!ty || !ty->dcast) return ty; | |
284 | while (ty && (ty->dcast)) { | |
285 | ty = (*ty->dcast)(ptr); | |
286 | if (ty) lastty = ty; | |
287 | } | |
288 | return lastty; | |
289 | } | |
290 | ||
291 | /* | |
292 | Return the name associated with this type | |
293 | */ | |
294 | SWIGRUNTIMEINLINE const char * | |
295 | SWIG_TypeName(const swig_type_info *ty) { | |
296 | return ty->name; | |
297 | } | |
298 | ||
299 | /* | |
300 | Return the pretty name associated with this type, | |
301 | that is an unmangled type name in a form presentable to the user. | |
302 | */ | |
303 | SWIGRUNTIME const char * | |
304 | SWIG_TypePrettyName(const swig_type_info *type) { | |
305 | /* The "str" field contains the equivalent pretty names of the | |
306 | type, separated by vertical-bar characters. We choose | |
307 | to print the last name, as it is often (?) the most | |
308 | specific. */ | |
309 | if (type->str != NULL) { | |
310 | const char *last_name = type->str; | |
311 | const char *s; | |
312 | for (s = type->str; *s; s++) | |
313 | if (*s == '|') last_name = s+1; | |
314 | return last_name; | |
315 | } | |
316 | else | |
317 | return type->name; | |
318 | } | |
319 | ||
093d3ff1 RD |
320 | /* |
321 | Set the clientdata field for a type | |
322 | */ | |
323 | SWIGRUNTIME void | |
32fe5131 RD |
324 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
325 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
326 | /* if (ti->clientdata == clientdata) return; */ |
327 | ti->clientdata = clientdata; | |
32fe5131 RD |
328 | |
329 | while (cast) { | |
330 | if (!cast->converter) { | |
331 | swig_type_info *tc = cast->type; | |
332 | if (!tc->clientdata) { | |
333 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 334 | } |
32fe5131 RD |
335 | } |
336 | cast = cast->next; | |
337 | } | |
338 | } | |
339 | ||
340 | /* | |
341 | Search for a swig_type_info structure only by mangled name | |
342 | Search is a O(log #types) | |
343 | ||
344 | We start searching at module start, and finish searching when start == end. | |
345 | Note: if start == end at the beginning of the function, we go all the way around | |
346 | the circular list. | |
347 | */ | |
348 | SWIGRUNTIME swig_type_info * | |
349 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
350 | swig_module_info *end, | |
351 | const char *name) { | |
352 | swig_module_info *iter = start; | |
353 | do { | |
354 | if (iter->size) { | |
355 | register size_t l = 0; | |
356 | register size_t r = iter->size - 1; | |
357 | do { | |
358 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
359 | register size_t i = (l + r) >> 1; | |
360 | const char *iname = iter->types[i]->name; | |
361 | if (iname) { | |
362 | register int compare = strcmp(name, iname); | |
363 | if (compare == 0) { | |
364 | return iter->types[i]; | |
365 | } else if (compare < 0) { | |
366 | if (i) { | |
367 | r = i - 1; | |
368 | } else { | |
369 | break; | |
370 | } | |
371 | } else if (compare > 0) { | |
372 | l = i + 1; | |
373 | } | |
374 | } else { | |
375 | break; /* should never happen */ | |
376 | } | |
377 | } while (l <= r); | |
093d3ff1 | 378 | } |
32fe5131 RD |
379 | iter = iter->next; |
380 | } while (iter != end); | |
381 | return 0; | |
382 | } | |
383 | ||
384 | /* | |
385 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
386 | It first searches the mangled names of the types, which is a O(log #types) | |
387 | If a type is not found it then searches the human readable names, which is O(#types). | |
388 | ||
389 | We start searching at module start, and finish searching when start == end. | |
390 | Note: if start == end at the beginning of the function, we go all the way around | |
391 | the circular list. | |
392 | */ | |
393 | SWIGRUNTIME swig_type_info * | |
394 | SWIG_TypeQueryModule(swig_module_info *start, | |
395 | swig_module_info *end, | |
396 | const char *name) { | |
397 | /* STEP 1: Search the name field using binary search */ | |
398 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
399 | if (ret) { | |
400 | return ret; | |
401 | } else { | |
402 | /* STEP 2: If the type hasn't been found, do a complete search | |
403 | of the str field (the human readable name) */ | |
404 | swig_module_info *iter = start; | |
405 | do { | |
406 | register size_t i = 0; | |
407 | for (; i < iter->size; ++i) { | |
408 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
409 | return iter->types[i]; | |
410 | } | |
411 | iter = iter->next; | |
412 | } while (iter != end); | |
093d3ff1 | 413 | } |
32fe5131 RD |
414 | |
415 | /* neither found a match */ | |
416 | return 0; | |
093d3ff1 RD |
417 | } |
418 | ||
32fe5131 | 419 | |
093d3ff1 RD |
420 | /* |
421 | Pack binary data into a string | |
422 | */ | |
423 | SWIGRUNTIME char * | |
424 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
425 | static const char hex[17] = "0123456789abcdef"; |
426 | register const unsigned char *u = (unsigned char *) ptr; | |
427 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 428 | for (; u != eu; ++u) { |
32fe5131 | 429 | register unsigned char uu = *u; |
093d3ff1 RD |
430 | *(c++) = hex[(uu & 0xf0) >> 4]; |
431 | *(c++) = hex[uu & 0xf]; | |
432 | } | |
433 | return c; | |
434 | } | |
435 | ||
436 | /* | |
437 | Unpack binary data from a string | |
438 | */ | |
439 | SWIGRUNTIME const char * | |
440 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
441 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 442 | register const unsigned char *eu = u + sz; |
093d3ff1 | 443 | for (; u != eu; ++u) { |
32fe5131 | 444 | register char d = *(c++); |
093d3ff1 RD |
445 | register unsigned char uu = 0; |
446 | if ((d >= '0') && (d <= '9')) | |
447 | uu = ((d - '0') << 4); | |
448 | else if ((d >= 'a') && (d <= 'f')) | |
449 | uu = ((d - ('a'-10)) << 4); | |
450 | else | |
451 | return (char *) 0; | |
452 | d = *(c++); | |
453 | if ((d >= '0') && (d <= '9')) | |
454 | uu |= (d - '0'); | |
455 | else if ((d >= 'a') && (d <= 'f')) | |
456 | uu |= (d - ('a'-10)); | |
457 | else | |
458 | return (char *) 0; | |
459 | *u = uu; | |
460 | } | |
461 | return c; | |
462 | } | |
463 | ||
093d3ff1 RD |
464 | /* |
465 | Pack 'void *' into a string buffer. | |
466 | */ | |
467 | SWIGRUNTIME char * | |
468 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
469 | char *r = buff; | |
470 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
471 | *(r++) = '_'; | |
472 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
473 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
474 | strcpy(r,name); | |
475 | return buff; | |
476 | } | |
477 | ||
478 | SWIGRUNTIME const char * | |
479 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
480 | if (*c != '_') { | |
481 | if (strcmp(c,"NULL") == 0) { | |
482 | *ptr = (void *) 0; | |
483 | return name; | |
484 | } else { | |
485 | return 0; | |
486 | } | |
487 | } | |
488 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
489 | } | |
490 | ||
491 | SWIGRUNTIME char * | |
492 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
493 | char *r = buff; | |
494 | size_t lname = (name ? strlen(name) : 0); | |
495 | if ((2*sz + 2 + lname) > bsz) return 0; | |
496 | *(r++) = '_'; | |
497 | r = SWIG_PackData(r,ptr,sz); | |
498 | if (lname) { | |
499 | strncpy(r,name,lname+1); | |
500 | } else { | |
501 | *r = 0; | |
502 | } | |
503 | return buff; | |
504 | } | |
d14a1e28 | 505 | |
093d3ff1 RD |
506 | SWIGRUNTIME const char * |
507 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
508 | if (*c != '_') { | |
509 | if (strcmp(c,"NULL") == 0) { | |
510 | memset(ptr,0,sz); | |
511 | return name; | |
512 | } else { | |
513 | return 0; | |
514 | } | |
515 | } | |
516 | return SWIG_UnpackData(++c,ptr,sz); | |
517 | } | |
d14a1e28 RD |
518 | |
519 | #ifdef __cplusplus | |
520 | } | |
521 | #endif | |
522 | ||
093d3ff1 RD |
523 | /* ----------------------------------------------------------------------------- |
524 | * SWIG API. Portion that goes into the runtime | |
525 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 526 | |
093d3ff1 RD |
527 | #ifdef __cplusplus |
528 | extern "C" { | |
529 | #endif | |
c32bde28 | 530 | |
093d3ff1 RD |
531 | /* ----------------------------------------------------------------------------- |
532 | * for internal method declarations | |
533 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 534 | |
093d3ff1 | 535 | #ifndef SWIGINTERN |
32fe5131 | 536 | # define SWIGINTERN static SWIGUNUSED |
093d3ff1 | 537 | #endif |
d14a1e28 | 538 | |
32fe5131 RD |
539 | #ifndef SWIGINTERNINLINE |
540 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
093d3ff1 | 541 | #endif |
d14a1e28 | 542 | |
093d3ff1 RD |
543 | /* |
544 | Exception handling in wrappers | |
545 | */ | |
546 | #define SWIG_fail goto fail | |
547 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
548 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
549 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
550 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
551 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
552 | ||
553 | /* | |
554 | Contract support | |
555 | */ | |
556 | #define SWIG_contract_assert(expr, msg) \ | |
557 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
558 | ||
559 | /* ----------------------------------------------------------------------------- | |
560 | * Constant declarations | |
561 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 562 | |
093d3ff1 RD |
563 | /* Constant Types */ |
564 | #define SWIG_PY_INT 1 | |
565 | #define SWIG_PY_FLOAT 2 | |
566 | #define SWIG_PY_STRING 3 | |
567 | #define SWIG_PY_POINTER 4 | |
568 | #define SWIG_PY_BINARY 5 | |
569 | ||
570 | /* Constant information structure */ | |
571 | typedef struct swig_const_info { | |
572 | int type; | |
573 | char *name; | |
574 | long lvalue; | |
575 | double dvalue; | |
576 | void *pvalue; | |
577 | swig_type_info **ptype; | |
578 | } swig_const_info; | |
d14a1e28 | 579 | |
c32bde28 | 580 | |
093d3ff1 RD |
581 | /* ----------------------------------------------------------------------------- |
582 | * Alloc. memory flags | |
583 | * ----------------------------------------------------------------------------- */ | |
c32bde28 RD |
584 | #define SWIG_OLDOBJ 1 |
585 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
586 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
994141e6 | 587 | |
994141e6 | 588 | #ifdef __cplusplus |
093d3ff1 RD |
589 | } |
590 | #endif | |
994141e6 | 591 | |
15afbcd0 | 592 | |
093d3ff1 RD |
593 | /*********************************************************************** |
594 | * pyrun.swg | |
595 | * | |
596 | * This file contains the runtime support for Python modules | |
597 | * and includes code for managing global variables and pointer | |
598 | * type checking. | |
599 | * | |
600 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
601 | ************************************************************************/ | |
15afbcd0 | 602 | |
093d3ff1 RD |
603 | /* Common SWIG API */ |
604 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
605 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
606 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
607 | ||
994141e6 | 608 | |
093d3ff1 RD |
609 | /* Python-specific SWIG API */ |
610 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
611 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
994141e6 | 612 | |
32fe5131 RD |
613 | /* Runtime API */ |
614 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
615 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
994141e6 | 616 | |
093d3ff1 RD |
617 | /* ----------------------------------------------------------------------------- |
618 | * Pointer declarations | |
619 | * ----------------------------------------------------------------------------- */ | |
620 | /* | |
621 | Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent | |
622 | C/C++ pointers in the python side. Very useful for debugging, but | |
623 | not always safe. | |
624 | */ | |
625 | #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) | |
626 | # define SWIG_COBJECT_TYPES | |
627 | #endif | |
994141e6 | 628 | |
093d3ff1 RD |
629 | /* Flags for pointer conversion */ |
630 | #define SWIG_POINTER_EXCEPTION 0x1 | |
631 | #define SWIG_POINTER_DISOWN 0x2 | |
d14a1e28 | 632 | |
4d5c3d91 | 633 | |
32fe5131 RD |
634 | /* Add PyOS_snprintf for old Pythons */ |
635 | #if PY_VERSION_HEX < 0x02020000 | |
636 | #define PyOS_snprintf snprintf | |
637 | #endif | |
638 | ||
093d3ff1 RD |
639 | #ifdef __cplusplus |
640 | extern "C" { | |
641 | #endif | |
4d5c3d91 | 642 | |
093d3ff1 RD |
643 | /* ----------------------------------------------------------------------------- |
644 | * Create a new pointer string | |
645 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 RD |
646 | #ifndef SWIG_BUFFER_SIZE |
647 | #define SWIG_BUFFER_SIZE 1024 | |
648 | #endif | |
15afbcd0 | 649 | |
32fe5131 RD |
650 | /* A crude PyString_FromFormat implementation for old Pythons */ |
651 | #if PY_VERSION_HEX < 0x02020000 | |
652 | static PyObject * | |
653 | PyString_FromFormat(const char *fmt, ...) { | |
654 | va_list ap; | |
655 | char buf[SWIG_BUFFER_SIZE * 2]; | |
656 | int res; | |
657 | va_start(ap, fmt); | |
658 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
659 | va_end(ap); | |
660 | return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf); | |
661 | } | |
662 | #endif | |
663 | ||
664 | #if PY_VERSION_HEX < 0x01060000 | |
665 | #define PyObject_Del(op) PyMem_DEL((op)) | |
666 | #endif | |
667 | ||
093d3ff1 RD |
668 | #if defined(SWIG_COBJECT_TYPES) |
669 | #if !defined(SWIG_COBJECT_PYTHON) | |
670 | /* ----------------------------------------------------------------------------- | |
671 | * Implements a simple Swig Object type, and use it instead of PyCObject | |
672 | * ----------------------------------------------------------------------------- */ | |
15afbcd0 | 673 | |
093d3ff1 RD |
674 | typedef struct { |
675 | PyObject_HEAD | |
676 | void *ptr; | |
677 | const char *desc; | |
678 | } PySwigObject; | |
679 | ||
680 | /* Declarations for objects of type PySwigObject */ | |
681 | ||
682 | SWIGRUNTIME int | |
683 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
15afbcd0 | 684 | { |
093d3ff1 | 685 | char result[SWIG_BUFFER_SIZE]; |
32fe5131 | 686 | flags = flags; |
093d3ff1 RD |
687 | if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) { |
688 | fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp); | |
689 | return 0; | |
690 | } else { | |
691 | return 1; | |
15afbcd0 | 692 | } |
093d3ff1 RD |
693 | } |
694 | ||
695 | SWIGRUNTIME PyObject * | |
696 | PySwigObject_repr(PySwigObject *v) | |
697 | { | |
698 | char result[SWIG_BUFFER_SIZE]; | |
699 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
700 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
15afbcd0 RD |
701 | } |
702 | ||
093d3ff1 RD |
703 | SWIGRUNTIME PyObject * |
704 | PySwigObject_str(PySwigObject *v) | |
705 | { | |
706 | char result[SWIG_BUFFER_SIZE]; | |
707 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
708 | PyString_FromString(result) : 0; | |
709 | } | |
15afbcd0 | 710 | |
093d3ff1 RD |
711 | SWIGRUNTIME PyObject * |
712 | PySwigObject_long(PySwigObject *v) | |
15afbcd0 | 713 | { |
32fe5131 RD |
714 | return PyLong_FromVoidPtr(v->ptr); |
715 | } | |
716 | ||
717 | SWIGRUNTIME PyObject * | |
718 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
719 | { | |
720 | PyObject *res = NULL; | |
721 | PyObject *args = PyTuple_New(1); | |
722 | if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) { | |
723 | PyObject *ofmt = PyString_FromString(fmt); | |
724 | if (ofmt) { | |
725 | res = PyString_Format(ofmt,args); | |
726 | Py_DECREF(ofmt); | |
727 | } | |
728 | Py_DECREF(args); | |
729 | } | |
730 | return res; | |
093d3ff1 RD |
731 | } |
732 | ||
733 | SWIGRUNTIME PyObject * | |
734 | PySwigObject_oct(PySwigObject *v) | |
735 | { | |
32fe5131 | 736 | return PySwigObject_format("%o",v); |
15afbcd0 RD |
737 | } |
738 | ||
093d3ff1 RD |
739 | SWIGRUNTIME PyObject * |
740 | PySwigObject_hex(PySwigObject *v) | |
741 | { | |
32fe5131 | 742 | return PySwigObject_format("%x",v); |
093d3ff1 | 743 | } |
15afbcd0 | 744 | |
093d3ff1 RD |
745 | SWIGRUNTIME int |
746 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
747 | { | |
748 | int c = strcmp(v->desc, w->desc); | |
749 | if (c) { | |
32fe5131 | 750 | return (c > 0) ? 1 : -1; |
c32bde28 | 751 | } else { |
093d3ff1 RD |
752 | void *i = v->ptr; |
753 | void *j = w->ptr; | |
32fe5131 | 754 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
c32bde28 | 755 | } |
994141e6 | 756 | } |
093d3ff1 RD |
757 | |
758 | SWIGRUNTIME void | |
759 | PySwigObject_dealloc(PySwigObject *self) | |
c32bde28 | 760 | { |
32fe5131 | 761 | PyObject_Del(self); |
c32bde28 | 762 | } |
093d3ff1 RD |
763 | |
764 | SWIGRUNTIME PyTypeObject* | |
32fe5131 RD |
765 | PySwigObject_type(void) { |
766 | static char pyswigobject_type__doc__[] = | |
093d3ff1 RD |
767 | "Swig object carries a C/C++ instance pointer"; |
768 | ||
769 | static PyNumberMethods PySwigObject_as_number = { | |
770 | (binaryfunc)0, /*nb_add*/ | |
771 | (binaryfunc)0, /*nb_subtract*/ | |
772 | (binaryfunc)0, /*nb_multiply*/ | |
773 | (binaryfunc)0, /*nb_divide*/ | |
774 | (binaryfunc)0, /*nb_remainder*/ | |
775 | (binaryfunc)0, /*nb_divmod*/ | |
776 | (ternaryfunc)0,/*nb_power*/ | |
777 | (unaryfunc)0, /*nb_negative*/ | |
778 | (unaryfunc)0, /*nb_positive*/ | |
779 | (unaryfunc)0, /*nb_absolute*/ | |
780 | (inquiry)0, /*nb_nonzero*/ | |
781 | 0, /*nb_invert*/ | |
782 | 0, /*nb_lshift*/ | |
783 | 0, /*nb_rshift*/ | |
784 | 0, /*nb_and*/ | |
785 | 0, /*nb_xor*/ | |
786 | 0, /*nb_or*/ | |
787 | (coercion)0, /*nb_coerce*/ | |
788 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
789 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
790 | (unaryfunc)0, /*nb_float*/ | |
791 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
792 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 793 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 794 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
795 | #elif PY_VERSION_HEX >= 0x02000000 |
796 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
797 | #endif |
798 | }; | |
799 | ||
32fe5131 RD |
800 | static PyTypeObject pyswigobject_type |
801 | #if !defined(__cplusplus) | |
802 | ; | |
803 | static int type_init = 0; | |
093d3ff1 | 804 | if (!type_init) { |
32fe5131 RD |
805 | PyTypeObject tmp |
806 | #endif | |
807 | = { | |
093d3ff1 RD |
808 | PyObject_HEAD_INIT(&PyType_Type) |
809 | 0, /*ob_size*/ | |
32fe5131 | 810 | (char *)"PySwigObject", /*tp_name*/ |
093d3ff1 RD |
811 | sizeof(PySwigObject), /*tp_basicsize*/ |
812 | 0, /*tp_itemsize*/ | |
813 | /* methods */ | |
814 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
815 | (printfunc)PySwigObject_print, /*tp_print*/ | |
816 | (getattrfunc)0, /*tp_getattr*/ | |
817 | (setattrfunc)0, /*tp_setattr*/ | |
818 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
819 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
820 | &PySwigObject_as_number, /*tp_as_number*/ | |
821 | 0, /*tp_as_sequence*/ | |
822 | 0, /*tp_as_mapping*/ | |
823 | (hashfunc)0, /*tp_hash*/ | |
824 | (ternaryfunc)0, /*tp_call*/ | |
825 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
826 | /* Space for future expansion */ | |
32fe5131 RD |
827 | 0,0,0,0, |
828 | pyswigobject_type__doc__, /* Documentation string */ | |
093d3ff1 RD |
829 | #if PY_VERSION_HEX >= 0x02000000 |
830 | 0, /* tp_traverse */ | |
831 | 0, /* tp_clear */ | |
832 | #endif | |
833 | #if PY_VERSION_HEX >= 0x02010000 | |
834 | 0, /* tp_richcompare */ | |
835 | 0, /* tp_weaklistoffset */ | |
836 | #endif | |
837 | #if PY_VERSION_HEX >= 0x02020000 | |
838 | 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 | 839 | #endif |
093d3ff1 RD |
840 | #if PY_VERSION_HEX >= 0x02030000 |
841 | 0, /* tp_del */ | |
842 | #endif | |
843 | #ifdef COUNT_ALLOCS | |
844 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
845 | #endif | |
846 | }; | |
32fe5131 RD |
847 | #if !defined(__cplusplus) |
848 | pyswigobject_type = tmp; | |
093d3ff1 RD |
849 | type_init = 1; |
850 | } | |
32fe5131 RD |
851 | #endif |
852 | return &pyswigobject_type; | |
093d3ff1 RD |
853 | } |
854 | ||
855 | SWIGRUNTIME PyObject * | |
856 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
857 | { | |
32fe5131 RD |
858 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type()); |
859 | if (self) { | |
860 | self->ptr = ptr; | |
861 | self->desc = desc; | |
862 | } | |
093d3ff1 RD |
863 | return (PyObject *)self; |
864 | } | |
865 | ||
866 | SWIGRUNTIMEINLINE void * | |
867 | PySwigObject_AsVoidPtr(PyObject *self) | |
868 | { | |
869 | return ((PySwigObject *)self)->ptr; | |
870 | } | |
871 | ||
872 | SWIGRUNTIMEINLINE const char * | |
873 | PySwigObject_GetDesc(PyObject *self) | |
874 | { | |
875 | return ((PySwigObject *)self)->desc; | |
876 | } | |
877 | ||
878 | SWIGRUNTIMEINLINE int | |
879 | PySwigObject_Check(PyObject *op) { | |
32fe5131 | 880 | return ((op)->ob_type == PySwigObject_type()) |
093d3ff1 RD |
881 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); |
882 | } | |
883 | ||
884 | /* ----------------------------------------------------------------------------- | |
885 | * Implements a simple Swig Packed type, and use it instead of string | |
886 | * ----------------------------------------------------------------------------- */ | |
887 | ||
888 | typedef struct { | |
889 | PyObject_HEAD | |
890 | void *pack; | |
891 | const char *desc; | |
892 | size_t size; | |
893 | } PySwigPacked; | |
894 | ||
895 | SWIGRUNTIME int | |
896 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
897 | { | |
898 | char result[SWIG_BUFFER_SIZE]; | |
32fe5131 | 899 | flags = flags; |
093d3ff1 RD |
900 | fputs("<Swig Packed ", fp); |
901 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
902 | fputs("at ", fp); | |
903 | fputs(result, fp); | |
904 | } | |
905 | fputs(v->desc,fp); | |
906 | fputs(">", fp); | |
907 | return 0; | |
908 | } | |
909 | ||
910 | SWIGRUNTIME PyObject * | |
911 | PySwigPacked_repr(PySwigPacked *v) | |
912 | { | |
913 | char result[SWIG_BUFFER_SIZE]; | |
914 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
915 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
916 | } else { | |
917 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
918 | } | |
919 | } | |
920 | ||
921 | SWIGRUNTIME PyObject * | |
922 | PySwigPacked_str(PySwigPacked *v) | |
923 | { | |
924 | char result[SWIG_BUFFER_SIZE]; | |
925 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
926 | return PyString_FromFormat("%s%s", result, v->desc); | |
927 | } else { | |
32fe5131 | 928 | return PyString_FromString(v->desc); |
093d3ff1 RD |
929 | } |
930 | } | |
931 | ||
932 | SWIGRUNTIME int | |
933 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
934 | { | |
935 | int c = strcmp(v->desc, w->desc); | |
936 | if (c) { | |
32fe5131 | 937 | return (c > 0) ? 1 : -1; |
093d3ff1 RD |
938 | } else { |
939 | size_t i = v->size; | |
940 | size_t j = w->size; | |
32fe5131 | 941 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); |
093d3ff1 RD |
942 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); |
943 | } | |
944 | } | |
945 | ||
946 | SWIGRUNTIME void | |
947 | PySwigPacked_dealloc(PySwigPacked *self) | |
948 | { | |
949 | free(self->pack); | |
32fe5131 | 950 | PyObject_Del(self); |
093d3ff1 RD |
951 | } |
952 | ||
953 | SWIGRUNTIME PyTypeObject* | |
32fe5131 RD |
954 | PySwigPacked_type(void) { |
955 | static char pyswigpacked_type__doc__[] = | |
093d3ff1 | 956 | "Swig object carries a C/C++ instance pointer"; |
32fe5131 RD |
957 | static PyTypeObject pyswigpacked_type |
958 | #if !defined(__cplusplus) | |
959 | ; | |
960 | static int type_init = 0; | |
093d3ff1 | 961 | if (!type_init) { |
32fe5131 RD |
962 | PyTypeObject tmp |
963 | #endif | |
964 | = { | |
093d3ff1 RD |
965 | PyObject_HEAD_INIT(&PyType_Type) |
966 | 0, /*ob_size*/ | |
32fe5131 | 967 | (char *)"PySwigPacked", /*tp_name*/ |
093d3ff1 RD |
968 | sizeof(PySwigPacked), /*tp_basicsize*/ |
969 | 0, /*tp_itemsize*/ | |
970 | /* methods */ | |
971 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
972 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
973 | (getattrfunc)0, /*tp_getattr*/ | |
974 | (setattrfunc)0, /*tp_setattr*/ | |
975 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
976 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
977 | 0, /*tp_as_number*/ | |
978 | 0, /*tp_as_sequence*/ | |
979 | 0, /*tp_as_mapping*/ | |
980 | (hashfunc)0, /*tp_hash*/ | |
981 | (ternaryfunc)0, /*tp_call*/ | |
982 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
983 | /* Space for future expansion */ | |
32fe5131 RD |
984 | 0,0,0,0, |
985 | pyswigpacked_type__doc__, /* Documentation string */ | |
093d3ff1 RD |
986 | #if PY_VERSION_HEX >= 0x02000000 |
987 | 0, /* tp_traverse */ | |
988 | 0, /* tp_clear */ | |
989 | #endif | |
990 | #if PY_VERSION_HEX >= 0x02010000 | |
991 | 0, /* tp_richcompare */ | |
992 | 0, /* tp_weaklistoffset */ | |
993 | #endif | |
994 | #if PY_VERSION_HEX >= 0x02020000 | |
995 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
996 | #endif | |
997 | #if PY_VERSION_HEX >= 0x02030000 | |
998 | 0, /* tp_del */ | |
999 | #endif | |
1000 | #ifdef COUNT_ALLOCS | |
1001 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
1002 | #endif | |
1003 | }; | |
32fe5131 RD |
1004 | #if !defined(__cplusplus) |
1005 | pyswigpacked_type = tmp; | |
093d3ff1 RD |
1006 | type_init = 1; |
1007 | } | |
32fe5131 RD |
1008 | #endif |
1009 | return &pyswigpacked_type; | |
093d3ff1 RD |
1010 | } |
1011 | ||
1012 | SWIGRUNTIME PyObject * | |
1013 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
1014 | { | |
32fe5131 | 1015 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
093d3ff1 RD |
1016 | if (self == NULL) { |
1017 | return NULL; | |
1018 | } else { | |
1019 | void *pack = malloc(size); | |
32fe5131 RD |
1020 | if (pack) { |
1021 | memcpy(pack, ptr, size); | |
1022 | self->pack = pack; | |
1023 | self->desc = desc; | |
1024 | self->size = size; | |
1025 | return (PyObject *) self; | |
1026 | } | |
1027 | return NULL; | |
093d3ff1 RD |
1028 | } |
1029 | } | |
1030 | ||
1031 | SWIGRUNTIMEINLINE const char * | |
1032 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
1033 | { | |
1034 | PySwigPacked *self = (PySwigPacked *)obj; | |
1035 | if (self->size != size) return 0; | |
1036 | memcpy(ptr, self->pack, size); | |
1037 | return self->desc; | |
1038 | } | |
1039 | ||
1040 | SWIGRUNTIMEINLINE const char * | |
1041 | PySwigPacked_GetDesc(PyObject *self) | |
1042 | { | |
1043 | return ((PySwigPacked *)self)->desc; | |
1044 | } | |
1045 | ||
1046 | SWIGRUNTIMEINLINE int | |
1047 | PySwigPacked_Check(PyObject *op) { | |
32fe5131 | 1048 | return ((op)->ob_type == PySwigPacked_type()) |
093d3ff1 RD |
1049 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); |
1050 | } | |
1051 | ||
1052 | #else | |
1053 | /* ----------------------------------------------------------------------------- | |
1054 | * Use the old Python PyCObject instead of PySwigObject | |
1055 | * ----------------------------------------------------------------------------- */ | |
1056 | ||
1057 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1058 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1059 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1060 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1061 | ||
1062 | #endif | |
1063 | ||
1064 | #endif | |
1065 | ||
1066 | /* ----------------------------------------------------------------------------- | |
1067 | * errors manipulation | |
1068 | * ----------------------------------------------------------------------------- */ | |
1069 | ||
1070 | SWIGRUNTIME void | |
1071 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1072 | { | |
1073 | if (type) { | |
1074 | #if defined(SWIG_COBJECT_TYPES) | |
32fe5131 | 1075 | if (obj && PySwigObject_Check(obj)) { |
093d3ff1 RD |
1076 | const char *otype = (const char *) PySwigObject_GetDesc(obj); |
1077 | if (otype) { | |
1078 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1079 | type, otype); | |
1080 | return; | |
1081 | } | |
1082 | } else | |
1083 | #endif | |
1084 | { | |
1085 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1086 | if (otype) { | |
1087 | PyObject *str = PyObject_Str(obj); | |
1088 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1089 | if (cstr) { | |
1090 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1091 | type, otype, cstr); | |
1092 | } else { | |
1093 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1094 | type, otype); | |
1095 | } | |
32fe5131 | 1096 | Py_XDECREF(str); |
093d3ff1 RD |
1097 | return; |
1098 | } | |
1099 | } | |
1100 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1101 | } else { | |
1102 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
1103 | } | |
1104 | } | |
1105 | ||
1106 | SWIGRUNTIMEINLINE void | |
1107 | SWIG_Python_NullRef(const char *type) | |
1108 | { | |
1109 | if (type) { | |
1110 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1111 | } else { | |
1112 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1113 | } | |
1114 | } | |
1115 | ||
1116 | SWIGRUNTIME int | |
1117 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1118 | { | |
1119 | if (PyErr_Occurred()) { | |
1120 | PyObject *type = 0; | |
1121 | PyObject *value = 0; | |
1122 | PyObject *traceback = 0; | |
1123 | PyErr_Fetch(&type, &value, &traceback); | |
1124 | if (value) { | |
1125 | PyObject *old_str = PyObject_Str(value); | |
1126 | Py_XINCREF(type); | |
1127 | PyErr_Clear(); | |
1128 | if (infront) { | |
1129 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1130 | } else { | |
1131 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1132 | } | |
1133 | Py_DECREF(old_str); | |
1134 | } | |
1135 | return 1; | |
1136 | } else { | |
1137 | return 0; | |
1138 | } | |
1139 | } | |
1140 | ||
1141 | SWIGRUNTIME int | |
1142 | SWIG_Python_ArgFail(int argnum) | |
1143 | { | |
1144 | if (PyErr_Occurred()) { | |
1145 | /* add information about failing argument */ | |
1146 | char mesg[256]; | |
32fe5131 | 1147 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); |
093d3ff1 RD |
1148 | return SWIG_Python_AddErrMesg(mesg, 1); |
1149 | } else { | |
1150 | return 0; | |
1151 | } | |
1152 | } | |
1153 | ||
1154 | ||
1155 | /* ----------------------------------------------------------------------------- | |
1156 | * pointers/data manipulation | |
1157 | * ----------------------------------------------------------------------------- */ | |
1158 | ||
1159 | /* Convert a pointer value */ | |
1160 | SWIGRUNTIME int | |
1161 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
32fe5131 | 1162 | swig_cast_info *tc; |
093d3ff1 RD |
1163 | const char *c = 0; |
1164 | static PyObject *SWIG_this = 0; | |
1165 | int newref = 0; | |
1166 | PyObject *pyobj = 0; | |
1167 | void *vptr; | |
1168 | ||
1169 | if (!obj) return 0; | |
1170 | if (obj == Py_None) { | |
1171 | *ptr = 0; | |
1172 | return 0; | |
1173 | } | |
1174 | ||
1175 | #ifdef SWIG_COBJECT_TYPES | |
1176 | if (!(PySwigObject_Check(obj))) { | |
1177 | if (!SWIG_this) | |
1178 | SWIG_this = PyString_FromString("this"); | |
1179 | pyobj = obj; | |
1180 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1181 | newref = 1; | |
1182 | if (!obj) goto type_error; | |
1183 | if (!PySwigObject_Check(obj)) { | |
1184 | Py_DECREF(obj); | |
1185 | goto type_error; | |
1186 | } | |
1187 | } | |
1188 | vptr = PySwigObject_AsVoidPtr(obj); | |
1189 | c = (const char *) PySwigObject_GetDesc(obj); | |
1190 | if (newref) { Py_DECREF(obj); } | |
1191 | goto type_check; | |
1192 | #else | |
1193 | if (!(PyString_Check(obj))) { | |
1194 | if (!SWIG_this) | |
1195 | SWIG_this = PyString_FromString("this"); | |
1196 | pyobj = obj; | |
1197 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1198 | newref = 1; | |
1199 | if (!obj) goto type_error; | |
1200 | if (!PyString_Check(obj)) { | |
1201 | Py_DECREF(obj); | |
1202 | goto type_error; | |
1203 | } | |
1204 | } | |
32fe5131 | 1205 | c = PyString_AsString(obj); |
093d3ff1 RD |
1206 | /* Pointer values must start with leading underscore */ |
1207 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1208 | if (newref) { Py_DECREF(obj); } | |
1209 | if (!c) goto type_error; | |
1210 | #endif | |
1211 | ||
1212 | type_check: | |
093d3ff1 RD |
1213 | if (ty) { |
1214 | tc = SWIG_TypeCheck(c,ty); | |
1215 | if (!tc) goto type_error; | |
1216 | *ptr = SWIG_TypeCast(tc,vptr); | |
1217 | } else { | |
1218 | *ptr = vptr; | |
1219 | } | |
093d3ff1 RD |
1220 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { |
1221 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1222 | } | |
1223 | return 0; | |
1224 | ||
1225 | type_error: | |
1226 | PyErr_Clear(); | |
1227 | if (pyobj && !obj) { | |
1228 | obj = pyobj; | |
1229 | if (PyCFunction_Check(obj)) { | |
1230 | /* here we get the method pointer for callbacks */ | |
1231 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1232 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1233 | if (c) { | |
32fe5131 | 1234 | c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0; |
093d3ff1 RD |
1235 | if (!c) goto type_error; |
1236 | goto type_check; | |
1237 | } | |
1238 | } | |
1239 | } | |
1240 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1241 | if (ty) { | |
1242 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1243 | } else { | |
1244 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1245 | } | |
1246 | } | |
1247 | return -1; | |
1248 | } | |
1249 | ||
1250 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
1251 | SWIGRUNTIME void * | |
1252 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1253 | void *result; | |
1254 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1255 | PyErr_Clear(); | |
1256 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1257 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1258 | SWIG_Python_ArgFail(argnum); | |
1259 | } | |
1260 | } | |
1261 | return result; | |
1262 | } | |
1263 | ||
1264 | /* Convert a packed value value */ | |
1265 | SWIGRUNTIME int | |
1266 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
32fe5131 | 1267 | swig_cast_info *tc; |
093d3ff1 RD |
1268 | const char *c = 0; |
1269 | ||
1270 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1271 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1272 | #else | |
1273 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
32fe5131 | 1274 | c = PyString_AsString(obj); |
093d3ff1 RD |
1275 | /* Pointer values must start with leading underscore */ |
1276 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1277 | #endif | |
1278 | if (!c) goto type_error; | |
1279 | if (ty) { | |
1280 | tc = SWIG_TypeCheck(c,ty); | |
1281 | if (!tc) goto type_error; | |
1282 | } | |
1283 | return 0; | |
1284 | ||
1285 | type_error: | |
1286 | PyErr_Clear(); | |
1287 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1288 | if (ty) { | |
1289 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1290 | } else { | |
1291 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1292 | } | |
1293 | } | |
1294 | return -1; | |
1295 | } | |
1296 | ||
1297 | /* Create a new array object */ | |
1298 | SWIGRUNTIME PyObject * | |
1299 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1300 | PyObject *robj = 0; | |
32fe5131 RD |
1301 | if (!type) { |
1302 | if (!PyErr_Occurred()) { | |
1303 | PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj"); | |
1304 | } | |
1305 | return robj; | |
1306 | } | |
093d3ff1 RD |
1307 | if (!ptr) { |
1308 | Py_INCREF(Py_None); | |
1309 | return Py_None; | |
1310 | } | |
1311 | #ifdef SWIG_COBJECT_TYPES | |
1312 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1313 | #else | |
1314 | { | |
1315 | char result[SWIG_BUFFER_SIZE]; | |
1316 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1317 | PyString_FromString(result) : 0; | |
1318 | } | |
1319 | #endif | |
1320 | if (!robj || (robj == Py_None)) return robj; | |
1321 | if (type->clientdata) { | |
1322 | PyObject *inst; | |
1323 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1324 | Py_DECREF(robj); | |
1325 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1326 | Py_DECREF(args); | |
1327 | if (inst) { | |
1328 | if (own) { | |
1329 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1330 | } | |
1331 | robj = inst; | |
1332 | } | |
1333 | } | |
1334 | return robj; | |
1335 | } | |
1336 | ||
1337 | SWIGRUNTIME PyObject * | |
1338 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1339 | PyObject *robj = 0; | |
1340 | if (!ptr) { | |
1341 | Py_INCREF(Py_None); | |
1342 | return Py_None; | |
1343 | } | |
1344 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1345 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1346 | #else | |
1347 | { | |
1348 | char result[SWIG_BUFFER_SIZE]; | |
1349 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1350 | PyString_FromString(result) : 0; | |
1351 | } | |
1352 | #endif | |
1353 | return robj; | |
1354 | } | |
1355 | ||
1356 | /* -----------------------------------------------------------------------------* | |
1357 | * Get type list | |
1358 | * -----------------------------------------------------------------------------*/ | |
1359 | ||
1360 | #ifdef SWIG_LINK_RUNTIME | |
1361 | void *SWIG_ReturnGlobalTypeList(void *); | |
1362 | #endif | |
1363 | ||
32fe5131 RD |
1364 | SWIGRUNTIME swig_module_info * |
1365 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
1366 | static void *type_pointer = (void *)0; |
1367 | /* first check if module already created */ | |
1368 | if (!type_pointer) { | |
1369 | #ifdef SWIG_LINK_RUNTIME | |
1370 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1371 | #else | |
1372 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1373 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1374 | if (PyErr_Occurred()) { | |
1375 | PyErr_Clear(); | |
1376 | type_pointer = (void *)0; | |
1377 | } | |
093d3ff1 | 1378 | #endif |
32fe5131 RD |
1379 | } |
1380 | return (swig_module_info *) type_pointer; | |
093d3ff1 RD |
1381 | } |
1382 | ||
32fe5131 RD |
1383 | #if PY_MAJOR_VERSION < 2 |
1384 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1385 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
1386 | SWIGINTERN int | |
1387 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
1388 | { | |
1389 | PyObject *dict; | |
1390 | if (!PyModule_Check(m)) { | |
1391 | PyErr_SetString(PyExc_TypeError, | |
1392 | "PyModule_AddObject() needs module as first arg"); | |
1393 | return -1; | |
1394 | } | |
1395 | if (!o) { | |
1396 | PyErr_SetString(PyExc_TypeError, | |
1397 | "PyModule_AddObject() needs non-NULL value"); | |
1398 | return -1; | |
1399 | } | |
1400 | ||
1401 | dict = PyModule_GetDict(m); | |
1402 | if (dict == NULL) { | |
1403 | /* Internal error -- modules must have a dict! */ | |
1404 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
1405 | PyModule_GetName(m)); | |
1406 | return -1; | |
1407 | } | |
1408 | if (PyDict_SetItemString(dict, name, o)) | |
1409 | return -1; | |
1410 | Py_DECREF(o); | |
1411 | return 0; | |
093d3ff1 | 1412 | } |
32fe5131 | 1413 | #endif |
093d3ff1 | 1414 | |
32fe5131 RD |
1415 | SWIGRUNTIME void |
1416 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
1417 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
1418 | ||
1419 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1420 | swig_empty_runtime_method_table); | |
1421 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL); | |
1422 | if (pointer && module) { | |
1423 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1424 | } | |
1425 | } | |
093d3ff1 RD |
1426 | |
1427 | #ifdef __cplusplus | |
1428 | } | |
1429 | #endif | |
1430 | ||
1431 | ||
1432 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
1433 | ||
32fe5131 RD |
1434 | #define SWIGTYPE_p_bool swig_types[0] |
1435 | #define SWIGTYPE_p_char swig_types[1] | |
1436 | #define SWIGTYPE_p_form_ops_t swig_types[2] | |
1437 | #define SWIGTYPE_p_int swig_types[3] | |
1438 | #define SWIGTYPE_p_long swig_types[4] | |
1439 | #define SWIGTYPE_p_unsigned_char swig_types[5] | |
1440 | #define SWIGTYPE_p_unsigned_int swig_types[6] | |
1441 | #define SWIGTYPE_p_unsigned_long swig_types[7] | |
1442 | #define SWIGTYPE_p_void swig_types[8] | |
1443 | #define SWIGTYPE_p_wxANIHandler swig_types[9] | |
1444 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[10] | |
1445 | #define SWIGTYPE_p_wxActivateEvent swig_types[11] | |
1446 | #define SWIGTYPE_p_wxArrayInt swig_types[12] | |
1447 | #define SWIGTYPE_p_wxArrayString swig_types[13] | |
1448 | #define SWIGTYPE_p_wxBMPHandler swig_types[14] | |
1449 | #define SWIGTYPE_p_wxBitmap swig_types[15] | |
1450 | #define SWIGTYPE_p_wxBitmapButton swig_types[16] | |
1451 | #define SWIGTYPE_p_wxBookCtrlBase swig_types[17] | |
1452 | #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18] | |
1453 | #define SWIGTYPE_p_wxBoxSizer swig_types[19] | |
1454 | #define SWIGTYPE_p_wxButton swig_types[20] | |
1455 | #define SWIGTYPE_p_wxCURHandler swig_types[21] | |
1456 | #define SWIGTYPE_p_wxCheckBox swig_types[22] | |
1457 | #define SWIGTYPE_p_wxCheckListBox swig_types[23] | |
1458 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[24] | |
1459 | #define SWIGTYPE_p_wxChoice swig_types[25] | |
1460 | #define SWIGTYPE_p_wxChoicebook swig_types[26] | |
1461 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[27] | |
1462 | #define SWIGTYPE_p_wxCloseEvent swig_types[28] | |
1463 | #define SWIGTYPE_p_wxColour swig_types[29] | |
1464 | #define SWIGTYPE_p_wxComboBox swig_types[30] | |
1465 | #define SWIGTYPE_p_wxCommandEvent swig_types[31] | |
1466 | #define SWIGTYPE_p_wxContextHelp swig_types[32] | |
1467 | #define SWIGTYPE_p_wxContextHelpButton swig_types[33] | |
1468 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[34] | |
1469 | #define SWIGTYPE_p_wxControl swig_types[35] | |
1470 | #define SWIGTYPE_p_wxControlWithItems swig_types[36] | |
1471 | #define SWIGTYPE_p_wxCursor swig_types[37] | |
1472 | #define SWIGTYPE_p_wxDC swig_types[38] | |
1473 | #define SWIGTYPE_p_wxDateEvent swig_types[39] | |
1474 | #define SWIGTYPE_p_wxDatePickerCtrl swig_types[40] | |
1475 | #define SWIGTYPE_p_wxDateTime swig_types[41] | |
1476 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[42] | |
1477 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43] | |
1478 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[44] | |
1479 | #define SWIGTYPE_p_wxDuplexMode swig_types[45] | |
1480 | #define SWIGTYPE_p_wxEraseEvent swig_types[46] | |
1481 | #define SWIGTYPE_p_wxEvent swig_types[47] | |
1482 | #define SWIGTYPE_p_wxEvtHandler swig_types[48] | |
1483 | #define SWIGTYPE_p_wxFSFile swig_types[49] | |
1484 | #define SWIGTYPE_p_wxFileSystem swig_types[50] | |
1485 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[51] | |
1486 | #define SWIGTYPE_p_wxFocusEvent swig_types[52] | |
1487 | #define SWIGTYPE_p_wxFont swig_types[53] | |
1488 | #define SWIGTYPE_p_wxGBSizerItem swig_types[54] | |
1489 | #define SWIGTYPE_p_wxGIFHandler swig_types[55] | |
1490 | #define SWIGTYPE_p_wxGauge swig_types[56] | |
1491 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[57] | |
1492 | #define SWIGTYPE_p_wxGenericDragImage swig_types[58] | |
1493 | #define SWIGTYPE_p_wxGridBagSizer swig_types[59] | |
1494 | #define SWIGTYPE_p_wxGridSizer swig_types[60] | |
1495 | #define SWIGTYPE_p_wxHelpEvent swig_types[61] | |
1496 | #define SWIGTYPE_p_wxHelpProvider swig_types[62] | |
1497 | #define SWIGTYPE_p_wxICOHandler swig_types[63] | |
1498 | #define SWIGTYPE_p_wxIcon swig_types[64] | |
1499 | #define SWIGTYPE_p_wxIconizeEvent swig_types[65] | |
1500 | #define SWIGTYPE_p_wxIdleEvent swig_types[66] | |
1501 | #define SWIGTYPE_p_wxImage swig_types[67] | |
1502 | #define SWIGTYPE_p_wxImageHandler swig_types[68] | |
1503 | #define SWIGTYPE_p_wxImageList swig_types[69] | |
1504 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[70] | |
1505 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[71] | |
1506 | #define SWIGTYPE_p_wxItemContainer swig_types[72] | |
1507 | #define SWIGTYPE_p_wxJPEGHandler swig_types[73] | |
1508 | #define SWIGTYPE_p_wxKeyEvent swig_types[74] | |
1509 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[75] | |
1510 | #define SWIGTYPE_p_wxListBox swig_types[76] | |
1511 | #define SWIGTYPE_p_wxListEvent swig_types[77] | |
1512 | #define SWIGTYPE_p_wxListItem swig_types[78] | |
1513 | #define SWIGTYPE_p_wxListItemAttr swig_types[79] | |
1514 | #define SWIGTYPE_p_wxListView swig_types[80] | |
1515 | #define SWIGTYPE_p_wxListbook swig_types[81] | |
1516 | #define SWIGTYPE_p_wxListbookEvent swig_types[82] | |
1517 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[83] | |
1518 | #define SWIGTYPE_p_wxMemoryDC swig_types[84] | |
1519 | #define SWIGTYPE_p_wxMenu swig_types[85] | |
1520 | #define SWIGTYPE_p_wxMenuBar swig_types[86] | |
1521 | #define SWIGTYPE_p_wxMenuEvent swig_types[87] | |
1522 | #define SWIGTYPE_p_wxMenuItem swig_types[88] | |
1523 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89] | |
1524 | #define SWIGTYPE_p_wxMouseEvent swig_types[90] | |
1525 | #define SWIGTYPE_p_wxMoveEvent swig_types[91] | |
1526 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92] | |
1527 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[93] | |
1528 | #define SWIGTYPE_p_wxNotebook swig_types[94] | |
1529 | #define SWIGTYPE_p_wxNotebookEvent swig_types[95] | |
1530 | #define SWIGTYPE_p_wxNotifyEvent swig_types[96] | |
1531 | #define SWIGTYPE_p_wxObject swig_types[97] | |
1532 | #define SWIGTYPE_p_wxPCXHandler swig_types[98] | |
1533 | #define SWIGTYPE_p_wxPNGHandler swig_types[99] | |
1534 | #define SWIGTYPE_p_wxPNMHandler swig_types[100] | |
1535 | #define SWIGTYPE_p_wxPaintEvent swig_types[101] | |
1536 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[102] | |
1537 | #define SWIGTYPE_p_wxPaperSize swig_types[103] | |
1538 | #define SWIGTYPE_p_wxPoint swig_types[104] | |
1539 | #define SWIGTYPE_p_wxPyApp swig_types[105] | |
1540 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[106] | |
1541 | #define SWIGTYPE_p_wxPyControl swig_types[107] | |
1542 | #define SWIGTYPE_p_wxPyEvent swig_types[108] | |
1543 | #define SWIGTYPE_p_wxPyImageHandler swig_types[109] | |
1544 | #define SWIGTYPE_p_wxPyListCtrl swig_types[110] | |
1545 | #define SWIGTYPE_p_wxPySizer swig_types[111] | |
1546 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[112] | |
1547 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[113] | |
1548 | #define SWIGTYPE_p_wxPyValidator swig_types[114] | |
1549 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[115] | |
1550 | #define SWIGTYPE_p_wxRadioBox swig_types[116] | |
1551 | #define SWIGTYPE_p_wxRadioButton swig_types[117] | |
1552 | #define SWIGTYPE_p_wxRect swig_types[118] | |
1553 | #define SWIGTYPE_p_wxScrollBar swig_types[119] | |
1554 | #define SWIGTYPE_p_wxScrollEvent swig_types[120] | |
1555 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[121] | |
1556 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[122] | |
1557 | #define SWIGTYPE_p_wxShowEvent swig_types[123] | |
1558 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[124] | |
1559 | #define SWIGTYPE_p_wxSize swig_types[125] | |
1560 | #define SWIGTYPE_p_wxSizeEvent swig_types[126] | |
1561 | #define SWIGTYPE_p_wxSizer swig_types[127] | |
1562 | #define SWIGTYPE_p_wxSizerItem swig_types[128] | |
1563 | #define SWIGTYPE_p_wxSlider swig_types[129] | |
1564 | #define SWIGTYPE_p_wxSpinButton swig_types[130] | |
1565 | #define SWIGTYPE_p_wxSpinCtrl swig_types[131] | |
1566 | #define SWIGTYPE_p_wxSpinEvent swig_types[132] | |
1567 | #define SWIGTYPE_p_wxStaticBitmap swig_types[133] | |
1568 | #define SWIGTYPE_p_wxStaticBox swig_types[134] | |
1569 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[135] | |
1570 | #define SWIGTYPE_p_wxStaticLine swig_types[136] | |
1571 | #define SWIGTYPE_p_wxStaticText swig_types[137] | |
1572 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[138] | |
1573 | #define SWIGTYPE_p_wxString swig_types[139] | |
1574 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[140] | |
1575 | #define SWIGTYPE_p_wxTIFFHandler swig_types[141] | |
1576 | #define SWIGTYPE_p_wxTextAttr swig_types[142] | |
1577 | #define SWIGTYPE_p_wxTextCtrl swig_types[143] | |
1578 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[144] | |
1579 | #define SWIGTYPE_p_wxToggleButton swig_types[145] | |
1580 | #define SWIGTYPE_p_wxToolBar swig_types[146] | |
1581 | #define SWIGTYPE_p_wxToolBarBase swig_types[147] | |
1582 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[148] | |
1583 | #define SWIGTYPE_p_wxTreeEvent swig_types[149] | |
1584 | #define SWIGTYPE_p_wxTreeItemId swig_types[150] | |
1585 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[151] | |
1586 | #define SWIGTYPE_p_wxValidator swig_types[152] | |
1587 | #define SWIGTYPE_p_wxVisualAttributes swig_types[153] | |
1588 | #define SWIGTYPE_p_wxWindow swig_types[154] | |
1589 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[155] | |
1590 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[156] | |
1591 | #define SWIGTYPE_p_wxXPMHandler swig_types[157] | |
1592 | #define SWIGTYPE_ptrdiff_t swig_types[158] | |
1593 | #define SWIGTYPE_std__ptrdiff_t swig_types[159] | |
1594 | #define SWIGTYPE_unsigned_int swig_types[160] | |
1595 | static swig_type_info *swig_types[162]; | |
1596 | static swig_module_info swig_module = {swig_types, 161, 0, 0, 0, 0}; | |
1597 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) | |
1598 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
093d3ff1 RD |
1599 | |
1600 | /* -------- TYPES TABLE (END) -------- */ | |
1601 | ||
1602 | ||
1603 | /*----------------------------------------------- | |
1604 | @(target):= _controls_.so | |
1605 | ------------------------------------------------*/ | |
1606 | #define SWIG_init init_controls_ | |
1607 | ||
1608 | #define SWIG_name "_controls_" | |
1609 | ||
1610 | #include "wx/wxPython/wxPython.h" | |
1611 | #include "wx/wxPython/pyclasses.h" | |
1612 | ||
1613 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1614 | static const wxString wxPyEmptyString(wxEmptyString); | |
1615 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1616 | ||
1617 | const wxArrayString wxPyEmptyStringArray; | |
1618 | ||
1619 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
1620 | ||
32fe5131 | 1621 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1622 | #define SWIG_From_int PyInt_FromLong |
1623 | /*@@*/ | |
1624 | ||
1625 | ||
1626 | #include <limits.h> | |
1627 | ||
1628 | ||
1629 | SWIGINTERN int | |
1630 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1631 | const char *errmsg) | |
1632 | { | |
1633 | if (value < min_value) { | |
1634 | if (errmsg) { | |
1635 | PyErr_Format(PyExc_OverflowError, | |
1636 | "value %ld is less than '%s' minimum %ld", | |
1637 | value, errmsg, min_value); | |
1638 | } | |
1639 | return 0; | |
1640 | } else if (value > max_value) { | |
1641 | if (errmsg) { | |
1642 | PyErr_Format(PyExc_OverflowError, | |
1643 | "value %ld is greater than '%s' maximum %ld", | |
1644 | value, errmsg, max_value); | |
1645 | } | |
1646 | return 0; | |
1647 | } | |
1648 | return 1; | |
1649 | } | |
1650 | ||
1651 | ||
1652 | SWIGINTERN int | |
1653 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1654 | { | |
1655 | if (PyNumber_Check(obj)) { | |
1656 | if (val) *val = PyInt_AsLong(obj); | |
1657 | return 1; | |
1658 | } | |
1659 | else { | |
1660 | SWIG_type_error("number", obj); | |
1661 | } | |
1662 | return 0; | |
1663 | } | |
1664 | ||
1665 | ||
1666 | #if INT_MAX != LONG_MAX | |
1667 | SWIGINTERN int | |
1668 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1669 | { | |
1670 | const char* errmsg = val ? "int" : (char*)0; | |
1671 | long v; | |
1672 | if (SWIG_AsVal_long(obj, &v)) { | |
1673 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
32fe5131 | 1674 | if (val) *val = static_cast<int >(v); |
093d3ff1 RD |
1675 | return 1; |
1676 | } else { | |
1677 | return 0; | |
1678 | } | |
1679 | } else { | |
1680 | PyErr_Clear(); | |
1681 | } | |
1682 | if (val) { | |
1683 | SWIG_type_error(errmsg, obj); | |
1684 | } | |
1685 | return 0; | |
1686 | } | |
1687 | #else | |
32fe5131 | 1688 | SWIGINTERNINLINE int |
093d3ff1 RD |
1689 | SWIG_AsVal_int(PyObject *obj, int *val) |
1690 | { | |
1691 | return SWIG_AsVal_long(obj,(long*)val); | |
1692 | } | |
1693 | #endif | |
1694 | ||
1695 | ||
32fe5131 | 1696 | SWIGINTERNINLINE int |
c32bde28 | 1697 | SWIG_As_int(PyObject* obj) |
994141e6 | 1698 | { |
c32bde28 RD |
1699 | int v; |
1700 | if (!SWIG_AsVal_int(obj, &v)) { | |
1701 | /* | |
093d3ff1 | 1702 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1703 | */ |
1704 | memset((void*)&v, 0, sizeof(int)); | |
15afbcd0 | 1705 | } |
c32bde28 | 1706 | return v; |
15afbcd0 RD |
1707 | } |
1708 | ||
1709 | ||
32fe5131 | 1710 | SWIGINTERNINLINE long |
c32bde28 | 1711 | SWIG_As_long(PyObject* obj) |
15afbcd0 | 1712 | { |
c32bde28 RD |
1713 | long v; |
1714 | if (!SWIG_AsVal_long(obj, &v)) { | |
1715 | /* | |
093d3ff1 | 1716 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1717 | */ |
1718 | memset((void*)&v, 0, sizeof(long)); | |
15afbcd0 | 1719 | } |
c32bde28 | 1720 | return v; |
994141e6 RD |
1721 | } |
1722 | ||
c32bde28 | 1723 | |
32fe5131 | 1724 | SWIGINTERNINLINE int |
c32bde28 RD |
1725 | SWIG_Check_int(PyObject* obj) |
1726 | { | |
1727 | return SWIG_AsVal_int(obj, (int*)0); | |
1728 | } | |
994141e6 | 1729 | |
c32bde28 | 1730 | |
32fe5131 | 1731 | SWIGINTERNINLINE int |
c32bde28 | 1732 | SWIG_Check_long(PyObject* obj) |
994141e6 | 1733 | { |
c32bde28 | 1734 | return SWIG_AsVal_long(obj, (long*)0); |
994141e6 RD |
1735 | } |
1736 | ||
c32bde28 | 1737 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
15afbcd0 | 1738 | |
093d3ff1 | 1739 | SWIGINTERN int |
c32bde28 | 1740 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
15afbcd0 | 1741 | { |
c32bde28 RD |
1742 | if (obj == Py_True) { |
1743 | if (val) *val = true; | |
1744 | return 1; | |
1745 | } | |
1746 | if (obj == Py_False) { | |
1747 | if (val) *val = false; | |
15afbcd0 RD |
1748 | return 1; |
1749 | } | |
c32bde28 RD |
1750 | int res = 0; |
1751 | if (SWIG_AsVal_int(obj, &res)) { | |
093d3ff1 | 1752 | if (val) *val = res ? true : false; |
c32bde28 | 1753 | return 1; |
093d3ff1 RD |
1754 | } else { |
1755 | PyErr_Clear(); | |
1756 | } | |
c32bde28 | 1757 | if (val) { |
093d3ff1 | 1758 | SWIG_type_error("bool", obj); |
c32bde28 RD |
1759 | } |
1760 | return 0; | |
1761 | } | |
1762 | ||
1763 | ||
32fe5131 | 1764 | SWIGINTERNINLINE bool |
c32bde28 RD |
1765 | SWIG_As_bool(PyObject* obj) |
1766 | { | |
1767 | bool v; | |
1768 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1769 | /* | |
093d3ff1 | 1770 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1771 | */ |
1772 | memset((void*)&v, 0, sizeof(bool)); | |
1773 | } | |
1774 | return v; | |
1775 | } | |
1776 | ||
1777 | ||
32fe5131 | 1778 | SWIGINTERNINLINE int |
c32bde28 RD |
1779 | SWIG_Check_bool(PyObject* obj) |
1780 | { | |
1781 | return SWIG_AsVal_bool(obj, (bool*)0); | |
15afbcd0 RD |
1782 | } |
1783 | ||
b2dc1044 RD |
1784 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
1785 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
093d3ff1 | 1786 | |
32fe5131 | 1787 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1788 | #define SWIG_From_long PyInt_FromLong |
1789 | /*@@*/ | |
1790 | ||
b9d6a5f3 RD |
1791 | |
1792 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
1793 | PyObject* o2; | |
1794 | PyObject* o3; | |
1795 | ||
1796 | if (!target) { | |
1797 | target = o; | |
1798 | } else if (target == Py_None) { | |
1799 | Py_DECREF(Py_None); | |
1800 | target = o; | |
1801 | } else { | |
1802 | if (!PyTuple_Check(target)) { | |
1803 | o2 = target; | |
1804 | target = PyTuple_New(1); | |
1805 | PyTuple_SetItem(target, 0, o2); | |
1806 | } | |
1807 | o3 = PyTuple_New(1); | |
1808 | PyTuple_SetItem(o3, 0, o); | |
1809 | ||
1810 | o2 = target; | |
1811 | target = PySequence_Concat(o2, o3); | |
1812 | Py_DECREF(o2); | |
1813 | Py_DECREF(o3); | |
1814 | } | |
1815 | return target; | |
1816 | } | |
1817 | ||
1818 | ||
b2dc1044 RD |
1819 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); |
1820 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
1821 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
1822 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
1823 | |
1824 | #include <wx/checklst.h> | |
1825 | ||
d14a1e28 | 1826 | |
b2dc1044 | 1827 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
093d3ff1 | 1828 | static void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
d14a1e28 RD |
1829 | if (clientData) { |
1830 | wxPyClientData* data = new wxPyClientData(clientData); | |
1831 | self->Insert(item, pos, data); | |
1832 | } else | |
1833 | self->Insert(item, pos); | |
1834 | } | |
093d3ff1 | 1835 | static PyObject *wxListBox_GetSelections(wxListBox *self){ |
d14a1e28 RD |
1836 | wxArrayInt lst; |
1837 | self->GetSelections(lst); | |
1838 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
1839 | for(size_t i=0; i<lst.GetCount(); i++) { | |
1840 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
1841 | } | |
1842 | return tup; | |
1843 | } | |
093d3ff1 | 1844 | static void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
1845 | #ifdef __WXMSW__ |
1846 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1847 | self->GetItem(item)->SetTextColour(c); | |
1848 | #endif | |
1849 | } | |
093d3ff1 | 1850 | static void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
1851 | #ifdef __WXMSW__ |
1852 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1853 | self->GetItem(item)->SetBackgroundColour(c); | |
1854 | #endif | |
1855 | } | |
093d3ff1 | 1856 | static void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
c3eb6258 RD |
1857 | #ifdef __WXMSW__ |
1858 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1859 | self->GetItem(item)->SetFont(f); | |
1860 | #endif | |
1861 | } | |
b2dc1044 | 1862 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 | 1863 | |
093d3ff1 | 1864 | SWIGINTERN int |
c32bde28 | 1865 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) |
15afbcd0 | 1866 | { |
c32bde28 RD |
1867 | long v = 0; |
1868 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
093d3ff1 | 1869 | SWIG_type_error("unsigned number", obj); |
15afbcd0 | 1870 | } |
c32bde28 RD |
1871 | else if (val) |
1872 | *val = (unsigned long)v; | |
1873 | return 1; | |
15afbcd0 RD |
1874 | } |
1875 | ||
1876 | ||
32fe5131 | 1877 | SWIGINTERNINLINE unsigned long |
c32bde28 | 1878 | SWIG_As_unsigned_SS_long(PyObject* obj) |
15afbcd0 | 1879 | { |
c32bde28 RD |
1880 | unsigned long v; |
1881 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1882 | /* | |
093d3ff1 | 1883 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1884 | */ |
1885 | memset((void*)&v, 0, sizeof(unsigned long)); | |
15afbcd0 | 1886 | } |
c32bde28 RD |
1887 | return v; |
1888 | } | |
1889 | ||
1890 | ||
32fe5131 | 1891 | SWIGINTERNINLINE int |
c32bde28 RD |
1892 | SWIG_Check_unsigned_SS_long(PyObject* obj) |
1893 | { | |
1894 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
15afbcd0 RD |
1895 | } |
1896 | ||
093d3ff1 | 1897 | static void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d14a1e28 RD |
1898 | self->AppendText(text); |
1899 | } | |
093d3ff1 | 1900 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ |
d14a1e28 RD |
1901 | return self->GetValue().Mid(from, to - from); |
1902 | } | |
b2dc1044 RD |
1903 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
1904 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 1905 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
1906 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
1907 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
093d3ff1 RD |
1908 | static int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } |
1909 | static int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
1910 | static int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
d14a1e28 RD |
1911 | |
1912 | #include <wx/slider.h> | |
1913 | ||
d14a1e28 | 1914 | |
b2dc1044 | 1915 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 1916 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 1917 | |
15afbcd0 RD |
1918 | #if !wxUSE_TOGGLEBTN |
1919 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
1920 | |
1921 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
1922 | ||
1923 | class wxToggleButton : public wxControl | |
1924 | { | |
1925 | public: | |
1926 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
1927 | const wxPoint&, const wxSize&, long, | |
1928 | const wxValidator&, const wxString&) | |
39f61e25 | 1929 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1930 | |
1931 | wxToggleButton() | |
39f61e25 | 1932 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1933 | }; |
1934 | #endif | |
1935 | ||
51b83b37 | 1936 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); |
994141e6 | 1937 | |
32fe5131 | 1938 | SWIGINTERNINLINE PyObject* |
c32bde28 | 1939 | SWIG_From_unsigned_SS_long(unsigned long value) |
994141e6 | 1940 | { |
15afbcd0 RD |
1941 | return (value > LONG_MAX) ? |
1942 | PyLong_FromUnsignedLong(value) | |
32fe5131 | 1943 | : PyInt_FromLong(static_cast<long >(value)); |
994141e6 RD |
1944 | } |
1945 | ||
b2dc1044 | 1946 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
093d3ff1 | 1947 | static PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
d14a1e28 RD |
1948 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); |
1949 | if (udata) { | |
1950 | Py_INCREF(udata->m_obj); | |
1951 | return udata->m_obj; | |
1952 | } else { | |
1953 | Py_INCREF(Py_None); | |
1954 | return Py_None; | |
1955 | } | |
1956 | } | |
093d3ff1 | 1957 | static void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d14a1e28 RD |
1958 | self->SetClientData(new wxPyUserData(clientData)); |
1959 | } | |
093d3ff1 | 1960 | 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 |
1961 | wxPyUserData* udata = NULL; |
1962 | if (clientData && clientData != Py_None) | |
1963 | udata = new wxPyUserData(clientData); | |
1964 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
1965 | shortHelp, longHelp, udata); | |
1966 | } | |
093d3ff1 | 1967 | 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 |
1968 | wxPyUserData* udata = NULL; |
1969 | if (clientData && clientData != Py_None) | |
1970 | udata = new wxPyUserData(clientData); | |
1971 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
1972 | shortHelp, longHelp, udata); | |
1973 | } | |
093d3ff1 | 1974 | static PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ |
d14a1e28 RD |
1975 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); |
1976 | if (udata) { | |
1977 | Py_INCREF(udata->m_obj); | |
1978 | return udata->m_obj; | |
1979 | } else { | |
1980 | Py_INCREF(Py_None); | |
1981 | return Py_None; | |
1982 | } | |
1983 | } | |
093d3ff1 | 1984 | static void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ |
d14a1e28 RD |
1985 | self->SetToolClientData(id, new wxPyUserData(clientData)); |
1986 | } | |
1987 | ||
1988 | #include <wx/listctrl.h> | |
1989 | ||
7557b9b5 | 1990 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); |
093d3ff1 | 1991 | static void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
d14a1e28 RD |
1992 | // Python aware sorting function for wxPyListCtrl |
1993 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
1994 | int retval = 0; | |
1995 | PyObject* func = (PyObject*)funcPtr; | |
5a446332 | 1996 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1997 | |
1998 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
1999 | PyObject* result = PyEval_CallObject(func, args); | |
2000 | Py_DECREF(args); | |
2001 | if (result) { | |
2002 | retval = PyInt_AsLong(result); | |
2003 | Py_DECREF(result); | |
2004 | } | |
2005 | ||
4f89f6a3 | 2006 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2007 | return retval; |
2008 | } | |
2009 | ||
2010 | // C++ Version of a Python aware class | |
2011 | class wxPyListCtrl : public wxListCtrl { | |
32fe5131 | 2012 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl) |
d14a1e28 RD |
2013 | public: |
2014 | wxPyListCtrl() : wxListCtrl() {} | |
2015 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
2016 | const wxPoint& pos, | |
2017 | const wxSize& size, | |
2018 | long style, | |
2019 | const wxValidator& validator, | |
2020 | const wxString& name) : | |
2021 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
2022 | ||
2023 | bool Create(wxWindow* parent, wxWindowID id, | |
2024 | const wxPoint& pos, | |
2025 | const wxSize& size, | |
2026 | long style, | |
2027 | const wxValidator& validator, | |
2028 | const wxString& name) { | |
2029 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
2030 | } | |
2031 | ||
2032 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d14a1e28 RD |
2033 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
2034 | ||
84f85550 RD |
2035 | // use the virtual version to avoid a confusing assert in the base class |
2036 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
2037 | ||
d14a1e28 RD |
2038 | PYPRIVATE; |
2039 | }; | |
2040 | ||
2041 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
2042 | ||
2043 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d14a1e28 | 2044 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 RD |
2045 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
2046 | ||
d14a1e28 | 2047 | |
093d3ff1 | 2048 | static wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ |
d14a1e28 RD |
2049 | wxListItem item; |
2050 | item.SetMask( wxLIST_MASK_STATE | | |
2051 | wxLIST_MASK_TEXT | | |
2052 | wxLIST_MASK_IMAGE | | |
2053 | wxLIST_MASK_DATA | | |
2054 | wxLIST_SET_ITEM | | |
2055 | wxLIST_MASK_WIDTH | | |
2056 | wxLIST_MASK_FORMAT | |
2057 | ); | |
2058 | if (self->GetColumn(col, item)) | |
2059 | return new wxListItem(item); | |
2060 | else | |
2061 | return NULL; | |
2062 | } | |
093d3ff1 | 2063 | static wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ |
d14a1e28 RD |
2064 | wxListItem* info = new wxListItem; |
2065 | info->m_itemId = itemId; | |
2066 | info->m_col = col; | |
2067 | info->m_mask = 0xFFFF; | |
2068 | self->GetItem(*info); | |
2069 | return info; | |
2070 | } | |
093d3ff1 | 2071 | static wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d14a1e28 RD |
2072 | wxPoint pos; |
2073 | self->GetItemPosition(item, pos); | |
2074 | return pos; | |
2075 | } | |
093d3ff1 | 2076 | static wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ |
d14a1e28 RD |
2077 | wxRect rect; |
2078 | self->GetItemRect(item, rect, code); | |
2079 | return rect; | |
2080 | } | |
c32bde28 | 2081 | |
093d3ff1 | 2082 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d14a1e28 | 2083 | if (!PyCallable_Check(func)) |
ae8162c8 | 2084 | return false; |
d14a1e28 RD |
2085 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
2086 | } | |
093d3ff1 | 2087 | static wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d14a1e28 RD |
2088 | |
2089 | ||
2090 | ||
2091 | return (wxWindow*)self->m_mainWin; | |
2092 | ||
2093 | } | |
2094 | ||
2095 | #include <wx/treectrl.h> | |
2096 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 2097 | |
33b885b9 | 2098 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
093d3ff1 RD |
2099 | static bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
2100 | static bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
2101 | static void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
d14a1e28 RD |
2102 | // C++ version of Python aware wxTreeCtrl |
2103 | class wxPyTreeCtrl : public wxTreeCtrl { | |
32fe5131 | 2104 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl) |
d14a1e28 RD |
2105 | public: |
2106 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
2107 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
2108 | const wxPoint& pos, | |
2109 | const wxSize& size, | |
2110 | long style, | |
2111 | const wxValidator& validator, | |
2112 | const wxString& name) : | |
2113 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
2114 | ||
2115 | bool Create(wxWindow *parent, wxWindowID id, | |
2116 | const wxPoint& pos, | |
2117 | const wxSize& size, | |
2118 | long style, | |
2119 | const wxValidator& validator, | |
2120 | const wxString& name) { | |
2121 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
2122 | } | |
2123 | ||
2124 | ||
2125 | int OnCompareItems(const wxTreeItemId& item1, | |
2126 | const wxTreeItemId& item2) { | |
2127 | int rval = 0; | |
2128 | bool found; | |
5a446332 | 2129 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2130 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
ae8162c8 RD |
2131 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
2132 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d14a1e28 RD |
2133 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
2134 | Py_DECREF(o1); | |
2135 | Py_DECREF(o2); | |
2136 | } | |
4f89f6a3 | 2137 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2138 | if (! found) |
2139 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
2140 | return rval; | |
2141 | } | |
2142 | PYPRIVATE; | |
2143 | }; | |
2144 | ||
2145 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
2146 | ||
2147 | ||
994141e6 | 2148 | |
15afbcd0 | 2149 | #if UINT_MAX < LONG_MAX |
32fe5131 | 2150 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
c32bde28 RD |
2151 | #define SWIG_From_unsigned_SS_int SWIG_From_long |
2152 | /*@@*/ | |
15afbcd0 | 2153 | #else |
32fe5131 | 2154 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
c32bde28 RD |
2155 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long |
2156 | /*@@*/ | |
15afbcd0 RD |
2157 | #endif |
2158 | ||
2159 | ||
32fe5131 | 2160 | SWIGINTERNINLINE int |
c32bde28 RD |
2161 | SWIG_CheckUnsignedLongInRange(unsigned long value, |
2162 | unsigned long max_value, | |
2163 | const char *errmsg) | |
15afbcd0 | 2164 | { |
c32bde28 RD |
2165 | if (value > max_value) { |
2166 | if (errmsg) { | |
2167 | PyErr_Format(PyExc_OverflowError, | |
093d3ff1 | 2168 | "value %lu is greater than '%s' minimum %lu", |
c32bde28 | 2169 | value, errmsg, max_value); |
15afbcd0 | 2170 | } |
c32bde28 | 2171 | return 0; |
15afbcd0 | 2172 | } |
c32bde28 RD |
2173 | return 1; |
2174 | } | |
994141e6 RD |
2175 | |
2176 | ||
15afbcd0 | 2177 | #if UINT_MAX != ULONG_MAX |
093d3ff1 | 2178 | SWIGINTERN int |
c32bde28 | 2179 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
994141e6 | 2180 | { |
093d3ff1 | 2181 | const char* errmsg = val ? "unsigned int" : (char*)0; |
c32bde28 RD |
2182 | unsigned long v; |
2183 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2184 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
32fe5131 | 2185 | if (val) *val = static_cast<unsigned int >(v); |
c32bde28 RD |
2186 | return 1; |
2187 | } | |
2188 | } else { | |
2189 | PyErr_Clear(); | |
2190 | } | |
2191 | if (val) { | |
093d3ff1 | 2192 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2193 | } |
2194 | return 0; | |
15afbcd0 RD |
2195 | } |
2196 | #else | |
32fe5131 | 2197 | SWIGINTERNINLINE unsigned int |
c32bde28 RD |
2198 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
2199 | { | |
2200 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
2201 | } | |
15afbcd0 RD |
2202 | #endif |
2203 | ||
2204 | ||
32fe5131 | 2205 | SWIGINTERNINLINE unsigned int |
c32bde28 | 2206 | SWIG_As_unsigned_SS_int(PyObject* obj) |
15afbcd0 | 2207 | { |
c32bde28 RD |
2208 | unsigned int v; |
2209 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
2210 | /* | |
093d3ff1 | 2211 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2212 | */ |
2213 | memset((void*)&v, 0, sizeof(unsigned int)); | |
15afbcd0 | 2214 | } |
c32bde28 RD |
2215 | return v; |
2216 | } | |
2217 | ||
2218 | ||
32fe5131 | 2219 | SWIGINTERNINLINE int |
c32bde28 RD |
2220 | SWIG_Check_unsigned_SS_int(PyObject* obj) |
2221 | { | |
2222 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
994141e6 RD |
2223 | } |
2224 | ||
093d3ff1 | 2225 | static wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
2226 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2227 | if (data == NULL) { | |
2228 | data = new wxPyTreeItemData(); | |
2229 | data->SetId(item); // set the id | |
2230 | self->SetItemData(item, data); | |
2231 | } | |
2232 | return data; | |
2233 | } | |
093d3ff1 | 2234 | static PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
2235 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2236 | if (data == NULL) { | |
2237 | data = new wxPyTreeItemData(); | |
2238 | data->SetId(item); // set the id | |
2239 | self->SetItemData(item, data); | |
2240 | } | |
2241 | return data->GetData(); | |
2242 | } | |
093d3ff1 | 2243 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ |
d14a1e28 RD |
2244 | data->SetId(item); // set the id |
2245 | self->SetItemData(item, data); | |
2246 | } | |
093d3ff1 | 2247 | static void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ |
d14a1e28 RD |
2248 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2249 | if (data == NULL) { | |
2250 | data = new wxPyTreeItemData(obj); | |
2251 | data->SetId(item); // set the id | |
2252 | self->SetItemData(item, data); | |
2253 | } else | |
2254 | data->SetData(obj); | |
2255 | } | |
093d3ff1 | 2256 | static PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ |
5a446332 | 2257 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
2258 | PyObject* rval = PyList_New(0); |
2259 | wxArrayTreeItemIds array; | |
2260 | size_t num, x; | |
2261 | num = self->GetSelections(array); | |
2262 | for (x=0; x < num; x++) { | |
2263 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
ae8162c8 | 2264 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d14a1e28 | 2265 | PyList_Append(rval, item); |
1a10c483 | 2266 | Py_DECREF(item); |
d14a1e28 | 2267 | } |
4f89f6a3 | 2268 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2269 | return rval; |
2270 | } | |
093d3ff1 | 2271 | static PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
58203fa6 RD |
2272 | void* cookie = 0; |
2273 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
5a446332 | 2274 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2275 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 2276 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 2277 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 2278 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2279 | return tup; |
2280 | } | |
093d3ff1 | 2281 | static PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
58203fa6 | 2282 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); |
5a446332 | 2283 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2284 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 2285 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 2286 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 2287 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2288 | return tup; |
2289 | } | |
093d3ff1 | 2290 | static PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ |
d14a1e28 RD |
2291 | wxRect rect; |
2292 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
5a446332 | 2293 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2294 | wxRect* r = new wxRect(rect); |
ae8162c8 | 2295 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
4f89f6a3 | 2296 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2297 | return val; |
2298 | } | |
2299 | else | |
2300 | RETURN_NONE(); | |
2301 | } | |
b2dc1044 | 2302 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
c32bde28 | 2303 | |
32fe5131 | 2304 | SWIGINTERNINLINE PyObject* |
c32bde28 RD |
2305 | SWIG_From_bool(bool value) |
2306 | { | |
2307 | PyObject *obj = value ? Py_True : Py_False; | |
2308 | Py_INCREF(obj); | |
2309 | return obj; | |
2310 | } | |
2311 | ||
2312 | ||
d14a1e28 RD |
2313 | // C++ version of Python aware wxControl |
2314 | class wxPyControl : public wxControl | |
2315 | { | |
2316 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
2317 | public: | |
2318 | wxPyControl() : wxControl() {} | |
2319 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
2320 | const wxPoint& pos = wxDefaultPosition, | |
2321 | const wxSize& size = wxDefaultSize, | |
2322 | long style = 0, | |
2323 | const wxValidator& validator=wxDefaultValidator, | |
2324 | const wxString& name = wxPyControlNameStr) | |
2325 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
2326 | ||
db3e571a | 2327 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d14a1e28 | 2328 | |
976dbff5 RD |
2329 | bool DoEraseBackground(wxDC* dc) { |
2330 | #ifdef __WXMSW__ | |
2331 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
2332 | #else | |
2333 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
2334 | dc->Clear(); | |
2335 | return true; | |
2336 | #endif | |
2337 | } | |
2338 | ||
d14a1e28 RD |
2339 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
2340 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
2341 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
2342 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
2343 | ||
2344 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
2345 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
2346 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
2347 | ||
2348 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
2349 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
2350 | ||
2351 | DEC_PYCALLBACK__(InitDialog); | |
2352 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
2353 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
2354 | DEC_PYCALLBACK_BOOL_(Validate); | |
2355 | ||
2356 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
2357 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
2358 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
2359 | ||
2360 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
2361 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
2362 | ||
db3e571a | 2363 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 2364 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 2365 | |
51b83b37 RD |
2366 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
2367 | ||
8d38bd1d RD |
2368 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
2369 | ||
d14a1e28 RD |
2370 | PYPRIVATE; |
2371 | }; | |
2372 | ||
2373 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
2374 | ||
2375 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
2376 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
2377 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
2378 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
2379 | ||
2380 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
2381 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
2382 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
2383 | ||
2384 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
2385 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
2386 | ||
2387 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
2388 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
2389 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
2390 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
2391 | ||
2392 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
2393 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
2394 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
2395 | ||
2396 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
2397 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
2398 | ||
db3e571a | 2399 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
db3e571a | 2400 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 | 2401 | |
51b83b37 | 2402 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); |
8d38bd1d RD |
2403 | |
2404 | IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle); | |
2405 | ||
d14a1e28 RD |
2406 | |
2407 | ||
093d3ff1 | 2408 | static void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } |
e811c8ce RD |
2409 | |
2410 | #include <wx/generic/dragimgg.h> | |
2411 | ||
53aa7709 RD |
2412 | static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr); |
2413 | static wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){ | |
2414 | wxDateTime rv; | |
2415 | self->GetRange(&rv, NULL); | |
2416 | return rv; | |
2417 | } | |
2418 | static wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){ | |
2419 | wxDateTime rv; | |
2420 | self->GetRange(NULL, &rv); | |
2421 | return rv; | |
2422 | } | |
d14a1e28 RD |
2423 | #ifdef __cplusplus |
2424 | extern "C" { | |
2425 | #endif | |
c32bde28 | 2426 | static int _wrap_ButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
2427 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
2428 | return 1; | |
2429 | } | |
2430 | ||
2431 | ||
093d3ff1 | 2432 | static PyObject *_wrap_ButtonNameStr_get(void) { |
32fe5131 | 2433 | PyObject *pyobj = NULL; |
b2dc1044 RD |
2434 | |
2435 | { | |
2436 | #if wxUSE_UNICODE | |
2437 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2438 | #else | |
2439 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2440 | #endif | |
2441 | } | |
2442 | return pyobj; | |
2443 | } | |
2444 | ||
2445 | ||
c32bde28 | 2446 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2447 | PyObject *resultobj = NULL; |
d14a1e28 | 2448 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
2449 | int arg2 = (int) -1 ; |
2450 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2451 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
2452 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2453 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2454 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2455 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2456 | long arg6 = (long) 0 ; | |
2457 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2458 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2459 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2460 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2461 | wxButton *result; | |
ae8162c8 | 2462 | bool temp3 = false ; |
d14a1e28 RD |
2463 | wxPoint temp4 ; |
2464 | wxSize temp5 ; | |
ae8162c8 | 2465 | bool temp8 = false ; |
d14a1e28 | 2466 | PyObject * obj0 = 0 ; |
994141e6 | 2467 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2468 | PyObject * obj2 = 0 ; |
2469 | PyObject * obj3 = 0 ; | |
2470 | PyObject * obj4 = 0 ; | |
994141e6 | 2471 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2472 | PyObject * obj6 = 0 ; |
2473 | PyObject * obj7 = 0 ; | |
2474 | char *kwnames[] = { | |
2475 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2476 | }; | |
2477 | ||
248ed943 | 2478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
2479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 2481 | if (obj1) { |
093d3ff1 | 2482 | { |
32fe5131 | 2483 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
2484 | if (SWIG_arg_fail(2)) SWIG_fail; |
2485 | } | |
248ed943 RD |
2486 | } |
2487 | if (obj2) { | |
2488 | { | |
2489 | arg3 = wxString_in_helper(obj2); | |
2490 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2491 | temp3 = true; |
248ed943 | 2492 | } |
d14a1e28 RD |
2493 | } |
2494 | if (obj3) { | |
2495 | { | |
2496 | arg4 = &temp4; | |
2497 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2498 | } | |
2499 | } | |
2500 | if (obj4) { | |
2501 | { | |
2502 | arg5 = &temp5; | |
2503 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2504 | } | |
2505 | } | |
994141e6 | 2506 | if (obj5) { |
093d3ff1 | 2507 | { |
32fe5131 | 2508 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
2509 | if (SWIG_arg_fail(6)) SWIG_fail; |
2510 | } | |
994141e6 | 2511 | } |
d14a1e28 | 2512 | if (obj6) { |
093d3ff1 RD |
2513 | { |
2514 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2515 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2516 | if (arg7 == NULL) { | |
2517 | SWIG_null_ref("wxValidator"); | |
2518 | } | |
2519 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
2520 | } |
2521 | } | |
2522 | if (obj7) { | |
2523 | { | |
2524 | arg8 = wxString_in_helper(obj7); | |
2525 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2526 | temp8 = true; |
d14a1e28 RD |
2527 | } |
2528 | } | |
2529 | { | |
e3b71cb8 | 2530 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2532 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2533 | ||
2534 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2535 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2536 | } |
b0f7404b | 2537 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
2538 | { |
2539 | if (temp3) | |
2540 | delete arg3; | |
2541 | } | |
2542 | { | |
2543 | if (temp8) | |
2544 | delete arg8; | |
2545 | } | |
2546 | return resultobj; | |
2547 | fail: | |
2548 | { | |
2549 | if (temp3) | |
2550 | delete arg3; | |
2551 | } | |
2552 | { | |
2553 | if (temp8) | |
2554 | delete arg8; | |
2555 | } | |
2556 | return NULL; | |
2557 | } | |
2558 | ||
2559 | ||
c32bde28 | 2560 | static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2561 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2562 | wxButton *result; |
2563 | char *kwnames[] = { | |
2564 | NULL | |
2565 | }; | |
2566 | ||
2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
2568 | { | |
e3b71cb8 | 2569 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2571 | result = (wxButton *)new wxButton(); | |
2572 | ||
2573 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2574 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2575 | } |
b0f7404b | 2576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
2577 | return resultobj; |
2578 | fail: | |
2579 | return NULL; | |
2580 | } | |
2581 | ||
2582 | ||
c32bde28 | 2583 | static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2584 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2585 | wxButton *arg1 = (wxButton *) 0 ; |
2586 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2587 | int arg3 = (int) -1 ; |
2588 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2589 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
2590 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2591 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2592 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2593 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2594 | long arg7 = (long) 0 ; | |
2595 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2596 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2597 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2598 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2599 | bool result; | |
ae8162c8 | 2600 | bool temp4 = false ; |
d14a1e28 RD |
2601 | wxPoint temp5 ; |
2602 | wxSize temp6 ; | |
ae8162c8 | 2603 | bool temp9 = false ; |
d14a1e28 RD |
2604 | PyObject * obj0 = 0 ; |
2605 | PyObject * obj1 = 0 ; | |
994141e6 | 2606 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2607 | PyObject * obj3 = 0 ; |
2608 | PyObject * obj4 = 0 ; | |
2609 | PyObject * obj5 = 0 ; | |
994141e6 | 2610 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2611 | PyObject * obj7 = 0 ; |
2612 | PyObject * obj8 = 0 ; | |
2613 | char *kwnames[] = { | |
2614 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2615 | }; | |
2616 | ||
248ed943 | 2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
2618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); |
2619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2620 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2621 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 2622 | if (obj2) { |
093d3ff1 | 2623 | { |
32fe5131 | 2624 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
2625 | if (SWIG_arg_fail(3)) SWIG_fail; |
2626 | } | |
248ed943 RD |
2627 | } |
2628 | if (obj3) { | |
2629 | { | |
2630 | arg4 = wxString_in_helper(obj3); | |
2631 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 2632 | temp4 = true; |
248ed943 | 2633 | } |
d14a1e28 RD |
2634 | } |
2635 | if (obj4) { | |
2636 | { | |
2637 | arg5 = &temp5; | |
2638 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2639 | } | |
2640 | } | |
2641 | if (obj5) { | |
2642 | { | |
2643 | arg6 = &temp6; | |
2644 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2645 | } | |
2646 | } | |
994141e6 | 2647 | if (obj6) { |
093d3ff1 | 2648 | { |
32fe5131 | 2649 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
2650 | if (SWIG_arg_fail(7)) SWIG_fail; |
2651 | } | |
994141e6 | 2652 | } |
d14a1e28 | 2653 | if (obj7) { |
093d3ff1 RD |
2654 | { |
2655 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2656 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2657 | if (arg8 == NULL) { | |
2658 | SWIG_null_ref("wxValidator"); | |
2659 | } | |
2660 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
2661 | } |
2662 | } | |
2663 | if (obj8) { | |
2664 | { | |
2665 | arg9 = wxString_in_helper(obj8); | |
2666 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2667 | temp9 = true; |
d14a1e28 RD |
2668 | } |
2669 | } | |
2670 | { | |
2671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2672 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2673 | ||
2674 | wxPyEndAllowThreads(__tstate); | |
2675 | if (PyErr_Occurred()) SWIG_fail; | |
2676 | } | |
4f89f6a3 RD |
2677 | { |
2678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2679 | } | |
d14a1e28 RD |
2680 | { |
2681 | if (temp4) | |
2682 | delete arg4; | |
2683 | } | |
2684 | { | |
2685 | if (temp9) | |
2686 | delete arg9; | |
2687 | } | |
2688 | return resultobj; | |
2689 | fail: | |
2690 | { | |
2691 | if (temp4) | |
2692 | delete arg4; | |
2693 | } | |
2694 | { | |
2695 | if (temp9) | |
2696 | delete arg9; | |
2697 | } | |
2698 | return NULL; | |
2699 | } | |
2700 | ||
2701 | ||
c32bde28 | 2702 | static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2703 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2704 | wxButton *arg1 = (wxButton *) 0 ; |
2705 | PyObject * obj0 = 0 ; | |
2706 | char *kwnames[] = { | |
2707 | (char *) "self", NULL | |
2708 | }; | |
2709 | ||
2710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2711 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); |
2712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2713 | { |
2714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2715 | (arg1)->SetDefault(); | |
2716 | ||
2717 | wxPyEndAllowThreads(__tstate); | |
2718 | if (PyErr_Occurred()) SWIG_fail; | |
2719 | } | |
2720 | Py_INCREF(Py_None); resultobj = Py_None; | |
2721 | return resultobj; | |
2722 | fail: | |
2723 | return NULL; | |
2724 | } | |
2725 | ||
2726 | ||
c32bde28 | 2727 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2728 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2729 | wxSize result; |
2730 | char *kwnames[] = { | |
2731 | NULL | |
2732 | }; | |
2733 | ||
2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
2735 | { | |
2736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2737 | result = wxButton::GetDefaultSize(); | |
2738 | ||
2739 | wxPyEndAllowThreads(__tstate); | |
2740 | if (PyErr_Occurred()) SWIG_fail; | |
2741 | } | |
2742 | { | |
2743 | wxSize * resultptr; | |
32fe5131 | 2744 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 2745 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2746 | } |
2747 | return resultobj; | |
2748 | fail: | |
2749 | return NULL; | |
2750 | } | |
2751 | ||
2752 | ||
c32bde28 | 2753 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2754 | PyObject *resultobj = NULL; |
093d3ff1 | 2755 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
2756 | wxVisualAttributes result; |
2757 | PyObject * obj0 = 0 ; | |
2758 | char *kwnames[] = { | |
2759 | (char *) "variant", NULL | |
2760 | }; | |
2761 | ||
2762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2763 | if (obj0) { | |
093d3ff1 | 2764 | { |
32fe5131 | 2765 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
2766 | if (SWIG_arg_fail(1)) SWIG_fail; |
2767 | } | |
22bfe96c RD |
2768 | } |
2769 | { | |
110da5b0 | 2770 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 2771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 2772 | result = wxButton::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
2773 | |
2774 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 2775 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
2776 | } |
2777 | { | |
2778 | wxVisualAttributes * resultptr; | |
32fe5131 | 2779 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
2780 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
2781 | } | |
2782 | return resultobj; | |
2783 | fail: | |
2784 | return NULL; | |
2785 | } | |
2786 | ||
2787 | ||
c32bde28 | 2788 | static PyObject * Button_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2789 | PyObject *obj; |
2790 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2791 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
2792 | Py_INCREF(obj); | |
2793 | return Py_BuildValue((char *)""); | |
2794 | } | |
c32bde28 | 2795 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2796 | PyObject *resultobj = NULL; |
d14a1e28 | 2797 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
2798 | int arg2 = (int) -1 ; |
2799 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
2800 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
2801 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2802 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2803 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2804 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2805 | long arg6 = (long) wxBU_AUTODRAW ; | |
2806 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2807 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2808 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2809 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2810 | wxBitmapButton *result; | |
2811 | wxPoint temp4 ; | |
2812 | wxSize temp5 ; | |
ae8162c8 | 2813 | bool temp8 = false ; |
d14a1e28 | 2814 | PyObject * obj0 = 0 ; |
994141e6 | 2815 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2816 | PyObject * obj2 = 0 ; |
2817 | PyObject * obj3 = 0 ; | |
2818 | PyObject * obj4 = 0 ; | |
994141e6 | 2819 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2820 | PyObject * obj6 = 0 ; |
2821 | PyObject * obj7 = 0 ; | |
2822 | char *kwnames[] = { | |
2823 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2824 | }; | |
2825 | ||
248ed943 | 2826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
2827 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2828 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 2829 | if (obj1) { |
093d3ff1 | 2830 | { |
32fe5131 | 2831 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
2832 | if (SWIG_arg_fail(2)) SWIG_fail; |
2833 | } | |
248ed943 RD |
2834 | } |
2835 | if (obj2) { | |
093d3ff1 RD |
2836 | { |
2837 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2838 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2839 | if (arg3 == NULL) { | |
2840 | SWIG_null_ref("wxBitmap"); | |
2841 | } | |
2842 | if (SWIG_arg_fail(3)) SWIG_fail; | |
248ed943 | 2843 | } |
d14a1e28 RD |
2844 | } |
2845 | if (obj3) { | |
2846 | { | |
2847 | arg4 = &temp4; | |
2848 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2849 | } | |
2850 | } | |
2851 | if (obj4) { | |
2852 | { | |
2853 | arg5 = &temp5; | |
2854 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2855 | } | |
2856 | } | |
994141e6 | 2857 | if (obj5) { |
093d3ff1 | 2858 | { |
32fe5131 | 2859 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
2860 | if (SWIG_arg_fail(6)) SWIG_fail; |
2861 | } | |
994141e6 | 2862 | } |
d14a1e28 | 2863 | if (obj6) { |
093d3ff1 RD |
2864 | { |
2865 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2866 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2867 | if (arg7 == NULL) { | |
2868 | SWIG_null_ref("wxValidator"); | |
2869 | } | |
2870 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
2871 | } |
2872 | } | |
2873 | if (obj7) { | |
2874 | { | |
2875 | arg8 = wxString_in_helper(obj7); | |
2876 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2877 | temp8 = true; |
d14a1e28 RD |
2878 | } |
2879 | } | |
2880 | { | |
e3b71cb8 | 2881 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2883 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2884 | ||
2885 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2886 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2887 | } |
b0f7404b | 2888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
2889 | { |
2890 | if (temp8) | |
2891 | delete arg8; | |
2892 | } | |
2893 | return resultobj; | |
2894 | fail: | |
2895 | { | |
2896 | if (temp8) | |
2897 | delete arg8; | |
2898 | } | |
2899 | return NULL; | |
2900 | } | |
2901 | ||
2902 | ||
c32bde28 | 2903 | static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2904 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2905 | wxBitmapButton *result; |
2906 | char *kwnames[] = { | |
2907 | NULL | |
2908 | }; | |
2909 | ||
2910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
2911 | { | |
e3b71cb8 | 2912 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2914 | result = (wxBitmapButton *)new wxBitmapButton(); | |
2915 | ||
2916 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2917 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2918 | } |
b0f7404b | 2919 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
2920 | return resultobj; |
2921 | fail: | |
2922 | return NULL; | |
2923 | } | |
2924 | ||
2925 | ||
c32bde28 | 2926 | static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2927 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2928 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
2929 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2930 | int arg3 = (int) -1 ; |
2931 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
2932 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
2933 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2934 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2935 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2936 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2937 | long arg7 = (long) wxBU_AUTODRAW ; | |
2938 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2939 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2940 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2941 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2942 | bool result; | |
2943 | wxPoint temp5 ; | |
2944 | wxSize temp6 ; | |
ae8162c8 | 2945 | bool temp9 = false ; |
d14a1e28 RD |
2946 | PyObject * obj0 = 0 ; |
2947 | PyObject * obj1 = 0 ; | |
994141e6 | 2948 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2949 | PyObject * obj3 = 0 ; |
2950 | PyObject * obj4 = 0 ; | |
2951 | PyObject * obj5 = 0 ; | |
994141e6 | 2952 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2953 | PyObject * obj7 = 0 ; |
2954 | PyObject * obj8 = 0 ; | |
2955 | char *kwnames[] = { | |
2956 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2957 | }; | |
2958 | ||
248ed943 | 2959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
2960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2962 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2963 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 2964 | if (obj2) { |
093d3ff1 | 2965 | { |
32fe5131 | 2966 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
2967 | if (SWIG_arg_fail(3)) SWIG_fail; |
2968 | } | |
248ed943 RD |
2969 | } |
2970 | if (obj3) { | |
093d3ff1 RD |
2971 | { |
2972 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2973 | if (SWIG_arg_fail(4)) SWIG_fail; | |
2974 | if (arg4 == NULL) { | |
2975 | SWIG_null_ref("wxBitmap"); | |
2976 | } | |
2977 | if (SWIG_arg_fail(4)) SWIG_fail; | |
248ed943 | 2978 | } |
d14a1e28 RD |
2979 | } |
2980 | if (obj4) { | |
2981 | { | |
2982 | arg5 = &temp5; | |
2983 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2984 | } | |
2985 | } | |
2986 | if (obj5) { | |
2987 | { | |
2988 | arg6 = &temp6; | |
2989 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2990 | } | |
2991 | } | |
994141e6 | 2992 | if (obj6) { |
093d3ff1 | 2993 | { |
32fe5131 | 2994 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
2995 | if (SWIG_arg_fail(7)) SWIG_fail; |
2996 | } | |
994141e6 | 2997 | } |
d14a1e28 | 2998 | if (obj7) { |
093d3ff1 RD |
2999 | { |
3000 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3001 | if (SWIG_arg_fail(8)) SWIG_fail; | |
3002 | if (arg8 == NULL) { | |
3003 | SWIG_null_ref("wxValidator"); | |
3004 | } | |
3005 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
3006 | } |
3007 | } | |
3008 | if (obj8) { | |
3009 | { | |
3010 | arg9 = wxString_in_helper(obj8); | |
3011 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 3012 | temp9 = true; |
d14a1e28 RD |
3013 | } |
3014 | } | |
3015 | { | |
3016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3017 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3018 | ||
3019 | wxPyEndAllowThreads(__tstate); | |
3020 | if (PyErr_Occurred()) SWIG_fail; | |
3021 | } | |
4f89f6a3 RD |
3022 | { |
3023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3024 | } | |
d14a1e28 RD |
3025 | { |
3026 | if (temp9) | |
3027 | delete arg9; | |
3028 | } | |
3029 | return resultobj; | |
3030 | fail: | |
3031 | { | |
3032 | if (temp9) | |
3033 | delete arg9; | |
3034 | } | |
3035 | return NULL; | |
3036 | } | |
3037 | ||
3038 | ||
c32bde28 | 3039 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3040 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3041 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3042 | wxBitmap result; | |
3043 | PyObject * obj0 = 0 ; | |
3044 | char *kwnames[] = { | |
3045 | (char *) "self", NULL | |
3046 | }; | |
3047 | ||
3048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3049 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3050 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3051 | { |
3052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3053 | result = (arg1)->GetBitmapLabel(); | |
3054 | ||
3055 | wxPyEndAllowThreads(__tstate); | |
3056 | if (PyErr_Occurred()) SWIG_fail; | |
3057 | } | |
3058 | { | |
3059 | wxBitmap * resultptr; | |
32fe5131 | 3060 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 3061 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3062 | } |
3063 | return resultobj; | |
3064 | fail: | |
3065 | return NULL; | |
3066 | } | |
3067 | ||
3068 | ||
c32bde28 | 3069 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3070 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3071 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3072 | wxBitmap result; | |
3073 | PyObject * obj0 = 0 ; | |
3074 | char *kwnames[] = { | |
3075 | (char *) "self", NULL | |
3076 | }; | |
3077 | ||
3078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3079 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3080 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3081 | { |
3082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3083 | result = (arg1)->GetBitmapDisabled(); | |
3084 | ||
3085 | wxPyEndAllowThreads(__tstate); | |
3086 | if (PyErr_Occurred()) SWIG_fail; | |
3087 | } | |
3088 | { | |
3089 | wxBitmap * resultptr; | |
32fe5131 | 3090 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 3091 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3092 | } |
3093 | return resultobj; | |
3094 | fail: | |
3095 | return NULL; | |
3096 | } | |
3097 | ||
3098 | ||
c32bde28 | 3099 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3100 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3101 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3102 | wxBitmap result; | |
3103 | PyObject * obj0 = 0 ; | |
3104 | char *kwnames[] = { | |
3105 | (char *) "self", NULL | |
3106 | }; | |
3107 | ||
3108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3111 | { |
3112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3113 | result = (arg1)->GetBitmapFocus(); | |
3114 | ||
3115 | wxPyEndAllowThreads(__tstate); | |
3116 | if (PyErr_Occurred()) SWIG_fail; | |
3117 | } | |
3118 | { | |
3119 | wxBitmap * resultptr; | |
32fe5131 | 3120 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 3121 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3122 | } |
3123 | return resultobj; | |
3124 | fail: | |
3125 | return NULL; | |
3126 | } | |
3127 | ||
3128 | ||
c32bde28 | 3129 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3130 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3131 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3132 | wxBitmap result; | |
3133 | PyObject * obj0 = 0 ; | |
3134 | char *kwnames[] = { | |
3135 | (char *) "self", NULL | |
3136 | }; | |
3137 | ||
3138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3139 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3140 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3141 | { |
3142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3143 | result = (arg1)->GetBitmapSelected(); | |
3144 | ||
3145 | wxPyEndAllowThreads(__tstate); | |
3146 | if (PyErr_Occurred()) SWIG_fail; | |
3147 | } | |
3148 | { | |
3149 | wxBitmap * resultptr; | |
32fe5131 | 3150 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 3151 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3152 | } |
3153 | return resultobj; | |
3154 | fail: | |
3155 | return NULL; | |
3156 | } | |
3157 | ||
3158 | ||
c32bde28 | 3159 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3160 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3161 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3162 | wxBitmap *arg2 = 0 ; | |
3163 | PyObject * obj0 = 0 ; | |
3164 | PyObject * obj1 = 0 ; | |
3165 | char *kwnames[] = { | |
3166 | (char *) "self",(char *) "bitmap", NULL | |
3167 | }; | |
3168 | ||
3169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3172 | { | |
3173 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3174 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3175 | if (arg2 == NULL) { | |
3176 | SWIG_null_ref("wxBitmap"); | |
3177 | } | |
3178 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3179 | } |
3180 | { | |
3181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3182 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
3183 | ||
3184 | wxPyEndAllowThreads(__tstate); | |
3185 | if (PyErr_Occurred()) SWIG_fail; | |
3186 | } | |
3187 | Py_INCREF(Py_None); resultobj = Py_None; | |
3188 | return resultobj; | |
3189 | fail: | |
3190 | return NULL; | |
3191 | } | |
3192 | ||
3193 | ||
c32bde28 | 3194 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3195 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3196 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3197 | wxBitmap *arg2 = 0 ; | |
3198 | PyObject * obj0 = 0 ; | |
3199 | PyObject * obj1 = 0 ; | |
3200 | char *kwnames[] = { | |
3201 | (char *) "self",(char *) "bitmap", NULL | |
3202 | }; | |
3203 | ||
3204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3205 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3206 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3207 | { | |
3208 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3209 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3210 | if (arg2 == NULL) { | |
3211 | SWIG_null_ref("wxBitmap"); | |
3212 | } | |
3213 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3214 | } |
3215 | { | |
3216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3217 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
3218 | ||
3219 | wxPyEndAllowThreads(__tstate); | |
3220 | if (PyErr_Occurred()) SWIG_fail; | |
3221 | } | |
3222 | Py_INCREF(Py_None); resultobj = Py_None; | |
3223 | return resultobj; | |
3224 | fail: | |
3225 | return NULL; | |
3226 | } | |
3227 | ||
3228 | ||
c32bde28 | 3229 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3230 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3231 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3232 | wxBitmap *arg2 = 0 ; | |
3233 | PyObject * obj0 = 0 ; | |
3234 | PyObject * obj1 = 0 ; | |
3235 | char *kwnames[] = { | |
3236 | (char *) "self",(char *) "bitmap", NULL | |
3237 | }; | |
3238 | ||
3239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3242 | { | |
3243 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3244 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3245 | if (arg2 == NULL) { | |
3246 | SWIG_null_ref("wxBitmap"); | |
3247 | } | |
3248 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3249 | } |
3250 | { | |
3251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3252 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
3253 | ||
3254 | wxPyEndAllowThreads(__tstate); | |
3255 | if (PyErr_Occurred()) SWIG_fail; | |
3256 | } | |
3257 | Py_INCREF(Py_None); resultobj = Py_None; | |
3258 | return resultobj; | |
3259 | fail: | |
3260 | return NULL; | |
3261 | } | |
3262 | ||
3263 | ||
c32bde28 | 3264 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3265 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3266 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3267 | wxBitmap *arg2 = 0 ; | |
3268 | PyObject * obj0 = 0 ; | |
3269 | PyObject * obj1 = 0 ; | |
3270 | char *kwnames[] = { | |
3271 | (char *) "self",(char *) "bitmap", NULL | |
3272 | }; | |
3273 | ||
3274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3275 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3276 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3277 | { | |
3278 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3279 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3280 | if (arg2 == NULL) { | |
3281 | SWIG_null_ref("wxBitmap"); | |
3282 | } | |
3283 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3284 | } |
3285 | { | |
3286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3287 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
3288 | ||
3289 | wxPyEndAllowThreads(__tstate); | |
3290 | if (PyErr_Occurred()) SWIG_fail; | |
3291 | } | |
3292 | Py_INCREF(Py_None); resultobj = Py_None; | |
3293 | return resultobj; | |
3294 | fail: | |
3295 | return NULL; | |
3296 | } | |
3297 | ||
3298 | ||
c32bde28 | 3299 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3300 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3301 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3302 | int arg2 ; | |
3303 | int arg3 ; | |
3304 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3305 | PyObject * obj1 = 0 ; |
3306 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3307 | char *kwnames[] = { |
3308 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3309 | }; | |
3310 | ||
994141e6 | 3311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
3312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3314 | { | |
32fe5131 | 3315 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3316 | if (SWIG_arg_fail(2)) SWIG_fail; |
3317 | } | |
3318 | { | |
32fe5131 | 3319 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
3320 | if (SWIG_arg_fail(3)) SWIG_fail; |
3321 | } | |
d14a1e28 RD |
3322 | { |
3323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3324 | (arg1)->SetMargins(arg2,arg3); | |
3325 | ||
3326 | wxPyEndAllowThreads(__tstate); | |
3327 | if (PyErr_Occurred()) SWIG_fail; | |
3328 | } | |
3329 | Py_INCREF(Py_None); resultobj = Py_None; | |
3330 | return resultobj; | |
3331 | fail: | |
3332 | return NULL; | |
3333 | } | |
3334 | ||
3335 | ||
c32bde28 | 3336 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3337 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3338 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3339 | int result; | |
3340 | PyObject * obj0 = 0 ; | |
3341 | char *kwnames[] = { | |
3342 | (char *) "self", NULL | |
3343 | }; | |
3344 | ||
3345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3346 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3347 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3348 | { |
3349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3350 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
3351 | ||
3352 | wxPyEndAllowThreads(__tstate); | |
3353 | if (PyErr_Occurred()) SWIG_fail; | |
3354 | } | |
093d3ff1 | 3355 | { |
32fe5131 | 3356 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 3357 | } |
d14a1e28 RD |
3358 | return resultobj; |
3359 | fail: | |
3360 | return NULL; | |
3361 | } | |
3362 | ||
3363 | ||
c32bde28 | 3364 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3365 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3366 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3367 | int result; | |
3368 | PyObject * obj0 = 0 ; | |
3369 | char *kwnames[] = { | |
3370 | (char *) "self", NULL | |
3371 | }; | |
3372 | ||
3373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3376 | { |
3377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3378 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
3379 | ||
3380 | wxPyEndAllowThreads(__tstate); | |
3381 | if (PyErr_Occurred()) SWIG_fail; | |
3382 | } | |
093d3ff1 | 3383 | { |
32fe5131 | 3384 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 3385 | } |
d14a1e28 RD |
3386 | return resultobj; |
3387 | fail: | |
3388 | return NULL; | |
3389 | } | |
3390 | ||
3391 | ||
c32bde28 | 3392 | static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3393 | PyObject *obj; |
3394 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3395 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
3396 | Py_INCREF(obj); | |
3397 | return Py_BuildValue((char *)""); | |
3398 | } | |
c32bde28 | 3399 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
3400 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
3401 | return 1; | |
3402 | } | |
3403 | ||
3404 | ||
093d3ff1 | 3405 | static PyObject *_wrap_CheckBoxNameStr_get(void) { |
32fe5131 | 3406 | PyObject *pyobj = NULL; |
b2dc1044 RD |
3407 | |
3408 | { | |
3409 | #if wxUSE_UNICODE | |
3410 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3411 | #else | |
3412 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3413 | #endif | |
3414 | } | |
3415 | return pyobj; | |
3416 | } | |
3417 | ||
3418 | ||
c32bde28 | 3419 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3420 | PyObject *resultobj = NULL; |
d14a1e28 | 3421 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
3422 | int arg2 = (int) -1 ; |
3423 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3424 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
3425 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3426 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3427 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3428 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3429 | long arg6 = (long) 0 ; | |
3430 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3431 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3432 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
3433 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3434 | wxCheckBox *result; | |
ae8162c8 | 3435 | bool temp3 = false ; |
d14a1e28 RD |
3436 | wxPoint temp4 ; |
3437 | wxSize temp5 ; | |
ae8162c8 | 3438 | bool temp8 = false ; |
d14a1e28 | 3439 | PyObject * obj0 = 0 ; |
994141e6 | 3440 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3441 | PyObject * obj2 = 0 ; |
3442 | PyObject * obj3 = 0 ; | |
3443 | PyObject * obj4 = 0 ; | |
994141e6 | 3444 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3445 | PyObject * obj6 = 0 ; |
3446 | PyObject * obj7 = 0 ; | |
3447 | char *kwnames[] = { | |
3448 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3449 | }; | |
3450 | ||
248ed943 | 3451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
3452 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
3453 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 3454 | if (obj1) { |
093d3ff1 | 3455 | { |
32fe5131 | 3456 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3457 | if (SWIG_arg_fail(2)) SWIG_fail; |
3458 | } | |
248ed943 RD |
3459 | } |
3460 | if (obj2) { | |
3461 | { | |
3462 | arg3 = wxString_in_helper(obj2); | |
3463 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3464 | temp3 = true; |
248ed943 | 3465 | } |
d14a1e28 RD |
3466 | } |
3467 | if (obj3) { | |
3468 | { | |
3469 | arg4 = &temp4; | |
3470 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3471 | } | |
3472 | } | |
3473 | if (obj4) { | |
3474 | { | |
3475 | arg5 = &temp5; | |
3476 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3477 | } | |
3478 | } | |
994141e6 | 3479 | if (obj5) { |
093d3ff1 | 3480 | { |
32fe5131 | 3481 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
3482 | if (SWIG_arg_fail(6)) SWIG_fail; |
3483 | } | |
994141e6 | 3484 | } |
d14a1e28 | 3485 | if (obj6) { |
093d3ff1 RD |
3486 | { |
3487 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3488 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3489 | if (arg7 == NULL) { | |
3490 | SWIG_null_ref("wxValidator"); | |
3491 | } | |
3492 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
3493 | } |
3494 | } | |
3495 | if (obj7) { | |
3496 | { | |
3497 | arg8 = wxString_in_helper(obj7); | |
3498 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 3499 | temp8 = true; |
d14a1e28 RD |
3500 | } |
3501 | } | |
3502 | { | |
e3b71cb8 | 3503 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3505 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3506 | ||
3507 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3508 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3509 | } |
15afbcd0 | 3510 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
3511 | { |
3512 | if (temp3) | |
3513 | delete arg3; | |
3514 | } | |
3515 | { | |
3516 | if (temp8) | |
3517 | delete arg8; | |
3518 | } | |
3519 | return resultobj; | |
3520 | fail: | |
3521 | { | |
3522 | if (temp3) | |
3523 | delete arg3; | |
3524 | } | |
3525 | { | |
3526 | if (temp8) | |
3527 | delete arg8; | |
3528 | } | |
3529 | return NULL; | |
3530 | } | |
3531 | ||
3532 | ||
c32bde28 | 3533 | static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3534 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3535 | wxCheckBox *result; |
3536 | char *kwnames[] = { | |
3537 | NULL | |
3538 | }; | |
3539 | ||
3540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
3541 | { | |
e3b71cb8 | 3542 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3544 | result = (wxCheckBox *)new wxCheckBox(); | |
3545 | ||
3546 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3547 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3548 | } |
15afbcd0 | 3549 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
3550 | return resultobj; |
3551 | fail: | |
3552 | return NULL; | |
3553 | } | |
3554 | ||
3555 | ||
c32bde28 | 3556 | static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3557 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3558 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3559 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
3560 | int arg3 = (int) -1 ; |
3561 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3562 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
3563 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3564 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3565 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3566 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3567 | long arg7 = (long) 0 ; | |
3568 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3569 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3570 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
3571 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3572 | bool result; | |
ae8162c8 | 3573 | bool temp4 = false ; |
d14a1e28 RD |
3574 | wxPoint temp5 ; |
3575 | wxSize temp6 ; | |
ae8162c8 | 3576 | bool temp9 = false ; |
d14a1e28 RD |
3577 | PyObject * obj0 = 0 ; |
3578 | PyObject * obj1 = 0 ; | |
994141e6 | 3579 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3580 | PyObject * obj3 = 0 ; |
3581 | PyObject * obj4 = 0 ; | |
3582 | PyObject * obj5 = 0 ; | |
994141e6 | 3583 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3584 | PyObject * obj7 = 0 ; |
3585 | PyObject * obj8 = 0 ; | |
3586 | char *kwnames[] = { | |
3587 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3588 | }; | |
3589 | ||
248ed943 | 3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
3591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3593 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3594 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 3595 | if (obj2) { |
093d3ff1 | 3596 | { |
32fe5131 | 3597 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
3598 | if (SWIG_arg_fail(3)) SWIG_fail; |
3599 | } | |
248ed943 RD |
3600 | } |
3601 | if (obj3) { | |
3602 | { | |
3603 | arg4 = wxString_in_helper(obj3); | |
3604 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3605 | temp4 = true; |
248ed943 | 3606 | } |
d14a1e28 RD |
3607 | } |
3608 | if (obj4) { | |
3609 | { | |
3610 | arg5 = &temp5; | |
3611 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3612 | } | |
3613 | } | |
3614 | if (obj5) { | |
3615 | { | |
3616 | arg6 = &temp6; | |
3617 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3618 | } | |
3619 | } | |
994141e6 | 3620 | if (obj6) { |
093d3ff1 | 3621 | { |
32fe5131 | 3622 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
3623 | if (SWIG_arg_fail(7)) SWIG_fail; |
3624 | } | |
994141e6 | 3625 | } |
d14a1e28 | 3626 | if (obj7) { |
093d3ff1 RD |
3627 | { |
3628 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3629 | if (SWIG_arg_fail(8)) SWIG_fail; | |
3630 | if (arg8 == NULL) { | |
3631 | SWIG_null_ref("wxValidator"); | |
3632 | } | |
3633 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
3634 | } |
3635 | } | |
3636 | if (obj8) { | |
3637 | { | |
3638 | arg9 = wxString_in_helper(obj8); | |
3639 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 3640 | temp9 = true; |
d14a1e28 RD |
3641 | } |
3642 | } | |
3643 | { | |
3644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3645 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3646 | ||
3647 | wxPyEndAllowThreads(__tstate); | |
3648 | if (PyErr_Occurred()) SWIG_fail; | |
3649 | } | |
4f89f6a3 RD |
3650 | { |
3651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3652 | } | |
d14a1e28 RD |
3653 | { |
3654 | if (temp4) | |
3655 | delete arg4; | |
3656 | } | |
3657 | { | |
3658 | if (temp9) | |
3659 | delete arg9; | |
3660 | } | |
3661 | return resultobj; | |
3662 | fail: | |
3663 | { | |
3664 | if (temp4) | |
3665 | delete arg4; | |
3666 | } | |
3667 | { | |
3668 | if (temp9) | |
3669 | delete arg9; | |
3670 | } | |
3671 | return NULL; | |
3672 | } | |
3673 | ||
3674 | ||
c32bde28 | 3675 | static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3676 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3677 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3678 | bool result; | |
3679 | PyObject * obj0 = 0 ; | |
3680 | char *kwnames[] = { | |
3681 | (char *) "self", NULL | |
3682 | }; | |
3683 | ||
3684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3685 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3686 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3687 | { |
3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3689 | result = (bool)(arg1)->GetValue(); | |
3690 | ||
3691 | wxPyEndAllowThreads(__tstate); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
4f89f6a3 RD |
3694 | { |
3695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3696 | } | |
d14a1e28 RD |
3697 | return resultobj; |
3698 | fail: | |
3699 | return NULL; | |
3700 | } | |
3701 | ||
3702 | ||
c32bde28 | 3703 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3704 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3705 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3706 | bool result; | |
3707 | PyObject * obj0 = 0 ; | |
3708 | char *kwnames[] = { | |
3709 | (char *) "self", NULL | |
3710 | }; | |
3711 | ||
3712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3715 | { |
3716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3717 | result = (bool)(arg1)->IsChecked(); | |
3718 | ||
3719 | wxPyEndAllowThreads(__tstate); | |
3720 | if (PyErr_Occurred()) SWIG_fail; | |
3721 | } | |
4f89f6a3 RD |
3722 | { |
3723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3724 | } | |
d14a1e28 RD |
3725 | return resultobj; |
3726 | fail: | |
3727 | return NULL; | |
3728 | } | |
3729 | ||
3730 | ||
c32bde28 | 3731 | static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3732 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3733 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3734 | bool arg2 ; | |
3735 | PyObject * obj0 = 0 ; | |
3736 | PyObject * obj1 = 0 ; | |
3737 | char *kwnames[] = { | |
3738 | (char *) "self",(char *) "state", NULL | |
3739 | }; | |
3740 | ||
3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3744 | { | |
32fe5131 | 3745 | arg2 = static_cast<bool const >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
3746 | if (SWIG_arg_fail(2)) SWIG_fail; |
3747 | } | |
d14a1e28 RD |
3748 | { |
3749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3750 | (arg1)->SetValue(arg2); | |
3751 | ||
3752 | wxPyEndAllowThreads(__tstate); | |
3753 | if (PyErr_Occurred()) SWIG_fail; | |
3754 | } | |
3755 | Py_INCREF(Py_None); resultobj = Py_None; | |
3756 | return resultobj; | |
3757 | fail: | |
3758 | return NULL; | |
3759 | } | |
3760 | ||
3761 | ||
c32bde28 | 3762 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3763 | PyObject *resultobj = NULL; |
d14a1e28 | 3764 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
093d3ff1 | 3765 | wxCheckBoxState result; |
d14a1e28 RD |
3766 | PyObject * obj0 = 0 ; |
3767 | char *kwnames[] = { | |
3768 | (char *) "self", NULL | |
3769 | }; | |
3770 | ||
3771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3774 | { |
3775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3776 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); |
d14a1e28 RD |
3777 | |
3778 | wxPyEndAllowThreads(__tstate); | |
3779 | if (PyErr_Occurred()) SWIG_fail; | |
3780 | } | |
093d3ff1 | 3781 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
3782 | return resultobj; |
3783 | fail: | |
3784 | return NULL; | |
3785 | } | |
3786 | ||
3787 | ||
c32bde28 | 3788 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3789 | PyObject *resultobj = NULL; |
d14a1e28 | 3790 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
093d3ff1 | 3791 | wxCheckBoxState arg2 ; |
d14a1e28 | 3792 | PyObject * obj0 = 0 ; |
994141e6 | 3793 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3794 | char *kwnames[] = { |
3795 | (char *) "self",(char *) "state", NULL | |
3796 | }; | |
3797 | ||
994141e6 | 3798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
3799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3801 | { | |
32fe5131 | 3802 | arg2 = static_cast<wxCheckBoxState >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3803 | if (SWIG_arg_fail(2)) SWIG_fail; |
3804 | } | |
d14a1e28 RD |
3805 | { |
3806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 3807 | (arg1)->Set3StateValue(arg2); |
d14a1e28 RD |
3808 | |
3809 | wxPyEndAllowThreads(__tstate); | |
3810 | if (PyErr_Occurred()) SWIG_fail; | |
3811 | } | |
3812 | Py_INCREF(Py_None); resultobj = Py_None; | |
3813 | return resultobj; | |
3814 | fail: | |
3815 | return NULL; | |
3816 | } | |
3817 | ||
3818 | ||
c32bde28 | 3819 | static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3820 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3821 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3822 | bool result; | |
3823 | PyObject * obj0 = 0 ; | |
3824 | char *kwnames[] = { | |
3825 | (char *) "self", NULL | |
3826 | }; | |
3827 | ||
3828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3831 | { |
3832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3833 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
3834 | ||
3835 | wxPyEndAllowThreads(__tstate); | |
3836 | if (PyErr_Occurred()) SWIG_fail; | |
3837 | } | |
4f89f6a3 RD |
3838 | { |
3839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3840 | } | |
d14a1e28 RD |
3841 | return resultobj; |
3842 | fail: | |
3843 | return NULL; | |
3844 | } | |
3845 | ||
3846 | ||
c32bde28 | 3847 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3848 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3849 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3850 | bool result; | |
3851 | PyObject * obj0 = 0 ; | |
3852 | char *kwnames[] = { | |
3853 | (char *) "self", NULL | |
3854 | }; | |
3855 | ||
3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3859 | { |
3860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3861 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
3862 | ||
3863 | wxPyEndAllowThreads(__tstate); | |
3864 | if (PyErr_Occurred()) SWIG_fail; | |
3865 | } | |
4f89f6a3 RD |
3866 | { |
3867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3868 | } | |
d14a1e28 RD |
3869 | return resultobj; |
3870 | fail: | |
3871 | return NULL; | |
3872 | } | |
3873 | ||
3874 | ||
c32bde28 | 3875 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3876 | PyObject *resultobj = NULL; |
093d3ff1 | 3877 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
3878 | wxVisualAttributes result; |
3879 | PyObject * obj0 = 0 ; | |
3880 | char *kwnames[] = { | |
3881 | (char *) "variant", NULL | |
3882 | }; | |
3883 | ||
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3885 | if (obj0) { | |
093d3ff1 | 3886 | { |
32fe5131 | 3887 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3888 | if (SWIG_arg_fail(1)) SWIG_fail; |
3889 | } | |
22bfe96c RD |
3890 | } |
3891 | { | |
110da5b0 | 3892 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 3893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 3894 | result = wxCheckBox::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
3895 | |
3896 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3897 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3898 | } |
3899 | { | |
3900 | wxVisualAttributes * resultptr; | |
32fe5131 | 3901 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
3902 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
3903 | } | |
3904 | return resultobj; | |
3905 | fail: | |
3906 | return NULL; | |
3907 | } | |
3908 | ||
3909 | ||
c32bde28 | 3910 | static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3911 | PyObject *obj; |
3912 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3913 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
3914 | Py_INCREF(obj); | |
3915 | return Py_BuildValue((char *)""); | |
3916 | } | |
c32bde28 | 3917 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
b2dc1044 RD |
3918 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
3919 | return 1; | |
3920 | } | |
3921 | ||
3922 | ||
093d3ff1 | 3923 | static PyObject *_wrap_ChoiceNameStr_get(void) { |
32fe5131 | 3924 | PyObject *pyobj = NULL; |
b2dc1044 RD |
3925 | |
3926 | { | |
3927 | #if wxUSE_UNICODE | |
3928 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3929 | #else | |
3930 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3931 | #endif | |
3932 | } | |
3933 | return pyobj; | |
3934 | } | |
3935 | ||
3936 | ||
c32bde28 | 3937 | static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3938 | PyObject *resultobj = NULL; |
d14a1e28 | 3939 | wxWindow *arg1 = (wxWindow *) 0 ; |
a95a7133 | 3940 | int arg2 = (int) -1 ; |
d14a1e28 RD |
3941 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
3942 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3943 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3944 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
3945 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
3946 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
3947 | long arg6 = (long) 0 ; | |
3948 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3949 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3950 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
3951 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
3952 | wxChoice *result; |
3953 | wxPoint temp3 ; | |
3954 | wxSize temp4 ; | |
ae8162c8 RD |
3955 | bool temp5 = false ; |
3956 | bool temp8 = false ; | |
d14a1e28 | 3957 | PyObject * obj0 = 0 ; |
994141e6 | 3958 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3959 | PyObject * obj2 = 0 ; |
3960 | PyObject * obj3 = 0 ; | |
3961 | PyObject * obj4 = 0 ; | |
994141e6 | 3962 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3963 | PyObject * obj6 = 0 ; |
3964 | PyObject * obj7 = 0 ; | |
3965 | char *kwnames[] = { | |
3966 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3967 | }; | |
3968 | ||
a95a7133 | 3969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
3970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
3971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a95a7133 | 3972 | if (obj1) { |
093d3ff1 | 3973 | { |
32fe5131 | 3974 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3975 | if (SWIG_arg_fail(2)) SWIG_fail; |
3976 | } | |
a95a7133 | 3977 | } |
d14a1e28 RD |
3978 | if (obj2) { |
3979 | { | |
3980 | arg3 = &temp3; | |
3981 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
3982 | } | |
3983 | } | |
3984 | if (obj3) { | |
3985 | { | |
3986 | arg4 = &temp4; | |
3987 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
3988 | } | |
3989 | } | |
3990 | if (obj4) { | |
3991 | { | |
4d5c3d91 RD |
3992 | if (! PySequence_Check(obj4)) { |
3993 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3994 | SWIG_fail; | |
3995 | } | |
3996 | arg5 = new wxArrayString; | |
ae8162c8 | 3997 | temp5 = true; |
4d5c3d91 RD |
3998 | int i, len=PySequence_Length(obj4); |
3999 | for (i=0; i<len; i++) { | |
4000 | PyObject* item = PySequence_GetItem(obj4, i); | |
71237536 | 4001 | wxString* s = wxString_in_helper(item); |
74a57fcd | 4002 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
4003 | arg5->Add(*s); |
4004 | delete s; | |
4d5c3d91 | 4005 | Py_DECREF(item); |
4d5c3d91 | 4006 | } |
d14a1e28 RD |
4007 | } |
4008 | } | |
994141e6 | 4009 | if (obj5) { |
093d3ff1 | 4010 | { |
32fe5131 | 4011 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
4012 | if (SWIG_arg_fail(6)) SWIG_fail; |
4013 | } | |
994141e6 | 4014 | } |
d14a1e28 | 4015 | if (obj6) { |
093d3ff1 RD |
4016 | { |
4017 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4018 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4019 | if (arg7 == NULL) { | |
4020 | SWIG_null_ref("wxValidator"); | |
4021 | } | |
4022 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
4023 | } |
4024 | } | |
4025 | if (obj7) { | |
4026 | { | |
4d5c3d91 RD |
4027 | arg8 = wxString_in_helper(obj7); |
4028 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 4029 | temp8 = true; |
d14a1e28 RD |
4030 | } |
4031 | } | |
4032 | { | |
e3b71cb8 | 4033 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 4035 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
4036 | |
4037 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4038 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4039 | } |
15afbcd0 | 4040 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 4041 | { |
3adfb63b | 4042 | if (temp5) delete arg5; |
d14a1e28 RD |
4043 | } |
4044 | { | |
4045 | if (temp8) | |
4d5c3d91 | 4046 | delete arg8; |
d14a1e28 RD |
4047 | } |
4048 | return resultobj; | |
4049 | fail: | |
4050 | { | |
3adfb63b | 4051 | if (temp5) delete arg5; |
d14a1e28 RD |
4052 | } |
4053 | { | |
4054 | if (temp8) | |
4d5c3d91 | 4055 | delete arg8; |
d14a1e28 RD |
4056 | } |
4057 | return NULL; | |
4058 | } | |
4059 | ||
4060 | ||
c32bde28 | 4061 | static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4062 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4063 | wxChoice *result; |
4064 | char *kwnames[] = { | |
4065 | NULL | |
4066 | }; | |
4067 | ||
4068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
4069 | { | |
e3b71cb8 | 4070 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4072 | result = (wxChoice *)new wxChoice(); | |
4073 | ||
4074 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4075 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4076 | } |
15afbcd0 | 4077 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
4078 | return resultobj; |
4079 | fail: | |
4080 | return NULL; | |
4081 | } | |
4082 | ||
4083 | ||
c32bde28 | 4084 | static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4085 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4086 | wxChoice *arg1 = (wxChoice *) 0 ; |
4087 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 4088 | int arg3 = (int) -1 ; |
d14a1e28 RD |
4089 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4090 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4091 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4092 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
4093 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
4094 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
4095 | long arg7 = (long) 0 ; | |
4096 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4097 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4098 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
4099 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
4100 | bool result; |
4101 | wxPoint temp4 ; | |
4102 | wxSize temp5 ; | |
ae8162c8 RD |
4103 | bool temp6 = false ; |
4104 | bool temp9 = false ; | |
d14a1e28 RD |
4105 | PyObject * obj0 = 0 ; |
4106 | PyObject * obj1 = 0 ; | |
994141e6 | 4107 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4108 | PyObject * obj3 = 0 ; |
4109 | PyObject * obj4 = 0 ; | |
4110 | PyObject * obj5 = 0 ; | |
994141e6 | 4111 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4112 | PyObject * obj7 = 0 ; |
4113 | PyObject * obj8 = 0 ; | |
4114 | char *kwnames[] = { | |
4115 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4116 | }; | |
4117 | ||
a95a7133 | 4118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
4119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); |
4120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4121 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4122 | if (SWIG_arg_fail(2)) SWIG_fail; | |
a95a7133 | 4123 | if (obj2) { |
093d3ff1 | 4124 | { |
32fe5131 | 4125 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
4126 | if (SWIG_arg_fail(3)) SWIG_fail; |
4127 | } | |
a95a7133 | 4128 | } |
d14a1e28 RD |
4129 | if (obj3) { |
4130 | { | |
4131 | arg4 = &temp4; | |
4132 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4133 | } | |
4134 | } | |
4135 | if (obj4) { | |
4136 | { | |
4137 | arg5 = &temp5; | |
4138 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4139 | } | |
4140 | } | |
4141 | if (obj5) { | |
4142 | { | |
4d5c3d91 RD |
4143 | if (! PySequence_Check(obj5)) { |
4144 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4145 | SWIG_fail; | |
4146 | } | |
4147 | arg6 = new wxArrayString; | |
ae8162c8 | 4148 | temp6 = true; |
4d5c3d91 RD |
4149 | int i, len=PySequence_Length(obj5); |
4150 | for (i=0; i<len; i++) { | |
4151 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 4152 | wxString* s = wxString_in_helper(item); |
74a57fcd | 4153 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
4154 | arg6->Add(*s); |
4155 | delete s; | |
4d5c3d91 | 4156 | Py_DECREF(item); |
4d5c3d91 | 4157 | } |
d14a1e28 RD |
4158 | } |
4159 | } | |
994141e6 | 4160 | if (obj6) { |
093d3ff1 | 4161 | { |
32fe5131 | 4162 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
4163 | if (SWIG_arg_fail(7)) SWIG_fail; |
4164 | } | |
994141e6 | 4165 | } |
d14a1e28 | 4166 | if (obj7) { |
093d3ff1 RD |
4167 | { |
4168 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4169 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4170 | if (arg8 == NULL) { | |
4171 | SWIG_null_ref("wxValidator"); | |
4172 | } | |
4173 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
4174 | } |
4175 | } | |
4176 | if (obj8) { | |
4177 | { | |
4d5c3d91 RD |
4178 | arg9 = wxString_in_helper(obj8); |
4179 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 4180 | temp9 = true; |
d14a1e28 RD |
4181 | } |
4182 | } | |
4183 | { | |
4184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 4185 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
4186 | |
4187 | wxPyEndAllowThreads(__tstate); | |
4188 | if (PyErr_Occurred()) SWIG_fail; | |
4189 | } | |
4f89f6a3 RD |
4190 | { |
4191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4192 | } | |
d14a1e28 | 4193 | { |
3adfb63b | 4194 | if (temp6) delete arg6; |
d14a1e28 RD |
4195 | } |
4196 | { | |
4197 | if (temp9) | |
4d5c3d91 | 4198 | delete arg9; |
d14a1e28 RD |
4199 | } |
4200 | return resultobj; | |
4201 | fail: | |
4202 | { | |
3adfb63b | 4203 | if (temp6) delete arg6; |
d14a1e28 RD |
4204 | } |
4205 | { | |
4206 | if (temp9) | |
4d5c3d91 | 4207 | delete arg9; |
d14a1e28 RD |
4208 | } |
4209 | return NULL; | |
4210 | } | |
4211 | ||
4212 | ||
943e8dfd | 4213 | static PyObject *_wrap_Choice_GetCurrentSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4214 | PyObject *resultobj = NULL; |
943e8dfd RD |
4215 | wxChoice *arg1 = (wxChoice *) 0 ; |
4216 | int result; | |
4217 | PyObject * obj0 = 0 ; | |
4218 | char *kwnames[] = { | |
4219 | (char *) "self", NULL | |
4220 | }; | |
4221 | ||
4222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetCurrentSelection",kwnames,&obj0)) goto fail; | |
4223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); | |
4224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4225 | { | |
4226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4227 | result = (int)((wxChoice const *)arg1)->GetCurrentSelection(); | |
4228 | ||
4229 | wxPyEndAllowThreads(__tstate); | |
4230 | if (PyErr_Occurred()) SWIG_fail; | |
4231 | } | |
4232 | { | |
32fe5131 | 4233 | resultobj = SWIG_From_int(static_cast<int >(result)); |
943e8dfd RD |
4234 | } |
4235 | return resultobj; | |
4236 | fail: | |
4237 | return NULL; | |
4238 | } | |
4239 | ||
4240 | ||
c32bde28 | 4241 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4242 | PyObject *resultobj = NULL; |
093d3ff1 | 4243 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
4244 | wxVisualAttributes result; |
4245 | PyObject * obj0 = 0 ; | |
4246 | char *kwnames[] = { | |
4247 | (char *) "variant", NULL | |
4248 | }; | |
4249 | ||
4250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4251 | if (obj0) { | |
093d3ff1 | 4252 | { |
32fe5131 | 4253 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
4254 | if (SWIG_arg_fail(1)) SWIG_fail; |
4255 | } | |
22bfe96c RD |
4256 | } |
4257 | { | |
110da5b0 | 4258 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 4260 | result = wxChoice::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
4261 | |
4262 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4263 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4264 | } |
4265 | { | |
4266 | wxVisualAttributes * resultptr; | |
32fe5131 | 4267 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
4268 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
4269 | } | |
4270 | return resultobj; | |
4271 | fail: | |
4272 | return NULL; | |
4273 | } | |
4274 | ||
4275 | ||
c32bde28 | 4276 | static PyObject * Choice_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4277 | PyObject *obj; |
4278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4279 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
4280 | Py_INCREF(obj); | |
4281 | return Py_BuildValue((char *)""); | |
4282 | } | |
c32bde28 | 4283 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
4284 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
4285 | return 1; | |
4286 | } | |
4287 | ||
4288 | ||
093d3ff1 | 4289 | static PyObject *_wrap_ComboBoxNameStr_get(void) { |
32fe5131 | 4290 | PyObject *pyobj = NULL; |
b2dc1044 RD |
4291 | |
4292 | { | |
4293 | #if wxUSE_UNICODE | |
4294 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4295 | #else | |
4296 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4297 | #endif | |
4298 | } | |
4299 | return pyobj; | |
4300 | } | |
4301 | ||
4302 | ||
c32bde28 | 4303 | static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4304 | PyObject *resultobj = NULL; |
d14a1e28 | 4305 | wxWindow *arg1 = (wxWindow *) 0 ; |
a95a7133 | 4306 | int arg2 = (int) -1 ; |
d14a1e28 RD |
4307 | wxString const &arg3_defvalue = wxPyEmptyString ; |
4308 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4309 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4310 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4311 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4312 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
4313 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
4314 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
4315 | long arg7 = (long) 0 ; | |
4316 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4317 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4318 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
4319 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 4320 | wxComboBox *result; |
ae8162c8 | 4321 | bool temp3 = false ; |
d14a1e28 RD |
4322 | wxPoint temp4 ; |
4323 | wxSize temp5 ; | |
ae8162c8 RD |
4324 | bool temp6 = false ; |
4325 | bool temp9 = false ; | |
d14a1e28 | 4326 | PyObject * obj0 = 0 ; |
994141e6 | 4327 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4328 | PyObject * obj2 = 0 ; |
4329 | PyObject * obj3 = 0 ; | |
4330 | PyObject * obj4 = 0 ; | |
4331 | PyObject * obj5 = 0 ; | |
994141e6 | 4332 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4333 | PyObject * obj7 = 0 ; |
4334 | PyObject * obj8 = 0 ; | |
4335 | char *kwnames[] = { | |
4336 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4337 | }; | |
4338 | ||
a95a7133 | 4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
4340 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4341 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a95a7133 | 4342 | if (obj1) { |
093d3ff1 | 4343 | { |
32fe5131 | 4344 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
4345 | if (SWIG_arg_fail(2)) SWIG_fail; |
4346 | } | |
a95a7133 | 4347 | } |
d14a1e28 RD |
4348 | if (obj2) { |
4349 | { | |
4350 | arg3 = wxString_in_helper(obj2); | |
4351 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4352 | temp3 = true; |
d14a1e28 RD |
4353 | } |
4354 | } | |
4355 | if (obj3) { | |
4356 | { | |
4357 | arg4 = &temp4; | |
4358 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4359 | } | |
4360 | } | |
4361 | if (obj4) { | |
4362 | { | |
4363 | arg5 = &temp5; | |
4364 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4365 | } | |
4366 | } | |
4367 | if (obj5) { | |
4368 | { | |
4d5c3d91 RD |
4369 | if (! PySequence_Check(obj5)) { |
4370 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4371 | SWIG_fail; | |
4372 | } | |
4373 | arg6 = new wxArrayString; | |
ae8162c8 | 4374 | temp6 = true; |
4d5c3d91 RD |
4375 | int i, len=PySequence_Length(obj5); |
4376 | for (i=0; i<len; i++) { | |
4377 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 4378 | wxString* s = wxString_in_helper(item); |
74a57fcd | 4379 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
4380 | arg6->Add(*s); |
4381 | delete s; | |
4d5c3d91 | 4382 | Py_DECREF(item); |
4d5c3d91 | 4383 | } |
d14a1e28 RD |
4384 | } |
4385 | } | |
994141e6 | 4386 | if (obj6) { |
093d3ff1 | 4387 | { |
32fe5131 | 4388 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
4389 | if (SWIG_arg_fail(7)) SWIG_fail; |
4390 | } | |
994141e6 | 4391 | } |
d14a1e28 | 4392 | if (obj7) { |
093d3ff1 RD |
4393 | { |
4394 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4395 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4396 | if (arg8 == NULL) { | |
4397 | SWIG_null_ref("wxValidator"); | |
4398 | } | |
4399 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
4400 | } |
4401 | } | |
4402 | if (obj8) { | |
4403 | { | |
4d5c3d91 RD |
4404 | arg9 = wxString_in_helper(obj8); |
4405 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 4406 | temp9 = true; |
d14a1e28 RD |
4407 | } |
4408 | } | |
4409 | { | |
e3b71cb8 | 4410 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 4412 | 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 |
4413 | |
4414 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4415 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4416 | } |
15afbcd0 | 4417 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
4418 | { |
4419 | if (temp3) | |
4420 | delete arg3; | |
4421 | } | |
4422 | { | |
3adfb63b | 4423 | if (temp6) delete arg6; |
d14a1e28 RD |
4424 | } |
4425 | { | |
4426 | if (temp9) | |
4d5c3d91 | 4427 | delete arg9; |
d14a1e28 RD |
4428 | } |
4429 | return resultobj; | |
4430 | fail: | |
4431 | { | |
4432 | if (temp3) | |
4433 | delete arg3; | |
4434 | } | |
4435 | { | |
3adfb63b | 4436 | if (temp6) delete arg6; |
d14a1e28 RD |
4437 | } |
4438 | { | |
4439 | if (temp9) | |
4d5c3d91 | 4440 | delete arg9; |
d14a1e28 RD |
4441 | } |
4442 | return NULL; | |
4443 | } | |
4444 | ||
4445 | ||
c32bde28 | 4446 | static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4447 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4448 | wxComboBox *result; |
4449 | char *kwnames[] = { | |
4450 | NULL | |
4451 | }; | |
4452 | ||
4453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
4454 | { | |
e3b71cb8 | 4455 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4457 | result = (wxComboBox *)new wxComboBox(); | |
4458 | ||
4459 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4460 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4461 | } |
15afbcd0 | 4462 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
4463 | return resultobj; |
4464 | fail: | |
4465 | return NULL; | |
4466 | } | |
4467 | ||
4468 | ||
c32bde28 | 4469 | static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4470 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4471 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4472 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 4473 | int arg3 = (int) -1 ; |
d14a1e28 RD |
4474 | wxString const &arg4_defvalue = wxPyEmptyString ; |
4475 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4476 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4477 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4478 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4479 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
4480 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
4481 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
4482 | long arg8 = (long) 0 ; | |
4483 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
4484 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 4485 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 4486 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 4487 | bool result; |
ae8162c8 | 4488 | bool temp4 = false ; |
d14a1e28 RD |
4489 | wxPoint temp5 ; |
4490 | wxSize temp6 ; | |
ae8162c8 RD |
4491 | bool temp7 = false ; |
4492 | bool temp10 = false ; | |
d14a1e28 RD |
4493 | PyObject * obj0 = 0 ; |
4494 | PyObject * obj1 = 0 ; | |
994141e6 | 4495 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4496 | PyObject * obj3 = 0 ; |
4497 | PyObject * obj4 = 0 ; | |
4498 | PyObject * obj5 = 0 ; | |
4499 | PyObject * obj6 = 0 ; | |
994141e6 | 4500 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
4501 | PyObject * obj8 = 0 ; |
4502 | PyObject * obj9 = 0 ; | |
4503 | char *kwnames[] = { | |
4504 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4505 | }; | |
4506 | ||
a95a7133 | 4507 | 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 |
4508 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4510 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4511 | if (SWIG_arg_fail(2)) SWIG_fail; | |
a95a7133 | 4512 | if (obj2) { |
093d3ff1 | 4513 | { |
32fe5131 | 4514 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
4515 | if (SWIG_arg_fail(3)) SWIG_fail; |
4516 | } | |
a95a7133 | 4517 | } |
d14a1e28 RD |
4518 | if (obj3) { |
4519 | { | |
4520 | arg4 = wxString_in_helper(obj3); | |
4521 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 4522 | temp4 = true; |
d14a1e28 RD |
4523 | } |
4524 | } | |
4525 | if (obj4) { | |
4526 | { | |
4527 | arg5 = &temp5; | |
4528 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4529 | } | |
4530 | } | |
4531 | if (obj5) { | |
4532 | { | |
4533 | arg6 = &temp6; | |
4534 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4535 | } | |
4536 | } | |
4537 | if (obj6) { | |
4538 | { | |
4d5c3d91 RD |
4539 | if (! PySequence_Check(obj6)) { |
4540 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4541 | SWIG_fail; | |
4542 | } | |
4543 | arg7 = new wxArrayString; | |
ae8162c8 | 4544 | temp7 = true; |
4d5c3d91 RD |
4545 | int i, len=PySequence_Length(obj6); |
4546 | for (i=0; i<len; i++) { | |
4547 | PyObject* item = PySequence_GetItem(obj6, i); | |
71237536 | 4548 | wxString* s = wxString_in_helper(item); |
74a57fcd | 4549 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
4550 | arg7->Add(*s); |
4551 | delete s; | |
4d5c3d91 | 4552 | Py_DECREF(item); |
4d5c3d91 | 4553 | } |
d14a1e28 RD |
4554 | } |
4555 | } | |
994141e6 | 4556 | if (obj7) { |
093d3ff1 | 4557 | { |
32fe5131 | 4558 | arg8 = static_cast<long >(SWIG_As_long(obj7)); |
093d3ff1 RD |
4559 | if (SWIG_arg_fail(8)) SWIG_fail; |
4560 | } | |
994141e6 | 4561 | } |
d14a1e28 | 4562 | if (obj8) { |
093d3ff1 RD |
4563 | { |
4564 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4565 | if (SWIG_arg_fail(9)) SWIG_fail; | |
4566 | if (arg9 == NULL) { | |
4567 | SWIG_null_ref("wxValidator"); | |
4568 | } | |
4569 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
4570 | } |
4571 | } | |
4572 | if (obj9) { | |
4573 | { | |
4d5c3d91 RD |
4574 | arg10 = wxString_in_helper(obj9); |
4575 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 4576 | temp10 = true; |
d14a1e28 RD |
4577 | } |
4578 | } | |
4579 | { | |
4580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 4581 | 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 |
4582 | |
4583 | wxPyEndAllowThreads(__tstate); | |
4584 | if (PyErr_Occurred()) SWIG_fail; | |
4585 | } | |
4f89f6a3 RD |
4586 | { |
4587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4588 | } | |
d14a1e28 RD |
4589 | { |
4590 | if (temp4) | |
4591 | delete arg4; | |
4592 | } | |
4593 | { | |
3adfb63b | 4594 | if (temp7) delete arg7; |
d14a1e28 RD |
4595 | } |
4596 | { | |
4597 | if (temp10) | |
4d5c3d91 | 4598 | delete arg10; |
d14a1e28 RD |
4599 | } |
4600 | return resultobj; | |
4601 | fail: | |
4602 | { | |
4603 | if (temp4) | |
4604 | delete arg4; | |
4605 | } | |
4606 | { | |
3adfb63b | 4607 | if (temp7) delete arg7; |
d14a1e28 RD |
4608 | } |
4609 | { | |
4610 | if (temp10) | |
4d5c3d91 | 4611 | delete arg10; |
d14a1e28 RD |
4612 | } |
4613 | return NULL; | |
4614 | } | |
4615 | ||
4616 | ||
c32bde28 | 4617 | static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4618 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4619 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4620 | wxString result; | |
4621 | PyObject * obj0 = 0 ; | |
4622 | char *kwnames[] = { | |
4623 | (char *) "self", NULL | |
4624 | }; | |
4625 | ||
4626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4627 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4628 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4629 | { |
4630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4631 | result = ((wxComboBox const *)arg1)->GetValue(); | |
4632 | ||
4633 | wxPyEndAllowThreads(__tstate); | |
4634 | if (PyErr_Occurred()) SWIG_fail; | |
4635 | } | |
4636 | { | |
4637 | #if wxUSE_UNICODE | |
4638 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4639 | #else | |
4640 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4641 | #endif | |
4642 | } | |
4643 | return resultobj; | |
4644 | fail: | |
4645 | return NULL; | |
4646 | } | |
4647 | ||
4648 | ||
c32bde28 | 4649 | static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4650 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4651 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4652 | wxString *arg2 = 0 ; | |
ae8162c8 | 4653 | bool temp2 = false ; |
d14a1e28 RD |
4654 | PyObject * obj0 = 0 ; |
4655 | PyObject * obj1 = 0 ; | |
4656 | char *kwnames[] = { | |
4657 | (char *) "self",(char *) "value", NULL | |
4658 | }; | |
4659 | ||
4660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4663 | { |
4664 | arg2 = wxString_in_helper(obj1); | |
4665 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4666 | temp2 = true; |
d14a1e28 RD |
4667 | } |
4668 | { | |
4669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4670 | (arg1)->SetValue((wxString const &)*arg2); | |
4671 | ||
4672 | wxPyEndAllowThreads(__tstate); | |
4673 | if (PyErr_Occurred()) SWIG_fail; | |
4674 | } | |
4675 | Py_INCREF(Py_None); resultobj = Py_None; | |
4676 | { | |
4677 | if (temp2) | |
4678 | delete arg2; | |
4679 | } | |
4680 | return resultobj; | |
4681 | fail: | |
4682 | { | |
4683 | if (temp2) | |
4684 | delete arg2; | |
4685 | } | |
4686 | return NULL; | |
4687 | } | |
4688 | ||
4689 | ||
c32bde28 | 4690 | static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4691 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4692 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4693 | PyObject * obj0 = 0 ; | |
4694 | char *kwnames[] = { | |
4695 | (char *) "self", NULL | |
4696 | }; | |
4697 | ||
4698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4699 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4701 | { |
4702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4703 | (arg1)->Copy(); | |
4704 | ||
4705 | wxPyEndAllowThreads(__tstate); | |
4706 | if (PyErr_Occurred()) SWIG_fail; | |
4707 | } | |
4708 | Py_INCREF(Py_None); resultobj = Py_None; | |
4709 | return resultobj; | |
4710 | fail: | |
4711 | return NULL; | |
4712 | } | |
4713 | ||
4714 | ||
c32bde28 | 4715 | static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4716 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4717 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4718 | PyObject * obj0 = 0 ; | |
4719 | char *kwnames[] = { | |
4720 | (char *) "self", NULL | |
4721 | }; | |
4722 | ||
4723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4726 | { |
4727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4728 | (arg1)->Cut(); | |
4729 | ||
4730 | wxPyEndAllowThreads(__tstate); | |
4731 | if (PyErr_Occurred()) SWIG_fail; | |
4732 | } | |
4733 | Py_INCREF(Py_None); resultobj = Py_None; | |
4734 | return resultobj; | |
4735 | fail: | |
4736 | return NULL; | |
4737 | } | |
4738 | ||
4739 | ||
c32bde28 | 4740 | static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4741 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4742 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4743 | PyObject * obj0 = 0 ; | |
4744 | char *kwnames[] = { | |
4745 | (char *) "self", NULL | |
4746 | }; | |
4747 | ||
4748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4751 | { |
4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4753 | (arg1)->Paste(); | |
4754 | ||
4755 | wxPyEndAllowThreads(__tstate); | |
4756 | if (PyErr_Occurred()) SWIG_fail; | |
4757 | } | |
4758 | Py_INCREF(Py_None); resultobj = Py_None; | |
4759 | return resultobj; | |
4760 | fail: | |
4761 | return NULL; | |
4762 | } | |
4763 | ||
4764 | ||
c32bde28 | 4765 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4766 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4767 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4768 | long arg2 ; | |
4769 | PyObject * obj0 = 0 ; | |
994141e6 | 4770 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4771 | char *kwnames[] = { |
4772 | (char *) "self",(char *) "pos", NULL | |
4773 | }; | |
4774 | ||
994141e6 | 4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4778 | { | |
32fe5131 | 4779 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
4780 | if (SWIG_arg_fail(2)) SWIG_fail; |
4781 | } | |
d14a1e28 RD |
4782 | { |
4783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4784 | (arg1)->SetInsertionPoint(arg2); | |
4785 | ||
4786 | wxPyEndAllowThreads(__tstate); | |
4787 | if (PyErr_Occurred()) SWIG_fail; | |
4788 | } | |
4789 | Py_INCREF(Py_None); resultobj = Py_None; | |
4790 | return resultobj; | |
4791 | fail: | |
4792 | return NULL; | |
4793 | } | |
4794 | ||
4795 | ||
c32bde28 | 4796 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4797 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4798 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4799 | long result; | |
4800 | PyObject * obj0 = 0 ; | |
4801 | char *kwnames[] = { | |
4802 | (char *) "self", NULL | |
4803 | }; | |
4804 | ||
4805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4808 | { |
4809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4810 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
4811 | ||
4812 | wxPyEndAllowThreads(__tstate); | |
4813 | if (PyErr_Occurred()) SWIG_fail; | |
4814 | } | |
093d3ff1 | 4815 | { |
32fe5131 | 4816 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 4817 | } |
d14a1e28 RD |
4818 | return resultobj; |
4819 | fail: | |
4820 | return NULL; | |
4821 | } | |
4822 | ||
4823 | ||
c32bde28 | 4824 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4825 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4826 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4827 | long result; | |
4828 | PyObject * obj0 = 0 ; | |
4829 | char *kwnames[] = { | |
4830 | (char *) "self", NULL | |
4831 | }; | |
4832 | ||
4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4836 | { |
4837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4838 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
4839 | ||
4840 | wxPyEndAllowThreads(__tstate); | |
4841 | if (PyErr_Occurred()) SWIG_fail; | |
4842 | } | |
093d3ff1 | 4843 | { |
32fe5131 | 4844 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 4845 | } |
d14a1e28 RD |
4846 | return resultobj; |
4847 | fail: | |
4848 | return NULL; | |
4849 | } | |
4850 | ||
4851 | ||
c32bde28 | 4852 | static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4853 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4854 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4855 | long arg2 ; | |
4856 | long arg3 ; | |
4857 | wxString *arg4 = 0 ; | |
ae8162c8 | 4858 | bool temp4 = false ; |
d14a1e28 | 4859 | PyObject * obj0 = 0 ; |
994141e6 RD |
4860 | PyObject * obj1 = 0 ; |
4861 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4862 | PyObject * obj3 = 0 ; |
4863 | char *kwnames[] = { | |
4864 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
4865 | }; | |
4866 | ||
994141e6 | 4867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
4868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4870 | { | |
32fe5131 | 4871 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
4872 | if (SWIG_arg_fail(2)) SWIG_fail; |
4873 | } | |
4874 | { | |
32fe5131 | 4875 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
4876 | if (SWIG_arg_fail(3)) SWIG_fail; |
4877 | } | |
d14a1e28 RD |
4878 | { |
4879 | arg4 = wxString_in_helper(obj3); | |
4880 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 4881 | temp4 = true; |
d14a1e28 RD |
4882 | } |
4883 | { | |
4884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4885 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
4886 | ||
4887 | wxPyEndAllowThreads(__tstate); | |
4888 | if (PyErr_Occurred()) SWIG_fail; | |
4889 | } | |
4890 | Py_INCREF(Py_None); resultobj = Py_None; | |
4891 | { | |
4892 | if (temp4) | |
4893 | delete arg4; | |
4894 | } | |
4895 | return resultobj; | |
4896 | fail: | |
4897 | { | |
4898 | if (temp4) | |
4899 | delete arg4; | |
4900 | } | |
4901 | return NULL; | |
4902 | } | |
4903 | ||
4904 | ||
c32bde28 | 4905 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4906 | PyObject *resultobj = NULL; |
fd3f2efe RD |
4907 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4908 | int arg2 ; | |
4909 | PyObject * obj0 = 0 ; | |
994141e6 | 4910 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
4911 | char *kwnames[] = { |
4912 | (char *) "self",(char *) "n", NULL | |
4913 | }; | |
4914 | ||
994141e6 | 4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4916 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4917 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4918 | { | |
32fe5131 | 4919 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
4920 | if (SWIG_arg_fail(2)) SWIG_fail; |
4921 | } | |
fd3f2efe RD |
4922 | { |
4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4924 | (arg1)->SetSelection(arg2); | |
4925 | ||
4926 | wxPyEndAllowThreads(__tstate); | |
4927 | if (PyErr_Occurred()) SWIG_fail; | |
4928 | } | |
4929 | Py_INCREF(Py_None); resultobj = Py_None; | |
4930 | return resultobj; | |
4931 | fail: | |
4932 | return NULL; | |
4933 | } | |
4934 | ||
4935 | ||
c32bde28 | 4936 | static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4937 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4938 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4939 | long arg2 ; | |
4940 | long arg3 ; | |
4941 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4942 | PyObject * obj1 = 0 ; |
4943 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4944 | char *kwnames[] = { |
4945 | (char *) "self",(char *) "from",(char *) "to", NULL | |
4946 | }; | |
4947 | ||
994141e6 | 4948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
4949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4951 | { | |
32fe5131 | 4952 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
4953 | if (SWIG_arg_fail(2)) SWIG_fail; |
4954 | } | |
4955 | { | |
32fe5131 | 4956 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
4957 | if (SWIG_arg_fail(3)) SWIG_fail; |
4958 | } | |
d14a1e28 RD |
4959 | { |
4960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4961 | (arg1)->SetSelection(arg2,arg3); | |
4962 | ||
4963 | wxPyEndAllowThreads(__tstate); | |
4964 | if (PyErr_Occurred()) SWIG_fail; | |
4965 | } | |
4966 | Py_INCREF(Py_None); resultobj = Py_None; | |
4967 | return resultobj; | |
4968 | fail: | |
4969 | return NULL; | |
4970 | } | |
4971 | ||
4972 | ||
b9d6a5f3 | 4973 | static PyObject *_wrap_ComboBox_GetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4974 | PyObject *resultobj = NULL; |
b9d6a5f3 RD |
4975 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4976 | long *arg2 = (long *) 0 ; | |
4977 | long *arg3 = (long *) 0 ; | |
4978 | long temp2 ; | |
4979 | int res2 = 0 ; | |
4980 | long temp3 ; | |
4981 | int res3 = 0 ; | |
4982 | PyObject * obj0 = 0 ; | |
4983 | char *kwnames[] = { | |
4984 | (char *) "self", NULL | |
4985 | }; | |
4986 | ||
4987 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4988 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
4989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetMark",kwnames,&obj0)) goto fail; | |
4990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4992 | { | |
4993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4994 | (arg1)->GetSelection(arg2,arg3); | |
4995 | ||
4996 | wxPyEndAllowThreads(__tstate); | |
4997 | if (PyErr_Occurred()) SWIG_fail; | |
4998 | } | |
4999 | Py_INCREF(Py_None); resultobj = Py_None; | |
5000 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5001 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
5002 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5003 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
5004 | return resultobj; | |
5005 | fail: | |
5006 | return NULL; | |
5007 | } | |
5008 | ||
5009 | ||
943e8dfd | 5010 | static PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5011 | PyObject *resultobj = NULL; |
943e8dfd RD |
5012 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5013 | int result; | |
5014 | PyObject * obj0 = 0 ; | |
5015 | char *kwnames[] = { | |
5016 | (char *) "self", NULL | |
5017 | }; | |
5018 | ||
5019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetCurrentSelection",kwnames,&obj0)) goto fail; | |
5020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
5021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5022 | { | |
5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5024 | result = (int)((wxComboBox const *)arg1)->GetCurrentSelection(); | |
5025 | ||
5026 | wxPyEndAllowThreads(__tstate); | |
5027 | if (PyErr_Occurred()) SWIG_fail; | |
5028 | } | |
5029 | { | |
32fe5131 | 5030 | resultobj = SWIG_From_int(static_cast<int >(result)); |
943e8dfd RD |
5031 | } |
5032 | return resultobj; | |
5033 | fail: | |
5034 | return NULL; | |
5035 | } | |
5036 | ||
5037 | ||
c32bde28 | 5038 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5039 | PyObject *resultobj = NULL; |
121b9a67 RD |
5040 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5041 | wxString *arg2 = 0 ; | |
5042 | bool result; | |
ae8162c8 | 5043 | bool temp2 = false ; |
121b9a67 RD |
5044 | PyObject * obj0 = 0 ; |
5045 | PyObject * obj1 = 0 ; | |
5046 | char *kwnames[] = { | |
5047 | (char *) "self",(char *) "string", NULL | |
5048 | }; | |
5049 | ||
5050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
121b9a67 RD |
5053 | { |
5054 | arg2 = wxString_in_helper(obj1); | |
5055 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 5056 | temp2 = true; |
121b9a67 RD |
5057 | } |
5058 | { | |
5059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5060 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
5061 | ||
5062 | wxPyEndAllowThreads(__tstate); | |
5063 | if (PyErr_Occurred()) SWIG_fail; | |
5064 | } | |
5065 | { | |
5066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5067 | } | |
5068 | { | |
5069 | if (temp2) | |
5070 | delete arg2; | |
5071 | } | |
5072 | return resultobj; | |
5073 | fail: | |
5074 | { | |
5075 | if (temp2) | |
5076 | delete arg2; | |
5077 | } | |
5078 | return NULL; | |
5079 | } | |
5080 | ||
5081 | ||
c32bde28 | 5082 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5083 | PyObject *resultobj = NULL; |
121b9a67 RD |
5084 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5085 | int arg2 ; | |
5086 | wxString *arg3 = 0 ; | |
ae8162c8 | 5087 | bool temp3 = false ; |
121b9a67 RD |
5088 | PyObject * obj0 = 0 ; |
5089 | PyObject * obj1 = 0 ; | |
5090 | PyObject * obj2 = 0 ; | |
5091 | char *kwnames[] = { | |
5092 | (char *) "self",(char *) "n",(char *) "string", NULL | |
5093 | }; | |
5094 | ||
5095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
5096 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5097 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5098 | { | |
32fe5131 | 5099 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5100 | if (SWIG_arg_fail(2)) SWIG_fail; |
5101 | } | |
121b9a67 RD |
5102 | { |
5103 | arg3 = wxString_in_helper(obj2); | |
5104 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 5105 | temp3 = true; |
121b9a67 RD |
5106 | } |
5107 | { | |
5108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5109 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
5110 | ||
5111 | wxPyEndAllowThreads(__tstate); | |
5112 | if (PyErr_Occurred()) SWIG_fail; | |
5113 | } | |
5114 | Py_INCREF(Py_None); resultobj = Py_None; | |
5115 | { | |
5116 | if (temp3) | |
5117 | delete arg3; | |
5118 | } | |
5119 | return resultobj; | |
5120 | fail: | |
5121 | { | |
5122 | if (temp3) | |
5123 | delete arg3; | |
5124 | } | |
5125 | return NULL; | |
5126 | } | |
5127 | ||
5128 | ||
c32bde28 | 5129 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5130 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5131 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5132 | bool arg2 ; | |
5133 | PyObject * obj0 = 0 ; | |
5134 | PyObject * obj1 = 0 ; | |
5135 | char *kwnames[] = { | |
5136 | (char *) "self",(char *) "editable", NULL | |
5137 | }; | |
5138 | ||
5139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5142 | { | |
32fe5131 | 5143 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
5144 | if (SWIG_arg_fail(2)) SWIG_fail; |
5145 | } | |
d14a1e28 RD |
5146 | { |
5147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5148 | (arg1)->SetEditable(arg2); | |
5149 | ||
5150 | wxPyEndAllowThreads(__tstate); | |
5151 | if (PyErr_Occurred()) SWIG_fail; | |
5152 | } | |
5153 | Py_INCREF(Py_None); resultobj = Py_None; | |
5154 | return resultobj; | |
5155 | fail: | |
5156 | return NULL; | |
5157 | } | |
5158 | ||
5159 | ||
c32bde28 | 5160 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5161 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5162 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5163 | PyObject * obj0 = 0 ; | |
5164 | char *kwnames[] = { | |
5165 | (char *) "self", NULL | |
5166 | }; | |
5167 | ||
5168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5171 | { |
5172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5173 | (arg1)->SetInsertionPointEnd(); | |
5174 | ||
5175 | wxPyEndAllowThreads(__tstate); | |
5176 | if (PyErr_Occurred()) SWIG_fail; | |
5177 | } | |
5178 | Py_INCREF(Py_None); resultobj = Py_None; | |
5179 | return resultobj; | |
5180 | fail: | |
5181 | return NULL; | |
5182 | } | |
5183 | ||
5184 | ||
c32bde28 | 5185 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5186 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5187 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5188 | long arg2 ; | |
5189 | long arg3 ; | |
5190 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5191 | PyObject * obj1 = 0 ; |
5192 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5193 | char *kwnames[] = { |
5194 | (char *) "self",(char *) "from",(char *) "to", NULL | |
5195 | }; | |
5196 | ||
994141e6 | 5197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
5198 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5199 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5200 | { | |
32fe5131 | 5201 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
5202 | if (SWIG_arg_fail(2)) SWIG_fail; |
5203 | } | |
5204 | { | |
32fe5131 | 5205 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
5206 | if (SWIG_arg_fail(3)) SWIG_fail; |
5207 | } | |
d14a1e28 RD |
5208 | { |
5209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5210 | (arg1)->Remove(arg2,arg3); | |
5211 | ||
5212 | wxPyEndAllowThreads(__tstate); | |
5213 | if (PyErr_Occurred()) SWIG_fail; | |
5214 | } | |
5215 | Py_INCREF(Py_None); resultobj = Py_None; | |
5216 | return resultobj; | |
5217 | fail: | |
5218 | return NULL; | |
5219 | } | |
5220 | ||
5221 | ||
5cbf236d | 5222 | static PyObject *_wrap_ComboBox_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5223 | PyObject *resultobj = NULL; |
5cbf236d RD |
5224 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5225 | bool result; | |
5226 | PyObject * obj0 = 0 ; | |
5227 | char *kwnames[] = { | |
5228 | (char *) "self", NULL | |
5229 | }; | |
5230 | ||
5231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_IsEditable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5234 | { |
5235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5236 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
5237 | ||
5238 | wxPyEndAllowThreads(__tstate); | |
5239 | if (PyErr_Occurred()) SWIG_fail; | |
5240 | } | |
5241 | { | |
5242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5243 | } | |
5244 | return resultobj; | |
5245 | fail: | |
5246 | return NULL; | |
5247 | } | |
5248 | ||
5249 | ||
5250 | static PyObject *_wrap_ComboBox_Undo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5251 | PyObject *resultobj = NULL; |
5cbf236d RD |
5252 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5253 | PyObject * obj0 = 0 ; | |
5254 | char *kwnames[] = { | |
5255 | (char *) "self", NULL | |
5256 | }; | |
5257 | ||
5258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Undo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5261 | { |
5262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5263 | (arg1)->Undo(); | |
5264 | ||
5265 | wxPyEndAllowThreads(__tstate); | |
5266 | if (PyErr_Occurred()) SWIG_fail; | |
5267 | } | |
5268 | Py_INCREF(Py_None); resultobj = Py_None; | |
5269 | return resultobj; | |
5270 | fail: | |
5271 | return NULL; | |
5272 | } | |
5273 | ||
5274 | ||
5275 | static PyObject *_wrap_ComboBox_Redo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5276 | PyObject *resultobj = NULL; |
5cbf236d RD |
5277 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5278 | PyObject * obj0 = 0 ; | |
5279 | char *kwnames[] = { | |
5280 | (char *) "self", NULL | |
5281 | }; | |
5282 | ||
5283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Redo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5286 | { |
5287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5288 | (arg1)->Redo(); | |
5289 | ||
5290 | wxPyEndAllowThreads(__tstate); | |
5291 | if (PyErr_Occurred()) SWIG_fail; | |
5292 | } | |
5293 | Py_INCREF(Py_None); resultobj = Py_None; | |
5294 | return resultobj; | |
5295 | fail: | |
5296 | return NULL; | |
5297 | } | |
5298 | ||
5299 | ||
5300 | static PyObject *_wrap_ComboBox_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5301 | PyObject *resultobj = NULL; |
5cbf236d RD |
5302 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5303 | PyObject * obj0 = 0 ; | |
5304 | char *kwnames[] = { | |
5305 | (char *) "self", NULL | |
5306 | }; | |
5307 | ||
5308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SelectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5311 | { |
5312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5313 | (arg1)->SelectAll(); | |
5314 | ||
5315 | wxPyEndAllowThreads(__tstate); | |
5316 | if (PyErr_Occurred()) SWIG_fail; | |
5317 | } | |
5318 | Py_INCREF(Py_None); resultobj = Py_None; | |
5319 | return resultobj; | |
5320 | fail: | |
5321 | return NULL; | |
5322 | } | |
5323 | ||
5324 | ||
5325 | static PyObject *_wrap_ComboBox_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5326 | PyObject *resultobj = NULL; |
5cbf236d RD |
5327 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5328 | bool result; | |
5329 | PyObject * obj0 = 0 ; | |
5330 | char *kwnames[] = { | |
5331 | (char *) "self", NULL | |
5332 | }; | |
5333 | ||
5334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCopy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5337 | { |
5338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5339 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
5340 | ||
5341 | wxPyEndAllowThreads(__tstate); | |
5342 | if (PyErr_Occurred()) SWIG_fail; | |
5343 | } | |
5344 | { | |
5345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5346 | } | |
5347 | return resultobj; | |
5348 | fail: | |
5349 | return NULL; | |
5350 | } | |
5351 | ||
5352 | ||
5353 | static PyObject *_wrap_ComboBox_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5354 | PyObject *resultobj = NULL; |
5cbf236d RD |
5355 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5356 | bool result; | |
5357 | PyObject * obj0 = 0 ; | |
5358 | char *kwnames[] = { | |
5359 | (char *) "self", NULL | |
5360 | }; | |
5361 | ||
5362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5365 | { |
5366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5367 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
5368 | ||
5369 | wxPyEndAllowThreads(__tstate); | |
5370 | if (PyErr_Occurred()) SWIG_fail; | |
5371 | } | |
5372 | { | |
5373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5374 | } | |
5375 | return resultobj; | |
5376 | fail: | |
5377 | return NULL; | |
5378 | } | |
5379 | ||
5380 | ||
5381 | static PyObject *_wrap_ComboBox_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5382 | PyObject *resultobj = NULL; |
5cbf236d RD |
5383 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5384 | bool result; | |
5385 | PyObject * obj0 = 0 ; | |
5386 | char *kwnames[] = { | |
5387 | (char *) "self", NULL | |
5388 | }; | |
5389 | ||
5390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanPaste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5391 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5392 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5393 | { |
5394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5395 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
5396 | ||
5397 | wxPyEndAllowThreads(__tstate); | |
5398 | if (PyErr_Occurred()) SWIG_fail; | |
5399 | } | |
5400 | { | |
5401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5402 | } | |
5403 | return resultobj; | |
5404 | fail: | |
5405 | return NULL; | |
5406 | } | |
5407 | ||
5408 | ||
5409 | static PyObject *_wrap_ComboBox_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5410 | PyObject *resultobj = NULL; |
5cbf236d RD |
5411 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5412 | bool result; | |
5413 | PyObject * obj0 = 0 ; | |
5414 | char *kwnames[] = { | |
5415 | (char *) "self", NULL | |
5416 | }; | |
5417 | ||
5418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanUndo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5419 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5420 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5421 | { |
5422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5423 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
5424 | ||
5425 | wxPyEndAllowThreads(__tstate); | |
5426 | if (PyErr_Occurred()) SWIG_fail; | |
5427 | } | |
5428 | { | |
5429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5430 | } | |
5431 | return resultobj; | |
5432 | fail: | |
5433 | return NULL; | |
5434 | } | |
5435 | ||
5436 | ||
5437 | static PyObject *_wrap_ComboBox_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5438 | PyObject *resultobj = NULL; |
5cbf236d RD |
5439 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5440 | bool result; | |
5441 | PyObject * obj0 = 0 ; | |
5442 | char *kwnames[] = { | |
5443 | (char *) "self", NULL | |
5444 | }; | |
5445 | ||
5446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanRedo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5447 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5449 | { |
5450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5451 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
5452 | ||
5453 | wxPyEndAllowThreads(__tstate); | |
5454 | if (PyErr_Occurred()) SWIG_fail; | |
5455 | } | |
5456 | { | |
5457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5458 | } | |
5459 | return resultobj; | |
5460 | fail: | |
5461 | return NULL; | |
5462 | } | |
5463 | ||
5464 | ||
c32bde28 | 5465 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5466 | PyObject *resultobj = NULL; |
093d3ff1 | 5467 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
5468 | wxVisualAttributes result; |
5469 | PyObject * obj0 = 0 ; | |
5470 | char *kwnames[] = { | |
5471 | (char *) "variant", NULL | |
5472 | }; | |
5473 | ||
5474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5475 | if (obj0) { | |
093d3ff1 | 5476 | { |
32fe5131 | 5477 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
5478 | if (SWIG_arg_fail(1)) SWIG_fail; |
5479 | } | |
22bfe96c RD |
5480 | } |
5481 | { | |
110da5b0 | 5482 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 5483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 5484 | result = wxComboBox::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
5485 | |
5486 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5487 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5488 | } |
5489 | { | |
5490 | wxVisualAttributes * resultptr; | |
32fe5131 | 5491 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
5492 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
5493 | } | |
5494 | return resultobj; | |
5495 | fail: | |
5496 | return NULL; | |
5497 | } | |
5498 | ||
5499 | ||
c32bde28 | 5500 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5501 | PyObject *obj; |
5502 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5503 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
5504 | Py_INCREF(obj); | |
5505 | return Py_BuildValue((char *)""); | |
5506 | } | |
c32bde28 | 5507 | static int _wrap_GaugeNameStr_set(PyObject *) { |
b2dc1044 RD |
5508 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
5509 | return 1; | |
5510 | } | |
5511 | ||
5512 | ||
093d3ff1 | 5513 | static PyObject *_wrap_GaugeNameStr_get(void) { |
32fe5131 | 5514 | PyObject *pyobj = NULL; |
b2dc1044 RD |
5515 | |
5516 | { | |
5517 | #if wxUSE_UNICODE | |
5518 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5519 | #else | |
5520 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5521 | #endif | |
5522 | } | |
5523 | return pyobj; | |
5524 | } | |
5525 | ||
5526 | ||
c32bde28 | 5527 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5528 | PyObject *resultobj = NULL; |
d14a1e28 | 5529 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
5530 | int arg2 = (int) -1 ; |
5531 | int arg3 = (int) 100 ; | |
d14a1e28 RD |
5532 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5533 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5534 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5535 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5536 | long arg6 = (long) wxGA_HORIZONTAL ; | |
5537 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5538 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5539 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
5540 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5541 | wxGauge *result; | |
5542 | wxPoint temp4 ; | |
5543 | wxSize temp5 ; | |
ae8162c8 | 5544 | bool temp8 = false ; |
d14a1e28 | 5545 | PyObject * obj0 = 0 ; |
994141e6 RD |
5546 | PyObject * obj1 = 0 ; |
5547 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5548 | PyObject * obj3 = 0 ; |
5549 | PyObject * obj4 = 0 ; | |
994141e6 | 5550 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5551 | PyObject * obj6 = 0 ; |
5552 | PyObject * obj7 = 0 ; | |
5553 | char *kwnames[] = { | |
5554 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5555 | }; | |
5556 | ||
248ed943 | 5557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
5558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 5560 | if (obj1) { |
093d3ff1 | 5561 | { |
32fe5131 | 5562 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5563 | if (SWIG_arg_fail(2)) SWIG_fail; |
5564 | } | |
248ed943 RD |
5565 | } |
5566 | if (obj2) { | |
093d3ff1 | 5567 | { |
32fe5131 | 5568 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
5569 | if (SWIG_arg_fail(3)) SWIG_fail; |
5570 | } | |
248ed943 | 5571 | } |
d14a1e28 RD |
5572 | if (obj3) { |
5573 | { | |
5574 | arg4 = &temp4; | |
5575 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5576 | } | |
5577 | } | |
5578 | if (obj4) { | |
5579 | { | |
5580 | arg5 = &temp5; | |
5581 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5582 | } | |
5583 | } | |
994141e6 | 5584 | if (obj5) { |
093d3ff1 | 5585 | { |
32fe5131 | 5586 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
5587 | if (SWIG_arg_fail(6)) SWIG_fail; |
5588 | } | |
994141e6 | 5589 | } |
d14a1e28 | 5590 | if (obj6) { |
093d3ff1 RD |
5591 | { |
5592 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5593 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5594 | if (arg7 == NULL) { | |
5595 | SWIG_null_ref("wxValidator"); | |
5596 | } | |
5597 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
5598 | } |
5599 | } | |
5600 | if (obj7) { | |
5601 | { | |
5602 | arg8 = wxString_in_helper(obj7); | |
5603 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5604 | temp8 = true; |
d14a1e28 RD |
5605 | } |
5606 | } | |
5607 | { | |
e3b71cb8 | 5608 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5610 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5611 | ||
5612 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5613 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5614 | } |
15afbcd0 | 5615 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
5616 | { |
5617 | if (temp8) | |
5618 | delete arg8; | |
5619 | } | |
5620 | return resultobj; | |
5621 | fail: | |
5622 | { | |
5623 | if (temp8) | |
5624 | delete arg8; | |
5625 | } | |
5626 | return NULL; | |
5627 | } | |
5628 | ||
5629 | ||
c32bde28 | 5630 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5631 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5632 | wxGauge *result; |
5633 | char *kwnames[] = { | |
5634 | NULL | |
5635 | }; | |
5636 | ||
5637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
5638 | { | |
e3b71cb8 | 5639 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5641 | result = (wxGauge *)new wxGauge(); | |
5642 | ||
5643 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5644 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5645 | } |
15afbcd0 | 5646 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
5647 | return resultobj; |
5648 | fail: | |
5649 | return NULL; | |
5650 | } | |
5651 | ||
5652 | ||
c32bde28 | 5653 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5654 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5655 | wxGauge *arg1 = (wxGauge *) 0 ; |
5656 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5657 | int arg3 = (int) -1 ; |
5658 | int arg4 = (int) 100 ; | |
d14a1e28 RD |
5659 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5660 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5661 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5662 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5663 | long arg7 = (long) wxGA_HORIZONTAL ; | |
5664 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5665 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5666 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
5667 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5668 | bool result; | |
5669 | wxPoint temp5 ; | |
5670 | wxSize temp6 ; | |
ae8162c8 | 5671 | bool temp9 = false ; |
d14a1e28 RD |
5672 | PyObject * obj0 = 0 ; |
5673 | PyObject * obj1 = 0 ; | |
994141e6 RD |
5674 | PyObject * obj2 = 0 ; |
5675 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5676 | PyObject * obj4 = 0 ; |
5677 | PyObject * obj5 = 0 ; | |
994141e6 | 5678 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5679 | PyObject * obj7 = 0 ; |
5680 | PyObject * obj8 = 0 ; | |
5681 | char *kwnames[] = { | |
5682 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5683 | }; | |
5684 | ||
248ed943 | 5685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
5686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5688 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5689 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 5690 | if (obj2) { |
093d3ff1 | 5691 | { |
32fe5131 | 5692 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
5693 | if (SWIG_arg_fail(3)) SWIG_fail; |
5694 | } | |
248ed943 RD |
5695 | } |
5696 | if (obj3) { | |
093d3ff1 | 5697 | { |
32fe5131 | 5698 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
5699 | if (SWIG_arg_fail(4)) SWIG_fail; |
5700 | } | |
248ed943 | 5701 | } |
d14a1e28 RD |
5702 | if (obj4) { |
5703 | { | |
5704 | arg5 = &temp5; | |
5705 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5706 | } | |
5707 | } | |
5708 | if (obj5) { | |
5709 | { | |
5710 | arg6 = &temp6; | |
5711 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5712 | } | |
5713 | } | |
994141e6 | 5714 | if (obj6) { |
093d3ff1 | 5715 | { |
32fe5131 | 5716 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
5717 | if (SWIG_arg_fail(7)) SWIG_fail; |
5718 | } | |
994141e6 | 5719 | } |
d14a1e28 | 5720 | if (obj7) { |
093d3ff1 RD |
5721 | { |
5722 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5723 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5724 | if (arg8 == NULL) { | |
5725 | SWIG_null_ref("wxValidator"); | |
5726 | } | |
5727 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
5728 | } |
5729 | } | |
5730 | if (obj8) { | |
5731 | { | |
5732 | arg9 = wxString_in_helper(obj8); | |
5733 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 5734 | temp9 = true; |
d14a1e28 RD |
5735 | } |
5736 | } | |
5737 | { | |
5738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5739 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5740 | ||
5741 | wxPyEndAllowThreads(__tstate); | |
5742 | if (PyErr_Occurred()) SWIG_fail; | |
5743 | } | |
4f89f6a3 RD |
5744 | { |
5745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5746 | } | |
d14a1e28 RD |
5747 | { |
5748 | if (temp9) | |
5749 | delete arg9; | |
5750 | } | |
5751 | return resultobj; | |
5752 | fail: | |
5753 | { | |
5754 | if (temp9) | |
5755 | delete arg9; | |
5756 | } | |
5757 | return NULL; | |
5758 | } | |
5759 | ||
5760 | ||
c32bde28 | 5761 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5762 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5763 | wxGauge *arg1 = (wxGauge *) 0 ; |
5764 | int arg2 ; | |
5765 | PyObject * obj0 = 0 ; | |
994141e6 | 5766 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5767 | char *kwnames[] = { |
5768 | (char *) "self",(char *) "range", NULL | |
5769 | }; | |
5770 | ||
994141e6 | 5771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5774 | { | |
32fe5131 | 5775 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5776 | if (SWIG_arg_fail(2)) SWIG_fail; |
5777 | } | |
d14a1e28 RD |
5778 | { |
5779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5780 | (arg1)->SetRange(arg2); | |
5781 | ||
5782 | wxPyEndAllowThreads(__tstate); | |
5783 | if (PyErr_Occurred()) SWIG_fail; | |
5784 | } | |
5785 | Py_INCREF(Py_None); resultobj = Py_None; | |
5786 | return resultobj; | |
5787 | fail: | |
5788 | return NULL; | |
5789 | } | |
5790 | ||
5791 | ||
c32bde28 | 5792 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5793 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5794 | wxGauge *arg1 = (wxGauge *) 0 ; |
5795 | int result; | |
5796 | PyObject * obj0 = 0 ; | |
5797 | char *kwnames[] = { | |
5798 | (char *) "self", NULL | |
5799 | }; | |
5800 | ||
5801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5802 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5803 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5804 | { |
5805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5806 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
5807 | ||
5808 | wxPyEndAllowThreads(__tstate); | |
5809 | if (PyErr_Occurred()) SWIG_fail; | |
5810 | } | |
093d3ff1 | 5811 | { |
32fe5131 | 5812 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 5813 | } |
d14a1e28 RD |
5814 | return resultobj; |
5815 | fail: | |
5816 | return NULL; | |
5817 | } | |
5818 | ||
5819 | ||
c32bde28 | 5820 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5821 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5822 | wxGauge *arg1 = (wxGauge *) 0 ; |
5823 | int arg2 ; | |
5824 | PyObject * obj0 = 0 ; | |
994141e6 | 5825 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5826 | char *kwnames[] = { |
5827 | (char *) "self",(char *) "pos", NULL | |
5828 | }; | |
5829 | ||
994141e6 | 5830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5833 | { | |
32fe5131 | 5834 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5835 | if (SWIG_arg_fail(2)) SWIG_fail; |
5836 | } | |
d14a1e28 RD |
5837 | { |
5838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5839 | (arg1)->SetValue(arg2); | |
5840 | ||
5841 | wxPyEndAllowThreads(__tstate); | |
5842 | if (PyErr_Occurred()) SWIG_fail; | |
5843 | } | |
5844 | Py_INCREF(Py_None); resultobj = Py_None; | |
5845 | return resultobj; | |
5846 | fail: | |
5847 | return NULL; | |
5848 | } | |
5849 | ||
5850 | ||
c32bde28 | 5851 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5852 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5853 | wxGauge *arg1 = (wxGauge *) 0 ; |
5854 | int result; | |
5855 | PyObject * obj0 = 0 ; | |
5856 | char *kwnames[] = { | |
5857 | (char *) "self", NULL | |
5858 | }; | |
5859 | ||
5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5863 | { |
5864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5865 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
5866 | ||
5867 | wxPyEndAllowThreads(__tstate); | |
5868 | if (PyErr_Occurred()) SWIG_fail; | |
5869 | } | |
093d3ff1 | 5870 | { |
32fe5131 | 5871 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 5872 | } |
d14a1e28 RD |
5873 | return resultobj; |
5874 | fail: | |
5875 | return NULL; | |
5876 | } | |
5877 | ||
5878 | ||
c32bde28 | 5879 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5880 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5881 | wxGauge *arg1 = (wxGauge *) 0 ; |
5882 | bool result; | |
5883 | PyObject * obj0 = 0 ; | |
5884 | char *kwnames[] = { | |
5885 | (char *) "self", NULL | |
5886 | }; | |
5887 | ||
5888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5891 | { |
5892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5893 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
5894 | ||
5895 | wxPyEndAllowThreads(__tstate); | |
5896 | if (PyErr_Occurred()) SWIG_fail; | |
5897 | } | |
4f89f6a3 RD |
5898 | { |
5899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5900 | } | |
d14a1e28 RD |
5901 | return resultobj; |
5902 | fail: | |
5903 | return NULL; | |
5904 | } | |
5905 | ||
5906 | ||
c32bde28 | 5907 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5908 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5909 | wxGauge *arg1 = (wxGauge *) 0 ; |
5910 | int arg2 ; | |
5911 | PyObject * obj0 = 0 ; | |
994141e6 | 5912 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5913 | char *kwnames[] = { |
5914 | (char *) "self",(char *) "w", NULL | |
5915 | }; | |
5916 | ||
994141e6 | 5917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5918 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5919 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5920 | { | |
32fe5131 | 5921 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5922 | if (SWIG_arg_fail(2)) SWIG_fail; |
5923 | } | |
d14a1e28 RD |
5924 | { |
5925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5926 | (arg1)->SetShadowWidth(arg2); | |
5927 | ||
5928 | wxPyEndAllowThreads(__tstate); | |
5929 | if (PyErr_Occurred()) SWIG_fail; | |
5930 | } | |
5931 | Py_INCREF(Py_None); resultobj = Py_None; | |
5932 | return resultobj; | |
5933 | fail: | |
5934 | return NULL; | |
5935 | } | |
5936 | ||
5937 | ||
c32bde28 | 5938 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5939 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5940 | wxGauge *arg1 = (wxGauge *) 0 ; |
5941 | int result; | |
5942 | PyObject * obj0 = 0 ; | |
5943 | char *kwnames[] = { | |
5944 | (char *) "self", NULL | |
5945 | }; | |
5946 | ||
5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5950 | { |
5951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5952 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
5953 | ||
5954 | wxPyEndAllowThreads(__tstate); | |
5955 | if (PyErr_Occurred()) SWIG_fail; | |
5956 | } | |
093d3ff1 | 5957 | { |
32fe5131 | 5958 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 5959 | } |
d14a1e28 RD |
5960 | return resultobj; |
5961 | fail: | |
5962 | return NULL; | |
5963 | } | |
5964 | ||
5965 | ||
c32bde28 | 5966 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5967 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5968 | wxGauge *arg1 = (wxGauge *) 0 ; |
5969 | int arg2 ; | |
5970 | PyObject * obj0 = 0 ; | |
994141e6 | 5971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5972 | char *kwnames[] = { |
5973 | (char *) "self",(char *) "w", NULL | |
5974 | }; | |
5975 | ||
994141e6 | 5976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5979 | { | |
32fe5131 | 5980 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5981 | if (SWIG_arg_fail(2)) SWIG_fail; |
5982 | } | |
d14a1e28 RD |
5983 | { |
5984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5985 | (arg1)->SetBezelFace(arg2); | |
5986 | ||
5987 | wxPyEndAllowThreads(__tstate); | |
5988 | if (PyErr_Occurred()) SWIG_fail; | |
5989 | } | |
5990 | Py_INCREF(Py_None); resultobj = Py_None; | |
5991 | return resultobj; | |
5992 | fail: | |
5993 | return NULL; | |
5994 | } | |
5995 | ||
5996 | ||
c32bde28 | 5997 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5998 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5999 | wxGauge *arg1 = (wxGauge *) 0 ; |
6000 | int result; | |
6001 | PyObject * obj0 = 0 ; | |
6002 | char *kwnames[] = { | |
6003 | (char *) "self", NULL | |
6004 | }; | |
6005 | ||
6006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
6008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6009 | { |
6010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6011 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
6012 | ||
6013 | wxPyEndAllowThreads(__tstate); | |
6014 | if (PyErr_Occurred()) SWIG_fail; | |
6015 | } | |
093d3ff1 | 6016 | { |
32fe5131 | 6017 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 6018 | } |
d14a1e28 RD |
6019 | return resultobj; |
6020 | fail: | |
6021 | return NULL; | |
6022 | } | |
6023 | ||
6024 | ||
c32bde28 | 6025 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6026 | PyObject *resultobj = NULL; |
093d3ff1 | 6027 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6028 | wxVisualAttributes result; |
6029 | PyObject * obj0 = 0 ; | |
6030 | char *kwnames[] = { | |
6031 | (char *) "variant", NULL | |
6032 | }; | |
6033 | ||
6034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6035 | if (obj0) { | |
093d3ff1 | 6036 | { |
32fe5131 | 6037 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
6038 | if (SWIG_arg_fail(1)) SWIG_fail; |
6039 | } | |
22bfe96c RD |
6040 | } |
6041 | { | |
110da5b0 | 6042 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 6043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 6044 | result = wxGauge::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
6045 | |
6046 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6047 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6048 | } |
6049 | { | |
6050 | wxVisualAttributes * resultptr; | |
32fe5131 | 6051 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
6052 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6053 | } | |
6054 | return resultobj; | |
6055 | fail: | |
6056 | return NULL; | |
6057 | } | |
6058 | ||
6059 | ||
c32bde28 | 6060 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6061 | PyObject *obj; |
6062 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6063 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
6064 | Py_INCREF(obj); | |
6065 | return Py_BuildValue((char *)""); | |
6066 | } | |
c32bde28 | 6067 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
b2dc1044 RD |
6068 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
6069 | return 1; | |
6070 | } | |
6071 | ||
6072 | ||
093d3ff1 | 6073 | static PyObject *_wrap_StaticBitmapNameStr_get(void) { |
32fe5131 | 6074 | PyObject *pyobj = NULL; |
b2dc1044 RD |
6075 | |
6076 | { | |
6077 | #if wxUSE_UNICODE | |
6078 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
6079 | #else | |
6080 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
6081 | #endif | |
6082 | } | |
6083 | return pyobj; | |
6084 | } | |
6085 | ||
6086 | ||
c32bde28 | 6087 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
6088 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
6089 | return 1; | |
6090 | } | |
6091 | ||
6092 | ||
093d3ff1 | 6093 | static PyObject *_wrap_StaticBoxNameStr_get(void) { |
32fe5131 | 6094 | PyObject *pyobj = NULL; |
b2dc1044 RD |
6095 | |
6096 | { | |
6097 | #if wxUSE_UNICODE | |
6098 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
6099 | #else | |
6100 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
6101 | #endif | |
6102 | } | |
6103 | return pyobj; | |
6104 | } | |
6105 | ||
6106 | ||
c32bde28 | 6107 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
b2dc1044 RD |
6108 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
6109 | return 1; | |
6110 | } | |
6111 | ||
6112 | ||
093d3ff1 | 6113 | static PyObject *_wrap_StaticTextNameStr_get(void) { |
32fe5131 | 6114 | PyObject *pyobj = NULL; |
b2dc1044 RD |
6115 | |
6116 | { | |
6117 | #if wxUSE_UNICODE | |
6118 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
6119 | #else | |
6120 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
6121 | #endif | |
6122 | } | |
6123 | return pyobj; | |
6124 | } | |
6125 | ||
6126 | ||
c32bde28 | 6127 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6128 | PyObject *resultobj = NULL; |
d14a1e28 | 6129 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
6130 | int arg2 = (int) -1 ; |
6131 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6132 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
6133 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6134 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6135 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6136 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6137 | long arg6 = (long) 0 ; | |
6138 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
6139 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6140 | wxStaticBox *result; | |
ae8162c8 | 6141 | bool temp3 = false ; |
d14a1e28 RD |
6142 | wxPoint temp4 ; |
6143 | wxSize temp5 ; | |
ae8162c8 | 6144 | bool temp7 = false ; |
d14a1e28 | 6145 | PyObject * obj0 = 0 ; |
994141e6 | 6146 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6147 | PyObject * obj2 = 0 ; |
6148 | PyObject * obj3 = 0 ; | |
6149 | PyObject * obj4 = 0 ; | |
994141e6 | 6150 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6151 | PyObject * obj6 = 0 ; |
6152 | char *kwnames[] = { | |
6153 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6154 | }; | |
6155 | ||
248ed943 | 6156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6159 | if (obj1) { |
093d3ff1 | 6160 | { |
32fe5131 | 6161 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6162 | if (SWIG_arg_fail(2)) SWIG_fail; |
6163 | } | |
248ed943 RD |
6164 | } |
6165 | if (obj2) { | |
6166 | { | |
6167 | arg3 = wxString_in_helper(obj2); | |
6168 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6169 | temp3 = true; |
248ed943 | 6170 | } |
d14a1e28 RD |
6171 | } |
6172 | if (obj3) { | |
6173 | { | |
6174 | arg4 = &temp4; | |
6175 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6176 | } | |
6177 | } | |
6178 | if (obj4) { | |
6179 | { | |
6180 | arg5 = &temp5; | |
6181 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6182 | } | |
6183 | } | |
994141e6 | 6184 | if (obj5) { |
093d3ff1 | 6185 | { |
32fe5131 | 6186 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
6187 | if (SWIG_arg_fail(6)) SWIG_fail; |
6188 | } | |
994141e6 | 6189 | } |
d14a1e28 RD |
6190 | if (obj6) { |
6191 | { | |
6192 | arg7 = wxString_in_helper(obj6); | |
6193 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6194 | temp7 = true; |
d14a1e28 RD |
6195 | } |
6196 | } | |
6197 | { | |
e3b71cb8 | 6198 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6200 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6201 | ||
6202 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6203 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6204 | } |
b0f7404b | 6205 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
6206 | { |
6207 | if (temp3) | |
6208 | delete arg3; | |
6209 | } | |
6210 | { | |
6211 | if (temp7) | |
6212 | delete arg7; | |
6213 | } | |
6214 | return resultobj; | |
6215 | fail: | |
6216 | { | |
6217 | if (temp3) | |
6218 | delete arg3; | |
6219 | } | |
6220 | { | |
6221 | if (temp7) | |
6222 | delete arg7; | |
6223 | } | |
6224 | return NULL; | |
6225 | } | |
6226 | ||
6227 | ||
c32bde28 | 6228 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6229 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6230 | wxStaticBox *result; |
6231 | char *kwnames[] = { | |
6232 | NULL | |
6233 | }; | |
6234 | ||
6235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
6236 | { | |
e3b71cb8 | 6237 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6239 | result = (wxStaticBox *)new wxStaticBox(); | |
6240 | ||
6241 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6242 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6243 | } |
b0f7404b | 6244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
6245 | return resultobj; |
6246 | fail: | |
6247 | return NULL; | |
6248 | } | |
6249 | ||
6250 | ||
c32bde28 | 6251 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6252 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6253 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; |
6254 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6255 | int arg3 = (int) -1 ; |
6256 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6257 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
6258 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6259 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6260 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6261 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6262 | long arg7 = (long) 0 ; | |
6263 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
6264 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6265 | bool result; | |
ae8162c8 | 6266 | bool temp4 = false ; |
d14a1e28 RD |
6267 | wxPoint temp5 ; |
6268 | wxSize temp6 ; | |
ae8162c8 | 6269 | bool temp8 = false ; |
d14a1e28 RD |
6270 | PyObject * obj0 = 0 ; |
6271 | PyObject * obj1 = 0 ; | |
994141e6 | 6272 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6273 | PyObject * obj3 = 0 ; |
6274 | PyObject * obj4 = 0 ; | |
6275 | PyObject * obj5 = 0 ; | |
994141e6 | 6276 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6277 | PyObject * obj7 = 0 ; |
6278 | char *kwnames[] = { | |
6279 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6280 | }; | |
6281 | ||
248ed943 | 6282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6283 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBox, SWIG_POINTER_EXCEPTION | 0); |
6284 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6285 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6286 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6287 | if (obj2) { |
093d3ff1 | 6288 | { |
32fe5131 | 6289 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6290 | if (SWIG_arg_fail(3)) SWIG_fail; |
6291 | } | |
248ed943 RD |
6292 | } |
6293 | if (obj3) { | |
6294 | { | |
6295 | arg4 = wxString_in_helper(obj3); | |
6296 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6297 | temp4 = true; |
248ed943 | 6298 | } |
d14a1e28 RD |
6299 | } |
6300 | if (obj4) { | |
6301 | { | |
6302 | arg5 = &temp5; | |
6303 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6304 | } | |
6305 | } | |
6306 | if (obj5) { | |
6307 | { | |
6308 | arg6 = &temp6; | |
6309 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6310 | } | |
6311 | } | |
994141e6 | 6312 | if (obj6) { |
093d3ff1 | 6313 | { |
32fe5131 | 6314 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
6315 | if (SWIG_arg_fail(7)) SWIG_fail; |
6316 | } | |
994141e6 | 6317 | } |
d14a1e28 RD |
6318 | if (obj7) { |
6319 | { | |
6320 | arg8 = wxString_in_helper(obj7); | |
6321 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6322 | temp8 = true; |
d14a1e28 RD |
6323 | } |
6324 | } | |
6325 | { | |
6326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6327 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6328 | ||
6329 | wxPyEndAllowThreads(__tstate); | |
6330 | if (PyErr_Occurred()) SWIG_fail; | |
6331 | } | |
4f89f6a3 RD |
6332 | { |
6333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6334 | } | |
d14a1e28 RD |
6335 | { |
6336 | if (temp4) | |
6337 | delete arg4; | |
6338 | } | |
6339 | { | |
6340 | if (temp8) | |
6341 | delete arg8; | |
6342 | } | |
6343 | return resultobj; | |
6344 | fail: | |
6345 | { | |
6346 | if (temp4) | |
6347 | delete arg4; | |
6348 | } | |
6349 | { | |
6350 | if (temp8) | |
6351 | delete arg8; | |
6352 | } | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
c32bde28 | 6357 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6358 | PyObject *resultobj = NULL; |
093d3ff1 | 6359 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6360 | wxVisualAttributes result; |
6361 | PyObject * obj0 = 0 ; | |
6362 | char *kwnames[] = { | |
6363 | (char *) "variant", NULL | |
6364 | }; | |
6365 | ||
6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6367 | if (obj0) { | |
093d3ff1 | 6368 | { |
32fe5131 | 6369 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
6370 | if (SWIG_arg_fail(1)) SWIG_fail; |
6371 | } | |
22bfe96c RD |
6372 | } |
6373 | { | |
110da5b0 | 6374 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 6375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 6376 | result = wxStaticBox::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
6377 | |
6378 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6379 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6380 | } |
6381 | { | |
6382 | wxVisualAttributes * resultptr; | |
32fe5131 | 6383 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
6384 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6385 | } | |
6386 | return resultobj; | |
6387 | fail: | |
6388 | return NULL; | |
6389 | } | |
6390 | ||
6391 | ||
c32bde28 | 6392 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6393 | PyObject *obj; |
6394 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6395 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
6396 | Py_INCREF(obj); | |
6397 | return Py_BuildValue((char *)""); | |
6398 | } | |
c32bde28 | 6399 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6400 | PyObject *resultobj = NULL; |
d14a1e28 | 6401 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 6402 | int arg2 = (int) -1 ; |
d14a1e28 RD |
6403 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6404 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6405 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6406 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6407 | long arg5 = (long) wxLI_HORIZONTAL ; | |
6408 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
6409 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6410 | wxStaticLine *result; | |
6411 | wxPoint temp3 ; | |
6412 | wxSize temp4 ; | |
ae8162c8 | 6413 | bool temp6 = false ; |
d14a1e28 | 6414 | PyObject * obj0 = 0 ; |
994141e6 | 6415 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6416 | PyObject * obj2 = 0 ; |
6417 | PyObject * obj3 = 0 ; | |
994141e6 | 6418 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
6419 | PyObject * obj5 = 0 ; |
6420 | char *kwnames[] = { | |
6421 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6422 | }; | |
6423 | ||
248ed943 | 6424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
6425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6427 | if (obj1) { |
093d3ff1 | 6428 | { |
32fe5131 | 6429 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6430 | if (SWIG_arg_fail(2)) SWIG_fail; |
6431 | } | |
248ed943 | 6432 | } |
d14a1e28 RD |
6433 | if (obj2) { |
6434 | { | |
6435 | arg3 = &temp3; | |
6436 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6437 | } | |
6438 | } | |
6439 | if (obj3) { | |
6440 | { | |
6441 | arg4 = &temp4; | |
6442 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6443 | } | |
6444 | } | |
994141e6 | 6445 | if (obj4) { |
093d3ff1 | 6446 | { |
32fe5131 | 6447 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
6448 | if (SWIG_arg_fail(5)) SWIG_fail; |
6449 | } | |
994141e6 | 6450 | } |
d14a1e28 RD |
6451 | if (obj5) { |
6452 | { | |
6453 | arg6 = wxString_in_helper(obj5); | |
6454 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 6455 | temp6 = true; |
d14a1e28 RD |
6456 | } |
6457 | } | |
6458 | { | |
e3b71cb8 | 6459 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6461 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6462 | ||
6463 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6464 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6465 | } |
15afbcd0 | 6466 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
6467 | { |
6468 | if (temp6) | |
6469 | delete arg6; | |
6470 | } | |
6471 | return resultobj; | |
6472 | fail: | |
6473 | { | |
6474 | if (temp6) | |
6475 | delete arg6; | |
6476 | } | |
6477 | return NULL; | |
6478 | } | |
6479 | ||
6480 | ||
c32bde28 | 6481 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6482 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6483 | wxStaticLine *result; |
6484 | char *kwnames[] = { | |
6485 | NULL | |
6486 | }; | |
6487 | ||
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
6489 | { | |
e3b71cb8 | 6490 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6492 | result = (wxStaticLine *)new wxStaticLine(); | |
6493 | ||
6494 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6495 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6496 | } |
15afbcd0 | 6497 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
6498 | return resultobj; |
6499 | fail: | |
6500 | return NULL; | |
6501 | } | |
6502 | ||
6503 | ||
c32bde28 | 6504 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6505 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6506 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; |
6507 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6508 | int arg3 = (int) -1 ; |
d14a1e28 RD |
6509 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6510 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6511 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6512 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6513 | long arg6 = (long) wxLI_HORIZONTAL ; | |
6514 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6515 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6516 | bool result; | |
6517 | wxPoint temp4 ; | |
6518 | wxSize temp5 ; | |
ae8162c8 | 6519 | bool temp7 = false ; |
d14a1e28 RD |
6520 | PyObject * obj0 = 0 ; |
6521 | PyObject * obj1 = 0 ; | |
994141e6 | 6522 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6523 | PyObject * obj3 = 0 ; |
6524 | PyObject * obj4 = 0 ; | |
994141e6 | 6525 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6526 | PyObject * obj6 = 0 ; |
6527 | char *kwnames[] = { | |
6528 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6529 | }; | |
6530 | ||
248ed943 | 6531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6532 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6533 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6534 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6535 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6536 | if (obj2) { |
093d3ff1 | 6537 | { |
32fe5131 | 6538 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6539 | if (SWIG_arg_fail(3)) SWIG_fail; |
6540 | } | |
248ed943 | 6541 | } |
d14a1e28 RD |
6542 | if (obj3) { |
6543 | { | |
6544 | arg4 = &temp4; | |
6545 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6546 | } | |
6547 | } | |
6548 | if (obj4) { | |
6549 | { | |
6550 | arg5 = &temp5; | |
6551 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6552 | } | |
6553 | } | |
994141e6 | 6554 | if (obj5) { |
093d3ff1 | 6555 | { |
32fe5131 | 6556 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
6557 | if (SWIG_arg_fail(6)) SWIG_fail; |
6558 | } | |
994141e6 | 6559 | } |
d14a1e28 RD |
6560 | if (obj6) { |
6561 | { | |
6562 | arg7 = wxString_in_helper(obj6); | |
6563 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6564 | temp7 = true; |
d14a1e28 RD |
6565 | } |
6566 | } | |
6567 | { | |
6568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6569 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6570 | ||
6571 | wxPyEndAllowThreads(__tstate); | |
6572 | if (PyErr_Occurred()) SWIG_fail; | |
6573 | } | |
4f89f6a3 RD |
6574 | { |
6575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6576 | } | |
d14a1e28 RD |
6577 | { |
6578 | if (temp7) | |
6579 | delete arg7; | |
6580 | } | |
6581 | return resultobj; | |
6582 | fail: | |
6583 | { | |
6584 | if (temp7) | |
6585 | delete arg7; | |
6586 | } | |
6587 | return NULL; | |
6588 | } | |
6589 | ||
6590 | ||
c32bde28 | 6591 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6592 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6593 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; |
6594 | bool result; | |
6595 | PyObject * obj0 = 0 ; | |
6596 | char *kwnames[] = { | |
6597 | (char *) "self", NULL | |
6598 | }; | |
6599 | ||
6600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6603 | { |
6604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6605 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
6606 | ||
6607 | wxPyEndAllowThreads(__tstate); | |
6608 | if (PyErr_Occurred()) SWIG_fail; | |
6609 | } | |
4f89f6a3 RD |
6610 | { |
6611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6612 | } | |
d14a1e28 RD |
6613 | return resultobj; |
6614 | fail: | |
6615 | return NULL; | |
6616 | } | |
6617 | ||
6618 | ||
c32bde28 | 6619 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6620 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6621 | int result; |
6622 | char *kwnames[] = { | |
6623 | NULL | |
6624 | }; | |
6625 | ||
6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
6627 | { | |
6628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6629 | result = (int)wxStaticLine::GetDefaultSize(); | |
6630 | ||
6631 | wxPyEndAllowThreads(__tstate); | |
6632 | if (PyErr_Occurred()) SWIG_fail; | |
6633 | } | |
093d3ff1 | 6634 | { |
32fe5131 | 6635 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 6636 | } |
d14a1e28 RD |
6637 | return resultobj; |
6638 | fail: | |
6639 | return NULL; | |
6640 | } | |
6641 | ||
6642 | ||
c32bde28 | 6643 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6644 | PyObject *resultobj = NULL; |
093d3ff1 | 6645 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6646 | wxVisualAttributes result; |
6647 | PyObject * obj0 = 0 ; | |
6648 | char *kwnames[] = { | |
6649 | (char *) "variant", NULL | |
6650 | }; | |
6651 | ||
6652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6653 | if (obj0) { | |
093d3ff1 | 6654 | { |
32fe5131 | 6655 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
6656 | if (SWIG_arg_fail(1)) SWIG_fail; |
6657 | } | |
22bfe96c RD |
6658 | } |
6659 | { | |
110da5b0 | 6660 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 6661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 6662 | result = wxStaticLine::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
6663 | |
6664 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6665 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6666 | } |
6667 | { | |
6668 | wxVisualAttributes * resultptr; | |
32fe5131 | 6669 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
6670 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6671 | } | |
6672 | return resultobj; | |
6673 | fail: | |
6674 | return NULL; | |
6675 | } | |
6676 | ||
6677 | ||
c32bde28 | 6678 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6679 | PyObject *obj; |
6680 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6681 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
6682 | Py_INCREF(obj); | |
6683 | return Py_BuildValue((char *)""); | |
6684 | } | |
c32bde28 | 6685 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6686 | PyObject *resultobj = NULL; |
d14a1e28 | 6687 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
6688 | int arg2 = (int) -1 ; |
6689 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6690 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
6691 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6692 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6693 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6694 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6695 | long arg6 = (long) 0 ; | |
6696 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6697 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6698 | wxStaticText *result; | |
ae8162c8 | 6699 | bool temp3 = false ; |
d14a1e28 RD |
6700 | wxPoint temp4 ; |
6701 | wxSize temp5 ; | |
ae8162c8 | 6702 | bool temp7 = false ; |
d14a1e28 | 6703 | PyObject * obj0 = 0 ; |
994141e6 | 6704 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6705 | PyObject * obj2 = 0 ; |
6706 | PyObject * obj3 = 0 ; | |
6707 | PyObject * obj4 = 0 ; | |
994141e6 | 6708 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6709 | PyObject * obj6 = 0 ; |
6710 | char *kwnames[] = { | |
6711 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6712 | }; | |
6713 | ||
248ed943 | 6714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6717 | if (obj1) { |
093d3ff1 | 6718 | { |
32fe5131 | 6719 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6720 | if (SWIG_arg_fail(2)) SWIG_fail; |
6721 | } | |
248ed943 RD |
6722 | } |
6723 | if (obj2) { | |
6724 | { | |
6725 | arg3 = wxString_in_helper(obj2); | |
6726 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6727 | temp3 = true; |
248ed943 | 6728 | } |
d14a1e28 RD |
6729 | } |
6730 | if (obj3) { | |
6731 | { | |
6732 | arg4 = &temp4; | |
6733 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6734 | } | |
6735 | } | |
6736 | if (obj4) { | |
6737 | { | |
6738 | arg5 = &temp5; | |
6739 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6740 | } | |
6741 | } | |
994141e6 | 6742 | if (obj5) { |
093d3ff1 | 6743 | { |
32fe5131 | 6744 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
6745 | if (SWIG_arg_fail(6)) SWIG_fail; |
6746 | } | |
994141e6 | 6747 | } |
d14a1e28 RD |
6748 | if (obj6) { |
6749 | { | |
6750 | arg7 = wxString_in_helper(obj6); | |
6751 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6752 | temp7 = true; |
d14a1e28 RD |
6753 | } |
6754 | } | |
6755 | { | |
e3b71cb8 | 6756 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6758 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6759 | ||
6760 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6761 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6762 | } |
15afbcd0 | 6763 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
6764 | { |
6765 | if (temp3) | |
6766 | delete arg3; | |
6767 | } | |
6768 | { | |
6769 | if (temp7) | |
6770 | delete arg7; | |
6771 | } | |
6772 | return resultobj; | |
6773 | fail: | |
6774 | { | |
6775 | if (temp3) | |
6776 | delete arg3; | |
6777 | } | |
6778 | { | |
6779 | if (temp7) | |
6780 | delete arg7; | |
6781 | } | |
6782 | return NULL; | |
6783 | } | |
6784 | ||
6785 | ||
c32bde28 | 6786 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6787 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6788 | wxStaticText *result; |
6789 | char *kwnames[] = { | |
6790 | NULL | |
6791 | }; | |
6792 | ||
6793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
6794 | { | |
e3b71cb8 | 6795 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6797 | result = (wxStaticText *)new wxStaticText(); | |
6798 | ||
6799 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6800 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6801 | } |
15afbcd0 | 6802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
6803 | return resultobj; |
6804 | fail: | |
6805 | return NULL; | |
6806 | } | |
6807 | ||
6808 | ||
c32bde28 | 6809 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6810 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6811 | wxStaticText *arg1 = (wxStaticText *) 0 ; |
6812 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6813 | int arg3 = (int) -1 ; |
6814 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6815 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
6816 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6817 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6818 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6819 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6820 | long arg7 = (long) 0 ; | |
6821 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
6822 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6823 | bool result; | |
ae8162c8 | 6824 | bool temp4 = false ; |
d14a1e28 RD |
6825 | wxPoint temp5 ; |
6826 | wxSize temp6 ; | |
ae8162c8 | 6827 | bool temp8 = false ; |
d14a1e28 RD |
6828 | PyObject * obj0 = 0 ; |
6829 | PyObject * obj1 = 0 ; | |
994141e6 | 6830 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6831 | PyObject * obj3 = 0 ; |
6832 | PyObject * obj4 = 0 ; | |
6833 | PyObject * obj5 = 0 ; | |
994141e6 | 6834 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6835 | PyObject * obj7 = 0 ; |
6836 | char *kwnames[] = { | |
6837 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6838 | }; | |
6839 | ||
248ed943 | 6840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticText, SWIG_POINTER_EXCEPTION | 0); |
6842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6843 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6844 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6845 | if (obj2) { |
093d3ff1 | 6846 | { |
32fe5131 | 6847 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6848 | if (SWIG_arg_fail(3)) SWIG_fail; |
6849 | } | |
248ed943 RD |
6850 | } |
6851 | if (obj3) { | |
6852 | { | |
6853 | arg4 = wxString_in_helper(obj3); | |
6854 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6855 | temp4 = true; |
248ed943 | 6856 | } |
d14a1e28 RD |
6857 | } |
6858 | if (obj4) { | |
6859 | { | |
6860 | arg5 = &temp5; | |
6861 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6862 | } | |
6863 | } | |
6864 | if (obj5) { | |
6865 | { | |
6866 | arg6 = &temp6; | |
6867 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6868 | } | |
6869 | } | |
994141e6 | 6870 | if (obj6) { |
093d3ff1 | 6871 | { |
32fe5131 | 6872 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
6873 | if (SWIG_arg_fail(7)) SWIG_fail; |
6874 | } | |
994141e6 | 6875 | } |
d14a1e28 RD |
6876 | if (obj7) { |
6877 | { | |
6878 | arg8 = wxString_in_helper(obj7); | |
6879 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6880 | temp8 = true; |
d14a1e28 RD |
6881 | } |
6882 | } | |
6883 | { | |
6884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6885 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6886 | ||
6887 | wxPyEndAllowThreads(__tstate); | |
6888 | if (PyErr_Occurred()) SWIG_fail; | |
6889 | } | |
4f89f6a3 RD |
6890 | { |
6891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6892 | } | |
d14a1e28 RD |
6893 | { |
6894 | if (temp4) | |
6895 | delete arg4; | |
6896 | } | |
6897 | { | |
6898 | if (temp8) | |
6899 | delete arg8; | |
6900 | } | |
6901 | return resultobj; | |
6902 | fail: | |
6903 | { | |
6904 | if (temp4) | |
6905 | delete arg4; | |
6906 | } | |
6907 | { | |
6908 | if (temp8) | |
6909 | delete arg8; | |
6910 | } | |
6911 | return NULL; | |
6912 | } | |
6913 | ||
6914 | ||
943e8dfd | 6915 | static PyObject *_wrap_StaticText_Wrap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6916 | PyObject *resultobj = NULL; |
943e8dfd RD |
6917 | wxStaticText *arg1 = (wxStaticText *) 0 ; |
6918 | int arg2 ; | |
6919 | PyObject * obj0 = 0 ; | |
6920 | PyObject * obj1 = 0 ; | |
6921 | char *kwnames[] = { | |
6922 | (char *) "self",(char *) "width", NULL | |
6923 | }; | |
6924 | ||
6925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) goto fail; | |
6926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticText, SWIG_POINTER_EXCEPTION | 0); | |
6927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6928 | { | |
32fe5131 | 6929 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
943e8dfd RD |
6930 | if (SWIG_arg_fail(2)) SWIG_fail; |
6931 | } | |
6932 | { | |
6933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6934 | (arg1)->Wrap(arg2); | |
6935 | ||
6936 | wxPyEndAllowThreads(__tstate); | |
6937 | if (PyErr_Occurred()) SWIG_fail; | |
6938 | } | |
6939 | Py_INCREF(Py_None); resultobj = Py_None; | |
6940 | return resultobj; | |
6941 | fail: | |
6942 | return NULL; | |
6943 | } | |
6944 | ||
6945 | ||
c32bde28 | 6946 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6947 | PyObject *resultobj = NULL; |
093d3ff1 | 6948 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6949 | wxVisualAttributes result; |
6950 | PyObject * obj0 = 0 ; | |
6951 | char *kwnames[] = { | |
6952 | (char *) "variant", NULL | |
6953 | }; | |
6954 | ||
6955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6956 | if (obj0) { | |
093d3ff1 | 6957 | { |
32fe5131 | 6958 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
6959 | if (SWIG_arg_fail(1)) SWIG_fail; |
6960 | } | |
22bfe96c RD |
6961 | } |
6962 | { | |
110da5b0 | 6963 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 6964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 6965 | result = wxStaticText::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
6966 | |
6967 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6968 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6969 | } |
6970 | { | |
6971 | wxVisualAttributes * resultptr; | |
32fe5131 | 6972 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
6973 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6974 | } | |
6975 | return resultobj; | |
6976 | fail: | |
6977 | return NULL; | |
6978 | } | |
6979 | ||
6980 | ||
c32bde28 | 6981 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6982 | PyObject *obj; |
6983 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6984 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
6985 | Py_INCREF(obj); | |
6986 | return Py_BuildValue((char *)""); | |
6987 | } | |
c32bde28 | 6988 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6989 | PyObject *resultobj = NULL; |
d14a1e28 | 6990 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
6991 | int arg2 = (int) -1 ; |
6992 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
6993 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
6994 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6995 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6996 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6997 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6998 | long arg6 = (long) 0 ; | |
6999 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
7000 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7001 | wxStaticBitmap *result; | |
7002 | wxPoint temp4 ; | |
7003 | wxSize temp5 ; | |
ae8162c8 | 7004 | bool temp7 = false ; |
d14a1e28 | 7005 | PyObject * obj0 = 0 ; |
994141e6 | 7006 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7007 | PyObject * obj2 = 0 ; |
7008 | PyObject * obj3 = 0 ; | |
7009 | PyObject * obj4 = 0 ; | |
994141e6 | 7010 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7011 | PyObject * obj6 = 0 ; |
7012 | char *kwnames[] = { | |
7013 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7014 | }; | |
7015 | ||
248ed943 | 7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
7017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 7019 | if (obj1) { |
093d3ff1 | 7020 | { |
32fe5131 | 7021 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7022 | if (SWIG_arg_fail(2)) SWIG_fail; |
7023 | } | |
248ed943 RD |
7024 | } |
7025 | if (obj2) { | |
093d3ff1 RD |
7026 | { |
7027 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7028 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7029 | if (arg3 == NULL) { | |
7030 | SWIG_null_ref("wxBitmap"); | |
7031 | } | |
7032 | if (SWIG_arg_fail(3)) SWIG_fail; | |
248ed943 | 7033 | } |
d14a1e28 RD |
7034 | } |
7035 | if (obj3) { | |
7036 | { | |
7037 | arg4 = &temp4; | |
7038 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7039 | } | |
7040 | } | |
7041 | if (obj4) { | |
7042 | { | |
7043 | arg5 = &temp5; | |
7044 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7045 | } | |
7046 | } | |
994141e6 | 7047 | if (obj5) { |
093d3ff1 | 7048 | { |
32fe5131 | 7049 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
7050 | if (SWIG_arg_fail(6)) SWIG_fail; |
7051 | } | |
994141e6 | 7052 | } |
d14a1e28 RD |
7053 | if (obj6) { |
7054 | { | |
7055 | arg7 = wxString_in_helper(obj6); | |
7056 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 7057 | temp7 = true; |
d14a1e28 RD |
7058 | } |
7059 | } | |
7060 | { | |
e3b71cb8 | 7061 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7063 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7064 | ||
7065 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7066 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7067 | } |
15afbcd0 | 7068 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
7069 | { |
7070 | if (temp7) | |
7071 | delete arg7; | |
7072 | } | |
7073 | return resultobj; | |
7074 | fail: | |
7075 | { | |
7076 | if (temp7) | |
7077 | delete arg7; | |
7078 | } | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
c32bde28 | 7083 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7084 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7085 | wxStaticBitmap *result; |
7086 | char *kwnames[] = { | |
7087 | NULL | |
7088 | }; | |
7089 | ||
7090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
7091 | { | |
e3b71cb8 | 7092 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7094 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
7095 | ||
7096 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7097 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7098 | } |
15afbcd0 | 7099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
7100 | return resultobj; |
7101 | fail: | |
7102 | return NULL; | |
7103 | } | |
7104 | ||
7105 | ||
c32bde28 | 7106 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7107 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7108 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; |
7109 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
7110 | int arg3 = (int) -1 ; |
7111 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
7112 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
7113 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
7114 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7115 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7116 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7117 | long arg7 = (long) 0 ; | |
7118 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
7119 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7120 | bool result; | |
7121 | wxPoint temp5 ; | |
7122 | wxSize temp6 ; | |
ae8162c8 | 7123 | bool temp8 = false ; |
d14a1e28 RD |
7124 | PyObject * obj0 = 0 ; |
7125 | PyObject * obj1 = 0 ; | |
994141e6 | 7126 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7127 | PyObject * obj3 = 0 ; |
7128 | PyObject * obj4 = 0 ; | |
7129 | PyObject * obj5 = 0 ; | |
994141e6 | 7130 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7131 | PyObject * obj7 = 0 ; |
7132 | char *kwnames[] = { | |
7133 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7134 | }; | |
7135 | ||
248ed943 | 7136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
7137 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7138 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7139 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7140 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 7141 | if (obj2) { |
093d3ff1 | 7142 | { |
32fe5131 | 7143 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7144 | if (SWIG_arg_fail(3)) SWIG_fail; |
7145 | } | |
248ed943 RD |
7146 | } |
7147 | if (obj3) { | |
093d3ff1 RD |
7148 | { |
7149 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7150 | if (SWIG_arg_fail(4)) SWIG_fail; | |
7151 | if (arg4 == NULL) { | |
7152 | SWIG_null_ref("wxBitmap"); | |
7153 | } | |
7154 | if (SWIG_arg_fail(4)) SWIG_fail; | |
248ed943 | 7155 | } |
d14a1e28 RD |
7156 | } |
7157 | if (obj4) { | |
7158 | { | |
7159 | arg5 = &temp5; | |
7160 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7161 | } | |
7162 | } | |
7163 | if (obj5) { | |
7164 | { | |
7165 | arg6 = &temp6; | |
7166 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7167 | } | |
7168 | } | |
994141e6 | 7169 | if (obj6) { |
093d3ff1 | 7170 | { |
32fe5131 | 7171 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
7172 | if (SWIG_arg_fail(7)) SWIG_fail; |
7173 | } | |
994141e6 | 7174 | } |
d14a1e28 RD |
7175 | if (obj7) { |
7176 | { | |
7177 | arg8 = wxString_in_helper(obj7); | |
7178 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 7179 | temp8 = true; |
d14a1e28 RD |
7180 | } |
7181 | } | |
7182 | { | |
7183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7184 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7185 | ||
7186 | wxPyEndAllowThreads(__tstate); | |
7187 | if (PyErr_Occurred()) SWIG_fail; | |
7188 | } | |
4f89f6a3 RD |
7189 | { |
7190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7191 | } | |
d14a1e28 RD |
7192 | { |
7193 | if (temp8) | |
7194 | delete arg8; | |
7195 | } | |
7196 | return resultobj; | |
7197 | fail: | |
7198 | { | |
7199 | if (temp8) | |
7200 | delete arg8; | |
7201 | } | |
7202 | return NULL; | |
7203 | } | |
7204 | ||
7205 | ||
c32bde28 | 7206 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7207 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7208 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; |
7209 | wxBitmap result; | |
7210 | PyObject * obj0 = 0 ; | |
7211 | char *kwnames[] = { | |
7212 | (char *) "self", NULL | |
7213 | }; | |
7214 | ||
7215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7218 | { |
7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7220 | result = (arg1)->GetBitmap(); | |
7221 | ||
7222 | wxPyEndAllowThreads(__tstate); | |
7223 | if (PyErr_Occurred()) SWIG_fail; | |
7224 | } | |
7225 | { | |
7226 | wxBitmap * resultptr; | |
32fe5131 | 7227 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 7228 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
7229 | } |
7230 | return resultobj; | |
7231 | fail: | |
7232 | return NULL; | |
7233 | } | |
7234 | ||
7235 | ||
c32bde28 | 7236 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7237 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7238 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; |
7239 | wxBitmap *arg2 = 0 ; | |
7240 | PyObject * obj0 = 0 ; | |
7241 | PyObject * obj1 = 0 ; | |
7242 | char *kwnames[] = { | |
7243 | (char *) "self",(char *) "bitmap", NULL | |
7244 | }; | |
7245 | ||
7246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7247 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7248 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7249 | { | |
7250 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7251 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7252 | if (arg2 == NULL) { | |
7253 | SWIG_null_ref("wxBitmap"); | |
7254 | } | |
7255 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7256 | } |
7257 | { | |
7258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7259 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
7260 | ||
7261 | wxPyEndAllowThreads(__tstate); | |
7262 | if (PyErr_Occurred()) SWIG_fail; | |
7263 | } | |
7264 | Py_INCREF(Py_None); resultobj = Py_None; | |
7265 | return resultobj; | |
7266 | fail: | |
7267 | return NULL; | |
7268 | } | |
7269 | ||
7270 | ||
c32bde28 | 7271 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7272 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7273 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; |
7274 | wxIcon *arg2 = 0 ; | |
7275 | PyObject * obj0 = 0 ; | |
7276 | PyObject * obj1 = 0 ; | |
7277 | char *kwnames[] = { | |
7278 | (char *) "self",(char *) "icon", NULL | |
7279 | }; | |
7280 | ||
7281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7282 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7283 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7284 | { | |
7285 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
7286 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7287 | if (arg2 == NULL) { | |
7288 | SWIG_null_ref("wxIcon"); | |
7289 | } | |
7290 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7291 | } |
7292 | { | |
7293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7294 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
7295 | ||
7296 | wxPyEndAllowThreads(__tstate); | |
7297 | if (PyErr_Occurred()) SWIG_fail; | |
7298 | } | |
7299 | Py_INCREF(Py_None); resultobj = Py_None; | |
7300 | return resultobj; | |
7301 | fail: | |
7302 | return NULL; | |
7303 | } | |
7304 | ||
7305 | ||
c32bde28 | 7306 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7307 | PyObject *resultobj = NULL; |
093d3ff1 | 7308 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
7309 | wxVisualAttributes result; |
7310 | PyObject * obj0 = 0 ; | |
7311 | char *kwnames[] = { | |
7312 | (char *) "variant", NULL | |
7313 | }; | |
7314 | ||
7315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
7316 | if (obj0) { | |
093d3ff1 | 7317 | { |
32fe5131 | 7318 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
7319 | if (SWIG_arg_fail(1)) SWIG_fail; |
7320 | } | |
22bfe96c RD |
7321 | } |
7322 | { | |
110da5b0 | 7323 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 7324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 7325 | result = wxStaticBitmap::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
7326 | |
7327 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 7328 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
7329 | } |
7330 | { | |
7331 | wxVisualAttributes * resultptr; | |
32fe5131 | 7332 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
7333 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
7334 | } | |
7335 | return resultobj; | |
7336 | fail: | |
7337 | return NULL; | |
7338 | } | |
7339 | ||
7340 | ||
c32bde28 | 7341 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7342 | PyObject *obj; |
7343 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7344 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
7345 | Py_INCREF(obj); | |
7346 | return Py_BuildValue((char *)""); | |
7347 | } | |
c32bde28 | 7348 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
7349 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
7350 | return 1; | |
7351 | } | |
7352 | ||
7353 | ||
093d3ff1 | 7354 | static PyObject *_wrap_ListBoxNameStr_get(void) { |
32fe5131 | 7355 | PyObject *pyobj = NULL; |
b2dc1044 RD |
7356 | |
7357 | { | |
7358 | #if wxUSE_UNICODE | |
7359 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7360 | #else | |
7361 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7362 | #endif | |
7363 | } | |
7364 | return pyobj; | |
7365 | } | |
7366 | ||
7367 | ||
c32bde28 | 7368 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7369 | PyObject *resultobj = NULL; |
d14a1e28 | 7370 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 7371 | int arg2 = (int) -1 ; |
d14a1e28 RD |
7372 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
7373 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7374 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7375 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
7376 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
7377 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
7378 | long arg6 = (long) 0 ; | |
7379 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7380 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7381 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
7382 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
7383 | wxListBox *result; |
7384 | wxPoint temp3 ; | |
7385 | wxSize temp4 ; | |
ae8162c8 RD |
7386 | bool temp5 = false ; |
7387 | bool temp8 = false ; | |
d14a1e28 | 7388 | PyObject * obj0 = 0 ; |
994141e6 | 7389 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7390 | PyObject * obj2 = 0 ; |
7391 | PyObject * obj3 = 0 ; | |
7392 | PyObject * obj4 = 0 ; | |
994141e6 | 7393 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7394 | PyObject * obj6 = 0 ; |
7395 | PyObject * obj7 = 0 ; | |
7396 | char *kwnames[] = { | |
7397 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7398 | }; | |
7399 | ||
248ed943 | 7400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
7401 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7402 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 7403 | if (obj1) { |
093d3ff1 | 7404 | { |
32fe5131 | 7405 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7406 | if (SWIG_arg_fail(2)) SWIG_fail; |
7407 | } | |
248ed943 | 7408 | } |
d14a1e28 RD |
7409 | if (obj2) { |
7410 | { | |
7411 | arg3 = &temp3; | |
7412 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7413 | } | |
7414 | } | |
7415 | if (obj3) { | |
7416 | { | |
7417 | arg4 = &temp4; | |
7418 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7419 | } | |
7420 | } | |
7421 | if (obj4) { | |
7422 | { | |
4d5c3d91 RD |
7423 | if (! PySequence_Check(obj4)) { |
7424 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7425 | SWIG_fail; | |
7426 | } | |
7427 | arg5 = new wxArrayString; | |
ae8162c8 | 7428 | temp5 = true; |
4d5c3d91 RD |
7429 | int i, len=PySequence_Length(obj4); |
7430 | for (i=0; i<len; i++) { | |
7431 | PyObject* item = PySequence_GetItem(obj4, i); | |
71237536 | 7432 | wxString* s = wxString_in_helper(item); |
74a57fcd | 7433 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7434 | arg5->Add(*s); |
7435 | delete s; | |
4d5c3d91 | 7436 | Py_DECREF(item); |
4d5c3d91 | 7437 | } |
d14a1e28 RD |
7438 | } |
7439 | } | |
994141e6 | 7440 | if (obj5) { |
093d3ff1 | 7441 | { |
32fe5131 | 7442 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
7443 | if (SWIG_arg_fail(6)) SWIG_fail; |
7444 | } | |
994141e6 | 7445 | } |
d14a1e28 | 7446 | if (obj6) { |
093d3ff1 RD |
7447 | { |
7448 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7449 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7450 | if (arg7 == NULL) { | |
7451 | SWIG_null_ref("wxValidator"); | |
7452 | } | |
7453 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
7454 | } |
7455 | } | |
7456 | if (obj7) { | |
7457 | { | |
4d5c3d91 RD |
7458 | arg8 = wxString_in_helper(obj7); |
7459 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 7460 | temp8 = true; |
d14a1e28 RD |
7461 | } |
7462 | } | |
7463 | { | |
e3b71cb8 | 7464 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 7465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 7466 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
7467 | |
7468 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7469 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7470 | } |
15afbcd0 | 7471 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 7472 | { |
3adfb63b | 7473 | if (temp5) delete arg5; |
d14a1e28 RD |
7474 | } |
7475 | { | |
7476 | if (temp8) | |
4d5c3d91 | 7477 | delete arg8; |
d14a1e28 RD |
7478 | } |
7479 | return resultobj; | |
7480 | fail: | |
7481 | { | |
3adfb63b | 7482 | if (temp5) delete arg5; |
d14a1e28 RD |
7483 | } |
7484 | { | |
7485 | if (temp8) | |
4d5c3d91 | 7486 | delete arg8; |
d14a1e28 RD |
7487 | } |
7488 | return NULL; | |
7489 | } | |
7490 | ||
7491 | ||
c32bde28 | 7492 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7493 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7494 | wxListBox *result; |
7495 | char *kwnames[] = { | |
7496 | NULL | |
7497 | }; | |
7498 | ||
7499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
7500 | { | |
e3b71cb8 | 7501 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7503 | result = (wxListBox *)new wxListBox(); | |
7504 | ||
7505 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7506 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7507 | } |
15afbcd0 | 7508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
7509 | return resultobj; |
7510 | fail: | |
7511 | return NULL; | |
7512 | } | |
7513 | ||
7514 | ||
c32bde28 | 7515 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7516 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7517 | wxListBox *arg1 = (wxListBox *) 0 ; |
7518 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 7519 | int arg3 = (int) -1 ; |
d14a1e28 RD |
7520 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
7521 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7522 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7523 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
7524 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
7525 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
7526 | long arg7 = (long) 0 ; | |
7527 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7528 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7529 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
7530 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
7531 | bool result; |
7532 | wxPoint temp4 ; | |
7533 | wxSize temp5 ; | |
ae8162c8 RD |
7534 | bool temp6 = false ; |
7535 | bool temp9 = false ; | |
d14a1e28 RD |
7536 | PyObject * obj0 = 0 ; |
7537 | PyObject * obj1 = 0 ; | |
994141e6 | 7538 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7539 | PyObject * obj3 = 0 ; |
7540 | PyObject * obj4 = 0 ; | |
7541 | PyObject * obj5 = 0 ; | |
994141e6 | 7542 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7543 | PyObject * obj7 = 0 ; |
7544 | PyObject * obj8 = 0 ; | |
7545 | char *kwnames[] = { | |
7546 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7547 | }; | |
7548 | ||
248ed943 | 7549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
7550 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7551 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7552 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7553 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 7554 | if (obj2) { |
093d3ff1 | 7555 | { |
32fe5131 | 7556 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7557 | if (SWIG_arg_fail(3)) SWIG_fail; |
7558 | } | |
248ed943 | 7559 | } |
d14a1e28 RD |
7560 | if (obj3) { |
7561 | { | |
7562 | arg4 = &temp4; | |
7563 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7564 | } | |
7565 | } | |
7566 | if (obj4) { | |
7567 | { | |
7568 | arg5 = &temp5; | |
7569 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7570 | } | |
7571 | } | |
7572 | if (obj5) { | |
7573 | { | |
4d5c3d91 RD |
7574 | if (! PySequence_Check(obj5)) { |
7575 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7576 | SWIG_fail; | |
7577 | } | |
7578 | arg6 = new wxArrayString; | |
ae8162c8 | 7579 | temp6 = true; |
4d5c3d91 RD |
7580 | int i, len=PySequence_Length(obj5); |
7581 | for (i=0; i<len; i++) { | |
7582 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 7583 | wxString* s = wxString_in_helper(item); |
74a57fcd | 7584 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7585 | arg6->Add(*s); |
7586 | delete s; | |
4d5c3d91 | 7587 | Py_DECREF(item); |
4d5c3d91 | 7588 | } |
d14a1e28 RD |
7589 | } |
7590 | } | |
994141e6 | 7591 | if (obj6) { |
093d3ff1 | 7592 | { |
32fe5131 | 7593 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
7594 | if (SWIG_arg_fail(7)) SWIG_fail; |
7595 | } | |
994141e6 | 7596 | } |
d14a1e28 | 7597 | if (obj7) { |
093d3ff1 RD |
7598 | { |
7599 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7600 | if (SWIG_arg_fail(8)) SWIG_fail; | |
7601 | if (arg8 == NULL) { | |
7602 | SWIG_null_ref("wxValidator"); | |
7603 | } | |
7604 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
7605 | } |
7606 | } | |
7607 | if (obj8) { | |
7608 | { | |
4d5c3d91 RD |
7609 | arg9 = wxString_in_helper(obj8); |
7610 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 7611 | temp9 = true; |
d14a1e28 RD |
7612 | } |
7613 | } | |
7614 | { | |
7615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 7616 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
7617 | |
7618 | wxPyEndAllowThreads(__tstate); | |
7619 | if (PyErr_Occurred()) SWIG_fail; | |
7620 | } | |
4f89f6a3 RD |
7621 | { |
7622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7623 | } | |
d14a1e28 | 7624 | { |
3adfb63b | 7625 | if (temp6) delete arg6; |
d14a1e28 RD |
7626 | } |
7627 | { | |
7628 | if (temp9) | |
4d5c3d91 | 7629 | delete arg9; |
d14a1e28 RD |
7630 | } |
7631 | return resultobj; | |
7632 | fail: | |
7633 | { | |
3adfb63b | 7634 | if (temp6) delete arg6; |
d14a1e28 RD |
7635 | } |
7636 | { | |
7637 | if (temp9) | |
4d5c3d91 | 7638 | delete arg9; |
d14a1e28 RD |
7639 | } |
7640 | return NULL; | |
7641 | } | |
7642 | ||
7643 | ||
c32bde28 | 7644 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7645 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7646 | wxListBox *arg1 = (wxListBox *) 0 ; |
7647 | wxString *arg2 = 0 ; | |
7648 | int arg3 ; | |
7649 | PyObject *arg4 = (PyObject *) NULL ; | |
ae8162c8 | 7650 | bool temp2 = false ; |
d14a1e28 RD |
7651 | PyObject * obj0 = 0 ; |
7652 | PyObject * obj1 = 0 ; | |
994141e6 | 7653 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7654 | PyObject * obj3 = 0 ; |
7655 | char *kwnames[] = { | |
7656 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
7657 | }; | |
7658 | ||
994141e6 | 7659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
7660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7662 | { |
7663 | arg2 = wxString_in_helper(obj1); | |
7664 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7665 | temp2 = true; |
d14a1e28 | 7666 | } |
093d3ff1 | 7667 | { |
32fe5131 | 7668 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7669 | if (SWIG_arg_fail(3)) SWIG_fail; |
7670 | } | |
d14a1e28 RD |
7671 | if (obj3) { |
7672 | arg4 = obj3; | |
7673 | } | |
7674 | { | |
7675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7676 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
7677 | ||
7678 | wxPyEndAllowThreads(__tstate); | |
7679 | if (PyErr_Occurred()) SWIG_fail; | |
7680 | } | |
7681 | Py_INCREF(Py_None); resultobj = Py_None; | |
7682 | { | |
7683 | if (temp2) | |
7684 | delete arg2; | |
7685 | } | |
7686 | return resultobj; | |
7687 | fail: | |
7688 | { | |
7689 | if (temp2) | |
7690 | delete arg2; | |
7691 | } | |
7692 | return NULL; | |
7693 | } | |
7694 | ||
7695 | ||
c32bde28 | 7696 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7697 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7698 | wxListBox *arg1 = (wxListBox *) 0 ; |
7699 | wxArrayString *arg2 = 0 ; | |
7700 | int arg3 ; | |
ae8162c8 | 7701 | bool temp2 = false ; |
d14a1e28 RD |
7702 | PyObject * obj0 = 0 ; |
7703 | PyObject * obj1 = 0 ; | |
994141e6 | 7704 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7705 | char *kwnames[] = { |
7706 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
7707 | }; | |
7708 | ||
994141e6 | 7709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7710 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7712 | { |
7713 | if (! PySequence_Check(obj1)) { | |
7714 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7715 | SWIG_fail; | |
7716 | } | |
7717 | arg2 = new wxArrayString; | |
ae8162c8 | 7718 | temp2 = true; |
d14a1e28 RD |
7719 | int i, len=PySequence_Length(obj1); |
7720 | for (i=0; i<len; i++) { | |
7721 | PyObject* item = PySequence_GetItem(obj1, i); | |
71237536 | 7722 | wxString* s = wxString_in_helper(item); |
74a57fcd | 7723 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7724 | arg2->Add(*s); |
7725 | delete s; | |
d14a1e28 | 7726 | Py_DECREF(item); |
d14a1e28 RD |
7727 | } |
7728 | } | |
093d3ff1 | 7729 | { |
32fe5131 | 7730 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7731 | if (SWIG_arg_fail(3)) SWIG_fail; |
7732 | } | |
d14a1e28 RD |
7733 | { |
7734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7735 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
7736 | ||
7737 | wxPyEndAllowThreads(__tstate); | |
7738 | if (PyErr_Occurred()) SWIG_fail; | |
7739 | } | |
7740 | Py_INCREF(Py_None); resultobj = Py_None; | |
7741 | { | |
3adfb63b | 7742 | if (temp2) delete arg2; |
d14a1e28 RD |
7743 | } |
7744 | return resultobj; | |
7745 | fail: | |
7746 | { | |
3adfb63b | 7747 | if (temp2) delete arg2; |
d14a1e28 RD |
7748 | } |
7749 | return NULL; | |
7750 | } | |
7751 | ||
7752 | ||
c32bde28 | 7753 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7754 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7755 | wxListBox *arg1 = (wxListBox *) 0 ; |
7756 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 7757 | bool temp2 = false ; |
d14a1e28 RD |
7758 | PyObject * obj0 = 0 ; |
7759 | PyObject * obj1 = 0 ; | |
7760 | char *kwnames[] = { | |
7761 | (char *) "self",(char *) "items", NULL | |
7762 | }; | |
7763 | ||
7764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7767 | { |
7768 | if (! PySequence_Check(obj1)) { | |
7769 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7770 | SWIG_fail; | |
7771 | } | |
7772 | arg2 = new wxArrayString; | |
ae8162c8 | 7773 | temp2 = true; |
d14a1e28 RD |
7774 | int i, len=PySequence_Length(obj1); |
7775 | for (i=0; i<len; i++) { | |
7776 | PyObject* item = PySequence_GetItem(obj1, i); | |
71237536 | 7777 | wxString* s = wxString_in_helper(item); |
74a57fcd | 7778 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7779 | arg2->Add(*s); |
7780 | delete s; | |
d14a1e28 | 7781 | Py_DECREF(item); |
d14a1e28 RD |
7782 | } |
7783 | } | |
7784 | { | |
7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7786 | (arg1)->Set((wxArrayString const &)*arg2); | |
7787 | ||
7788 | wxPyEndAllowThreads(__tstate); | |
7789 | if (PyErr_Occurred()) SWIG_fail; | |
7790 | } | |
7791 | Py_INCREF(Py_None); resultobj = Py_None; | |
7792 | { | |
3adfb63b | 7793 | if (temp2) delete arg2; |
d14a1e28 RD |
7794 | } |
7795 | return resultobj; | |
7796 | fail: | |
7797 | { | |
3adfb63b | 7798 | if (temp2) delete arg2; |
d14a1e28 RD |
7799 | } |
7800 | return NULL; | |
7801 | } | |
7802 | ||
7803 | ||
c32bde28 | 7804 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7805 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7806 | wxListBox *arg1 = (wxListBox *) 0 ; |
7807 | int arg2 ; | |
7808 | bool result; | |
7809 | PyObject * obj0 = 0 ; | |
994141e6 | 7810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7811 | char *kwnames[] = { |
7812 | (char *) "self",(char *) "n", NULL | |
7813 | }; | |
7814 | ||
994141e6 | 7815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7816 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7817 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7818 | { | |
32fe5131 | 7819 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7820 | if (SWIG_arg_fail(2)) SWIG_fail; |
7821 | } | |
d14a1e28 RD |
7822 | { |
7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7824 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
7825 | ||
7826 | wxPyEndAllowThreads(__tstate); | |
7827 | if (PyErr_Occurred()) SWIG_fail; | |
7828 | } | |
4f89f6a3 RD |
7829 | { |
7830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7831 | } | |
d14a1e28 RD |
7832 | return resultobj; |
7833 | fail: | |
7834 | return NULL; | |
7835 | } | |
7836 | ||
7837 | ||
c32bde28 | 7838 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7839 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7840 | wxListBox *arg1 = (wxListBox *) 0 ; |
7841 | int arg2 ; | |
ae8162c8 | 7842 | bool arg3 = (bool) true ; |
d14a1e28 | 7843 | PyObject * obj0 = 0 ; |
994141e6 | 7844 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7845 | PyObject * obj2 = 0 ; |
7846 | char *kwnames[] = { | |
7847 | (char *) "self",(char *) "n",(char *) "select", NULL | |
7848 | }; | |
7849 | ||
994141e6 | 7850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7851 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7852 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7853 | { | |
32fe5131 | 7854 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7855 | if (SWIG_arg_fail(2)) SWIG_fail; |
7856 | } | |
d14a1e28 | 7857 | if (obj2) { |
093d3ff1 | 7858 | { |
32fe5131 | 7859 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
7860 | if (SWIG_arg_fail(3)) SWIG_fail; |
7861 | } | |
d14a1e28 RD |
7862 | } |
7863 | { | |
7864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7865 | (arg1)->SetSelection(arg2,arg3); | |
7866 | ||
7867 | wxPyEndAllowThreads(__tstate); | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | } | |
7870 | Py_INCREF(Py_None); resultobj = Py_None; | |
7871 | return resultobj; | |
7872 | fail: | |
7873 | return NULL; | |
7874 | } | |
7875 | ||
7876 | ||
c32bde28 | 7877 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7878 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7879 | wxListBox *arg1 = (wxListBox *) 0 ; |
7880 | int arg2 ; | |
7881 | PyObject * obj0 = 0 ; | |
994141e6 | 7882 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7883 | char *kwnames[] = { |
7884 | (char *) "self",(char *) "n", NULL | |
7885 | }; | |
7886 | ||
994141e6 | 7887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7888 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7889 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7890 | { | |
32fe5131 | 7891 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7892 | if (SWIG_arg_fail(2)) SWIG_fail; |
7893 | } | |
d14a1e28 RD |
7894 | { |
7895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7896 | (arg1)->Select(arg2); | |
7897 | ||
7898 | wxPyEndAllowThreads(__tstate); | |
7899 | if (PyErr_Occurred()) SWIG_fail; | |
7900 | } | |
7901 | Py_INCREF(Py_None); resultobj = Py_None; | |
7902 | return resultobj; | |
7903 | fail: | |
7904 | return NULL; | |
7905 | } | |
7906 | ||
7907 | ||
c32bde28 | 7908 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7909 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7910 | wxListBox *arg1 = (wxListBox *) 0 ; |
7911 | int arg2 ; | |
7912 | PyObject * obj0 = 0 ; | |
994141e6 | 7913 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7914 | char *kwnames[] = { |
7915 | (char *) "self",(char *) "n", NULL | |
7916 | }; | |
7917 | ||
994141e6 | 7918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7921 | { | |
32fe5131 | 7922 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7923 | if (SWIG_arg_fail(2)) SWIG_fail; |
7924 | } | |
d14a1e28 RD |
7925 | { |
7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7927 | (arg1)->Deselect(arg2); | |
7928 | ||
7929 | wxPyEndAllowThreads(__tstate); | |
7930 | if (PyErr_Occurred()) SWIG_fail; | |
7931 | } | |
7932 | Py_INCREF(Py_None); resultobj = Py_None; | |
7933 | return resultobj; | |
7934 | fail: | |
7935 | return NULL; | |
7936 | } | |
7937 | ||
7938 | ||
c32bde28 | 7939 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7940 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7941 | wxListBox *arg1 = (wxListBox *) 0 ; |
7942 | int arg2 = (int) -1 ; | |
7943 | PyObject * obj0 = 0 ; | |
994141e6 | 7944 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7945 | char *kwnames[] = { |
7946 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
7947 | }; | |
7948 | ||
994141e6 | 7949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7950 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 7952 | if (obj1) { |
093d3ff1 | 7953 | { |
32fe5131 | 7954 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7955 | if (SWIG_arg_fail(2)) SWIG_fail; |
7956 | } | |
994141e6 | 7957 | } |
d14a1e28 RD |
7958 | { |
7959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7960 | (arg1)->DeselectAll(arg2); | |
7961 | ||
7962 | wxPyEndAllowThreads(__tstate); | |
7963 | if (PyErr_Occurred()) SWIG_fail; | |
7964 | } | |
7965 | Py_INCREF(Py_None); resultobj = Py_None; | |
7966 | return resultobj; | |
7967 | fail: | |
7968 | return NULL; | |
7969 | } | |
7970 | ||
7971 | ||
c32bde28 | 7972 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7973 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7974 | wxListBox *arg1 = (wxListBox *) 0 ; |
7975 | wxString *arg2 = 0 ; | |
ae8162c8 | 7976 | bool arg3 = (bool) true ; |
d14a1e28 | 7977 | bool result; |
ae8162c8 | 7978 | bool temp2 = false ; |
d14a1e28 RD |
7979 | PyObject * obj0 = 0 ; |
7980 | PyObject * obj1 = 0 ; | |
7981 | PyObject * obj2 = 0 ; | |
7982 | char *kwnames[] = { | |
7983 | (char *) "self",(char *) "s",(char *) "select", NULL | |
7984 | }; | |
7985 | ||
7986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7987 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7988 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7989 | { |
7990 | arg2 = wxString_in_helper(obj1); | |
7991 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7992 | temp2 = true; |
d14a1e28 RD |
7993 | } |
7994 | if (obj2) { | |
093d3ff1 | 7995 | { |
32fe5131 | 7996 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
7997 | if (SWIG_arg_fail(3)) SWIG_fail; |
7998 | } | |
d14a1e28 RD |
7999 | } |
8000 | { | |
8001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8002 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
8003 | ||
8004 | wxPyEndAllowThreads(__tstate); | |
8005 | if (PyErr_Occurred()) SWIG_fail; | |
8006 | } | |
4f89f6a3 RD |
8007 | { |
8008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8009 | } | |
d14a1e28 RD |
8010 | { |
8011 | if (temp2) | |
8012 | delete arg2; | |
8013 | } | |
8014 | return resultobj; | |
8015 | fail: | |
8016 | { | |
8017 | if (temp2) | |
8018 | delete arg2; | |
8019 | } | |
8020 | return NULL; | |
8021 | } | |
8022 | ||
8023 | ||
c32bde28 | 8024 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8025 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8026 | wxListBox *arg1 = (wxListBox *) 0 ; |
8027 | PyObject *result; | |
8028 | PyObject * obj0 = 0 ; | |
8029 | char *kwnames[] = { | |
8030 | (char *) "self", NULL | |
8031 | }; | |
8032 | ||
8033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8036 | { |
8037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8038 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
8039 | ||
8040 | wxPyEndAllowThreads(__tstate); | |
8041 | if (PyErr_Occurred()) SWIG_fail; | |
8042 | } | |
8043 | resultobj = result; | |
8044 | return resultobj; | |
8045 | fail: | |
8046 | return NULL; | |
8047 | } | |
8048 | ||
8049 | ||
c32bde28 | 8050 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8051 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8052 | wxListBox *arg1 = (wxListBox *) 0 ; |
8053 | int arg2 ; | |
8054 | PyObject * obj0 = 0 ; | |
994141e6 | 8055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8056 | char *kwnames[] = { |
8057 | (char *) "self",(char *) "n", NULL | |
8058 | }; | |
8059 | ||
994141e6 | 8060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8063 | { | |
32fe5131 | 8064 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8065 | if (SWIG_arg_fail(2)) SWIG_fail; |
8066 | } | |
d14a1e28 RD |
8067 | { |
8068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8069 | (arg1)->SetFirstItem(arg2); | |
8070 | ||
8071 | wxPyEndAllowThreads(__tstate); | |
8072 | if (PyErr_Occurred()) SWIG_fail; | |
8073 | } | |
8074 | Py_INCREF(Py_None); resultobj = Py_None; | |
8075 | return resultobj; | |
8076 | fail: | |
8077 | return NULL; | |
8078 | } | |
8079 | ||
8080 | ||
c32bde28 | 8081 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8082 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8083 | wxListBox *arg1 = (wxListBox *) 0 ; |
8084 | wxString *arg2 = 0 ; | |
ae8162c8 | 8085 | bool temp2 = false ; |
d14a1e28 RD |
8086 | PyObject * obj0 = 0 ; |
8087 | PyObject * obj1 = 0 ; | |
8088 | char *kwnames[] = { | |
8089 | (char *) "self",(char *) "s", NULL | |
8090 | }; | |
8091 | ||
8092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8095 | { |
8096 | arg2 = wxString_in_helper(obj1); | |
8097 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8098 | temp2 = true; |
d14a1e28 RD |
8099 | } |
8100 | { | |
8101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8102 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
8103 | ||
8104 | wxPyEndAllowThreads(__tstate); | |
8105 | if (PyErr_Occurred()) SWIG_fail; | |
8106 | } | |
8107 | Py_INCREF(Py_None); resultobj = Py_None; | |
8108 | { | |
8109 | if (temp2) | |
8110 | delete arg2; | |
8111 | } | |
8112 | return resultobj; | |
8113 | fail: | |
8114 | { | |
8115 | if (temp2) | |
8116 | delete arg2; | |
8117 | } | |
8118 | return NULL; | |
8119 | } | |
8120 | ||
8121 | ||
c32bde28 | 8122 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8123 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8124 | wxListBox *arg1 = (wxListBox *) 0 ; |
8125 | int arg2 ; | |
8126 | PyObject * obj0 = 0 ; | |
994141e6 | 8127 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8128 | char *kwnames[] = { |
8129 | (char *) "self",(char *) "n", NULL | |
8130 | }; | |
8131 | ||
994141e6 | 8132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8135 | { | |
32fe5131 | 8136 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8137 | if (SWIG_arg_fail(2)) SWIG_fail; |
8138 | } | |
d14a1e28 RD |
8139 | { |
8140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8141 | (arg1)->EnsureVisible(arg2); | |
8142 | ||
8143 | wxPyEndAllowThreads(__tstate); | |
8144 | if (PyErr_Occurred()) SWIG_fail; | |
8145 | } | |
8146 | Py_INCREF(Py_None); resultobj = Py_None; | |
8147 | return resultobj; | |
8148 | fail: | |
8149 | return NULL; | |
8150 | } | |
8151 | ||
8152 | ||
c32bde28 | 8153 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8154 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8155 | wxListBox *arg1 = (wxListBox *) 0 ; |
8156 | wxString *arg2 = 0 ; | |
ae8162c8 | 8157 | bool temp2 = false ; |
d14a1e28 RD |
8158 | PyObject * obj0 = 0 ; |
8159 | PyObject * obj1 = 0 ; | |
8160 | char *kwnames[] = { | |
8161 | (char *) "self",(char *) "s", NULL | |
8162 | }; | |
8163 | ||
8164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8165 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8166 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8167 | { |
8168 | arg2 = wxString_in_helper(obj1); | |
8169 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8170 | temp2 = true; |
d14a1e28 RD |
8171 | } |
8172 | { | |
8173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8174 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
8175 | ||
8176 | wxPyEndAllowThreads(__tstate); | |
8177 | if (PyErr_Occurred()) SWIG_fail; | |
8178 | } | |
8179 | Py_INCREF(Py_None); resultobj = Py_None; | |
8180 | { | |
8181 | if (temp2) | |
8182 | delete arg2; | |
8183 | } | |
8184 | return resultobj; | |
8185 | fail: | |
8186 | { | |
8187 | if (temp2) | |
8188 | delete arg2; | |
8189 | } | |
8190 | return NULL; | |
8191 | } | |
8192 | ||
8193 | ||
c32bde28 | 8194 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8195 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8196 | wxListBox *arg1 = (wxListBox *) 0 ; |
8197 | bool result; | |
8198 | PyObject * obj0 = 0 ; | |
8199 | char *kwnames[] = { | |
8200 | (char *) "self", NULL | |
8201 | }; | |
8202 | ||
8203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8204 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8205 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8206 | { |
8207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8208 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
8209 | ||
8210 | wxPyEndAllowThreads(__tstate); | |
8211 | if (PyErr_Occurred()) SWIG_fail; | |
8212 | } | |
4f89f6a3 RD |
8213 | { |
8214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8215 | } | |
d14a1e28 RD |
8216 | return resultobj; |
8217 | fail: | |
8218 | return NULL; | |
8219 | } | |
8220 | ||
8221 | ||
c32bde28 | 8222 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8223 | PyObject *resultobj = NULL; |
c3eb6258 RD |
8224 | wxListBox *arg1 = (wxListBox *) 0 ; |
8225 | int arg2 ; | |
8226 | wxColour *arg3 = 0 ; | |
8227 | wxColour temp3 ; | |
8228 | PyObject * obj0 = 0 ; | |
8229 | PyObject * obj1 = 0 ; | |
8230 | PyObject * obj2 = 0 ; | |
8231 | char *kwnames[] = { | |
8232 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8233 | }; | |
8234 | ||
8235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8236 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8237 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8238 | { | |
32fe5131 | 8239 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8240 | if (SWIG_arg_fail(2)) SWIG_fail; |
8241 | } | |
c3eb6258 RD |
8242 | { |
8243 | arg3 = &temp3; | |
8244 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8245 | } | |
8246 | { | |
8247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8248 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8249 | ||
8250 | wxPyEndAllowThreads(__tstate); | |
8251 | if (PyErr_Occurred()) SWIG_fail; | |
8252 | } | |
8253 | Py_INCREF(Py_None); resultobj = Py_None; | |
8254 | return resultobj; | |
8255 | fail: | |
8256 | return NULL; | |
8257 | } | |
8258 | ||
8259 | ||
c32bde28 | 8260 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8261 | PyObject *resultobj = NULL; |
c3eb6258 RD |
8262 | wxListBox *arg1 = (wxListBox *) 0 ; |
8263 | int arg2 ; | |
8264 | wxColour *arg3 = 0 ; | |
8265 | wxColour temp3 ; | |
8266 | PyObject * obj0 = 0 ; | |
8267 | PyObject * obj1 = 0 ; | |
8268 | PyObject * obj2 = 0 ; | |
8269 | char *kwnames[] = { | |
8270 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8271 | }; | |
8272 | ||
8273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8276 | { | |
32fe5131 | 8277 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8278 | if (SWIG_arg_fail(2)) SWIG_fail; |
8279 | } | |
c3eb6258 RD |
8280 | { |
8281 | arg3 = &temp3; | |
8282 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8283 | } | |
8284 | { | |
8285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8286 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8287 | ||
8288 | wxPyEndAllowThreads(__tstate); | |
8289 | if (PyErr_Occurred()) SWIG_fail; | |
8290 | } | |
8291 | Py_INCREF(Py_None); resultobj = Py_None; | |
8292 | return resultobj; | |
8293 | fail: | |
8294 | return NULL; | |
8295 | } | |
8296 | ||
8297 | ||
c32bde28 | 8298 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8299 | PyObject *resultobj = NULL; |
c3eb6258 RD |
8300 | wxListBox *arg1 = (wxListBox *) 0 ; |
8301 | int arg2 ; | |
8302 | wxFont *arg3 = 0 ; | |
8303 | PyObject * obj0 = 0 ; | |
8304 | PyObject * obj1 = 0 ; | |
8305 | PyObject * obj2 = 0 ; | |
8306 | char *kwnames[] = { | |
8307 | (char *) "self",(char *) "item",(char *) "f", NULL | |
8308 | }; | |
8309 | ||
8310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8313 | { | |
32fe5131 | 8314 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8315 | if (SWIG_arg_fail(2)) SWIG_fail; |
8316 | } | |
8317 | { | |
8318 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8319 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8320 | if (arg3 == NULL) { | |
8321 | SWIG_null_ref("wxFont"); | |
8322 | } | |
8323 | if (SWIG_arg_fail(3)) SWIG_fail; | |
c3eb6258 RD |
8324 | } |
8325 | { | |
8326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8327 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
8328 | ||
8329 | wxPyEndAllowThreads(__tstate); | |
8330 | if (PyErr_Occurred()) SWIG_fail; | |
8331 | } | |
8332 | Py_INCREF(Py_None); resultobj = Py_None; | |
8333 | return resultobj; | |
8334 | fail: | |
8335 | return NULL; | |
8336 | } | |
8337 | ||
8338 | ||
c32bde28 | 8339 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8340 | PyObject *resultobj = NULL; |
093d3ff1 | 8341 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
8342 | wxVisualAttributes result; |
8343 | PyObject * obj0 = 0 ; | |
8344 | char *kwnames[] = { | |
8345 | (char *) "variant", NULL | |
8346 | }; | |
8347 | ||
8348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
8349 | if (obj0) { | |
093d3ff1 | 8350 | { |
32fe5131 | 8351 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
8352 | if (SWIG_arg_fail(1)) SWIG_fail; |
8353 | } | |
74a57fcd RD |
8354 | } |
8355 | { | |
110da5b0 | 8356 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd | 8357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 8358 | result = wxListBox::GetClassDefaultAttributes(arg1); |
74a57fcd RD |
8359 | |
8360 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 8361 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
8362 | } |
8363 | { | |
8364 | wxVisualAttributes * resultptr; | |
32fe5131 | 8365 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
74a57fcd RD |
8366 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
8367 | } | |
8368 | return resultobj; | |
8369 | fail: | |
8370 | return NULL; | |
8371 | } | |
8372 | ||
8373 | ||
c32bde28 | 8374 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8375 | PyObject *obj; |
8376 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8377 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
8378 | Py_INCREF(obj); | |
8379 | return Py_BuildValue((char *)""); | |
8380 | } | |
c32bde28 | 8381 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8382 | PyObject *resultobj = NULL; |
d14a1e28 | 8383 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 8384 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8385 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8386 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8387 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8388 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
8389 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
8390 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8391 | long arg6 = (long) 0 ; | |
8392 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8393 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8394 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8395 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
8396 | wxCheckListBox *result; |
8397 | wxPoint temp3 ; | |
8398 | wxSize temp4 ; | |
ae8162c8 RD |
8399 | bool temp5 = false ; |
8400 | bool temp8 = false ; | |
d14a1e28 | 8401 | PyObject * obj0 = 0 ; |
994141e6 | 8402 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8403 | PyObject * obj2 = 0 ; |
8404 | PyObject * obj3 = 0 ; | |
8405 | PyObject * obj4 = 0 ; | |
994141e6 | 8406 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
8407 | PyObject * obj6 = 0 ; |
8408 | PyObject * obj7 = 0 ; | |
8409 | char *kwnames[] = { | |
8410 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8411 | }; | |
8412 | ||
248ed943 | 8413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
8414 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
8415 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 8416 | if (obj1) { |
093d3ff1 | 8417 | { |
32fe5131 | 8418 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8419 | if (SWIG_arg_fail(2)) SWIG_fail; |
8420 | } | |
248ed943 | 8421 | } |
d14a1e28 RD |
8422 | if (obj2) { |
8423 | { | |
8424 | arg3 = &temp3; | |
8425 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8426 | } | |
8427 | } | |
8428 | if (obj3) { | |
8429 | { | |
8430 | arg4 = &temp4; | |
8431 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8432 | } | |
8433 | } | |
8434 | if (obj4) { | |
8435 | { | |
4d5c3d91 RD |
8436 | if (! PySequence_Check(obj4)) { |
8437 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8438 | SWIG_fail; | |
8439 | } | |
8440 | arg5 = new wxArrayString; | |
ae8162c8 | 8441 | temp5 = true; |
4d5c3d91 RD |
8442 | int i, len=PySequence_Length(obj4); |
8443 | for (i=0; i<len; i++) { | |
8444 | PyObject* item = PySequence_GetItem(obj4, i); | |
71237536 | 8445 | wxString* s = wxString_in_helper(item); |
74a57fcd | 8446 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
8447 | arg5->Add(*s); |
8448 | delete s; | |
4d5c3d91 | 8449 | Py_DECREF(item); |
4d5c3d91 | 8450 | } |
d14a1e28 RD |
8451 | } |
8452 | } | |
994141e6 | 8453 | if (obj5) { |
093d3ff1 | 8454 | { |
32fe5131 | 8455 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
8456 | if (SWIG_arg_fail(6)) SWIG_fail; |
8457 | } | |
994141e6 | 8458 | } |
d14a1e28 | 8459 | if (obj6) { |
093d3ff1 RD |
8460 | { |
8461 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8462 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8463 | if (arg7 == NULL) { | |
8464 | SWIG_null_ref("wxValidator"); | |
8465 | } | |
8466 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
8467 | } |
8468 | } | |
8469 | if (obj7) { | |
8470 | { | |
4d5c3d91 RD |
8471 | arg8 = wxString_in_helper(obj7); |
8472 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 8473 | temp8 = true; |
d14a1e28 RD |
8474 | } |
8475 | } | |
8476 | { | |
e3b71cb8 | 8477 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 8478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 8479 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
8480 | |
8481 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8482 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8483 | } |
15afbcd0 | 8484 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 8485 | { |
3adfb63b | 8486 | if (temp5) delete arg5; |
d14a1e28 RD |
8487 | } |
8488 | { | |
8489 | if (temp8) | |
4d5c3d91 | 8490 | delete arg8; |
d14a1e28 RD |
8491 | } |
8492 | return resultobj; | |
8493 | fail: | |
8494 | { | |
3adfb63b | 8495 | if (temp5) delete arg5; |
d14a1e28 RD |
8496 | } |
8497 | { | |
8498 | if (temp8) | |
4d5c3d91 | 8499 | delete arg8; |
d14a1e28 RD |
8500 | } |
8501 | return NULL; | |
8502 | } | |
8503 | ||
8504 | ||
c32bde28 | 8505 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8506 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8507 | wxCheckListBox *result; |
8508 | char *kwnames[] = { | |
8509 | NULL | |
8510 | }; | |
8511 | ||
8512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
8513 | { | |
e3b71cb8 | 8514 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8516 | result = (wxCheckListBox *)new wxCheckListBox(); | |
8517 | ||
8518 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8519 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8520 | } |
15afbcd0 | 8521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
8522 | return resultobj; |
8523 | fail: | |
8524 | return NULL; | |
8525 | } | |
8526 | ||
8527 | ||
c32bde28 | 8528 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8529 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8530 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
8531 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8532 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8533 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8534 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8535 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8536 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
8537 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
8538 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
8539 | long arg7 = (long) 0 ; | |
8540 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8541 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8542 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
8543 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
8544 | bool result; |
8545 | wxPoint temp4 ; | |
8546 | wxSize temp5 ; | |
ae8162c8 RD |
8547 | bool temp6 = false ; |
8548 | bool temp9 = false ; | |
d14a1e28 RD |
8549 | PyObject * obj0 = 0 ; |
8550 | PyObject * obj1 = 0 ; | |
994141e6 | 8551 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8552 | PyObject * obj3 = 0 ; |
8553 | PyObject * obj4 = 0 ; | |
8554 | PyObject * obj5 = 0 ; | |
994141e6 | 8555 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8556 | PyObject * obj7 = 0 ; |
8557 | PyObject * obj8 = 0 ; | |
8558 | char *kwnames[] = { | |
8559 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8560 | }; | |
8561 | ||
248ed943 | 8562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
8563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8565 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
8566 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 8567 | if (obj2) { |
093d3ff1 | 8568 | { |
32fe5131 | 8569 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
8570 | if (SWIG_arg_fail(3)) SWIG_fail; |
8571 | } | |
248ed943 | 8572 | } |
d14a1e28 RD |
8573 | if (obj3) { |
8574 | { | |
8575 | arg4 = &temp4; | |
8576 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8577 | } | |
8578 | } | |
8579 | if (obj4) { | |
8580 | { | |
8581 | arg5 = &temp5; | |
8582 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8583 | } | |
8584 | } | |
8585 | if (obj5) { | |
8586 | { | |
4d5c3d91 RD |
8587 | if (! PySequence_Check(obj5)) { |
8588 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8589 | SWIG_fail; | |
8590 | } | |
8591 | arg6 = new wxArrayString; | |
ae8162c8 | 8592 | temp6 = true; |
4d5c3d91 RD |
8593 | int i, len=PySequence_Length(obj5); |
8594 | for (i=0; i<len; i++) { | |
8595 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 8596 | wxString* s = wxString_in_helper(item); |
74a57fcd | 8597 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
8598 | arg6->Add(*s); |
8599 | delete s; | |
4d5c3d91 | 8600 | Py_DECREF(item); |
4d5c3d91 | 8601 | } |
d14a1e28 RD |
8602 | } |
8603 | } | |
994141e6 | 8604 | if (obj6) { |
093d3ff1 | 8605 | { |
32fe5131 | 8606 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
8607 | if (SWIG_arg_fail(7)) SWIG_fail; |
8608 | } | |
994141e6 | 8609 | } |
d14a1e28 | 8610 | if (obj7) { |
093d3ff1 RD |
8611 | { |
8612 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8613 | if (SWIG_arg_fail(8)) SWIG_fail; | |
8614 | if (arg8 == NULL) { | |
8615 | SWIG_null_ref("wxValidator"); | |
8616 | } | |
8617 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
8618 | } |
8619 | } | |
8620 | if (obj8) { | |
8621 | { | |
4d5c3d91 RD |
8622 | arg9 = wxString_in_helper(obj8); |
8623 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 8624 | temp9 = true; |
d14a1e28 RD |
8625 | } |
8626 | } | |
8627 | { | |
8628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 8629 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
8630 | |
8631 | wxPyEndAllowThreads(__tstate); | |
8632 | if (PyErr_Occurred()) SWIG_fail; | |
8633 | } | |
4f89f6a3 RD |
8634 | { |
8635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8636 | } | |
d14a1e28 | 8637 | { |
3adfb63b | 8638 | if (temp6) delete arg6; |
d14a1e28 RD |
8639 | } |
8640 | { | |
8641 | if (temp9) | |
4d5c3d91 | 8642 | delete arg9; |
d14a1e28 RD |
8643 | } |
8644 | return resultobj; | |
8645 | fail: | |
8646 | { | |
3adfb63b | 8647 | if (temp6) delete arg6; |
d14a1e28 RD |
8648 | } |
8649 | { | |
8650 | if (temp9) | |
4d5c3d91 | 8651 | delete arg9; |
d14a1e28 RD |
8652 | } |
8653 | return NULL; | |
8654 | } | |
8655 | ||
8656 | ||
c32bde28 | 8657 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8658 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8659 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
8660 | int arg2 ; | |
8661 | bool result; | |
8662 | PyObject * obj0 = 0 ; | |
994141e6 | 8663 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8664 | char *kwnames[] = { |
8665 | (char *) "self",(char *) "index", NULL | |
8666 | }; | |
8667 | ||
994141e6 | 8668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8671 | { | |
32fe5131 | 8672 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8673 | if (SWIG_arg_fail(2)) SWIG_fail; |
8674 | } | |
d14a1e28 RD |
8675 | { |
8676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8677 | result = (bool)(arg1)->IsChecked(arg2); | |
8678 | ||
8679 | wxPyEndAllowThreads(__tstate); | |
8680 | if (PyErr_Occurred()) SWIG_fail; | |
8681 | } | |
4f89f6a3 RD |
8682 | { |
8683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8684 | } | |
d14a1e28 RD |
8685 | return resultobj; |
8686 | fail: | |
8687 | return NULL; | |
8688 | } | |
8689 | ||
8690 | ||
c32bde28 | 8691 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8692 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8693 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
8694 | int arg2 ; | |
ae8162c8 | 8695 | int arg3 = (int) true ; |
d14a1e28 | 8696 | PyObject * obj0 = 0 ; |
994141e6 RD |
8697 | PyObject * obj1 = 0 ; |
8698 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8699 | char *kwnames[] = { |
8700 | (char *) "self",(char *) "index",(char *) "check", NULL | |
8701 | }; | |
8702 | ||
994141e6 | 8703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8704 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8705 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8706 | { | |
32fe5131 | 8707 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8708 | if (SWIG_arg_fail(2)) SWIG_fail; |
8709 | } | |
994141e6 | 8710 | if (obj2) { |
093d3ff1 | 8711 | { |
32fe5131 | 8712 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
8713 | if (SWIG_arg_fail(3)) SWIG_fail; |
8714 | } | |
994141e6 | 8715 | } |
d14a1e28 RD |
8716 | { |
8717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8718 | (arg1)->Check(arg2,arg3); | |
8719 | ||
8720 | wxPyEndAllowThreads(__tstate); | |
8721 | if (PyErr_Occurred()) SWIG_fail; | |
8722 | } | |
8723 | Py_INCREF(Py_None); resultobj = Py_None; | |
8724 | return resultobj; | |
8725 | fail: | |
8726 | return NULL; | |
8727 | } | |
8728 | ||
8729 | ||
c32bde28 | 8730 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8731 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8732 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
8733 | int result; | |
8734 | PyObject * obj0 = 0 ; | |
8735 | char *kwnames[] = { | |
8736 | (char *) "self", NULL | |
8737 | }; | |
8738 | ||
8739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8742 | { |
8743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8744 | result = (int)(arg1)->GetItemHeight(); | |
8745 | ||
8746 | wxPyEndAllowThreads(__tstate); | |
8747 | if (PyErr_Occurred()) SWIG_fail; | |
8748 | } | |
093d3ff1 | 8749 | { |
32fe5131 | 8750 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 8751 | } |
d14a1e28 RD |
8752 | return resultobj; |
8753 | fail: | |
8754 | return NULL; | |
8755 | } | |
8756 | ||
8757 | ||
c32bde28 | 8758 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8759 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8760 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
8761 | wxPoint *arg2 = 0 ; | |
8762 | int result; | |
8763 | wxPoint temp2 ; | |
8764 | PyObject * obj0 = 0 ; | |
8765 | PyObject * obj1 = 0 ; | |
8766 | char *kwnames[] = { | |
8767 | (char *) "self",(char *) "pt", NULL | |
8768 | }; | |
8769 | ||
8770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8771 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8772 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8773 | { |
8774 | arg2 = &temp2; | |
8775 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8776 | } | |
8777 | { | |
8778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8779 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
8780 | ||
8781 | wxPyEndAllowThreads(__tstate); | |
8782 | if (PyErr_Occurred()) SWIG_fail; | |
8783 | } | |
093d3ff1 | 8784 | { |
32fe5131 | 8785 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 8786 | } |
d14a1e28 RD |
8787 | return resultobj; |
8788 | fail: | |
8789 | return NULL; | |
8790 | } | |
8791 | ||
8792 | ||
c32bde28 | 8793 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8794 | PyObject *resultobj = NULL; |
d14a1e28 | 8795 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
e811c8ce RD |
8796 | int arg2 ; |
8797 | int arg3 ; | |
d14a1e28 RD |
8798 | int result; |
8799 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8800 | PyObject * obj1 = 0 ; |
8801 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8802 | char *kwnames[] = { |
8803 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8804 | }; | |
8805 | ||
994141e6 | 8806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8809 | { | |
32fe5131 | 8810 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8811 | if (SWIG_arg_fail(2)) SWIG_fail; |
8812 | } | |
8813 | { | |
32fe5131 | 8814 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
8815 | if (SWIG_arg_fail(3)) SWIG_fail; |
8816 | } | |
d14a1e28 RD |
8817 | { |
8818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8819 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
8820 | ||
8821 | wxPyEndAllowThreads(__tstate); | |
8822 | if (PyErr_Occurred()) SWIG_fail; | |
8823 | } | |
093d3ff1 | 8824 | { |
32fe5131 | 8825 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 8826 | } |
d14a1e28 RD |
8827 | return resultobj; |
8828 | fail: | |
8829 | return NULL; | |
8830 | } | |
8831 | ||
8832 | ||
c32bde28 | 8833 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8834 | PyObject *obj; |
8835 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8836 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
8837 | Py_INCREF(obj); | |
8838 | return Py_BuildValue((char *)""); | |
8839 | } | |
c32bde28 | 8840 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
8841 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
8842 | return 1; | |
8843 | } | |
8844 | ||
8845 | ||
093d3ff1 | 8846 | static PyObject *_wrap_TextCtrlNameStr_get(void) { |
32fe5131 | 8847 | PyObject *pyobj = NULL; |
b2dc1044 RD |
8848 | |
8849 | { | |
8850 | #if wxUSE_UNICODE | |
8851 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8852 | #else | |
8853 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8854 | #endif | |
8855 | } | |
8856 | return pyobj; | |
8857 | } | |
8858 | ||
8859 | ||
c32bde28 | 8860 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8861 | PyObject *resultobj = NULL; |
908b74cd RD |
8862 | wxColour const &arg1_defvalue = wxNullColour ; |
8863 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d14a1e28 RD |
8864 | wxColour const &arg2_defvalue = wxNullColour ; |
8865 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8866 | wxFont const &arg3_defvalue = wxNullFont ; | |
8867 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
093d3ff1 | 8868 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; |
d14a1e28 RD |
8869 | wxTextAttr *result; |
8870 | wxColour temp1 ; | |
8871 | wxColour temp2 ; | |
8872 | PyObject * obj0 = 0 ; | |
8873 | PyObject * obj1 = 0 ; | |
8874 | PyObject * obj2 = 0 ; | |
994141e6 | 8875 | PyObject * obj3 = 0 ; |
908b74cd RD |
8876 | char *kwnames[] = { |
8877 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
8878 | }; | |
d14a1e28 | 8879 | |
908b74cd RD |
8880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8881 | if (obj0) { | |
8882 | { | |
8883 | arg1 = &temp1; | |
8884 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
8885 | } | |
d14a1e28 RD |
8886 | } |
8887 | if (obj1) { | |
8888 | { | |
8889 | arg2 = &temp2; | |
8890 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8891 | } | |
8892 | } | |
8893 | if (obj2) { | |
093d3ff1 RD |
8894 | { |
8895 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8896 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8897 | if (arg3 == NULL) { | |
8898 | SWIG_null_ref("wxFont"); | |
8899 | } | |
8900 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
8901 | } |
8902 | } | |
994141e6 | 8903 | if (obj3) { |
093d3ff1 | 8904 | { |
32fe5131 | 8905 | arg4 = static_cast<wxTextAttrAlignment >(SWIG_As_int(obj3)); |
093d3ff1 RD |
8906 | if (SWIG_arg_fail(4)) SWIG_fail; |
8907 | } | |
994141e6 | 8908 | } |
d14a1e28 RD |
8909 | { |
8910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8911 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4); |
d14a1e28 RD |
8912 | |
8913 | wxPyEndAllowThreads(__tstate); | |
8914 | if (PyErr_Occurred()) SWIG_fail; | |
8915 | } | |
15afbcd0 | 8916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
8917 | return resultobj; |
8918 | fail: | |
8919 | return NULL; | |
8920 | } | |
8921 | ||
8922 | ||
c32bde28 | 8923 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8924 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8925 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
8926 | PyObject * obj0 = 0 ; | |
8927 | char *kwnames[] = { | |
8928 | (char *) "self", NULL | |
8929 | }; | |
8930 | ||
994141e6 | 8931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
8932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8934 | { |
8935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 8936 | delete arg1; |
d14a1e28 RD |
8937 | |
8938 | wxPyEndAllowThreads(__tstate); | |
8939 | if (PyErr_Occurred()) SWIG_fail; | |
8940 | } | |
8941 | Py_INCREF(Py_None); resultobj = Py_None; | |
8942 | return resultobj; | |
8943 | fail: | |
8944 | return NULL; | |
8945 | } | |
8946 | ||
8947 | ||
c32bde28 | 8948 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8949 | PyObject *resultobj = NULL; |
994141e6 RD |
8950 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
8951 | PyObject * obj0 = 0 ; | |
8952 | char *kwnames[] = { | |
8953 | (char *) "self", NULL | |
8954 | }; | |
8955 | ||
8956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
8959 | { |
8960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8961 | (arg1)->Init(); | |
8962 | ||
8963 | wxPyEndAllowThreads(__tstate); | |
8964 | if (PyErr_Occurred()) SWIG_fail; | |
8965 | } | |
8966 | Py_INCREF(Py_None); resultobj = Py_None; | |
8967 | return resultobj; | |
8968 | fail: | |
8969 | return NULL; | |
8970 | } | |
8971 | ||
8972 | ||
c32bde28 | 8973 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8974 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8975 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
8976 | wxColour *arg2 = 0 ; | |
8977 | wxColour temp2 ; | |
8978 | PyObject * obj0 = 0 ; | |
8979 | PyObject * obj1 = 0 ; | |
8980 | char *kwnames[] = { | |
8981 | (char *) "self",(char *) "colText", NULL | |
8982 | }; | |
8983 | ||
8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8987 | { |
8988 | arg2 = &temp2; | |
8989 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8990 | } | |
8991 | { | |
8992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8993 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
8994 | ||
8995 | wxPyEndAllowThreads(__tstate); | |
8996 | if (PyErr_Occurred()) SWIG_fail; | |
8997 | } | |
8998 | Py_INCREF(Py_None); resultobj = Py_None; | |
8999 | return resultobj; | |
9000 | fail: | |
9001 | return NULL; | |
9002 | } | |
9003 | ||
9004 | ||
c32bde28 | 9005 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9006 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9007 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9008 | wxColour *arg2 = 0 ; | |
9009 | wxColour temp2 ; | |
9010 | PyObject * obj0 = 0 ; | |
9011 | PyObject * obj1 = 0 ; | |
9012 | char *kwnames[] = { | |
9013 | (char *) "self",(char *) "colBack", NULL | |
9014 | }; | |
9015 | ||
9016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9019 | { |
9020 | arg2 = &temp2; | |
9021 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
9022 | } | |
9023 | { | |
9024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9025 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
9026 | ||
9027 | wxPyEndAllowThreads(__tstate); | |
9028 | if (PyErr_Occurred()) SWIG_fail; | |
9029 | } | |
9030 | Py_INCREF(Py_None); resultobj = Py_None; | |
9031 | return resultobj; | |
9032 | fail: | |
9033 | return NULL; | |
9034 | } | |
9035 | ||
9036 | ||
c32bde28 | 9037 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9038 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9039 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9040 | wxFont *arg2 = 0 ; | |
9041 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
9042 | PyObject * obj0 = 0 ; | |
9043 | PyObject * obj1 = 0 ; | |
994141e6 | 9044 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9045 | char *kwnames[] = { |
9046 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
9047 | }; | |
9048 | ||
994141e6 | 9049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9050 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9051 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9052 | { | |
9053 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9054 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9055 | if (arg2 == NULL) { | |
9056 | SWIG_null_ref("wxFont"); | |
9057 | } | |
9058 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 9059 | } |
994141e6 | 9060 | if (obj2) { |
093d3ff1 | 9061 | { |
32fe5131 | 9062 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
9063 | if (SWIG_arg_fail(3)) SWIG_fail; |
9064 | } | |
994141e6 | 9065 | } |
d14a1e28 RD |
9066 | { |
9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9068 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
9069 | ||
9070 | wxPyEndAllowThreads(__tstate); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | } | |
9073 | Py_INCREF(Py_None); resultobj = Py_None; | |
9074 | return resultobj; | |
9075 | fail: | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
c32bde28 | 9080 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9081 | PyObject *resultobj = NULL; |
d14a1e28 | 9082 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
093d3ff1 | 9083 | wxTextAttrAlignment arg2 ; |
d14a1e28 | 9084 | PyObject * obj0 = 0 ; |
994141e6 | 9085 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9086 | char *kwnames[] = { |
9087 | (char *) "self",(char *) "alignment", NULL | |
9088 | }; | |
9089 | ||
994141e6 | 9090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9091 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9092 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9093 | { | |
32fe5131 | 9094 | arg2 = static_cast<wxTextAttrAlignment >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9095 | if (SWIG_arg_fail(2)) SWIG_fail; |
9096 | } | |
d14a1e28 RD |
9097 | { |
9098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9099 | (arg1)->SetAlignment(arg2); |
d14a1e28 RD |
9100 | |
9101 | wxPyEndAllowThreads(__tstate); | |
9102 | if (PyErr_Occurred()) SWIG_fail; | |
9103 | } | |
9104 | Py_INCREF(Py_None); resultobj = Py_None; | |
9105 | return resultobj; | |
9106 | fail: | |
9107 | return NULL; | |
9108 | } | |
9109 | ||
9110 | ||
c32bde28 | 9111 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9112 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9113 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9114 | wxArrayInt *arg2 = 0 ; | |
ae8162c8 | 9115 | bool temp2 = false ; |
d14a1e28 RD |
9116 | PyObject * obj0 = 0 ; |
9117 | PyObject * obj1 = 0 ; | |
9118 | char *kwnames[] = { | |
9119 | (char *) "self",(char *) "tabs", NULL | |
9120 | }; | |
9121 | ||
9122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9125 | { |
9126 | if (! PySequence_Check(obj1)) { | |
9127 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
9128 | SWIG_fail; | |
9129 | } | |
9130 | arg2 = new wxArrayInt; | |
ae8162c8 | 9131 | temp2 = true; |
d14a1e28 RD |
9132 | int i, len=PySequence_Length(obj1); |
9133 | for (i=0; i<len; i++) { | |
9134 | PyObject* item = PySequence_GetItem(obj1, i); | |
9135 | PyObject* number = PyNumber_Int(item); | |
9136 | arg2->Add(PyInt_AS_LONG(number)); | |
9137 | Py_DECREF(item); | |
9138 | Py_DECREF(number); | |
9139 | } | |
9140 | } | |
9141 | { | |
9142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9143 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
9144 | ||
9145 | wxPyEndAllowThreads(__tstate); | |
9146 | if (PyErr_Occurred()) SWIG_fail; | |
9147 | } | |
9148 | Py_INCREF(Py_None); resultobj = Py_None; | |
9149 | { | |
3adfb63b | 9150 | if (temp2) delete arg2; |
d14a1e28 RD |
9151 | } |
9152 | return resultobj; | |
9153 | fail: | |
9154 | { | |
3adfb63b | 9155 | if (temp2) delete arg2; |
d14a1e28 RD |
9156 | } |
9157 | return NULL; | |
9158 | } | |
9159 | ||
9160 | ||
c32bde28 | 9161 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9162 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9163 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9164 | int arg2 ; | |
5e4ca4a8 | 9165 | int arg3 = (int) 0 ; |
d14a1e28 | 9166 | PyObject * obj0 = 0 ; |
994141e6 | 9167 | PyObject * obj1 = 0 ; |
5e4ca4a8 | 9168 | PyObject * obj2 = 0 ; |
d14a1e28 | 9169 | char *kwnames[] = { |
5e4ca4a8 | 9170 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d14a1e28 RD |
9171 | }; |
9172 | ||
5e4ca4a8 | 9173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9174 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9175 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9176 | { | |
32fe5131 | 9177 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9178 | if (SWIG_arg_fail(2)) SWIG_fail; |
9179 | } | |
5e4ca4a8 | 9180 | if (obj2) { |
093d3ff1 | 9181 | { |
32fe5131 | 9182 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
9183 | if (SWIG_arg_fail(3)) SWIG_fail; |
9184 | } | |
5e4ca4a8 | 9185 | } |
d14a1e28 RD |
9186 | { |
9187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5e4ca4a8 | 9188 | (arg1)->SetLeftIndent(arg2,arg3); |
d14a1e28 RD |
9189 | |
9190 | wxPyEndAllowThreads(__tstate); | |
9191 | if (PyErr_Occurred()) SWIG_fail; | |
9192 | } | |
9193 | Py_INCREF(Py_None); resultobj = Py_None; | |
9194 | return resultobj; | |
9195 | fail: | |
9196 | return NULL; | |
9197 | } | |
9198 | ||
9199 | ||
c32bde28 | 9200 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9201 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9202 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9203 | int arg2 ; | |
9204 | PyObject * obj0 = 0 ; | |
994141e6 | 9205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9206 | char *kwnames[] = { |
9207 | (char *) "self",(char *) "indent", NULL | |
9208 | }; | |
9209 | ||
994141e6 | 9210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9213 | { | |
32fe5131 | 9214 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9215 | if (SWIG_arg_fail(2)) SWIG_fail; |
9216 | } | |
d14a1e28 RD |
9217 | { |
9218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9219 | (arg1)->SetRightIndent(arg2); | |
9220 | ||
9221 | wxPyEndAllowThreads(__tstate); | |
9222 | if (PyErr_Occurred()) SWIG_fail; | |
9223 | } | |
9224 | Py_INCREF(Py_None); resultobj = Py_None; | |
9225 | return resultobj; | |
9226 | fail: | |
9227 | return NULL; | |
9228 | } | |
9229 | ||
9230 | ||
c32bde28 | 9231 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9232 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9233 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9234 | long arg2 ; | |
9235 | PyObject * obj0 = 0 ; | |
994141e6 | 9236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9237 | char *kwnames[] = { |
9238 | (char *) "self",(char *) "flags", NULL | |
9239 | }; | |
9240 | ||
994141e6 | 9241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9244 | { | |
32fe5131 | 9245 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
9246 | if (SWIG_arg_fail(2)) SWIG_fail; |
9247 | } | |
d14a1e28 RD |
9248 | { |
9249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9250 | (arg1)->SetFlags(arg2); | |
9251 | ||
9252 | wxPyEndAllowThreads(__tstate); | |
9253 | if (PyErr_Occurred()) SWIG_fail; | |
9254 | } | |
9255 | Py_INCREF(Py_None); resultobj = Py_None; | |
9256 | return resultobj; | |
9257 | fail: | |
9258 | return NULL; | |
9259 | } | |
9260 | ||
9261 | ||
c32bde28 | 9262 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9263 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9264 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9265 | bool result; | |
9266 | PyObject * obj0 = 0 ; | |
9267 | char *kwnames[] = { | |
9268 | (char *) "self", NULL | |
9269 | }; | |
9270 | ||
9271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9274 | { |
9275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9276 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
9277 | ||
9278 | wxPyEndAllowThreads(__tstate); | |
9279 | if (PyErr_Occurred()) SWIG_fail; | |
9280 | } | |
4f89f6a3 RD |
9281 | { |
9282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9283 | } | |
d14a1e28 RD |
9284 | return resultobj; |
9285 | fail: | |
9286 | return NULL; | |
9287 | } | |
9288 | ||
9289 | ||
c32bde28 | 9290 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9291 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9292 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9293 | bool result; | |
9294 | PyObject * obj0 = 0 ; | |
9295 | char *kwnames[] = { | |
9296 | (char *) "self", NULL | |
9297 | }; | |
9298 | ||
9299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9300 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9301 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9302 | { |
9303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9304 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
9305 | ||
9306 | wxPyEndAllowThreads(__tstate); | |
9307 | if (PyErr_Occurred()) SWIG_fail; | |
9308 | } | |
4f89f6a3 RD |
9309 | { |
9310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9311 | } | |
d14a1e28 RD |
9312 | return resultobj; |
9313 | fail: | |
9314 | return NULL; | |
9315 | } | |
9316 | ||
9317 | ||
c32bde28 | 9318 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9319 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9320 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9321 | bool result; | |
9322 | PyObject * obj0 = 0 ; | |
9323 | char *kwnames[] = { | |
9324 | (char *) "self", NULL | |
9325 | }; | |
9326 | ||
9327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9330 | { |
9331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9332 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
9333 | ||
9334 | wxPyEndAllowThreads(__tstate); | |
9335 | if (PyErr_Occurred()) SWIG_fail; | |
9336 | } | |
4f89f6a3 RD |
9337 | { |
9338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9339 | } | |
d14a1e28 RD |
9340 | return resultobj; |
9341 | fail: | |
9342 | return NULL; | |
9343 | } | |
9344 | ||
9345 | ||
c32bde28 | 9346 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9347 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9348 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9349 | bool result; | |
9350 | PyObject * obj0 = 0 ; | |
9351 | char *kwnames[] = { | |
9352 | (char *) "self", NULL | |
9353 | }; | |
9354 | ||
9355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9358 | { |
9359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9360 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
9361 | ||
9362 | wxPyEndAllowThreads(__tstate); | |
9363 | if (PyErr_Occurred()) SWIG_fail; | |
9364 | } | |
4f89f6a3 RD |
9365 | { |
9366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9367 | } | |
d14a1e28 RD |
9368 | return resultobj; |
9369 | fail: | |
9370 | return NULL; | |
9371 | } | |
9372 | ||
9373 | ||
c32bde28 | 9374 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9375 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9376 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9377 | bool result; | |
9378 | PyObject * obj0 = 0 ; | |
9379 | char *kwnames[] = { | |
9380 | (char *) "self", NULL | |
9381 | }; | |
9382 | ||
9383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9386 | { |
9387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9388 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
9389 | ||
9390 | wxPyEndAllowThreads(__tstate); | |
9391 | if (PyErr_Occurred()) SWIG_fail; | |
9392 | } | |
4f89f6a3 RD |
9393 | { |
9394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9395 | } | |
d14a1e28 RD |
9396 | return resultobj; |
9397 | fail: | |
9398 | return NULL; | |
9399 | } | |
9400 | ||
9401 | ||
c32bde28 | 9402 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9403 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9404 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9405 | bool result; | |
9406 | PyObject * obj0 = 0 ; | |
9407 | char *kwnames[] = { | |
9408 | (char *) "self", NULL | |
9409 | }; | |
9410 | ||
9411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9412 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9413 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9414 | { |
9415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9416 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
9417 | ||
9418 | wxPyEndAllowThreads(__tstate); | |
9419 | if (PyErr_Occurred()) SWIG_fail; | |
9420 | } | |
4f89f6a3 RD |
9421 | { |
9422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9423 | } | |
d14a1e28 RD |
9424 | return resultobj; |
9425 | fail: | |
9426 | return NULL; | |
9427 | } | |
9428 | ||
9429 | ||
c32bde28 | 9430 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9431 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9432 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9433 | bool result; | |
9434 | PyObject * obj0 = 0 ; | |
9435 | char *kwnames[] = { | |
9436 | (char *) "self", NULL | |
9437 | }; | |
9438 | ||
9439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9442 | { |
9443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9444 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
9445 | ||
9446 | wxPyEndAllowThreads(__tstate); | |
9447 | if (PyErr_Occurred()) SWIG_fail; | |
9448 | } | |
4f89f6a3 RD |
9449 | { |
9450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9451 | } | |
d14a1e28 RD |
9452 | return resultobj; |
9453 | fail: | |
9454 | return NULL; | |
9455 | } | |
9456 | ||
9457 | ||
c32bde28 | 9458 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9459 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9460 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9461 | long arg2 ; | |
9462 | bool result; | |
9463 | PyObject * obj0 = 0 ; | |
994141e6 | 9464 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9465 | char *kwnames[] = { |
9466 | (char *) "self",(char *) "flag", NULL | |
9467 | }; | |
9468 | ||
994141e6 | 9469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9470 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9471 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9472 | { | |
32fe5131 | 9473 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
9474 | if (SWIG_arg_fail(2)) SWIG_fail; |
9475 | } | |
d14a1e28 RD |
9476 | { |
9477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9478 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
9479 | ||
9480 | wxPyEndAllowThreads(__tstate); | |
9481 | if (PyErr_Occurred()) SWIG_fail; | |
9482 | } | |
4f89f6a3 RD |
9483 | { |
9484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9485 | } | |
d14a1e28 RD |
9486 | return resultobj; |
9487 | fail: | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
c32bde28 | 9492 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9493 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9494 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9495 | wxColour *result; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | char *kwnames[] = { | |
9498 | (char *) "self", NULL | |
9499 | }; | |
9500 | ||
9501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9502 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9503 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9504 | { |
9505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9506 | { | |
9507 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
9508 | result = (wxColour *) &_result_ref; | |
9509 | } | |
9510 | ||
9511 | wxPyEndAllowThreads(__tstate); | |
9512 | if (PyErr_Occurred()) SWIG_fail; | |
9513 | } | |
15afbcd0 | 9514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
9515 | return resultobj; |
9516 | fail: | |
9517 | return NULL; | |
9518 | } | |
9519 | ||
9520 | ||
c32bde28 | 9521 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9522 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9523 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9524 | wxColour *result; | |
9525 | PyObject * obj0 = 0 ; | |
9526 | char *kwnames[] = { | |
9527 | (char *) "self", NULL | |
9528 | }; | |
9529 | ||
9530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9533 | { |
9534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9535 | { | |
9536 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
9537 | result = (wxColour *) &_result_ref; | |
9538 | } | |
9539 | ||
9540 | wxPyEndAllowThreads(__tstate); | |
9541 | if (PyErr_Occurred()) SWIG_fail; | |
9542 | } | |
15afbcd0 | 9543 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
9544 | return resultobj; |
9545 | fail: | |
9546 | return NULL; | |
9547 | } | |
9548 | ||
9549 | ||
c32bde28 | 9550 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9551 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9552 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9553 | wxFont *result; | |
9554 | PyObject * obj0 = 0 ; | |
9555 | char *kwnames[] = { | |
9556 | (char *) "self", NULL | |
9557 | }; | |
9558 | ||
9559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9562 | { |
9563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9564 | { | |
9565 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
9566 | result = (wxFont *) &_result_ref; | |
9567 | } | |
9568 | ||
9569 | wxPyEndAllowThreads(__tstate); | |
9570 | if (PyErr_Occurred()) SWIG_fail; | |
9571 | } | |
4276dc52 RD |
9572 | { |
9573 | wxFont* resultptr = new wxFont(*result); | |
9574 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
9575 | } | |
d14a1e28 RD |
9576 | return resultobj; |
9577 | fail: | |
9578 | return NULL; | |
9579 | } | |
9580 | ||
9581 | ||
c32bde28 | 9582 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9583 | PyObject *resultobj = NULL; |
d14a1e28 | 9584 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
093d3ff1 | 9585 | wxTextAttrAlignment result; |
d14a1e28 RD |
9586 | PyObject * obj0 = 0 ; |
9587 | char *kwnames[] = { | |
9588 | (char *) "self", NULL | |
9589 | }; | |
9590 | ||
9591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9592 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9593 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9594 | { |
9595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9596 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); |
d14a1e28 RD |
9597 | |
9598 | wxPyEndAllowThreads(__tstate); | |
9599 | if (PyErr_Occurred()) SWIG_fail; | |
9600 | } | |
093d3ff1 | 9601 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
9602 | return resultobj; |
9603 | fail: | |
9604 | return NULL; | |
9605 | } | |
9606 | ||
9607 | ||
c32bde28 | 9608 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9609 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9610 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9611 | wxArrayInt *result; | |
9612 | PyObject * obj0 = 0 ; | |
9613 | char *kwnames[] = { | |
9614 | (char *) "self", NULL | |
9615 | }; | |
9616 | ||
9617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9620 | { |
9621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9622 | { | |
9623 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
9624 | result = (wxArrayInt *) &_result_ref; | |
9625 | } | |
9626 | ||
9627 | wxPyEndAllowThreads(__tstate); | |
9628 | if (PyErr_Occurred()) SWIG_fail; | |
9629 | } | |
9630 | { | |
9631 | resultobj = PyList_New(0); | |
9632 | size_t idx; | |
9633 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
9634 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
9635 | PyList_Append(resultobj, val); | |
9636 | Py_DECREF(val); | |
9637 | } | |
9638 | } | |
9639 | return resultobj; | |
9640 | fail: | |
9641 | return NULL; | |
9642 | } | |
9643 | ||
9644 | ||
c32bde28 | 9645 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9646 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9647 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9648 | long result; | |
9649 | PyObject * obj0 = 0 ; | |
9650 | char *kwnames[] = { | |
9651 | (char *) "self", NULL | |
9652 | }; | |
9653 | ||
9654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9655 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9657 | { |
9658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9659 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
9660 | ||
9661 | wxPyEndAllowThreads(__tstate); | |
9662 | if (PyErr_Occurred()) SWIG_fail; | |
9663 | } | |
093d3ff1 | 9664 | { |
32fe5131 | 9665 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 9666 | } |
d14a1e28 RD |
9667 | return resultobj; |
9668 | fail: | |
9669 | return NULL; | |
9670 | } | |
9671 | ||
9672 | ||
c32bde28 | 9673 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9674 | PyObject *resultobj = NULL; |
5e4ca4a8 RD |
9675 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9676 | long result; | |
9677 | PyObject * obj0 = 0 ; | |
9678 | char *kwnames[] = { | |
9679 | (char *) "self", NULL | |
9680 | }; | |
9681 | ||
9682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5e4ca4a8 RD |
9685 | { |
9686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9687 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
9688 | ||
9689 | wxPyEndAllowThreads(__tstate); | |
9690 | if (PyErr_Occurred()) SWIG_fail; | |
9691 | } | |
093d3ff1 | 9692 | { |
32fe5131 | 9693 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 9694 | } |
5e4ca4a8 RD |
9695 | return resultobj; |
9696 | fail: | |
9697 | return NULL; | |
9698 | } | |
9699 | ||
9700 | ||
c32bde28 | 9701 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9702 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9703 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9704 | long result; | |
9705 | PyObject * obj0 = 0 ; | |
9706 | char *kwnames[] = { | |
9707 | (char *) "self", NULL | |
9708 | }; | |
9709 | ||
9710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9711 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9713 | { |
9714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9715 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
9716 | ||
9717 | wxPyEndAllowThreads(__tstate); | |
9718 | if (PyErr_Occurred()) SWIG_fail; | |
9719 | } | |
093d3ff1 | 9720 | { |
32fe5131 | 9721 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 9722 | } |
d14a1e28 RD |
9723 | return resultobj; |
9724 | fail: | |
9725 | return NULL; | |
9726 | } | |
9727 | ||
9728 | ||
c32bde28 | 9729 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9730 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9731 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9732 | long result; | |
9733 | PyObject * obj0 = 0 ; | |
9734 | char *kwnames[] = { | |
9735 | (char *) "self", NULL | |
9736 | }; | |
9737 | ||
9738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9741 | { |
9742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9743 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
9744 | ||
9745 | wxPyEndAllowThreads(__tstate); | |
9746 | if (PyErr_Occurred()) SWIG_fail; | |
9747 | } | |
093d3ff1 | 9748 | { |
32fe5131 | 9749 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 9750 | } |
d14a1e28 RD |
9751 | return resultobj; |
9752 | fail: | |
9753 | return NULL; | |
9754 | } | |
9755 | ||
9756 | ||
c32bde28 | 9757 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9758 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9759 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9760 | bool result; | |
9761 | PyObject * obj0 = 0 ; | |
9762 | char *kwnames[] = { | |
9763 | (char *) "self", NULL | |
9764 | }; | |
9765 | ||
9766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9769 | { |
9770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9771 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
9772 | ||
9773 | wxPyEndAllowThreads(__tstate); | |
9774 | if (PyErr_Occurred()) SWIG_fail; | |
9775 | } | |
4f89f6a3 RD |
9776 | { |
9777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9778 | } | |
d14a1e28 RD |
9779 | return resultobj; |
9780 | fail: | |
9781 | return NULL; | |
9782 | } | |
9783 | ||
9784 | ||
c32bde28 | 9785 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9786 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9787 | wxTextAttr *arg1 = 0 ; |
9788 | wxTextAttr *arg2 = 0 ; | |
9789 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
9790 | wxTextAttr result; | |
9791 | PyObject * obj0 = 0 ; | |
9792 | PyObject * obj1 = 0 ; | |
9793 | PyObject * obj2 = 0 ; | |
9794 | char *kwnames[] = { | |
9795 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
9796 | }; | |
9797 | ||
9798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9799 | { |
9800 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9801 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9802 | if (arg1 == NULL) { | |
9803 | SWIG_null_ref("wxTextAttr"); | |
9804 | } | |
9805 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 9806 | } |
093d3ff1 RD |
9807 | { |
9808 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9809 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9810 | if (arg2 == NULL) { | |
9811 | SWIG_null_ref("wxTextAttr"); | |
9812 | } | |
9813 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 9814 | } |
093d3ff1 RD |
9815 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9816 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
9817 | { |
9818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9819 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
9820 | ||
9821 | wxPyEndAllowThreads(__tstate); | |
9822 | if (PyErr_Occurred()) SWIG_fail; | |
9823 | } | |
9824 | { | |
9825 | wxTextAttr * resultptr; | |
32fe5131 | 9826 | resultptr = new wxTextAttr(static_cast<wxTextAttr & >(result)); |
15afbcd0 | 9827 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
9828 | } |
9829 | return resultobj; | |
9830 | fail: | |
9831 | return NULL; | |
9832 | } | |
9833 | ||
9834 | ||
c32bde28 | 9835 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9836 | PyObject *obj; |
9837 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9838 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
9839 | Py_INCREF(obj); | |
9840 | return Py_BuildValue((char *)""); | |
9841 | } | |
c32bde28 | 9842 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9843 | PyObject *resultobj = NULL; |
d14a1e28 | 9844 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 9845 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9846 | wxString const &arg3_defvalue = wxPyEmptyString ; |
9847 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9848 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9849 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9850 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9851 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9852 | long arg6 = (long) 0 ; | |
9853 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9854 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9855 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
9856 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9857 | wxTextCtrl *result; | |
ae8162c8 | 9858 | bool temp3 = false ; |
d14a1e28 RD |
9859 | wxPoint temp4 ; |
9860 | wxSize temp5 ; | |
ae8162c8 | 9861 | bool temp8 = false ; |
d14a1e28 | 9862 | PyObject * obj0 = 0 ; |
994141e6 | 9863 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9864 | PyObject * obj2 = 0 ; |
9865 | PyObject * obj3 = 0 ; | |
9866 | PyObject * obj4 = 0 ; | |
994141e6 | 9867 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9868 | PyObject * obj6 = 0 ; |
9869 | PyObject * obj7 = 0 ; | |
9870 | char *kwnames[] = { | |
9871 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9872 | }; | |
9873 | ||
248ed943 | 9874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
9875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
9876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 9877 | if (obj1) { |
093d3ff1 | 9878 | { |
32fe5131 | 9879 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9880 | if (SWIG_arg_fail(2)) SWIG_fail; |
9881 | } | |
248ed943 | 9882 | } |
d14a1e28 RD |
9883 | if (obj2) { |
9884 | { | |
9885 | arg3 = wxString_in_helper(obj2); | |
9886 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9887 | temp3 = true; |
d14a1e28 RD |
9888 | } |
9889 | } | |
9890 | if (obj3) { | |
9891 | { | |
9892 | arg4 = &temp4; | |
9893 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9894 | } | |
9895 | } | |
9896 | if (obj4) { | |
9897 | { | |
9898 | arg5 = &temp5; | |
9899 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9900 | } | |
9901 | } | |
994141e6 | 9902 | if (obj5) { |
093d3ff1 | 9903 | { |
32fe5131 | 9904 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
9905 | if (SWIG_arg_fail(6)) SWIG_fail; |
9906 | } | |
994141e6 | 9907 | } |
d14a1e28 | 9908 | if (obj6) { |
093d3ff1 RD |
9909 | { |
9910 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9911 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9912 | if (arg7 == NULL) { | |
9913 | SWIG_null_ref("wxValidator"); | |
9914 | } | |
9915 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
9916 | } |
9917 | } | |
9918 | if (obj7) { | |
9919 | { | |
9920 | arg8 = wxString_in_helper(obj7); | |
9921 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 9922 | temp8 = true; |
d14a1e28 RD |
9923 | } |
9924 | } | |
9925 | { | |
e3b71cb8 | 9926 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9928 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9929 | ||
9930 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9931 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9932 | } |
b0f7404b | 9933 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
9934 | { |
9935 | if (temp3) | |
9936 | delete arg3; | |
9937 | } | |
9938 | { | |
9939 | if (temp8) | |
9940 | delete arg8; | |
9941 | } | |
9942 | return resultobj; | |
9943 | fail: | |
9944 | { | |
9945 | if (temp3) | |
9946 | delete arg3; | |
9947 | } | |
9948 | { | |
9949 | if (temp8) | |
9950 | delete arg8; | |
9951 | } | |
9952 | return NULL; | |
9953 | } | |
9954 | ||
9955 | ||
c32bde28 | 9956 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9957 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9958 | wxTextCtrl *result; |
9959 | char *kwnames[] = { | |
9960 | NULL | |
9961 | }; | |
9962 | ||
9963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
9964 | { | |
e3b71cb8 | 9965 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9967 | result = (wxTextCtrl *)new wxTextCtrl(); | |
9968 | ||
9969 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9970 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9971 | } |
b0f7404b | 9972 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
9973 | return resultobj; |
9974 | fail: | |
9975 | return NULL; | |
9976 | } | |
9977 | ||
9978 | ||
c32bde28 | 9979 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9980 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9981 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
9982 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 9983 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9984 | wxString const &arg4_defvalue = wxPyEmptyString ; |
9985 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9986 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9987 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9988 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9989 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9990 | long arg7 = (long) 0 ; | |
9991 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
9992 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
9993 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
9994 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
9995 | bool result; | |
ae8162c8 | 9996 | bool temp4 = false ; |
d14a1e28 RD |
9997 | wxPoint temp5 ; |
9998 | wxSize temp6 ; | |
ae8162c8 | 9999 | bool temp9 = false ; |
d14a1e28 RD |
10000 | PyObject * obj0 = 0 ; |
10001 | PyObject * obj1 = 0 ; | |
994141e6 | 10002 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10003 | PyObject * obj3 = 0 ; |
10004 | PyObject * obj4 = 0 ; | |
10005 | PyObject * obj5 = 0 ; | |
994141e6 | 10006 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
10007 | PyObject * obj7 = 0 ; |
10008 | PyObject * obj8 = 0 ; | |
10009 | char *kwnames[] = { | |
10010 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10011 | }; | |
10012 | ||
248ed943 | 10013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
10014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10016 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
10017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 10018 | if (obj2) { |
093d3ff1 | 10019 | { |
32fe5131 | 10020 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
10021 | if (SWIG_arg_fail(3)) SWIG_fail; |
10022 | } | |
248ed943 | 10023 | } |
d14a1e28 RD |
10024 | if (obj3) { |
10025 | { | |
10026 | arg4 = wxString_in_helper(obj3); | |
10027 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 10028 | temp4 = true; |
d14a1e28 RD |
10029 | } |
10030 | } | |
10031 | if (obj4) { | |
10032 | { | |
10033 | arg5 = &temp5; | |
10034 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10035 | } | |
10036 | } | |
10037 | if (obj5) { | |
10038 | { | |
10039 | arg6 = &temp6; | |
10040 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10041 | } | |
10042 | } | |
994141e6 | 10043 | if (obj6) { |
093d3ff1 | 10044 | { |
32fe5131 | 10045 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
10046 | if (SWIG_arg_fail(7)) SWIG_fail; |
10047 | } | |
994141e6 | 10048 | } |
d14a1e28 | 10049 | if (obj7) { |
093d3ff1 RD |
10050 | { |
10051 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
10052 | if (SWIG_arg_fail(8)) SWIG_fail; | |
10053 | if (arg8 == NULL) { | |
10054 | SWIG_null_ref("wxValidator"); | |
10055 | } | |
10056 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
10057 | } |
10058 | } | |
10059 | if (obj8) { | |
10060 | { | |
10061 | arg9 = wxString_in_helper(obj8); | |
10062 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 10063 | temp9 = true; |
d14a1e28 RD |
10064 | } |
10065 | } | |
10066 | { | |
10067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10068 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10069 | ||
10070 | wxPyEndAllowThreads(__tstate); | |
10071 | if (PyErr_Occurred()) SWIG_fail; | |
10072 | } | |
4f89f6a3 RD |
10073 | { |
10074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10075 | } | |
d14a1e28 RD |
10076 | { |
10077 | if (temp4) | |
10078 | delete arg4; | |
10079 | } | |
10080 | { | |
10081 | if (temp9) | |
10082 | delete arg9; | |
10083 | } | |
10084 | return resultobj; | |
10085 | fail: | |
10086 | { | |
10087 | if (temp4) | |
10088 | delete arg4; | |
10089 | } | |
10090 | { | |
10091 | if (temp9) | |
10092 | delete arg9; | |
10093 | } | |
10094 | return NULL; | |
10095 | } | |
10096 | ||
10097 | ||
c32bde28 | 10098 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10099 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10100 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10101 | wxString result; | |
10102 | PyObject * obj0 = 0 ; | |
10103 | char *kwnames[] = { | |
10104 | (char *) "self", NULL | |
10105 | }; | |
10106 | ||
10107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10110 | { |
10111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10112 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
10113 | ||
10114 | wxPyEndAllowThreads(__tstate); | |
10115 | if (PyErr_Occurred()) SWIG_fail; | |
10116 | } | |
10117 | { | |
10118 | #if wxUSE_UNICODE | |
10119 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10120 | #else | |
10121 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10122 | #endif | |
10123 | } | |
10124 | return resultobj; | |
10125 | fail: | |
10126 | return NULL; | |
10127 | } | |
10128 | ||
10129 | ||
c32bde28 | 10130 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10131 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10132 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10133 | wxString *arg2 = 0 ; | |
ae8162c8 | 10134 | bool temp2 = false ; |
d14a1e28 RD |
10135 | PyObject * obj0 = 0 ; |
10136 | PyObject * obj1 = 0 ; | |
10137 | char *kwnames[] = { | |
10138 | (char *) "self",(char *) "value", NULL | |
10139 | }; | |
10140 | ||
10141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10144 | { |
10145 | arg2 = wxString_in_helper(obj1); | |
10146 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10147 | temp2 = true; |
d14a1e28 RD |
10148 | } |
10149 | { | |
10150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10151 | (arg1)->SetValue((wxString const &)*arg2); | |
10152 | ||
10153 | wxPyEndAllowThreads(__tstate); | |
10154 | if (PyErr_Occurred()) SWIG_fail; | |
10155 | } | |
10156 | Py_INCREF(Py_None); resultobj = Py_None; | |
10157 | { | |
10158 | if (temp2) | |
10159 | delete arg2; | |
10160 | } | |
10161 | return resultobj; | |
10162 | fail: | |
10163 | { | |
10164 | if (temp2) | |
10165 | delete arg2; | |
10166 | } | |
10167 | return NULL; | |
10168 | } | |
10169 | ||
10170 | ||
c32bde28 | 10171 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10172 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10173 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10174 | long arg2 ; | |
10175 | long arg3 ; | |
10176 | wxString result; | |
10177 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10178 | PyObject * obj1 = 0 ; |
10179 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10180 | char *kwnames[] = { |
10181 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10182 | }; | |
10183 | ||
994141e6 | 10184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10187 | { | |
32fe5131 | 10188 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10189 | if (SWIG_arg_fail(2)) SWIG_fail; |
10190 | } | |
10191 | { | |
32fe5131 | 10192 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
10193 | if (SWIG_arg_fail(3)) SWIG_fail; |
10194 | } | |
d14a1e28 RD |
10195 | { |
10196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10197 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
10198 | ||
10199 | wxPyEndAllowThreads(__tstate); | |
10200 | if (PyErr_Occurred()) SWIG_fail; | |
10201 | } | |
10202 | { | |
10203 | #if wxUSE_UNICODE | |
10204 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10205 | #else | |
10206 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10207 | #endif | |
10208 | } | |
10209 | return resultobj; | |
10210 | fail: | |
10211 | return NULL; | |
10212 | } | |
10213 | ||
10214 | ||
c32bde28 | 10215 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10216 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10217 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10218 | long arg2 ; | |
10219 | int result; | |
10220 | PyObject * obj0 = 0 ; | |
994141e6 | 10221 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10222 | char *kwnames[] = { |
10223 | (char *) "self",(char *) "lineNo", NULL | |
10224 | }; | |
10225 | ||
994141e6 | 10226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10229 | { | |
32fe5131 | 10230 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10231 | if (SWIG_arg_fail(2)) SWIG_fail; |
10232 | } | |
d14a1e28 RD |
10233 | { |
10234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10235 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
10236 | ||
10237 | wxPyEndAllowThreads(__tstate); | |
10238 | if (PyErr_Occurred()) SWIG_fail; | |
10239 | } | |
093d3ff1 | 10240 | { |
32fe5131 | 10241 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 10242 | } |
d14a1e28 RD |
10243 | return resultobj; |
10244 | fail: | |
10245 | return NULL; | |
10246 | } | |
10247 | ||
10248 | ||
c32bde28 | 10249 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10250 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10251 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10252 | long arg2 ; | |
10253 | wxString result; | |
10254 | PyObject * obj0 = 0 ; | |
994141e6 | 10255 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10256 | char *kwnames[] = { |
10257 | (char *) "self",(char *) "lineNo", NULL | |
10258 | }; | |
10259 | ||
994141e6 | 10260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10263 | { | |
32fe5131 | 10264 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10265 | if (SWIG_arg_fail(2)) SWIG_fail; |
10266 | } | |
d14a1e28 RD |
10267 | { |
10268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10269 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
10270 | ||
10271 | wxPyEndAllowThreads(__tstate); | |
10272 | if (PyErr_Occurred()) SWIG_fail; | |
10273 | } | |
10274 | { | |
10275 | #if wxUSE_UNICODE | |
10276 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10277 | #else | |
10278 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10279 | #endif | |
10280 | } | |
10281 | return resultobj; | |
10282 | fail: | |
10283 | return NULL; | |
10284 | } | |
10285 | ||
10286 | ||
c32bde28 | 10287 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10288 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10289 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10290 | int result; | |
10291 | PyObject * obj0 = 0 ; | |
10292 | char *kwnames[] = { | |
10293 | (char *) "self", NULL | |
10294 | }; | |
10295 | ||
10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10297 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10299 | { |
10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10301 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
10302 | ||
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) SWIG_fail; | |
10305 | } | |
093d3ff1 | 10306 | { |
32fe5131 | 10307 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 10308 | } |
d14a1e28 RD |
10309 | return resultobj; |
10310 | fail: | |
10311 | return NULL; | |
10312 | } | |
10313 | ||
10314 | ||
c32bde28 | 10315 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10316 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10317 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10318 | bool result; | |
10319 | PyObject * obj0 = 0 ; | |
10320 | char *kwnames[] = { | |
10321 | (char *) "self", NULL | |
10322 | }; | |
10323 | ||
10324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10325 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10327 | { |
10328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10329 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
10330 | ||
10331 | wxPyEndAllowThreads(__tstate); | |
10332 | if (PyErr_Occurred()) SWIG_fail; | |
10333 | } | |
4f89f6a3 RD |
10334 | { |
10335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10336 | } | |
d14a1e28 RD |
10337 | return resultobj; |
10338 | fail: | |
10339 | return NULL; | |
10340 | } | |
10341 | ||
10342 | ||
c32bde28 | 10343 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10344 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10345 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10346 | bool result; | |
10347 | PyObject * obj0 = 0 ; | |
10348 | char *kwnames[] = { | |
10349 | (char *) "self", NULL | |
10350 | }; | |
10351 | ||
10352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10355 | { |
10356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10357 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
10358 | ||
10359 | wxPyEndAllowThreads(__tstate); | |
10360 | if (PyErr_Occurred()) SWIG_fail; | |
10361 | } | |
4f89f6a3 RD |
10362 | { |
10363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10364 | } | |
d14a1e28 RD |
10365 | return resultobj; |
10366 | fail: | |
10367 | return NULL; | |
10368 | } | |
10369 | ||
10370 | ||
c32bde28 | 10371 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10372 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10373 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10374 | bool result; | |
10375 | PyObject * obj0 = 0 ; | |
10376 | char *kwnames[] = { | |
10377 | (char *) "self", NULL | |
10378 | }; | |
10379 | ||
10380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10383 | { |
10384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10385 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
10386 | ||
10387 | wxPyEndAllowThreads(__tstate); | |
10388 | if (PyErr_Occurred()) SWIG_fail; | |
10389 | } | |
4f89f6a3 RD |
10390 | { |
10391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10392 | } | |
d14a1e28 RD |
10393 | return resultobj; |
10394 | fail: | |
10395 | return NULL; | |
10396 | } | |
10397 | ||
10398 | ||
c32bde28 | 10399 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10400 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10401 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10402 | bool result; | |
10403 | PyObject * obj0 = 0 ; | |
10404 | char *kwnames[] = { | |
10405 | (char *) "self", NULL | |
10406 | }; | |
10407 | ||
10408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10411 | { |
10412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10413 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
10414 | ||
10415 | wxPyEndAllowThreads(__tstate); | |
10416 | if (PyErr_Occurred()) SWIG_fail; | |
10417 | } | |
4f89f6a3 RD |
10418 | { |
10419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10420 | } | |
d14a1e28 RD |
10421 | return resultobj; |
10422 | fail: | |
10423 | return NULL; | |
10424 | } | |
10425 | ||
10426 | ||
c32bde28 | 10427 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10428 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10429 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10430 | long *arg2 = (long *) 0 ; | |
10431 | long *arg3 = (long *) 0 ; | |
10432 | long temp2 ; | |
c32bde28 | 10433 | int res2 = 0 ; |
d14a1e28 | 10434 | long temp3 ; |
c32bde28 | 10435 | int res3 = 0 ; |
d14a1e28 RD |
10436 | PyObject * obj0 = 0 ; |
10437 | char *kwnames[] = { | |
10438 | (char *) "self", NULL | |
10439 | }; | |
10440 | ||
c32bde28 RD |
10441 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
10442 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 10443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
10444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10446 | { |
10447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10448 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
10449 | ||
10450 | wxPyEndAllowThreads(__tstate); | |
10451 | if (PyErr_Occurred()) SWIG_fail; | |
10452 | } | |
10453 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
10454 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
10455 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
10456 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10457 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
10458 | return resultobj; |
10459 | fail: | |
10460 | return NULL; | |
10461 | } | |
10462 | ||
10463 | ||
c32bde28 | 10464 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10465 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10466 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10467 | wxString result; | |
10468 | PyObject * obj0 = 0 ; | |
10469 | char *kwnames[] = { | |
10470 | (char *) "self", NULL | |
10471 | }; | |
10472 | ||
10473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10476 | { |
10477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10478 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
10479 | ||
10480 | wxPyEndAllowThreads(__tstate); | |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | } | |
10483 | { | |
10484 | #if wxUSE_UNICODE | |
10485 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10486 | #else | |
10487 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10488 | #endif | |
10489 | } | |
10490 | return resultobj; | |
10491 | fail: | |
10492 | return NULL; | |
10493 | } | |
10494 | ||
10495 | ||
c32bde28 | 10496 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10497 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10498 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10499 | PyObject * obj0 = 0 ; | |
10500 | char *kwnames[] = { | |
10501 | (char *) "self", NULL | |
10502 | }; | |
10503 | ||
10504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10507 | { |
10508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10509 | (arg1)->Clear(); | |
10510 | ||
10511 | wxPyEndAllowThreads(__tstate); | |
10512 | if (PyErr_Occurred()) SWIG_fail; | |
10513 | } | |
10514 | Py_INCREF(Py_None); resultobj = Py_None; | |
10515 | return resultobj; | |
10516 | fail: | |
10517 | return NULL; | |
10518 | } | |
10519 | ||
10520 | ||
c32bde28 | 10521 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10522 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10523 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10524 | long arg2 ; | |
10525 | long arg3 ; | |
10526 | wxString *arg4 = 0 ; | |
ae8162c8 | 10527 | bool temp4 = false ; |
d14a1e28 | 10528 | PyObject * obj0 = 0 ; |
994141e6 RD |
10529 | PyObject * obj1 = 0 ; |
10530 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10531 | PyObject * obj3 = 0 ; |
10532 | char *kwnames[] = { | |
10533 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
10534 | }; | |
10535 | ||
994141e6 | 10536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
10537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10539 | { | |
32fe5131 | 10540 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10541 | if (SWIG_arg_fail(2)) SWIG_fail; |
10542 | } | |
10543 | { | |
32fe5131 | 10544 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
10545 | if (SWIG_arg_fail(3)) SWIG_fail; |
10546 | } | |
d14a1e28 RD |
10547 | { |
10548 | arg4 = wxString_in_helper(obj3); | |
10549 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 10550 | temp4 = true; |
d14a1e28 RD |
10551 | } |
10552 | { | |
10553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10554 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
10555 | ||
10556 | wxPyEndAllowThreads(__tstate); | |
10557 | if (PyErr_Occurred()) SWIG_fail; | |
10558 | } | |
10559 | Py_INCREF(Py_None); resultobj = Py_None; | |
10560 | { | |
10561 | if (temp4) | |
10562 | delete arg4; | |
10563 | } | |
10564 | return resultobj; | |
10565 | fail: | |
10566 | { | |
10567 | if (temp4) | |
10568 | delete arg4; | |
10569 | } | |
10570 | return NULL; | |
10571 | } | |
10572 | ||
10573 | ||
c32bde28 | 10574 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10575 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10576 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10577 | long arg2 ; | |
10578 | long arg3 ; | |
10579 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10580 | PyObject * obj1 = 0 ; |
10581 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10582 | char *kwnames[] = { |
10583 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10584 | }; | |
10585 | ||
994141e6 | 10586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10589 | { | |
32fe5131 | 10590 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10591 | if (SWIG_arg_fail(2)) SWIG_fail; |
10592 | } | |
10593 | { | |
32fe5131 | 10594 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
10595 | if (SWIG_arg_fail(3)) SWIG_fail; |
10596 | } | |
d14a1e28 RD |
10597 | { |
10598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10599 | (arg1)->Remove(arg2,arg3); | |
10600 | ||
10601 | wxPyEndAllowThreads(__tstate); | |
10602 | if (PyErr_Occurred()) SWIG_fail; | |
10603 | } | |
10604 | Py_INCREF(Py_None); resultobj = Py_None; | |
10605 | return resultobj; | |
10606 | fail: | |
10607 | return NULL; | |
10608 | } | |
10609 | ||
10610 | ||
c32bde28 | 10611 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10612 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10613 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10614 | wxString *arg2 = 0 ; | |
10615 | bool result; | |
ae8162c8 | 10616 | bool temp2 = false ; |
d14a1e28 RD |
10617 | PyObject * obj0 = 0 ; |
10618 | PyObject * obj1 = 0 ; | |
10619 | char *kwnames[] = { | |
10620 | (char *) "self",(char *) "file", NULL | |
10621 | }; | |
10622 | ||
10623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10626 | { |
10627 | arg2 = wxString_in_helper(obj1); | |
10628 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10629 | temp2 = true; |
d14a1e28 RD |
10630 | } |
10631 | { | |
10632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10633 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
10634 | ||
10635 | wxPyEndAllowThreads(__tstate); | |
10636 | if (PyErr_Occurred()) SWIG_fail; | |
10637 | } | |
4f89f6a3 RD |
10638 | { |
10639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10640 | } | |
d14a1e28 RD |
10641 | { |
10642 | if (temp2) | |
10643 | delete arg2; | |
10644 | } | |
10645 | return resultobj; | |
10646 | fail: | |
10647 | { | |
10648 | if (temp2) | |
10649 | delete arg2; | |
10650 | } | |
10651 | return NULL; | |
10652 | } | |
10653 | ||
10654 | ||
c32bde28 | 10655 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10656 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10657 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10658 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
10659 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
10660 | bool result; | |
ae8162c8 | 10661 | bool temp2 = false ; |
d14a1e28 RD |
10662 | PyObject * obj0 = 0 ; |
10663 | PyObject * obj1 = 0 ; | |
10664 | char *kwnames[] = { | |
10665 | (char *) "self",(char *) "file", NULL | |
10666 | }; | |
10667 | ||
10668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10671 | if (obj1) { |
10672 | { | |
10673 | arg2 = wxString_in_helper(obj1); | |
10674 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10675 | temp2 = true; |
d14a1e28 RD |
10676 | } |
10677 | } | |
10678 | { | |
10679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10680 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
10681 | ||
10682 | wxPyEndAllowThreads(__tstate); | |
10683 | if (PyErr_Occurred()) SWIG_fail; | |
10684 | } | |
4f89f6a3 RD |
10685 | { |
10686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10687 | } | |
d14a1e28 RD |
10688 | { |
10689 | if (temp2) | |
10690 | delete arg2; | |
10691 | } | |
10692 | return resultobj; | |
10693 | fail: | |
10694 | { | |
10695 | if (temp2) | |
10696 | delete arg2; | |
10697 | } | |
10698 | return NULL; | |
10699 | } | |
10700 | ||
10701 | ||
c32bde28 | 10702 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10703 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10704 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10705 | PyObject * obj0 = 0 ; | |
10706 | char *kwnames[] = { | |
10707 | (char *) "self", NULL | |
10708 | }; | |
10709 | ||
10710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10711 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10713 | { |
10714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10715 | (arg1)->MarkDirty(); | |
10716 | ||
10717 | wxPyEndAllowThreads(__tstate); | |
10718 | if (PyErr_Occurred()) SWIG_fail; | |
10719 | } | |
10720 | Py_INCREF(Py_None); resultobj = Py_None; | |
10721 | return resultobj; | |
10722 | fail: | |
10723 | return NULL; | |
10724 | } | |
10725 | ||
10726 | ||
c32bde28 | 10727 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10728 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10729 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10730 | PyObject * obj0 = 0 ; | |
10731 | char *kwnames[] = { | |
10732 | (char *) "self", NULL | |
10733 | }; | |
10734 | ||
10735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10738 | { |
10739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10740 | (arg1)->DiscardEdits(); | |
10741 | ||
10742 | wxPyEndAllowThreads(__tstate); | |
10743 | if (PyErr_Occurred()) SWIG_fail; | |
10744 | } | |
10745 | Py_INCREF(Py_None); resultobj = Py_None; | |
10746 | return resultobj; | |
10747 | fail: | |
10748 | return NULL; | |
10749 | } | |
10750 | ||
10751 | ||
c32bde28 | 10752 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10753 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10754 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10755 | unsigned long arg2 ; | |
10756 | PyObject * obj0 = 0 ; | |
10757 | PyObject * obj1 = 0 ; | |
10758 | char *kwnames[] = { | |
10759 | (char *) "self",(char *) "len", NULL | |
10760 | }; | |
10761 | ||
10762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10763 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10764 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10765 | { | |
32fe5131 | 10766 | arg2 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
10767 | if (SWIG_arg_fail(2)) SWIG_fail; |
10768 | } | |
d14a1e28 RD |
10769 | { |
10770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10771 | (arg1)->SetMaxLength(arg2); | |
10772 | ||
10773 | wxPyEndAllowThreads(__tstate); | |
10774 | if (PyErr_Occurred()) SWIG_fail; | |
10775 | } | |
10776 | Py_INCREF(Py_None); resultobj = Py_None; | |
10777 | return resultobj; | |
10778 | fail: | |
10779 | return NULL; | |
10780 | } | |
10781 | ||
10782 | ||
c32bde28 | 10783 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10784 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10785 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10786 | wxString *arg2 = 0 ; | |
ae8162c8 | 10787 | bool temp2 = false ; |
d14a1e28 RD |
10788 | PyObject * obj0 = 0 ; |
10789 | PyObject * obj1 = 0 ; | |
10790 | char *kwnames[] = { | |
10791 | (char *) "self",(char *) "text", NULL | |
10792 | }; | |
10793 | ||
10794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10797 | { |
10798 | arg2 = wxString_in_helper(obj1); | |
10799 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10800 | temp2 = true; |
d14a1e28 RD |
10801 | } |
10802 | { | |
10803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10804 | (arg1)->WriteText((wxString const &)*arg2); | |
10805 | ||
10806 | wxPyEndAllowThreads(__tstate); | |
10807 | if (PyErr_Occurred()) SWIG_fail; | |
10808 | } | |
10809 | Py_INCREF(Py_None); resultobj = Py_None; | |
10810 | { | |
10811 | if (temp2) | |
10812 | delete arg2; | |
10813 | } | |
10814 | return resultobj; | |
10815 | fail: | |
10816 | { | |
10817 | if (temp2) | |
10818 | delete arg2; | |
10819 | } | |
10820 | return NULL; | |
10821 | } | |
10822 | ||
10823 | ||
c32bde28 | 10824 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10825 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10826 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10827 | wxString *arg2 = 0 ; | |
ae8162c8 | 10828 | bool temp2 = false ; |
d14a1e28 RD |
10829 | PyObject * obj0 = 0 ; |
10830 | PyObject * obj1 = 0 ; | |
10831 | char *kwnames[] = { | |
10832 | (char *) "self",(char *) "text", NULL | |
10833 | }; | |
10834 | ||
10835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10838 | { |
10839 | arg2 = wxString_in_helper(obj1); | |
10840 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10841 | temp2 = true; |
d14a1e28 RD |
10842 | } |
10843 | { | |
10844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10845 | (arg1)->AppendText((wxString const &)*arg2); | |
10846 | ||
10847 | wxPyEndAllowThreads(__tstate); | |
10848 | if (PyErr_Occurred()) SWIG_fail; | |
10849 | } | |
10850 | Py_INCREF(Py_None); resultobj = Py_None; | |
10851 | { | |
10852 | if (temp2) | |
10853 | delete arg2; | |
10854 | } | |
10855 | return resultobj; | |
10856 | fail: | |
10857 | { | |
10858 | if (temp2) | |
10859 | delete arg2; | |
10860 | } | |
10861 | return NULL; | |
10862 | } | |
10863 | ||
10864 | ||
c32bde28 | 10865 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10866 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10867 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10868 | wxKeyEvent *arg2 = 0 ; | |
10869 | bool result; | |
10870 | PyObject * obj0 = 0 ; | |
10871 | PyObject * obj1 = 0 ; | |
10872 | char *kwnames[] = { | |
10873 | (char *) "self",(char *) "event", NULL | |
10874 | }; | |
10875 | ||
10876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10879 | { | |
10880 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
10881 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10882 | if (arg2 == NULL) { | |
10883 | SWIG_null_ref("wxKeyEvent"); | |
10884 | } | |
10885 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
10886 | } |
10887 | { | |
10888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10889 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
10890 | ||
10891 | wxPyEndAllowThreads(__tstate); | |
10892 | if (PyErr_Occurred()) SWIG_fail; | |
10893 | } | |
4f89f6a3 RD |
10894 | { |
10895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10896 | } | |
d14a1e28 RD |
10897 | return resultobj; |
10898 | fail: | |
10899 | return NULL; | |
10900 | } | |
10901 | ||
10902 | ||
c32bde28 | 10903 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10904 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10905 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10906 | long arg2 ; | |
10907 | long arg3 ; | |
10908 | wxTextAttr *arg4 = 0 ; | |
10909 | bool result; | |
10910 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10911 | PyObject * obj1 = 0 ; |
10912 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10913 | PyObject * obj3 = 0 ; |
10914 | char *kwnames[] = { | |
10915 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
10916 | }; | |
10917 | ||
994141e6 | 10918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
10919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10921 | { | |
32fe5131 | 10922 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10923 | if (SWIG_arg_fail(2)) SWIG_fail; |
10924 | } | |
10925 | { | |
32fe5131 | 10926 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
10927 | if (SWIG_arg_fail(3)) SWIG_fail; |
10928 | } | |
10929 | { | |
10930 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10931 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10932 | if (arg4 == NULL) { | |
10933 | SWIG_null_ref("wxTextAttr"); | |
10934 | } | |
10935 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
10936 | } |
10937 | { | |
10938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10939 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
10940 | ||
10941 | wxPyEndAllowThreads(__tstate); | |
10942 | if (PyErr_Occurred()) SWIG_fail; | |
10943 | } | |
4f89f6a3 RD |
10944 | { |
10945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10946 | } | |
d14a1e28 RD |
10947 | return resultobj; |
10948 | fail: | |
10949 | return NULL; | |
10950 | } | |
10951 | ||
10952 | ||
c32bde28 | 10953 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10954 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10955 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10956 | long arg2 ; | |
10957 | wxTextAttr *arg3 = 0 ; | |
10958 | bool result; | |
10959 | PyObject * obj0 = 0 ; | |
994141e6 | 10960 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10961 | PyObject * obj2 = 0 ; |
10962 | char *kwnames[] = { | |
10963 | (char *) "self",(char *) "position",(char *) "style", NULL | |
10964 | }; | |
10965 | ||
994141e6 | 10966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10967 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10968 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10969 | { | |
32fe5131 | 10970 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10971 | if (SWIG_arg_fail(2)) SWIG_fail; |
10972 | } | |
10973 | { | |
10974 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10975 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10976 | if (arg3 == NULL) { | |
10977 | SWIG_null_ref("wxTextAttr"); | |
10978 | } | |
10979 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
10980 | } |
10981 | { | |
10982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10983 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
10984 | ||
10985 | wxPyEndAllowThreads(__tstate); | |
10986 | if (PyErr_Occurred()) SWIG_fail; | |
10987 | } | |
4f89f6a3 RD |
10988 | { |
10989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10990 | } | |
d14a1e28 RD |
10991 | return resultobj; |
10992 | fail: | |
10993 | return NULL; | |
10994 | } | |
10995 | ||
10996 | ||
c32bde28 | 10997 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10998 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10999 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11000 | wxTextAttr *arg2 = 0 ; | |
11001 | bool result; | |
11002 | PyObject * obj0 = 0 ; | |
11003 | PyObject * obj1 = 0 ; | |
11004 | char *kwnames[] = { | |
11005 | (char *) "self",(char *) "style", NULL | |
11006 | }; | |
11007 | ||
11008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11011 | { | |
11012 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
11013 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11014 | if (arg2 == NULL) { | |
11015 | SWIG_null_ref("wxTextAttr"); | |
11016 | } | |
11017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
11018 | } |
11019 | { | |
11020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11021 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
11022 | ||
11023 | wxPyEndAllowThreads(__tstate); | |
11024 | if (PyErr_Occurred()) SWIG_fail; | |
11025 | } | |
4f89f6a3 RD |
11026 | { |
11027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11028 | } | |
d14a1e28 RD |
11029 | return resultobj; |
11030 | fail: | |
11031 | return NULL; | |
11032 | } | |
11033 | ||
11034 | ||
c32bde28 | 11035 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11036 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11037 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11038 | wxTextAttr *result; | |
11039 | PyObject * obj0 = 0 ; | |
11040 | char *kwnames[] = { | |
11041 | (char *) "self", NULL | |
11042 | }; | |
11043 | ||
11044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11047 | { |
11048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11049 | { | |
11050 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
11051 | result = (wxTextAttr *) &_result_ref; | |
11052 | } | |
11053 | ||
11054 | wxPyEndAllowThreads(__tstate); | |
11055 | if (PyErr_Occurred()) SWIG_fail; | |
11056 | } | |
15afbcd0 | 11057 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
11058 | return resultobj; |
11059 | fail: | |
11060 | return NULL; | |
11061 | } | |
11062 | ||
11063 | ||
c32bde28 | 11064 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11065 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11066 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11067 | long arg2 ; | |
11068 | long arg3 ; | |
11069 | long result; | |
11070 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11071 | PyObject * obj1 = 0 ; |
11072 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11073 | char *kwnames[] = { |
11074 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11075 | }; | |
11076 | ||
994141e6 | 11077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11080 | { | |
32fe5131 | 11081 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11082 | if (SWIG_arg_fail(2)) SWIG_fail; |
11083 | } | |
11084 | { | |
32fe5131 | 11085 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
11086 | if (SWIG_arg_fail(3)) SWIG_fail; |
11087 | } | |
d14a1e28 RD |
11088 | { |
11089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11090 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
11091 | ||
11092 | wxPyEndAllowThreads(__tstate); | |
11093 | if (PyErr_Occurred()) SWIG_fail; | |
11094 | } | |
093d3ff1 | 11095 | { |
32fe5131 | 11096 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 11097 | } |
d14a1e28 RD |
11098 | return resultobj; |
11099 | fail: | |
11100 | return NULL; | |
11101 | } | |
11102 | ||
11103 | ||
c32bde28 | 11104 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11105 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11106 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11107 | long arg2 ; | |
11108 | long *arg3 = (long *) 0 ; | |
11109 | long *arg4 = (long *) 0 ; | |
11110 | long temp3 ; | |
c32bde28 | 11111 | int res3 = 0 ; |
d14a1e28 | 11112 | long temp4 ; |
c32bde28 | 11113 | int res4 = 0 ; |
d14a1e28 | 11114 | PyObject * obj0 = 0 ; |
994141e6 | 11115 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11116 | char *kwnames[] = { |
11117 | (char *) "self",(char *) "pos", NULL | |
11118 | }; | |
11119 | ||
c32bde28 RD |
11120 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
11121 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
994141e6 | 11122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11125 | { | |
32fe5131 | 11126 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11127 | if (SWIG_arg_fail(2)) SWIG_fail; |
11128 | } | |
d14a1e28 RD |
11129 | { |
11130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11131 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
11132 | ||
11133 | wxPyEndAllowThreads(__tstate); | |
11134 | if (PyErr_Occurred()) SWIG_fail; | |
11135 | } | |
11136 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
11137 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11138 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
11139 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
11140 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
11141 | return resultobj; |
11142 | fail: | |
11143 | return NULL; | |
11144 | } | |
11145 | ||
11146 | ||
c32bde28 | 11147 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11148 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11149 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11150 | long arg2 ; | |
11151 | PyObject * obj0 = 0 ; | |
994141e6 | 11152 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11153 | char *kwnames[] = { |
11154 | (char *) "self",(char *) "pos", NULL | |
11155 | }; | |
11156 | ||
994141e6 | 11157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11160 | { | |
32fe5131 | 11161 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11162 | if (SWIG_arg_fail(2)) SWIG_fail; |
11163 | } | |
d14a1e28 RD |
11164 | { |
11165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11166 | (arg1)->ShowPosition(arg2); | |
11167 | ||
11168 | wxPyEndAllowThreads(__tstate); | |
11169 | if (PyErr_Occurred()) SWIG_fail; | |
11170 | } | |
11171 | Py_INCREF(Py_None); resultobj = Py_None; | |
11172 | return resultobj; | |
11173 | fail: | |
11174 | return NULL; | |
11175 | } | |
11176 | ||
11177 | ||
c32bde28 | 11178 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11179 | PyObject *resultobj = NULL; |
4d5c3d91 RD |
11180 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11181 | wxPoint *arg2 = 0 ; | |
11182 | long *arg3 = (long *) 0 ; | |
11183 | long *arg4 = (long *) 0 ; | |
093d3ff1 | 11184 | wxTextCtrlHitTestResult result; |
4d5c3d91 RD |
11185 | wxPoint temp2 ; |
11186 | long temp3 ; | |
c32bde28 | 11187 | int res3 = 0 ; |
4d5c3d91 | 11188 | long temp4 ; |
c32bde28 | 11189 | int res4 = 0 ; |
4d5c3d91 RD |
11190 | PyObject * obj0 = 0 ; |
11191 | PyObject * obj1 = 0 ; | |
11192 | char *kwnames[] = { | |
11193 | (char *) "self",(char *) "pt", NULL | |
11194 | }; | |
11195 | ||
c32bde28 RD |
11196 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
11197 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
4d5c3d91 | 11198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4d5c3d91 RD |
11201 | { |
11202 | arg2 = &temp2; | |
11203 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11204 | } | |
11205 | { | |
11206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11207 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); |
4d5c3d91 RD |
11208 | |
11209 | wxPyEndAllowThreads(__tstate); | |
11210 | if (PyErr_Occurred()) SWIG_fail; | |
11211 | } | |
093d3ff1 | 11212 | resultobj = SWIG_From_int((result)); |
c32bde28 RD |
11213 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11214 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
11215 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
11216 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
4d5c3d91 RD |
11217 | return resultobj; |
11218 | fail: | |
11219 | return NULL; | |
11220 | } | |
11221 | ||
11222 | ||
c32bde28 | 11223 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11224 | PyObject *resultobj = NULL; |
4896ac9e RD |
11225 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11226 | wxPoint *arg2 = 0 ; | |
11227 | long *arg3 = (long *) 0 ; | |
093d3ff1 | 11228 | wxTextCtrlHitTestResult result; |
4896ac9e RD |
11229 | wxPoint temp2 ; |
11230 | long temp3 ; | |
c32bde28 | 11231 | int res3 = 0 ; |
4896ac9e RD |
11232 | PyObject * obj0 = 0 ; |
11233 | PyObject * obj1 = 0 ; | |
11234 | char *kwnames[] = { | |
11235 | (char *) "self",(char *) "pt", NULL | |
11236 | }; | |
11237 | ||
c32bde28 | 11238 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
4896ac9e | 11239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4896ac9e RD |
11242 | { |
11243 | arg2 = &temp2; | |
11244 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11245 | } | |
11246 | { | |
11247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11248 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); |
4896ac9e RD |
11249 | |
11250 | wxPyEndAllowThreads(__tstate); | |
11251 | if (PyErr_Occurred()) SWIG_fail; | |
11252 | } | |
093d3ff1 | 11253 | resultobj = SWIG_From_int((result)); |
c32bde28 RD |
11254 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11255 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4896ac9e RD |
11256 | return resultobj; |
11257 | fail: | |
11258 | return NULL; | |
11259 | } | |
11260 | ||
11261 | ||
c32bde28 | 11262 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11263 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11264 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11265 | PyObject * obj0 = 0 ; | |
11266 | char *kwnames[] = { | |
11267 | (char *) "self", NULL | |
11268 | }; | |
11269 | ||
11270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11271 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11272 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11273 | { |
11274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11275 | (arg1)->Copy(); | |
11276 | ||
11277 | wxPyEndAllowThreads(__tstate); | |
11278 | if (PyErr_Occurred()) SWIG_fail; | |
11279 | } | |
11280 | Py_INCREF(Py_None); resultobj = Py_None; | |
11281 | return resultobj; | |
11282 | fail: | |
11283 | return NULL; | |
11284 | } | |
11285 | ||
11286 | ||
c32bde28 | 11287 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11288 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11289 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11290 | PyObject * obj0 = 0 ; | |
11291 | char *kwnames[] = { | |
11292 | (char *) "self", NULL | |
11293 | }; | |
11294 | ||
11295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11298 | { |
11299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11300 | (arg1)->Cut(); | |
11301 | ||
11302 | wxPyEndAllowThreads(__tstate); | |
11303 | if (PyErr_Occurred()) SWIG_fail; | |
11304 | } | |
11305 | Py_INCREF(Py_None); resultobj = Py_None; | |
11306 | return resultobj; | |
11307 | fail: | |
11308 | return NULL; | |
11309 | } | |
11310 | ||
11311 | ||
c32bde28 | 11312 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11313 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11314 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11315 | PyObject * obj0 = 0 ; | |
11316 | char *kwnames[] = { | |
11317 | (char *) "self", NULL | |
11318 | }; | |
11319 | ||
11320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11323 | { |
11324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11325 | (arg1)->Paste(); | |
11326 | ||
11327 | wxPyEndAllowThreads(__tstate); | |
11328 | if (PyErr_Occurred()) SWIG_fail; | |
11329 | } | |
11330 | Py_INCREF(Py_None); resultobj = Py_None; | |
11331 | return resultobj; | |
11332 | fail: | |
11333 | return NULL; | |
11334 | } | |
11335 | ||
11336 | ||
c32bde28 | 11337 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11338 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11339 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11340 | bool result; | |
11341 | PyObject * obj0 = 0 ; | |
11342 | char *kwnames[] = { | |
11343 | (char *) "self", NULL | |
11344 | }; | |
11345 | ||
11346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11349 | { |
11350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11351 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
11352 | ||
11353 | wxPyEndAllowThreads(__tstate); | |
11354 | if (PyErr_Occurred()) SWIG_fail; | |
11355 | } | |
4f89f6a3 RD |
11356 | { |
11357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11358 | } | |
d14a1e28 RD |
11359 | return resultobj; |
11360 | fail: | |
11361 | return NULL; | |
11362 | } | |
11363 | ||
11364 | ||
c32bde28 | 11365 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11366 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11367 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11368 | bool result; | |
11369 | PyObject * obj0 = 0 ; | |
11370 | char *kwnames[] = { | |
11371 | (char *) "self", NULL | |
11372 | }; | |
11373 | ||
11374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11375 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11376 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11377 | { |
11378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11379 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
11380 | ||
11381 | wxPyEndAllowThreads(__tstate); | |
11382 | if (PyErr_Occurred()) SWIG_fail; | |
11383 | } | |
4f89f6a3 RD |
11384 | { |
11385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11386 | } | |
d14a1e28 RD |
11387 | return resultobj; |
11388 | fail: | |
11389 | return NULL; | |
11390 | } | |
11391 | ||
11392 | ||
c32bde28 | 11393 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11394 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11395 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11396 | bool result; | |
11397 | PyObject * obj0 = 0 ; | |
11398 | char *kwnames[] = { | |
11399 | (char *) "self", NULL | |
11400 | }; | |
11401 | ||
11402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11405 | { |
11406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11407 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
11408 | ||
11409 | wxPyEndAllowThreads(__tstate); | |
11410 | if (PyErr_Occurred()) SWIG_fail; | |
11411 | } | |
4f89f6a3 RD |
11412 | { |
11413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11414 | } | |
d14a1e28 RD |
11415 | return resultobj; |
11416 | fail: | |
11417 | return NULL; | |
11418 | } | |
11419 | ||
11420 | ||
c32bde28 | 11421 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11422 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11423 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11424 | PyObject * obj0 = 0 ; | |
11425 | char *kwnames[] = { | |
11426 | (char *) "self", NULL | |
11427 | }; | |
11428 | ||
11429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11432 | { |
11433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11434 | (arg1)->Undo(); | |
11435 | ||
11436 | wxPyEndAllowThreads(__tstate); | |
11437 | if (PyErr_Occurred()) SWIG_fail; | |
11438 | } | |
11439 | Py_INCREF(Py_None); resultobj = Py_None; | |
11440 | return resultobj; | |
11441 | fail: | |
11442 | return NULL; | |
11443 | } | |
11444 | ||
11445 | ||
c32bde28 | 11446 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11447 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11448 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11449 | PyObject * obj0 = 0 ; | |
11450 | char *kwnames[] = { | |
11451 | (char *) "self", NULL | |
11452 | }; | |
11453 | ||
11454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11455 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11456 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11457 | { |
11458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11459 | (arg1)->Redo(); | |
11460 | ||
11461 | wxPyEndAllowThreads(__tstate); | |
11462 | if (PyErr_Occurred()) SWIG_fail; | |
11463 | } | |
11464 | Py_INCREF(Py_None); resultobj = Py_None; | |
11465 | return resultobj; | |
11466 | fail: | |
11467 | return NULL; | |
11468 | } | |
11469 | ||
11470 | ||
c32bde28 | 11471 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11472 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11473 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11474 | bool result; | |
11475 | PyObject * obj0 = 0 ; | |
11476 | char *kwnames[] = { | |
11477 | (char *) "self", NULL | |
11478 | }; | |
11479 | ||
11480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11483 | { |
11484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11485 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
11486 | ||
11487 | wxPyEndAllowThreads(__tstate); | |
11488 | if (PyErr_Occurred()) SWIG_fail; | |
11489 | } | |
4f89f6a3 RD |
11490 | { |
11491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11492 | } | |
d14a1e28 RD |
11493 | return resultobj; |
11494 | fail: | |
11495 | return NULL; | |
11496 | } | |
11497 | ||
11498 | ||
c32bde28 | 11499 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11500 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11501 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11502 | bool result; | |
11503 | PyObject * obj0 = 0 ; | |
11504 | char *kwnames[] = { | |
11505 | (char *) "self", NULL | |
11506 | }; | |
11507 | ||
11508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11511 | { |
11512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11513 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
11514 | ||
11515 | wxPyEndAllowThreads(__tstate); | |
11516 | if (PyErr_Occurred()) SWIG_fail; | |
11517 | } | |
4f89f6a3 RD |
11518 | { |
11519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11520 | } | |
d14a1e28 RD |
11521 | return resultobj; |
11522 | fail: | |
11523 | return NULL; | |
11524 | } | |
11525 | ||
11526 | ||
c32bde28 | 11527 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11528 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11529 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11530 | long arg2 ; | |
11531 | PyObject * obj0 = 0 ; | |
994141e6 | 11532 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11533 | char *kwnames[] = { |
11534 | (char *) "self",(char *) "pos", NULL | |
11535 | }; | |
11536 | ||
994141e6 | 11537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11540 | { | |
32fe5131 | 11541 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11542 | if (SWIG_arg_fail(2)) SWIG_fail; |
11543 | } | |
d14a1e28 RD |
11544 | { |
11545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11546 | (arg1)->SetInsertionPoint(arg2); | |
11547 | ||
11548 | wxPyEndAllowThreads(__tstate); | |
11549 | if (PyErr_Occurred()) SWIG_fail; | |
11550 | } | |
11551 | Py_INCREF(Py_None); resultobj = Py_None; | |
11552 | return resultobj; | |
11553 | fail: | |
11554 | return NULL; | |
11555 | } | |
11556 | ||
11557 | ||
c32bde28 | 11558 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11559 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11560 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11561 | PyObject * obj0 = 0 ; | |
11562 | char *kwnames[] = { | |
11563 | (char *) "self", NULL | |
11564 | }; | |
11565 | ||
11566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11569 | { |
11570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11571 | (arg1)->SetInsertionPointEnd(); | |
11572 | ||
11573 | wxPyEndAllowThreads(__tstate); | |
11574 | if (PyErr_Occurred()) SWIG_fail; | |
11575 | } | |
11576 | Py_INCREF(Py_None); resultobj = Py_None; | |
11577 | return resultobj; | |
11578 | fail: | |
11579 | return NULL; | |
11580 | } | |
11581 | ||
11582 | ||
c32bde28 | 11583 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11584 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11585 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11586 | long result; | |
11587 | PyObject * obj0 = 0 ; | |
11588 | char *kwnames[] = { | |
11589 | (char *) "self", NULL | |
11590 | }; | |
11591 | ||
11592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11595 | { |
11596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11597 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
11598 | ||
11599 | wxPyEndAllowThreads(__tstate); | |
11600 | if (PyErr_Occurred()) SWIG_fail; | |
11601 | } | |
093d3ff1 | 11602 | { |
32fe5131 | 11603 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 11604 | } |
d14a1e28 RD |
11605 | return resultobj; |
11606 | fail: | |
11607 | return NULL; | |
11608 | } | |
11609 | ||
11610 | ||
c32bde28 | 11611 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11612 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11613 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11614 | long result; | |
11615 | PyObject * obj0 = 0 ; | |
11616 | char *kwnames[] = { | |
11617 | (char *) "self", NULL | |
11618 | }; | |
11619 | ||
11620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11623 | { |
11624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11625 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
11626 | ||
11627 | wxPyEndAllowThreads(__tstate); | |
11628 | if (PyErr_Occurred()) SWIG_fail; | |
11629 | } | |
093d3ff1 | 11630 | { |
32fe5131 | 11631 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 11632 | } |
d14a1e28 RD |
11633 | return resultobj; |
11634 | fail: | |
11635 | return NULL; | |
11636 | } | |
11637 | ||
11638 | ||
c32bde28 | 11639 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11640 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11641 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11642 | long arg2 ; | |
11643 | long arg3 ; | |
11644 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11645 | PyObject * obj1 = 0 ; |
11646 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11647 | char *kwnames[] = { |
11648 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11649 | }; | |
11650 | ||
994141e6 | 11651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11654 | { | |
32fe5131 | 11655 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11656 | if (SWIG_arg_fail(2)) SWIG_fail; |
11657 | } | |
11658 | { | |
32fe5131 | 11659 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
11660 | if (SWIG_arg_fail(3)) SWIG_fail; |
11661 | } | |
d14a1e28 RD |
11662 | { |
11663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11664 | (arg1)->SetSelection(arg2,arg3); | |
11665 | ||
11666 | wxPyEndAllowThreads(__tstate); | |
11667 | if (PyErr_Occurred()) SWIG_fail; | |
11668 | } | |
11669 | Py_INCREF(Py_None); resultobj = Py_None; | |
11670 | return resultobj; | |
11671 | fail: | |
11672 | return NULL; | |
11673 | } | |
11674 | ||
11675 | ||
c32bde28 | 11676 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11677 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11678 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11679 | PyObject * obj0 = 0 ; | |
11680 | char *kwnames[] = { | |
11681 | (char *) "self", NULL | |
11682 | }; | |
11683 | ||
11684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11685 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11686 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11687 | { |
11688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11689 | (arg1)->SelectAll(); | |
11690 | ||
11691 | wxPyEndAllowThreads(__tstate); | |
11692 | if (PyErr_Occurred()) SWIG_fail; | |
11693 | } | |
11694 | Py_INCREF(Py_None); resultobj = Py_None; | |
11695 | return resultobj; | |
11696 | fail: | |
11697 | return NULL; | |
11698 | } | |
11699 | ||
11700 | ||
c32bde28 | 11701 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11702 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11703 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11704 | bool arg2 ; | |
11705 | PyObject * obj0 = 0 ; | |
11706 | PyObject * obj1 = 0 ; | |
11707 | char *kwnames[] = { | |
11708 | (char *) "self",(char *) "editable", NULL | |
11709 | }; | |
11710 | ||
11711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11712 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11714 | { | |
32fe5131 | 11715 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
11716 | if (SWIG_arg_fail(2)) SWIG_fail; |
11717 | } | |
d14a1e28 RD |
11718 | { |
11719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11720 | (arg1)->SetEditable(arg2); | |
11721 | ||
11722 | wxPyEndAllowThreads(__tstate); | |
11723 | if (PyErr_Occurred()) SWIG_fail; | |
11724 | } | |
11725 | Py_INCREF(Py_None); resultobj = Py_None; | |
11726 | return resultobj; | |
11727 | fail: | |
11728 | return NULL; | |
11729 | } | |
11730 | ||
11731 | ||
c32bde28 | 11732 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11733 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11734 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11735 | wxString *arg2 = 0 ; | |
ae8162c8 | 11736 | bool temp2 = false ; |
d14a1e28 RD |
11737 | PyObject * obj0 = 0 ; |
11738 | PyObject * obj1 = 0 ; | |
11739 | char *kwnames[] = { | |
11740 | (char *) "self",(char *) "text", NULL | |
11741 | }; | |
11742 | ||
11743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11746 | { |
11747 | arg2 = wxString_in_helper(obj1); | |
11748 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11749 | temp2 = true; |
d14a1e28 RD |
11750 | } |
11751 | { | |
11752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11753 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
11754 | ||
11755 | wxPyEndAllowThreads(__tstate); | |
11756 | if (PyErr_Occurred()) SWIG_fail; | |
11757 | } | |
11758 | Py_INCREF(Py_None); resultobj = Py_None; | |
11759 | { | |
11760 | if (temp2) | |
11761 | delete arg2; | |
11762 | } | |
11763 | return resultobj; | |
11764 | fail: | |
11765 | { | |
11766 | if (temp2) | |
11767 | delete arg2; | |
11768 | } | |
11769 | return NULL; | |
11770 | } | |
11771 | ||
11772 | ||
c32bde28 | 11773 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11774 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11775 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11776 | long arg2 ; | |
11777 | long arg3 ; | |
11778 | wxString result; | |
11779 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11780 | PyObject * obj1 = 0 ; |
11781 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11782 | char *kwnames[] = { |
11783 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11784 | }; | |
11785 | ||
994141e6 | 11786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11787 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11789 | { | |
32fe5131 | 11790 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11791 | if (SWIG_arg_fail(2)) SWIG_fail; |
11792 | } | |
11793 | { | |
32fe5131 | 11794 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
11795 | if (SWIG_arg_fail(3)) SWIG_fail; |
11796 | } | |
d14a1e28 RD |
11797 | { |
11798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11799 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
11800 | ||
11801 | wxPyEndAllowThreads(__tstate); | |
11802 | if (PyErr_Occurred()) SWIG_fail; | |
11803 | } | |
11804 | { | |
11805 | #if wxUSE_UNICODE | |
11806 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11807 | #else | |
11808 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11809 | #endif | |
11810 | } | |
11811 | return resultobj; | |
11812 | fail: | |
11813 | return NULL; | |
11814 | } | |
11815 | ||
11816 | ||
c32bde28 | 11817 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11818 | PyObject *resultobj = NULL; |
093d3ff1 | 11819 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
11820 | wxVisualAttributes result; |
11821 | PyObject * obj0 = 0 ; | |
11822 | char *kwnames[] = { | |
11823 | (char *) "variant", NULL | |
11824 | }; | |
11825 | ||
11826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11827 | if (obj0) { | |
093d3ff1 | 11828 | { |
32fe5131 | 11829 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
11830 | if (SWIG_arg_fail(1)) SWIG_fail; |
11831 | } | |
22bfe96c RD |
11832 | } |
11833 | { | |
110da5b0 | 11834 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 11835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 11836 | result = wxTextCtrl::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
11837 | |
11838 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11839 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
11840 | } |
11841 | { | |
11842 | wxVisualAttributes * resultptr; | |
32fe5131 | 11843 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
11844 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
11845 | } | |
11846 | return resultobj; | |
11847 | fail: | |
11848 | return NULL; | |
11849 | } | |
11850 | ||
11851 | ||
c32bde28 | 11852 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11853 | PyObject *obj; |
11854 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11855 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
11856 | Py_INCREF(obj); | |
11857 | return Py_BuildValue((char *)""); | |
11858 | } | |
c32bde28 | 11859 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11860 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11861 | int arg1 ; |
11862 | wxMouseEvent *arg2 = 0 ; | |
11863 | long arg3 ; | |
11864 | long arg4 ; | |
11865 | wxTextUrlEvent *result; | |
994141e6 | 11866 | PyObject * obj0 = 0 ; |
d14a1e28 | 11867 | PyObject * obj1 = 0 ; |
994141e6 RD |
11868 | PyObject * obj2 = 0 ; |
11869 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11870 | char *kwnames[] = { |
11871 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
11872 | }; | |
11873 | ||
994141e6 | 11874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 | 11875 | { |
32fe5131 | 11876 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
11877 | if (SWIG_arg_fail(1)) SWIG_fail; |
11878 | } | |
11879 | { | |
11880 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); | |
11881 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11882 | if (arg2 == NULL) { | |
11883 | SWIG_null_ref("wxMouseEvent"); | |
11884 | } | |
11885 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11886 | } | |
11887 | { | |
32fe5131 | 11888 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
11889 | if (SWIG_arg_fail(3)) SWIG_fail; |
11890 | } | |
11891 | { | |
32fe5131 | 11892 | arg4 = static_cast<long >(SWIG_As_long(obj3)); |
093d3ff1 | 11893 | if (SWIG_arg_fail(4)) SWIG_fail; |
994141e6 | 11894 | } |
d14a1e28 RD |
11895 | { |
11896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11897 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
11898 | ||
11899 | wxPyEndAllowThreads(__tstate); | |
11900 | if (PyErr_Occurred()) SWIG_fail; | |
11901 | } | |
15afbcd0 | 11902 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
11903 | return resultobj; |
11904 | fail: | |
11905 | return NULL; | |
11906 | } | |
11907 | ||
11908 | ||
c32bde28 | 11909 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11910 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11911 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; |
11912 | wxMouseEvent *result; | |
11913 | PyObject * obj0 = 0 ; | |
11914 | char *kwnames[] = { | |
11915 | (char *) "self", NULL | |
11916 | }; | |
11917 | ||
11918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11921 | { |
11922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11923 | { | |
11924 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
11925 | result = (wxMouseEvent *) &_result_ref; | |
11926 | } | |
11927 | ||
11928 | wxPyEndAllowThreads(__tstate); | |
11929 | if (PyErr_Occurred()) SWIG_fail; | |
11930 | } | |
15afbcd0 | 11931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
11932 | return resultobj; |
11933 | fail: | |
11934 | return NULL; | |
11935 | } | |
11936 | ||
11937 | ||
c32bde28 | 11938 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11939 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11940 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; |
11941 | long result; | |
11942 | PyObject * obj0 = 0 ; | |
11943 | char *kwnames[] = { | |
11944 | (char *) "self", NULL | |
11945 | }; | |
11946 | ||
11947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11950 | { |
11951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11952 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
11953 | ||
11954 | wxPyEndAllowThreads(__tstate); | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
093d3ff1 | 11957 | { |
32fe5131 | 11958 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 11959 | } |
d14a1e28 RD |
11960 | return resultobj; |
11961 | fail: | |
11962 | return NULL; | |
11963 | } | |
11964 | ||
11965 | ||
c32bde28 | 11966 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11967 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11968 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; |
11969 | long result; | |
11970 | PyObject * obj0 = 0 ; | |
11971 | char *kwnames[] = { | |
11972 | (char *) "self", NULL | |
11973 | }; | |
11974 | ||
11975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11978 | { |
11979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11980 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
11981 | ||
11982 | wxPyEndAllowThreads(__tstate); | |
11983 | if (PyErr_Occurred()) SWIG_fail; | |
11984 | } | |
093d3ff1 | 11985 | { |
32fe5131 | 11986 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 11987 | } |
d14a1e28 RD |
11988 | return resultobj; |
11989 | fail: | |
11990 | return NULL; | |
11991 | } | |
11992 | ||
11993 | ||
c32bde28 | 11994 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11995 | PyObject *obj; |
11996 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11997 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
11998 | Py_INCREF(obj); | |
11999 | return Py_BuildValue((char *)""); | |
12000 | } | |
c32bde28 | 12001 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
b2dc1044 RD |
12002 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
12003 | return 1; | |
12004 | } | |
12005 | ||
12006 | ||
093d3ff1 | 12007 | static PyObject *_wrap_ScrollBarNameStr_get(void) { |
32fe5131 | 12008 | PyObject *pyobj = NULL; |
b2dc1044 RD |
12009 | |
12010 | { | |
12011 | #if wxUSE_UNICODE | |
12012 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
12013 | #else | |
12014 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
12015 | #endif | |
12016 | } | |
12017 | return pyobj; | |
12018 | } | |
12019 | ||
12020 | ||
c32bde28 | 12021 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12022 | PyObject *resultobj = NULL; |
d14a1e28 | 12023 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 12024 | int arg2 = (int) -1 ; |
d14a1e28 RD |
12025 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12026 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12027 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12028 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12029 | long arg5 = (long) wxSB_HORIZONTAL ; | |
12030 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
12031 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
12032 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
12033 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12034 | wxScrollBar *result; | |
12035 | wxPoint temp3 ; | |
12036 | wxSize temp4 ; | |
ae8162c8 | 12037 | bool temp7 = false ; |
d14a1e28 | 12038 | PyObject * obj0 = 0 ; |
994141e6 | 12039 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12040 | PyObject * obj2 = 0 ; |
12041 | PyObject * obj3 = 0 ; | |
994141e6 | 12042 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
12043 | PyObject * obj5 = 0 ; |
12044 | PyObject * obj6 = 0 ; | |
12045 | char *kwnames[] = { | |
12046 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12047 | }; | |
12048 | ||
994141e6 | 12049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
12050 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12051 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 12052 | if (obj1) { |
093d3ff1 | 12053 | { |
32fe5131 | 12054 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12055 | if (SWIG_arg_fail(2)) SWIG_fail; |
12056 | } | |
994141e6 | 12057 | } |
d14a1e28 RD |
12058 | if (obj2) { |
12059 | { | |
12060 | arg3 = &temp3; | |
12061 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12062 | } | |
12063 | } | |
12064 | if (obj3) { | |
12065 | { | |
12066 | arg4 = &temp4; | |
12067 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12068 | } | |
12069 | } | |
994141e6 | 12070 | if (obj4) { |
093d3ff1 | 12071 | { |
32fe5131 | 12072 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
12073 | if (SWIG_arg_fail(5)) SWIG_fail; |
12074 | } | |
994141e6 | 12075 | } |
d14a1e28 | 12076 | if (obj5) { |
093d3ff1 RD |
12077 | { |
12078 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
12079 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12080 | if (arg6 == NULL) { | |
12081 | SWIG_null_ref("wxValidator"); | |
12082 | } | |
12083 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
12084 | } |
12085 | } | |
12086 | if (obj6) { | |
12087 | { | |
12088 | arg7 = wxString_in_helper(obj6); | |
12089 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 12090 | temp7 = true; |
d14a1e28 RD |
12091 | } |
12092 | } | |
12093 | { | |
e3b71cb8 | 12094 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12096 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
12097 | ||
12098 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12099 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12100 | } |
15afbcd0 | 12101 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
12102 | { |
12103 | if (temp7) | |
12104 | delete arg7; | |
12105 | } | |
12106 | return resultobj; | |
12107 | fail: | |
12108 | { | |
12109 | if (temp7) | |
12110 | delete arg7; | |
12111 | } | |
12112 | return NULL; | |
12113 | } | |
12114 | ||
12115 | ||
c32bde28 | 12116 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12117 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12118 | wxScrollBar *result; |
12119 | char *kwnames[] = { | |
12120 | NULL | |
12121 | }; | |
12122 | ||
12123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
12124 | { | |
e3b71cb8 | 12125 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12127 | result = (wxScrollBar *)new wxScrollBar(); | |
12128 | ||
12129 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12130 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12131 | } |
15afbcd0 | 12132 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
12133 | return resultobj; |
12134 | fail: | |
12135 | return NULL; | |
12136 | } | |
12137 | ||
12138 | ||
c32bde28 | 12139 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12140 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12141 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12142 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12143 | int arg3 = (int) -1 ; |
d14a1e28 RD |
12144 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12145 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12146 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12147 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12148 | long arg6 = (long) wxSB_HORIZONTAL ; | |
12149 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12150 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12151 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
12152 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12153 | bool result; | |
12154 | wxPoint temp4 ; | |
12155 | wxSize temp5 ; | |
ae8162c8 | 12156 | bool temp8 = false ; |
d14a1e28 RD |
12157 | PyObject * obj0 = 0 ; |
12158 | PyObject * obj1 = 0 ; | |
994141e6 | 12159 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12160 | PyObject * obj3 = 0 ; |
12161 | PyObject * obj4 = 0 ; | |
994141e6 | 12162 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12163 | PyObject * obj6 = 0 ; |
12164 | PyObject * obj7 = 0 ; | |
12165 | char *kwnames[] = { | |
12166 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12167 | }; | |
12168 | ||
994141e6 | 12169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
12170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12172 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12173 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 12174 | if (obj2) { |
093d3ff1 | 12175 | { |
32fe5131 | 12176 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12177 | if (SWIG_arg_fail(3)) SWIG_fail; |
12178 | } | |
994141e6 | 12179 | } |
d14a1e28 RD |
12180 | if (obj3) { |
12181 | { | |
12182 | arg4 = &temp4; | |
12183 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12184 | } | |
12185 | } | |
12186 | if (obj4) { | |
12187 | { | |
12188 | arg5 = &temp5; | |
12189 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12190 | } | |
12191 | } | |
994141e6 | 12192 | if (obj5) { |
093d3ff1 | 12193 | { |
32fe5131 | 12194 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
12195 | if (SWIG_arg_fail(6)) SWIG_fail; |
12196 | } | |
994141e6 | 12197 | } |
d14a1e28 | 12198 | if (obj6) { |
093d3ff1 RD |
12199 | { |
12200 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
12201 | if (SWIG_arg_fail(7)) SWIG_fail; | |
12202 | if (arg7 == NULL) { | |
12203 | SWIG_null_ref("wxValidator"); | |
12204 | } | |
12205 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
12206 | } |
12207 | } | |
12208 | if (obj7) { | |
12209 | { | |
12210 | arg8 = wxString_in_helper(obj7); | |
12211 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 12212 | temp8 = true; |
d14a1e28 RD |
12213 | } |
12214 | } | |
12215 | { | |
12216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12217 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12218 | ||
12219 | wxPyEndAllowThreads(__tstate); | |
12220 | if (PyErr_Occurred()) SWIG_fail; | |
12221 | } | |
4f89f6a3 RD |
12222 | { |
12223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12224 | } | |
d14a1e28 RD |
12225 | { |
12226 | if (temp8) | |
12227 | delete arg8; | |
12228 | } | |
12229 | return resultobj; | |
12230 | fail: | |
12231 | { | |
12232 | if (temp8) | |
12233 | delete arg8; | |
12234 | } | |
12235 | return NULL; | |
12236 | } | |
12237 | ||
12238 | ||
c32bde28 | 12239 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12240 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12241 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12242 | int result; | |
12243 | PyObject * obj0 = 0 ; | |
12244 | char *kwnames[] = { | |
12245 | (char *) "self", NULL | |
12246 | }; | |
12247 | ||
12248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12251 | { |
12252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12253 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
12254 | ||
12255 | wxPyEndAllowThreads(__tstate); | |
12256 | if (PyErr_Occurred()) SWIG_fail; | |
12257 | } | |
093d3ff1 | 12258 | { |
32fe5131 | 12259 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12260 | } |
d14a1e28 RD |
12261 | return resultobj; |
12262 | fail: | |
12263 | return NULL; | |
12264 | } | |
12265 | ||
12266 | ||
c32bde28 | 12267 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12268 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12269 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12270 | int result; | |
12271 | PyObject * obj0 = 0 ; | |
12272 | char *kwnames[] = { | |
12273 | (char *) "self", NULL | |
12274 | }; | |
12275 | ||
12276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12279 | { |
12280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12281 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
12282 | ||
12283 | wxPyEndAllowThreads(__tstate); | |
12284 | if (PyErr_Occurred()) SWIG_fail; | |
12285 | } | |
093d3ff1 | 12286 | { |
32fe5131 | 12287 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12288 | } |
d14a1e28 RD |
12289 | return resultobj; |
12290 | fail: | |
12291 | return NULL; | |
12292 | } | |
12293 | ||
12294 | ||
c32bde28 | 12295 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12296 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12297 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12298 | int result; | |
12299 | PyObject * obj0 = 0 ; | |
12300 | char *kwnames[] = { | |
12301 | (char *) "self", NULL | |
12302 | }; | |
12303 | ||
12304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12307 | { |
12308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12309 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
093d3ff1 | 12314 | { |
32fe5131 | 12315 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12316 | } |
d14a1e28 RD |
12317 | return resultobj; |
12318 | fail: | |
12319 | return NULL; | |
12320 | } | |
12321 | ||
12322 | ||
c32bde28 | 12323 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12324 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12325 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12326 | int result; | |
12327 | PyObject * obj0 = 0 ; | |
12328 | char *kwnames[] = { | |
12329 | (char *) "self", NULL | |
12330 | }; | |
12331 | ||
12332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12333 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12334 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12335 | { |
12336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12337 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
12338 | ||
12339 | wxPyEndAllowThreads(__tstate); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | } | |
093d3ff1 | 12342 | { |
32fe5131 | 12343 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12344 | } |
d14a1e28 RD |
12345 | return resultobj; |
12346 | fail: | |
12347 | return NULL; | |
12348 | } | |
12349 | ||
12350 | ||
c32bde28 | 12351 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12352 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12353 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12354 | bool result; | |
12355 | PyObject * obj0 = 0 ; | |
12356 | char *kwnames[] = { | |
12357 | (char *) "self", NULL | |
12358 | }; | |
12359 | ||
12360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12363 | { |
12364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12365 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
12366 | ||
12367 | wxPyEndAllowThreads(__tstate); | |
12368 | if (PyErr_Occurred()) SWIG_fail; | |
12369 | } | |
4f89f6a3 RD |
12370 | { |
12371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12372 | } | |
d14a1e28 RD |
12373 | return resultobj; |
12374 | fail: | |
12375 | return NULL; | |
12376 | } | |
12377 | ||
12378 | ||
c32bde28 | 12379 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12380 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12381 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12382 | int arg2 ; | |
12383 | PyObject * obj0 = 0 ; | |
994141e6 | 12384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12385 | char *kwnames[] = { |
12386 | (char *) "self",(char *) "viewStart", NULL | |
12387 | }; | |
12388 | ||
994141e6 | 12389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12392 | { | |
32fe5131 | 12393 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12394 | if (SWIG_arg_fail(2)) SWIG_fail; |
12395 | } | |
d14a1e28 RD |
12396 | { |
12397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12398 | (arg1)->SetThumbPosition(arg2); | |
12399 | ||
12400 | wxPyEndAllowThreads(__tstate); | |
12401 | if (PyErr_Occurred()) SWIG_fail; | |
12402 | } | |
12403 | Py_INCREF(Py_None); resultobj = Py_None; | |
12404 | return resultobj; | |
12405 | fail: | |
12406 | return NULL; | |
12407 | } | |
12408 | ||
12409 | ||
c32bde28 | 12410 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12411 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12412 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12413 | int arg2 ; | |
12414 | int arg3 ; | |
12415 | int arg4 ; | |
12416 | int arg5 ; | |
ae8162c8 | 12417 | bool arg6 = (bool) true ; |
d14a1e28 | 12418 | PyObject * obj0 = 0 ; |
994141e6 RD |
12419 | PyObject * obj1 = 0 ; |
12420 | PyObject * obj2 = 0 ; | |
12421 | PyObject * obj3 = 0 ; | |
12422 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12423 | PyObject * obj5 = 0 ; |
12424 | char *kwnames[] = { | |
12425 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
12426 | }; | |
12427 | ||
994141e6 | 12428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
12429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12431 | { | |
32fe5131 | 12432 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12433 | if (SWIG_arg_fail(2)) SWIG_fail; |
12434 | } | |
12435 | { | |
32fe5131 | 12436 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12437 | if (SWIG_arg_fail(3)) SWIG_fail; |
12438 | } | |
12439 | { | |
32fe5131 | 12440 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
12441 | if (SWIG_arg_fail(4)) SWIG_fail; |
12442 | } | |
12443 | { | |
32fe5131 | 12444 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
12445 | if (SWIG_arg_fail(5)) SWIG_fail; |
12446 | } | |
d14a1e28 | 12447 | if (obj5) { |
093d3ff1 | 12448 | { |
32fe5131 | 12449 | arg6 = static_cast<bool >(SWIG_As_bool(obj5)); |
093d3ff1 RD |
12450 | if (SWIG_arg_fail(6)) SWIG_fail; |
12451 | } | |
d14a1e28 RD |
12452 | } |
12453 | { | |
12454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12455 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
12456 | ||
12457 | wxPyEndAllowThreads(__tstate); | |
12458 | if (PyErr_Occurred()) SWIG_fail; | |
12459 | } | |
12460 | Py_INCREF(Py_None); resultobj = Py_None; | |
12461 | return resultobj; | |
12462 | fail: | |
12463 | return NULL; | |
12464 | } | |
12465 | ||
12466 | ||
c32bde28 | 12467 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12468 | PyObject *resultobj = NULL; |
093d3ff1 | 12469 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
12470 | wxVisualAttributes result; |
12471 | PyObject * obj0 = 0 ; | |
12472 | char *kwnames[] = { | |
12473 | (char *) "variant", NULL | |
12474 | }; | |
12475 | ||
12476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12477 | if (obj0) { | |
093d3ff1 | 12478 | { |
32fe5131 | 12479 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
12480 | if (SWIG_arg_fail(1)) SWIG_fail; |
12481 | } | |
22bfe96c RD |
12482 | } |
12483 | { | |
110da5b0 | 12484 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 12485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 12486 | result = wxScrollBar::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
12487 | |
12488 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12489 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12490 | } |
12491 | { | |
12492 | wxVisualAttributes * resultptr; | |
32fe5131 | 12493 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
12494 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
12495 | } | |
12496 | return resultobj; | |
12497 | fail: | |
12498 | return NULL; | |
12499 | } | |
12500 | ||
12501 | ||
c32bde28 | 12502 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12503 | PyObject *obj; |
12504 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12505 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
12506 | Py_INCREF(obj); | |
12507 | return Py_BuildValue((char *)""); | |
12508 | } | |
c32bde28 | 12509 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
b2dc1044 RD |
12510 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
12511 | return 1; | |
12512 | } | |
12513 | ||
12514 | ||
093d3ff1 | 12515 | static PyObject *_wrap_SPIN_BUTTON_NAME_get(void) { |
32fe5131 | 12516 | PyObject *pyobj = NULL; |
b2dc1044 RD |
12517 | |
12518 | { | |
12519 | #if wxUSE_UNICODE | |
12520 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12521 | #else | |
12522 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12523 | #endif | |
12524 | } | |
12525 | return pyobj; | |
12526 | } | |
12527 | ||
12528 | ||
c32bde28 | 12529 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
12530 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
12531 | return 1; | |
12532 | } | |
12533 | ||
12534 | ||
093d3ff1 | 12535 | static PyObject *_wrap_SpinCtrlNameStr_get(void) { |
32fe5131 | 12536 | PyObject *pyobj = NULL; |
b2dc1044 RD |
12537 | |
12538 | { | |
12539 | #if wxUSE_UNICODE | |
12540 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12541 | #else | |
12542 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12543 | #endif | |
12544 | } | |
12545 | return pyobj; | |
12546 | } | |
12547 | ||
12548 | ||
c32bde28 | 12549 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12550 | PyObject *resultobj = NULL; |
d14a1e28 | 12551 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 12552 | int arg2 = (int) -1 ; |
d14a1e28 RD |
12553 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12554 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12555 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12556 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12557 | long arg5 = (long) wxSP_HORIZONTAL ; | |
12558 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
12559 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12560 | wxSpinButton *result; | |
12561 | wxPoint temp3 ; | |
12562 | wxSize temp4 ; | |
ae8162c8 | 12563 | bool temp6 = false ; |
d14a1e28 | 12564 | PyObject * obj0 = 0 ; |
994141e6 | 12565 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12566 | PyObject * obj2 = 0 ; |
12567 | PyObject * obj3 = 0 ; | |
994141e6 | 12568 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
12569 | PyObject * obj5 = 0 ; |
12570 | char *kwnames[] = { | |
12571 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12572 | }; | |
12573 | ||
994141e6 | 12574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
12575 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12576 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 12577 | if (obj1) { |
093d3ff1 | 12578 | { |
32fe5131 | 12579 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12580 | if (SWIG_arg_fail(2)) SWIG_fail; |
12581 | } | |
994141e6 | 12582 | } |
d14a1e28 RD |
12583 | if (obj2) { |
12584 | { | |
12585 | arg3 = &temp3; | |
12586 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12587 | } | |
12588 | } | |
12589 | if (obj3) { | |
12590 | { | |
12591 | arg4 = &temp4; | |
12592 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12593 | } | |
12594 | } | |
994141e6 | 12595 | if (obj4) { |
093d3ff1 | 12596 | { |
32fe5131 | 12597 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
12598 | if (SWIG_arg_fail(5)) SWIG_fail; |
12599 | } | |
994141e6 | 12600 | } |
d14a1e28 RD |
12601 | if (obj5) { |
12602 | { | |
12603 | arg6 = wxString_in_helper(obj5); | |
12604 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 12605 | temp6 = true; |
d14a1e28 RD |
12606 | } |
12607 | } | |
12608 | { | |
e3b71cb8 | 12609 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12611 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12612 | ||
12613 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12614 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12615 | } |
15afbcd0 | 12616 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
12617 | { |
12618 | if (temp6) | |
12619 | delete arg6; | |
12620 | } | |
12621 | return resultobj; | |
12622 | fail: | |
12623 | { | |
12624 | if (temp6) | |
12625 | delete arg6; | |
12626 | } | |
12627 | return NULL; | |
12628 | } | |
12629 | ||
12630 | ||
c32bde28 | 12631 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12632 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12633 | wxSpinButton *result; |
12634 | char *kwnames[] = { | |
12635 | NULL | |
12636 | }; | |
12637 | ||
12638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
12639 | { | |
e3b71cb8 | 12640 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12642 | result = (wxSpinButton *)new wxSpinButton(); | |
12643 | ||
12644 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12645 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12646 | } |
15afbcd0 | 12647 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
12648 | return resultobj; |
12649 | fail: | |
12650 | return NULL; | |
12651 | } | |
12652 | ||
12653 | ||
c32bde28 | 12654 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12655 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12656 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12657 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12658 | int arg3 = (int) -1 ; |
d14a1e28 RD |
12659 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12660 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12661 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12662 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12663 | long arg6 = (long) wxSP_HORIZONTAL ; | |
12664 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
12665 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12666 | bool result; | |
12667 | wxPoint temp4 ; | |
12668 | wxSize temp5 ; | |
ae8162c8 | 12669 | bool temp7 = false ; |
d14a1e28 RD |
12670 | PyObject * obj0 = 0 ; |
12671 | PyObject * obj1 = 0 ; | |
994141e6 | 12672 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12673 | PyObject * obj3 = 0 ; |
12674 | PyObject * obj4 = 0 ; | |
994141e6 | 12675 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12676 | PyObject * obj6 = 0 ; |
12677 | char *kwnames[] = { | |
12678 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12679 | }; | |
12680 | ||
994141e6 | 12681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
12682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12684 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12685 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 12686 | if (obj2) { |
093d3ff1 | 12687 | { |
32fe5131 | 12688 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12689 | if (SWIG_arg_fail(3)) SWIG_fail; |
12690 | } | |
994141e6 | 12691 | } |
d14a1e28 RD |
12692 | if (obj3) { |
12693 | { | |
12694 | arg4 = &temp4; | |
12695 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12696 | } | |
12697 | } | |
12698 | if (obj4) { | |
12699 | { | |
12700 | arg5 = &temp5; | |
12701 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12702 | } | |
12703 | } | |
994141e6 | 12704 | if (obj5) { |
093d3ff1 | 12705 | { |
32fe5131 | 12706 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
12707 | if (SWIG_arg_fail(6)) SWIG_fail; |
12708 | } | |
994141e6 | 12709 | } |
d14a1e28 RD |
12710 | if (obj6) { |
12711 | { | |
12712 | arg7 = wxString_in_helper(obj6); | |
12713 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 12714 | temp7 = true; |
d14a1e28 RD |
12715 | } |
12716 | } | |
12717 | { | |
12718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12719 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12720 | ||
12721 | wxPyEndAllowThreads(__tstate); | |
12722 | if (PyErr_Occurred()) SWIG_fail; | |
12723 | } | |
4f89f6a3 RD |
12724 | { |
12725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12726 | } | |
d14a1e28 RD |
12727 | { |
12728 | if (temp7) | |
12729 | delete arg7; | |
12730 | } | |
12731 | return resultobj; | |
12732 | fail: | |
12733 | { | |
12734 | if (temp7) | |
12735 | delete arg7; | |
12736 | } | |
12737 | return NULL; | |
12738 | } | |
12739 | ||
12740 | ||
c32bde28 | 12741 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12742 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12743 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12744 | int result; | |
12745 | PyObject * obj0 = 0 ; | |
12746 | char *kwnames[] = { | |
12747 | (char *) "self", NULL | |
12748 | }; | |
12749 | ||
12750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12753 | { |
12754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12755 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
12756 | ||
12757 | wxPyEndAllowThreads(__tstate); | |
12758 | if (PyErr_Occurred()) SWIG_fail; | |
12759 | } | |
093d3ff1 | 12760 | { |
32fe5131 | 12761 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12762 | } |
d14a1e28 RD |
12763 | return resultobj; |
12764 | fail: | |
12765 | return NULL; | |
12766 | } | |
12767 | ||
12768 | ||
c32bde28 | 12769 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12770 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12771 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12772 | int result; | |
12773 | PyObject * obj0 = 0 ; | |
12774 | char *kwnames[] = { | |
12775 | (char *) "self", NULL | |
12776 | }; | |
12777 | ||
12778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12781 | { |
12782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12783 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
12784 | ||
12785 | wxPyEndAllowThreads(__tstate); | |
12786 | if (PyErr_Occurred()) SWIG_fail; | |
12787 | } | |
093d3ff1 | 12788 | { |
32fe5131 | 12789 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12790 | } |
d14a1e28 RD |
12791 | return resultobj; |
12792 | fail: | |
12793 | return NULL; | |
12794 | } | |
12795 | ||
12796 | ||
c32bde28 | 12797 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12798 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12799 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12800 | int result; | |
12801 | PyObject * obj0 = 0 ; | |
12802 | char *kwnames[] = { | |
12803 | (char *) "self", NULL | |
12804 | }; | |
12805 | ||
12806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12809 | { |
12810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12811 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
12812 | ||
12813 | wxPyEndAllowThreads(__tstate); | |
12814 | if (PyErr_Occurred()) SWIG_fail; | |
12815 | } | |
093d3ff1 | 12816 | { |
32fe5131 | 12817 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12818 | } |
d14a1e28 RD |
12819 | return resultobj; |
12820 | fail: | |
12821 | return NULL; | |
12822 | } | |
12823 | ||
12824 | ||
c32bde28 | 12825 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12826 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12827 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12828 | int arg2 ; | |
12829 | PyObject * obj0 = 0 ; | |
994141e6 | 12830 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12831 | char *kwnames[] = { |
12832 | (char *) "self",(char *) "val", NULL | |
12833 | }; | |
12834 | ||
994141e6 | 12835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12838 | { | |
32fe5131 | 12839 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12840 | if (SWIG_arg_fail(2)) SWIG_fail; |
12841 | } | |
d14a1e28 RD |
12842 | { |
12843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12844 | (arg1)->SetValue(arg2); | |
12845 | ||
12846 | wxPyEndAllowThreads(__tstate); | |
12847 | if (PyErr_Occurred()) SWIG_fail; | |
12848 | } | |
12849 | Py_INCREF(Py_None); resultobj = Py_None; | |
12850 | return resultobj; | |
12851 | fail: | |
12852 | return NULL; | |
12853 | } | |
12854 | ||
12855 | ||
c32bde28 | 12856 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12857 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12858 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12859 | int arg2 ; | |
12860 | PyObject * obj0 = 0 ; | |
994141e6 | 12861 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12862 | char *kwnames[] = { |
12863 | (char *) "self",(char *) "minVal", NULL | |
12864 | }; | |
12865 | ||
994141e6 | 12866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12867 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12869 | { | |
32fe5131 | 12870 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12871 | if (SWIG_arg_fail(2)) SWIG_fail; |
12872 | } | |
d14a1e28 RD |
12873 | { |
12874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12875 | (arg1)->SetMin(arg2); | |
12876 | ||
12877 | wxPyEndAllowThreads(__tstate); | |
12878 | if (PyErr_Occurred()) SWIG_fail; | |
12879 | } | |
12880 | Py_INCREF(Py_None); resultobj = Py_None; | |
12881 | return resultobj; | |
12882 | fail: | |
12883 | return NULL; | |
12884 | } | |
12885 | ||
12886 | ||
c32bde28 | 12887 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12888 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12889 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12890 | int arg2 ; | |
12891 | PyObject * obj0 = 0 ; | |
994141e6 | 12892 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12893 | char *kwnames[] = { |
12894 | (char *) "self",(char *) "maxVal", NULL | |
12895 | }; | |
12896 | ||
994141e6 | 12897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12898 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12899 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12900 | { | |
32fe5131 | 12901 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12902 | if (SWIG_arg_fail(2)) SWIG_fail; |
12903 | } | |
d14a1e28 RD |
12904 | { |
12905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12906 | (arg1)->SetMax(arg2); | |
12907 | ||
12908 | wxPyEndAllowThreads(__tstate); | |
12909 | if (PyErr_Occurred()) SWIG_fail; | |
12910 | } | |
12911 | Py_INCREF(Py_None); resultobj = Py_None; | |
12912 | return resultobj; | |
12913 | fail: | |
12914 | return NULL; | |
12915 | } | |
12916 | ||
12917 | ||
c32bde28 | 12918 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12919 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12920 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12921 | int arg2 ; | |
12922 | int arg3 ; | |
12923 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12924 | PyObject * obj1 = 0 ; |
12925 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12926 | char *kwnames[] = { |
12927 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
12928 | }; | |
12929 | ||
994141e6 | 12930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
12931 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12932 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12933 | { | |
32fe5131 | 12934 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12935 | if (SWIG_arg_fail(2)) SWIG_fail; |
12936 | } | |
12937 | { | |
32fe5131 | 12938 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12939 | if (SWIG_arg_fail(3)) SWIG_fail; |
12940 | } | |
994141e6 | 12941 | { |
15afbcd0 RD |
12942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12943 | (arg1)->SetRange(arg2,arg3); | |
12944 | ||
12945 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
12946 | if (PyErr_Occurred()) SWIG_fail; |
12947 | } | |
22bfe96c RD |
12948 | Py_INCREF(Py_None); resultobj = Py_None; |
12949 | return resultobj; | |
12950 | fail: | |
12951 | return NULL; | |
12952 | } | |
12953 | ||
12954 | ||
c32bde28 | 12955 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12956 | PyObject *resultobj = NULL; |
22bfe96c RD |
12957 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12958 | bool result; | |
12959 | PyObject * obj0 = 0 ; | |
12960 | char *kwnames[] = { | |
12961 | (char *) "self", NULL | |
12962 | }; | |
12963 | ||
12964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12965 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22bfe96c RD |
12967 | { |
12968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12969 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
12970 | ||
12971 | wxPyEndAllowThreads(__tstate); | |
12972 | if (PyErr_Occurred()) SWIG_fail; | |
12973 | } | |
12974 | { | |
12975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12976 | } | |
d14a1e28 RD |
12977 | return resultobj; |
12978 | fail: | |
12979 | return NULL; | |
12980 | } | |
12981 | ||
12982 | ||
c32bde28 | 12983 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12984 | PyObject *resultobj = NULL; |
093d3ff1 | 12985 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c | 12986 | wxVisualAttributes result; |
d14a1e28 RD |
12987 | PyObject * obj0 = 0 ; |
12988 | char *kwnames[] = { | |
22bfe96c | 12989 | (char *) "variant", NULL |
d14a1e28 RD |
12990 | }; |
12991 | ||
22bfe96c RD |
12992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
12993 | if (obj0) { | |
093d3ff1 | 12994 | { |
32fe5131 | 12995 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
12996 | if (SWIG_arg_fail(1)) SWIG_fail; |
12997 | } | |
22bfe96c | 12998 | } |
d14a1e28 | 12999 | { |
110da5b0 | 13000 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 13001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 13002 | result = wxSpinButton::GetClassDefaultAttributes(arg1); |
d14a1e28 RD |
13003 | |
13004 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 13005 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13006 | } |
4f89f6a3 | 13007 | { |
22bfe96c | 13008 | wxVisualAttributes * resultptr; |
32fe5131 | 13009 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c | 13010 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
4f89f6a3 | 13011 | } |
d14a1e28 RD |
13012 | return resultobj; |
13013 | fail: | |
13014 | return NULL; | |
13015 | } | |
13016 | ||
13017 | ||
c32bde28 | 13018 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13019 | PyObject *obj; |
13020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13021 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
13022 | Py_INCREF(obj); | |
13023 | return Py_BuildValue((char *)""); | |
13024 | } | |
c32bde28 | 13025 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13026 | PyObject *resultobj = NULL; |
d14a1e28 | 13027 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 13028 | int arg2 = (int) -1 ; |
d14a1e28 RD |
13029 | wxString const &arg3_defvalue = wxPyEmptyString ; |
13030 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13031 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13032 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13033 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13034 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13035 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
13036 | int arg7 = (int) 0 ; | |
13037 | int arg8 = (int) 100 ; | |
13038 | int arg9 = (int) 0 ; | |
13039 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
13040 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
13041 | wxSpinCtrl *result; | |
ae8162c8 | 13042 | bool temp3 = false ; |
d14a1e28 RD |
13043 | wxPoint temp4 ; |
13044 | wxSize temp5 ; | |
ae8162c8 | 13045 | bool temp10 = false ; |
d14a1e28 | 13046 | PyObject * obj0 = 0 ; |
994141e6 | 13047 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13048 | PyObject * obj2 = 0 ; |
13049 | PyObject * obj3 = 0 ; | |
13050 | PyObject * obj4 = 0 ; | |
994141e6 RD |
13051 | PyObject * obj5 = 0 ; |
13052 | PyObject * obj6 = 0 ; | |
13053 | PyObject * obj7 = 0 ; | |
13054 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
13055 | PyObject * obj9 = 0 ; |
13056 | char *kwnames[] = { | |
13057 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
13058 | }; | |
13059 | ||
994141e6 | 13060 | 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 |
13061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
13062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 13063 | if (obj1) { |
093d3ff1 | 13064 | { |
32fe5131 | 13065 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13066 | if (SWIG_arg_fail(2)) SWIG_fail; |
13067 | } | |
994141e6 RD |
13068 | } |
13069 | if (obj2) { | |
d14a1e28 RD |
13070 | { |
13071 | arg3 = wxString_in_helper(obj2); | |
13072 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13073 | temp3 = true; |
d14a1e28 RD |
13074 | } |
13075 | } | |
13076 | if (obj3) { | |
13077 | { | |
13078 | arg4 = &temp4; | |
13079 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13080 | } | |
13081 | } | |
13082 | if (obj4) { | |
13083 | { | |
13084 | arg5 = &temp5; | |
13085 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13086 | } | |
13087 | } | |
994141e6 | 13088 | if (obj5) { |
093d3ff1 | 13089 | { |
32fe5131 | 13090 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
13091 | if (SWIG_arg_fail(6)) SWIG_fail; |
13092 | } | |
994141e6 RD |
13093 | } |
13094 | if (obj6) { | |
093d3ff1 | 13095 | { |
32fe5131 | 13096 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
093d3ff1 RD |
13097 | if (SWIG_arg_fail(7)) SWIG_fail; |
13098 | } | |
994141e6 RD |
13099 | } |
13100 | if (obj7) { | |
093d3ff1 | 13101 | { |
32fe5131 | 13102 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
13103 | if (SWIG_arg_fail(8)) SWIG_fail; |
13104 | } | |
994141e6 RD |
13105 | } |
13106 | if (obj8) { | |
093d3ff1 | 13107 | { |
32fe5131 | 13108 | arg9 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
13109 | if (SWIG_arg_fail(9)) SWIG_fail; |
13110 | } | |
994141e6 | 13111 | } |
d14a1e28 RD |
13112 | if (obj9) { |
13113 | { | |
13114 | arg10 = wxString_in_helper(obj9); | |
13115 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 13116 | temp10 = true; |
d14a1e28 RD |
13117 | } |
13118 | } | |
13119 | { | |
e3b71cb8 | 13120 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13122 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
13123 | ||
13124 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13125 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13126 | } |
15afbcd0 | 13127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
13128 | { |
13129 | if (temp3) | |
13130 | delete arg3; | |
13131 | } | |
13132 | { | |
13133 | if (temp10) | |
13134 | delete arg10; | |
13135 | } | |
13136 | return resultobj; | |
13137 | fail: | |
13138 | { | |
13139 | if (temp3) | |
13140 | delete arg3; | |
13141 | } | |
13142 | { | |
13143 | if (temp10) | |
13144 | delete arg10; | |
13145 | } | |
13146 | return NULL; | |
13147 | } | |
13148 | ||
13149 | ||
c32bde28 | 13150 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13151 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13152 | wxSpinCtrl *result; |
13153 | char *kwnames[] = { | |
13154 | NULL | |
13155 | }; | |
13156 | ||
13157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
13158 | { | |
e3b71cb8 | 13159 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13161 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
13162 | ||
13163 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13164 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13165 | } |
15afbcd0 | 13166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
13167 | return resultobj; |
13168 | fail: | |
13169 | return NULL; | |
13170 | } | |
13171 | ||
13172 | ||
c32bde28 | 13173 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13174 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13175 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13176 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 13177 | int arg3 = (int) -1 ; |
d14a1e28 RD |
13178 | wxString const &arg4_defvalue = wxPyEmptyString ; |
13179 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13180 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13181 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13182 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13183 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13184 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
13185 | int arg8 = (int) 0 ; | |
13186 | int arg9 = (int) 100 ; | |
13187 | int arg10 = (int) 0 ; | |
13188 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
13189 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13190 | bool result; | |
ae8162c8 | 13191 | bool temp4 = false ; |
d14a1e28 RD |
13192 | wxPoint temp5 ; |
13193 | wxSize temp6 ; | |
ae8162c8 | 13194 | bool temp11 = false ; |
d14a1e28 RD |
13195 | PyObject * obj0 = 0 ; |
13196 | PyObject * obj1 = 0 ; | |
994141e6 | 13197 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13198 | PyObject * obj3 = 0 ; |
13199 | PyObject * obj4 = 0 ; | |
13200 | PyObject * obj5 = 0 ; | |
994141e6 RD |
13201 | PyObject * obj6 = 0 ; |
13202 | PyObject * obj7 = 0 ; | |
13203 | PyObject * obj8 = 0 ; | |
13204 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
13205 | PyObject * obj10 = 0 ; |
13206 | char *kwnames[] = { | |
13207 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
13208 | }; | |
13209 | ||
994141e6 | 13210 | 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 |
13211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13213 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13214 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 13215 | if (obj2) { |
093d3ff1 | 13216 | { |
32fe5131 | 13217 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13218 | if (SWIG_arg_fail(3)) SWIG_fail; |
13219 | } | |
994141e6 | 13220 | } |
d14a1e28 RD |
13221 | if (obj3) { |
13222 | { | |
13223 | arg4 = wxString_in_helper(obj3); | |
13224 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13225 | temp4 = true; |
d14a1e28 RD |
13226 | } |
13227 | } | |
13228 | if (obj4) { | |
13229 | { | |
13230 | arg5 = &temp5; | |
13231 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13232 | } | |
13233 | } | |
13234 | if (obj5) { | |
13235 | { | |
13236 | arg6 = &temp6; | |
13237 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13238 | } | |
13239 | } | |
994141e6 | 13240 | if (obj6) { |
093d3ff1 | 13241 | { |
32fe5131 | 13242 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
13243 | if (SWIG_arg_fail(7)) SWIG_fail; |
13244 | } | |
994141e6 RD |
13245 | } |
13246 | if (obj7) { | |
093d3ff1 | 13247 | { |
32fe5131 | 13248 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
13249 | if (SWIG_arg_fail(8)) SWIG_fail; |
13250 | } | |
994141e6 RD |
13251 | } |
13252 | if (obj8) { | |
093d3ff1 | 13253 | { |
32fe5131 | 13254 | arg9 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
13255 | if (SWIG_arg_fail(9)) SWIG_fail; |
13256 | } | |
994141e6 RD |
13257 | } |
13258 | if (obj9) { | |
093d3ff1 | 13259 | { |
32fe5131 | 13260 | arg10 = static_cast<int >(SWIG_As_int(obj9)); |
093d3ff1 RD |
13261 | if (SWIG_arg_fail(10)) SWIG_fail; |
13262 | } | |
994141e6 | 13263 | } |
d14a1e28 RD |
13264 | if (obj10) { |
13265 | { | |
13266 | arg11 = wxString_in_helper(obj10); | |
13267 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 13268 | temp11 = true; |
d14a1e28 RD |
13269 | } |
13270 | } | |
13271 | { | |
13272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13273 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
13274 | ||
13275 | wxPyEndAllowThreads(__tstate); | |
13276 | if (PyErr_Occurred()) SWIG_fail; | |
13277 | } | |
4f89f6a3 RD |
13278 | { |
13279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13280 | } | |
d14a1e28 RD |
13281 | { |
13282 | if (temp4) | |
13283 | delete arg4; | |
13284 | } | |
13285 | { | |
13286 | if (temp11) | |
13287 | delete arg11; | |
13288 | } | |
13289 | return resultobj; | |
13290 | fail: | |
13291 | { | |
13292 | if (temp4) | |
13293 | delete arg4; | |
13294 | } | |
13295 | { | |
13296 | if (temp11) | |
13297 | delete arg11; | |
13298 | } | |
13299 | return NULL; | |
13300 | } | |
13301 | ||
13302 | ||
c32bde28 | 13303 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13304 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13305 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13306 | int result; | |
13307 | PyObject * obj0 = 0 ; | |
13308 | char *kwnames[] = { | |
13309 | (char *) "self", NULL | |
13310 | }; | |
13311 | ||
13312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13315 | { |
13316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13317 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
13318 | ||
13319 | wxPyEndAllowThreads(__tstate); | |
13320 | if (PyErr_Occurred()) SWIG_fail; | |
13321 | } | |
093d3ff1 | 13322 | { |
32fe5131 | 13323 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13324 | } |
d14a1e28 RD |
13325 | return resultobj; |
13326 | fail: | |
13327 | return NULL; | |
13328 | } | |
13329 | ||
13330 | ||
c32bde28 | 13331 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13332 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13333 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13334 | int arg2 ; | |
13335 | PyObject * obj0 = 0 ; | |
994141e6 | 13336 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13337 | char *kwnames[] = { |
13338 | (char *) "self",(char *) "value", NULL | |
13339 | }; | |
13340 | ||
994141e6 | 13341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13344 | { | |
32fe5131 | 13345 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13346 | if (SWIG_arg_fail(2)) SWIG_fail; |
13347 | } | |
d14a1e28 RD |
13348 | { |
13349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13350 | (arg1)->SetValue(arg2); | |
13351 | ||
13352 | wxPyEndAllowThreads(__tstate); | |
13353 | if (PyErr_Occurred()) SWIG_fail; | |
13354 | } | |
13355 | Py_INCREF(Py_None); resultobj = Py_None; | |
13356 | return resultobj; | |
13357 | fail: | |
13358 | return NULL; | |
13359 | } | |
13360 | ||
13361 | ||
c32bde28 | 13362 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13363 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13364 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13365 | wxString *arg2 = 0 ; | |
ae8162c8 | 13366 | bool temp2 = false ; |
d14a1e28 RD |
13367 | PyObject * obj0 = 0 ; |
13368 | PyObject * obj1 = 0 ; | |
13369 | char *kwnames[] = { | |
13370 | (char *) "self",(char *) "text", NULL | |
13371 | }; | |
13372 | ||
13373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13376 | { |
13377 | arg2 = wxString_in_helper(obj1); | |
13378 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13379 | temp2 = true; |
d14a1e28 RD |
13380 | } |
13381 | { | |
13382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13383 | (arg1)->SetValue((wxString const &)*arg2); | |
13384 | ||
13385 | wxPyEndAllowThreads(__tstate); | |
13386 | if (PyErr_Occurred()) SWIG_fail; | |
13387 | } | |
13388 | Py_INCREF(Py_None); resultobj = Py_None; | |
13389 | { | |
13390 | if (temp2) | |
13391 | delete arg2; | |
13392 | } | |
13393 | return resultobj; | |
13394 | fail: | |
13395 | { | |
13396 | if (temp2) | |
13397 | delete arg2; | |
13398 | } | |
13399 | return NULL; | |
13400 | } | |
13401 | ||
13402 | ||
c32bde28 | 13403 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13404 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13405 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13406 | int arg2 ; | |
13407 | int arg3 ; | |
13408 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13409 | PyObject * obj1 = 0 ; |
13410 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13411 | char *kwnames[] = { |
13412 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
13413 | }; | |
13414 | ||
994141e6 | 13415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
13416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13418 | { | |
32fe5131 | 13419 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13420 | if (SWIG_arg_fail(2)) SWIG_fail; |
13421 | } | |
13422 | { | |
32fe5131 | 13423 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13424 | if (SWIG_arg_fail(3)) SWIG_fail; |
13425 | } | |
d14a1e28 RD |
13426 | { |
13427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13428 | (arg1)->SetRange(arg2,arg3); | |
13429 | ||
13430 | wxPyEndAllowThreads(__tstate); | |
13431 | if (PyErr_Occurred()) SWIG_fail; | |
13432 | } | |
13433 | Py_INCREF(Py_None); resultobj = Py_None; | |
13434 | return resultobj; | |
13435 | fail: | |
13436 | return NULL; | |
13437 | } | |
13438 | ||
13439 | ||
c32bde28 | 13440 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13441 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13442 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13443 | int result; | |
13444 | PyObject * obj0 = 0 ; | |
13445 | char *kwnames[] = { | |
13446 | (char *) "self", NULL | |
13447 | }; | |
13448 | ||
13449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13452 | { |
13453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13454 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
13455 | ||
13456 | wxPyEndAllowThreads(__tstate); | |
13457 | if (PyErr_Occurred()) SWIG_fail; | |
13458 | } | |
093d3ff1 | 13459 | { |
32fe5131 | 13460 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13461 | } |
d14a1e28 RD |
13462 | return resultobj; |
13463 | fail: | |
13464 | return NULL; | |
13465 | } | |
13466 | ||
13467 | ||
c32bde28 | 13468 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13469 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13470 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13471 | int result; | |
13472 | PyObject * obj0 = 0 ; | |
13473 | char *kwnames[] = { | |
13474 | (char *) "self", NULL | |
13475 | }; | |
13476 | ||
13477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13478 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13479 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13480 | { |
13481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13482 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
13483 | ||
13484 | wxPyEndAllowThreads(__tstate); | |
13485 | if (PyErr_Occurred()) SWIG_fail; | |
13486 | } | |
093d3ff1 | 13487 | { |
32fe5131 | 13488 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13489 | } |
d14a1e28 RD |
13490 | return resultobj; |
13491 | fail: | |
13492 | return NULL; | |
13493 | } | |
13494 | ||
13495 | ||
c32bde28 | 13496 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13497 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13498 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13499 | long arg2 ; | |
13500 | long arg3 ; | |
13501 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13502 | PyObject * obj1 = 0 ; |
13503 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13504 | char *kwnames[] = { |
13505 | (char *) "self",(char *) "from",(char *) "to", NULL | |
13506 | }; | |
13507 | ||
994141e6 | 13508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
13509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13511 | { | |
32fe5131 | 13512 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
13513 | if (SWIG_arg_fail(2)) SWIG_fail; |
13514 | } | |
13515 | { | |
32fe5131 | 13516 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
13517 | if (SWIG_arg_fail(3)) SWIG_fail; |
13518 | } | |
d14a1e28 RD |
13519 | { |
13520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 13521 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
13522 | |
13523 | wxPyEndAllowThreads(__tstate); | |
13524 | if (PyErr_Occurred()) SWIG_fail; | |
13525 | } | |
13526 | Py_INCREF(Py_None); resultobj = Py_None; | |
13527 | return resultobj; | |
13528 | fail: | |
13529 | return NULL; | |
13530 | } | |
13531 | ||
13532 | ||
c32bde28 | 13533 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13534 | PyObject *resultobj = NULL; |
093d3ff1 | 13535 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
13536 | wxVisualAttributes result; |
13537 | PyObject * obj0 = 0 ; | |
13538 | char *kwnames[] = { | |
13539 | (char *) "variant", NULL | |
13540 | }; | |
13541 | ||
13542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13543 | if (obj0) { | |
093d3ff1 | 13544 | { |
32fe5131 | 13545 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
13546 | if (SWIG_arg_fail(1)) SWIG_fail; |
13547 | } | |
22bfe96c RD |
13548 | } |
13549 | { | |
110da5b0 | 13550 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 13551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 13552 | result = wxSpinCtrl::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
13553 | |
13554 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 13555 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
13556 | } |
13557 | { | |
13558 | wxVisualAttributes * resultptr; | |
32fe5131 | 13559 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
13560 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
13561 | } | |
13562 | return resultobj; | |
13563 | fail: | |
13564 | return NULL; | |
13565 | } | |
13566 | ||
13567 | ||
c32bde28 | 13568 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13569 | PyObject *obj; |
13570 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13571 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
13572 | Py_INCREF(obj); | |
13573 | return Py_BuildValue((char *)""); | |
13574 | } | |
c32bde28 | 13575 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13576 | PyObject *resultobj = NULL; |
d1e20054 RD |
13577 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
13578 | int arg2 = (int) 0 ; | |
13579 | wxSpinEvent *result; | |
994141e6 RD |
13580 | PyObject * obj0 = 0 ; |
13581 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
13582 | char *kwnames[] = { |
13583 | (char *) "commandType",(char *) "winid", NULL | |
13584 | }; | |
13585 | ||
994141e6 RD |
13586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
13587 | if (obj0) { | |
093d3ff1 | 13588 | { |
32fe5131 | 13589 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
13590 | if (SWIG_arg_fail(1)) SWIG_fail; |
13591 | } | |
994141e6 RD |
13592 | } |
13593 | if (obj1) { | |
093d3ff1 | 13594 | { |
32fe5131 | 13595 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13596 | if (SWIG_arg_fail(2)) SWIG_fail; |
13597 | } | |
994141e6 | 13598 | } |
d1e20054 RD |
13599 | { |
13600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13601 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
13602 | ||
13603 | wxPyEndAllowThreads(__tstate); | |
13604 | if (PyErr_Occurred()) SWIG_fail; | |
13605 | } | |
15afbcd0 | 13606 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
d1e20054 RD |
13607 | return resultobj; |
13608 | fail: | |
13609 | return NULL; | |
13610 | } | |
13611 | ||
13612 | ||
c32bde28 | 13613 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13614 | PyObject *resultobj = NULL; |
d1e20054 RD |
13615 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; |
13616 | int result; | |
13617 | PyObject * obj0 = 0 ; | |
13618 | char *kwnames[] = { | |
13619 | (char *) "self", NULL | |
13620 | }; | |
13621 | ||
13622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13623 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13624 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d1e20054 RD |
13625 | { |
13626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13627 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
13628 | ||
13629 | wxPyEndAllowThreads(__tstate); | |
13630 | if (PyErr_Occurred()) SWIG_fail; | |
13631 | } | |
093d3ff1 | 13632 | { |
32fe5131 | 13633 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13634 | } |
d1e20054 RD |
13635 | return resultobj; |
13636 | fail: | |
13637 | return NULL; | |
13638 | } | |
13639 | ||
13640 | ||
c32bde28 | 13641 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13642 | PyObject *resultobj = NULL; |
d1e20054 RD |
13643 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; |
13644 | int arg2 ; | |
13645 | PyObject * obj0 = 0 ; | |
994141e6 | 13646 | PyObject * obj1 = 0 ; |
d1e20054 RD |
13647 | char *kwnames[] = { |
13648 | (char *) "self",(char *) "pos", NULL | |
13649 | }; | |
13650 | ||
994141e6 | 13651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13654 | { | |
32fe5131 | 13655 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13656 | if (SWIG_arg_fail(2)) SWIG_fail; |
13657 | } | |
d1e20054 RD |
13658 | { |
13659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13660 | (arg1)->SetPosition(arg2); | |
13661 | ||
13662 | wxPyEndAllowThreads(__tstate); | |
13663 | if (PyErr_Occurred()) SWIG_fail; | |
13664 | } | |
13665 | Py_INCREF(Py_None); resultobj = Py_None; | |
13666 | return resultobj; | |
13667 | fail: | |
13668 | return NULL; | |
13669 | } | |
13670 | ||
13671 | ||
c32bde28 | 13672 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { |
d1e20054 RD |
13673 | PyObject *obj; |
13674 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13675 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
13676 | Py_INCREF(obj); | |
13677 | return Py_BuildValue((char *)""); | |
13678 | } | |
c32bde28 | 13679 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
13680 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
13681 | return 1; | |
13682 | } | |
13683 | ||
13684 | ||
093d3ff1 | 13685 | static PyObject *_wrap_RadioBoxNameStr_get(void) { |
32fe5131 | 13686 | PyObject *pyobj = NULL; |
b2dc1044 RD |
13687 | |
13688 | { | |
13689 | #if wxUSE_UNICODE | |
13690 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13691 | #else | |
13692 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13693 | #endif | |
13694 | } | |
13695 | return pyobj; | |
13696 | } | |
13697 | ||
13698 | ||
c32bde28 | 13699 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
13700 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
13701 | return 1; | |
13702 | } | |
13703 | ||
13704 | ||
093d3ff1 | 13705 | static PyObject *_wrap_RadioButtonNameStr_get(void) { |
32fe5131 | 13706 | PyObject *pyobj = NULL; |
b2dc1044 RD |
13707 | |
13708 | { | |
13709 | #if wxUSE_UNICODE | |
13710 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13711 | #else | |
13712 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13713 | #endif | |
13714 | } | |
13715 | return pyobj; | |
13716 | } | |
13717 | ||
13718 | ||
c32bde28 | 13719 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13720 | PyObject *resultobj = NULL; |
d14a1e28 | 13721 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
13722 | int arg2 = (int) -1 ; |
13723 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13724 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
13725 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13726 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13727 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13728 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
13729 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
13730 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
13731 | int arg7 = (int) 0 ; | |
13732 | long arg8 = (long) wxRA_HORIZONTAL ; | |
13733 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
13734 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
13735 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
13736 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 13737 | wxRadioBox *result; |
ae8162c8 | 13738 | bool temp3 = false ; |
d14a1e28 RD |
13739 | wxPoint temp4 ; |
13740 | wxSize temp5 ; | |
ae8162c8 RD |
13741 | bool temp6 = false ; |
13742 | bool temp10 = false ; | |
d14a1e28 | 13743 | PyObject * obj0 = 0 ; |
994141e6 | 13744 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13745 | PyObject * obj2 = 0 ; |
13746 | PyObject * obj3 = 0 ; | |
13747 | PyObject * obj4 = 0 ; | |
13748 | PyObject * obj5 = 0 ; | |
994141e6 RD |
13749 | PyObject * obj6 = 0 ; |
13750 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
13751 | PyObject * obj8 = 0 ; |
13752 | PyObject * obj9 = 0 ; | |
13753 | char *kwnames[] = { | |
994141e6 | 13754 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
13755 | }; |
13756 | ||
248ed943 | 13757 | 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 |
13758 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
13759 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 13760 | if (obj1) { |
093d3ff1 | 13761 | { |
32fe5131 | 13762 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13763 | if (SWIG_arg_fail(2)) SWIG_fail; |
13764 | } | |
248ed943 RD |
13765 | } |
13766 | if (obj2) { | |
13767 | { | |
13768 | arg3 = wxString_in_helper(obj2); | |
13769 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13770 | temp3 = true; |
248ed943 | 13771 | } |
d14a1e28 RD |
13772 | } |
13773 | if (obj3) { | |
13774 | { | |
13775 | arg4 = &temp4; | |
13776 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13777 | } | |
13778 | } | |
13779 | if (obj4) { | |
13780 | { | |
13781 | arg5 = &temp5; | |
13782 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13783 | } | |
13784 | } | |
13785 | if (obj5) { | |
13786 | { | |
4d5c3d91 RD |
13787 | if (! PySequence_Check(obj5)) { |
13788 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13789 | SWIG_fail; | |
13790 | } | |
13791 | arg6 = new wxArrayString; | |
ae8162c8 | 13792 | temp6 = true; |
4d5c3d91 RD |
13793 | int i, len=PySequence_Length(obj5); |
13794 | for (i=0; i<len; i++) { | |
13795 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 13796 | wxString* s = wxString_in_helper(item); |
74a57fcd | 13797 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
13798 | arg6->Add(*s); |
13799 | delete s; | |
4d5c3d91 | 13800 | Py_DECREF(item); |
4d5c3d91 | 13801 | } |
d14a1e28 RD |
13802 | } |
13803 | } | |
994141e6 | 13804 | if (obj6) { |
093d3ff1 | 13805 | { |
32fe5131 | 13806 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
093d3ff1 RD |
13807 | if (SWIG_arg_fail(7)) SWIG_fail; |
13808 | } | |
994141e6 RD |
13809 | } |
13810 | if (obj7) { | |
093d3ff1 | 13811 | { |
32fe5131 | 13812 | arg8 = static_cast<long >(SWIG_As_long(obj7)); |
093d3ff1 RD |
13813 | if (SWIG_arg_fail(8)) SWIG_fail; |
13814 | } | |
994141e6 | 13815 | } |
d14a1e28 | 13816 | if (obj8) { |
093d3ff1 RD |
13817 | { |
13818 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13819 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13820 | if (arg9 == NULL) { | |
13821 | SWIG_null_ref("wxValidator"); | |
13822 | } | |
13823 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
13824 | } |
13825 | } | |
13826 | if (obj9) { | |
13827 | { | |
4d5c3d91 RD |
13828 | arg10 = wxString_in_helper(obj9); |
13829 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 13830 | temp10 = true; |
d14a1e28 RD |
13831 | } |
13832 | } | |
13833 | { | |
e3b71cb8 | 13834 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 13835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 13836 | 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 |
13837 | |
13838 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13839 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13840 | } |
15afbcd0 | 13841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
13842 | { |
13843 | if (temp3) | |
13844 | delete arg3; | |
13845 | } | |
13846 | { | |
3adfb63b | 13847 | if (temp6) delete arg6; |
d14a1e28 RD |
13848 | } |
13849 | { | |
13850 | if (temp10) | |
4d5c3d91 | 13851 | delete arg10; |
d14a1e28 RD |
13852 | } |
13853 | return resultobj; | |
13854 | fail: | |
13855 | { | |
13856 | if (temp3) | |
13857 | delete arg3; | |
13858 | } | |
13859 | { | |
3adfb63b | 13860 | if (temp6) delete arg6; |
d14a1e28 RD |
13861 | } |
13862 | { | |
13863 | if (temp10) | |
4d5c3d91 | 13864 | delete arg10; |
d14a1e28 RD |
13865 | } |
13866 | return NULL; | |
13867 | } | |
13868 | ||
13869 | ||
c32bde28 | 13870 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13871 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13872 | wxRadioBox *result; |
13873 | char *kwnames[] = { | |
13874 | NULL | |
13875 | }; | |
13876 | ||
13877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
13878 | { | |
e3b71cb8 | 13879 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13881 | result = (wxRadioBox *)new wxRadioBox(); | |
13882 | ||
13883 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13884 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13885 | } |
15afbcd0 | 13886 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
13887 | return resultobj; |
13888 | fail: | |
13889 | return NULL; | |
13890 | } | |
13891 | ||
13892 | ||
c32bde28 | 13893 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13894 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13895 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
13896 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13897 | int arg3 = (int) -1 ; |
13898 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13899 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
13900 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13901 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13902 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13903 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
13904 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
13905 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
13906 | int arg8 = (int) 0 ; | |
13907 | long arg9 = (long) wxRA_HORIZONTAL ; | |
13908 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13909 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13910 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
13911 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 13912 | bool result; |
ae8162c8 | 13913 | bool temp4 = false ; |
d14a1e28 RD |
13914 | wxPoint temp5 ; |
13915 | wxSize temp6 ; | |
ae8162c8 RD |
13916 | bool temp7 = false ; |
13917 | bool temp11 = false ; | |
d14a1e28 RD |
13918 | PyObject * obj0 = 0 ; |
13919 | PyObject * obj1 = 0 ; | |
994141e6 | 13920 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13921 | PyObject * obj3 = 0 ; |
13922 | PyObject * obj4 = 0 ; | |
13923 | PyObject * obj5 = 0 ; | |
13924 | PyObject * obj6 = 0 ; | |
994141e6 RD |
13925 | PyObject * obj7 = 0 ; |
13926 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
13927 | PyObject * obj9 = 0 ; |
13928 | PyObject * obj10 = 0 ; | |
13929 | char *kwnames[] = { | |
994141e6 | 13930 | (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 |
13931 | }; |
13932 | ||
248ed943 | 13933 | 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 |
13934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13936 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13937 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 13938 | if (obj2) { |
093d3ff1 | 13939 | { |
32fe5131 | 13940 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13941 | if (SWIG_arg_fail(3)) SWIG_fail; |
13942 | } | |
248ed943 RD |
13943 | } |
13944 | if (obj3) { | |
13945 | { | |
13946 | arg4 = wxString_in_helper(obj3); | |
13947 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13948 | temp4 = true; |
248ed943 | 13949 | } |
d14a1e28 RD |
13950 | } |
13951 | if (obj4) { | |
13952 | { | |
13953 | arg5 = &temp5; | |
13954 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13955 | } | |
13956 | } | |
13957 | if (obj5) { | |
13958 | { | |
13959 | arg6 = &temp6; | |
13960 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13961 | } | |
13962 | } | |
13963 | if (obj6) { | |
13964 | { | |
4d5c3d91 RD |
13965 | if (! PySequence_Check(obj6)) { |
13966 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13967 | SWIG_fail; | |
13968 | } | |
13969 | arg7 = new wxArrayString; | |
ae8162c8 | 13970 | temp7 = true; |
4d5c3d91 RD |
13971 | int i, len=PySequence_Length(obj6); |
13972 | for (i=0; i<len; i++) { | |
13973 | PyObject* item = PySequence_GetItem(obj6, i); | |
71237536 | 13974 | wxString* s = wxString_in_helper(item); |
74a57fcd | 13975 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
13976 | arg7->Add(*s); |
13977 | delete s; | |
4d5c3d91 | 13978 | Py_DECREF(item); |
4d5c3d91 | 13979 | } |
d14a1e28 RD |
13980 | } |
13981 | } | |
994141e6 | 13982 | if (obj7) { |
093d3ff1 | 13983 | { |
32fe5131 | 13984 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
13985 | if (SWIG_arg_fail(8)) SWIG_fail; |
13986 | } | |
994141e6 RD |
13987 | } |
13988 | if (obj8) { | |
093d3ff1 | 13989 | { |
32fe5131 | 13990 | arg9 = static_cast<long >(SWIG_As_long(obj8)); |
093d3ff1 RD |
13991 | if (SWIG_arg_fail(9)) SWIG_fail; |
13992 | } | |
994141e6 | 13993 | } |
d14a1e28 | 13994 | if (obj9) { |
093d3ff1 RD |
13995 | { |
13996 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13997 | if (SWIG_arg_fail(10)) SWIG_fail; | |
13998 | if (arg10 == NULL) { | |
13999 | SWIG_null_ref("wxValidator"); | |
14000 | } | |
14001 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d14a1e28 RD |
14002 | } |
14003 | } | |
14004 | if (obj10) { | |
14005 | { | |
4d5c3d91 RD |
14006 | arg11 = wxString_in_helper(obj10); |
14007 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 14008 | temp11 = true; |
d14a1e28 RD |
14009 | } |
14010 | } | |
14011 | { | |
14012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 14013 | 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 |
14014 | |
14015 | wxPyEndAllowThreads(__tstate); | |
14016 | if (PyErr_Occurred()) SWIG_fail; | |
14017 | } | |
4f89f6a3 RD |
14018 | { |
14019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14020 | } | |
d14a1e28 RD |
14021 | { |
14022 | if (temp4) | |
14023 | delete arg4; | |
14024 | } | |
14025 | { | |
3adfb63b | 14026 | if (temp7) delete arg7; |
d14a1e28 RD |
14027 | } |
14028 | { | |
14029 | if (temp11) | |
4d5c3d91 | 14030 | delete arg11; |
d14a1e28 RD |
14031 | } |
14032 | return resultobj; | |
14033 | fail: | |
14034 | { | |
14035 | if (temp4) | |
14036 | delete arg4; | |
14037 | } | |
14038 | { | |
3adfb63b | 14039 | if (temp7) delete arg7; |
d14a1e28 RD |
14040 | } |
14041 | { | |
14042 | if (temp11) | |
4d5c3d91 | 14043 | delete arg11; |
d14a1e28 RD |
14044 | } |
14045 | return NULL; | |
14046 | } | |
14047 | ||
14048 | ||
c32bde28 | 14049 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14050 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14051 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14052 | int arg2 ; | |
14053 | PyObject * obj0 = 0 ; | |
994141e6 | 14054 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14055 | char *kwnames[] = { |
14056 | (char *) "self",(char *) "n", NULL | |
14057 | }; | |
14058 | ||
994141e6 | 14059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14060 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14061 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14062 | { | |
32fe5131 | 14063 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14064 | if (SWIG_arg_fail(2)) SWIG_fail; |
14065 | } | |
d14a1e28 RD |
14066 | { |
14067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14068 | (arg1)->SetSelection(arg2); | |
14069 | ||
14070 | wxPyEndAllowThreads(__tstate); | |
14071 | if (PyErr_Occurred()) SWIG_fail; | |
14072 | } | |
14073 | Py_INCREF(Py_None); resultobj = Py_None; | |
14074 | return resultobj; | |
14075 | fail: | |
14076 | return NULL; | |
14077 | } | |
14078 | ||
14079 | ||
c32bde28 | 14080 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14081 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14082 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14083 | int result; | |
14084 | PyObject * obj0 = 0 ; | |
14085 | char *kwnames[] = { | |
14086 | (char *) "self", NULL | |
14087 | }; | |
14088 | ||
14089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14090 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14091 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14092 | { |
14093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14094 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
14095 | ||
14096 | wxPyEndAllowThreads(__tstate); | |
14097 | if (PyErr_Occurred()) SWIG_fail; | |
14098 | } | |
093d3ff1 | 14099 | { |
32fe5131 | 14100 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14101 | } |
d14a1e28 RD |
14102 | return resultobj; |
14103 | fail: | |
14104 | return NULL; | |
14105 | } | |
14106 | ||
14107 | ||
c32bde28 | 14108 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14109 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14110 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14111 | wxString result; | |
14112 | PyObject * obj0 = 0 ; | |
14113 | char *kwnames[] = { | |
14114 | (char *) "self", NULL | |
14115 | }; | |
14116 | ||
14117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14120 | { |
14121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14122 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
14123 | ||
14124 | wxPyEndAllowThreads(__tstate); | |
14125 | if (PyErr_Occurred()) SWIG_fail; | |
14126 | } | |
14127 | { | |
14128 | #if wxUSE_UNICODE | |
14129 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14130 | #else | |
14131 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14132 | #endif | |
14133 | } | |
14134 | return resultobj; | |
14135 | fail: | |
14136 | return NULL; | |
14137 | } | |
14138 | ||
14139 | ||
c32bde28 | 14140 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14141 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14142 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14143 | wxString *arg2 = 0 ; | |
14144 | bool result; | |
ae8162c8 | 14145 | bool temp2 = false ; |
d14a1e28 RD |
14146 | PyObject * obj0 = 0 ; |
14147 | PyObject * obj1 = 0 ; | |
14148 | char *kwnames[] = { | |
14149 | (char *) "self",(char *) "s", NULL | |
14150 | }; | |
14151 | ||
14152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14155 | { |
14156 | arg2 = wxString_in_helper(obj1); | |
14157 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14158 | temp2 = true; |
d14a1e28 RD |
14159 | } |
14160 | { | |
14161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14162 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
14163 | ||
14164 | wxPyEndAllowThreads(__tstate); | |
14165 | if (PyErr_Occurred()) SWIG_fail; | |
14166 | } | |
4f89f6a3 RD |
14167 | { |
14168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14169 | } | |
d14a1e28 RD |
14170 | { |
14171 | if (temp2) | |
14172 | delete arg2; | |
14173 | } | |
14174 | return resultobj; | |
14175 | fail: | |
14176 | { | |
14177 | if (temp2) | |
14178 | delete arg2; | |
14179 | } | |
14180 | return NULL; | |
14181 | } | |
14182 | ||
14183 | ||
c32bde28 | 14184 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14185 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14186 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14187 | int result; | |
14188 | PyObject * obj0 = 0 ; | |
14189 | char *kwnames[] = { | |
14190 | (char *) "self", NULL | |
14191 | }; | |
14192 | ||
14193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14194 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14195 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14196 | { |
14197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14198 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
14199 | ||
14200 | wxPyEndAllowThreads(__tstate); | |
14201 | if (PyErr_Occurred()) SWIG_fail; | |
14202 | } | |
093d3ff1 | 14203 | { |
32fe5131 | 14204 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14205 | } |
d14a1e28 RD |
14206 | return resultobj; |
14207 | fail: | |
14208 | return NULL; | |
14209 | } | |
14210 | ||
14211 | ||
c32bde28 | 14212 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14213 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14214 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14215 | wxString *arg2 = 0 ; | |
14216 | int result; | |
ae8162c8 | 14217 | bool temp2 = false ; |
d14a1e28 RD |
14218 | PyObject * obj0 = 0 ; |
14219 | PyObject * obj1 = 0 ; | |
14220 | char *kwnames[] = { | |
14221 | (char *) "self",(char *) "s", NULL | |
14222 | }; | |
14223 | ||
14224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14227 | { |
14228 | arg2 = wxString_in_helper(obj1); | |
14229 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14230 | temp2 = true; |
d14a1e28 RD |
14231 | } |
14232 | { | |
14233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14234 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
14235 | ||
14236 | wxPyEndAllowThreads(__tstate); | |
14237 | if (PyErr_Occurred()) SWIG_fail; | |
14238 | } | |
093d3ff1 | 14239 | { |
32fe5131 | 14240 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14241 | } |
d14a1e28 RD |
14242 | { |
14243 | if (temp2) | |
14244 | delete arg2; | |
14245 | } | |
14246 | return resultobj; | |
14247 | fail: | |
14248 | { | |
14249 | if (temp2) | |
14250 | delete arg2; | |
14251 | } | |
14252 | return NULL; | |
14253 | } | |
14254 | ||
14255 | ||
c32bde28 | 14256 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14257 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14258 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14259 | int arg2 ; | |
14260 | wxString result; | |
14261 | PyObject * obj0 = 0 ; | |
994141e6 | 14262 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14263 | char *kwnames[] = { |
14264 | (char *) "self",(char *) "n", NULL | |
14265 | }; | |
14266 | ||
994141e6 | 14267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14270 | { | |
32fe5131 | 14271 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14272 | if (SWIG_arg_fail(2)) SWIG_fail; |
14273 | } | |
d14a1e28 RD |
14274 | { |
14275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14276 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
14277 | ||
14278 | wxPyEndAllowThreads(__tstate); | |
14279 | if (PyErr_Occurred()) SWIG_fail; | |
14280 | } | |
14281 | { | |
14282 | #if wxUSE_UNICODE | |
14283 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14284 | #else | |
14285 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14286 | #endif | |
14287 | } | |
14288 | return resultobj; | |
14289 | fail: | |
14290 | return NULL; | |
14291 | } | |
14292 | ||
14293 | ||
c32bde28 | 14294 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14295 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14296 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14297 | int arg2 ; | |
14298 | wxString *arg3 = 0 ; | |
ae8162c8 | 14299 | bool temp3 = false ; |
d14a1e28 | 14300 | PyObject * obj0 = 0 ; |
994141e6 | 14301 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14302 | PyObject * obj2 = 0 ; |
14303 | char *kwnames[] = { | |
14304 | (char *) "self",(char *) "n",(char *) "label", NULL | |
14305 | }; | |
14306 | ||
994141e6 | 14307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14310 | { | |
32fe5131 | 14311 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14312 | if (SWIG_arg_fail(2)) SWIG_fail; |
14313 | } | |
d14a1e28 RD |
14314 | { |
14315 | arg3 = wxString_in_helper(obj2); | |
14316 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14317 | temp3 = true; |
d14a1e28 RD |
14318 | } |
14319 | { | |
14320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14321 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
14322 | ||
14323 | wxPyEndAllowThreads(__tstate); | |
14324 | if (PyErr_Occurred()) SWIG_fail; | |
14325 | } | |
14326 | Py_INCREF(Py_None); resultobj = Py_None; | |
14327 | { | |
14328 | if (temp3) | |
14329 | delete arg3; | |
14330 | } | |
14331 | return resultobj; | |
14332 | fail: | |
14333 | { | |
14334 | if (temp3) | |
14335 | delete arg3; | |
14336 | } | |
14337 | return NULL; | |
14338 | } | |
14339 | ||
14340 | ||
c32bde28 | 14341 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14342 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14343 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14344 | int arg2 ; | |
ae8162c8 | 14345 | bool arg3 = (bool) true ; |
d14a1e28 | 14346 | PyObject * obj0 = 0 ; |
994141e6 | 14347 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14348 | PyObject * obj2 = 0 ; |
14349 | char *kwnames[] = { | |
14350 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
14351 | }; | |
14352 | ||
994141e6 | 14353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14354 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14355 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14356 | { | |
32fe5131 | 14357 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14358 | if (SWIG_arg_fail(2)) SWIG_fail; |
14359 | } | |
d14a1e28 | 14360 | if (obj2) { |
093d3ff1 | 14361 | { |
32fe5131 | 14362 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
14363 | if (SWIG_arg_fail(3)) SWIG_fail; |
14364 | } | |
d14a1e28 RD |
14365 | } |
14366 | { | |
14367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14368 | (arg1)->Enable(arg2,arg3); | |
14369 | ||
14370 | wxPyEndAllowThreads(__tstate); | |
14371 | if (PyErr_Occurred()) SWIG_fail; | |
14372 | } | |
14373 | Py_INCREF(Py_None); resultobj = Py_None; | |
14374 | return resultobj; | |
14375 | fail: | |
14376 | return NULL; | |
14377 | } | |
14378 | ||
14379 | ||
c32bde28 | 14380 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14381 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14382 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14383 | int arg2 ; | |
ae8162c8 | 14384 | bool arg3 = (bool) true ; |
d14a1e28 | 14385 | PyObject * obj0 = 0 ; |
994141e6 | 14386 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14387 | PyObject * obj2 = 0 ; |
14388 | char *kwnames[] = { | |
14389 | (char *) "self",(char *) "n",(char *) "show", NULL | |
14390 | }; | |
14391 | ||
994141e6 | 14392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14395 | { | |
32fe5131 | 14396 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14397 | if (SWIG_arg_fail(2)) SWIG_fail; |
14398 | } | |
d14a1e28 | 14399 | if (obj2) { |
093d3ff1 | 14400 | { |
32fe5131 | 14401 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
14402 | if (SWIG_arg_fail(3)) SWIG_fail; |
14403 | } | |
d14a1e28 RD |
14404 | } |
14405 | { | |
14406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14407 | (arg1)->Show(arg2,arg3); | |
14408 | ||
14409 | wxPyEndAllowThreads(__tstate); | |
14410 | if (PyErr_Occurred()) SWIG_fail; | |
14411 | } | |
14412 | Py_INCREF(Py_None); resultobj = Py_None; | |
14413 | return resultobj; | |
14414 | fail: | |
14415 | return NULL; | |
14416 | } | |
14417 | ||
14418 | ||
c32bde28 | 14419 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14420 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14421 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14422 | int result; | |
14423 | PyObject * obj0 = 0 ; | |
14424 | char *kwnames[] = { | |
14425 | (char *) "self", NULL | |
14426 | }; | |
14427 | ||
14428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14431 | { |
14432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14433 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
14434 | ||
14435 | wxPyEndAllowThreads(__tstate); | |
14436 | if (PyErr_Occurred()) SWIG_fail; | |
14437 | } | |
093d3ff1 | 14438 | { |
32fe5131 | 14439 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14440 | } |
d14a1e28 RD |
14441 | return resultobj; |
14442 | fail: | |
14443 | return NULL; | |
14444 | } | |
14445 | ||
14446 | ||
c32bde28 | 14447 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14448 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14449 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14450 | int result; | |
14451 | PyObject * obj0 = 0 ; | |
14452 | char *kwnames[] = { | |
14453 | (char *) "self", NULL | |
14454 | }; | |
14455 | ||
14456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14459 | { |
14460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14461 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
14462 | ||
14463 | wxPyEndAllowThreads(__tstate); | |
14464 | if (PyErr_Occurred()) SWIG_fail; | |
14465 | } | |
093d3ff1 | 14466 | { |
32fe5131 | 14467 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14468 | } |
d14a1e28 RD |
14469 | return resultobj; |
14470 | fail: | |
14471 | return NULL; | |
14472 | } | |
14473 | ||
14474 | ||
c32bde28 | 14475 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14476 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14477 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14478 | int arg2 ; | |
093d3ff1 | 14479 | wxDirection arg3 ; |
d14a1e28 RD |
14480 | long arg4 ; |
14481 | int result; | |
14482 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14483 | PyObject * obj1 = 0 ; |
14484 | PyObject * obj2 = 0 ; | |
14485 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14486 | char *kwnames[] = { |
14487 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
14488 | }; | |
14489 | ||
994141e6 | 14490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
14491 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14493 | { | |
32fe5131 | 14494 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14495 | if (SWIG_arg_fail(2)) SWIG_fail; |
14496 | } | |
14497 | { | |
32fe5131 | 14498 | arg3 = static_cast<wxDirection >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14499 | if (SWIG_arg_fail(3)) SWIG_fail; |
14500 | } | |
14501 | { | |
32fe5131 | 14502 | arg4 = static_cast<long >(SWIG_As_long(obj3)); |
093d3ff1 RD |
14503 | if (SWIG_arg_fail(4)) SWIG_fail; |
14504 | } | |
d14a1e28 RD |
14505 | { |
14506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 14507 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,arg3,arg4); |
d14a1e28 RD |
14508 | |
14509 | wxPyEndAllowThreads(__tstate); | |
14510 | if (PyErr_Occurred()) SWIG_fail; | |
14511 | } | |
093d3ff1 | 14512 | { |
32fe5131 | 14513 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14514 | } |
d14a1e28 RD |
14515 | return resultobj; |
14516 | fail: | |
14517 | return NULL; | |
14518 | } | |
14519 | ||
14520 | ||
c32bde28 | 14521 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14522 | PyObject *resultobj = NULL; |
093d3ff1 | 14523 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
14524 | wxVisualAttributes result; |
14525 | PyObject * obj0 = 0 ; | |
14526 | char *kwnames[] = { | |
14527 | (char *) "variant", NULL | |
14528 | }; | |
14529 | ||
14530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14531 | if (obj0) { | |
093d3ff1 | 14532 | { |
32fe5131 | 14533 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
14534 | if (SWIG_arg_fail(1)) SWIG_fail; |
14535 | } | |
22bfe96c RD |
14536 | } |
14537 | { | |
110da5b0 | 14538 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 14539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 14540 | result = wxRadioBox::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
14541 | |
14542 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14543 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14544 | } |
14545 | { | |
14546 | wxVisualAttributes * resultptr; | |
32fe5131 | 14547 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
14548 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14549 | } | |
14550 | return resultobj; | |
14551 | fail: | |
14552 | return NULL; | |
14553 | } | |
14554 | ||
14555 | ||
c32bde28 | 14556 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14557 | PyObject *obj; |
14558 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14559 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
14560 | Py_INCREF(obj); | |
14561 | return Py_BuildValue((char *)""); | |
14562 | } | |
c32bde28 | 14563 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14564 | PyObject *resultobj = NULL; |
d14a1e28 | 14565 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
14566 | int arg2 = (int) -1 ; |
14567 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14568 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
14569 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14570 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14571 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14572 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14573 | long arg6 = (long) 0 ; | |
14574 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14575 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14576 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
14577 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14578 | wxRadioButton *result; | |
ae8162c8 | 14579 | bool temp3 = false ; |
d14a1e28 RD |
14580 | wxPoint temp4 ; |
14581 | wxSize temp5 ; | |
ae8162c8 | 14582 | bool temp8 = false ; |
d14a1e28 | 14583 | PyObject * obj0 = 0 ; |
994141e6 | 14584 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14585 | PyObject * obj2 = 0 ; |
14586 | PyObject * obj3 = 0 ; | |
14587 | PyObject * obj4 = 0 ; | |
994141e6 | 14588 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14589 | PyObject * obj6 = 0 ; |
14590 | PyObject * obj7 = 0 ; | |
14591 | char *kwnames[] = { | |
14592 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14593 | }; | |
14594 | ||
248ed943 | 14595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
14596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 14598 | if (obj1) { |
093d3ff1 | 14599 | { |
32fe5131 | 14600 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14601 | if (SWIG_arg_fail(2)) SWIG_fail; |
14602 | } | |
248ed943 RD |
14603 | } |
14604 | if (obj2) { | |
14605 | { | |
14606 | arg3 = wxString_in_helper(obj2); | |
14607 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14608 | temp3 = true; |
248ed943 | 14609 | } |
d14a1e28 RD |
14610 | } |
14611 | if (obj3) { | |
14612 | { | |
14613 | arg4 = &temp4; | |
14614 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14615 | } | |
14616 | } | |
14617 | if (obj4) { | |
14618 | { | |
14619 | arg5 = &temp5; | |
14620 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14621 | } | |
14622 | } | |
994141e6 | 14623 | if (obj5) { |
093d3ff1 | 14624 | { |
32fe5131 | 14625 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
14626 | if (SWIG_arg_fail(6)) SWIG_fail; |
14627 | } | |
994141e6 | 14628 | } |
d14a1e28 | 14629 | if (obj6) { |
093d3ff1 RD |
14630 | { |
14631 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14632 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14633 | if (arg7 == NULL) { | |
14634 | SWIG_null_ref("wxValidator"); | |
14635 | } | |
14636 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
14637 | } |
14638 | } | |
14639 | if (obj7) { | |
14640 | { | |
14641 | arg8 = wxString_in_helper(obj7); | |
14642 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 14643 | temp8 = true; |
d14a1e28 RD |
14644 | } |
14645 | } | |
14646 | { | |
e3b71cb8 | 14647 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14649 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14650 | ||
14651 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14652 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14653 | } |
15afbcd0 | 14654 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
14655 | { |
14656 | if (temp3) | |
14657 | delete arg3; | |
14658 | } | |
14659 | { | |
14660 | if (temp8) | |
14661 | delete arg8; | |
14662 | } | |
14663 | return resultobj; | |
14664 | fail: | |
14665 | { | |
14666 | if (temp3) | |
14667 | delete arg3; | |
14668 | } | |
14669 | { | |
14670 | if (temp8) | |
14671 | delete arg8; | |
14672 | } | |
14673 | return NULL; | |
14674 | } | |
14675 | ||
14676 | ||
c32bde28 | 14677 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14678 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14679 | wxRadioButton *result; |
14680 | char *kwnames[] = { | |
14681 | NULL | |
14682 | }; | |
14683 | ||
14684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
14685 | { | |
e3b71cb8 | 14686 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14688 | result = (wxRadioButton *)new wxRadioButton(); | |
14689 | ||
14690 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14691 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14692 | } |
15afbcd0 | 14693 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
14694 | return resultobj; |
14695 | fail: | |
14696 | return NULL; | |
14697 | } | |
14698 | ||
14699 | ||
c32bde28 | 14700 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14701 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14702 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; |
14703 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14704 | int arg3 = (int) -1 ; |
14705 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14706 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
14707 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
14708 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14709 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14710 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14711 | long arg7 = (long) 0 ; | |
14712 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
14713 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
14714 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
14715 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
14716 | bool result; | |
ae8162c8 | 14717 | bool temp4 = false ; |
d14a1e28 RD |
14718 | wxPoint temp5 ; |
14719 | wxSize temp6 ; | |
ae8162c8 | 14720 | bool temp9 = false ; |
d14a1e28 RD |
14721 | PyObject * obj0 = 0 ; |
14722 | PyObject * obj1 = 0 ; | |
994141e6 | 14723 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14724 | PyObject * obj3 = 0 ; |
14725 | PyObject * obj4 = 0 ; | |
14726 | PyObject * obj5 = 0 ; | |
994141e6 | 14727 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
14728 | PyObject * obj7 = 0 ; |
14729 | PyObject * obj8 = 0 ; | |
14730 | char *kwnames[] = { | |
14731 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14732 | }; | |
14733 | ||
248ed943 | 14734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
14735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14737 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14738 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 14739 | if (obj2) { |
093d3ff1 | 14740 | { |
32fe5131 | 14741 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14742 | if (SWIG_arg_fail(3)) SWIG_fail; |
14743 | } | |
248ed943 RD |
14744 | } |
14745 | if (obj3) { | |
14746 | { | |
14747 | arg4 = wxString_in_helper(obj3); | |
14748 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 14749 | temp4 = true; |
248ed943 | 14750 | } |
d14a1e28 RD |
14751 | } |
14752 | if (obj4) { | |
14753 | { | |
14754 | arg5 = &temp5; | |
14755 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14756 | } | |
14757 | } | |
14758 | if (obj5) { | |
14759 | { | |
14760 | arg6 = &temp6; | |
14761 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14762 | } | |
14763 | } | |
994141e6 | 14764 | if (obj6) { |
093d3ff1 | 14765 | { |
32fe5131 | 14766 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
14767 | if (SWIG_arg_fail(7)) SWIG_fail; |
14768 | } | |
994141e6 | 14769 | } |
d14a1e28 | 14770 | if (obj7) { |
093d3ff1 RD |
14771 | { |
14772 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14773 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14774 | if (arg8 == NULL) { | |
14775 | SWIG_null_ref("wxValidator"); | |
14776 | } | |
14777 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
14778 | } |
14779 | } | |
14780 | if (obj8) { | |
14781 | { | |
14782 | arg9 = wxString_in_helper(obj8); | |
14783 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 14784 | temp9 = true; |
d14a1e28 RD |
14785 | } |
14786 | } | |
14787 | { | |
14788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14789 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14790 | ||
14791 | wxPyEndAllowThreads(__tstate); | |
14792 | if (PyErr_Occurred()) SWIG_fail; | |
14793 | } | |
4f89f6a3 RD |
14794 | { |
14795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14796 | } | |
d14a1e28 RD |
14797 | { |
14798 | if (temp4) | |
14799 | delete arg4; | |
14800 | } | |
14801 | { | |
14802 | if (temp9) | |
14803 | delete arg9; | |
14804 | } | |
14805 | return resultobj; | |
14806 | fail: | |
14807 | { | |
14808 | if (temp4) | |
14809 | delete arg4; | |
14810 | } | |
14811 | { | |
14812 | if (temp9) | |
14813 | delete arg9; | |
14814 | } | |
14815 | return NULL; | |
14816 | } | |
14817 | ||
14818 | ||
c32bde28 | 14819 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14820 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14821 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; |
14822 | bool result; | |
14823 | PyObject * obj0 = 0 ; | |
14824 | char *kwnames[] = { | |
14825 | (char *) "self", NULL | |
14826 | }; | |
14827 | ||
14828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14831 | { |
14832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14833 | result = (bool)(arg1)->GetValue(); | |
14834 | ||
14835 | wxPyEndAllowThreads(__tstate); | |
14836 | if (PyErr_Occurred()) SWIG_fail; | |
14837 | } | |
4f89f6a3 RD |
14838 | { |
14839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14840 | } | |
d14a1e28 RD |
14841 | return resultobj; |
14842 | fail: | |
14843 | return NULL; | |
14844 | } | |
14845 | ||
14846 | ||
c32bde28 | 14847 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14848 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14849 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; |
14850 | bool arg2 ; | |
14851 | PyObject * obj0 = 0 ; | |
14852 | PyObject * obj1 = 0 ; | |
14853 | char *kwnames[] = { | |
14854 | (char *) "self",(char *) "value", NULL | |
14855 | }; | |
14856 | ||
14857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14860 | { | |
32fe5131 | 14861 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
14862 | if (SWIG_arg_fail(2)) SWIG_fail; |
14863 | } | |
d14a1e28 RD |
14864 | { |
14865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14866 | (arg1)->SetValue(arg2); | |
14867 | ||
14868 | wxPyEndAllowThreads(__tstate); | |
14869 | if (PyErr_Occurred()) SWIG_fail; | |
14870 | } | |
14871 | Py_INCREF(Py_None); resultobj = Py_None; | |
14872 | return resultobj; | |
14873 | fail: | |
14874 | return NULL; | |
14875 | } | |
14876 | ||
14877 | ||
c32bde28 | 14878 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14879 | PyObject *resultobj = NULL; |
093d3ff1 | 14880 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
14881 | wxVisualAttributes result; |
14882 | PyObject * obj0 = 0 ; | |
14883 | char *kwnames[] = { | |
14884 | (char *) "variant", NULL | |
14885 | }; | |
14886 | ||
14887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14888 | if (obj0) { | |
093d3ff1 | 14889 | { |
32fe5131 | 14890 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
14891 | if (SWIG_arg_fail(1)) SWIG_fail; |
14892 | } | |
22bfe96c RD |
14893 | } |
14894 | { | |
110da5b0 | 14895 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 14896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 14897 | result = wxRadioButton::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
14898 | |
14899 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14900 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14901 | } |
14902 | { | |
14903 | wxVisualAttributes * resultptr; | |
32fe5131 | 14904 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
14905 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14906 | } | |
14907 | return resultobj; | |
14908 | fail: | |
14909 | return NULL; | |
14910 | } | |
14911 | ||
14912 | ||
c32bde28 | 14913 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14914 | PyObject *obj; |
14915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14916 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
14917 | Py_INCREF(obj); | |
14918 | return Py_BuildValue((char *)""); | |
14919 | } | |
c32bde28 | 14920 | static int _wrap_SliderNameStr_set(PyObject *) { |
b2dc1044 RD |
14921 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
14922 | return 1; | |
14923 | } | |
14924 | ||
14925 | ||
093d3ff1 | 14926 | static PyObject *_wrap_SliderNameStr_get(void) { |
32fe5131 | 14927 | PyObject *pyobj = NULL; |
b2dc1044 RD |
14928 | |
14929 | { | |
14930 | #if wxUSE_UNICODE | |
14931 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14932 | #else | |
14933 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14934 | #endif | |
14935 | } | |
14936 | return pyobj; | |
14937 | } | |
14938 | ||
14939 | ||
c32bde28 | 14940 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14941 | PyObject *resultobj = NULL; |
d14a1e28 | 14942 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
14943 | int arg2 = (int) -1 ; |
14944 | int arg3 = (int) 0 ; | |
14945 | int arg4 = (int) 0 ; | |
14946 | int arg5 = (int) 100 ; | |
d14a1e28 RD |
14947 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
14948 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
14949 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
14950 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
14951 | long arg8 = (long) wxSL_HORIZONTAL ; | |
14952 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
14953 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
14954 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
14955 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
14956 | wxSlider *result; | |
14957 | wxPoint temp6 ; | |
14958 | wxSize temp7 ; | |
ae8162c8 | 14959 | bool temp10 = false ; |
d14a1e28 | 14960 | PyObject * obj0 = 0 ; |
994141e6 RD |
14961 | PyObject * obj1 = 0 ; |
14962 | PyObject * obj2 = 0 ; | |
14963 | PyObject * obj3 = 0 ; | |
14964 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
14965 | PyObject * obj5 = 0 ; |
14966 | PyObject * obj6 = 0 ; | |
994141e6 | 14967 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
14968 | PyObject * obj8 = 0 ; |
14969 | PyObject * obj9 = 0 ; | |
14970 | char *kwnames[] = { | |
994141e6 | 14971 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
14972 | }; |
14973 | ||
248ed943 | 14974 | 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 |
14975 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14976 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 14977 | if (obj1) { |
093d3ff1 | 14978 | { |
32fe5131 | 14979 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14980 | if (SWIG_arg_fail(2)) SWIG_fail; |
14981 | } | |
248ed943 RD |
14982 | } |
14983 | if (obj2) { | |
093d3ff1 | 14984 | { |
32fe5131 | 14985 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14986 | if (SWIG_arg_fail(3)) SWIG_fail; |
14987 | } | |
248ed943 RD |
14988 | } |
14989 | if (obj3) { | |
093d3ff1 | 14990 | { |
32fe5131 | 14991 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
14992 | if (SWIG_arg_fail(4)) SWIG_fail; |
14993 | } | |
248ed943 RD |
14994 | } |
14995 | if (obj4) { | |
093d3ff1 | 14996 | { |
32fe5131 | 14997 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
14998 | if (SWIG_arg_fail(5)) SWIG_fail; |
14999 | } | |
248ed943 | 15000 | } |
d14a1e28 RD |
15001 | if (obj5) { |
15002 | { | |
15003 | arg6 = &temp6; | |
15004 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
15005 | } | |
15006 | } | |
15007 | if (obj6) { | |
15008 | { | |
15009 | arg7 = &temp7; | |
15010 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
15011 | } | |
15012 | } | |
994141e6 | 15013 | if (obj7) { |
093d3ff1 | 15014 | { |
32fe5131 | 15015 | arg8 = static_cast<long >(SWIG_As_long(obj7)); |
093d3ff1 RD |
15016 | if (SWIG_arg_fail(8)) SWIG_fail; |
15017 | } | |
994141e6 | 15018 | } |
d14a1e28 | 15019 | if (obj8) { |
093d3ff1 RD |
15020 | { |
15021 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15022 | if (SWIG_arg_fail(9)) SWIG_fail; | |
15023 | if (arg9 == NULL) { | |
15024 | SWIG_null_ref("wxValidator"); | |
15025 | } | |
15026 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
15027 | } |
15028 | } | |
15029 | if (obj9) { | |
15030 | { | |
15031 | arg10 = wxString_in_helper(obj9); | |
15032 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 15033 | temp10 = true; |
d14a1e28 RD |
15034 | } |
15035 | } | |
15036 | { | |
e3b71cb8 | 15037 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15039 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
15040 | ||
15041 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15042 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15043 | } |
15afbcd0 | 15044 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
15045 | { |
15046 | if (temp10) | |
15047 | delete arg10; | |
15048 | } | |
15049 | return resultobj; | |
15050 | fail: | |
15051 | { | |
15052 | if (temp10) | |
15053 | delete arg10; | |
15054 | } | |
15055 | return NULL; | |
15056 | } | |
15057 | ||
15058 | ||
c32bde28 | 15059 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15060 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15061 | wxSlider *result; |
15062 | char *kwnames[] = { | |
15063 | NULL | |
15064 | }; | |
15065 | ||
15066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
15067 | { | |
e3b71cb8 | 15068 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15070 | result = (wxSlider *)new wxSlider(); | |
15071 | ||
15072 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15073 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15074 | } |
15afbcd0 | 15075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
15076 | return resultobj; |
15077 | fail: | |
15078 | return NULL; | |
15079 | } | |
15080 | ||
15081 | ||
c32bde28 | 15082 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15083 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15084 | wxSlider *arg1 = (wxSlider *) 0 ; |
15085 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
15086 | int arg3 = (int) -1 ; |
15087 | int arg4 = (int) 0 ; | |
15088 | int arg5 = (int) 0 ; | |
15089 | int arg6 = (int) 100 ; | |
d14a1e28 RD |
15090 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
15091 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
15092 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
15093 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
15094 | long arg9 = (long) wxSL_HORIZONTAL ; | |
15095 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
15096 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
15097 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
15098 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
15099 | bool result; | |
15100 | wxPoint temp7 ; | |
15101 | wxSize temp8 ; | |
ae8162c8 | 15102 | bool temp11 = false ; |
d14a1e28 RD |
15103 | PyObject * obj0 = 0 ; |
15104 | PyObject * obj1 = 0 ; | |
994141e6 RD |
15105 | PyObject * obj2 = 0 ; |
15106 | PyObject * obj3 = 0 ; | |
15107 | PyObject * obj4 = 0 ; | |
15108 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15109 | PyObject * obj6 = 0 ; |
15110 | PyObject * obj7 = 0 ; | |
994141e6 | 15111 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
15112 | PyObject * obj9 = 0 ; |
15113 | PyObject * obj10 = 0 ; | |
15114 | char *kwnames[] = { | |
994141e6 | 15115 | (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 |
15116 | }; |
15117 | ||
248ed943 | 15118 | 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 |
15119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15121 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
15122 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 15123 | if (obj2) { |
093d3ff1 | 15124 | { |
32fe5131 | 15125 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
15126 | if (SWIG_arg_fail(3)) SWIG_fail; |
15127 | } | |
248ed943 RD |
15128 | } |
15129 | if (obj3) { | |
093d3ff1 | 15130 | { |
32fe5131 | 15131 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
15132 | if (SWIG_arg_fail(4)) SWIG_fail; |
15133 | } | |
248ed943 RD |
15134 | } |
15135 | if (obj4) { | |
093d3ff1 | 15136 | { |
32fe5131 | 15137 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
15138 | if (SWIG_arg_fail(5)) SWIG_fail; |
15139 | } | |
248ed943 RD |
15140 | } |
15141 | if (obj5) { | |
093d3ff1 | 15142 | { |
32fe5131 | 15143 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
15144 | if (SWIG_arg_fail(6)) SWIG_fail; |
15145 | } | |
248ed943 | 15146 | } |
d14a1e28 RD |
15147 | if (obj6) { |
15148 | { | |
15149 | arg7 = &temp7; | |
15150 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
15151 | } | |
15152 | } | |
15153 | if (obj7) { | |
15154 | { | |
15155 | arg8 = &temp8; | |
15156 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
15157 | } | |
15158 | } | |
994141e6 | 15159 | if (obj8) { |
093d3ff1 | 15160 | { |
32fe5131 | 15161 | arg9 = static_cast<long >(SWIG_As_long(obj8)); |
093d3ff1 RD |
15162 | if (SWIG_arg_fail(9)) SWIG_fail; |
15163 | } | |
994141e6 | 15164 | } |
d14a1e28 | 15165 | if (obj9) { |
093d3ff1 RD |
15166 | { |
15167 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15168 | if (SWIG_arg_fail(10)) SWIG_fail; | |
15169 | if (arg10 == NULL) { | |
15170 | SWIG_null_ref("wxValidator"); | |
15171 | } | |
15172 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d14a1e28 RD |
15173 | } |
15174 | } | |
15175 | if (obj10) { | |
15176 | { | |
15177 | arg11 = wxString_in_helper(obj10); | |
15178 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 15179 | temp11 = true; |
d14a1e28 RD |
15180 | } |
15181 | } | |
15182 | { | |
15183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15184 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
15185 | ||
15186 | wxPyEndAllowThreads(__tstate); | |
15187 | if (PyErr_Occurred()) SWIG_fail; | |
15188 | } | |
4f89f6a3 RD |
15189 | { |
15190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15191 | } | |
d14a1e28 RD |
15192 | { |
15193 | if (temp11) | |
15194 | delete arg11; | |
15195 | } | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | { | |
15199 | if (temp11) | |
15200 | delete arg11; | |
15201 | } | |
15202 | return NULL; | |
15203 | } | |
15204 | ||
15205 | ||
c32bde28 | 15206 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15207 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15208 | wxSlider *arg1 = (wxSlider *) 0 ; |
15209 | int result; | |
15210 | PyObject * obj0 = 0 ; | |
15211 | char *kwnames[] = { | |
15212 | (char *) "self", NULL | |
15213 | }; | |
15214 | ||
15215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15218 | { |
15219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15220 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
15221 | ||
15222 | wxPyEndAllowThreads(__tstate); | |
15223 | if (PyErr_Occurred()) SWIG_fail; | |
15224 | } | |
093d3ff1 | 15225 | { |
32fe5131 | 15226 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15227 | } |
d14a1e28 RD |
15228 | return resultobj; |
15229 | fail: | |
15230 | return NULL; | |
15231 | } | |
15232 | ||
15233 | ||
c32bde28 | 15234 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15235 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15236 | wxSlider *arg1 = (wxSlider *) 0 ; |
15237 | int arg2 ; | |
15238 | PyObject * obj0 = 0 ; | |
994141e6 | 15239 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15240 | char *kwnames[] = { |
15241 | (char *) "self",(char *) "value", NULL | |
15242 | }; | |
15243 | ||
994141e6 | 15244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15247 | { | |
32fe5131 | 15248 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15249 | if (SWIG_arg_fail(2)) SWIG_fail; |
15250 | } | |
d14a1e28 RD |
15251 | { |
15252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15253 | (arg1)->SetValue(arg2); | |
15254 | ||
15255 | wxPyEndAllowThreads(__tstate); | |
15256 | if (PyErr_Occurred()) SWIG_fail; | |
15257 | } | |
15258 | Py_INCREF(Py_None); resultobj = Py_None; | |
15259 | return resultobj; | |
15260 | fail: | |
15261 | return NULL; | |
15262 | } | |
15263 | ||
15264 | ||
c32bde28 | 15265 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15266 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15267 | wxSlider *arg1 = (wxSlider *) 0 ; |
15268 | int arg2 ; | |
15269 | int arg3 ; | |
15270 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15271 | PyObject * obj1 = 0 ; |
15272 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15273 | char *kwnames[] = { |
15274 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
15275 | }; | |
15276 | ||
994141e6 | 15277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15280 | { | |
32fe5131 | 15281 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15282 | if (SWIG_arg_fail(2)) SWIG_fail; |
15283 | } | |
15284 | { | |
32fe5131 | 15285 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
15286 | if (SWIG_arg_fail(3)) SWIG_fail; |
15287 | } | |
d14a1e28 RD |
15288 | { |
15289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15290 | (arg1)->SetRange(arg2,arg3); | |
15291 | ||
15292 | wxPyEndAllowThreads(__tstate); | |
15293 | if (PyErr_Occurred()) SWIG_fail; | |
15294 | } | |
15295 | Py_INCREF(Py_None); resultobj = Py_None; | |
15296 | return resultobj; | |
15297 | fail: | |
15298 | return NULL; | |
15299 | } | |
15300 | ||
15301 | ||
c32bde28 | 15302 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15303 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15304 | wxSlider *arg1 = (wxSlider *) 0 ; |
15305 | int result; | |
15306 | PyObject * obj0 = 0 ; | |
15307 | char *kwnames[] = { | |
15308 | (char *) "self", NULL | |
15309 | }; | |
15310 | ||
15311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15314 | { |
15315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15316 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
15317 | ||
15318 | wxPyEndAllowThreads(__tstate); | |
15319 | if (PyErr_Occurred()) SWIG_fail; | |
15320 | } | |
093d3ff1 | 15321 | { |
32fe5131 | 15322 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15323 | } |
d14a1e28 RD |
15324 | return resultobj; |
15325 | fail: | |
15326 | return NULL; | |
15327 | } | |
15328 | ||
15329 | ||
c32bde28 | 15330 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15331 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15332 | wxSlider *arg1 = (wxSlider *) 0 ; |
15333 | int result; | |
15334 | PyObject * obj0 = 0 ; | |
15335 | char *kwnames[] = { | |
15336 | (char *) "self", NULL | |
15337 | }; | |
15338 | ||
15339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15340 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15341 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15342 | { |
15343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15344 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
15345 | ||
15346 | wxPyEndAllowThreads(__tstate); | |
15347 | if (PyErr_Occurred()) SWIG_fail; | |
15348 | } | |
093d3ff1 | 15349 | { |
32fe5131 | 15350 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15351 | } |
d14a1e28 RD |
15352 | return resultobj; |
15353 | fail: | |
15354 | return NULL; | |
15355 | } | |
15356 | ||
15357 | ||
c32bde28 | 15358 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15359 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15360 | wxSlider *arg1 = (wxSlider *) 0 ; |
15361 | int arg2 ; | |
15362 | PyObject * obj0 = 0 ; | |
994141e6 | 15363 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15364 | char *kwnames[] = { |
15365 | (char *) "self",(char *) "minValue", NULL | |
15366 | }; | |
15367 | ||
994141e6 | 15368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15371 | { | |
32fe5131 | 15372 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15373 | if (SWIG_arg_fail(2)) SWIG_fail; |
15374 | } | |
d14a1e28 RD |
15375 | { |
15376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15377 | (arg1)->SetMin(arg2); | |
15378 | ||
15379 | wxPyEndAllowThreads(__tstate); | |
15380 | if (PyErr_Occurred()) SWIG_fail; | |
15381 | } | |
15382 | Py_INCREF(Py_None); resultobj = Py_None; | |
15383 | return resultobj; | |
15384 | fail: | |
15385 | return NULL; | |
15386 | } | |
15387 | ||
15388 | ||
c32bde28 | 15389 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15390 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15391 | wxSlider *arg1 = (wxSlider *) 0 ; |
15392 | int arg2 ; | |
15393 | PyObject * obj0 = 0 ; | |
994141e6 | 15394 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15395 | char *kwnames[] = { |
15396 | (char *) "self",(char *) "maxValue", NULL | |
15397 | }; | |
15398 | ||
994141e6 | 15399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15402 | { | |
32fe5131 | 15403 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15404 | if (SWIG_arg_fail(2)) SWIG_fail; |
15405 | } | |
d14a1e28 RD |
15406 | { |
15407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15408 | (arg1)->SetMax(arg2); | |
15409 | ||
15410 | wxPyEndAllowThreads(__tstate); | |
15411 | if (PyErr_Occurred()) SWIG_fail; | |
15412 | } | |
15413 | Py_INCREF(Py_None); resultobj = Py_None; | |
15414 | return resultobj; | |
15415 | fail: | |
15416 | return NULL; | |
15417 | } | |
15418 | ||
15419 | ||
c32bde28 | 15420 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15421 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15422 | wxSlider *arg1 = (wxSlider *) 0 ; |
15423 | int arg2 ; | |
15424 | PyObject * obj0 = 0 ; | |
994141e6 | 15425 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15426 | char *kwnames[] = { |
15427 | (char *) "self",(char *) "lineSize", NULL | |
15428 | }; | |
15429 | ||
994141e6 | 15430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15431 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15433 | { | |
32fe5131 | 15434 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15435 | if (SWIG_arg_fail(2)) SWIG_fail; |
15436 | } | |
d14a1e28 RD |
15437 | { |
15438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15439 | (arg1)->SetLineSize(arg2); | |
15440 | ||
15441 | wxPyEndAllowThreads(__tstate); | |
15442 | if (PyErr_Occurred()) SWIG_fail; | |
15443 | } | |
15444 | Py_INCREF(Py_None); resultobj = Py_None; | |
15445 | return resultobj; | |
15446 | fail: | |
15447 | return NULL; | |
15448 | } | |
15449 | ||
15450 | ||
c32bde28 | 15451 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15452 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15453 | wxSlider *arg1 = (wxSlider *) 0 ; |
15454 | int arg2 ; | |
15455 | PyObject * obj0 = 0 ; | |
994141e6 | 15456 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15457 | char *kwnames[] = { |
15458 | (char *) "self",(char *) "pageSize", NULL | |
15459 | }; | |
15460 | ||
994141e6 | 15461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15464 | { | |
32fe5131 | 15465 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15466 | if (SWIG_arg_fail(2)) SWIG_fail; |
15467 | } | |
d14a1e28 RD |
15468 | { |
15469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15470 | (arg1)->SetPageSize(arg2); | |
15471 | ||
15472 | wxPyEndAllowThreads(__tstate); | |
15473 | if (PyErr_Occurred()) SWIG_fail; | |
15474 | } | |
15475 | Py_INCREF(Py_None); resultobj = Py_None; | |
15476 | return resultobj; | |
15477 | fail: | |
15478 | return NULL; | |
15479 | } | |
15480 | ||
15481 | ||
c32bde28 | 15482 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15483 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15484 | wxSlider *arg1 = (wxSlider *) 0 ; |
15485 | int result; | |
15486 | PyObject * obj0 = 0 ; | |
15487 | char *kwnames[] = { | |
15488 | (char *) "self", NULL | |
15489 | }; | |
15490 | ||
15491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15494 | { |
15495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15496 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
15497 | ||
15498 | wxPyEndAllowThreads(__tstate); | |
15499 | if (PyErr_Occurred()) SWIG_fail; | |
15500 | } | |
093d3ff1 | 15501 | { |
32fe5131 | 15502 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15503 | } |
d14a1e28 RD |
15504 | return resultobj; |
15505 | fail: | |
15506 | return NULL; | |
15507 | } | |
15508 | ||
15509 | ||
c32bde28 | 15510 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15511 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15512 | wxSlider *arg1 = (wxSlider *) 0 ; |
15513 | int result; | |
15514 | PyObject * obj0 = 0 ; | |
15515 | char *kwnames[] = { | |
15516 | (char *) "self", NULL | |
15517 | }; | |
15518 | ||
15519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15522 | { |
15523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15524 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
15525 | ||
15526 | wxPyEndAllowThreads(__tstate); | |
15527 | if (PyErr_Occurred()) SWIG_fail; | |
15528 | } | |
093d3ff1 | 15529 | { |
32fe5131 | 15530 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15531 | } |
d14a1e28 RD |
15532 | return resultobj; |
15533 | fail: | |
15534 | return NULL; | |
15535 | } | |
15536 | ||
15537 | ||
c32bde28 | 15538 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15539 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15540 | wxSlider *arg1 = (wxSlider *) 0 ; |
15541 | int arg2 ; | |
15542 | PyObject * obj0 = 0 ; | |
994141e6 | 15543 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15544 | char *kwnames[] = { |
15545 | (char *) "self",(char *) "lenPixels", NULL | |
15546 | }; | |
15547 | ||
994141e6 | 15548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15549 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15550 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15551 | { | |
32fe5131 | 15552 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15553 | if (SWIG_arg_fail(2)) SWIG_fail; |
15554 | } | |
d14a1e28 RD |
15555 | { |
15556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15557 | (arg1)->SetThumbLength(arg2); | |
15558 | ||
15559 | wxPyEndAllowThreads(__tstate); | |
15560 | if (PyErr_Occurred()) SWIG_fail; | |
15561 | } | |
15562 | Py_INCREF(Py_None); resultobj = Py_None; | |
15563 | return resultobj; | |
15564 | fail: | |
15565 | return NULL; | |
15566 | } | |
15567 | ||
15568 | ||
c32bde28 | 15569 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15570 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15571 | wxSlider *arg1 = (wxSlider *) 0 ; |
15572 | int result; | |
15573 | PyObject * obj0 = 0 ; | |
15574 | char *kwnames[] = { | |
15575 | (char *) "self", NULL | |
15576 | }; | |
15577 | ||
15578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15579 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15580 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15581 | { |
15582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15583 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
15584 | ||
15585 | wxPyEndAllowThreads(__tstate); | |
15586 | if (PyErr_Occurred()) SWIG_fail; | |
15587 | } | |
093d3ff1 | 15588 | { |
32fe5131 | 15589 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15590 | } |
d14a1e28 RD |
15591 | return resultobj; |
15592 | fail: | |
15593 | return NULL; | |
15594 | } | |
15595 | ||
15596 | ||
c32bde28 | 15597 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15598 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15599 | wxSlider *arg1 = (wxSlider *) 0 ; |
15600 | int arg2 ; | |
994141e6 | 15601 | int arg3 = (int) 1 ; |
d14a1e28 | 15602 | PyObject * obj0 = 0 ; |
994141e6 RD |
15603 | PyObject * obj1 = 0 ; |
15604 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15605 | char *kwnames[] = { |
15606 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
15607 | }; | |
15608 | ||
994141e6 | 15609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15610 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15611 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15612 | { | |
32fe5131 | 15613 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15614 | if (SWIG_arg_fail(2)) SWIG_fail; |
15615 | } | |
994141e6 | 15616 | if (obj2) { |
093d3ff1 | 15617 | { |
32fe5131 | 15618 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
15619 | if (SWIG_arg_fail(3)) SWIG_fail; |
15620 | } | |
994141e6 | 15621 | } |
d14a1e28 RD |
15622 | { |
15623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15624 | (arg1)->SetTickFreq(arg2,arg3); | |
15625 | ||
15626 | wxPyEndAllowThreads(__tstate); | |
15627 | if (PyErr_Occurred()) SWIG_fail; | |
15628 | } | |
15629 | Py_INCREF(Py_None); resultobj = Py_None; | |
15630 | return resultobj; | |
15631 | fail: | |
15632 | return NULL; | |
15633 | } | |
15634 | ||
15635 | ||
c32bde28 | 15636 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15637 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15638 | wxSlider *arg1 = (wxSlider *) 0 ; |
15639 | int result; | |
15640 | PyObject * obj0 = 0 ; | |
15641 | char *kwnames[] = { | |
15642 | (char *) "self", NULL | |
15643 | }; | |
15644 | ||
15645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15648 | { |
15649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15650 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
15651 | ||
15652 | wxPyEndAllowThreads(__tstate); | |
15653 | if (PyErr_Occurred()) SWIG_fail; | |
15654 | } | |
093d3ff1 | 15655 | { |
32fe5131 | 15656 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15657 | } |
d14a1e28 RD |
15658 | return resultobj; |
15659 | fail: | |
15660 | return NULL; | |
15661 | } | |
15662 | ||
15663 | ||
c32bde28 | 15664 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15665 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15666 | wxSlider *arg1 = (wxSlider *) 0 ; |
15667 | PyObject * obj0 = 0 ; | |
15668 | char *kwnames[] = { | |
15669 | (char *) "self", NULL | |
15670 | }; | |
15671 | ||
15672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15675 | { |
15676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15677 | (arg1)->ClearTicks(); | |
15678 | ||
15679 | wxPyEndAllowThreads(__tstate); | |
15680 | if (PyErr_Occurred()) SWIG_fail; | |
15681 | } | |
15682 | Py_INCREF(Py_None); resultobj = Py_None; | |
15683 | return resultobj; | |
15684 | fail: | |
15685 | return NULL; | |
15686 | } | |
15687 | ||
15688 | ||
c32bde28 | 15689 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15690 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15691 | wxSlider *arg1 = (wxSlider *) 0 ; |
15692 | int arg2 ; | |
15693 | PyObject * obj0 = 0 ; | |
994141e6 | 15694 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15695 | char *kwnames[] = { |
15696 | (char *) "self",(char *) "tickPos", NULL | |
15697 | }; | |
15698 | ||
994141e6 | 15699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15700 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15701 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15702 | { | |
32fe5131 | 15703 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15704 | if (SWIG_arg_fail(2)) SWIG_fail; |
15705 | } | |
d14a1e28 RD |
15706 | { |
15707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15708 | (arg1)->SetTick(arg2); | |
15709 | ||
15710 | wxPyEndAllowThreads(__tstate); | |
15711 | if (PyErr_Occurred()) SWIG_fail; | |
15712 | } | |
15713 | Py_INCREF(Py_None); resultobj = Py_None; | |
15714 | return resultobj; | |
15715 | fail: | |
15716 | return NULL; | |
15717 | } | |
15718 | ||
15719 | ||
c32bde28 | 15720 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15721 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15722 | wxSlider *arg1 = (wxSlider *) 0 ; |
15723 | PyObject * obj0 = 0 ; | |
15724 | char *kwnames[] = { | |
15725 | (char *) "self", NULL | |
15726 | }; | |
15727 | ||
15728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15729 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15730 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15731 | { |
15732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15733 | (arg1)->ClearSel(); | |
15734 | ||
15735 | wxPyEndAllowThreads(__tstate); | |
15736 | if (PyErr_Occurred()) SWIG_fail; | |
15737 | } | |
15738 | Py_INCREF(Py_None); resultobj = Py_None; | |
15739 | return resultobj; | |
15740 | fail: | |
15741 | return NULL; | |
15742 | } | |
15743 | ||
15744 | ||
c32bde28 | 15745 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15746 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15747 | wxSlider *arg1 = (wxSlider *) 0 ; |
15748 | int result; | |
15749 | PyObject * obj0 = 0 ; | |
15750 | char *kwnames[] = { | |
15751 | (char *) "self", NULL | |
15752 | }; | |
15753 | ||
15754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15757 | { |
15758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15759 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
15760 | ||
15761 | wxPyEndAllowThreads(__tstate); | |
15762 | if (PyErr_Occurred()) SWIG_fail; | |
15763 | } | |
093d3ff1 | 15764 | { |
32fe5131 | 15765 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15766 | } |
d14a1e28 RD |
15767 | return resultobj; |
15768 | fail: | |
15769 | return NULL; | |
15770 | } | |
15771 | ||
15772 | ||
c32bde28 | 15773 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15774 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15775 | wxSlider *arg1 = (wxSlider *) 0 ; |
15776 | int result; | |
15777 | PyObject * obj0 = 0 ; | |
15778 | char *kwnames[] = { | |
15779 | (char *) "self", NULL | |
15780 | }; | |
15781 | ||
15782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15785 | { |
15786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15787 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
15788 | ||
15789 | wxPyEndAllowThreads(__tstate); | |
15790 | if (PyErr_Occurred()) SWIG_fail; | |
15791 | } | |
093d3ff1 | 15792 | { |
32fe5131 | 15793 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15794 | } |
d14a1e28 RD |
15795 | return resultobj; |
15796 | fail: | |
15797 | return NULL; | |
15798 | } | |
15799 | ||
15800 | ||
c32bde28 | 15801 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15802 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15803 | wxSlider *arg1 = (wxSlider *) 0 ; |
15804 | int arg2 ; | |
15805 | int arg3 ; | |
15806 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15807 | PyObject * obj1 = 0 ; |
15808 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15809 | char *kwnames[] = { |
15810 | (char *) "self",(char *) "min",(char *) "max", NULL | |
15811 | }; | |
15812 | ||
994141e6 | 15813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15816 | { | |
32fe5131 | 15817 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15818 | if (SWIG_arg_fail(2)) SWIG_fail; |
15819 | } | |
15820 | { | |
32fe5131 | 15821 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
15822 | if (SWIG_arg_fail(3)) SWIG_fail; |
15823 | } | |
d14a1e28 RD |
15824 | { |
15825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15826 | (arg1)->SetSelection(arg2,arg3); | |
15827 | ||
15828 | wxPyEndAllowThreads(__tstate); | |
15829 | if (PyErr_Occurred()) SWIG_fail; | |
15830 | } | |
15831 | Py_INCREF(Py_None); resultobj = Py_None; | |
15832 | return resultobj; | |
15833 | fail: | |
15834 | return NULL; | |
15835 | } | |
15836 | ||
15837 | ||
c32bde28 | 15838 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15839 | PyObject *resultobj = NULL; |
093d3ff1 | 15840 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
15841 | wxVisualAttributes result; |
15842 | PyObject * obj0 = 0 ; | |
15843 | char *kwnames[] = { | |
15844 | (char *) "variant", NULL | |
15845 | }; | |
15846 | ||
15847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15848 | if (obj0) { | |
093d3ff1 | 15849 | { |
32fe5131 | 15850 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
15851 | if (SWIG_arg_fail(1)) SWIG_fail; |
15852 | } | |
22bfe96c RD |
15853 | } |
15854 | { | |
110da5b0 | 15855 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 15856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 15857 | result = wxSlider::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
15858 | |
15859 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 15860 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
15861 | } |
15862 | { | |
15863 | wxVisualAttributes * resultptr; | |
32fe5131 | 15864 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
15865 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
15866 | } | |
15867 | return resultobj; | |
15868 | fail: | |
15869 | return NULL; | |
15870 | } | |
15871 | ||
15872 | ||
c32bde28 | 15873 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15874 | PyObject *obj; |
15875 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15876 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
15877 | Py_INCREF(obj); | |
15878 | return Py_BuildValue((char *)""); | |
15879 | } | |
c32bde28 | 15880 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
15881 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
15882 | return 1; | |
15883 | } | |
15884 | ||
15885 | ||
093d3ff1 | 15886 | static PyObject *_wrap_ToggleButtonNameStr_get(void) { |
32fe5131 | 15887 | PyObject *pyobj = NULL; |
b2dc1044 RD |
15888 | |
15889 | { | |
15890 | #if wxUSE_UNICODE | |
15891 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15892 | #else | |
15893 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15894 | #endif | |
15895 | } | |
15896 | return pyobj; | |
15897 | } | |
15898 | ||
15899 | ||
c32bde28 | 15900 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15901 | PyObject *resultobj = NULL; |
d14a1e28 | 15902 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
15903 | int arg2 = (int) -1 ; |
15904 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15905 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
15906 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15907 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15908 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15909 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15910 | long arg6 = (long) 0 ; | |
15911 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
15912 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
15913 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
15914 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15915 | wxToggleButton *result; | |
ae8162c8 | 15916 | bool temp3 = false ; |
d14a1e28 RD |
15917 | wxPoint temp4 ; |
15918 | wxSize temp5 ; | |
ae8162c8 | 15919 | bool temp8 = false ; |
d14a1e28 | 15920 | PyObject * obj0 = 0 ; |
994141e6 | 15921 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15922 | PyObject * obj2 = 0 ; |
15923 | PyObject * obj3 = 0 ; | |
15924 | PyObject * obj4 = 0 ; | |
994141e6 | 15925 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15926 | PyObject * obj6 = 0 ; |
15927 | PyObject * obj7 = 0 ; | |
15928 | char *kwnames[] = { | |
15929 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15930 | }; | |
15931 | ||
248ed943 | 15932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
15933 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
15934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 15935 | if (obj1) { |
093d3ff1 | 15936 | { |
32fe5131 | 15937 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15938 | if (SWIG_arg_fail(2)) SWIG_fail; |
15939 | } | |
248ed943 RD |
15940 | } |
15941 | if (obj2) { | |
15942 | { | |
15943 | arg3 = wxString_in_helper(obj2); | |
15944 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15945 | temp3 = true; |
248ed943 | 15946 | } |
d14a1e28 RD |
15947 | } |
15948 | if (obj3) { | |
15949 | { | |
15950 | arg4 = &temp4; | |
15951 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15952 | } | |
15953 | } | |
15954 | if (obj4) { | |
15955 | { | |
15956 | arg5 = &temp5; | |
15957 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15958 | } | |
15959 | } | |
994141e6 | 15960 | if (obj5) { |
093d3ff1 | 15961 | { |
32fe5131 | 15962 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
15963 | if (SWIG_arg_fail(6)) SWIG_fail; |
15964 | } | |
994141e6 | 15965 | } |
d14a1e28 | 15966 | if (obj6) { |
093d3ff1 RD |
15967 | { |
15968 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15969 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15970 | if (arg7 == NULL) { | |
15971 | SWIG_null_ref("wxValidator"); | |
15972 | } | |
15973 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
15974 | } |
15975 | } | |
15976 | if (obj7) { | |
15977 | { | |
15978 | arg8 = wxString_in_helper(obj7); | |
15979 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 15980 | temp8 = true; |
d14a1e28 RD |
15981 | } |
15982 | } | |
15983 | { | |
e3b71cb8 | 15984 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15986 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
15987 | ||
15988 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15989 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15990 | } |
15afbcd0 | 15991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
15992 | { |
15993 | if (temp3) | |
15994 | delete arg3; | |
15995 | } | |
15996 | { | |
15997 | if (temp8) | |
15998 | delete arg8; | |
15999 | } | |
16000 | return resultobj; | |
16001 | fail: | |
16002 | { | |
16003 | if (temp3) | |
16004 | delete arg3; | |
16005 | } | |
16006 | { | |
16007 | if (temp8) | |
16008 | delete arg8; | |
16009 | } | |
16010 | return NULL; | |
16011 | } | |
16012 | ||
16013 | ||
c32bde28 | 16014 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16015 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16016 | wxToggleButton *result; |
16017 | char *kwnames[] = { | |
16018 | NULL | |
16019 | }; | |
16020 | ||
16021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
16022 | { | |
e3b71cb8 | 16023 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16025 | result = (wxToggleButton *)new wxToggleButton(); | |
16026 | ||
16027 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16028 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16029 | } |
15afbcd0 | 16030 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
16031 | return resultobj; |
16032 | fail: | |
16033 | return NULL; | |
16034 | } | |
16035 | ||
16036 | ||
c32bde28 | 16037 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16038 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16039 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; |
16040 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
16041 | int arg3 = (int) -1 ; |
16042 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16043 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
16044 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
16045 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16046 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16047 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16048 | long arg7 = (long) 0 ; | |
16049 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
16050 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
16051 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
16052 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16053 | bool result; | |
ae8162c8 | 16054 | bool temp4 = false ; |
d14a1e28 RD |
16055 | wxPoint temp5 ; |
16056 | wxSize temp6 ; | |
ae8162c8 | 16057 | bool temp9 = false ; |
d14a1e28 RD |
16058 | PyObject * obj0 = 0 ; |
16059 | PyObject * obj1 = 0 ; | |
994141e6 | 16060 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16061 | PyObject * obj3 = 0 ; |
16062 | PyObject * obj4 = 0 ; | |
16063 | PyObject * obj5 = 0 ; | |
994141e6 | 16064 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
16065 | PyObject * obj7 = 0 ; |
16066 | PyObject * obj8 = 0 ; | |
16067 | char *kwnames[] = { | |
16068 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16069 | }; | |
16070 | ||
248ed943 | 16071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
16072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16074 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16075 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 16076 | if (obj2) { |
093d3ff1 | 16077 | { |
32fe5131 | 16078 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
16079 | if (SWIG_arg_fail(3)) SWIG_fail; |
16080 | } | |
248ed943 RD |
16081 | } |
16082 | if (obj3) { | |
16083 | { | |
16084 | arg4 = wxString_in_helper(obj3); | |
16085 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16086 | temp4 = true; |
248ed943 | 16087 | } |
d14a1e28 RD |
16088 | } |
16089 | if (obj4) { | |
16090 | { | |
16091 | arg5 = &temp5; | |
16092 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
16093 | } | |
16094 | } | |
16095 | if (obj5) { | |
16096 | { | |
16097 | arg6 = &temp6; | |
16098 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
16099 | } | |
16100 | } | |
994141e6 | 16101 | if (obj6) { |
093d3ff1 | 16102 | { |
32fe5131 | 16103 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
16104 | if (SWIG_arg_fail(7)) SWIG_fail; |
16105 | } | |
994141e6 | 16106 | } |
d14a1e28 | 16107 | if (obj7) { |
093d3ff1 RD |
16108 | { |
16109 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
16110 | if (SWIG_arg_fail(8)) SWIG_fail; | |
16111 | if (arg8 == NULL) { | |
16112 | SWIG_null_ref("wxValidator"); | |
16113 | } | |
16114 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
16115 | } |
16116 | } | |
16117 | if (obj8) { | |
16118 | { | |
16119 | arg9 = wxString_in_helper(obj8); | |
16120 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 16121 | temp9 = true; |
d14a1e28 RD |
16122 | } |
16123 | } | |
16124 | { | |
16125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16126 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
16127 | ||
16128 | wxPyEndAllowThreads(__tstate); | |
16129 | if (PyErr_Occurred()) SWIG_fail; | |
16130 | } | |
4f89f6a3 RD |
16131 | { |
16132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16133 | } | |
d14a1e28 RD |
16134 | { |
16135 | if (temp4) | |
16136 | delete arg4; | |
16137 | } | |
16138 | { | |
16139 | if (temp9) | |
16140 | delete arg9; | |
16141 | } | |
16142 | return resultobj; | |
16143 | fail: | |
16144 | { | |
16145 | if (temp4) | |
16146 | delete arg4; | |
16147 | } | |
16148 | { | |
16149 | if (temp9) | |
16150 | delete arg9; | |
16151 | } | |
16152 | return NULL; | |
16153 | } | |
16154 | ||
16155 | ||
c32bde28 | 16156 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16157 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16158 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; |
16159 | bool arg2 ; | |
16160 | PyObject * obj0 = 0 ; | |
16161 | PyObject * obj1 = 0 ; | |
16162 | char *kwnames[] = { | |
16163 | (char *) "self",(char *) "value", NULL | |
16164 | }; | |
16165 | ||
16166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16167 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16168 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16169 | { | |
32fe5131 | 16170 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
16171 | if (SWIG_arg_fail(2)) SWIG_fail; |
16172 | } | |
d14a1e28 RD |
16173 | { |
16174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16175 | (arg1)->SetValue(arg2); | |
16176 | ||
16177 | wxPyEndAllowThreads(__tstate); | |
16178 | if (PyErr_Occurred()) SWIG_fail; | |
16179 | } | |
16180 | Py_INCREF(Py_None); resultobj = Py_None; | |
16181 | return resultobj; | |
16182 | fail: | |
16183 | return NULL; | |
16184 | } | |
16185 | ||
16186 | ||
c32bde28 | 16187 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16188 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16189 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; |
16190 | bool result; | |
16191 | PyObject * obj0 = 0 ; | |
16192 | char *kwnames[] = { | |
16193 | (char *) "self", NULL | |
16194 | }; | |
16195 | ||
16196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16199 | { |
16200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16201 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
16202 | ||
16203 | wxPyEndAllowThreads(__tstate); | |
16204 | if (PyErr_Occurred()) SWIG_fail; | |
16205 | } | |
4f89f6a3 RD |
16206 | { |
16207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16208 | } | |
d14a1e28 RD |
16209 | return resultobj; |
16210 | fail: | |
16211 | return NULL; | |
16212 | } | |
16213 | ||
16214 | ||
c32bde28 | 16215 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16216 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16217 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; |
16218 | wxString *arg2 = 0 ; | |
ae8162c8 | 16219 | bool temp2 = false ; |
d14a1e28 RD |
16220 | PyObject * obj0 = 0 ; |
16221 | PyObject * obj1 = 0 ; | |
16222 | char *kwnames[] = { | |
16223 | (char *) "self",(char *) "label", NULL | |
16224 | }; | |
16225 | ||
16226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16229 | { |
16230 | arg2 = wxString_in_helper(obj1); | |
16231 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16232 | temp2 = true; |
d14a1e28 RD |
16233 | } |
16234 | { | |
16235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16236 | (arg1)->SetLabel((wxString const &)*arg2); | |
16237 | ||
16238 | wxPyEndAllowThreads(__tstate); | |
16239 | if (PyErr_Occurred()) SWIG_fail; | |
16240 | } | |
16241 | Py_INCREF(Py_None); resultobj = Py_None; | |
16242 | { | |
16243 | if (temp2) | |
16244 | delete arg2; | |
16245 | } | |
16246 | return resultobj; | |
16247 | fail: | |
16248 | { | |
16249 | if (temp2) | |
16250 | delete arg2; | |
16251 | } | |
16252 | return NULL; | |
16253 | } | |
16254 | ||
16255 | ||
c32bde28 | 16256 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16257 | PyObject *resultobj = NULL; |
093d3ff1 | 16258 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
16259 | wxVisualAttributes result; |
16260 | PyObject * obj0 = 0 ; | |
16261 | char *kwnames[] = { | |
16262 | (char *) "variant", NULL | |
16263 | }; | |
16264 | ||
16265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
16266 | if (obj0) { | |
093d3ff1 | 16267 | { |
32fe5131 | 16268 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
16269 | if (SWIG_arg_fail(1)) SWIG_fail; |
16270 | } | |
22bfe96c RD |
16271 | } |
16272 | { | |
110da5b0 | 16273 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 16274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 16275 | result = wxToggleButton::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
16276 | |
16277 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 16278 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
16279 | } |
16280 | { | |
16281 | wxVisualAttributes * resultptr; | |
32fe5131 | 16282 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
16283 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
16284 | } | |
16285 | return resultobj; | |
16286 | fail: | |
16287 | return NULL; | |
16288 | } | |
16289 | ||
16290 | ||
c32bde28 | 16291 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16292 | PyObject *obj; |
16293 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16294 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
16295 | Py_INCREF(obj); | |
16296 | return Py_BuildValue((char *)""); | |
16297 | } | |
51b83b37 RD |
16298 | static int _wrap_NotebookNameStr_set(PyObject *) { |
16299 | PyErr_SetString(PyExc_TypeError,"Variable NotebookNameStr is read-only."); | |
b2dc1044 RD |
16300 | return 1; |
16301 | } | |
16302 | ||
16303 | ||
51b83b37 | 16304 | static PyObject *_wrap_NotebookNameStr_get(void) { |
32fe5131 | 16305 | PyObject *pyobj = NULL; |
b2dc1044 RD |
16306 | |
16307 | { | |
16308 | #if wxUSE_UNICODE | |
51b83b37 | 16309 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
b2dc1044 | 16310 | #else |
51b83b37 | 16311 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
b2dc1044 RD |
16312 | #endif |
16313 | } | |
16314 | return pyobj; | |
16315 | } | |
16316 | ||
16317 | ||
8ac8dba0 | 16318 | static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16319 | PyObject *resultobj = NULL; |
8ac8dba0 | 16320 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16321 | size_t result; |
16322 | PyObject * obj0 = 0 ; | |
16323 | char *kwnames[] = { | |
16324 | (char *) "self", NULL | |
16325 | }; | |
16326 | ||
8ac8dba0 | 16327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16330 | { |
16331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16332 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); |
d14a1e28 RD |
16333 | |
16334 | wxPyEndAllowThreads(__tstate); | |
16335 | if (PyErr_Occurred()) SWIG_fail; | |
16336 | } | |
093d3ff1 | 16337 | { |
32fe5131 | 16338 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 16339 | } |
d14a1e28 RD |
16340 | return resultobj; |
16341 | fail: | |
16342 | return NULL; | |
16343 | } | |
16344 | ||
16345 | ||
8ac8dba0 | 16346 | static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16347 | PyObject *resultobj = NULL; |
8ac8dba0 | 16348 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16349 | size_t arg2 ; |
16350 | wxWindow *result; | |
16351 | PyObject * obj0 = 0 ; | |
16352 | PyObject * obj1 = 0 ; | |
16353 | char *kwnames[] = { | |
16354 | (char *) "self",(char *) "n", NULL | |
16355 | }; | |
16356 | ||
8ac8dba0 | 16357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16358 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16359 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16360 | { | |
32fe5131 | 16361 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16362 | if (SWIG_arg_fail(2)) SWIG_fail; |
16363 | } | |
d14a1e28 RD |
16364 | { |
16365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16366 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
16367 | ||
16368 | wxPyEndAllowThreads(__tstate); | |
16369 | if (PyErr_Occurred()) SWIG_fail; | |
16370 | } | |
16371 | { | |
412d302d | 16372 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16373 | } |
16374 | return resultobj; | |
16375 | fail: | |
16376 | return NULL; | |
16377 | } | |
16378 | ||
16379 | ||
8ac8dba0 | 16380 | static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16381 | PyObject *resultobj = NULL; |
8ac8dba0 | 16382 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
8fb0e70a RD |
16383 | wxWindow *result; |
16384 | PyObject * obj0 = 0 ; | |
16385 | char *kwnames[] = { | |
16386 | (char *) "self", NULL | |
16387 | }; | |
16388 | ||
8ac8dba0 | 16389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8fb0e70a RD |
16392 | { |
16393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16394 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); |
8fb0e70a RD |
16395 | |
16396 | wxPyEndAllowThreads(__tstate); | |
16397 | if (PyErr_Occurred()) SWIG_fail; | |
16398 | } | |
16399 | { | |
16400 | resultobj = wxPyMake_wxObject(result, 0); | |
16401 | } | |
16402 | return resultobj; | |
16403 | fail: | |
16404 | return NULL; | |
16405 | } | |
16406 | ||
16407 | ||
8ac8dba0 | 16408 | static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16409 | PyObject *resultobj = NULL; |
8ac8dba0 | 16410 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16411 | int result; |
16412 | PyObject * obj0 = 0 ; | |
16413 | char *kwnames[] = { | |
16414 | (char *) "self", NULL | |
16415 | }; | |
16416 | ||
8ac8dba0 | 16417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16418 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16419 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16420 | { |
16421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16422 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); |
d14a1e28 RD |
16423 | |
16424 | wxPyEndAllowThreads(__tstate); | |
16425 | if (PyErr_Occurred()) SWIG_fail; | |
16426 | } | |
093d3ff1 | 16427 | { |
32fe5131 | 16428 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 16429 | } |
d14a1e28 RD |
16430 | return resultobj; |
16431 | fail: | |
16432 | return NULL; | |
16433 | } | |
16434 | ||
16435 | ||
8ac8dba0 | 16436 | static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16437 | PyObject *resultobj = NULL; |
8ac8dba0 | 16438 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16439 | size_t arg2 ; |
16440 | wxString *arg3 = 0 ; | |
16441 | bool result; | |
ae8162c8 | 16442 | bool temp3 = false ; |
d14a1e28 RD |
16443 | PyObject * obj0 = 0 ; |
16444 | PyObject * obj1 = 0 ; | |
16445 | PyObject * obj2 = 0 ; | |
16446 | char *kwnames[] = { | |
16447 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
16448 | }; | |
16449 | ||
8ac8dba0 | 16450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
16451 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16452 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16453 | { | |
32fe5131 | 16454 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16455 | if (SWIG_arg_fail(2)) SWIG_fail; |
16456 | } | |
d14a1e28 RD |
16457 | { |
16458 | arg3 = wxString_in_helper(obj2); | |
16459 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16460 | temp3 = true; |
d14a1e28 RD |
16461 | } |
16462 | { | |
16463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16464 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
16465 | ||
16466 | wxPyEndAllowThreads(__tstate); | |
16467 | if (PyErr_Occurred()) SWIG_fail; | |
16468 | } | |
4f89f6a3 RD |
16469 | { |
16470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16471 | } | |
d14a1e28 RD |
16472 | { |
16473 | if (temp3) | |
16474 | delete arg3; | |
16475 | } | |
16476 | return resultobj; | |
16477 | fail: | |
16478 | { | |
16479 | if (temp3) | |
16480 | delete arg3; | |
16481 | } | |
16482 | return NULL; | |
16483 | } | |
16484 | ||
16485 | ||
8ac8dba0 | 16486 | static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16487 | PyObject *resultobj = NULL; |
8ac8dba0 | 16488 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16489 | size_t arg2 ; |
16490 | wxString result; | |
16491 | PyObject * obj0 = 0 ; | |
16492 | PyObject * obj1 = 0 ; | |
16493 | char *kwnames[] = { | |
16494 | (char *) "self",(char *) "n", NULL | |
16495 | }; | |
16496 | ||
8ac8dba0 | 16497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16500 | { | |
32fe5131 | 16501 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16502 | if (SWIG_arg_fail(2)) SWIG_fail; |
16503 | } | |
d14a1e28 RD |
16504 | { |
16505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16506 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); |
d14a1e28 RD |
16507 | |
16508 | wxPyEndAllowThreads(__tstate); | |
16509 | if (PyErr_Occurred()) SWIG_fail; | |
16510 | } | |
16511 | { | |
16512 | #if wxUSE_UNICODE | |
16513 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16514 | #else | |
16515 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16516 | #endif | |
16517 | } | |
16518 | return resultobj; | |
16519 | fail: | |
16520 | return NULL; | |
16521 | } | |
16522 | ||
16523 | ||
8ac8dba0 | 16524 | static PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16525 | PyObject *resultobj = NULL; |
8ac8dba0 | 16526 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16527 | wxImageList *arg2 = (wxImageList *) 0 ; |
16528 | PyObject * obj0 = 0 ; | |
16529 | PyObject * obj1 = 0 ; | |
16530 | char *kwnames[] = { | |
16531 | (char *) "self",(char *) "imageList", NULL | |
16532 | }; | |
16533 | ||
8ac8dba0 | 16534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16537 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
16538 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16539 | { |
16540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16541 | (arg1)->SetImageList(arg2); | |
16542 | ||
16543 | wxPyEndAllowThreads(__tstate); | |
16544 | if (PyErr_Occurred()) SWIG_fail; | |
16545 | } | |
16546 | Py_INCREF(Py_None); resultobj = Py_None; | |
16547 | return resultobj; | |
16548 | fail: | |
16549 | return NULL; | |
16550 | } | |
16551 | ||
16552 | ||
8ac8dba0 | 16553 | static PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16554 | PyObject *resultobj = NULL; |
8ac8dba0 | 16555 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16556 | wxImageList *arg2 = (wxImageList *) 0 ; |
16557 | PyObject * obj0 = 0 ; | |
16558 | PyObject * obj1 = 0 ; | |
16559 | char *kwnames[] = { | |
16560 | (char *) "self",(char *) "imageList", NULL | |
16561 | }; | |
16562 | ||
8ac8dba0 | 16563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16564 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16565 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16566 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
16567 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16568 | { |
16569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16570 | (arg1)->AssignImageList(arg2); | |
16571 | ||
16572 | wxPyEndAllowThreads(__tstate); | |
16573 | if (PyErr_Occurred()) SWIG_fail; | |
16574 | } | |
16575 | Py_INCREF(Py_None); resultobj = Py_None; | |
16576 | return resultobj; | |
16577 | fail: | |
16578 | return NULL; | |
16579 | } | |
16580 | ||
16581 | ||
8ac8dba0 | 16582 | static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16583 | PyObject *resultobj = NULL; |
8ac8dba0 | 16584 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16585 | wxImageList *result; |
16586 | PyObject * obj0 = 0 ; | |
16587 | char *kwnames[] = { | |
16588 | (char *) "self", NULL | |
16589 | }; | |
16590 | ||
8ac8dba0 | 16591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16592 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16593 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16594 | { |
16595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16596 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); |
d14a1e28 RD |
16597 | |
16598 | wxPyEndAllowThreads(__tstate); | |
16599 | if (PyErr_Occurred()) SWIG_fail; | |
16600 | } | |
16601 | { | |
412d302d | 16602 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16603 | } |
16604 | return resultobj; | |
16605 | fail: | |
16606 | return NULL; | |
16607 | } | |
16608 | ||
16609 | ||
8ac8dba0 | 16610 | static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16611 | PyObject *resultobj = NULL; |
8ac8dba0 | 16612 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16613 | size_t arg2 ; |
16614 | int result; | |
16615 | PyObject * obj0 = 0 ; | |
16616 | PyObject * obj1 = 0 ; | |
16617 | char *kwnames[] = { | |
16618 | (char *) "self",(char *) "n", NULL | |
16619 | }; | |
16620 | ||
8ac8dba0 | 16621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16622 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16623 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16624 | { | |
32fe5131 | 16625 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16626 | if (SWIG_arg_fail(2)) SWIG_fail; |
16627 | } | |
d14a1e28 RD |
16628 | { |
16629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16630 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); |
d14a1e28 RD |
16631 | |
16632 | wxPyEndAllowThreads(__tstate); | |
16633 | if (PyErr_Occurred()) SWIG_fail; | |
16634 | } | |
093d3ff1 | 16635 | { |
32fe5131 | 16636 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 16637 | } |
d14a1e28 RD |
16638 | return resultobj; |
16639 | fail: | |
16640 | return NULL; | |
16641 | } | |
16642 | ||
16643 | ||
8ac8dba0 | 16644 | static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16645 | PyObject *resultobj = NULL; |
8ac8dba0 | 16646 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16647 | size_t arg2 ; |
16648 | int arg3 ; | |
16649 | bool result; | |
16650 | PyObject * obj0 = 0 ; | |
16651 | PyObject * obj1 = 0 ; | |
994141e6 | 16652 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16653 | char *kwnames[] = { |
16654 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
16655 | }; | |
16656 | ||
8ac8dba0 | 16657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
16658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16660 | { | |
32fe5131 | 16661 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16662 | if (SWIG_arg_fail(2)) SWIG_fail; |
16663 | } | |
16664 | { | |
32fe5131 | 16665 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
16666 | if (SWIG_arg_fail(3)) SWIG_fail; |
16667 | } | |
d14a1e28 RD |
16668 | { |
16669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16670 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
16671 | ||
16672 | wxPyEndAllowThreads(__tstate); | |
16673 | if (PyErr_Occurred()) SWIG_fail; | |
16674 | } | |
4f89f6a3 RD |
16675 | { |
16676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16677 | } | |
d14a1e28 RD |
16678 | return resultobj; |
16679 | fail: | |
16680 | return NULL; | |
16681 | } | |
16682 | ||
16683 | ||
8ac8dba0 | 16684 | static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16685 | PyObject *resultobj = NULL; |
8ac8dba0 | 16686 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16687 | wxSize *arg2 = 0 ; |
16688 | wxSize temp2 ; | |
16689 | PyObject * obj0 = 0 ; | |
16690 | PyObject * obj1 = 0 ; | |
16691 | char *kwnames[] = { | |
16692 | (char *) "self",(char *) "size", NULL | |
16693 | }; | |
16694 | ||
8ac8dba0 | 16695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16696 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16697 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16698 | { |
16699 | arg2 = &temp2; | |
16700 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16701 | } | |
16702 | { | |
16703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16704 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
16705 | ||
16706 | wxPyEndAllowThreads(__tstate); | |
16707 | if (PyErr_Occurred()) SWIG_fail; | |
16708 | } | |
16709 | Py_INCREF(Py_None); resultobj = Py_None; | |
16710 | return resultobj; | |
16711 | fail: | |
16712 | return NULL; | |
16713 | } | |
16714 | ||
16715 | ||
8ac8dba0 | 16716 | static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16717 | PyObject *resultobj = NULL; |
8ac8dba0 | 16718 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16719 | wxSize *arg2 = 0 ; |
16720 | wxSize result; | |
16721 | wxSize temp2 ; | |
16722 | PyObject * obj0 = 0 ; | |
16723 | PyObject * obj1 = 0 ; | |
16724 | char *kwnames[] = { | |
16725 | (char *) "self",(char *) "sizePage", NULL | |
16726 | }; | |
16727 | ||
8ac8dba0 | 16728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16729 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16730 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16731 | { |
16732 | arg2 = &temp2; | |
16733 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16734 | } | |
16735 | { | |
16736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16737 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); |
d14a1e28 RD |
16738 | |
16739 | wxPyEndAllowThreads(__tstate); | |
16740 | if (PyErr_Occurred()) SWIG_fail; | |
16741 | } | |
16742 | { | |
16743 | wxSize * resultptr; | |
32fe5131 | 16744 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 16745 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16746 | } |
16747 | return resultobj; | |
16748 | fail: | |
16749 | return NULL; | |
16750 | } | |
16751 | ||
16752 | ||
8ac8dba0 | 16753 | static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16754 | PyObject *resultobj = NULL; |
8ac8dba0 | 16755 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16756 | size_t arg2 ; |
16757 | bool result; | |
16758 | PyObject * obj0 = 0 ; | |
16759 | PyObject * obj1 = 0 ; | |
16760 | char *kwnames[] = { | |
16761 | (char *) "self",(char *) "n", NULL | |
16762 | }; | |
16763 | ||
8ac8dba0 | 16764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16767 | { | |
32fe5131 | 16768 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16769 | if (SWIG_arg_fail(2)) SWIG_fail; |
16770 | } | |
d14a1e28 RD |
16771 | { |
16772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16773 | result = (bool)(arg1)->DeletePage(arg2); | |
16774 | ||
16775 | wxPyEndAllowThreads(__tstate); | |
16776 | if (PyErr_Occurred()) SWIG_fail; | |
16777 | } | |
4f89f6a3 RD |
16778 | { |
16779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16780 | } | |
d14a1e28 RD |
16781 | return resultobj; |
16782 | fail: | |
16783 | return NULL; | |
16784 | } | |
16785 | ||
16786 | ||
8ac8dba0 | 16787 | static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16788 | PyObject *resultobj = NULL; |
8ac8dba0 | 16789 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16790 | size_t arg2 ; |
16791 | bool result; | |
16792 | PyObject * obj0 = 0 ; | |
16793 | PyObject * obj1 = 0 ; | |
16794 | char *kwnames[] = { | |
16795 | (char *) "self",(char *) "n", NULL | |
16796 | }; | |
16797 | ||
8ac8dba0 | 16798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16801 | { | |
32fe5131 | 16802 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16803 | if (SWIG_arg_fail(2)) SWIG_fail; |
16804 | } | |
d14a1e28 RD |
16805 | { |
16806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16807 | result = (bool)(arg1)->RemovePage(arg2); | |
16808 | ||
16809 | wxPyEndAllowThreads(__tstate); | |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
16811 | } | |
4f89f6a3 RD |
16812 | { |
16813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16814 | } | |
d14a1e28 RD |
16815 | return resultobj; |
16816 | fail: | |
16817 | return NULL; | |
16818 | } | |
16819 | ||
16820 | ||
8ac8dba0 | 16821 | static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16822 | PyObject *resultobj = NULL; |
8ac8dba0 | 16823 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16824 | bool result; |
16825 | PyObject * obj0 = 0 ; | |
16826 | char *kwnames[] = { | |
16827 | (char *) "self", NULL | |
16828 | }; | |
16829 | ||
8ac8dba0 | 16830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16833 | { |
16834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16835 | result = (bool)(arg1)->DeleteAllPages(); | |
16836 | ||
16837 | wxPyEndAllowThreads(__tstate); | |
16838 | if (PyErr_Occurred()) SWIG_fail; | |
16839 | } | |
4f89f6a3 RD |
16840 | { |
16841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16842 | } | |
d14a1e28 RD |
16843 | return resultobj; |
16844 | fail: | |
16845 | return NULL; | |
16846 | } | |
16847 | ||
16848 | ||
8ac8dba0 | 16849 | static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16850 | PyObject *resultobj = NULL; |
8ac8dba0 | 16851 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16852 | wxWindow *arg2 = (wxWindow *) 0 ; |
16853 | wxString *arg3 = 0 ; | |
ae8162c8 | 16854 | bool arg4 = (bool) false ; |
d14a1e28 RD |
16855 | int arg5 = (int) -1 ; |
16856 | bool result; | |
ae8162c8 | 16857 | bool temp3 = false ; |
d14a1e28 RD |
16858 | PyObject * obj0 = 0 ; |
16859 | PyObject * obj1 = 0 ; | |
16860 | PyObject * obj2 = 0 ; | |
16861 | PyObject * obj3 = 0 ; | |
994141e6 | 16862 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16863 | char *kwnames[] = { |
16864 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16865 | }; | |
16866 | ||
8ac8dba0 | 16867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
16868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16870 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16871 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16872 | { |
16873 | arg3 = wxString_in_helper(obj2); | |
16874 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16875 | temp3 = true; |
d14a1e28 RD |
16876 | } |
16877 | if (obj3) { | |
093d3ff1 | 16878 | { |
32fe5131 | 16879 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
16880 | if (SWIG_arg_fail(4)) SWIG_fail; |
16881 | } | |
994141e6 RD |
16882 | } |
16883 | if (obj4) { | |
093d3ff1 | 16884 | { |
32fe5131 | 16885 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
16886 | if (SWIG_arg_fail(5)) SWIG_fail; |
16887 | } | |
d14a1e28 RD |
16888 | } |
16889 | { | |
16890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16891 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
16892 | ||
16893 | wxPyEndAllowThreads(__tstate); | |
16894 | if (PyErr_Occurred()) SWIG_fail; | |
16895 | } | |
4f89f6a3 RD |
16896 | { |
16897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16898 | } | |
d14a1e28 RD |
16899 | { |
16900 | if (temp3) | |
16901 | delete arg3; | |
16902 | } | |
16903 | return resultobj; | |
16904 | fail: | |
16905 | { | |
16906 | if (temp3) | |
16907 | delete arg3; | |
16908 | } | |
16909 | return NULL; | |
16910 | } | |
16911 | ||
16912 | ||
8ac8dba0 | 16913 | static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16914 | PyObject *resultobj = NULL; |
8ac8dba0 | 16915 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16916 | size_t arg2 ; |
16917 | wxWindow *arg3 = (wxWindow *) 0 ; | |
16918 | wxString *arg4 = 0 ; | |
ae8162c8 | 16919 | bool arg5 = (bool) false ; |
d14a1e28 RD |
16920 | int arg6 = (int) -1 ; |
16921 | bool result; | |
ae8162c8 | 16922 | bool temp4 = false ; |
d14a1e28 RD |
16923 | PyObject * obj0 = 0 ; |
16924 | PyObject * obj1 = 0 ; | |
16925 | PyObject * obj2 = 0 ; | |
16926 | PyObject * obj3 = 0 ; | |
16927 | PyObject * obj4 = 0 ; | |
994141e6 | 16928 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
16929 | char *kwnames[] = { |
16930 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16931 | }; | |
16932 | ||
8ac8dba0 | 16933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
16934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16936 | { | |
32fe5131 | 16937 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16938 | if (SWIG_arg_fail(2)) SWIG_fail; |
16939 | } | |
16940 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16941 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
16942 | { |
16943 | arg4 = wxString_in_helper(obj3); | |
16944 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16945 | temp4 = true; |
d14a1e28 RD |
16946 | } |
16947 | if (obj4) { | |
093d3ff1 | 16948 | { |
32fe5131 | 16949 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
093d3ff1 RD |
16950 | if (SWIG_arg_fail(5)) SWIG_fail; |
16951 | } | |
994141e6 RD |
16952 | } |
16953 | if (obj5) { | |
093d3ff1 | 16954 | { |
32fe5131 | 16955 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
16956 | if (SWIG_arg_fail(6)) SWIG_fail; |
16957 | } | |
d14a1e28 RD |
16958 | } |
16959 | { | |
16960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16961 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
16962 | ||
16963 | wxPyEndAllowThreads(__tstate); | |
16964 | if (PyErr_Occurred()) SWIG_fail; | |
16965 | } | |
4f89f6a3 RD |
16966 | { |
16967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16968 | } | |
d14a1e28 RD |
16969 | { |
16970 | if (temp4) | |
16971 | delete arg4; | |
16972 | } | |
16973 | return resultobj; | |
16974 | fail: | |
16975 | { | |
16976 | if (temp4) | |
16977 | delete arg4; | |
16978 | } | |
16979 | return NULL; | |
16980 | } | |
16981 | ||
16982 | ||
8ac8dba0 | 16983 | static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16984 | PyObject *resultobj = NULL; |
8ac8dba0 | 16985 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16986 | size_t arg2 ; |
16987 | int result; | |
16988 | PyObject * obj0 = 0 ; | |
16989 | PyObject * obj1 = 0 ; | |
16990 | char *kwnames[] = { | |
16991 | (char *) "self",(char *) "n", NULL | |
16992 | }; | |
16993 | ||
8ac8dba0 | 16994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16995 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16996 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16997 | { | |
32fe5131 | 16998 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16999 | if (SWIG_arg_fail(2)) SWIG_fail; |
17000 | } | |
d14a1e28 RD |
17001 | { |
17002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17003 | result = (int)(arg1)->SetSelection(arg2); | |
17004 | ||
17005 | wxPyEndAllowThreads(__tstate); | |
17006 | if (PyErr_Occurred()) SWIG_fail; | |
17007 | } | |
093d3ff1 | 17008 | { |
32fe5131 | 17009 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17010 | } |
d14a1e28 RD |
17011 | return resultobj; |
17012 | fail: | |
17013 | return NULL; | |
17014 | } | |
17015 | ||
17016 | ||
8ac8dba0 | 17017 | static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17018 | PyObject *resultobj = NULL; |
8ac8dba0 | 17019 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
ae8162c8 | 17020 | bool arg2 = (bool) true ; |
d14a1e28 RD |
17021 | PyObject * obj0 = 0 ; |
17022 | PyObject * obj1 = 0 ; | |
17023 | char *kwnames[] = { | |
17024 | (char *) "self",(char *) "forward", NULL | |
17025 | }; | |
17026 | ||
8ac8dba0 | 17027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17028 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
17029 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 17030 | if (obj1) { |
093d3ff1 | 17031 | { |
32fe5131 | 17032 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
17033 | if (SWIG_arg_fail(2)) SWIG_fail; |
17034 | } | |
d14a1e28 RD |
17035 | } |
17036 | { | |
17037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17038 | (arg1)->AdvanceSelection(arg2); | |
17039 | ||
17040 | wxPyEndAllowThreads(__tstate); | |
17041 | if (PyErr_Occurred()) SWIG_fail; | |
17042 | } | |
17043 | Py_INCREF(Py_None); resultobj = Py_None; | |
17044 | return resultobj; | |
17045 | fail: | |
17046 | return NULL; | |
17047 | } | |
17048 | ||
17049 | ||
8ac8dba0 | 17050 | static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17051 | PyObject *resultobj = NULL; |
093d3ff1 | 17052 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
17053 | wxVisualAttributes result; |
17054 | PyObject * obj0 = 0 ; | |
17055 | char *kwnames[] = { | |
17056 | (char *) "variant", NULL | |
17057 | }; | |
17058 | ||
8ac8dba0 | 17059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
22bfe96c | 17060 | if (obj0) { |
093d3ff1 | 17061 | { |
32fe5131 | 17062 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
17063 | if (SWIG_arg_fail(1)) SWIG_fail; |
17064 | } | |
22bfe96c RD |
17065 | } |
17066 | { | |
110da5b0 | 17067 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 17068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 17069 | result = wxBookCtrlBase::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
17070 | |
17071 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 17072 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
17073 | } |
17074 | { | |
17075 | wxVisualAttributes * resultptr; | |
32fe5131 | 17076 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
17077 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
17078 | } | |
17079 | return resultobj; | |
17080 | fail: | |
17081 | return NULL; | |
17082 | } | |
17083 | ||
17084 | ||
8ac8dba0 | 17085 | static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17086 | PyObject *obj; |
17087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 17088 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj); |
d14a1e28 RD |
17089 | Py_INCREF(obj); |
17090 | return Py_BuildValue((char *)""); | |
17091 | } | |
8ac8dba0 | 17092 | static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17093 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17094 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
17095 | int arg2 = (int) 0 ; | |
17096 | int arg3 = (int) -1 ; | |
17097 | int arg4 = (int) -1 ; | |
8ac8dba0 | 17098 | wxBookCtrlBaseEvent *result; |
994141e6 RD |
17099 | PyObject * obj0 = 0 ; |
17100 | PyObject * obj1 = 0 ; | |
17101 | PyObject * obj2 = 0 ; | |
17102 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17103 | char *kwnames[] = { |
17104 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17105 | }; | |
17106 | ||
8ac8dba0 | 17107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
994141e6 | 17108 | if (obj0) { |
093d3ff1 | 17109 | { |
32fe5131 | 17110 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
17111 | if (SWIG_arg_fail(1)) SWIG_fail; |
17112 | } | |
994141e6 RD |
17113 | } |
17114 | if (obj1) { | |
093d3ff1 | 17115 | { |
32fe5131 | 17116 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17117 | if (SWIG_arg_fail(2)) SWIG_fail; |
17118 | } | |
994141e6 RD |
17119 | } |
17120 | if (obj2) { | |
093d3ff1 | 17121 | { |
32fe5131 | 17122 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
17123 | if (SWIG_arg_fail(3)) SWIG_fail; |
17124 | } | |
994141e6 RD |
17125 | } |
17126 | if (obj3) { | |
093d3ff1 | 17127 | { |
32fe5131 | 17128 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
17129 | if (SWIG_arg_fail(4)) SWIG_fail; |
17130 | } | |
994141e6 | 17131 | } |
d14a1e28 RD |
17132 | { |
17133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17134 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17135 | |
17136 | wxPyEndAllowThreads(__tstate); | |
17137 | if (PyErr_Occurred()) SWIG_fail; | |
17138 | } | |
8ac8dba0 | 17139 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1); |
d14a1e28 RD |
17140 | return resultobj; |
17141 | fail: | |
17142 | return NULL; | |
17143 | } | |
17144 | ||
17145 | ||
8ac8dba0 | 17146 | static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17147 | PyObject *resultobj = NULL; |
8ac8dba0 | 17148 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17149 | int result; |
17150 | PyObject * obj0 = 0 ; | |
17151 | char *kwnames[] = { | |
17152 | (char *) "self", NULL | |
17153 | }; | |
17154 | ||
8ac8dba0 | 17155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17156 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17157 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17158 | { |
17159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17160 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); |
d14a1e28 RD |
17161 | |
17162 | wxPyEndAllowThreads(__tstate); | |
17163 | if (PyErr_Occurred()) SWIG_fail; | |
17164 | } | |
093d3ff1 | 17165 | { |
32fe5131 | 17166 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17167 | } |
d14a1e28 RD |
17168 | return resultobj; |
17169 | fail: | |
17170 | return NULL; | |
17171 | } | |
17172 | ||
17173 | ||
8ac8dba0 | 17174 | static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17175 | PyObject *resultobj = NULL; |
8ac8dba0 | 17176 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17177 | int arg2 ; |
17178 | PyObject * obj0 = 0 ; | |
994141e6 | 17179 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17180 | char *kwnames[] = { |
17181 | (char *) "self",(char *) "nSel", NULL | |
17182 | }; | |
17183 | ||
8ac8dba0 | 17184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17187 | { | |
32fe5131 | 17188 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17189 | if (SWIG_arg_fail(2)) SWIG_fail; |
17190 | } | |
d14a1e28 RD |
17191 | { |
17192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17193 | (arg1)->SetSelection(arg2); | |
17194 | ||
17195 | wxPyEndAllowThreads(__tstate); | |
17196 | if (PyErr_Occurred()) SWIG_fail; | |
17197 | } | |
17198 | Py_INCREF(Py_None); resultobj = Py_None; | |
17199 | return resultobj; | |
17200 | fail: | |
17201 | return NULL; | |
17202 | } | |
17203 | ||
17204 | ||
8ac8dba0 | 17205 | static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17206 | PyObject *resultobj = NULL; |
8ac8dba0 | 17207 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17208 | int result; |
17209 | PyObject * obj0 = 0 ; | |
17210 | char *kwnames[] = { | |
17211 | (char *) "self", NULL | |
17212 | }; | |
17213 | ||
8ac8dba0 | 17214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17215 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17216 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17217 | { |
17218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17219 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); |
d14a1e28 RD |
17220 | |
17221 | wxPyEndAllowThreads(__tstate); | |
17222 | if (PyErr_Occurred()) SWIG_fail; | |
17223 | } | |
093d3ff1 | 17224 | { |
32fe5131 | 17225 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17226 | } |
d14a1e28 RD |
17227 | return resultobj; |
17228 | fail: | |
17229 | return NULL; | |
17230 | } | |
17231 | ||
17232 | ||
8ac8dba0 | 17233 | static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17234 | PyObject *resultobj = NULL; |
8ac8dba0 | 17235 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17236 | int arg2 ; |
17237 | PyObject * obj0 = 0 ; | |
994141e6 | 17238 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17239 | char *kwnames[] = { |
17240 | (char *) "self",(char *) "nOldSel", NULL | |
17241 | }; | |
17242 | ||
8ac8dba0 | 17243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17246 | { | |
32fe5131 | 17247 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17248 | if (SWIG_arg_fail(2)) SWIG_fail; |
17249 | } | |
d14a1e28 RD |
17250 | { |
17251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17252 | (arg1)->SetOldSelection(arg2); | |
17253 | ||
17254 | wxPyEndAllowThreads(__tstate); | |
17255 | if (PyErr_Occurred()) SWIG_fail; | |
17256 | } | |
17257 | Py_INCREF(Py_None); resultobj = Py_None; | |
17258 | return resultobj; | |
17259 | fail: | |
17260 | return NULL; | |
17261 | } | |
17262 | ||
17263 | ||
8ac8dba0 | 17264 | static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17265 | PyObject *obj; |
17266 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 17267 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj); |
d14a1e28 RD |
17268 | Py_INCREF(obj); |
17269 | return Py_BuildValue((char *)""); | |
17270 | } | |
c32bde28 | 17271 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17272 | PyObject *resultobj = NULL; |
d14a1e28 | 17273 | wxWindow *arg1 = (wxWindow *) 0 ; |
4f89f6a3 | 17274 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17275 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17276 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17277 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17278 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17279 | long arg5 = (long) 0 ; | |
51b83b37 | 17280 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; |
d14a1e28 RD |
17281 | wxString *arg6 = (wxString *) &arg6_defvalue ; |
17282 | wxNotebook *result; | |
17283 | wxPoint temp3 ; | |
17284 | wxSize temp4 ; | |
ae8162c8 | 17285 | bool temp6 = false ; |
d14a1e28 | 17286 | PyObject * obj0 = 0 ; |
994141e6 | 17287 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17288 | PyObject * obj2 = 0 ; |
17289 | PyObject * obj3 = 0 ; | |
994141e6 | 17290 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17291 | PyObject * obj5 = 0 ; |
17292 | char *kwnames[] = { | |
17293 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17294 | }; | |
17295 | ||
4f89f6a3 | 17296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
17297 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 | 17299 | if (obj1) { |
093d3ff1 | 17300 | { |
32fe5131 | 17301 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17302 | if (SWIG_arg_fail(2)) SWIG_fail; |
17303 | } | |
4f89f6a3 | 17304 | } |
d14a1e28 RD |
17305 | if (obj2) { |
17306 | { | |
17307 | arg3 = &temp3; | |
17308 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17309 | } | |
17310 | } | |
17311 | if (obj3) { | |
17312 | { | |
17313 | arg4 = &temp4; | |
17314 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17315 | } | |
17316 | } | |
994141e6 | 17317 | if (obj4) { |
093d3ff1 | 17318 | { |
32fe5131 | 17319 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
17320 | if (SWIG_arg_fail(5)) SWIG_fail; |
17321 | } | |
994141e6 | 17322 | } |
d14a1e28 RD |
17323 | if (obj5) { |
17324 | { | |
17325 | arg6 = wxString_in_helper(obj5); | |
17326 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17327 | temp6 = true; |
d14a1e28 RD |
17328 | } |
17329 | } | |
17330 | { | |
e3b71cb8 | 17331 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17333 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17334 | ||
17335 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17336 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17337 | } |
b0f7404b | 17338 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
17339 | { |
17340 | if (temp6) | |
17341 | delete arg6; | |
17342 | } | |
17343 | return resultobj; | |
17344 | fail: | |
17345 | { | |
17346 | if (temp6) | |
17347 | delete arg6; | |
17348 | } | |
17349 | return NULL; | |
17350 | } | |
17351 | ||
17352 | ||
c32bde28 | 17353 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17354 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17355 | wxNotebook *result; |
17356 | char *kwnames[] = { | |
17357 | NULL | |
17358 | }; | |
17359 | ||
17360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
17361 | { | |
e3b71cb8 | 17362 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17364 | result = (wxNotebook *)new wxNotebook(); | |
17365 | ||
17366 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17367 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17368 | } |
b0f7404b | 17369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
17370 | return resultobj; |
17371 | fail: | |
17372 | return NULL; | |
17373 | } | |
17374 | ||
17375 | ||
c32bde28 | 17376 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17377 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17378 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17379 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 17380 | int arg3 = (int) -1 ; |
d14a1e28 RD |
17381 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17382 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17383 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17384 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17385 | long arg6 = (long) 0 ; | |
51b83b37 | 17386 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; |
d14a1e28 RD |
17387 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
17388 | bool result; | |
17389 | wxPoint temp4 ; | |
17390 | wxSize temp5 ; | |
ae8162c8 | 17391 | bool temp7 = false ; |
d14a1e28 RD |
17392 | PyObject * obj0 = 0 ; |
17393 | PyObject * obj1 = 0 ; | |
994141e6 | 17394 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17395 | PyObject * obj3 = 0 ; |
17396 | PyObject * obj4 = 0 ; | |
994141e6 | 17397 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17398 | PyObject * obj6 = 0 ; |
17399 | char *kwnames[] = { | |
17400 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17401 | }; | |
17402 | ||
248ed943 | 17403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
17404 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17405 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17406 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17407 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 17408 | if (obj2) { |
093d3ff1 | 17409 | { |
32fe5131 | 17410 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
17411 | if (SWIG_arg_fail(3)) SWIG_fail; |
17412 | } | |
248ed943 | 17413 | } |
d14a1e28 RD |
17414 | if (obj3) { |
17415 | { | |
17416 | arg4 = &temp4; | |
17417 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17418 | } | |
17419 | } | |
17420 | if (obj4) { | |
17421 | { | |
17422 | arg5 = &temp5; | |
17423 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17424 | } | |
17425 | } | |
994141e6 | 17426 | if (obj5) { |
093d3ff1 | 17427 | { |
32fe5131 | 17428 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
17429 | if (SWIG_arg_fail(6)) SWIG_fail; |
17430 | } | |
994141e6 | 17431 | } |
d14a1e28 RD |
17432 | if (obj6) { |
17433 | { | |
17434 | arg7 = wxString_in_helper(obj6); | |
17435 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17436 | temp7 = true; |
d14a1e28 RD |
17437 | } |
17438 | } | |
17439 | { | |
17440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17441 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17442 | ||
17443 | wxPyEndAllowThreads(__tstate); | |
17444 | if (PyErr_Occurred()) SWIG_fail; | |
17445 | } | |
4f89f6a3 RD |
17446 | { |
17447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17448 | } | |
d14a1e28 RD |
17449 | { |
17450 | if (temp7) | |
17451 | delete arg7; | |
17452 | } | |
17453 | return resultobj; | |
17454 | fail: | |
17455 | { | |
17456 | if (temp7) | |
17457 | delete arg7; | |
17458 | } | |
17459 | return NULL; | |
17460 | } | |
17461 | ||
17462 | ||
c32bde28 | 17463 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17464 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17465 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17466 | int result; | |
17467 | PyObject * obj0 = 0 ; | |
17468 | char *kwnames[] = { | |
17469 | (char *) "self", NULL | |
17470 | }; | |
17471 | ||
17472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17475 | { |
17476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17477 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
17478 | ||
17479 | wxPyEndAllowThreads(__tstate); | |
17480 | if (PyErr_Occurred()) SWIG_fail; | |
17481 | } | |
093d3ff1 | 17482 | { |
32fe5131 | 17483 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17484 | } |
d14a1e28 RD |
17485 | return resultobj; |
17486 | fail: | |
17487 | return NULL; | |
17488 | } | |
17489 | ||
17490 | ||
c32bde28 | 17491 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17492 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17493 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17494 | wxSize *arg2 = 0 ; | |
17495 | wxSize temp2 ; | |
17496 | PyObject * obj0 = 0 ; | |
17497 | PyObject * obj1 = 0 ; | |
17498 | char *kwnames[] = { | |
17499 | (char *) "self",(char *) "padding", NULL | |
17500 | }; | |
17501 | ||
17502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17505 | { |
17506 | arg2 = &temp2; | |
17507 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17508 | } | |
17509 | { | |
17510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17511 | (arg1)->SetPadding((wxSize const &)*arg2); | |
17512 | ||
17513 | wxPyEndAllowThreads(__tstate); | |
17514 | if (PyErr_Occurred()) SWIG_fail; | |
17515 | } | |
17516 | Py_INCREF(Py_None); resultobj = Py_None; | |
17517 | return resultobj; | |
17518 | fail: | |
17519 | return NULL; | |
17520 | } | |
17521 | ||
17522 | ||
c32bde28 | 17523 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17524 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17525 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17526 | wxSize *arg2 = 0 ; | |
17527 | wxSize temp2 ; | |
17528 | PyObject * obj0 = 0 ; | |
17529 | PyObject * obj1 = 0 ; | |
17530 | char *kwnames[] = { | |
17531 | (char *) "self",(char *) "sz", NULL | |
17532 | }; | |
17533 | ||
17534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17537 | { |
17538 | arg2 = &temp2; | |
17539 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17540 | } | |
17541 | { | |
17542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17543 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
17544 | ||
17545 | wxPyEndAllowThreads(__tstate); | |
17546 | if (PyErr_Occurred()) SWIG_fail; | |
17547 | } | |
17548 | Py_INCREF(Py_None); resultobj = Py_None; | |
17549 | return resultobj; | |
17550 | fail: | |
17551 | return NULL; | |
17552 | } | |
17553 | ||
17554 | ||
c32bde28 | 17555 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17556 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17557 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17558 | wxPoint *arg2 = 0 ; | |
17559 | long *arg3 = (long *) 0 ; | |
17560 | int result; | |
17561 | wxPoint temp2 ; | |
17562 | long temp3 ; | |
c32bde28 | 17563 | int res3 = 0 ; |
d14a1e28 RD |
17564 | PyObject * obj0 = 0 ; |
17565 | PyObject * obj1 = 0 ; | |
17566 | char *kwnames[] = { | |
17567 | (char *) "self",(char *) "pt", NULL | |
17568 | }; | |
17569 | ||
c32bde28 | 17570 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 17571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17572 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17573 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17574 | { |
17575 | arg2 = &temp2; | |
17576 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17577 | } | |
17578 | { | |
17579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17580 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
17581 | ||
17582 | wxPyEndAllowThreads(__tstate); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
17584 | } | |
093d3ff1 | 17585 | { |
32fe5131 | 17586 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17587 | } |
c32bde28 RD |
17588 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
17589 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
17590 | return resultobj; |
17591 | fail: | |
17592 | return NULL; | |
17593 | } | |
17594 | ||
17595 | ||
c32bde28 | 17596 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17597 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17598 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17599 | wxSize *arg2 = 0 ; | |
17600 | wxSize result; | |
17601 | wxSize temp2 ; | |
17602 | PyObject * obj0 = 0 ; | |
17603 | PyObject * obj1 = 0 ; | |
17604 | char *kwnames[] = { | |
17605 | (char *) "self",(char *) "sizePage", NULL | |
17606 | }; | |
17607 | ||
17608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17609 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17610 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17611 | { |
17612 | arg2 = &temp2; | |
17613 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17614 | } | |
17615 | { | |
17616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17617 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
17618 | ||
17619 | wxPyEndAllowThreads(__tstate); | |
17620 | if (PyErr_Occurred()) SWIG_fail; | |
17621 | } | |
17622 | { | |
17623 | wxSize * resultptr; | |
32fe5131 | 17624 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 17625 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17626 | } |
17627 | return resultobj; | |
17628 | fail: | |
17629 | return NULL; | |
17630 | } | |
17631 | ||
17632 | ||
8e738329 | 17633 | static PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17634 | PyObject *resultobj = NULL; |
8e738329 RD |
17635 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17636 | wxColour result; | |
17637 | PyObject * obj0 = 0 ; | |
17638 | char *kwnames[] = { | |
17639 | (char *) "self", NULL | |
17640 | }; | |
17641 | ||
17642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetThemeBackgroundColour",kwnames,&obj0)) goto fail; | |
17643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17645 | { | |
17646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17647 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
17648 | ||
17649 | wxPyEndAllowThreads(__tstate); | |
17650 | if (PyErr_Occurred()) SWIG_fail; | |
17651 | } | |
17652 | { | |
17653 | wxColour * resultptr; | |
32fe5131 | 17654 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
8e738329 RD |
17655 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
17656 | } | |
17657 | return resultobj; | |
17658 | fail: | |
17659 | return NULL; | |
17660 | } | |
17661 | ||
17662 | ||
c32bde28 | 17663 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17664 | PyObject *resultobj = NULL; |
093d3ff1 | 17665 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
17666 | wxVisualAttributes result; |
17667 | PyObject * obj0 = 0 ; | |
17668 | char *kwnames[] = { | |
17669 | (char *) "variant", NULL | |
17670 | }; | |
17671 | ||
17672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
17673 | if (obj0) { | |
093d3ff1 | 17674 | { |
32fe5131 | 17675 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
17676 | if (SWIG_arg_fail(1)) SWIG_fail; |
17677 | } | |
22bfe96c RD |
17678 | } |
17679 | { | |
110da5b0 | 17680 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 17681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 17682 | result = wxNotebook::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
17683 | |
17684 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 17685 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
17686 | } |
17687 | { | |
17688 | wxVisualAttributes * resultptr; | |
32fe5131 | 17689 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
17690 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
17691 | } | |
17692 | return resultobj; | |
17693 | fail: | |
17694 | return NULL; | |
17695 | } | |
17696 | ||
17697 | ||
c32bde28 | 17698 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17699 | PyObject *obj; |
17700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17701 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
17702 | Py_INCREF(obj); | |
17703 | return Py_BuildValue((char *)""); | |
17704 | } | |
c32bde28 | 17705 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17706 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17707 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
17708 | int arg2 = (int) 0 ; | |
17709 | int arg3 = (int) -1 ; | |
17710 | int arg4 = (int) -1 ; | |
17711 | wxNotebookEvent *result; | |
994141e6 RD |
17712 | PyObject * obj0 = 0 ; |
17713 | PyObject * obj1 = 0 ; | |
17714 | PyObject * obj2 = 0 ; | |
17715 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17716 | char *kwnames[] = { |
17717 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17718 | }; | |
17719 | ||
994141e6 RD |
17720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17721 | if (obj0) { | |
093d3ff1 | 17722 | { |
32fe5131 | 17723 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
17724 | if (SWIG_arg_fail(1)) SWIG_fail; |
17725 | } | |
994141e6 RD |
17726 | } |
17727 | if (obj1) { | |
093d3ff1 | 17728 | { |
32fe5131 | 17729 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17730 | if (SWIG_arg_fail(2)) SWIG_fail; |
17731 | } | |
994141e6 RD |
17732 | } |
17733 | if (obj2) { | |
093d3ff1 | 17734 | { |
32fe5131 | 17735 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
17736 | if (SWIG_arg_fail(3)) SWIG_fail; |
17737 | } | |
994141e6 RD |
17738 | } |
17739 | if (obj3) { | |
093d3ff1 | 17740 | { |
32fe5131 | 17741 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
17742 | if (SWIG_arg_fail(4)) SWIG_fail; |
17743 | } | |
994141e6 | 17744 | } |
d14a1e28 RD |
17745 | { |
17746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17747 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
17748 | ||
17749 | wxPyEndAllowThreads(__tstate); | |
17750 | if (PyErr_Occurred()) SWIG_fail; | |
17751 | } | |
15afbcd0 | 17752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
17753 | return resultobj; |
17754 | fail: | |
17755 | return NULL; | |
17756 | } | |
17757 | ||
17758 | ||
c32bde28 | 17759 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17760 | PyObject *obj; |
17761 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17762 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
17763 | Py_INCREF(obj); | |
17764 | return Py_BuildValue((char *)""); | |
17765 | } | |
c32bde28 | 17766 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17767 | PyObject *resultobj = NULL; |
d14a1e28 | 17768 | wxWindow *arg1 = (wxWindow *) 0 ; |
4f89f6a3 | 17769 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17770 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17771 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17772 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17773 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17774 | long arg5 = (long) 0 ; | |
17775 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17776 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17777 | wxListbook *result; | |
17778 | wxPoint temp3 ; | |
17779 | wxSize temp4 ; | |
ae8162c8 | 17780 | bool temp6 = false ; |
d14a1e28 | 17781 | PyObject * obj0 = 0 ; |
994141e6 | 17782 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17783 | PyObject * obj2 = 0 ; |
17784 | PyObject * obj3 = 0 ; | |
994141e6 | 17785 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17786 | PyObject * obj5 = 0 ; |
17787 | char *kwnames[] = { | |
17788 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17789 | }; | |
17790 | ||
4f89f6a3 | 17791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
17792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 | 17794 | if (obj1) { |
093d3ff1 | 17795 | { |
32fe5131 | 17796 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17797 | if (SWIG_arg_fail(2)) SWIG_fail; |
17798 | } | |
4f89f6a3 | 17799 | } |
d14a1e28 RD |
17800 | if (obj2) { |
17801 | { | |
17802 | arg3 = &temp3; | |
17803 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17804 | } | |
17805 | } | |
17806 | if (obj3) { | |
17807 | { | |
17808 | arg4 = &temp4; | |
17809 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17810 | } | |
17811 | } | |
994141e6 | 17812 | if (obj4) { |
093d3ff1 | 17813 | { |
32fe5131 | 17814 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
17815 | if (SWIG_arg_fail(5)) SWIG_fail; |
17816 | } | |
994141e6 | 17817 | } |
d14a1e28 RD |
17818 | if (obj5) { |
17819 | { | |
17820 | arg6 = wxString_in_helper(obj5); | |
17821 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17822 | temp6 = true; |
d14a1e28 RD |
17823 | } |
17824 | } | |
17825 | { | |
e3b71cb8 | 17826 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17828 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17829 | ||
17830 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17831 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17832 | } |
15afbcd0 | 17833 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
17834 | { |
17835 | if (temp6) | |
17836 | delete arg6; | |
17837 | } | |
17838 | return resultobj; | |
17839 | fail: | |
17840 | { | |
17841 | if (temp6) | |
17842 | delete arg6; | |
17843 | } | |
17844 | return NULL; | |
17845 | } | |
17846 | ||
17847 | ||
c32bde28 | 17848 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17849 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17850 | wxListbook *result; |
17851 | char *kwnames[] = { | |
17852 | NULL | |
17853 | }; | |
17854 | ||
17855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
17856 | { | |
e3b71cb8 | 17857 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17859 | result = (wxListbook *)new wxListbook(); | |
17860 | ||
17861 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17862 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17863 | } |
15afbcd0 | 17864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
17865 | return resultobj; |
17866 | fail: | |
17867 | return NULL; | |
17868 | } | |
17869 | ||
17870 | ||
c32bde28 | 17871 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17872 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17873 | wxListbook *arg1 = (wxListbook *) 0 ; |
17874 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 17875 | int arg3 = (int) -1 ; |
d14a1e28 RD |
17876 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17877 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17878 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17879 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17880 | long arg6 = (long) 0 ; | |
17881 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17882 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17883 | bool result; | |
17884 | wxPoint temp4 ; | |
17885 | wxSize temp5 ; | |
ae8162c8 | 17886 | bool temp7 = false ; |
d14a1e28 RD |
17887 | PyObject * obj0 = 0 ; |
17888 | PyObject * obj1 = 0 ; | |
994141e6 | 17889 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17890 | PyObject * obj3 = 0 ; |
17891 | PyObject * obj4 = 0 ; | |
994141e6 | 17892 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17893 | PyObject * obj6 = 0 ; |
17894 | char *kwnames[] = { | |
17895 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17896 | }; | |
17897 | ||
248ed943 | 17898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
17899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17901 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17902 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 17903 | if (obj2) { |
093d3ff1 | 17904 | { |
32fe5131 | 17905 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
17906 | if (SWIG_arg_fail(3)) SWIG_fail; |
17907 | } | |
248ed943 | 17908 | } |
d14a1e28 RD |
17909 | if (obj3) { |
17910 | { | |
17911 | arg4 = &temp4; | |
17912 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17913 | } | |
17914 | } | |
17915 | if (obj4) { | |
17916 | { | |
17917 | arg5 = &temp5; | |
17918 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17919 | } | |
17920 | } | |
994141e6 | 17921 | if (obj5) { |
093d3ff1 | 17922 | { |
32fe5131 | 17923 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
17924 | if (SWIG_arg_fail(6)) SWIG_fail; |
17925 | } | |
994141e6 | 17926 | } |
d14a1e28 RD |
17927 | if (obj6) { |
17928 | { | |
17929 | arg7 = wxString_in_helper(obj6); | |
17930 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17931 | temp7 = true; |
d14a1e28 RD |
17932 | } |
17933 | } | |
17934 | { | |
17935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17936 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17937 | ||
17938 | wxPyEndAllowThreads(__tstate); | |
17939 | if (PyErr_Occurred()) SWIG_fail; | |
17940 | } | |
4f89f6a3 RD |
17941 | { |
17942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17943 | } | |
d14a1e28 RD |
17944 | { |
17945 | if (temp7) | |
17946 | delete arg7; | |
17947 | } | |
17948 | return resultobj; | |
17949 | fail: | |
17950 | { | |
17951 | if (temp7) | |
17952 | delete arg7; | |
17953 | } | |
17954 | return NULL; | |
17955 | } | |
17956 | ||
17957 | ||
c32bde28 | 17958 | static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17959 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17960 | wxListbook *arg1 = (wxListbook *) 0 ; |
17961 | bool result; | |
17962 | PyObject * obj0 = 0 ; | |
17963 | char *kwnames[] = { | |
17964 | (char *) "self", NULL | |
17965 | }; | |
17966 | ||
17967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17970 | { |
17971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17972 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
17973 | ||
17974 | wxPyEndAllowThreads(__tstate); | |
17975 | if (PyErr_Occurred()) SWIG_fail; | |
17976 | } | |
4f89f6a3 RD |
17977 | { |
17978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17979 | } | |
d14a1e28 RD |
17980 | return resultobj; |
17981 | fail: | |
17982 | return NULL; | |
17983 | } | |
17984 | ||
17985 | ||
1fbf26be | 17986 | static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17987 | PyObject *resultobj = NULL; |
1fbf26be RD |
17988 | wxListbook *arg1 = (wxListbook *) 0 ; |
17989 | wxListView *result; | |
17990 | PyObject * obj0 = 0 ; | |
17991 | char *kwnames[] = { | |
17992 | (char *) "self", NULL | |
17993 | }; | |
17994 | ||
17995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1fbf26be RD |
17998 | { |
17999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18000 | result = (wxListView *)(arg1)->GetListView(); | |
18001 | ||
18002 | wxPyEndAllowThreads(__tstate); | |
18003 | if (PyErr_Occurred()) SWIG_fail; | |
18004 | } | |
18005 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0); | |
18006 | return resultobj; | |
18007 | fail: | |
18008 | return NULL; | |
18009 | } | |
18010 | ||
18011 | ||
c32bde28 | 18012 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18013 | PyObject *obj; |
18014 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18015 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
18016 | Py_INCREF(obj); | |
18017 | return Py_BuildValue((char *)""); | |
18018 | } | |
c32bde28 | 18019 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18020 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18021 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
18022 | int arg2 = (int) 0 ; | |
18023 | int arg3 = (int) -1 ; | |
18024 | int arg4 = (int) -1 ; | |
18025 | wxListbookEvent *result; | |
994141e6 RD |
18026 | PyObject * obj0 = 0 ; |
18027 | PyObject * obj1 = 0 ; | |
18028 | PyObject * obj2 = 0 ; | |
18029 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18030 | char *kwnames[] = { |
18031 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
18032 | }; | |
18033 | ||
994141e6 RD |
18034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
18035 | if (obj0) { | |
093d3ff1 | 18036 | { |
32fe5131 | 18037 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
18038 | if (SWIG_arg_fail(1)) SWIG_fail; |
18039 | } | |
994141e6 RD |
18040 | } |
18041 | if (obj1) { | |
093d3ff1 | 18042 | { |
32fe5131 | 18043 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
18044 | if (SWIG_arg_fail(2)) SWIG_fail; |
18045 | } | |
994141e6 RD |
18046 | } |
18047 | if (obj2) { | |
093d3ff1 | 18048 | { |
32fe5131 | 18049 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
18050 | if (SWIG_arg_fail(3)) SWIG_fail; |
18051 | } | |
994141e6 RD |
18052 | } |
18053 | if (obj3) { | |
093d3ff1 | 18054 | { |
32fe5131 | 18055 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
18056 | if (SWIG_arg_fail(4)) SWIG_fail; |
18057 | } | |
994141e6 | 18058 | } |
d14a1e28 RD |
18059 | { |
18060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18061 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
18062 | ||
18063 | wxPyEndAllowThreads(__tstate); | |
18064 | if (PyErr_Occurred()) SWIG_fail; | |
18065 | } | |
15afbcd0 | 18066 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
18067 | return resultobj; |
18068 | fail: | |
18069 | return NULL; | |
18070 | } | |
18071 | ||
18072 | ||
c32bde28 | 18073 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18074 | PyObject *obj; |
18075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18076 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
18077 | Py_INCREF(obj); | |
18078 | return Py_BuildValue((char *)""); | |
18079 | } | |
2ef75293 | 18080 | static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18081 | PyObject *resultobj = NULL; |
2ef75293 RD |
18082 | wxWindow *arg1 = (wxWindow *) 0 ; |
18083 | int arg2 ; | |
18084 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
18085 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18086 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18087 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18088 | long arg5 = (long) 0 ; | |
18089 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
18090 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18091 | wxChoicebook *result; | |
18092 | wxPoint temp3 ; | |
18093 | wxSize temp4 ; | |
ae8162c8 | 18094 | bool temp6 = false ; |
2ef75293 RD |
18095 | PyObject * obj0 = 0 ; |
18096 | PyObject * obj1 = 0 ; | |
18097 | PyObject * obj2 = 0 ; | |
18098 | PyObject * obj3 = 0 ; | |
18099 | PyObject * obj4 = 0 ; | |
18100 | PyObject * obj5 = 0 ; | |
18101 | char *kwnames[] = { | |
18102 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18103 | }; | |
18104 | ||
18105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
18106 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
18107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18108 | { | |
32fe5131 | 18109 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
18110 | if (SWIG_arg_fail(2)) SWIG_fail; |
18111 | } | |
2ef75293 RD |
18112 | if (obj2) { |
18113 | { | |
18114 | arg3 = &temp3; | |
18115 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18116 | } | |
18117 | } | |
18118 | if (obj3) { | |
18119 | { | |
18120 | arg4 = &temp4; | |
18121 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18122 | } | |
18123 | } | |
18124 | if (obj4) { | |
093d3ff1 | 18125 | { |
32fe5131 | 18126 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
18127 | if (SWIG_arg_fail(5)) SWIG_fail; |
18128 | } | |
2ef75293 RD |
18129 | } |
18130 | if (obj5) { | |
18131 | { | |
18132 | arg6 = wxString_in_helper(obj5); | |
18133 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 18134 | temp6 = true; |
2ef75293 RD |
18135 | } |
18136 | } | |
18137 | { | |
18138 | if (!wxPyCheckForApp()) SWIG_fail; | |
18139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18140 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18141 | ||
18142 | wxPyEndAllowThreads(__tstate); | |
18143 | if (PyErr_Occurred()) SWIG_fail; | |
18144 | } | |
18145 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
18146 | { | |
18147 | if (temp6) | |
18148 | delete arg6; | |
18149 | } | |
18150 | return resultobj; | |
18151 | fail: | |
18152 | { | |
18153 | if (temp6) | |
18154 | delete arg6; | |
18155 | } | |
18156 | return NULL; | |
18157 | } | |
18158 | ||
18159 | ||
18160 | static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18161 | PyObject *resultobj = NULL; |
2ef75293 RD |
18162 | wxChoicebook *result; |
18163 | char *kwnames[] = { | |
18164 | NULL | |
18165 | }; | |
18166 | ||
18167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail; | |
18168 | { | |
18169 | if (!wxPyCheckForApp()) SWIG_fail; | |
18170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18171 | result = (wxChoicebook *)new wxChoicebook(); | |
18172 | ||
18173 | wxPyEndAllowThreads(__tstate); | |
18174 | if (PyErr_Occurred()) SWIG_fail; | |
18175 | } | |
18176 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
18177 | return resultobj; | |
18178 | fail: | |
18179 | return NULL; | |
18180 | } | |
18181 | ||
18182 | ||
18183 | static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18184 | PyObject *resultobj = NULL; |
2ef75293 RD |
18185 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; |
18186 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18187 | int arg3 ; | |
18188 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18189 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18190 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18191 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18192 | long arg6 = (long) 0 ; | |
18193 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
18194 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18195 | bool result; | |
18196 | wxPoint temp4 ; | |
18197 | wxSize temp5 ; | |
ae8162c8 | 18198 | bool temp7 = false ; |
2ef75293 RD |
18199 | PyObject * obj0 = 0 ; |
18200 | PyObject * obj1 = 0 ; | |
18201 | PyObject * obj2 = 0 ; | |
18202 | PyObject * obj3 = 0 ; | |
18203 | PyObject * obj4 = 0 ; | |
18204 | PyObject * obj5 = 0 ; | |
18205 | PyObject * obj6 = 0 ; | |
18206 | char *kwnames[] = { | |
18207 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18208 | }; | |
18209 | ||
18210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
18211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18213 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18214 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18215 | { | |
32fe5131 | 18216 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
18217 | if (SWIG_arg_fail(3)) SWIG_fail; |
18218 | } | |
2ef75293 RD |
18219 | if (obj3) { |
18220 | { | |
18221 | arg4 = &temp4; | |
18222 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18223 | } | |
18224 | } | |
18225 | if (obj4) { | |
18226 | { | |
18227 | arg5 = &temp5; | |
18228 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18229 | } | |
18230 | } | |
18231 | if (obj5) { | |
093d3ff1 | 18232 | { |
32fe5131 | 18233 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
18234 | if (SWIG_arg_fail(6)) SWIG_fail; |
18235 | } | |
2ef75293 RD |
18236 | } |
18237 | if (obj6) { | |
18238 | { | |
18239 | arg7 = wxString_in_helper(obj6); | |
18240 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 18241 | temp7 = true; |
2ef75293 RD |
18242 | } |
18243 | } | |
18244 | { | |
18245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18246 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18247 | ||
18248 | wxPyEndAllowThreads(__tstate); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
18250 | } | |
18251 | { | |
18252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18253 | } | |
18254 | { | |
18255 | if (temp7) | |
18256 | delete arg7; | |
18257 | } | |
18258 | return resultobj; | |
18259 | fail: | |
18260 | { | |
18261 | if (temp7) | |
18262 | delete arg7; | |
18263 | } | |
18264 | return NULL; | |
18265 | } | |
18266 | ||
18267 | ||
18268 | static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18269 | PyObject *resultobj = NULL; |
2ef75293 RD |
18270 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; |
18271 | bool result; | |
18272 | PyObject * obj0 = 0 ; | |
18273 | char *kwnames[] = { | |
18274 | (char *) "self", NULL | |
18275 | }; | |
18276 | ||
18277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
18280 | { |
18281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18282 | result = (bool)((wxChoicebook const *)arg1)->IsVertical(); | |
18283 | ||
18284 | wxPyEndAllowThreads(__tstate); | |
18285 | if (PyErr_Occurred()) SWIG_fail; | |
18286 | } | |
18287 | { | |
18288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18289 | } | |
18290 | return resultobj; | |
18291 | fail: | |
18292 | return NULL; | |
18293 | } | |
18294 | ||
18295 | ||
70b7a5fe | 18296 | static PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18297 | PyObject *resultobj = NULL; |
70b7a5fe RD |
18298 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; |
18299 | wxChoice *result; | |
18300 | PyObject * obj0 = 0 ; | |
18301 | char *kwnames[] = { | |
18302 | (char *) "self", NULL | |
18303 | }; | |
18304 | ||
18305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_GetChoiceCtrl",kwnames,&obj0)) goto fail; | |
18306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); | |
18307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18308 | { | |
18309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18310 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
18311 | ||
18312 | wxPyEndAllowThreads(__tstate); | |
18313 | if (PyErr_Occurred()) SWIG_fail; | |
18314 | } | |
18315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 0); | |
18316 | return resultobj; | |
18317 | fail: | |
18318 | return NULL; | |
18319 | } | |
18320 | ||
18321 | ||
2ef75293 | 18322 | static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18323 | PyObject *resultobj = NULL; |
2ef75293 RD |
18324 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; |
18325 | bool result; | |
18326 | PyObject * obj0 = 0 ; | |
18327 | char *kwnames[] = { | |
18328 | (char *) "self", NULL | |
18329 | }; | |
18330 | ||
18331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18332 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18333 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
18334 | { |
18335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18336 | result = (bool)(arg1)->DeleteAllPages(); | |
18337 | ||
18338 | wxPyEndAllowThreads(__tstate); | |
18339 | if (PyErr_Occurred()) SWIG_fail; | |
18340 | } | |
18341 | { | |
18342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18343 | } | |
18344 | return resultobj; | |
18345 | fail: | |
18346 | return NULL; | |
18347 | } | |
18348 | ||
18349 | ||
18350 | static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) { | |
18351 | PyObject *obj; | |
18352 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18353 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj); | |
18354 | Py_INCREF(obj); | |
18355 | return Py_BuildValue((char *)""); | |
18356 | } | |
18357 | static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18358 | PyObject *resultobj = NULL; |
2ef75293 RD |
18359 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
18360 | int arg2 = (int) 0 ; | |
18361 | int arg3 = (int) -1 ; | |
18362 | int arg4 = (int) -1 ; | |
18363 | wxChoicebookEvent *result; | |
18364 | PyObject * obj0 = 0 ; | |
18365 | PyObject * obj1 = 0 ; | |
18366 | PyObject * obj2 = 0 ; | |
18367 | PyObject * obj3 = 0 ; | |
18368 | char *kwnames[] = { | |
18369 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
18370 | }; | |
18371 | ||
18372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18373 | if (obj0) { | |
093d3ff1 | 18374 | { |
32fe5131 | 18375 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
18376 | if (SWIG_arg_fail(1)) SWIG_fail; |
18377 | } | |
2ef75293 RD |
18378 | } |
18379 | if (obj1) { | |
093d3ff1 | 18380 | { |
32fe5131 | 18381 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
18382 | if (SWIG_arg_fail(2)) SWIG_fail; |
18383 | } | |
2ef75293 RD |
18384 | } |
18385 | if (obj2) { | |
093d3ff1 | 18386 | { |
32fe5131 | 18387 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
18388 | if (SWIG_arg_fail(3)) SWIG_fail; |
18389 | } | |
2ef75293 RD |
18390 | } |
18391 | if (obj3) { | |
093d3ff1 | 18392 | { |
32fe5131 | 18393 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
18394 | if (SWIG_arg_fail(4)) SWIG_fail; |
18395 | } | |
2ef75293 RD |
18396 | } |
18397 | { | |
18398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18399 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
18400 | ||
18401 | wxPyEndAllowThreads(__tstate); | |
18402 | if (PyErr_Occurred()) SWIG_fail; | |
18403 | } | |
18404 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1); | |
18405 | return resultobj; | |
18406 | fail: | |
18407 | return NULL; | |
18408 | } | |
18409 | ||
18410 | ||
18411 | static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) { | |
18412 | PyObject *obj; | |
18413 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18414 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj); | |
18415 | Py_INCREF(obj); | |
18416 | return Py_BuildValue((char *)""); | |
18417 | } | |
c32bde28 | 18418 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18419 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18420 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18421 | int result; | |
18422 | PyObject * obj0 = 0 ; | |
18423 | char *kwnames[] = { | |
18424 | (char *) "self", NULL | |
18425 | }; | |
18426 | ||
18427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18430 | { |
18431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18432 | result = (int)(arg1)->GetId(); | |
18433 | ||
18434 | wxPyEndAllowThreads(__tstate); | |
18435 | if (PyErr_Occurred()) SWIG_fail; | |
18436 | } | |
093d3ff1 | 18437 | { |
32fe5131 | 18438 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 18439 | } |
d14a1e28 RD |
18440 | return resultobj; |
18441 | fail: | |
18442 | return NULL; | |
18443 | } | |
18444 | ||
18445 | ||
c32bde28 | 18446 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18447 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18448 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18449 | wxControl *result; | |
18450 | PyObject * obj0 = 0 ; | |
18451 | char *kwnames[] = { | |
18452 | (char *) "self", NULL | |
18453 | }; | |
18454 | ||
18455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18458 | { |
18459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18460 | result = (wxControl *)(arg1)->GetControl(); | |
18461 | ||
18462 | wxPyEndAllowThreads(__tstate); | |
18463 | if (PyErr_Occurred()) SWIG_fail; | |
18464 | } | |
18465 | { | |
412d302d | 18466 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18467 | } |
18468 | return resultobj; | |
18469 | fail: | |
18470 | return NULL; | |
18471 | } | |
18472 | ||
18473 | ||
c32bde28 | 18474 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18475 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18476 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18477 | wxToolBarBase *result; | |
18478 | PyObject * obj0 = 0 ; | |
18479 | char *kwnames[] = { | |
18480 | (char *) "self", NULL | |
18481 | }; | |
18482 | ||
18483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18484 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18485 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18486 | { |
18487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18488 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
18489 | ||
18490 | wxPyEndAllowThreads(__tstate); | |
18491 | if (PyErr_Occurred()) SWIG_fail; | |
18492 | } | |
18493 | { | |
412d302d | 18494 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18495 | } |
18496 | return resultobj; | |
18497 | fail: | |
18498 | return NULL; | |
18499 | } | |
18500 | ||
18501 | ||
c32bde28 | 18502 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18503 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18504 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18505 | int result; | |
18506 | PyObject * obj0 = 0 ; | |
18507 | char *kwnames[] = { | |
18508 | (char *) "self", NULL | |
18509 | }; | |
18510 | ||
18511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18514 | { |
18515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18516 | result = (int)(arg1)->IsButton(); | |
18517 | ||
18518 | wxPyEndAllowThreads(__tstate); | |
18519 | if (PyErr_Occurred()) SWIG_fail; | |
18520 | } | |
093d3ff1 | 18521 | { |
32fe5131 | 18522 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 18523 | } |
d14a1e28 RD |
18524 | return resultobj; |
18525 | fail: | |
18526 | return NULL; | |
18527 | } | |
18528 | ||
18529 | ||
c32bde28 | 18530 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18531 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18532 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18533 | int result; | |
18534 | PyObject * obj0 = 0 ; | |
18535 | char *kwnames[] = { | |
18536 | (char *) "self", NULL | |
18537 | }; | |
18538 | ||
18539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18540 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18541 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18542 | { |
18543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18544 | result = (int)(arg1)->IsControl(); | |
18545 | ||
18546 | wxPyEndAllowThreads(__tstate); | |
18547 | if (PyErr_Occurred()) SWIG_fail; | |
18548 | } | |
093d3ff1 | 18549 | { |
32fe5131 | 18550 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 18551 | } |
d14a1e28 RD |
18552 | return resultobj; |
18553 | fail: | |
18554 | return NULL; | |
18555 | } | |
18556 | ||
18557 | ||
c32bde28 | 18558 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18559 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18560 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18561 | int result; | |
18562 | PyObject * obj0 = 0 ; | |
18563 | char *kwnames[] = { | |
18564 | (char *) "self", NULL | |
18565 | }; | |
18566 | ||
18567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18570 | { |
18571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18572 | result = (int)(arg1)->IsSeparator(); | |
18573 | ||
18574 | wxPyEndAllowThreads(__tstate); | |
18575 | if (PyErr_Occurred()) SWIG_fail; | |
18576 | } | |
093d3ff1 | 18577 | { |
32fe5131 | 18578 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 18579 | } |
d14a1e28 RD |
18580 | return resultobj; |
18581 | fail: | |
18582 | return NULL; | |
18583 | } | |
18584 | ||
18585 | ||
c32bde28 | 18586 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18587 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18588 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18589 | int result; | |
18590 | PyObject * obj0 = 0 ; | |
18591 | char *kwnames[] = { | |
18592 | (char *) "self", NULL | |
18593 | }; | |
18594 | ||
18595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18598 | { |
18599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18600 | result = (int)(arg1)->GetStyle(); | |
18601 | ||
18602 | wxPyEndAllowThreads(__tstate); | |
18603 | if (PyErr_Occurred()) SWIG_fail; | |
18604 | } | |
093d3ff1 | 18605 | { |
32fe5131 | 18606 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 18607 | } |
d14a1e28 RD |
18608 | return resultobj; |
18609 | fail: | |
18610 | return NULL; | |
18611 | } | |
18612 | ||
18613 | ||
c32bde28 | 18614 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18615 | PyObject *resultobj = NULL; |
d14a1e28 | 18616 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
093d3ff1 | 18617 | wxItemKind result; |
d14a1e28 RD |
18618 | PyObject * obj0 = 0 ; |
18619 | char *kwnames[] = { | |
18620 | (char *) "self", NULL | |
18621 | }; | |
18622 | ||
18623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18626 | { |
18627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 18628 | result = (wxItemKind)(arg1)->GetKind(); |
d14a1e28 RD |
18629 | |
18630 | wxPyEndAllowThreads(__tstate); | |
18631 | if (PyErr_Occurred()) SWIG_fail; | |
18632 | } | |
093d3ff1 | 18633 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
18634 | return resultobj; |
18635 | fail: | |
18636 | return NULL; | |
18637 | } | |
18638 | ||
18639 | ||
c32bde28 | 18640 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18641 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18642 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18643 | bool result; | |
18644 | PyObject * obj0 = 0 ; | |
18645 | char *kwnames[] = { | |
18646 | (char *) "self", NULL | |
18647 | }; | |
18648 | ||
18649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18652 | { |
18653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18654 | result = (bool)(arg1)->IsEnabled(); | |
18655 | ||
18656 | wxPyEndAllowThreads(__tstate); | |
18657 | if (PyErr_Occurred()) SWIG_fail; | |
18658 | } | |
4f89f6a3 RD |
18659 | { |
18660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18661 | } | |
d14a1e28 RD |
18662 | return resultobj; |
18663 | fail: | |
18664 | return NULL; | |
18665 | } | |
18666 | ||
18667 | ||
c32bde28 | 18668 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18669 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18670 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18671 | bool result; | |
18672 | PyObject * obj0 = 0 ; | |
18673 | char *kwnames[] = { | |
18674 | (char *) "self", NULL | |
18675 | }; | |
18676 | ||
18677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18678 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18680 | { |
18681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18682 | result = (bool)(arg1)->IsToggled(); | |
18683 | ||
18684 | wxPyEndAllowThreads(__tstate); | |
18685 | if (PyErr_Occurred()) SWIG_fail; | |
18686 | } | |
4f89f6a3 RD |
18687 | { |
18688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18689 | } | |
d14a1e28 RD |
18690 | return resultobj; |
18691 | fail: | |
18692 | return NULL; | |
18693 | } | |
18694 | ||
18695 | ||
c32bde28 | 18696 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18697 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18698 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18699 | bool result; | |
18700 | PyObject * obj0 = 0 ; | |
18701 | char *kwnames[] = { | |
18702 | (char *) "self", NULL | |
18703 | }; | |
18704 | ||
18705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18706 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18707 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18708 | { |
18709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18710 | result = (bool)(arg1)->CanBeToggled(); | |
18711 | ||
18712 | wxPyEndAllowThreads(__tstate); | |
18713 | if (PyErr_Occurred()) SWIG_fail; | |
18714 | } | |
4f89f6a3 RD |
18715 | { |
18716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18717 | } | |
d14a1e28 RD |
18718 | return resultobj; |
18719 | fail: | |
18720 | return NULL; | |
18721 | } | |
18722 | ||
18723 | ||
c32bde28 | 18724 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18725 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18726 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18727 | wxBitmap *result; | |
18728 | PyObject * obj0 = 0 ; | |
18729 | char *kwnames[] = { | |
18730 | (char *) "self", NULL | |
18731 | }; | |
18732 | ||
18733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18734 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18735 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18736 | { |
18737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18738 | { | |
18739 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
18740 | result = (wxBitmap *) &_result_ref; | |
18741 | } | |
18742 | ||
18743 | wxPyEndAllowThreads(__tstate); | |
18744 | if (PyErr_Occurred()) SWIG_fail; | |
18745 | } | |
4276dc52 RD |
18746 | { |
18747 | wxBitmap* resultptr = new wxBitmap(*result); | |
18748 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18749 | } | |
d14a1e28 RD |
18750 | return resultobj; |
18751 | fail: | |
18752 | return NULL; | |
18753 | } | |
18754 | ||
18755 | ||
c32bde28 | 18756 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18757 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18758 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18759 | wxBitmap *result; | |
18760 | PyObject * obj0 = 0 ; | |
18761 | char *kwnames[] = { | |
18762 | (char *) "self", NULL | |
18763 | }; | |
18764 | ||
18765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18768 | { |
18769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18770 | { | |
18771 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
18772 | result = (wxBitmap *) &_result_ref; | |
18773 | } | |
18774 | ||
18775 | wxPyEndAllowThreads(__tstate); | |
18776 | if (PyErr_Occurred()) SWIG_fail; | |
18777 | } | |
4276dc52 RD |
18778 | { |
18779 | wxBitmap* resultptr = new wxBitmap(*result); | |
18780 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18781 | } | |
d14a1e28 RD |
18782 | return resultobj; |
18783 | fail: | |
18784 | return NULL; | |
18785 | } | |
18786 | ||
18787 | ||
c32bde28 | 18788 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18789 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18790 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18791 | wxBitmap result; | |
18792 | PyObject * obj0 = 0 ; | |
18793 | char *kwnames[] = { | |
18794 | (char *) "self", NULL | |
18795 | }; | |
18796 | ||
18797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18800 | { |
18801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18802 | result = (arg1)->GetBitmap(); | |
18803 | ||
18804 | wxPyEndAllowThreads(__tstate); | |
18805 | if (PyErr_Occurred()) SWIG_fail; | |
18806 | } | |
18807 | { | |
18808 | wxBitmap * resultptr; | |
32fe5131 | 18809 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 18810 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
18811 | } |
18812 | return resultobj; | |
18813 | fail: | |
18814 | return NULL; | |
18815 | } | |
18816 | ||
18817 | ||
c32bde28 | 18818 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18819 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18820 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18821 | wxString result; | |
18822 | PyObject * obj0 = 0 ; | |
18823 | char *kwnames[] = { | |
18824 | (char *) "self", NULL | |
18825 | }; | |
18826 | ||
18827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18828 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18829 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18830 | { |
18831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18832 | result = (arg1)->GetLabel(); | |
18833 | ||
18834 | wxPyEndAllowThreads(__tstate); | |
18835 | if (PyErr_Occurred()) SWIG_fail; | |
18836 | } | |
18837 | { | |
18838 | #if wxUSE_UNICODE | |
18839 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18840 | #else | |
18841 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18842 | #endif | |
18843 | } | |
18844 | return resultobj; | |
18845 | fail: | |
18846 | return NULL; | |
18847 | } | |
18848 | ||
18849 | ||
c32bde28 | 18850 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18851 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18852 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18853 | wxString result; | |
18854 | PyObject * obj0 = 0 ; | |
18855 | char *kwnames[] = { | |
18856 | (char *) "self", NULL | |
18857 | }; | |
18858 | ||
18859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18862 | { |
18863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18864 | result = (arg1)->GetShortHelp(); | |
18865 | ||
18866 | wxPyEndAllowThreads(__tstate); | |
18867 | if (PyErr_Occurred()) SWIG_fail; | |
18868 | } | |
18869 | { | |
18870 | #if wxUSE_UNICODE | |
18871 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18872 | #else | |
18873 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18874 | #endif | |
18875 | } | |
18876 | return resultobj; | |
18877 | fail: | |
18878 | return NULL; | |
18879 | } | |
18880 | ||
18881 | ||
c32bde28 | 18882 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18883 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18884 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18885 | wxString result; | |
18886 | PyObject * obj0 = 0 ; | |
18887 | char *kwnames[] = { | |
18888 | (char *) "self", NULL | |
18889 | }; | |
18890 | ||
18891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18892 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18893 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18894 | { |
18895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18896 | result = (arg1)->GetLongHelp(); | |
18897 | ||
18898 | wxPyEndAllowThreads(__tstate); | |
18899 | if (PyErr_Occurred()) SWIG_fail; | |
18900 | } | |
18901 | { | |
18902 | #if wxUSE_UNICODE | |
18903 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18904 | #else | |
18905 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18906 | #endif | |
18907 | } | |
18908 | return resultobj; | |
18909 | fail: | |
18910 | return NULL; | |
18911 | } | |
18912 | ||
18913 | ||
c32bde28 | 18914 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18915 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18916 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18917 | bool arg2 ; | |
18918 | bool result; | |
18919 | PyObject * obj0 = 0 ; | |
18920 | PyObject * obj1 = 0 ; | |
18921 | char *kwnames[] = { | |
18922 | (char *) "self",(char *) "enable", NULL | |
18923 | }; | |
18924 | ||
18925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18928 | { | |
32fe5131 | 18929 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
18930 | if (SWIG_arg_fail(2)) SWIG_fail; |
18931 | } | |
d14a1e28 RD |
18932 | { |
18933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18934 | result = (bool)(arg1)->Enable(arg2); | |
18935 | ||
18936 | wxPyEndAllowThreads(__tstate); | |
18937 | if (PyErr_Occurred()) SWIG_fail; | |
18938 | } | |
4f89f6a3 RD |
18939 | { |
18940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18941 | } | |
d14a1e28 RD |
18942 | return resultobj; |
18943 | fail: | |
18944 | return NULL; | |
18945 | } | |
18946 | ||
18947 | ||
c32bde28 | 18948 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18949 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18950 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18951 | PyObject * obj0 = 0 ; | |
18952 | char *kwnames[] = { | |
18953 | (char *) "self", NULL | |
18954 | }; | |
18955 | ||
18956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18959 | { |
18960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18961 | (arg1)->Toggle(); | |
18962 | ||
18963 | wxPyEndAllowThreads(__tstate); | |
18964 | if (PyErr_Occurred()) SWIG_fail; | |
18965 | } | |
18966 | Py_INCREF(Py_None); resultobj = Py_None; | |
18967 | return resultobj; | |
18968 | fail: | |
18969 | return NULL; | |
18970 | } | |
18971 | ||
18972 | ||
c32bde28 | 18973 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18974 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18975 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
18976 | bool arg2 ; | |
18977 | bool result; | |
18978 | PyObject * obj0 = 0 ; | |
18979 | PyObject * obj1 = 0 ; | |
18980 | char *kwnames[] = { | |
18981 | (char *) "self",(char *) "toggle", NULL | |
18982 | }; | |
18983 | ||
18984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18987 | { | |
32fe5131 | 18988 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
18989 | if (SWIG_arg_fail(2)) SWIG_fail; |
18990 | } | |
d14a1e28 RD |
18991 | { |
18992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18993 | result = (bool)(arg1)->SetToggle(arg2); | |
18994 | ||
18995 | wxPyEndAllowThreads(__tstate); | |
18996 | if (PyErr_Occurred()) SWIG_fail; | |
18997 | } | |
4f89f6a3 RD |
18998 | { |
18999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19000 | } | |
d14a1e28 RD |
19001 | return resultobj; |
19002 | fail: | |
19003 | return NULL; | |
19004 | } | |
19005 | ||
19006 | ||
c32bde28 | 19007 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19008 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19009 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19010 | wxString *arg2 = 0 ; | |
19011 | bool result; | |
ae8162c8 | 19012 | bool temp2 = false ; |
d14a1e28 RD |
19013 | PyObject * obj0 = 0 ; |
19014 | PyObject * obj1 = 0 ; | |
19015 | char *kwnames[] = { | |
19016 | (char *) "self",(char *) "help", NULL | |
19017 | }; | |
19018 | ||
19019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19022 | { |
19023 | arg2 = wxString_in_helper(obj1); | |
19024 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19025 | temp2 = true; |
d14a1e28 RD |
19026 | } |
19027 | { | |
19028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19029 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
19030 | ||
19031 | wxPyEndAllowThreads(__tstate); | |
19032 | if (PyErr_Occurred()) SWIG_fail; | |
19033 | } | |
4f89f6a3 RD |
19034 | { |
19035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19036 | } | |
d14a1e28 RD |
19037 | { |
19038 | if (temp2) | |
19039 | delete arg2; | |
19040 | } | |
19041 | return resultobj; | |
19042 | fail: | |
19043 | { | |
19044 | if (temp2) | |
19045 | delete arg2; | |
19046 | } | |
19047 | return NULL; | |
19048 | } | |
19049 | ||
19050 | ||
c32bde28 | 19051 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19052 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19053 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19054 | wxString *arg2 = 0 ; | |
19055 | bool result; | |
ae8162c8 | 19056 | bool temp2 = false ; |
d14a1e28 RD |
19057 | PyObject * obj0 = 0 ; |
19058 | PyObject * obj1 = 0 ; | |
19059 | char *kwnames[] = { | |
19060 | (char *) "self",(char *) "help", NULL | |
19061 | }; | |
19062 | ||
19063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19066 | { |
19067 | arg2 = wxString_in_helper(obj1); | |
19068 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19069 | temp2 = true; |
d14a1e28 RD |
19070 | } |
19071 | { | |
19072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19073 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
19074 | ||
19075 | wxPyEndAllowThreads(__tstate); | |
19076 | if (PyErr_Occurred()) SWIG_fail; | |
19077 | } | |
4f89f6a3 RD |
19078 | { |
19079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19080 | } | |
d14a1e28 RD |
19081 | { |
19082 | if (temp2) | |
19083 | delete arg2; | |
19084 | } | |
19085 | return resultobj; | |
19086 | fail: | |
19087 | { | |
19088 | if (temp2) | |
19089 | delete arg2; | |
19090 | } | |
19091 | return NULL; | |
19092 | } | |
19093 | ||
19094 | ||
c32bde28 | 19095 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19096 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19097 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19098 | wxBitmap *arg2 = 0 ; | |
19099 | PyObject * obj0 = 0 ; | |
19100 | PyObject * obj1 = 0 ; | |
19101 | char *kwnames[] = { | |
19102 | (char *) "self",(char *) "bmp", NULL | |
19103 | }; | |
19104 | ||
19105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19106 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19108 | { | |
19109 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19110 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19111 | if (arg2 == NULL) { | |
19112 | SWIG_null_ref("wxBitmap"); | |
19113 | } | |
19114 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19115 | } |
19116 | { | |
19117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19118 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
19119 | ||
19120 | wxPyEndAllowThreads(__tstate); | |
19121 | if (PyErr_Occurred()) SWIG_fail; | |
19122 | } | |
19123 | Py_INCREF(Py_None); resultobj = Py_None; | |
19124 | return resultobj; | |
19125 | fail: | |
19126 | return NULL; | |
19127 | } | |
19128 | ||
19129 | ||
c32bde28 | 19130 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19131 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19132 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19133 | wxBitmap *arg2 = 0 ; | |
19134 | PyObject * obj0 = 0 ; | |
19135 | PyObject * obj1 = 0 ; | |
19136 | char *kwnames[] = { | |
19137 | (char *) "self",(char *) "bmp", NULL | |
19138 | }; | |
19139 | ||
19140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19141 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19142 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19143 | { | |
19144 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19145 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19146 | if (arg2 == NULL) { | |
19147 | SWIG_null_ref("wxBitmap"); | |
19148 | } | |
19149 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19150 | } |
19151 | { | |
19152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19153 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
19154 | ||
19155 | wxPyEndAllowThreads(__tstate); | |
19156 | if (PyErr_Occurred()) SWIG_fail; | |
19157 | } | |
19158 | Py_INCREF(Py_None); resultobj = Py_None; | |
19159 | return resultobj; | |
19160 | fail: | |
19161 | return NULL; | |
19162 | } | |
19163 | ||
19164 | ||
c32bde28 | 19165 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19166 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19167 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19168 | wxString *arg2 = 0 ; | |
ae8162c8 | 19169 | bool temp2 = false ; |
d14a1e28 RD |
19170 | PyObject * obj0 = 0 ; |
19171 | PyObject * obj1 = 0 ; | |
19172 | char *kwnames[] = { | |
19173 | (char *) "self",(char *) "label", NULL | |
19174 | }; | |
19175 | ||
19176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19177 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19178 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19179 | { |
19180 | arg2 = wxString_in_helper(obj1); | |
19181 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19182 | temp2 = true; |
d14a1e28 RD |
19183 | } |
19184 | { | |
19185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19186 | (arg1)->SetLabel((wxString const &)*arg2); | |
19187 | ||
19188 | wxPyEndAllowThreads(__tstate); | |
19189 | if (PyErr_Occurred()) SWIG_fail; | |
19190 | } | |
19191 | Py_INCREF(Py_None); resultobj = Py_None; | |
19192 | { | |
19193 | if (temp2) | |
19194 | delete arg2; | |
19195 | } | |
19196 | return resultobj; | |
19197 | fail: | |
19198 | { | |
19199 | if (temp2) | |
19200 | delete arg2; | |
19201 | } | |
19202 | return NULL; | |
19203 | } | |
19204 | ||
19205 | ||
c32bde28 | 19206 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19207 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19208 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19209 | PyObject * obj0 = 0 ; | |
19210 | char *kwnames[] = { | |
19211 | (char *) "self", NULL | |
19212 | }; | |
19213 | ||
19214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19215 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19216 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19217 | { |
19218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19219 | (arg1)->Detach(); | |
19220 | ||
19221 | wxPyEndAllowThreads(__tstate); | |
19222 | if (PyErr_Occurred()) SWIG_fail; | |
19223 | } | |
19224 | Py_INCREF(Py_None); resultobj = Py_None; | |
19225 | return resultobj; | |
19226 | fail: | |
19227 | return NULL; | |
19228 | } | |
19229 | ||
19230 | ||
c32bde28 | 19231 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19232 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19233 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19234 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
19235 | PyObject * obj0 = 0 ; | |
19236 | PyObject * obj1 = 0 ; | |
19237 | char *kwnames[] = { | |
19238 | (char *) "self",(char *) "tbar", NULL | |
19239 | }; | |
19240 | ||
19241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19244 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19245 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19246 | { |
19247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19248 | (arg1)->Attach(arg2); | |
19249 | ||
19250 | wxPyEndAllowThreads(__tstate); | |
19251 | if (PyErr_Occurred()) SWIG_fail; | |
19252 | } | |
19253 | Py_INCREF(Py_None); resultobj = Py_None; | |
19254 | return resultobj; | |
19255 | fail: | |
19256 | return NULL; | |
19257 | } | |
19258 | ||
19259 | ||
c32bde28 | 19260 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19261 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19262 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19263 | PyObject *result; | |
19264 | PyObject * obj0 = 0 ; | |
19265 | char *kwnames[] = { | |
19266 | (char *) "self", NULL | |
19267 | }; | |
19268 | ||
19269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19272 | { |
19273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19274 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
19275 | ||
19276 | wxPyEndAllowThreads(__tstate); | |
19277 | if (PyErr_Occurred()) SWIG_fail; | |
19278 | } | |
19279 | resultobj = result; | |
19280 | return resultobj; | |
19281 | fail: | |
19282 | return NULL; | |
19283 | } | |
19284 | ||
19285 | ||
c32bde28 | 19286 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19287 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19288 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19289 | PyObject *arg2 = (PyObject *) 0 ; | |
19290 | PyObject * obj0 = 0 ; | |
19291 | PyObject * obj1 = 0 ; | |
19292 | char *kwnames[] = { | |
19293 | (char *) "self",(char *) "clientData", NULL | |
19294 | }; | |
19295 | ||
19296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19297 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19299 | arg2 = obj1; |
19300 | { | |
19301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19302 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
19303 | ||
19304 | wxPyEndAllowThreads(__tstate); | |
19305 | if (PyErr_Occurred()) SWIG_fail; | |
19306 | } | |
19307 | Py_INCREF(Py_None); resultobj = Py_None; | |
19308 | return resultobj; | |
19309 | fail: | |
19310 | return NULL; | |
19311 | } | |
19312 | ||
19313 | ||
c32bde28 | 19314 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19315 | PyObject *obj; |
19316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19317 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
19318 | Py_INCREF(obj); | |
19319 | return Py_BuildValue((char *)""); | |
19320 | } | |
c32bde28 | 19321 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19322 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19323 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19324 | int arg2 ; | |
19325 | wxString *arg3 = 0 ; | |
19326 | wxBitmap *arg4 = 0 ; | |
19327 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
19328 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
093d3ff1 | 19329 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; |
d14a1e28 RD |
19330 | wxString const &arg7_defvalue = wxPyEmptyString ; |
19331 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19332 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
19333 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19334 | PyObject *arg9 = (PyObject *) NULL ; | |
19335 | wxToolBarToolBase *result; | |
ae8162c8 RD |
19336 | bool temp3 = false ; |
19337 | bool temp7 = false ; | |
19338 | bool temp8 = false ; | |
d14a1e28 | 19339 | PyObject * obj0 = 0 ; |
994141e6 | 19340 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19341 | PyObject * obj2 = 0 ; |
19342 | PyObject * obj3 = 0 ; | |
19343 | PyObject * obj4 = 0 ; | |
994141e6 | 19344 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
19345 | PyObject * obj6 = 0 ; |
19346 | PyObject * obj7 = 0 ; | |
19347 | PyObject * obj8 = 0 ; | |
19348 | char *kwnames[] = { | |
19349 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19350 | }; | |
19351 | ||
994141e6 | 19352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
19353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19355 | { | |
32fe5131 | 19356 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
19357 | if (SWIG_arg_fail(2)) SWIG_fail; |
19358 | } | |
d14a1e28 RD |
19359 | { |
19360 | arg3 = wxString_in_helper(obj2); | |
19361 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 19362 | temp3 = true; |
d14a1e28 | 19363 | } |
093d3ff1 RD |
19364 | { |
19365 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19366 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19367 | if (arg4 == NULL) { | |
19368 | SWIG_null_ref("wxBitmap"); | |
19369 | } | |
19370 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
19371 | } |
19372 | if (obj4) { | |
093d3ff1 RD |
19373 | { |
19374 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19375 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19376 | if (arg5 == NULL) { | |
19377 | SWIG_null_ref("wxBitmap"); | |
19378 | } | |
19379 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
19380 | } |
19381 | } | |
994141e6 | 19382 | if (obj5) { |
093d3ff1 | 19383 | { |
32fe5131 | 19384 | arg6 = static_cast<wxItemKind >(SWIG_As_int(obj5)); |
093d3ff1 RD |
19385 | if (SWIG_arg_fail(6)) SWIG_fail; |
19386 | } | |
994141e6 | 19387 | } |
d14a1e28 RD |
19388 | if (obj6) { |
19389 | { | |
19390 | arg7 = wxString_in_helper(obj6); | |
19391 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 19392 | temp7 = true; |
d14a1e28 RD |
19393 | } |
19394 | } | |
19395 | if (obj7) { | |
19396 | { | |
19397 | arg8 = wxString_in_helper(obj7); | |
19398 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 19399 | temp8 = true; |
d14a1e28 RD |
19400 | } |
19401 | } | |
19402 | if (obj8) { | |
19403 | arg9 = obj8; | |
19404 | } | |
19405 | { | |
19406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 19407 | 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 |
19408 | |
19409 | wxPyEndAllowThreads(__tstate); | |
19410 | if (PyErr_Occurred()) SWIG_fail; | |
19411 | } | |
19412 | { | |
412d302d | 19413 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19414 | } |
19415 | { | |
19416 | if (temp3) | |
19417 | delete arg3; | |
19418 | } | |
19419 | { | |
19420 | if (temp7) | |
19421 | delete arg7; | |
19422 | } | |
19423 | { | |
19424 | if (temp8) | |
19425 | delete arg8; | |
19426 | } | |
19427 | return resultobj; | |
19428 | fail: | |
19429 | { | |
19430 | if (temp3) | |
19431 | delete arg3; | |
19432 | } | |
19433 | { | |
19434 | if (temp7) | |
19435 | delete arg7; | |
19436 | } | |
19437 | { | |
19438 | if (temp8) | |
19439 | delete arg8; | |
19440 | } | |
19441 | return NULL; | |
19442 | } | |
19443 | ||
19444 | ||
c32bde28 | 19445 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19446 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19447 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19448 | size_t arg2 ; | |
19449 | int arg3 ; | |
19450 | wxString *arg4 = 0 ; | |
19451 | wxBitmap *arg5 = 0 ; | |
19452 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
19453 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
093d3ff1 | 19454 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; |
d14a1e28 RD |
19455 | wxString const &arg8_defvalue = wxPyEmptyString ; |
19456 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19457 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
19458 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
19459 | PyObject *arg10 = (PyObject *) NULL ; | |
19460 | wxToolBarToolBase *result; | |
ae8162c8 RD |
19461 | bool temp4 = false ; |
19462 | bool temp8 = false ; | |
19463 | bool temp9 = false ; | |
d14a1e28 RD |
19464 | PyObject * obj0 = 0 ; |
19465 | PyObject * obj1 = 0 ; | |
994141e6 | 19466 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
19467 | PyObject * obj3 = 0 ; |
19468 | PyObject * obj4 = 0 ; | |
19469 | PyObject * obj5 = 0 ; | |
994141e6 | 19470 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
19471 | PyObject * obj7 = 0 ; |
19472 | PyObject * obj8 = 0 ; | |
19473 | PyObject * obj9 = 0 ; | |
19474 | char *kwnames[] = { | |
19475 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19476 | }; | |
19477 | ||
994141e6 | 19478 | 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 |
19479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19481 | { | |
32fe5131 | 19482 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
19483 | if (SWIG_arg_fail(2)) SWIG_fail; |
19484 | } | |
19485 | { | |
32fe5131 | 19486 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
19487 | if (SWIG_arg_fail(3)) SWIG_fail; |
19488 | } | |
d14a1e28 RD |
19489 | { |
19490 | arg4 = wxString_in_helper(obj3); | |
19491 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 19492 | temp4 = true; |
d14a1e28 | 19493 | } |
093d3ff1 RD |
19494 | { |
19495 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19496 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19497 | if (arg5 == NULL) { | |
19498 | SWIG_null_ref("wxBitmap"); | |
19499 | } | |
19500 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
19501 | } |
19502 | if (obj5) { | |
093d3ff1 RD |
19503 | { |
19504 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19505 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19506 | if (arg6 == NULL) { | |
19507 | SWIG_null_ref("wxBitmap"); | |
19508 | } | |
19509 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
19510 | } |
19511 | } | |
994141e6 | 19512 | if (obj6) { |
093d3ff1 | 19513 | { |
32fe5131 | 19514 | arg7 = static_cast<wxItemKind >(SWIG_As_int(obj6)); |
093d3ff1 RD |
19515 | if (SWIG_arg_fail(7)) SWIG_fail; |
19516 | } | |
994141e6 | 19517 | } |
d14a1e28 RD |
19518 | if (obj7) { |
19519 | { | |
19520 | arg8 = wxString_in_helper(obj7); | |
19521 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 19522 | temp8 = true; |
d14a1e28 RD |
19523 | } |
19524 | } | |
19525 | if (obj8) { | |
19526 | { | |
19527 | arg9 = wxString_in_helper(obj8); | |
19528 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 19529 | temp9 = true; |
d14a1e28 RD |
19530 | } |
19531 | } | |
19532 | if (obj9) { | |
19533 | arg10 = obj9; | |
19534 | } | |
19535 | { | |
19536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 19537 | 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 |
19538 | |
19539 | wxPyEndAllowThreads(__tstate); | |
19540 | if (PyErr_Occurred()) SWIG_fail; | |
19541 | } | |
19542 | { | |
412d302d | 19543 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19544 | } |
19545 | { | |
19546 | if (temp4) | |
19547 | delete arg4; | |
19548 | } | |
19549 | { | |
19550 | if (temp8) | |
19551 | delete arg8; | |
19552 | } | |
19553 | { | |
19554 | if (temp9) | |
19555 | delete arg9; | |
19556 | } | |
19557 | return resultobj; | |
19558 | fail: | |
19559 | { | |
19560 | if (temp4) | |
19561 | delete arg4; | |
19562 | } | |
19563 | { | |
19564 | if (temp8) | |
19565 | delete arg8; | |
19566 | } | |
19567 | { | |
19568 | if (temp9) | |
19569 | delete arg9; | |
19570 | } | |
19571 | return NULL; | |
19572 | } | |
19573 | ||
19574 | ||
c32bde28 | 19575 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19576 | PyObject *resultobj = NULL; |
3a04f143 RD |
19577 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19578 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
19579 | wxToolBarToolBase *result; | |
19580 | PyObject * obj0 = 0 ; | |
19581 | PyObject * obj1 = 0 ; | |
19582 | char *kwnames[] = { | |
19583 | (char *) "self",(char *) "tool", NULL | |
19584 | }; | |
19585 | ||
19586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19589 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19590 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3a04f143 RD |
19591 | { |
19592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19593 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
19594 | ||
19595 | wxPyEndAllowThreads(__tstate); | |
19596 | if (PyErr_Occurred()) SWIG_fail; | |
19597 | } | |
19598 | { | |
412d302d | 19599 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
19600 | } |
19601 | return resultobj; | |
19602 | fail: | |
19603 | return NULL; | |
19604 | } | |
19605 | ||
19606 | ||
c32bde28 | 19607 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19608 | PyObject *resultobj = NULL; |
3a04f143 RD |
19609 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19610 | size_t arg2 ; | |
19611 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
19612 | wxToolBarToolBase *result; | |
19613 | PyObject * obj0 = 0 ; | |
19614 | PyObject * obj1 = 0 ; | |
19615 | PyObject * obj2 = 0 ; | |
19616 | char *kwnames[] = { | |
19617 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
19618 | }; | |
19619 | ||
19620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19623 | { | |
32fe5131 | 19624 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
19625 | if (SWIG_arg_fail(2)) SWIG_fail; |
19626 | } | |
19627 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19628 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3a04f143 RD |
19629 | { |
19630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19631 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
19632 | ||
19633 | wxPyEndAllowThreads(__tstate); | |
19634 | if (PyErr_Occurred()) SWIG_fail; | |
19635 | } | |
19636 | { | |
412d302d | 19637 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
19638 | } |
19639 | return resultobj; | |
19640 | fail: | |
19641 | return NULL; | |
19642 | } | |
19643 | ||
19644 | ||
c32bde28 | 19645 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19646 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19647 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19648 | wxControl *arg2 = (wxControl *) 0 ; | |
19649 | wxToolBarToolBase *result; | |
19650 | PyObject * obj0 = 0 ; | |
19651 | PyObject * obj1 = 0 ; | |
19652 | char *kwnames[] = { | |
19653 | (char *) "self",(char *) "control", NULL | |
19654 | }; | |
19655 | ||
19656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19659 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19660 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19661 | { |
19662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19663 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
19664 | ||
19665 | wxPyEndAllowThreads(__tstate); | |
19666 | if (PyErr_Occurred()) SWIG_fail; | |
19667 | } | |
19668 | { | |
412d302d | 19669 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19670 | } |
19671 | return resultobj; | |
19672 | fail: | |
19673 | return NULL; | |
19674 | } | |
19675 | ||
19676 | ||
c32bde28 | 19677 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19678 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19679 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19680 | size_t arg2 ; | |
19681 | wxControl *arg3 = (wxControl *) 0 ; | |
19682 | wxToolBarToolBase *result; | |
19683 | PyObject * obj0 = 0 ; | |
19684 | PyObject * obj1 = 0 ; | |
19685 | PyObject * obj2 = 0 ; | |
19686 | char *kwnames[] = { | |
19687 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
19688 | }; | |
19689 | ||
19690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19691 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19692 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19693 | { | |
32fe5131 | 19694 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
19695 | if (SWIG_arg_fail(2)) SWIG_fail; |
19696 | } | |
19697 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19698 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
19699 | { |
19700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19701 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
19702 | ||
19703 | wxPyEndAllowThreads(__tstate); | |
19704 | if (PyErr_Occurred()) SWIG_fail; | |
19705 | } | |
19706 | { | |
412d302d | 19707 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19708 | } |
19709 | return resultobj; | |
19710 | fail: | |
19711 | return NULL; | |
19712 | } | |
19713 | ||
19714 | ||
c32bde28 | 19715 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19716 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19717 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19718 | int arg2 ; | |
19719 | wxControl *result; | |
19720 | PyObject * obj0 = 0 ; | |
994141e6 | 19721 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19722 | char *kwnames[] = { |
19723 | (char *) "self",(char *) "id", NULL | |
19724 | }; | |
19725 | ||
994141e6 | 19726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19729 | { | |
32fe5131 | 19730 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
19731 | if (SWIG_arg_fail(2)) SWIG_fail; |
19732 | } | |
d14a1e28 RD |
19733 | { |
19734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19735 | result = (wxControl *)(arg1)->FindControl(arg2); | |
19736 | ||
19737 | wxPyEndAllowThreads(__tstate); | |
19738 | if (PyErr_Occurred()) SWIG_fail; | |
19739 | } | |
19740 | { | |
412d302d | 19741 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19742 | } |
19743 | return resultobj; | |
19744 | fail: | |
19745 | return NULL; | |
19746 | } | |
19747 | ||
19748 | ||
c32bde28 | 19749 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19750 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19751 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19752 | wxToolBarToolBase *result; | |
19753 | PyObject * obj0 = 0 ; | |
19754 | char *kwnames[] = { | |
19755 | (char *) "self", NULL | |
19756 | }; | |
19757 | ||
19758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19759 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19760 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19761 | { |
19762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19763 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
19764 | ||
19765 | wxPyEndAllowThreads(__tstate); | |
19766 | if (PyErr_Occurred()) SWIG_fail; | |
19767 | } | |
19768 | { | |
412d302d | 19769 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19770 | } |
19771 | return resultobj; | |
19772 | fail: | |
19773 | return NULL; | |
19774 | } | |
19775 | ||
19776 | ||
c32bde28 | 19777 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19778 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19779 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19780 | size_t arg2 ; | |
19781 | wxToolBarToolBase *result; | |
19782 | PyObject * obj0 = 0 ; | |
19783 | PyObject * obj1 = 0 ; | |
19784 | char *kwnames[] = { | |
19785 | (char *) "self",(char *) "pos", NULL | |
19786 | }; | |
19787 | ||
19788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19791 | { | |
32fe5131 | 19792 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
19793 | if (SWIG_arg_fail(2)) SWIG_fail; |
19794 | } | |
d14a1e28 RD |
19795 | { |
19796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19797 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
19798 | ||
19799 | wxPyEndAllowThreads(__tstate); | |
19800 | if (PyErr_Occurred()) SWIG_fail; | |
19801 | } | |
19802 | { | |
412d302d | 19803 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19804 | } |
19805 | return resultobj; | |
19806 | fail: | |
19807 | return NULL; | |
19808 | } | |
19809 | ||
19810 | ||
c32bde28 | 19811 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19812 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19813 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19814 | int arg2 ; | |
19815 | wxToolBarToolBase *result; | |
19816 | PyObject * obj0 = 0 ; | |
994141e6 | 19817 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19818 | char *kwnames[] = { |
19819 | (char *) "self",(char *) "id", NULL | |
19820 | }; | |
19821 | ||
994141e6 | 19822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19823 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19824 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19825 | { | |
32fe5131 | 19826 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
19827 | if (SWIG_arg_fail(2)) SWIG_fail; |
19828 | } | |
d14a1e28 RD |
19829 | { |
19830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19831 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
19832 | ||
19833 | wxPyEndAllowThreads(__tstate); | |
19834 | if (PyErr_Occurred()) SWIG_fail; | |
19835 | } | |
19836 | { | |
412d302d | 19837 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19838 | } |
19839 | return resultobj; | |
19840 | fail: | |
19841 | return NULL; | |
19842 | } | |
19843 | ||
19844 | ||
c32bde28 | 19845 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19846 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19847 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19848 | size_t arg2 ; | |
19849 | bool result; | |
19850 | PyObject * obj0 = 0 ; | |
19851 | PyObject * obj1 = 0 ; | |
19852 | char *kwnames[] = { | |
19853 | (char *) "self",(char *) "pos", NULL | |
19854 | }; | |
19855 | ||
19856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19859 | { | |
32fe5131 | 19860 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
19861 | if (SWIG_arg_fail(2)) SWIG_fail; |
19862 | } | |
d14a1e28 RD |
19863 | { |
19864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19865 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
19866 | ||
19867 | wxPyEndAllowThreads(__tstate); | |
19868 | if (PyErr_Occurred()) SWIG_fail; | |
19869 | } | |
4f89f6a3 RD |
19870 | { |
19871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19872 | } | |
d14a1e28 RD |
19873 | return resultobj; |
19874 | fail: | |
19875 | return NULL; | |
19876 | } | |
19877 | ||
19878 | ||
c32bde28 | 19879 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19880 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19881 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19882 | int arg2 ; | |
19883 | bool result; | |
19884 | PyObject * obj0 = 0 ; | |
994141e6 | 19885 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19886 | char *kwnames[] = { |
19887 | (char *) "self",(char *) "id", NULL | |
19888 | }; | |
19889 | ||
994141e6 | 19890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19891 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19892 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19893 | { | |
32fe5131 | 19894 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
19895 | if (SWIG_arg_fail(2)) SWIG_fail; |
19896 | } | |
d14a1e28 RD |
19897 | { |
19898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19899 | result = (bool)(arg1)->DeleteTool(arg2); | |
19900 | ||
19901 | wxPyEndAllowThreads(__tstate); | |
19902 | if (PyErr_Occurred()) SWIG_fail; | |
19903 | } | |
4f89f6a3 RD |
19904 | { |
19905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19906 | } | |
d14a1e28 RD |
19907 | return resultobj; |
19908 | fail: | |
19909 | return NULL; | |
19910 | } | |
19911 | ||
19912 | ||
c32bde28 | 19913 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19914 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19915 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19916 | PyObject * obj0 = 0 ; | |
19917 | char *kwnames[] = { | |
19918 | (char *) "self", NULL | |
19919 | }; | |
19920 | ||
19921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19924 | { |
19925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19926 | (arg1)->ClearTools(); | |
19927 | ||
19928 | wxPyEndAllowThreads(__tstate); | |
19929 | if (PyErr_Occurred()) SWIG_fail; | |
19930 | } | |
19931 | Py_INCREF(Py_None); resultobj = Py_None; | |
19932 | return resultobj; | |
19933 | fail: | |
19934 | return NULL; | |
19935 | } | |
19936 | ||
19937 | ||
c32bde28 | 19938 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19939 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19940 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19941 | bool result; | |
19942 | PyObject * obj0 = 0 ; | |
19943 | char *kwnames[] = { | |
19944 | (char *) "self", NULL | |
19945 | }; | |
19946 | ||
19947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19950 | { |
19951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19952 | result = (bool)(arg1)->Realize(); | |
19953 | ||
19954 | wxPyEndAllowThreads(__tstate); | |
19955 | if (PyErr_Occurred()) SWIG_fail; | |
19956 | } | |
4f89f6a3 RD |
19957 | { |
19958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19959 | } | |
d14a1e28 RD |
19960 | return resultobj; |
19961 | fail: | |
19962 | return NULL; | |
19963 | } | |
19964 | ||
19965 | ||
c32bde28 | 19966 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19967 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19968 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
19969 | int arg2 ; | |
19970 | bool arg3 ; | |
19971 | PyObject * obj0 = 0 ; | |
994141e6 | 19972 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19973 | PyObject * obj2 = 0 ; |
19974 | char *kwnames[] = { | |
19975 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
19976 | }; | |
19977 | ||
994141e6 | 19978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
19979 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19980 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19981 | { | |
32fe5131 | 19982 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
19983 | if (SWIG_arg_fail(2)) SWIG_fail; |
19984 | } | |
19985 | { | |
32fe5131 | 19986 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
19987 | if (SWIG_arg_fail(3)) SWIG_fail; |
19988 | } | |
d14a1e28 RD |
19989 | { |
19990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19991 | (arg1)->EnableTool(arg2,arg3); | |
19992 | ||
19993 | wxPyEndAllowThreads(__tstate); | |
19994 | if (PyErr_Occurred()) SWIG_fail; | |
19995 | } | |
19996 | Py_INCREF(Py_None); resultobj = Py_None; | |
19997 | return resultobj; | |
19998 | fail: | |
19999 | return NULL; | |
20000 | } | |
20001 | ||
20002 | ||
c32bde28 | 20003 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20004 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20005 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20006 | int arg2 ; | |
20007 | bool arg3 ; | |
20008 | PyObject * obj0 = 0 ; | |
994141e6 | 20009 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20010 | PyObject * obj2 = 0 ; |
20011 | char *kwnames[] = { | |
20012 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
20013 | }; | |
20014 | ||
994141e6 | 20015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20018 | { | |
32fe5131 | 20019 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20020 | if (SWIG_arg_fail(2)) SWIG_fail; |
20021 | } | |
20022 | { | |
32fe5131 | 20023 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
20024 | if (SWIG_arg_fail(3)) SWIG_fail; |
20025 | } | |
d14a1e28 RD |
20026 | { |
20027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20028 | (arg1)->ToggleTool(arg2,arg3); | |
20029 | ||
20030 | wxPyEndAllowThreads(__tstate); | |
20031 | if (PyErr_Occurred()) SWIG_fail; | |
20032 | } | |
20033 | Py_INCREF(Py_None); resultobj = Py_None; | |
20034 | return resultobj; | |
20035 | fail: | |
20036 | return NULL; | |
20037 | } | |
20038 | ||
20039 | ||
c32bde28 | 20040 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20041 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20042 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20043 | int arg2 ; | |
20044 | bool arg3 ; | |
20045 | PyObject * obj0 = 0 ; | |
994141e6 | 20046 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20047 | PyObject * obj2 = 0 ; |
20048 | char *kwnames[] = { | |
20049 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
20050 | }; | |
20051 | ||
994141e6 | 20052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20055 | { | |
32fe5131 | 20056 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20057 | if (SWIG_arg_fail(2)) SWIG_fail; |
20058 | } | |
20059 | { | |
32fe5131 | 20060 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
20061 | if (SWIG_arg_fail(3)) SWIG_fail; |
20062 | } | |
d14a1e28 RD |
20063 | { |
20064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20065 | (arg1)->SetToggle(arg2,arg3); | |
20066 | ||
20067 | wxPyEndAllowThreads(__tstate); | |
20068 | if (PyErr_Occurred()) SWIG_fail; | |
20069 | } | |
20070 | Py_INCREF(Py_None); resultobj = Py_None; | |
20071 | return resultobj; | |
20072 | fail: | |
20073 | return NULL; | |
20074 | } | |
20075 | ||
20076 | ||
c32bde28 | 20077 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20078 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20079 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20080 | int arg2 ; | |
20081 | PyObject *result; | |
20082 | PyObject * obj0 = 0 ; | |
994141e6 | 20083 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20084 | char *kwnames[] = { |
20085 | (char *) "self",(char *) "id", NULL | |
20086 | }; | |
20087 | ||
994141e6 | 20088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20089 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20091 | { | |
32fe5131 | 20092 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20093 | if (SWIG_arg_fail(2)) SWIG_fail; |
20094 | } | |
d14a1e28 RD |
20095 | { |
20096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20097 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
20098 | ||
20099 | wxPyEndAllowThreads(__tstate); | |
20100 | if (PyErr_Occurred()) SWIG_fail; | |
20101 | } | |
20102 | resultobj = result; | |
20103 | return resultobj; | |
20104 | fail: | |
20105 | return NULL; | |
20106 | } | |
20107 | ||
20108 | ||
c32bde28 | 20109 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20110 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20111 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20112 | int arg2 ; | |
20113 | PyObject *arg3 = (PyObject *) 0 ; | |
20114 | PyObject * obj0 = 0 ; | |
994141e6 | 20115 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20116 | PyObject * obj2 = 0 ; |
20117 | char *kwnames[] = { | |
20118 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
20119 | }; | |
20120 | ||
994141e6 | 20121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20122 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20123 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20124 | { | |
32fe5131 | 20125 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20126 | if (SWIG_arg_fail(2)) SWIG_fail; |
20127 | } | |
d14a1e28 RD |
20128 | arg3 = obj2; |
20129 | { | |
20130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20131 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
20132 | ||
20133 | wxPyEndAllowThreads(__tstate); | |
20134 | if (PyErr_Occurred()) SWIG_fail; | |
20135 | } | |
20136 | Py_INCREF(Py_None); resultobj = Py_None; | |
20137 | return resultobj; | |
20138 | fail: | |
20139 | return NULL; | |
20140 | } | |
20141 | ||
20142 | ||
c32bde28 | 20143 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20144 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20145 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20146 | int arg2 ; | |
20147 | int result; | |
20148 | PyObject * obj0 = 0 ; | |
994141e6 | 20149 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20150 | char *kwnames[] = { |
20151 | (char *) "self",(char *) "id", NULL | |
20152 | }; | |
20153 | ||
994141e6 | 20154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20155 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20156 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20157 | { | |
32fe5131 | 20158 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20159 | if (SWIG_arg_fail(2)) SWIG_fail; |
20160 | } | |
d14a1e28 RD |
20161 | { |
20162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20163 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
20164 | ||
20165 | wxPyEndAllowThreads(__tstate); | |
20166 | if (PyErr_Occurred()) SWIG_fail; | |
20167 | } | |
093d3ff1 | 20168 | { |
32fe5131 | 20169 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20170 | } |
d14a1e28 RD |
20171 | return resultobj; |
20172 | fail: | |
20173 | return NULL; | |
20174 | } | |
20175 | ||
20176 | ||
c32bde28 | 20177 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20178 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20179 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20180 | int arg2 ; | |
20181 | bool result; | |
20182 | PyObject * obj0 = 0 ; | |
994141e6 | 20183 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20184 | char *kwnames[] = { |
20185 | (char *) "self",(char *) "id", NULL | |
20186 | }; | |
20187 | ||
994141e6 | 20188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20191 | { | |
32fe5131 | 20192 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20193 | if (SWIG_arg_fail(2)) SWIG_fail; |
20194 | } | |
d14a1e28 RD |
20195 | { |
20196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20197 | result = (bool)(arg1)->GetToolState(arg2); | |
20198 | ||
20199 | wxPyEndAllowThreads(__tstate); | |
20200 | if (PyErr_Occurred()) SWIG_fail; | |
20201 | } | |
4f89f6a3 RD |
20202 | { |
20203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20204 | } | |
d14a1e28 RD |
20205 | return resultobj; |
20206 | fail: | |
20207 | return NULL; | |
20208 | } | |
20209 | ||
20210 | ||
c32bde28 | 20211 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20212 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20213 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20214 | int arg2 ; | |
20215 | bool result; | |
20216 | PyObject * obj0 = 0 ; | |
994141e6 | 20217 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20218 | char *kwnames[] = { |
20219 | (char *) "self",(char *) "id", NULL | |
20220 | }; | |
20221 | ||
994141e6 | 20222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20225 | { | |
32fe5131 | 20226 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20227 | if (SWIG_arg_fail(2)) SWIG_fail; |
20228 | } | |
d14a1e28 RD |
20229 | { |
20230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20231 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
20232 | ||
20233 | wxPyEndAllowThreads(__tstate); | |
20234 | if (PyErr_Occurred()) SWIG_fail; | |
20235 | } | |
4f89f6a3 RD |
20236 | { |
20237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20238 | } | |
d14a1e28 RD |
20239 | return resultobj; |
20240 | fail: | |
20241 | return NULL; | |
20242 | } | |
20243 | ||
20244 | ||
c32bde28 | 20245 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20246 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20247 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20248 | int arg2 ; | |
20249 | wxString *arg3 = 0 ; | |
ae8162c8 | 20250 | bool temp3 = false ; |
d14a1e28 | 20251 | PyObject * obj0 = 0 ; |
994141e6 | 20252 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20253 | PyObject * obj2 = 0 ; |
20254 | char *kwnames[] = { | |
20255 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20256 | }; | |
20257 | ||
994141e6 | 20258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20261 | { | |
32fe5131 | 20262 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20263 | if (SWIG_arg_fail(2)) SWIG_fail; |
20264 | } | |
d14a1e28 RD |
20265 | { |
20266 | arg3 = wxString_in_helper(obj2); | |
20267 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 20268 | temp3 = true; |
d14a1e28 RD |
20269 | } |
20270 | { | |
20271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20272 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
20273 | ||
20274 | wxPyEndAllowThreads(__tstate); | |
20275 | if (PyErr_Occurred()) SWIG_fail; | |
20276 | } | |
20277 | Py_INCREF(Py_None); resultobj = Py_None; | |
20278 | { | |
20279 | if (temp3) | |
20280 | delete arg3; | |
20281 | } | |
20282 | return resultobj; | |
20283 | fail: | |
20284 | { | |
20285 | if (temp3) | |
20286 | delete arg3; | |
20287 | } | |
20288 | return NULL; | |
20289 | } | |
20290 | ||
20291 | ||
c32bde28 | 20292 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20293 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20294 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20295 | int arg2 ; | |
20296 | wxString result; | |
20297 | PyObject * obj0 = 0 ; | |
994141e6 | 20298 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20299 | char *kwnames[] = { |
20300 | (char *) "self",(char *) "id", NULL | |
20301 | }; | |
20302 | ||
994141e6 | 20303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20306 | { | |
32fe5131 | 20307 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20308 | if (SWIG_arg_fail(2)) SWIG_fail; |
20309 | } | |
d14a1e28 RD |
20310 | { |
20311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20312 | result = (arg1)->GetToolShortHelp(arg2); | |
20313 | ||
20314 | wxPyEndAllowThreads(__tstate); | |
20315 | if (PyErr_Occurred()) SWIG_fail; | |
20316 | } | |
20317 | { | |
20318 | #if wxUSE_UNICODE | |
20319 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20320 | #else | |
20321 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20322 | #endif | |
20323 | } | |
20324 | return resultobj; | |
20325 | fail: | |
20326 | return NULL; | |
20327 | } | |
20328 | ||
20329 | ||
c32bde28 | 20330 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20331 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20332 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20333 | int arg2 ; | |
20334 | wxString *arg3 = 0 ; | |
ae8162c8 | 20335 | bool temp3 = false ; |
d14a1e28 | 20336 | PyObject * obj0 = 0 ; |
994141e6 | 20337 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20338 | PyObject * obj2 = 0 ; |
20339 | char *kwnames[] = { | |
20340 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20341 | }; | |
20342 | ||
994141e6 | 20343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20346 | { | |
32fe5131 | 20347 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20348 | if (SWIG_arg_fail(2)) SWIG_fail; |
20349 | } | |
d14a1e28 RD |
20350 | { |
20351 | arg3 = wxString_in_helper(obj2); | |
20352 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 20353 | temp3 = true; |
d14a1e28 RD |
20354 | } |
20355 | { | |
20356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20357 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
20358 | ||
20359 | wxPyEndAllowThreads(__tstate); | |
20360 | if (PyErr_Occurred()) SWIG_fail; | |
20361 | } | |
20362 | Py_INCREF(Py_None); resultobj = Py_None; | |
20363 | { | |
20364 | if (temp3) | |
20365 | delete arg3; | |
20366 | } | |
20367 | return resultobj; | |
20368 | fail: | |
20369 | { | |
20370 | if (temp3) | |
20371 | delete arg3; | |
20372 | } | |
20373 | return NULL; | |
20374 | } | |
20375 | ||
20376 | ||
c32bde28 | 20377 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20378 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20379 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20380 | int arg2 ; | |
20381 | wxString result; | |
20382 | PyObject * obj0 = 0 ; | |
994141e6 | 20383 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20384 | char *kwnames[] = { |
20385 | (char *) "self",(char *) "id", NULL | |
20386 | }; | |
20387 | ||
994141e6 | 20388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20389 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20390 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20391 | { | |
32fe5131 | 20392 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20393 | if (SWIG_arg_fail(2)) SWIG_fail; |
20394 | } | |
d14a1e28 RD |
20395 | { |
20396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20397 | result = (arg1)->GetToolLongHelp(arg2); | |
20398 | ||
20399 | wxPyEndAllowThreads(__tstate); | |
20400 | if (PyErr_Occurred()) SWIG_fail; | |
20401 | } | |
20402 | { | |
20403 | #if wxUSE_UNICODE | |
20404 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20405 | #else | |
20406 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20407 | #endif | |
20408 | } | |
20409 | return resultobj; | |
20410 | fail: | |
20411 | return NULL; | |
20412 | } | |
20413 | ||
20414 | ||
c32bde28 | 20415 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20416 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20417 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20418 | int arg2 ; | |
20419 | int arg3 ; | |
20420 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20421 | PyObject * obj1 = 0 ; |
20422 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20423 | char *kwnames[] = { |
20424 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20425 | }; | |
20426 | ||
994141e6 | 20427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20430 | { | |
32fe5131 | 20431 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20432 | if (SWIG_arg_fail(2)) SWIG_fail; |
20433 | } | |
20434 | { | |
32fe5131 | 20435 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20436 | if (SWIG_arg_fail(3)) SWIG_fail; |
20437 | } | |
d14a1e28 RD |
20438 | { |
20439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20440 | (arg1)->SetMargins(arg2,arg3); | |
20441 | ||
20442 | wxPyEndAllowThreads(__tstate); | |
20443 | if (PyErr_Occurred()) SWIG_fail; | |
20444 | } | |
20445 | Py_INCREF(Py_None); resultobj = Py_None; | |
20446 | return resultobj; | |
20447 | fail: | |
20448 | return NULL; | |
20449 | } | |
20450 | ||
20451 | ||
c32bde28 | 20452 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20453 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20454 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20455 | wxSize *arg2 = 0 ; | |
20456 | wxSize temp2 ; | |
20457 | PyObject * obj0 = 0 ; | |
20458 | PyObject * obj1 = 0 ; | |
20459 | char *kwnames[] = { | |
20460 | (char *) "self",(char *) "size", NULL | |
20461 | }; | |
20462 | ||
20463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20466 | { |
20467 | arg2 = &temp2; | |
20468 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20469 | } | |
20470 | { | |
20471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20472 | (arg1)->SetMargins((wxSize const &)*arg2); | |
20473 | ||
20474 | wxPyEndAllowThreads(__tstate); | |
20475 | if (PyErr_Occurred()) SWIG_fail; | |
20476 | } | |
20477 | Py_INCREF(Py_None); resultobj = Py_None; | |
20478 | return resultobj; | |
20479 | fail: | |
20480 | return NULL; | |
20481 | } | |
20482 | ||
20483 | ||
c32bde28 | 20484 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20485 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20486 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20487 | int arg2 ; | |
20488 | PyObject * obj0 = 0 ; | |
994141e6 | 20489 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20490 | char *kwnames[] = { |
20491 | (char *) "self",(char *) "packing", NULL | |
20492 | }; | |
20493 | ||
994141e6 | 20494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20497 | { | |
32fe5131 | 20498 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20499 | if (SWIG_arg_fail(2)) SWIG_fail; |
20500 | } | |
d14a1e28 RD |
20501 | { |
20502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20503 | (arg1)->SetToolPacking(arg2); | |
20504 | ||
20505 | wxPyEndAllowThreads(__tstate); | |
20506 | if (PyErr_Occurred()) SWIG_fail; | |
20507 | } | |
20508 | Py_INCREF(Py_None); resultobj = Py_None; | |
20509 | return resultobj; | |
20510 | fail: | |
20511 | return NULL; | |
20512 | } | |
20513 | ||
20514 | ||
c32bde28 | 20515 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20516 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20517 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20518 | int arg2 ; | |
20519 | PyObject * obj0 = 0 ; | |
994141e6 | 20520 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20521 | char *kwnames[] = { |
20522 | (char *) "self",(char *) "separation", NULL | |
20523 | }; | |
20524 | ||
994141e6 | 20525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20528 | { | |
32fe5131 | 20529 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20530 | if (SWIG_arg_fail(2)) SWIG_fail; |
20531 | } | |
d14a1e28 RD |
20532 | { |
20533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20534 | (arg1)->SetToolSeparation(arg2); | |
20535 | ||
20536 | wxPyEndAllowThreads(__tstate); | |
20537 | if (PyErr_Occurred()) SWIG_fail; | |
20538 | } | |
20539 | Py_INCREF(Py_None); resultobj = Py_None; | |
20540 | return resultobj; | |
20541 | fail: | |
20542 | return NULL; | |
20543 | } | |
20544 | ||
20545 | ||
c32bde28 | 20546 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20547 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20548 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20549 | wxSize result; | |
20550 | PyObject * obj0 = 0 ; | |
20551 | char *kwnames[] = { | |
20552 | (char *) "self", NULL | |
20553 | }; | |
20554 | ||
20555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20556 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20557 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20558 | { |
20559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20560 | result = (arg1)->GetToolMargins(); | |
20561 | ||
20562 | wxPyEndAllowThreads(__tstate); | |
20563 | if (PyErr_Occurred()) SWIG_fail; | |
20564 | } | |
20565 | { | |
20566 | wxSize * resultptr; | |
32fe5131 | 20567 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 20568 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20569 | } |
20570 | return resultobj; | |
20571 | fail: | |
20572 | return NULL; | |
20573 | } | |
20574 | ||
20575 | ||
c32bde28 | 20576 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20577 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20578 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20579 | wxSize result; | |
20580 | PyObject * obj0 = 0 ; | |
20581 | char *kwnames[] = { | |
20582 | (char *) "self", NULL | |
20583 | }; | |
20584 | ||
20585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20586 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20587 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20588 | { |
20589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20590 | result = (arg1)->GetMargins(); | |
20591 | ||
20592 | wxPyEndAllowThreads(__tstate); | |
20593 | if (PyErr_Occurred()) SWIG_fail; | |
20594 | } | |
20595 | { | |
20596 | wxSize * resultptr; | |
32fe5131 | 20597 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 20598 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20599 | } |
20600 | return resultobj; | |
20601 | fail: | |
20602 | return NULL; | |
20603 | } | |
20604 | ||
20605 | ||
c32bde28 | 20606 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20607 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20608 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20609 | int result; | |
20610 | PyObject * obj0 = 0 ; | |
20611 | char *kwnames[] = { | |
20612 | (char *) "self", NULL | |
20613 | }; | |
20614 | ||
20615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20616 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20618 | { |
20619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20620 | result = (int)(arg1)->GetToolPacking(); | |
20621 | ||
20622 | wxPyEndAllowThreads(__tstate); | |
20623 | if (PyErr_Occurred()) SWIG_fail; | |
20624 | } | |
093d3ff1 | 20625 | { |
32fe5131 | 20626 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20627 | } |
d14a1e28 RD |
20628 | return resultobj; |
20629 | fail: | |
20630 | return NULL; | |
20631 | } | |
20632 | ||
20633 | ||
c32bde28 | 20634 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20635 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20636 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20637 | int result; | |
20638 | PyObject * obj0 = 0 ; | |
20639 | char *kwnames[] = { | |
20640 | (char *) "self", NULL | |
20641 | }; | |
20642 | ||
20643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20646 | { |
20647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20648 | result = (int)(arg1)->GetToolSeparation(); | |
20649 | ||
20650 | wxPyEndAllowThreads(__tstate); | |
20651 | if (PyErr_Occurred()) SWIG_fail; | |
20652 | } | |
093d3ff1 | 20653 | { |
32fe5131 | 20654 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20655 | } |
d14a1e28 RD |
20656 | return resultobj; |
20657 | fail: | |
20658 | return NULL; | |
20659 | } | |
20660 | ||
20661 | ||
c32bde28 | 20662 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20663 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20664 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20665 | int arg2 ; | |
20666 | PyObject * obj0 = 0 ; | |
994141e6 | 20667 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20668 | char *kwnames[] = { |
20669 | (char *) "self",(char *) "nRows", NULL | |
20670 | }; | |
20671 | ||
994141e6 | 20672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20675 | { | |
32fe5131 | 20676 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20677 | if (SWIG_arg_fail(2)) SWIG_fail; |
20678 | } | |
d14a1e28 RD |
20679 | { |
20680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20681 | (arg1)->SetRows(arg2); | |
20682 | ||
20683 | wxPyEndAllowThreads(__tstate); | |
20684 | if (PyErr_Occurred()) SWIG_fail; | |
20685 | } | |
20686 | Py_INCREF(Py_None); resultobj = Py_None; | |
20687 | return resultobj; | |
20688 | fail: | |
20689 | return NULL; | |
20690 | } | |
20691 | ||
20692 | ||
c32bde28 | 20693 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20694 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20695 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20696 | int arg2 ; | |
20697 | int arg3 ; | |
20698 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20699 | PyObject * obj1 = 0 ; |
20700 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20701 | char *kwnames[] = { |
20702 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
20703 | }; | |
20704 | ||
994141e6 | 20705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20706 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20707 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20708 | { | |
32fe5131 | 20709 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20710 | if (SWIG_arg_fail(2)) SWIG_fail; |
20711 | } | |
20712 | { | |
32fe5131 | 20713 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20714 | if (SWIG_arg_fail(3)) SWIG_fail; |
20715 | } | |
d14a1e28 RD |
20716 | { |
20717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20718 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
20719 | ||
20720 | wxPyEndAllowThreads(__tstate); | |
20721 | if (PyErr_Occurred()) SWIG_fail; | |
20722 | } | |
20723 | Py_INCREF(Py_None); resultobj = Py_None; | |
20724 | return resultobj; | |
20725 | fail: | |
20726 | return NULL; | |
20727 | } | |
20728 | ||
20729 | ||
c32bde28 | 20730 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20731 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20732 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20733 | int result; | |
20734 | PyObject * obj0 = 0 ; | |
20735 | char *kwnames[] = { | |
20736 | (char *) "self", NULL | |
20737 | }; | |
20738 | ||
20739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20742 | { |
20743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20744 | result = (int)(arg1)->GetMaxRows(); | |
20745 | ||
20746 | wxPyEndAllowThreads(__tstate); | |
20747 | if (PyErr_Occurred()) SWIG_fail; | |
20748 | } | |
093d3ff1 | 20749 | { |
32fe5131 | 20750 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20751 | } |
d14a1e28 RD |
20752 | return resultobj; |
20753 | fail: | |
20754 | return NULL; | |
20755 | } | |
20756 | ||
20757 | ||
c32bde28 | 20758 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20759 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20760 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20761 | int result; | |
20762 | PyObject * obj0 = 0 ; | |
20763 | char *kwnames[] = { | |
20764 | (char *) "self", NULL | |
20765 | }; | |
20766 | ||
20767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20768 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20769 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20770 | { |
20771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20772 | result = (int)(arg1)->GetMaxCols(); | |
20773 | ||
20774 | wxPyEndAllowThreads(__tstate); | |
20775 | if (PyErr_Occurred()) SWIG_fail; | |
20776 | } | |
093d3ff1 | 20777 | { |
32fe5131 | 20778 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20779 | } |
d14a1e28 RD |
20780 | return resultobj; |
20781 | fail: | |
20782 | return NULL; | |
20783 | } | |
20784 | ||
20785 | ||
c32bde28 | 20786 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20787 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20788 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20789 | wxSize *arg2 = 0 ; | |
20790 | wxSize temp2 ; | |
20791 | PyObject * obj0 = 0 ; | |
20792 | PyObject * obj1 = 0 ; | |
20793 | char *kwnames[] = { | |
20794 | (char *) "self",(char *) "size", NULL | |
20795 | }; | |
20796 | ||
20797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20800 | { |
20801 | arg2 = &temp2; | |
20802 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20803 | } | |
20804 | { | |
20805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20806 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
20807 | ||
20808 | wxPyEndAllowThreads(__tstate); | |
20809 | if (PyErr_Occurred()) SWIG_fail; | |
20810 | } | |
20811 | Py_INCREF(Py_None); resultobj = Py_None; | |
20812 | return resultobj; | |
20813 | fail: | |
20814 | return NULL; | |
20815 | } | |
20816 | ||
20817 | ||
c32bde28 | 20818 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20819 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20820 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20821 | wxSize result; | |
20822 | PyObject * obj0 = 0 ; | |
20823 | char *kwnames[] = { | |
20824 | (char *) "self", NULL | |
20825 | }; | |
20826 | ||
20827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20828 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20829 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20830 | { |
20831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20832 | result = (arg1)->GetToolBitmapSize(); | |
20833 | ||
20834 | wxPyEndAllowThreads(__tstate); | |
20835 | if (PyErr_Occurred()) SWIG_fail; | |
20836 | } | |
20837 | { | |
20838 | wxSize * resultptr; | |
32fe5131 | 20839 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 20840 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20841 | } |
20842 | return resultobj; | |
20843 | fail: | |
20844 | return NULL; | |
20845 | } | |
20846 | ||
20847 | ||
c32bde28 | 20848 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20849 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20850 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20851 | wxSize result; | |
20852 | PyObject * obj0 = 0 ; | |
20853 | char *kwnames[] = { | |
20854 | (char *) "self", NULL | |
20855 | }; | |
20856 | ||
20857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20860 | { |
20861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20862 | result = (arg1)->GetToolSize(); | |
20863 | ||
20864 | wxPyEndAllowThreads(__tstate); | |
20865 | if (PyErr_Occurred()) SWIG_fail; | |
20866 | } | |
20867 | { | |
20868 | wxSize * resultptr; | |
32fe5131 | 20869 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 20870 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20871 | } |
20872 | return resultobj; | |
20873 | fail: | |
20874 | return NULL; | |
20875 | } | |
20876 | ||
20877 | ||
c32bde28 | 20878 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20879 | PyObject *resultobj = NULL; |
d14a1e28 | 20880 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
e811c8ce RD |
20881 | int arg2 ; |
20882 | int arg3 ; | |
d14a1e28 RD |
20883 | wxToolBarToolBase *result; |
20884 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20885 | PyObject * obj1 = 0 ; |
20886 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20887 | char *kwnames[] = { |
20888 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20889 | }; | |
20890 | ||
994141e6 | 20891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20892 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20893 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20894 | { | |
32fe5131 | 20895 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20896 | if (SWIG_arg_fail(2)) SWIG_fail; |
20897 | } | |
20898 | { | |
32fe5131 | 20899 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20900 | if (SWIG_arg_fail(3)) SWIG_fail; |
20901 | } | |
d14a1e28 RD |
20902 | { |
20903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20904 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
20905 | ||
20906 | wxPyEndAllowThreads(__tstate); | |
20907 | if (PyErr_Occurred()) SWIG_fail; | |
20908 | } | |
20909 | { | |
412d302d | 20910 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
20911 | } |
20912 | return resultobj; | |
20913 | fail: | |
20914 | return NULL; | |
20915 | } | |
20916 | ||
20917 | ||
c32bde28 | 20918 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20919 | PyObject *resultobj = NULL; |
3a04f143 RD |
20920 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20921 | int arg2 ; | |
20922 | wxToolBarToolBase *result; | |
20923 | PyObject * obj0 = 0 ; | |
994141e6 | 20924 | PyObject * obj1 = 0 ; |
3a04f143 RD |
20925 | char *kwnames[] = { |
20926 | (char *) "self",(char *) "toolid", NULL | |
20927 | }; | |
20928 | ||
994141e6 | 20929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20930 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20931 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20932 | { | |
32fe5131 | 20933 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20934 | if (SWIG_arg_fail(2)) SWIG_fail; |
20935 | } | |
3a04f143 RD |
20936 | { |
20937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20938 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
20939 | ||
20940 | wxPyEndAllowThreads(__tstate); | |
20941 | if (PyErr_Occurred()) SWIG_fail; | |
20942 | } | |
20943 | { | |
412d302d | 20944 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
20945 | } |
20946 | return resultobj; | |
20947 | fail: | |
20948 | return NULL; | |
20949 | } | |
20950 | ||
20951 | ||
c32bde28 | 20952 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20953 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20954 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20955 | bool result; | |
20956 | PyObject * obj0 = 0 ; | |
20957 | char *kwnames[] = { | |
20958 | (char *) "self", NULL | |
20959 | }; | |
20960 | ||
20961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20962 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20964 | { |
20965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20966 | result = (bool)(arg1)->IsVertical(); | |
20967 | ||
20968 | wxPyEndAllowThreads(__tstate); | |
20969 | if (PyErr_Occurred()) SWIG_fail; | |
20970 | } | |
4f89f6a3 RD |
20971 | { |
20972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20973 | } | |
d14a1e28 RD |
20974 | return resultobj; |
20975 | fail: | |
20976 | return NULL; | |
20977 | } | |
20978 | ||
20979 | ||
c32bde28 | 20980 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20981 | PyObject *obj; |
20982 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20983 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
20984 | Py_INCREF(obj); | |
20985 | return Py_BuildValue((char *)""); | |
20986 | } | |
c32bde28 | 20987 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20988 | PyObject *resultobj = NULL; |
d14a1e28 | 20989 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 20990 | int arg2 = (int) -1 ; |
d14a1e28 RD |
20991 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20992 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20993 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20994 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20995 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
20996 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
20997 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20998 | wxToolBar *result; | |
20999 | wxPoint temp3 ; | |
21000 | wxSize temp4 ; | |
ae8162c8 | 21001 | bool temp6 = false ; |
d14a1e28 | 21002 | PyObject * obj0 = 0 ; |
994141e6 | 21003 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21004 | PyObject * obj2 = 0 ; |
21005 | PyObject * obj3 = 0 ; | |
994141e6 | 21006 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21007 | PyObject * obj5 = 0 ; |
21008 | char *kwnames[] = { | |
21009 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21010 | }; | |
21011 | ||
248ed943 | 21012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
21013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 21015 | if (obj1) { |
093d3ff1 | 21016 | { |
32fe5131 | 21017 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21018 | if (SWIG_arg_fail(2)) SWIG_fail; |
21019 | } | |
248ed943 | 21020 | } |
d14a1e28 RD |
21021 | if (obj2) { |
21022 | { | |
21023 | arg3 = &temp3; | |
21024 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21025 | } | |
21026 | } | |
21027 | if (obj3) { | |
21028 | { | |
21029 | arg4 = &temp4; | |
21030 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21031 | } | |
21032 | } | |
994141e6 | 21033 | if (obj4) { |
093d3ff1 | 21034 | { |
32fe5131 | 21035 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
21036 | if (SWIG_arg_fail(5)) SWIG_fail; |
21037 | } | |
994141e6 | 21038 | } |
d14a1e28 RD |
21039 | if (obj5) { |
21040 | { | |
21041 | arg6 = wxString_in_helper(obj5); | |
21042 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 21043 | temp6 = true; |
d14a1e28 RD |
21044 | } |
21045 | } | |
21046 | { | |
e3b71cb8 | 21047 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21049 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21050 | ||
21051 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21052 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21053 | } |
b0f7404b | 21054 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
21055 | { |
21056 | if (temp6) | |
21057 | delete arg6; | |
21058 | } | |
21059 | return resultobj; | |
21060 | fail: | |
21061 | { | |
21062 | if (temp6) | |
21063 | delete arg6; | |
21064 | } | |
21065 | return NULL; | |
21066 | } | |
21067 | ||
21068 | ||
c32bde28 | 21069 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21070 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21071 | wxToolBar *result; |
21072 | char *kwnames[] = { | |
21073 | NULL | |
21074 | }; | |
21075 | ||
21076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
21077 | { | |
e3b71cb8 | 21078 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21080 | result = (wxToolBar *)new wxToolBar(); | |
21081 | ||
21082 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21083 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21084 | } |
b0f7404b | 21085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
21086 | return resultobj; |
21087 | fail: | |
21088 | return NULL; | |
21089 | } | |
21090 | ||
21091 | ||
c32bde28 | 21092 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21093 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21094 | wxToolBar *arg1 = (wxToolBar *) 0 ; |
21095 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 21096 | int arg3 = (int) -1 ; |
d14a1e28 RD |
21097 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21098 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21099 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21100 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21101 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
21102 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
21103 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21104 | bool result; | |
21105 | wxPoint temp4 ; | |
21106 | wxSize temp5 ; | |
ae8162c8 | 21107 | bool temp7 = false ; |
d14a1e28 RD |
21108 | PyObject * obj0 = 0 ; |
21109 | PyObject * obj1 = 0 ; | |
994141e6 | 21110 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21111 | PyObject * obj3 = 0 ; |
21112 | PyObject * obj4 = 0 ; | |
994141e6 | 21113 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21114 | PyObject * obj6 = 0 ; |
21115 | char *kwnames[] = { | |
21116 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21117 | }; | |
21118 | ||
248ed943 | 21119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
21120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
21121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21122 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21123 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 21124 | if (obj2) { |
093d3ff1 | 21125 | { |
32fe5131 | 21126 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21127 | if (SWIG_arg_fail(3)) SWIG_fail; |
21128 | } | |
248ed943 | 21129 | } |
d14a1e28 RD |
21130 | if (obj3) { |
21131 | { | |
21132 | arg4 = &temp4; | |
21133 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21134 | } | |
21135 | } | |
21136 | if (obj4) { | |
21137 | { | |
21138 | arg5 = &temp5; | |
21139 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21140 | } | |
21141 | } | |
994141e6 | 21142 | if (obj5) { |
093d3ff1 | 21143 | { |
32fe5131 | 21144 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
21145 | if (SWIG_arg_fail(6)) SWIG_fail; |
21146 | } | |
994141e6 | 21147 | } |
d14a1e28 RD |
21148 | if (obj6) { |
21149 | { | |
21150 | arg7 = wxString_in_helper(obj6); | |
21151 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 21152 | temp7 = true; |
d14a1e28 RD |
21153 | } |
21154 | } | |
21155 | { | |
21156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21157 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21158 | ||
21159 | wxPyEndAllowThreads(__tstate); | |
21160 | if (PyErr_Occurred()) SWIG_fail; | |
21161 | } | |
4f89f6a3 RD |
21162 | { |
21163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21164 | } | |
d14a1e28 RD |
21165 | { |
21166 | if (temp7) | |
21167 | delete arg7; | |
21168 | } | |
21169 | return resultobj; | |
21170 | fail: | |
21171 | { | |
21172 | if (temp7) | |
21173 | delete arg7; | |
21174 | } | |
21175 | return NULL; | |
21176 | } | |
21177 | ||
21178 | ||
c32bde28 | 21179 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21180 | PyObject *resultobj = NULL; |
d14a1e28 | 21181 | wxToolBar *arg1 = (wxToolBar *) 0 ; |
e811c8ce RD |
21182 | int arg2 ; |
21183 | int arg3 ; | |
d14a1e28 RD |
21184 | wxToolBarToolBase *result; |
21185 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21186 | PyObject * obj1 = 0 ; |
21187 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21188 | char *kwnames[] = { |
21189 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21190 | }; | |
21191 | ||
994141e6 | 21192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
21194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21195 | { | |
32fe5131 | 21196 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21197 | if (SWIG_arg_fail(2)) SWIG_fail; |
21198 | } | |
21199 | { | |
32fe5131 | 21200 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21201 | if (SWIG_arg_fail(3)) SWIG_fail; |
21202 | } | |
d14a1e28 RD |
21203 | { |
21204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21205 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
21206 | ||
21207 | wxPyEndAllowThreads(__tstate); | |
21208 | if (PyErr_Occurred()) SWIG_fail; | |
21209 | } | |
21210 | { | |
412d302d | 21211 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21212 | } |
21213 | return resultobj; | |
21214 | fail: | |
21215 | return NULL; | |
21216 | } | |
21217 | ||
21218 | ||
c32bde28 | 21219 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21220 | PyObject *resultobj = NULL; |
093d3ff1 | 21221 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
21222 | wxVisualAttributes result; |
21223 | PyObject * obj0 = 0 ; | |
21224 | char *kwnames[] = { | |
21225 | (char *) "variant", NULL | |
21226 | }; | |
21227 | ||
21228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
21229 | if (obj0) { | |
093d3ff1 | 21230 | { |
32fe5131 | 21231 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
21232 | if (SWIG_arg_fail(1)) SWIG_fail; |
21233 | } | |
22bfe96c RD |
21234 | } |
21235 | { | |
110da5b0 | 21236 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 21237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 21238 | result = wxToolBar::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
21239 | |
21240 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 21241 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
21242 | } |
21243 | { | |
21244 | wxVisualAttributes * resultptr; | |
32fe5131 | 21245 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
21246 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
21247 | } | |
21248 | return resultobj; | |
21249 | fail: | |
21250 | return NULL; | |
21251 | } | |
21252 | ||
21253 | ||
c32bde28 | 21254 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21255 | PyObject *obj; |
21256 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21257 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
21258 | Py_INCREF(obj); | |
21259 | return Py_BuildValue((char *)""); | |
21260 | } | |
c32bde28 | 21261 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
21262 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
21263 | return 1; | |
21264 | } | |
21265 | ||
21266 | ||
093d3ff1 | 21267 | static PyObject *_wrap_ListCtrlNameStr_get(void) { |
32fe5131 | 21268 | PyObject *pyobj = NULL; |
b2dc1044 RD |
21269 | |
21270 | { | |
21271 | #if wxUSE_UNICODE | |
21272 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21273 | #else | |
21274 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21275 | #endif | |
21276 | } | |
21277 | return pyobj; | |
21278 | } | |
21279 | ||
21280 | ||
c32bde28 | 21281 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21282 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21283 | wxColour const &arg1_defvalue = wxNullColour ; |
21284 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
21285 | wxColour const &arg2_defvalue = wxNullColour ; | |
21286 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
21287 | wxFont const &arg3_defvalue = wxNullFont ; | |
21288 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
21289 | wxListItemAttr *result; | |
21290 | wxColour temp1 ; | |
21291 | wxColour temp2 ; | |
21292 | PyObject * obj0 = 0 ; | |
21293 | PyObject * obj1 = 0 ; | |
21294 | PyObject * obj2 = 0 ; | |
21295 | char *kwnames[] = { | |
21296 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
21297 | }; | |
21298 | ||
21299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21300 | if (obj0) { | |
21301 | { | |
21302 | arg1 = &temp1; | |
21303 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
21304 | } | |
21305 | } | |
21306 | if (obj1) { | |
21307 | { | |
21308 | arg2 = &temp2; | |
21309 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21310 | } | |
21311 | } | |
21312 | if (obj2) { | |
093d3ff1 RD |
21313 | { |
21314 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21315 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21316 | if (arg3 == NULL) { | |
21317 | SWIG_null_ref("wxFont"); | |
21318 | } | |
21319 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
21320 | } |
21321 | } | |
21322 | { | |
21323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21324 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
21325 | ||
21326 | wxPyEndAllowThreads(__tstate); | |
21327 | if (PyErr_Occurred()) SWIG_fail; | |
21328 | } | |
15afbcd0 | 21329 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
21330 | return resultobj; |
21331 | fail: | |
21332 | return NULL; | |
21333 | } | |
21334 | ||
21335 | ||
c32bde28 | 21336 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21337 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21338 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
21339 | wxColour *arg2 = 0 ; | |
21340 | wxColour temp2 ; | |
21341 | PyObject * obj0 = 0 ; | |
21342 | PyObject * obj1 = 0 ; | |
21343 | char *kwnames[] = { | |
21344 | (char *) "self",(char *) "colText", NULL | |
21345 | }; | |
21346 | ||
21347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21348 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21349 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21350 | { |
21351 | arg2 = &temp2; | |
21352 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21353 | } | |
21354 | { | |
21355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21356 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21357 | ||
21358 | wxPyEndAllowThreads(__tstate); | |
21359 | if (PyErr_Occurred()) SWIG_fail; | |
21360 | } | |
21361 | Py_INCREF(Py_None); resultobj = Py_None; | |
21362 | return resultobj; | |
21363 | fail: | |
21364 | return NULL; | |
21365 | } | |
21366 | ||
21367 | ||
c32bde28 | 21368 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21369 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21370 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
21371 | wxColour *arg2 = 0 ; | |
21372 | wxColour temp2 ; | |
21373 | PyObject * obj0 = 0 ; | |
21374 | PyObject * obj1 = 0 ; | |
21375 | char *kwnames[] = { | |
21376 | (char *) "self",(char *) "colBack", NULL | |
21377 | }; | |
21378 | ||
21379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21380 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21381 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21382 | { |
21383 | arg2 = &temp2; | |
21384 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21385 | } | |
21386 | { | |
21387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21388 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21389 | ||
21390 | wxPyEndAllowThreads(__tstate); | |
21391 | if (PyErr_Occurred()) SWIG_fail; | |
21392 | } | |
21393 | Py_INCREF(Py_None); resultobj = Py_None; | |
21394 | return resultobj; | |
21395 | fail: | |
21396 | return NULL; | |
21397 | } | |
21398 | ||
21399 | ||
c32bde28 | 21400 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21401 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21402 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
21403 | wxFont *arg2 = 0 ; | |
21404 | PyObject * obj0 = 0 ; | |
21405 | PyObject * obj1 = 0 ; | |
21406 | char *kwnames[] = { | |
21407 | (char *) "self",(char *) "font", NULL | |
21408 | }; | |
21409 | ||
21410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21411 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21412 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21413 | { | |
21414 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21415 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21416 | if (arg2 == NULL) { | |
21417 | SWIG_null_ref("wxFont"); | |
21418 | } | |
21419 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
21420 | } |
21421 | { | |
21422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21423 | (arg1)->SetFont((wxFont const &)*arg2); | |
21424 | ||
21425 | wxPyEndAllowThreads(__tstate); | |
21426 | if (PyErr_Occurred()) SWIG_fail; | |
21427 | } | |
21428 | Py_INCREF(Py_None); resultobj = Py_None; | |
21429 | return resultobj; | |
21430 | fail: | |
21431 | return NULL; | |
21432 | } | |
21433 | ||
21434 | ||
c32bde28 | 21435 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21436 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21437 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
21438 | bool result; | |
21439 | PyObject * obj0 = 0 ; | |
21440 | char *kwnames[] = { | |
21441 | (char *) "self", NULL | |
21442 | }; | |
21443 | ||
21444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21447 | { |
21448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21449 | result = (bool)(arg1)->HasTextColour(); | |
21450 | ||
21451 | wxPyEndAllowThreads(__tstate); | |
21452 | if (PyErr_Occurred()) SWIG_fail; | |
21453 | } | |
4f89f6a3 RD |
21454 | { |
21455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21456 | } | |
d14a1e28 RD |
21457 | return resultobj; |
21458 | fail: | |
21459 | return NULL; | |
21460 | } | |
21461 | ||
21462 | ||
c32bde28 | 21463 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21464 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21465 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
21466 | bool result; | |
21467 | PyObject * obj0 = 0 ; | |
21468 | char *kwnames[] = { | |
21469 | (char *) "self", NULL | |
21470 | }; | |
21471 | ||
21472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21475 | { |
21476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21477 | result = (bool)(arg1)->HasBackgroundColour(); | |
21478 | ||
21479 | wxPyEndAllowThreads(__tstate); | |
21480 | if (PyErr_Occurred()) SWIG_fail; | |
21481 | } | |
4f89f6a3 RD |
21482 | { |
21483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21484 | } | |
d14a1e28 RD |
21485 | return resultobj; |
21486 | fail: | |
21487 | return NULL; | |
21488 | } | |
21489 | ||
21490 | ||
c32bde28 | 21491 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21492 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21493 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
21494 | bool result; | |
21495 | PyObject * obj0 = 0 ; | |
21496 | char *kwnames[] = { | |
21497 | (char *) "self", NULL | |
21498 | }; | |
21499 | ||
21500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21501 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21502 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21503 | { |
21504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21505 | result = (bool)(arg1)->HasFont(); | |
21506 | ||
21507 | wxPyEndAllowThreads(__tstate); | |
21508 | if (PyErr_Occurred()) SWIG_fail; | |
21509 | } | |
4f89f6a3 RD |
21510 | { |
21511 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21512 | } | |
d14a1e28 RD |
21513 | return resultobj; |
21514 | fail: | |
21515 | return NULL; | |
21516 | } | |
21517 | ||
21518 | ||
c32bde28 | 21519 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21520 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21521 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
21522 | wxColour result; | |
21523 | PyObject * obj0 = 0 ; | |
21524 | char *kwnames[] = { | |
21525 | (char *) "self", NULL | |
21526 | }; | |
21527 | ||
21528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21531 | { |
21532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21533 | result = (arg1)->GetTextColour(); | |
21534 | ||
21535 | wxPyEndAllowThreads(__tstate); | |
21536 | if (PyErr_Occurred()) SWIG_fail; | |
21537 | } | |
21538 | { | |
21539 | wxColour * resultptr; | |
32fe5131 | 21540 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 21541 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
21542 | } |
21543 | return resultobj; | |
21544 | fail: | |
21545 | return NULL; | |
21546 | } | |
21547 | ||
21548 | ||
c32bde28 | 21549 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21550 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21551 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
21552 | wxColour result; | |
21553 | PyObject * obj0 = 0 ; | |
21554 | char *kwnames[] = { | |
21555 | (char *) "self", NULL | |
21556 | }; | |
21557 | ||
21558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21561 | { |
21562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21563 | result = (arg1)->GetBackgroundColour(); | |
21564 | ||
21565 | wxPyEndAllowThreads(__tstate); | |
21566 | if (PyErr_Occurred()) SWIG_fail; | |
21567 | } | |
21568 | { | |
21569 | wxColour * resultptr; | |
32fe5131 | 21570 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 21571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
21572 | } |
21573 | return resultobj; | |
21574 | fail: | |
21575 | return NULL; | |
21576 | } | |
21577 | ||
21578 | ||
c32bde28 | 21579 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21580 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21581 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
21582 | wxFont result; | |
21583 | PyObject * obj0 = 0 ; | |
21584 | char *kwnames[] = { | |
21585 | (char *) "self", NULL | |
21586 | }; | |
21587 | ||
21588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21591 | { |
21592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21593 | result = (arg1)->GetFont(); | |
21594 | ||
21595 | wxPyEndAllowThreads(__tstate); | |
21596 | if (PyErr_Occurred()) SWIG_fail; | |
21597 | } | |
21598 | { | |
21599 | wxFont * resultptr; | |
32fe5131 | 21600 | resultptr = new wxFont(static_cast<wxFont & >(result)); |
15afbcd0 | 21601 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
21602 | } |
21603 | return resultobj; | |
21604 | fail: | |
21605 | return NULL; | |
21606 | } | |
21607 | ||
21608 | ||
c32bde28 | 21609 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21610 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21611 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
21612 | PyObject * obj0 = 0 ; | |
21613 | char *kwnames[] = { | |
21614 | (char *) "self", NULL | |
21615 | }; | |
21616 | ||
21617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21620 | { |
21621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21622 | wxListItemAttr_Destroy(arg1); | |
21623 | ||
21624 | wxPyEndAllowThreads(__tstate); | |
21625 | if (PyErr_Occurred()) SWIG_fail; | |
21626 | } | |
21627 | Py_INCREF(Py_None); resultobj = Py_None; | |
21628 | return resultobj; | |
21629 | fail: | |
21630 | return NULL; | |
21631 | } | |
21632 | ||
21633 | ||
c32bde28 | 21634 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21635 | PyObject *obj; |
21636 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21637 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
21638 | Py_INCREF(obj); | |
21639 | return Py_BuildValue((char *)""); | |
21640 | } | |
c32bde28 | 21641 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21642 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21643 | wxListItem *result; |
21644 | char *kwnames[] = { | |
21645 | NULL | |
21646 | }; | |
21647 | ||
21648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
21649 | { | |
21650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21651 | result = (wxListItem *)new wxListItem(); | |
21652 | ||
21653 | wxPyEndAllowThreads(__tstate); | |
21654 | if (PyErr_Occurred()) SWIG_fail; | |
21655 | } | |
21656 | { | |
412d302d | 21657 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
21658 | } |
21659 | return resultobj; | |
21660 | fail: | |
21661 | return NULL; | |
21662 | } | |
21663 | ||
21664 | ||
c32bde28 | 21665 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21666 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21667 | wxListItem *arg1 = (wxListItem *) 0 ; |
21668 | PyObject * obj0 = 0 ; | |
21669 | char *kwnames[] = { | |
21670 | (char *) "self", NULL | |
21671 | }; | |
21672 | ||
21673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21676 | { |
21677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21678 | delete arg1; | |
21679 | ||
21680 | wxPyEndAllowThreads(__tstate); | |
21681 | if (PyErr_Occurred()) SWIG_fail; | |
21682 | } | |
21683 | Py_INCREF(Py_None); resultobj = Py_None; | |
21684 | return resultobj; | |
21685 | fail: | |
21686 | return NULL; | |
21687 | } | |
21688 | ||
21689 | ||
c32bde28 | 21690 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21691 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21692 | wxListItem *arg1 = (wxListItem *) 0 ; |
21693 | PyObject * obj0 = 0 ; | |
21694 | char *kwnames[] = { | |
21695 | (char *) "self", NULL | |
21696 | }; | |
21697 | ||
21698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21699 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21701 | { |
21702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21703 | (arg1)->Clear(); | |
21704 | ||
21705 | wxPyEndAllowThreads(__tstate); | |
21706 | if (PyErr_Occurred()) SWIG_fail; | |
21707 | } | |
21708 | Py_INCREF(Py_None); resultobj = Py_None; | |
21709 | return resultobj; | |
21710 | fail: | |
21711 | return NULL; | |
21712 | } | |
21713 | ||
21714 | ||
c32bde28 | 21715 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21716 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21717 | wxListItem *arg1 = (wxListItem *) 0 ; |
21718 | PyObject * obj0 = 0 ; | |
21719 | char *kwnames[] = { | |
21720 | (char *) "self", NULL | |
21721 | }; | |
21722 | ||
21723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21726 | { |
21727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21728 | (arg1)->ClearAttributes(); | |
21729 | ||
21730 | wxPyEndAllowThreads(__tstate); | |
21731 | if (PyErr_Occurred()) SWIG_fail; | |
21732 | } | |
21733 | Py_INCREF(Py_None); resultobj = Py_None; | |
21734 | return resultobj; | |
21735 | fail: | |
21736 | return NULL; | |
21737 | } | |
21738 | ||
21739 | ||
c32bde28 | 21740 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21741 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21742 | wxListItem *arg1 = (wxListItem *) 0 ; |
21743 | long arg2 ; | |
21744 | PyObject * obj0 = 0 ; | |
994141e6 | 21745 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21746 | char *kwnames[] = { |
21747 | (char *) "self",(char *) "mask", NULL | |
21748 | }; | |
21749 | ||
994141e6 | 21750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21753 | { | |
32fe5131 | 21754 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
21755 | if (SWIG_arg_fail(2)) SWIG_fail; |
21756 | } | |
d14a1e28 RD |
21757 | { |
21758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21759 | (arg1)->SetMask(arg2); | |
21760 | ||
21761 | wxPyEndAllowThreads(__tstate); | |
21762 | if (PyErr_Occurred()) SWIG_fail; | |
21763 | } | |
21764 | Py_INCREF(Py_None); resultobj = Py_None; | |
21765 | return resultobj; | |
21766 | fail: | |
21767 | return NULL; | |
21768 | } | |
21769 | ||
21770 | ||
c32bde28 | 21771 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21772 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21773 | wxListItem *arg1 = (wxListItem *) 0 ; |
21774 | long arg2 ; | |
21775 | PyObject * obj0 = 0 ; | |
994141e6 | 21776 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21777 | char *kwnames[] = { |
21778 | (char *) "self",(char *) "id", NULL | |
21779 | }; | |
21780 | ||
994141e6 | 21781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21784 | { | |
32fe5131 | 21785 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
21786 | if (SWIG_arg_fail(2)) SWIG_fail; |
21787 | } | |
d14a1e28 RD |
21788 | { |
21789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21790 | (arg1)->SetId(arg2); | |
21791 | ||
21792 | wxPyEndAllowThreads(__tstate); | |
21793 | if (PyErr_Occurred()) SWIG_fail; | |
21794 | } | |
21795 | Py_INCREF(Py_None); resultobj = Py_None; | |
21796 | return resultobj; | |
21797 | fail: | |
21798 | return NULL; | |
21799 | } | |
21800 | ||
21801 | ||
c32bde28 | 21802 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21803 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21804 | wxListItem *arg1 = (wxListItem *) 0 ; |
21805 | int arg2 ; | |
21806 | PyObject * obj0 = 0 ; | |
994141e6 | 21807 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21808 | char *kwnames[] = { |
21809 | (char *) "self",(char *) "col", NULL | |
21810 | }; | |
21811 | ||
994141e6 | 21812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21815 | { | |
32fe5131 | 21816 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21817 | if (SWIG_arg_fail(2)) SWIG_fail; |
21818 | } | |
d14a1e28 RD |
21819 | { |
21820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21821 | (arg1)->SetColumn(arg2); | |
21822 | ||
21823 | wxPyEndAllowThreads(__tstate); | |
21824 | if (PyErr_Occurred()) SWIG_fail; | |
21825 | } | |
21826 | Py_INCREF(Py_None); resultobj = Py_None; | |
21827 | return resultobj; | |
21828 | fail: | |
21829 | return NULL; | |
21830 | } | |
21831 | ||
21832 | ||
c32bde28 | 21833 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21834 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21835 | wxListItem *arg1 = (wxListItem *) 0 ; |
21836 | long arg2 ; | |
21837 | PyObject * obj0 = 0 ; | |
994141e6 | 21838 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21839 | char *kwnames[] = { |
21840 | (char *) "self",(char *) "state", NULL | |
21841 | }; | |
21842 | ||
994141e6 | 21843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21844 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21846 | { | |
32fe5131 | 21847 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
21848 | if (SWIG_arg_fail(2)) SWIG_fail; |
21849 | } | |
d14a1e28 RD |
21850 | { |
21851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21852 | (arg1)->SetState(arg2); | |
21853 | ||
21854 | wxPyEndAllowThreads(__tstate); | |
21855 | if (PyErr_Occurred()) SWIG_fail; | |
21856 | } | |
21857 | Py_INCREF(Py_None); resultobj = Py_None; | |
21858 | return resultobj; | |
21859 | fail: | |
21860 | return NULL; | |
21861 | } | |
21862 | ||
21863 | ||
c32bde28 | 21864 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21865 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21866 | wxListItem *arg1 = (wxListItem *) 0 ; |
21867 | long arg2 ; | |
21868 | PyObject * obj0 = 0 ; | |
994141e6 | 21869 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21870 | char *kwnames[] = { |
21871 | (char *) "self",(char *) "stateMask", NULL | |
21872 | }; | |
21873 | ||
994141e6 | 21874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21877 | { | |
32fe5131 | 21878 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
21879 | if (SWIG_arg_fail(2)) SWIG_fail; |
21880 | } | |
d14a1e28 RD |
21881 | { |
21882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21883 | (arg1)->SetStateMask(arg2); | |
21884 | ||
21885 | wxPyEndAllowThreads(__tstate); | |
21886 | if (PyErr_Occurred()) SWIG_fail; | |
21887 | } | |
21888 | Py_INCREF(Py_None); resultobj = Py_None; | |
21889 | return resultobj; | |
21890 | fail: | |
21891 | return NULL; | |
21892 | } | |
21893 | ||
21894 | ||
c32bde28 | 21895 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21896 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21897 | wxListItem *arg1 = (wxListItem *) 0 ; |
21898 | wxString *arg2 = 0 ; | |
ae8162c8 | 21899 | bool temp2 = false ; |
d14a1e28 RD |
21900 | PyObject * obj0 = 0 ; |
21901 | PyObject * obj1 = 0 ; | |
21902 | char *kwnames[] = { | |
21903 | (char *) "self",(char *) "text", NULL | |
21904 | }; | |
21905 | ||
21906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21909 | { |
21910 | arg2 = wxString_in_helper(obj1); | |
21911 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21912 | temp2 = true; |
d14a1e28 RD |
21913 | } |
21914 | { | |
21915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21916 | (arg1)->SetText((wxString const &)*arg2); | |
21917 | ||
21918 | wxPyEndAllowThreads(__tstate); | |
21919 | if (PyErr_Occurred()) SWIG_fail; | |
21920 | } | |
21921 | Py_INCREF(Py_None); resultobj = Py_None; | |
21922 | { | |
21923 | if (temp2) | |
21924 | delete arg2; | |
21925 | } | |
21926 | return resultobj; | |
21927 | fail: | |
21928 | { | |
21929 | if (temp2) | |
21930 | delete arg2; | |
21931 | } | |
21932 | return NULL; | |
21933 | } | |
21934 | ||
21935 | ||
c32bde28 | 21936 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21937 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21938 | wxListItem *arg1 = (wxListItem *) 0 ; |
21939 | int arg2 ; | |
21940 | PyObject * obj0 = 0 ; | |
994141e6 | 21941 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21942 | char *kwnames[] = { |
21943 | (char *) "self",(char *) "image", NULL | |
21944 | }; | |
21945 | ||
994141e6 | 21946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21947 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21948 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21949 | { | |
32fe5131 | 21950 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21951 | if (SWIG_arg_fail(2)) SWIG_fail; |
21952 | } | |
d14a1e28 RD |
21953 | { |
21954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21955 | (arg1)->SetImage(arg2); | |
21956 | ||
21957 | wxPyEndAllowThreads(__tstate); | |
21958 | if (PyErr_Occurred()) SWIG_fail; | |
21959 | } | |
21960 | Py_INCREF(Py_None); resultobj = Py_None; | |
21961 | return resultobj; | |
21962 | fail: | |
21963 | return NULL; | |
21964 | } | |
21965 | ||
21966 | ||
c32bde28 | 21967 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21968 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21969 | wxListItem *arg1 = (wxListItem *) 0 ; |
21970 | long arg2 ; | |
21971 | PyObject * obj0 = 0 ; | |
994141e6 | 21972 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21973 | char *kwnames[] = { |
21974 | (char *) "self",(char *) "data", NULL | |
21975 | }; | |
21976 | ||
994141e6 | 21977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21978 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21979 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21980 | { | |
32fe5131 | 21981 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
21982 | if (SWIG_arg_fail(2)) SWIG_fail; |
21983 | } | |
d14a1e28 RD |
21984 | { |
21985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21986 | (arg1)->SetData(arg2); | |
21987 | ||
21988 | wxPyEndAllowThreads(__tstate); | |
21989 | if (PyErr_Occurred()) SWIG_fail; | |
21990 | } | |
21991 | Py_INCREF(Py_None); resultobj = Py_None; | |
21992 | return resultobj; | |
21993 | fail: | |
21994 | return NULL; | |
21995 | } | |
21996 | ||
21997 | ||
c32bde28 | 21998 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21999 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22000 | wxListItem *arg1 = (wxListItem *) 0 ; |
22001 | int arg2 ; | |
22002 | PyObject * obj0 = 0 ; | |
994141e6 | 22003 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22004 | char *kwnames[] = { |
22005 | (char *) "self",(char *) "width", NULL | |
22006 | }; | |
22007 | ||
994141e6 | 22008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22011 | { | |
32fe5131 | 22012 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22013 | if (SWIG_arg_fail(2)) SWIG_fail; |
22014 | } | |
d14a1e28 RD |
22015 | { |
22016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22017 | (arg1)->SetWidth(arg2); | |
22018 | ||
22019 | wxPyEndAllowThreads(__tstate); | |
22020 | if (PyErr_Occurred()) SWIG_fail; | |
22021 | } | |
22022 | Py_INCREF(Py_None); resultobj = Py_None; | |
22023 | return resultobj; | |
22024 | fail: | |
22025 | return NULL; | |
22026 | } | |
22027 | ||
22028 | ||
c32bde28 | 22029 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22030 | PyObject *resultobj = NULL; |
d14a1e28 | 22031 | wxListItem *arg1 = (wxListItem *) 0 ; |
093d3ff1 | 22032 | wxListColumnFormat arg2 ; |
d14a1e28 | 22033 | PyObject * obj0 = 0 ; |
994141e6 | 22034 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22035 | char *kwnames[] = { |
22036 | (char *) "self",(char *) "align", NULL | |
22037 | }; | |
22038 | ||
994141e6 | 22039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22040 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22041 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22042 | { | |
32fe5131 | 22043 | arg2 = static_cast<wxListColumnFormat >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22044 | if (SWIG_arg_fail(2)) SWIG_fail; |
22045 | } | |
d14a1e28 RD |
22046 | { |
22047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 22048 | (arg1)->SetAlign(arg2); |
d14a1e28 RD |
22049 | |
22050 | wxPyEndAllowThreads(__tstate); | |
22051 | if (PyErr_Occurred()) SWIG_fail; | |
22052 | } | |
22053 | Py_INCREF(Py_None); resultobj = Py_None; | |
22054 | return resultobj; | |
22055 | fail: | |
22056 | return NULL; | |
22057 | } | |
22058 | ||
22059 | ||
c32bde28 | 22060 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22061 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22062 | wxListItem *arg1 = (wxListItem *) 0 ; |
22063 | wxColour *arg2 = 0 ; | |
22064 | wxColour temp2 ; | |
22065 | PyObject * obj0 = 0 ; | |
22066 | PyObject * obj1 = 0 ; | |
22067 | char *kwnames[] = { | |
22068 | (char *) "self",(char *) "colText", NULL | |
22069 | }; | |
22070 | ||
22071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22074 | { |
22075 | arg2 = &temp2; | |
22076 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22077 | } | |
22078 | { | |
22079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22080 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22081 | ||
22082 | wxPyEndAllowThreads(__tstate); | |
22083 | if (PyErr_Occurred()) SWIG_fail; | |
22084 | } | |
22085 | Py_INCREF(Py_None); resultobj = Py_None; | |
22086 | return resultobj; | |
22087 | fail: | |
22088 | return NULL; | |
22089 | } | |
22090 | ||
22091 | ||
c32bde28 | 22092 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22093 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22094 | wxListItem *arg1 = (wxListItem *) 0 ; |
22095 | wxColour *arg2 = 0 ; | |
22096 | wxColour temp2 ; | |
22097 | PyObject * obj0 = 0 ; | |
22098 | PyObject * obj1 = 0 ; | |
22099 | char *kwnames[] = { | |
22100 | (char *) "self",(char *) "colBack", NULL | |
22101 | }; | |
22102 | ||
22103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22104 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22105 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22106 | { |
22107 | arg2 = &temp2; | |
22108 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22109 | } | |
22110 | { | |
22111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22112 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
22113 | ||
22114 | wxPyEndAllowThreads(__tstate); | |
22115 | if (PyErr_Occurred()) SWIG_fail; | |
22116 | } | |
22117 | Py_INCREF(Py_None); resultobj = Py_None; | |
22118 | return resultobj; | |
22119 | fail: | |
22120 | return NULL; | |
22121 | } | |
22122 | ||
22123 | ||
c32bde28 | 22124 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22125 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22126 | wxListItem *arg1 = (wxListItem *) 0 ; |
22127 | wxFont *arg2 = 0 ; | |
22128 | PyObject * obj0 = 0 ; | |
22129 | PyObject * obj1 = 0 ; | |
22130 | char *kwnames[] = { | |
22131 | (char *) "self",(char *) "font", NULL | |
22132 | }; | |
22133 | ||
22134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22135 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22136 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22137 | { | |
22138 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
22139 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22140 | if (arg2 == NULL) { | |
22141 | SWIG_null_ref("wxFont"); | |
22142 | } | |
22143 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22144 | } |
22145 | { | |
22146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22147 | (arg1)->SetFont((wxFont const &)*arg2); | |
22148 | ||
22149 | wxPyEndAllowThreads(__tstate); | |
22150 | if (PyErr_Occurred()) SWIG_fail; | |
22151 | } | |
22152 | Py_INCREF(Py_None); resultobj = Py_None; | |
22153 | return resultobj; | |
22154 | fail: | |
22155 | return NULL; | |
22156 | } | |
22157 | ||
22158 | ||
c32bde28 | 22159 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22160 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22161 | wxListItem *arg1 = (wxListItem *) 0 ; |
22162 | long result; | |
22163 | PyObject * obj0 = 0 ; | |
22164 | char *kwnames[] = { | |
22165 | (char *) "self", NULL | |
22166 | }; | |
22167 | ||
22168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22171 | { |
22172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22173 | result = (long)(arg1)->GetMask(); | |
22174 | ||
22175 | wxPyEndAllowThreads(__tstate); | |
22176 | if (PyErr_Occurred()) SWIG_fail; | |
22177 | } | |
093d3ff1 | 22178 | { |
32fe5131 | 22179 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 22180 | } |
d14a1e28 RD |
22181 | return resultobj; |
22182 | fail: | |
22183 | return NULL; | |
22184 | } | |
22185 | ||
22186 | ||
c32bde28 | 22187 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22188 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22189 | wxListItem *arg1 = (wxListItem *) 0 ; |
22190 | long result; | |
22191 | PyObject * obj0 = 0 ; | |
22192 | char *kwnames[] = { | |
22193 | (char *) "self", NULL | |
22194 | }; | |
22195 | ||
22196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22199 | { |
22200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22201 | result = (long)(arg1)->GetId(); | |
22202 | ||
22203 | wxPyEndAllowThreads(__tstate); | |
22204 | if (PyErr_Occurred()) SWIG_fail; | |
22205 | } | |
093d3ff1 | 22206 | { |
32fe5131 | 22207 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 22208 | } |
d14a1e28 RD |
22209 | return resultobj; |
22210 | fail: | |
22211 | return NULL; | |
22212 | } | |
22213 | ||
22214 | ||
c32bde28 | 22215 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22216 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22217 | wxListItem *arg1 = (wxListItem *) 0 ; |
22218 | int result; | |
22219 | PyObject * obj0 = 0 ; | |
22220 | char *kwnames[] = { | |
22221 | (char *) "self", NULL | |
22222 | }; | |
22223 | ||
22224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22227 | { |
22228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22229 | result = (int)(arg1)->GetColumn(); | |
22230 | ||
22231 | wxPyEndAllowThreads(__tstate); | |
22232 | if (PyErr_Occurred()) SWIG_fail; | |
22233 | } | |
093d3ff1 | 22234 | { |
32fe5131 | 22235 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22236 | } |
d14a1e28 RD |
22237 | return resultobj; |
22238 | fail: | |
22239 | return NULL; | |
22240 | } | |
22241 | ||
22242 | ||
c32bde28 | 22243 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22244 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22245 | wxListItem *arg1 = (wxListItem *) 0 ; |
22246 | long result; | |
22247 | PyObject * obj0 = 0 ; | |
22248 | char *kwnames[] = { | |
22249 | (char *) "self", NULL | |
22250 | }; | |
22251 | ||
22252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22253 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22255 | { |
22256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22257 | result = (long)(arg1)->GetState(); | |
22258 | ||
22259 | wxPyEndAllowThreads(__tstate); | |
22260 | if (PyErr_Occurred()) SWIG_fail; | |
22261 | } | |
093d3ff1 | 22262 | { |
32fe5131 | 22263 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 22264 | } |
d14a1e28 RD |
22265 | return resultobj; |
22266 | fail: | |
22267 | return NULL; | |
22268 | } | |
22269 | ||
22270 | ||
c32bde28 | 22271 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22272 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22273 | wxListItem *arg1 = (wxListItem *) 0 ; |
22274 | wxString *result; | |
22275 | PyObject * obj0 = 0 ; | |
22276 | char *kwnames[] = { | |
22277 | (char *) "self", NULL | |
22278 | }; | |
22279 | ||
22280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22283 | { |
22284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22285 | { | |
22286 | wxString const &_result_ref = (arg1)->GetText(); | |
22287 | result = (wxString *) &_result_ref; | |
22288 | } | |
22289 | ||
22290 | wxPyEndAllowThreads(__tstate); | |
22291 | if (PyErr_Occurred()) SWIG_fail; | |
22292 | } | |
cc6dd355 RD |
22293 | { |
22294 | #if wxUSE_UNICODE | |
22295 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22296 | #else | |
22297 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22298 | #endif | |
22299 | } | |
d14a1e28 RD |
22300 | return resultobj; |
22301 | fail: | |
22302 | return NULL; | |
22303 | } | |
22304 | ||
22305 | ||
c32bde28 | 22306 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22307 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22308 | wxListItem *arg1 = (wxListItem *) 0 ; |
22309 | int result; | |
22310 | PyObject * obj0 = 0 ; | |
22311 | char *kwnames[] = { | |
22312 | (char *) "self", NULL | |
22313 | }; | |
22314 | ||
22315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22318 | { |
22319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22320 | result = (int)(arg1)->GetImage(); | |
22321 | ||
22322 | wxPyEndAllowThreads(__tstate); | |
22323 | if (PyErr_Occurred()) SWIG_fail; | |
22324 | } | |
093d3ff1 | 22325 | { |
32fe5131 | 22326 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22327 | } |
d14a1e28 RD |
22328 | return resultobj; |
22329 | fail: | |
22330 | return NULL; | |
22331 | } | |
22332 | ||
22333 | ||
c32bde28 | 22334 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22335 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22336 | wxListItem *arg1 = (wxListItem *) 0 ; |
22337 | long result; | |
22338 | PyObject * obj0 = 0 ; | |
22339 | char *kwnames[] = { | |
22340 | (char *) "self", NULL | |
22341 | }; | |
22342 | ||
22343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22346 | { |
22347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22348 | result = (long)(arg1)->GetData(); | |
22349 | ||
22350 | wxPyEndAllowThreads(__tstate); | |
22351 | if (PyErr_Occurred()) SWIG_fail; | |
22352 | } | |
093d3ff1 | 22353 | { |
32fe5131 | 22354 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 22355 | } |
d14a1e28 RD |
22356 | return resultobj; |
22357 | fail: | |
22358 | return NULL; | |
22359 | } | |
22360 | ||
22361 | ||
c32bde28 | 22362 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22363 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22364 | wxListItem *arg1 = (wxListItem *) 0 ; |
22365 | int result; | |
22366 | PyObject * obj0 = 0 ; | |
22367 | char *kwnames[] = { | |
22368 | (char *) "self", NULL | |
22369 | }; | |
22370 | ||
22371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22372 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22373 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22374 | { |
22375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22376 | result = (int)(arg1)->GetWidth(); | |
22377 | ||
22378 | wxPyEndAllowThreads(__tstate); | |
22379 | if (PyErr_Occurred()) SWIG_fail; | |
22380 | } | |
093d3ff1 | 22381 | { |
32fe5131 | 22382 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22383 | } |
d14a1e28 RD |
22384 | return resultobj; |
22385 | fail: | |
22386 | return NULL; | |
22387 | } | |
22388 | ||
22389 | ||
c32bde28 | 22390 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22391 | PyObject *resultobj = NULL; |
d14a1e28 | 22392 | wxListItem *arg1 = (wxListItem *) 0 ; |
093d3ff1 | 22393 | wxListColumnFormat result; |
d14a1e28 RD |
22394 | PyObject * obj0 = 0 ; |
22395 | char *kwnames[] = { | |
22396 | (char *) "self", NULL | |
22397 | }; | |
22398 | ||
22399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22402 | { |
22403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22404 | result = (wxListColumnFormat)(arg1)->GetAlign(); |
d14a1e28 RD |
22405 | |
22406 | wxPyEndAllowThreads(__tstate); | |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
22408 | } | |
093d3ff1 | 22409 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
22410 | return resultobj; |
22411 | fail: | |
22412 | return NULL; | |
22413 | } | |
22414 | ||
22415 | ||
c32bde28 | 22416 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22417 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22418 | wxListItem *arg1 = (wxListItem *) 0 ; |
22419 | wxListItemAttr *result; | |
22420 | PyObject * obj0 = 0 ; | |
22421 | char *kwnames[] = { | |
22422 | (char *) "self", NULL | |
22423 | }; | |
22424 | ||
22425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22428 | { |
22429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22430 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
22431 | ||
22432 | wxPyEndAllowThreads(__tstate); | |
22433 | if (PyErr_Occurred()) SWIG_fail; | |
22434 | } | |
15afbcd0 | 22435 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
22436 | return resultobj; |
22437 | fail: | |
22438 | return NULL; | |
22439 | } | |
22440 | ||
22441 | ||
c32bde28 | 22442 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22443 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22444 | wxListItem *arg1 = (wxListItem *) 0 ; |
22445 | bool result; | |
22446 | PyObject * obj0 = 0 ; | |
22447 | char *kwnames[] = { | |
22448 | (char *) "self", NULL | |
22449 | }; | |
22450 | ||
22451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22452 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22453 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22454 | { |
22455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22456 | result = (bool)(arg1)->HasAttributes(); | |
22457 | ||
22458 | wxPyEndAllowThreads(__tstate); | |
22459 | if (PyErr_Occurred()) SWIG_fail; | |
22460 | } | |
4f89f6a3 RD |
22461 | { |
22462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22463 | } | |
d14a1e28 RD |
22464 | return resultobj; |
22465 | fail: | |
22466 | return NULL; | |
22467 | } | |
22468 | ||
22469 | ||
c32bde28 | 22470 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22471 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22472 | wxListItem *arg1 = (wxListItem *) 0 ; |
22473 | wxColour result; | |
22474 | PyObject * obj0 = 0 ; | |
22475 | char *kwnames[] = { | |
22476 | (char *) "self", NULL | |
22477 | }; | |
22478 | ||
22479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22482 | { |
22483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22484 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
22485 | ||
22486 | wxPyEndAllowThreads(__tstate); | |
22487 | if (PyErr_Occurred()) SWIG_fail; | |
22488 | } | |
22489 | { | |
22490 | wxColour * resultptr; | |
32fe5131 | 22491 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 22492 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22493 | } |
22494 | return resultobj; | |
22495 | fail: | |
22496 | return NULL; | |
22497 | } | |
22498 | ||
22499 | ||
c32bde28 | 22500 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22501 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22502 | wxListItem *arg1 = (wxListItem *) 0 ; |
22503 | wxColour result; | |
22504 | PyObject * obj0 = 0 ; | |
22505 | char *kwnames[] = { | |
22506 | (char *) "self", NULL | |
22507 | }; | |
22508 | ||
22509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22512 | { |
22513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22514 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
22515 | ||
22516 | wxPyEndAllowThreads(__tstate); | |
22517 | if (PyErr_Occurred()) SWIG_fail; | |
22518 | } | |
22519 | { | |
22520 | wxColour * resultptr; | |
32fe5131 | 22521 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 22522 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22523 | } |
22524 | return resultobj; | |
22525 | fail: | |
22526 | return NULL; | |
22527 | } | |
22528 | ||
22529 | ||
c32bde28 | 22530 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22531 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22532 | wxListItem *arg1 = (wxListItem *) 0 ; |
22533 | wxFont result; | |
22534 | PyObject * obj0 = 0 ; | |
22535 | char *kwnames[] = { | |
22536 | (char *) "self", NULL | |
22537 | }; | |
22538 | ||
22539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22540 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22541 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22542 | { |
22543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22544 | result = ((wxListItem const *)arg1)->GetFont(); | |
22545 | ||
22546 | wxPyEndAllowThreads(__tstate); | |
22547 | if (PyErr_Occurred()) SWIG_fail; | |
22548 | } | |
22549 | { | |
22550 | wxFont * resultptr; | |
32fe5131 | 22551 | resultptr = new wxFont(static_cast<wxFont & >(result)); |
15afbcd0 | 22552 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
22553 | } |
22554 | return resultobj; | |
22555 | fail: | |
22556 | return NULL; | |
22557 | } | |
22558 | ||
22559 | ||
c32bde28 | 22560 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22561 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22562 | wxListItem *arg1 = (wxListItem *) 0 ; |
22563 | long arg2 ; | |
22564 | PyObject * obj0 = 0 ; | |
994141e6 | 22565 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22566 | char *kwnames[] = { |
22567 | (char *) "self",(char *) "m_mask", NULL | |
22568 | }; | |
22569 | ||
994141e6 | 22570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22573 | { | |
32fe5131 | 22574 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
22575 | if (SWIG_arg_fail(2)) SWIG_fail; |
22576 | } | |
d14a1e28 RD |
22577 | if (arg1) (arg1)->m_mask = arg2; |
22578 | ||
22579 | Py_INCREF(Py_None); resultobj = Py_None; | |
22580 | return resultobj; | |
22581 | fail: | |
22582 | return NULL; | |
22583 | } | |
22584 | ||
22585 | ||
c32bde28 | 22586 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22587 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22588 | wxListItem *arg1 = (wxListItem *) 0 ; |
22589 | long result; | |
22590 | PyObject * obj0 = 0 ; | |
22591 | char *kwnames[] = { | |
22592 | (char *) "self", NULL | |
22593 | }; | |
22594 | ||
22595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22598 | result = (long) ((arg1)->m_mask); |
22599 | ||
093d3ff1 | 22600 | { |
32fe5131 | 22601 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 22602 | } |
d14a1e28 RD |
22603 | return resultobj; |
22604 | fail: | |
22605 | return NULL; | |
22606 | } | |
22607 | ||
22608 | ||
c32bde28 | 22609 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22610 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22611 | wxListItem *arg1 = (wxListItem *) 0 ; |
22612 | long arg2 ; | |
22613 | PyObject * obj0 = 0 ; | |
994141e6 | 22614 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22615 | char *kwnames[] = { |
22616 | (char *) "self",(char *) "m_itemId", NULL | |
22617 | }; | |
22618 | ||
994141e6 | 22619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22620 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22622 | { | |
32fe5131 | 22623 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
22624 | if (SWIG_arg_fail(2)) SWIG_fail; |
22625 | } | |
d14a1e28 RD |
22626 | if (arg1) (arg1)->m_itemId = arg2; |
22627 | ||
22628 | Py_INCREF(Py_None); resultobj = Py_None; | |
22629 | return resultobj; | |
22630 | fail: | |
22631 | return NULL; | |
22632 | } | |
22633 | ||
22634 | ||
c32bde28 | 22635 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22636 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22637 | wxListItem *arg1 = (wxListItem *) 0 ; |
22638 | long result; | |
22639 | PyObject * obj0 = 0 ; | |
22640 | char *kwnames[] = { | |
22641 | (char *) "self", NULL | |
22642 | }; | |
22643 | ||
22644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22645 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22646 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22647 | result = (long) ((arg1)->m_itemId); |
22648 | ||
093d3ff1 | 22649 | { |
32fe5131 | 22650 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 22651 | } |
d14a1e28 RD |
22652 | return resultobj; |
22653 | fail: | |
22654 | return NULL; | |
22655 | } | |
22656 | ||
22657 | ||
c32bde28 | 22658 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22659 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22660 | wxListItem *arg1 = (wxListItem *) 0 ; |
22661 | int arg2 ; | |
22662 | PyObject * obj0 = 0 ; | |
994141e6 | 22663 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22664 | char *kwnames[] = { |
22665 | (char *) "self",(char *) "m_col", NULL | |
22666 | }; | |
22667 | ||
994141e6 | 22668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22671 | { | |
32fe5131 | 22672 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22673 | if (SWIG_arg_fail(2)) SWIG_fail; |
22674 | } | |
d14a1e28 RD |
22675 | if (arg1) (arg1)->m_col = arg2; |
22676 | ||
22677 | Py_INCREF(Py_None); resultobj = Py_None; | |
22678 | return resultobj; | |
22679 | fail: | |
22680 | return NULL; | |
22681 | } | |
22682 | ||
22683 | ||
c32bde28 | 22684 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22685 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22686 | wxListItem *arg1 = (wxListItem *) 0 ; |
22687 | int result; | |
22688 | PyObject * obj0 = 0 ; | |
22689 | char *kwnames[] = { | |
22690 | (char *) "self", NULL | |
22691 | }; | |
22692 | ||
22693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22694 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22695 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22696 | result = (int) ((arg1)->m_col); |
22697 | ||
093d3ff1 | 22698 | { |
32fe5131 | 22699 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22700 | } |
d14a1e28 RD |
22701 | return resultobj; |
22702 | fail: | |
22703 | return NULL; | |
22704 | } | |
22705 | ||
22706 | ||
c32bde28 | 22707 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22708 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22709 | wxListItem *arg1 = (wxListItem *) 0 ; |
22710 | long arg2 ; | |
22711 | PyObject * obj0 = 0 ; | |
994141e6 | 22712 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22713 | char *kwnames[] = { |
22714 | (char *) "self",(char *) "m_state", NULL | |
22715 | }; | |
22716 | ||
994141e6 | 22717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22720 | { | |
32fe5131 | 22721 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
22722 | if (SWIG_arg_fail(2)) SWIG_fail; |
22723 | } | |
d14a1e28 RD |
22724 | if (arg1) (arg1)->m_state = arg2; |
22725 | ||
22726 | Py_INCREF(Py_None); resultobj = Py_None; | |
22727 | return resultobj; | |
22728 | fail: | |
22729 | return NULL; | |
22730 | } | |
22731 | ||
22732 | ||
c32bde28 | 22733 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22734 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22735 | wxListItem *arg1 = (wxListItem *) 0 ; |
22736 | long result; | |
22737 | PyObject * obj0 = 0 ; | |
22738 | char *kwnames[] = { | |
22739 | (char *) "self", NULL | |
22740 | }; | |
22741 | ||
22742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22743 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22744 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22745 | result = (long) ((arg1)->m_state); |
22746 | ||
093d3ff1 | 22747 | { |
32fe5131 | 22748 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 22749 | } |
d14a1e28 RD |
22750 | return resultobj; |
22751 | fail: | |
22752 | return NULL; | |
22753 | } | |
22754 | ||
22755 | ||
c32bde28 | 22756 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22757 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22758 | wxListItem *arg1 = (wxListItem *) 0 ; |
22759 | long arg2 ; | |
22760 | PyObject * obj0 = 0 ; | |
994141e6 | 22761 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22762 | char *kwnames[] = { |
22763 | (char *) "self",(char *) "m_stateMask", NULL | |
22764 | }; | |
22765 | ||
994141e6 | 22766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22769 | { | |
32fe5131 | 22770 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
22771 | if (SWIG_arg_fail(2)) SWIG_fail; |
22772 | } | |
d14a1e28 RD |
22773 | if (arg1) (arg1)->m_stateMask = arg2; |
22774 | ||
22775 | Py_INCREF(Py_None); resultobj = Py_None; | |
22776 | return resultobj; | |
22777 | fail: | |
22778 | return NULL; | |
22779 | } | |
22780 | ||
22781 | ||
c32bde28 | 22782 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22783 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22784 | wxListItem *arg1 = (wxListItem *) 0 ; |
22785 | long result; | |
22786 | PyObject * obj0 = 0 ; | |
22787 | char *kwnames[] = { | |
22788 | (char *) "self", NULL | |
22789 | }; | |
22790 | ||
22791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22794 | result = (long) ((arg1)->m_stateMask); |
22795 | ||
093d3ff1 | 22796 | { |
32fe5131 | 22797 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 22798 | } |
d14a1e28 RD |
22799 | return resultobj; |
22800 | fail: | |
22801 | return NULL; | |
22802 | } | |
22803 | ||
22804 | ||
c32bde28 | 22805 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22806 | PyObject *resultobj = NULL; |
d14a1e28 | 22807 | wxListItem *arg1 = (wxListItem *) 0 ; |
196addbf | 22808 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 22809 | bool temp2 = false ; |
d14a1e28 RD |
22810 | PyObject * obj0 = 0 ; |
22811 | PyObject * obj1 = 0 ; | |
22812 | char *kwnames[] = { | |
22813 | (char *) "self",(char *) "m_text", NULL | |
22814 | }; | |
22815 | ||
22816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7eae615b RD |
22819 | { |
22820 | arg2 = wxString_in_helper(obj1); | |
22821 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22822 | temp2 = true; |
7eae615b | 22823 | } |
196addbf | 22824 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
22825 | |
22826 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
22827 | { |
22828 | if (temp2) | |
22829 | delete arg2; | |
22830 | } | |
d14a1e28 RD |
22831 | return resultobj; |
22832 | fail: | |
7eae615b RD |
22833 | { |
22834 | if (temp2) | |
22835 | delete arg2; | |
22836 | } | |
d14a1e28 RD |
22837 | return NULL; |
22838 | } | |
22839 | ||
22840 | ||
c32bde28 | 22841 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22842 | PyObject *resultobj = NULL; |
d14a1e28 | 22843 | wxListItem *arg1 = (wxListItem *) 0 ; |
196addbf | 22844 | wxString *result; |
d14a1e28 RD |
22845 | PyObject * obj0 = 0 ; |
22846 | char *kwnames[] = { | |
22847 | (char *) "self", NULL | |
22848 | }; | |
22849 | ||
22850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22851 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22852 | if (SWIG_arg_fail(1)) SWIG_fail; | |
196addbf | 22853 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
22854 | |
22855 | { | |
22856 | #if wxUSE_UNICODE | |
196addbf | 22857 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 22858 | #else |
196addbf | 22859 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
22860 | #endif |
22861 | } | |
22862 | return resultobj; | |
22863 | fail: | |
22864 | return NULL; | |
22865 | } | |
22866 | ||
22867 | ||
c32bde28 | 22868 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22869 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22870 | wxListItem *arg1 = (wxListItem *) 0 ; |
22871 | int arg2 ; | |
22872 | PyObject * obj0 = 0 ; | |
994141e6 | 22873 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22874 | char *kwnames[] = { |
22875 | (char *) "self",(char *) "m_image", NULL | |
22876 | }; | |
22877 | ||
994141e6 | 22878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22881 | { | |
32fe5131 | 22882 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22883 | if (SWIG_arg_fail(2)) SWIG_fail; |
22884 | } | |
d14a1e28 RD |
22885 | if (arg1) (arg1)->m_image = arg2; |
22886 | ||
22887 | Py_INCREF(Py_None); resultobj = Py_None; | |
22888 | return resultobj; | |
22889 | fail: | |
22890 | return NULL; | |
22891 | } | |
22892 | ||
22893 | ||
c32bde28 | 22894 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22895 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22896 | wxListItem *arg1 = (wxListItem *) 0 ; |
22897 | int result; | |
22898 | PyObject * obj0 = 0 ; | |
22899 | char *kwnames[] = { | |
22900 | (char *) "self", NULL | |
22901 | }; | |
22902 | ||
22903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22906 | result = (int) ((arg1)->m_image); |
22907 | ||
093d3ff1 | 22908 | { |
32fe5131 | 22909 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22910 | } |
d14a1e28 RD |
22911 | return resultobj; |
22912 | fail: | |
22913 | return NULL; | |
22914 | } | |
22915 | ||
22916 | ||
c32bde28 | 22917 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22918 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22919 | wxListItem *arg1 = (wxListItem *) 0 ; |
22920 | long arg2 ; | |
22921 | PyObject * obj0 = 0 ; | |
994141e6 | 22922 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22923 | char *kwnames[] = { |
22924 | (char *) "self",(char *) "m_data", NULL | |
22925 | }; | |
22926 | ||
994141e6 | 22927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22930 | { | |
32fe5131 | 22931 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
22932 | if (SWIG_arg_fail(2)) SWIG_fail; |
22933 | } | |
d14a1e28 RD |
22934 | if (arg1) (arg1)->m_data = arg2; |
22935 | ||
22936 | Py_INCREF(Py_None); resultobj = Py_None; | |
22937 | return resultobj; | |
22938 | fail: | |
22939 | return NULL; | |
22940 | } | |
22941 | ||
22942 | ||
c32bde28 | 22943 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22944 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22945 | wxListItem *arg1 = (wxListItem *) 0 ; |
22946 | long result; | |
22947 | PyObject * obj0 = 0 ; | |
22948 | char *kwnames[] = { | |
22949 | (char *) "self", NULL | |
22950 | }; | |
22951 | ||
22952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22955 | result = (long) ((arg1)->m_data); |
22956 | ||
093d3ff1 | 22957 | { |
32fe5131 | 22958 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 22959 | } |
d14a1e28 RD |
22960 | return resultobj; |
22961 | fail: | |
22962 | return NULL; | |
22963 | } | |
22964 | ||
22965 | ||
c32bde28 | 22966 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22967 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22968 | wxListItem *arg1 = (wxListItem *) 0 ; |
22969 | int arg2 ; | |
22970 | PyObject * obj0 = 0 ; | |
994141e6 | 22971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22972 | char *kwnames[] = { |
22973 | (char *) "self",(char *) "m_format", NULL | |
22974 | }; | |
22975 | ||
994141e6 | 22976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22979 | { | |
32fe5131 | 22980 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22981 | if (SWIG_arg_fail(2)) SWIG_fail; |
22982 | } | |
d14a1e28 RD |
22983 | if (arg1) (arg1)->m_format = arg2; |
22984 | ||
22985 | Py_INCREF(Py_None); resultobj = Py_None; | |
22986 | return resultobj; | |
22987 | fail: | |
22988 | return NULL; | |
22989 | } | |
22990 | ||
22991 | ||
c32bde28 | 22992 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22993 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22994 | wxListItem *arg1 = (wxListItem *) 0 ; |
22995 | int result; | |
22996 | PyObject * obj0 = 0 ; | |
22997 | char *kwnames[] = { | |
22998 | (char *) "self", NULL | |
22999 | }; | |
23000 | ||
23001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23002 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23003 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23004 | result = (int) ((arg1)->m_format); |
23005 | ||
093d3ff1 | 23006 | { |
32fe5131 | 23007 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23008 | } |
d14a1e28 RD |
23009 | return resultobj; |
23010 | fail: | |
23011 | return NULL; | |
23012 | } | |
23013 | ||
23014 | ||
c32bde28 | 23015 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23016 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23017 | wxListItem *arg1 = (wxListItem *) 0 ; |
23018 | int arg2 ; | |
23019 | PyObject * obj0 = 0 ; | |
994141e6 | 23020 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23021 | char *kwnames[] = { |
23022 | (char *) "self",(char *) "m_width", NULL | |
23023 | }; | |
23024 | ||
994141e6 | 23025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23026 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23027 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23028 | { | |
32fe5131 | 23029 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23030 | if (SWIG_arg_fail(2)) SWIG_fail; |
23031 | } | |
d14a1e28 RD |
23032 | if (arg1) (arg1)->m_width = arg2; |
23033 | ||
23034 | Py_INCREF(Py_None); resultobj = Py_None; | |
23035 | return resultobj; | |
23036 | fail: | |
23037 | return NULL; | |
23038 | } | |
23039 | ||
23040 | ||
c32bde28 | 23041 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23042 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23043 | wxListItem *arg1 = (wxListItem *) 0 ; |
23044 | int result; | |
23045 | PyObject * obj0 = 0 ; | |
23046 | char *kwnames[] = { | |
23047 | (char *) "self", NULL | |
23048 | }; | |
23049 | ||
23050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23053 | result = (int) ((arg1)->m_width); |
23054 | ||
093d3ff1 | 23055 | { |
32fe5131 | 23056 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23057 | } |
d14a1e28 RD |
23058 | return resultobj; |
23059 | fail: | |
23060 | return NULL; | |
23061 | } | |
23062 | ||
23063 | ||
c32bde28 | 23064 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
23065 | PyObject *obj; |
23066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23067 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
23068 | Py_INCREF(obj); | |
23069 | return Py_BuildValue((char *)""); | |
23070 | } | |
c32bde28 | 23071 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23072 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23073 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
23074 | int arg2 = (int) 0 ; | |
23075 | wxListEvent *result; | |
994141e6 RD |
23076 | PyObject * obj0 = 0 ; |
23077 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
23078 | char *kwnames[] = { |
23079 | (char *) "commandType",(char *) "id", NULL | |
23080 | }; | |
23081 | ||
994141e6 RD |
23082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
23083 | if (obj0) { | |
093d3ff1 | 23084 | { |
32fe5131 | 23085 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
23086 | if (SWIG_arg_fail(1)) SWIG_fail; |
23087 | } | |
994141e6 RD |
23088 | } |
23089 | if (obj1) { | |
093d3ff1 | 23090 | { |
32fe5131 | 23091 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23092 | if (SWIG_arg_fail(2)) SWIG_fail; |
23093 | } | |
994141e6 | 23094 | } |
d14a1e28 RD |
23095 | { |
23096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23097 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
23098 | ||
23099 | wxPyEndAllowThreads(__tstate); | |
23100 | if (PyErr_Occurred()) SWIG_fail; | |
23101 | } | |
15afbcd0 | 23102 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
23103 | return resultobj; |
23104 | fail: | |
23105 | return NULL; | |
23106 | } | |
23107 | ||
23108 | ||
c32bde28 | 23109 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23110 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23111 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23112 | int arg2 ; | |
23113 | PyObject * obj0 = 0 ; | |
994141e6 | 23114 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23115 | char *kwnames[] = { |
23116 | (char *) "self",(char *) "m_code", NULL | |
23117 | }; | |
23118 | ||
994141e6 | 23119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23122 | { | |
32fe5131 | 23123 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23124 | if (SWIG_arg_fail(2)) SWIG_fail; |
23125 | } | |
d14a1e28 RD |
23126 | if (arg1) (arg1)->m_code = arg2; |
23127 | ||
23128 | Py_INCREF(Py_None); resultobj = Py_None; | |
23129 | return resultobj; | |
23130 | fail: | |
23131 | return NULL; | |
23132 | } | |
23133 | ||
23134 | ||
c32bde28 | 23135 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23136 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23137 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23138 | int result; | |
23139 | PyObject * obj0 = 0 ; | |
23140 | char *kwnames[] = { | |
23141 | (char *) "self", NULL | |
23142 | }; | |
23143 | ||
23144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23147 | result = (int) ((arg1)->m_code); |
23148 | ||
093d3ff1 | 23149 | { |
32fe5131 | 23150 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23151 | } |
d14a1e28 RD |
23152 | return resultobj; |
23153 | fail: | |
23154 | return NULL; | |
23155 | } | |
23156 | ||
23157 | ||
c32bde28 | 23158 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23159 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23160 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23161 | long arg2 ; | |
23162 | PyObject * obj0 = 0 ; | |
994141e6 | 23163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23164 | char *kwnames[] = { |
23165 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
23166 | }; | |
23167 | ||
994141e6 | 23168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23171 | { | |
32fe5131 | 23172 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
23173 | if (SWIG_arg_fail(2)) SWIG_fail; |
23174 | } | |
d14a1e28 RD |
23175 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
23176 | ||
23177 | Py_INCREF(Py_None); resultobj = Py_None; | |
23178 | return resultobj; | |
23179 | fail: | |
23180 | return NULL; | |
23181 | } | |
23182 | ||
23183 | ||
c32bde28 | 23184 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23185 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23186 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23187 | long result; | |
23188 | PyObject * obj0 = 0 ; | |
23189 | char *kwnames[] = { | |
23190 | (char *) "self", NULL | |
23191 | }; | |
23192 | ||
23193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23194 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23195 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23196 | result = (long) ((arg1)->m_oldItemIndex); |
23197 | ||
093d3ff1 | 23198 | { |
32fe5131 | 23199 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23200 | } |
d14a1e28 RD |
23201 | return resultobj; |
23202 | fail: | |
23203 | return NULL; | |
23204 | } | |
23205 | ||
23206 | ||
c32bde28 | 23207 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23208 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23209 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23210 | long arg2 ; | |
23211 | PyObject * obj0 = 0 ; | |
994141e6 | 23212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23213 | char *kwnames[] = { |
23214 | (char *) "self",(char *) "m_itemIndex", NULL | |
23215 | }; | |
23216 | ||
994141e6 | 23217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23220 | { | |
32fe5131 | 23221 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
23222 | if (SWIG_arg_fail(2)) SWIG_fail; |
23223 | } | |
d14a1e28 RD |
23224 | if (arg1) (arg1)->m_itemIndex = arg2; |
23225 | ||
23226 | Py_INCREF(Py_None); resultobj = Py_None; | |
23227 | return resultobj; | |
23228 | fail: | |
23229 | return NULL; | |
23230 | } | |
23231 | ||
23232 | ||
c32bde28 | 23233 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23234 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23235 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23236 | long result; | |
23237 | PyObject * obj0 = 0 ; | |
23238 | char *kwnames[] = { | |
23239 | (char *) "self", NULL | |
23240 | }; | |
23241 | ||
23242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23245 | result = (long) ((arg1)->m_itemIndex); |
23246 | ||
093d3ff1 | 23247 | { |
32fe5131 | 23248 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23249 | } |
d14a1e28 RD |
23250 | return resultobj; |
23251 | fail: | |
23252 | return NULL; | |
23253 | } | |
23254 | ||
23255 | ||
c32bde28 | 23256 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23257 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23258 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23259 | int arg2 ; | |
23260 | PyObject * obj0 = 0 ; | |
994141e6 | 23261 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23262 | char *kwnames[] = { |
23263 | (char *) "self",(char *) "m_col", NULL | |
23264 | }; | |
23265 | ||
994141e6 | 23266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23267 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23268 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23269 | { | |
32fe5131 | 23270 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23271 | if (SWIG_arg_fail(2)) SWIG_fail; |
23272 | } | |
d14a1e28 RD |
23273 | if (arg1) (arg1)->m_col = arg2; |
23274 | ||
23275 | Py_INCREF(Py_None); resultobj = Py_None; | |
23276 | return resultobj; | |
23277 | fail: | |
23278 | return NULL; | |
23279 | } | |
23280 | ||
23281 | ||
c32bde28 | 23282 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23283 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23284 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23285 | int result; | |
23286 | PyObject * obj0 = 0 ; | |
23287 | char *kwnames[] = { | |
23288 | (char *) "self", NULL | |
23289 | }; | |
23290 | ||
23291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23294 | result = (int) ((arg1)->m_col); |
23295 | ||
093d3ff1 | 23296 | { |
32fe5131 | 23297 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23298 | } |
d14a1e28 RD |
23299 | return resultobj; |
23300 | fail: | |
23301 | return NULL; | |
23302 | } | |
23303 | ||
23304 | ||
c32bde28 | 23305 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23306 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23307 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23308 | wxPoint *arg2 = (wxPoint *) 0 ; | |
23309 | PyObject * obj0 = 0 ; | |
23310 | PyObject * obj1 = 0 ; | |
23311 | char *kwnames[] = { | |
23312 | (char *) "self",(char *) "m_pointDrag", NULL | |
23313 | }; | |
23314 | ||
23315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23318 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); | |
23319 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23320 | if (arg1) (arg1)->m_pointDrag = *arg2; |
23321 | ||
23322 | Py_INCREF(Py_None); resultobj = Py_None; | |
23323 | return resultobj; | |
23324 | fail: | |
23325 | return NULL; | |
23326 | } | |
23327 | ||
23328 | ||
c32bde28 | 23329 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23330 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23331 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23332 | wxPoint *result; | |
23333 | PyObject * obj0 = 0 ; | |
23334 | char *kwnames[] = { | |
23335 | (char *) "self", NULL | |
23336 | }; | |
23337 | ||
23338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23341 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
23342 | ||
15afbcd0 | 23343 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
23344 | return resultobj; |
23345 | fail: | |
23346 | return NULL; | |
23347 | } | |
23348 | ||
23349 | ||
c32bde28 | 23350 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23351 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23352 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23353 | wxListItem *result; | |
23354 | PyObject * obj0 = 0 ; | |
23355 | char *kwnames[] = { | |
23356 | (char *) "self", NULL | |
23357 | }; | |
23358 | ||
23359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23362 | result = (wxListItem *)& ((arg1)->m_item); |
23363 | ||
23364 | { | |
412d302d | 23365 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
23366 | } |
23367 | return resultobj; | |
23368 | fail: | |
23369 | return NULL; | |
23370 | } | |
23371 | ||
23372 | ||
c32bde28 | 23373 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23374 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23375 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23376 | int result; | |
23377 | PyObject * obj0 = 0 ; | |
23378 | char *kwnames[] = { | |
23379 | (char *) "self", NULL | |
23380 | }; | |
23381 | ||
23382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23383 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23385 | { |
23386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23387 | result = (int)(arg1)->GetKeyCode(); | |
23388 | ||
23389 | wxPyEndAllowThreads(__tstate); | |
23390 | if (PyErr_Occurred()) SWIG_fail; | |
23391 | } | |
093d3ff1 | 23392 | { |
32fe5131 | 23393 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23394 | } |
d14a1e28 RD |
23395 | return resultobj; |
23396 | fail: | |
23397 | return NULL; | |
23398 | } | |
23399 | ||
23400 | ||
c32bde28 | 23401 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23402 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23403 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23404 | long result; | |
23405 | PyObject * obj0 = 0 ; | |
23406 | char *kwnames[] = { | |
23407 | (char *) "self", NULL | |
23408 | }; | |
23409 | ||
23410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23411 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23412 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23413 | { |
23414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23415 | result = (long)(arg1)->GetIndex(); | |
23416 | ||
23417 | wxPyEndAllowThreads(__tstate); | |
23418 | if (PyErr_Occurred()) SWIG_fail; | |
23419 | } | |
093d3ff1 | 23420 | { |
32fe5131 | 23421 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23422 | } |
d14a1e28 RD |
23423 | return resultobj; |
23424 | fail: | |
23425 | return NULL; | |
23426 | } | |
23427 | ||
23428 | ||
c32bde28 | 23429 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23430 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23431 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23432 | int result; | |
23433 | PyObject * obj0 = 0 ; | |
23434 | char *kwnames[] = { | |
23435 | (char *) "self", NULL | |
23436 | }; | |
23437 | ||
23438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23441 | { |
23442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23443 | result = (int)(arg1)->GetColumn(); | |
23444 | ||
23445 | wxPyEndAllowThreads(__tstate); | |
23446 | if (PyErr_Occurred()) SWIG_fail; | |
23447 | } | |
093d3ff1 | 23448 | { |
32fe5131 | 23449 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23450 | } |
d14a1e28 RD |
23451 | return resultobj; |
23452 | fail: | |
23453 | return NULL; | |
23454 | } | |
23455 | ||
23456 | ||
c32bde28 | 23457 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23458 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23459 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23460 | wxPoint result; | |
23461 | PyObject * obj0 = 0 ; | |
23462 | char *kwnames[] = { | |
23463 | (char *) "self", NULL | |
23464 | }; | |
23465 | ||
23466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23469 | { |
23470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23471 | result = (arg1)->GetPoint(); | |
23472 | ||
23473 | wxPyEndAllowThreads(__tstate); | |
23474 | if (PyErr_Occurred()) SWIG_fail; | |
23475 | } | |
23476 | { | |
23477 | wxPoint * resultptr; | |
32fe5131 | 23478 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
15afbcd0 | 23479 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
23480 | } |
23481 | return resultobj; | |
23482 | fail: | |
23483 | return NULL; | |
23484 | } | |
23485 | ||
23486 | ||
c32bde28 | 23487 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23488 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23489 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23490 | wxString *result; | |
23491 | PyObject * obj0 = 0 ; | |
23492 | char *kwnames[] = { | |
23493 | (char *) "self", NULL | |
23494 | }; | |
23495 | ||
23496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23497 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23499 | { |
23500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23501 | { | |
23502 | wxString const &_result_ref = (arg1)->GetLabel(); | |
23503 | result = (wxString *) &_result_ref; | |
23504 | } | |
23505 | ||
23506 | wxPyEndAllowThreads(__tstate); | |
23507 | if (PyErr_Occurred()) SWIG_fail; | |
23508 | } | |
cc6dd355 RD |
23509 | { |
23510 | #if wxUSE_UNICODE | |
23511 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23512 | #else | |
23513 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23514 | #endif | |
23515 | } | |
d14a1e28 RD |
23516 | return resultobj; |
23517 | fail: | |
23518 | return NULL; | |
23519 | } | |
23520 | ||
23521 | ||
c32bde28 | 23522 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23523 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23524 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23525 | wxString *result; | |
23526 | PyObject * obj0 = 0 ; | |
23527 | char *kwnames[] = { | |
23528 | (char *) "self", NULL | |
23529 | }; | |
23530 | ||
23531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23532 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23533 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23534 | { |
23535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23536 | { | |
23537 | wxString const &_result_ref = (arg1)->GetText(); | |
23538 | result = (wxString *) &_result_ref; | |
23539 | } | |
23540 | ||
23541 | wxPyEndAllowThreads(__tstate); | |
23542 | if (PyErr_Occurred()) SWIG_fail; | |
23543 | } | |
cc6dd355 RD |
23544 | { |
23545 | #if wxUSE_UNICODE | |
23546 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23547 | #else | |
23548 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23549 | #endif | |
23550 | } | |
d14a1e28 RD |
23551 | return resultobj; |
23552 | fail: | |
23553 | return NULL; | |
23554 | } | |
23555 | ||
23556 | ||
c32bde28 | 23557 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23558 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23559 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23560 | int result; | |
23561 | PyObject * obj0 = 0 ; | |
23562 | char *kwnames[] = { | |
23563 | (char *) "self", NULL | |
23564 | }; | |
23565 | ||
23566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23569 | { |
23570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23571 | result = (int)(arg1)->GetImage(); | |
23572 | ||
23573 | wxPyEndAllowThreads(__tstate); | |
23574 | if (PyErr_Occurred()) SWIG_fail; | |
23575 | } | |
093d3ff1 | 23576 | { |
32fe5131 | 23577 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23578 | } |
d14a1e28 RD |
23579 | return resultobj; |
23580 | fail: | |
23581 | return NULL; | |
23582 | } | |
23583 | ||
23584 | ||
c32bde28 | 23585 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23586 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23587 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23588 | long result; | |
23589 | PyObject * obj0 = 0 ; | |
23590 | char *kwnames[] = { | |
23591 | (char *) "self", NULL | |
23592 | }; | |
23593 | ||
23594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23597 | { |
23598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23599 | result = (long)(arg1)->GetData(); | |
23600 | ||
23601 | wxPyEndAllowThreads(__tstate); | |
23602 | if (PyErr_Occurred()) SWIG_fail; | |
23603 | } | |
093d3ff1 | 23604 | { |
32fe5131 | 23605 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23606 | } |
d14a1e28 RD |
23607 | return resultobj; |
23608 | fail: | |
23609 | return NULL; | |
23610 | } | |
23611 | ||
23612 | ||
c32bde28 | 23613 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23614 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23615 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23616 | long result; | |
23617 | PyObject * obj0 = 0 ; | |
23618 | char *kwnames[] = { | |
23619 | (char *) "self", NULL | |
23620 | }; | |
23621 | ||
23622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23623 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23624 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23625 | { |
23626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23627 | result = (long)(arg1)->GetMask(); | |
23628 | ||
23629 | wxPyEndAllowThreads(__tstate); | |
23630 | if (PyErr_Occurred()) SWIG_fail; | |
23631 | } | |
093d3ff1 | 23632 | { |
32fe5131 | 23633 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23634 | } |
d14a1e28 RD |
23635 | return resultobj; |
23636 | fail: | |
23637 | return NULL; | |
23638 | } | |
23639 | ||
23640 | ||
c32bde28 | 23641 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23642 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23643 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23644 | wxListItem *result; | |
23645 | PyObject * obj0 = 0 ; | |
23646 | char *kwnames[] = { | |
23647 | (char *) "self", NULL | |
23648 | }; | |
23649 | ||
23650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23653 | { |
23654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23655 | { | |
23656 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
23657 | result = (wxListItem *) &_result_ref; | |
23658 | } | |
23659 | ||
23660 | wxPyEndAllowThreads(__tstate); | |
23661 | if (PyErr_Occurred()) SWIG_fail; | |
23662 | } | |
15afbcd0 | 23663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
23664 | return resultobj; |
23665 | fail: | |
23666 | return NULL; | |
23667 | } | |
23668 | ||
23669 | ||
c32bde28 | 23670 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23671 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23672 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23673 | long result; | |
23674 | PyObject * obj0 = 0 ; | |
23675 | char *kwnames[] = { | |
23676 | (char *) "self", NULL | |
23677 | }; | |
23678 | ||
23679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23682 | { |
23683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23684 | result = (long)(arg1)->GetCacheFrom(); | |
23685 | ||
23686 | wxPyEndAllowThreads(__tstate); | |
23687 | if (PyErr_Occurred()) SWIG_fail; | |
23688 | } | |
093d3ff1 | 23689 | { |
32fe5131 | 23690 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23691 | } |
d14a1e28 RD |
23692 | return resultobj; |
23693 | fail: | |
23694 | return NULL; | |
23695 | } | |
23696 | ||
23697 | ||
c32bde28 | 23698 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23699 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23700 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23701 | long result; | |
23702 | PyObject * obj0 = 0 ; | |
23703 | char *kwnames[] = { | |
23704 | (char *) "self", NULL | |
23705 | }; | |
23706 | ||
23707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23708 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23709 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23710 | { |
23711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23712 | result = (long)(arg1)->GetCacheTo(); | |
23713 | ||
23714 | wxPyEndAllowThreads(__tstate); | |
23715 | if (PyErr_Occurred()) SWIG_fail; | |
23716 | } | |
093d3ff1 | 23717 | { |
32fe5131 | 23718 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23719 | } |
d14a1e28 RD |
23720 | return resultobj; |
23721 | fail: | |
23722 | return NULL; | |
23723 | } | |
23724 | ||
23725 | ||
c32bde28 | 23726 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23727 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23728 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23729 | bool result; | |
23730 | PyObject * obj0 = 0 ; | |
23731 | char *kwnames[] = { | |
23732 | (char *) "self", NULL | |
23733 | }; | |
23734 | ||
23735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23738 | { |
23739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23740 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
23741 | ||
23742 | wxPyEndAllowThreads(__tstate); | |
23743 | if (PyErr_Occurred()) SWIG_fail; | |
23744 | } | |
4f89f6a3 RD |
23745 | { |
23746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23747 | } | |
d14a1e28 RD |
23748 | return resultobj; |
23749 | fail: | |
23750 | return NULL; | |
23751 | } | |
23752 | ||
23753 | ||
c32bde28 | 23754 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23755 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23756 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
23757 | bool arg2 ; | |
23758 | PyObject * obj0 = 0 ; | |
23759 | PyObject * obj1 = 0 ; | |
23760 | char *kwnames[] = { | |
23761 | (char *) "self",(char *) "editCancelled", NULL | |
23762 | }; | |
23763 | ||
23764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23767 | { | |
32fe5131 | 23768 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
23769 | if (SWIG_arg_fail(2)) SWIG_fail; |
23770 | } | |
d14a1e28 RD |
23771 | { |
23772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23773 | (arg1)->SetEditCanceled(arg2); | |
23774 | ||
23775 | wxPyEndAllowThreads(__tstate); | |
23776 | if (PyErr_Occurred()) SWIG_fail; | |
23777 | } | |
23778 | Py_INCREF(Py_None); resultobj = Py_None; | |
23779 | return resultobj; | |
23780 | fail: | |
23781 | return NULL; | |
23782 | } | |
23783 | ||
23784 | ||
c32bde28 | 23785 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
23786 | PyObject *obj; |
23787 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23788 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
23789 | Py_INCREF(obj); | |
23790 | return Py_BuildValue((char *)""); | |
23791 | } | |
c32bde28 | 23792 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23793 | PyObject *resultobj = NULL; |
d14a1e28 | 23794 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 23795 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23796 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23797 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23798 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23799 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23800 | long arg5 = (long) wxLC_ICON ; | |
23801 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23802 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23803 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23804 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23805 | wxPyListCtrl *result; | |
23806 | wxPoint temp3 ; | |
23807 | wxSize temp4 ; | |
ae8162c8 | 23808 | bool temp7 = false ; |
d14a1e28 | 23809 | PyObject * obj0 = 0 ; |
994141e6 | 23810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23811 | PyObject * obj2 = 0 ; |
23812 | PyObject * obj3 = 0 ; | |
994141e6 | 23813 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23814 | PyObject * obj5 = 0 ; |
23815 | PyObject * obj6 = 0 ; | |
23816 | char *kwnames[] = { | |
23817 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23818 | }; | |
23819 | ||
994141e6 | 23820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
23821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
23822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 23823 | if (obj1) { |
093d3ff1 | 23824 | { |
32fe5131 | 23825 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23826 | if (SWIG_arg_fail(2)) SWIG_fail; |
23827 | } | |
994141e6 | 23828 | } |
d14a1e28 RD |
23829 | if (obj2) { |
23830 | { | |
23831 | arg3 = &temp3; | |
23832 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23833 | } | |
23834 | } | |
23835 | if (obj3) { | |
23836 | { | |
23837 | arg4 = &temp4; | |
23838 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23839 | } | |
23840 | } | |
994141e6 | 23841 | if (obj4) { |
093d3ff1 | 23842 | { |
32fe5131 | 23843 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
23844 | if (SWIG_arg_fail(5)) SWIG_fail; |
23845 | } | |
994141e6 | 23846 | } |
d14a1e28 | 23847 | if (obj5) { |
093d3ff1 RD |
23848 | { |
23849 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
23850 | if (SWIG_arg_fail(6)) SWIG_fail; | |
23851 | if (arg6 == NULL) { | |
23852 | SWIG_null_ref("wxValidator"); | |
23853 | } | |
23854 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
23855 | } |
23856 | } | |
23857 | if (obj6) { | |
23858 | { | |
23859 | arg7 = wxString_in_helper(obj6); | |
23860 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 23861 | temp7 = true; |
d14a1e28 RD |
23862 | } |
23863 | } | |
23864 | { | |
e3b71cb8 | 23865 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23867 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23868 | ||
23869 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23870 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23871 | } |
15afbcd0 | 23872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
23873 | { |
23874 | if (temp7) | |
23875 | delete arg7; | |
23876 | } | |
23877 | return resultobj; | |
23878 | fail: | |
23879 | { | |
23880 | if (temp7) | |
23881 | delete arg7; | |
23882 | } | |
23883 | return NULL; | |
23884 | } | |
23885 | ||
23886 | ||
c32bde28 | 23887 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23888 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23889 | wxPyListCtrl *result; |
23890 | char *kwnames[] = { | |
23891 | NULL | |
23892 | }; | |
23893 | ||
23894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
23895 | { | |
e3b71cb8 | 23896 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23898 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
23899 | ||
23900 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23901 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23902 | } |
15afbcd0 | 23903 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
23904 | return resultobj; |
23905 | fail: | |
23906 | return NULL; | |
23907 | } | |
23908 | ||
23909 | ||
c32bde28 | 23910 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23911 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23912 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
23913 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 23914 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23915 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23916 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23917 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23918 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23919 | long arg6 = (long) wxLC_ICON ; | |
23920 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23921 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23922 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23923 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23924 | bool result; | |
23925 | wxPoint temp4 ; | |
23926 | wxSize temp5 ; | |
ae8162c8 | 23927 | bool temp8 = false ; |
d14a1e28 RD |
23928 | PyObject * obj0 = 0 ; |
23929 | PyObject * obj1 = 0 ; | |
994141e6 | 23930 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23931 | PyObject * obj3 = 0 ; |
23932 | PyObject * obj4 = 0 ; | |
994141e6 | 23933 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23934 | PyObject * obj6 = 0 ; |
23935 | PyObject * obj7 = 0 ; | |
23936 | char *kwnames[] = { | |
23937 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23938 | }; | |
23939 | ||
994141e6 | 23940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
23941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23943 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
23944 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 23945 | if (obj2) { |
093d3ff1 | 23946 | { |
32fe5131 | 23947 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
23948 | if (SWIG_arg_fail(3)) SWIG_fail; |
23949 | } | |
994141e6 | 23950 | } |
d14a1e28 RD |
23951 | if (obj3) { |
23952 | { | |
23953 | arg4 = &temp4; | |
23954 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23955 | } | |
23956 | } | |
23957 | if (obj4) { | |
23958 | { | |
23959 | arg5 = &temp5; | |
23960 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23961 | } | |
23962 | } | |
994141e6 | 23963 | if (obj5) { |
093d3ff1 | 23964 | { |
32fe5131 | 23965 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
23966 | if (SWIG_arg_fail(6)) SWIG_fail; |
23967 | } | |
994141e6 | 23968 | } |
d14a1e28 | 23969 | if (obj6) { |
093d3ff1 RD |
23970 | { |
23971 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
23972 | if (SWIG_arg_fail(7)) SWIG_fail; | |
23973 | if (arg7 == NULL) { | |
23974 | SWIG_null_ref("wxValidator"); | |
23975 | } | |
23976 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
23977 | } |
23978 | } | |
23979 | if (obj7) { | |
23980 | { | |
23981 | arg8 = wxString_in_helper(obj7); | |
23982 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 23983 | temp8 = true; |
d14a1e28 RD |
23984 | } |
23985 | } | |
23986 | { | |
23987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23988 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23989 | ||
23990 | wxPyEndAllowThreads(__tstate); | |
23991 | if (PyErr_Occurred()) SWIG_fail; | |
23992 | } | |
4f89f6a3 RD |
23993 | { |
23994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23995 | } | |
d14a1e28 RD |
23996 | { |
23997 | if (temp8) | |
23998 | delete arg8; | |
23999 | } | |
24000 | return resultobj; | |
24001 | fail: | |
24002 | { | |
24003 | if (temp8) | |
24004 | delete arg8; | |
24005 | } | |
24006 | return NULL; | |
24007 | } | |
24008 | ||
24009 | ||
c32bde28 | 24010 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24011 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24012 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24013 | PyObject *arg2 = (PyObject *) 0 ; | |
24014 | PyObject *arg3 = (PyObject *) 0 ; | |
24015 | PyObject * obj0 = 0 ; | |
24016 | PyObject * obj1 = 0 ; | |
24017 | PyObject * obj2 = 0 ; | |
24018 | char *kwnames[] = { | |
24019 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24020 | }; | |
24021 | ||
24022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24025 | arg2 = obj1; |
24026 | arg3 = obj2; | |
24027 | { | |
24028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24029 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24030 | ||
24031 | wxPyEndAllowThreads(__tstate); | |
24032 | if (PyErr_Occurred()) SWIG_fail; | |
24033 | } | |
24034 | Py_INCREF(Py_None); resultobj = Py_None; | |
24035 | return resultobj; | |
24036 | fail: | |
24037 | return NULL; | |
24038 | } | |
24039 | ||
24040 | ||
c32bde28 | 24041 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24042 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24043 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24044 | wxColour *arg2 = 0 ; | |
24045 | bool result; | |
24046 | wxColour temp2 ; | |
24047 | PyObject * obj0 = 0 ; | |
24048 | PyObject * obj1 = 0 ; | |
24049 | char *kwnames[] = { | |
24050 | (char *) "self",(char *) "col", NULL | |
24051 | }; | |
24052 | ||
24053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24056 | { |
24057 | arg2 = &temp2; | |
24058 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24059 | } | |
24060 | { | |
24061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24062 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
24063 | ||
24064 | wxPyEndAllowThreads(__tstate); | |
24065 | if (PyErr_Occurred()) SWIG_fail; | |
24066 | } | |
4f89f6a3 RD |
24067 | { |
24068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24069 | } | |
d14a1e28 RD |
24070 | return resultobj; |
24071 | fail: | |
24072 | return NULL; | |
24073 | } | |
24074 | ||
24075 | ||
c32bde28 | 24076 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24077 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24078 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24079 | wxColour *arg2 = 0 ; | |
24080 | bool result; | |
24081 | wxColour temp2 ; | |
24082 | PyObject * obj0 = 0 ; | |
24083 | PyObject * obj1 = 0 ; | |
24084 | char *kwnames[] = { | |
24085 | (char *) "self",(char *) "col", NULL | |
24086 | }; | |
24087 | ||
24088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24089 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24091 | { |
24092 | arg2 = &temp2; | |
24093 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24094 | } | |
24095 | { | |
24096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24097 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
24098 | ||
24099 | wxPyEndAllowThreads(__tstate); | |
24100 | if (PyErr_Occurred()) SWIG_fail; | |
24101 | } | |
4f89f6a3 RD |
24102 | { |
24103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24104 | } | |
d14a1e28 RD |
24105 | return resultobj; |
24106 | fail: | |
24107 | return NULL; | |
24108 | } | |
24109 | ||
24110 | ||
c32bde28 | 24111 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24112 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24113 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24114 | int arg2 ; | |
24115 | wxListItem *result; | |
24116 | PyObject * obj0 = 0 ; | |
994141e6 | 24117 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24118 | char *kwnames[] = { |
24119 | (char *) "self",(char *) "col", NULL | |
24120 | }; | |
24121 | ||
994141e6 | 24122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24125 | { | |
32fe5131 | 24126 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
24127 | if (SWIG_arg_fail(2)) SWIG_fail; |
24128 | } | |
d14a1e28 RD |
24129 | { |
24130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24131 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
24132 | ||
24133 | wxPyEndAllowThreads(__tstate); | |
24134 | if (PyErr_Occurred()) SWIG_fail; | |
24135 | } | |
24136 | { | |
412d302d | 24137 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24138 | } |
24139 | return resultobj; | |
24140 | fail: | |
24141 | return NULL; | |
24142 | } | |
24143 | ||
24144 | ||
c32bde28 | 24145 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24146 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24147 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24148 | int arg2 ; | |
24149 | wxListItem *arg3 = 0 ; | |
24150 | bool result; | |
24151 | PyObject * obj0 = 0 ; | |
994141e6 | 24152 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24153 | PyObject * obj2 = 0 ; |
24154 | char *kwnames[] = { | |
24155 | (char *) "self",(char *) "col",(char *) "item", NULL | |
24156 | }; | |
24157 | ||
994141e6 | 24158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24161 | { | |
32fe5131 | 24162 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
24163 | if (SWIG_arg_fail(2)) SWIG_fail; |
24164 | } | |
24165 | { | |
24166 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
24167 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24168 | if (arg3 == NULL) { | |
24169 | SWIG_null_ref("wxListItem"); | |
24170 | } | |
24171 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
24172 | } |
24173 | { | |
24174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24175 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
24176 | ||
24177 | wxPyEndAllowThreads(__tstate); | |
24178 | if (PyErr_Occurred()) SWIG_fail; | |
24179 | } | |
4f89f6a3 RD |
24180 | { |
24181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24182 | } | |
d14a1e28 RD |
24183 | return resultobj; |
24184 | fail: | |
24185 | return NULL; | |
24186 | } | |
24187 | ||
24188 | ||
c32bde28 | 24189 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24190 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24191 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24192 | int arg2 ; | |
24193 | int result; | |
24194 | PyObject * obj0 = 0 ; | |
994141e6 | 24195 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24196 | char *kwnames[] = { |
24197 | (char *) "self",(char *) "col", NULL | |
24198 | }; | |
24199 | ||
994141e6 | 24200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24203 | { | |
32fe5131 | 24204 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
24205 | if (SWIG_arg_fail(2)) SWIG_fail; |
24206 | } | |
d14a1e28 RD |
24207 | { |
24208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24209 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
24210 | ||
24211 | wxPyEndAllowThreads(__tstate); | |
24212 | if (PyErr_Occurred()) SWIG_fail; | |
24213 | } | |
093d3ff1 | 24214 | { |
32fe5131 | 24215 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24216 | } |
d14a1e28 RD |
24217 | return resultobj; |
24218 | fail: | |
24219 | return NULL; | |
24220 | } | |
24221 | ||
24222 | ||
c32bde28 | 24223 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24224 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24225 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24226 | int arg2 ; | |
24227 | int arg3 ; | |
24228 | bool result; | |
24229 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24230 | PyObject * obj1 = 0 ; |
24231 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24232 | char *kwnames[] = { |
24233 | (char *) "self",(char *) "col",(char *) "width", NULL | |
24234 | }; | |
24235 | ||
994141e6 | 24236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24237 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24238 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24239 | { | |
32fe5131 | 24240 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
24241 | if (SWIG_arg_fail(2)) SWIG_fail; |
24242 | } | |
24243 | { | |
32fe5131 | 24244 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
24245 | if (SWIG_arg_fail(3)) SWIG_fail; |
24246 | } | |
d14a1e28 RD |
24247 | { |
24248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24249 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
24250 | ||
24251 | wxPyEndAllowThreads(__tstate); | |
24252 | if (PyErr_Occurred()) SWIG_fail; | |
24253 | } | |
4f89f6a3 RD |
24254 | { |
24255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24256 | } | |
d14a1e28 RD |
24257 | return resultobj; |
24258 | fail: | |
24259 | return NULL; | |
24260 | } | |
24261 | ||
24262 | ||
c32bde28 | 24263 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24264 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24265 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24266 | int result; | |
24267 | PyObject * obj0 = 0 ; | |
24268 | char *kwnames[] = { | |
24269 | (char *) "self", NULL | |
24270 | }; | |
24271 | ||
24272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24275 | { |
24276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24277 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
24278 | ||
24279 | wxPyEndAllowThreads(__tstate); | |
24280 | if (PyErr_Occurred()) SWIG_fail; | |
24281 | } | |
093d3ff1 | 24282 | { |
32fe5131 | 24283 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24284 | } |
d14a1e28 RD |
24285 | return resultobj; |
24286 | fail: | |
24287 | return NULL; | |
24288 | } | |
24289 | ||
24290 | ||
c32bde28 | 24291 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24292 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24293 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24294 | wxRect result; | |
24295 | PyObject * obj0 = 0 ; | |
24296 | char *kwnames[] = { | |
24297 | (char *) "self", NULL | |
24298 | }; | |
24299 | ||
24300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24303 | { |
24304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24305 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
24306 | ||
24307 | wxPyEndAllowThreads(__tstate); | |
24308 | if (PyErr_Occurred()) SWIG_fail; | |
24309 | } | |
24310 | { | |
24311 | wxRect * resultptr; | |
32fe5131 | 24312 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
15afbcd0 | 24313 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
24314 | } |
24315 | return resultobj; | |
24316 | fail: | |
24317 | return NULL; | |
24318 | } | |
24319 | ||
24320 | ||
c32bde28 | 24321 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24322 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24323 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24324 | long arg2 ; | |
24325 | int arg3 = (int) 0 ; | |
24326 | wxListItem *result; | |
24327 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24328 | PyObject * obj1 = 0 ; |
24329 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24330 | char *kwnames[] = { |
24331 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
24332 | }; | |
24333 | ||
994141e6 | 24334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24337 | { | |
32fe5131 | 24338 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24339 | if (SWIG_arg_fail(2)) SWIG_fail; |
24340 | } | |
994141e6 | 24341 | if (obj2) { |
093d3ff1 | 24342 | { |
32fe5131 | 24343 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
24344 | if (SWIG_arg_fail(3)) SWIG_fail; |
24345 | } | |
994141e6 | 24346 | } |
d14a1e28 RD |
24347 | { |
24348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24349 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
24350 | ||
24351 | wxPyEndAllowThreads(__tstate); | |
24352 | if (PyErr_Occurred()) SWIG_fail; | |
24353 | } | |
24354 | { | |
412d302d | 24355 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24356 | } |
24357 | return resultobj; | |
24358 | fail: | |
24359 | return NULL; | |
24360 | } | |
24361 | ||
24362 | ||
c32bde28 | 24363 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24364 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24365 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24366 | wxListItem *arg2 = 0 ; | |
24367 | bool result; | |
24368 | PyObject * obj0 = 0 ; | |
24369 | PyObject * obj1 = 0 ; | |
24370 | char *kwnames[] = { | |
24371 | (char *) "self",(char *) "info", NULL | |
24372 | }; | |
24373 | ||
24374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24375 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24376 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24377 | { | |
24378 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
24379 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24380 | if (arg2 == NULL) { | |
24381 | SWIG_null_ref("wxListItem"); | |
24382 | } | |
24383 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24384 | } |
24385 | { | |
24386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24387 | result = (bool)(arg1)->SetItem(*arg2); | |
24388 | ||
24389 | wxPyEndAllowThreads(__tstate); | |
24390 | if (PyErr_Occurred()) SWIG_fail; | |
24391 | } | |
4f89f6a3 RD |
24392 | { |
24393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24394 | } | |
d14a1e28 RD |
24395 | return resultobj; |
24396 | fail: | |
24397 | return NULL; | |
24398 | } | |
24399 | ||
24400 | ||
c32bde28 | 24401 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24402 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24403 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24404 | long arg2 ; | |
24405 | int arg3 ; | |
24406 | wxString *arg4 = 0 ; | |
24407 | int arg5 = (int) -1 ; | |
24408 | long result; | |
ae8162c8 | 24409 | bool temp4 = false ; |
d14a1e28 | 24410 | PyObject * obj0 = 0 ; |
994141e6 RD |
24411 | PyObject * obj1 = 0 ; |
24412 | PyObject * obj2 = 0 ; | |
d14a1e28 | 24413 | PyObject * obj3 = 0 ; |
994141e6 | 24414 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24415 | char *kwnames[] = { |
24416 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
24417 | }; | |
24418 | ||
994141e6 | 24419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
24420 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24421 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24422 | { | |
32fe5131 | 24423 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24424 | if (SWIG_arg_fail(2)) SWIG_fail; |
24425 | } | |
24426 | { | |
32fe5131 | 24427 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
24428 | if (SWIG_arg_fail(3)) SWIG_fail; |
24429 | } | |
d14a1e28 RD |
24430 | { |
24431 | arg4 = wxString_in_helper(obj3); | |
24432 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 24433 | temp4 = true; |
d14a1e28 | 24434 | } |
994141e6 | 24435 | if (obj4) { |
093d3ff1 | 24436 | { |
32fe5131 | 24437 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
24438 | if (SWIG_arg_fail(5)) SWIG_fail; |
24439 | } | |
994141e6 | 24440 | } |
d14a1e28 RD |
24441 | { |
24442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24443 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
24444 | ||
24445 | wxPyEndAllowThreads(__tstate); | |
24446 | if (PyErr_Occurred()) SWIG_fail; | |
24447 | } | |
093d3ff1 | 24448 | { |
32fe5131 | 24449 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 24450 | } |
d14a1e28 RD |
24451 | { |
24452 | if (temp4) | |
24453 | delete arg4; | |
24454 | } | |
24455 | return resultobj; | |
24456 | fail: | |
24457 | { | |
24458 | if (temp4) | |
24459 | delete arg4; | |
24460 | } | |
24461 | return NULL; | |
24462 | } | |
24463 | ||
24464 | ||
c32bde28 | 24465 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24466 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24467 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24468 | long arg2 ; | |
24469 | long arg3 ; | |
24470 | int result; | |
24471 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24472 | PyObject * obj1 = 0 ; |
24473 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24474 | char *kwnames[] = { |
24475 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
24476 | }; | |
24477 | ||
994141e6 | 24478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24481 | { | |
32fe5131 | 24482 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24483 | if (SWIG_arg_fail(2)) SWIG_fail; |
24484 | } | |
24485 | { | |
32fe5131 | 24486 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
24487 | if (SWIG_arg_fail(3)) SWIG_fail; |
24488 | } | |
d14a1e28 RD |
24489 | { |
24490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24491 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
24492 | ||
24493 | wxPyEndAllowThreads(__tstate); | |
24494 | if (PyErr_Occurred()) SWIG_fail; | |
24495 | } | |
093d3ff1 | 24496 | { |
32fe5131 | 24497 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24498 | } |
d14a1e28 RD |
24499 | return resultobj; |
24500 | fail: | |
24501 | return NULL; | |
24502 | } | |
24503 | ||
24504 | ||
c32bde28 | 24505 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24506 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24507 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24508 | long arg2 ; | |
24509 | long arg3 ; | |
24510 | long arg4 ; | |
24511 | bool result; | |
24512 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24513 | PyObject * obj1 = 0 ; |
24514 | PyObject * obj2 = 0 ; | |
24515 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24516 | char *kwnames[] = { |
24517 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
24518 | }; | |
24519 | ||
994141e6 | 24520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
24521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24523 | { | |
32fe5131 | 24524 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24525 | if (SWIG_arg_fail(2)) SWIG_fail; |
24526 | } | |
24527 | { | |
32fe5131 | 24528 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
24529 | if (SWIG_arg_fail(3)) SWIG_fail; |
24530 | } | |
24531 | { | |
32fe5131 | 24532 | arg4 = static_cast<long >(SWIG_As_long(obj3)); |
093d3ff1 RD |
24533 | if (SWIG_arg_fail(4)) SWIG_fail; |
24534 | } | |
d14a1e28 RD |
24535 | { |
24536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24537 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
24538 | ||
24539 | wxPyEndAllowThreads(__tstate); | |
24540 | if (PyErr_Occurred()) SWIG_fail; | |
24541 | } | |
4f89f6a3 RD |
24542 | { |
24543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24544 | } | |
d14a1e28 RD |
24545 | return resultobj; |
24546 | fail: | |
24547 | return NULL; | |
24548 | } | |
24549 | ||
24550 | ||
c32bde28 | 24551 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24552 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24553 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24554 | long arg2 ; | |
24555 | int arg3 ; | |
1fc3b23a | 24556 | int arg4 = (int) -1 ; |
d14a1e28 RD |
24557 | bool result; |
24558 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24559 | PyObject * obj1 = 0 ; |
24560 | PyObject * obj2 = 0 ; | |
24561 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24562 | char *kwnames[] = { |
24563 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
24564 | }; | |
24565 | ||
1fc3b23a | 24566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
24567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24569 | { | |
32fe5131 | 24570 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24571 | if (SWIG_arg_fail(2)) SWIG_fail; |
24572 | } | |
24573 | { | |
32fe5131 | 24574 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
24575 | if (SWIG_arg_fail(3)) SWIG_fail; |
24576 | } | |
1fc3b23a | 24577 | if (obj3) { |
093d3ff1 | 24578 | { |
32fe5131 | 24579 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
24580 | if (SWIG_arg_fail(4)) SWIG_fail; |
24581 | } | |
1fc3b23a | 24582 | } |
d14a1e28 RD |
24583 | { |
24584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24585 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
24586 | ||
24587 | wxPyEndAllowThreads(__tstate); | |
24588 | if (PyErr_Occurred()) SWIG_fail; | |
24589 | } | |
4f89f6a3 RD |
24590 | { |
24591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24592 | } | |
d14a1e28 RD |
24593 | return resultobj; |
24594 | fail: | |
24595 | return NULL; | |
24596 | } | |
24597 | ||
24598 | ||
c32bde28 | 24599 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24600 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24601 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24602 | long arg2 ; | |
24603 | wxString result; | |
24604 | PyObject * obj0 = 0 ; | |
994141e6 | 24605 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24606 | char *kwnames[] = { |
24607 | (char *) "self",(char *) "item", NULL | |
24608 | }; | |
24609 | ||
994141e6 | 24610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24611 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24612 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24613 | { | |
32fe5131 | 24614 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24615 | if (SWIG_arg_fail(2)) SWIG_fail; |
24616 | } | |
d14a1e28 RD |
24617 | { |
24618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24619 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
24620 | ||
24621 | wxPyEndAllowThreads(__tstate); | |
24622 | if (PyErr_Occurred()) SWIG_fail; | |
24623 | } | |
24624 | { | |
24625 | #if wxUSE_UNICODE | |
24626 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24627 | #else | |
24628 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24629 | #endif | |
24630 | } | |
24631 | return resultobj; | |
24632 | fail: | |
24633 | return NULL; | |
24634 | } | |
24635 | ||
24636 | ||
c32bde28 | 24637 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24638 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24639 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24640 | long arg2 ; | |
24641 | wxString *arg3 = 0 ; | |
ae8162c8 | 24642 | bool temp3 = false ; |
d14a1e28 | 24643 | PyObject * obj0 = 0 ; |
994141e6 | 24644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24645 | PyObject * obj2 = 0 ; |
24646 | char *kwnames[] = { | |
24647 | (char *) "self",(char *) "item",(char *) "str", NULL | |
24648 | }; | |
24649 | ||
994141e6 | 24650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24653 | { | |
32fe5131 | 24654 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24655 | if (SWIG_arg_fail(2)) SWIG_fail; |
24656 | } | |
d14a1e28 RD |
24657 | { |
24658 | arg3 = wxString_in_helper(obj2); | |
24659 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 24660 | temp3 = true; |
d14a1e28 RD |
24661 | } |
24662 | { | |
24663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24664 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
24665 | ||
24666 | wxPyEndAllowThreads(__tstate); | |
24667 | if (PyErr_Occurred()) SWIG_fail; | |
24668 | } | |
24669 | Py_INCREF(Py_None); resultobj = Py_None; | |
24670 | { | |
24671 | if (temp3) | |
24672 | delete arg3; | |
24673 | } | |
24674 | return resultobj; | |
24675 | fail: | |
24676 | { | |
24677 | if (temp3) | |
24678 | delete arg3; | |
24679 | } | |
24680 | return NULL; | |
24681 | } | |
24682 | ||
24683 | ||
c32bde28 | 24684 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24685 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24686 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24687 | long arg2 ; | |
24688 | long result; | |
24689 | PyObject * obj0 = 0 ; | |
994141e6 | 24690 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24691 | char *kwnames[] = { |
24692 | (char *) "self",(char *) "item", NULL | |
24693 | }; | |
24694 | ||
994141e6 | 24695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24696 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24697 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24698 | { | |
32fe5131 | 24699 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24700 | if (SWIG_arg_fail(2)) SWIG_fail; |
24701 | } | |
d14a1e28 RD |
24702 | { |
24703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24704 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
24705 | ||
24706 | wxPyEndAllowThreads(__tstate); | |
24707 | if (PyErr_Occurred()) SWIG_fail; | |
24708 | } | |
093d3ff1 | 24709 | { |
32fe5131 | 24710 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 24711 | } |
d14a1e28 RD |
24712 | return resultobj; |
24713 | fail: | |
24714 | return NULL; | |
24715 | } | |
24716 | ||
24717 | ||
c32bde28 | 24718 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24719 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24720 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24721 | long arg2 ; | |
24722 | long arg3 ; | |
24723 | bool result; | |
24724 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24725 | PyObject * obj1 = 0 ; |
24726 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24727 | char *kwnames[] = { |
24728 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24729 | }; | |
24730 | ||
994141e6 | 24731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24734 | { | |
32fe5131 | 24735 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24736 | if (SWIG_arg_fail(2)) SWIG_fail; |
24737 | } | |
24738 | { | |
32fe5131 | 24739 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
24740 | if (SWIG_arg_fail(3)) SWIG_fail; |
24741 | } | |
d14a1e28 RD |
24742 | { |
24743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24744 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
24745 | ||
24746 | wxPyEndAllowThreads(__tstate); | |
24747 | if (PyErr_Occurred()) SWIG_fail; | |
24748 | } | |
4f89f6a3 RD |
24749 | { |
24750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24751 | } | |
d14a1e28 RD |
24752 | return resultobj; |
24753 | fail: | |
24754 | return NULL; | |
24755 | } | |
24756 | ||
24757 | ||
c32bde28 | 24758 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24759 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24760 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24761 | long arg2 ; | |
24762 | wxPoint result; | |
24763 | PyObject * obj0 = 0 ; | |
994141e6 | 24764 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24765 | char *kwnames[] = { |
24766 | (char *) "self",(char *) "item", NULL | |
24767 | }; | |
24768 | ||
994141e6 | 24769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24772 | { | |
32fe5131 | 24773 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24774 | if (SWIG_arg_fail(2)) SWIG_fail; |
24775 | } | |
d14a1e28 RD |
24776 | { |
24777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24778 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
24779 | ||
24780 | wxPyEndAllowThreads(__tstate); | |
24781 | if (PyErr_Occurred()) SWIG_fail; | |
24782 | } | |
24783 | { | |
24784 | wxPoint * resultptr; | |
32fe5131 | 24785 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
15afbcd0 | 24786 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24787 | } |
24788 | return resultobj; | |
24789 | fail: | |
24790 | return NULL; | |
24791 | } | |
24792 | ||
24793 | ||
c32bde28 | 24794 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24795 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24796 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24797 | long arg2 ; | |
24798 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
24799 | wxRect result; | |
24800 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24801 | PyObject * obj1 = 0 ; |
24802 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24803 | char *kwnames[] = { |
24804 | (char *) "self",(char *) "item",(char *) "code", NULL | |
24805 | }; | |
24806 | ||
994141e6 | 24807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24810 | { | |
32fe5131 | 24811 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24812 | if (SWIG_arg_fail(2)) SWIG_fail; |
24813 | } | |
994141e6 | 24814 | if (obj2) { |
093d3ff1 | 24815 | { |
32fe5131 | 24816 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
24817 | if (SWIG_arg_fail(3)) SWIG_fail; |
24818 | } | |
994141e6 | 24819 | } |
d14a1e28 RD |
24820 | { |
24821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24822 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
24823 | ||
24824 | wxPyEndAllowThreads(__tstate); | |
24825 | if (PyErr_Occurred()) SWIG_fail; | |
24826 | } | |
24827 | { | |
24828 | wxRect * resultptr; | |
32fe5131 | 24829 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
15afbcd0 | 24830 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
24831 | } |
24832 | return resultobj; | |
24833 | fail: | |
24834 | return NULL; | |
24835 | } | |
24836 | ||
24837 | ||
c32bde28 | 24838 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24839 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24840 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24841 | long arg2 ; | |
24842 | wxPoint *arg3 = 0 ; | |
24843 | bool result; | |
24844 | wxPoint temp3 ; | |
24845 | PyObject * obj0 = 0 ; | |
994141e6 | 24846 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24847 | PyObject * obj2 = 0 ; |
24848 | char *kwnames[] = { | |
24849 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
24850 | }; | |
24851 | ||
994141e6 | 24852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24855 | { | |
32fe5131 | 24856 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24857 | if (SWIG_arg_fail(2)) SWIG_fail; |
24858 | } | |
d14a1e28 RD |
24859 | { |
24860 | arg3 = &temp3; | |
24861 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24862 | } | |
24863 | { | |
24864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24865 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
24866 | ||
24867 | wxPyEndAllowThreads(__tstate); | |
24868 | if (PyErr_Occurred()) SWIG_fail; | |
24869 | } | |
4f89f6a3 RD |
24870 | { |
24871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24872 | } | |
d14a1e28 RD |
24873 | return resultobj; |
24874 | fail: | |
24875 | return NULL; | |
24876 | } | |
24877 | ||
24878 | ||
c32bde28 | 24879 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24880 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24881 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24882 | int result; | |
24883 | PyObject * obj0 = 0 ; | |
24884 | char *kwnames[] = { | |
24885 | (char *) "self", NULL | |
24886 | }; | |
24887 | ||
24888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24891 | { |
24892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24893 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
24894 | ||
24895 | wxPyEndAllowThreads(__tstate); | |
24896 | if (PyErr_Occurred()) SWIG_fail; | |
24897 | } | |
093d3ff1 | 24898 | { |
32fe5131 | 24899 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24900 | } |
d14a1e28 RD |
24901 | return resultobj; |
24902 | fail: | |
24903 | return NULL; | |
24904 | } | |
24905 | ||
24906 | ||
c32bde28 | 24907 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24908 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24909 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24910 | int result; | |
24911 | PyObject * obj0 = 0 ; | |
24912 | char *kwnames[] = { | |
24913 | (char *) "self", NULL | |
24914 | }; | |
24915 | ||
24916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24917 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24918 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24919 | { |
24920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24921 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
24922 | ||
24923 | wxPyEndAllowThreads(__tstate); | |
24924 | if (PyErr_Occurred()) SWIG_fail; | |
24925 | } | |
093d3ff1 | 24926 | { |
32fe5131 | 24927 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24928 | } |
d14a1e28 RD |
24929 | return resultobj; |
24930 | fail: | |
24931 | return NULL; | |
24932 | } | |
24933 | ||
24934 | ||
c32bde28 | 24935 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24936 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24937 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24938 | wxSize result; | |
24939 | PyObject * obj0 = 0 ; | |
24940 | char *kwnames[] = { | |
24941 | (char *) "self", NULL | |
24942 | }; | |
24943 | ||
24944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24947 | { |
24948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24949 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
24950 | ||
24951 | wxPyEndAllowThreads(__tstate); | |
24952 | if (PyErr_Occurred()) SWIG_fail; | |
24953 | } | |
24954 | { | |
24955 | wxSize * resultptr; | |
32fe5131 | 24956 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 24957 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24958 | } |
24959 | return resultobj; | |
24960 | fail: | |
24961 | return NULL; | |
24962 | } | |
24963 | ||
24964 | ||
c32bde28 | 24965 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24966 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24967 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
24968 | int arg2 ; | |
ae8162c8 | 24969 | bool arg3 = (bool) false ; |
d14a1e28 | 24970 | PyObject * obj0 = 0 ; |
994141e6 | 24971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24972 | PyObject * obj2 = 0 ; |
24973 | char *kwnames[] = { | |
24974 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
24975 | }; | |
24976 | ||
994141e6 | 24977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24978 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24979 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24980 | { | |
32fe5131 | 24981 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
24982 | if (SWIG_arg_fail(2)) SWIG_fail; |
24983 | } | |
d14a1e28 | 24984 | if (obj2) { |
093d3ff1 | 24985 | { |
32fe5131 | 24986 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
24987 | if (SWIG_arg_fail(3)) SWIG_fail; |
24988 | } | |
d14a1e28 RD |
24989 | } |
24990 | { | |
24991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24992 | (arg1)->SetItemSpacing(arg2,arg3); | |
24993 | ||
24994 | wxPyEndAllowThreads(__tstate); | |
24995 | if (PyErr_Occurred()) SWIG_fail; | |
24996 | } | |
24997 | Py_INCREF(Py_None); resultobj = Py_None; | |
24998 | return resultobj; | |
24999 | fail: | |
25000 | return NULL; | |
25001 | } | |
25002 | ||
25003 | ||
c32bde28 | 25004 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25005 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25006 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25007 | int result; | |
25008 | PyObject * obj0 = 0 ; | |
25009 | char *kwnames[] = { | |
25010 | (char *) "self", NULL | |
25011 | }; | |
25012 | ||
25013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25016 | { |
25017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25018 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
25019 | ||
25020 | wxPyEndAllowThreads(__tstate); | |
25021 | if (PyErr_Occurred()) SWIG_fail; | |
25022 | } | |
093d3ff1 | 25023 | { |
32fe5131 | 25024 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 25025 | } |
d14a1e28 RD |
25026 | return resultobj; |
25027 | fail: | |
25028 | return NULL; | |
25029 | } | |
25030 | ||
25031 | ||
c32bde28 | 25032 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25033 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25034 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25035 | wxColour result; | |
25036 | PyObject * obj0 = 0 ; | |
25037 | char *kwnames[] = { | |
25038 | (char *) "self", NULL | |
25039 | }; | |
25040 | ||
25041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25042 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25043 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25044 | { |
25045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25046 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
25047 | ||
25048 | wxPyEndAllowThreads(__tstate); | |
25049 | if (PyErr_Occurred()) SWIG_fail; | |
25050 | } | |
25051 | { | |
25052 | wxColour * resultptr; | |
32fe5131 | 25053 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 25054 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25055 | } |
25056 | return resultobj; | |
25057 | fail: | |
25058 | return NULL; | |
25059 | } | |
25060 | ||
25061 | ||
c32bde28 | 25062 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25063 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25064 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25065 | wxColour *arg2 = 0 ; | |
25066 | wxColour temp2 ; | |
25067 | PyObject * obj0 = 0 ; | |
25068 | PyObject * obj1 = 0 ; | |
25069 | char *kwnames[] = { | |
25070 | (char *) "self",(char *) "col", NULL | |
25071 | }; | |
25072 | ||
25073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25076 | { |
25077 | arg2 = &temp2; | |
25078 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25079 | } | |
25080 | { | |
25081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25082 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
25083 | ||
25084 | wxPyEndAllowThreads(__tstate); | |
25085 | if (PyErr_Occurred()) SWIG_fail; | |
25086 | } | |
25087 | Py_INCREF(Py_None); resultobj = Py_None; | |
25088 | return resultobj; | |
25089 | fail: | |
25090 | return NULL; | |
25091 | } | |
25092 | ||
25093 | ||
c32bde28 | 25094 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25095 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25096 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25097 | long result; | |
25098 | PyObject * obj0 = 0 ; | |
25099 | char *kwnames[] = { | |
25100 | (char *) "self", NULL | |
25101 | }; | |
25102 | ||
25103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25104 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25105 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25106 | { |
25107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25108 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
25109 | ||
25110 | wxPyEndAllowThreads(__tstate); | |
25111 | if (PyErr_Occurred()) SWIG_fail; | |
25112 | } | |
093d3ff1 | 25113 | { |
32fe5131 | 25114 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 25115 | } |
d14a1e28 RD |
25116 | return resultobj; |
25117 | fail: | |
25118 | return NULL; | |
25119 | } | |
25120 | ||
25121 | ||
c32bde28 | 25122 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25123 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25124 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25125 | long arg2 ; | |
ae8162c8 | 25126 | bool arg3 = (bool) true ; |
d14a1e28 | 25127 | PyObject * obj0 = 0 ; |
994141e6 | 25128 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25129 | PyObject * obj2 = 0 ; |
25130 | char *kwnames[] = { | |
25131 | (char *) "self",(char *) "style",(char *) "add", NULL | |
25132 | }; | |
25133 | ||
994141e6 | 25134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25135 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25136 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25137 | { | |
32fe5131 | 25138 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25139 | if (SWIG_arg_fail(2)) SWIG_fail; |
25140 | } | |
d14a1e28 | 25141 | if (obj2) { |
093d3ff1 | 25142 | { |
32fe5131 | 25143 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
25144 | if (SWIG_arg_fail(3)) SWIG_fail; |
25145 | } | |
d14a1e28 RD |
25146 | } |
25147 | { | |
25148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25149 | (arg1)->SetSingleStyle(arg2,arg3); | |
25150 | ||
25151 | wxPyEndAllowThreads(__tstate); | |
25152 | if (PyErr_Occurred()) SWIG_fail; | |
25153 | } | |
25154 | Py_INCREF(Py_None); resultobj = Py_None; | |
25155 | return resultobj; | |
25156 | fail: | |
25157 | return NULL; | |
25158 | } | |
25159 | ||
25160 | ||
c32bde28 | 25161 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25162 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25163 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25164 | long arg2 ; | |
25165 | PyObject * obj0 = 0 ; | |
994141e6 | 25166 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25167 | char *kwnames[] = { |
25168 | (char *) "self",(char *) "style", NULL | |
25169 | }; | |
25170 | ||
994141e6 | 25171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25174 | { | |
32fe5131 | 25175 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25176 | if (SWIG_arg_fail(2)) SWIG_fail; |
25177 | } | |
d14a1e28 RD |
25178 | { |
25179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25180 | (arg1)->SetWindowStyleFlag(arg2); | |
25181 | ||
25182 | wxPyEndAllowThreads(__tstate); | |
25183 | if (PyErr_Occurred()) SWIG_fail; | |
25184 | } | |
25185 | Py_INCREF(Py_None); resultobj = Py_None; | |
25186 | return resultobj; | |
25187 | fail: | |
25188 | return NULL; | |
25189 | } | |
25190 | ||
25191 | ||
c32bde28 | 25192 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25193 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25194 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25195 | long arg2 ; | |
25196 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
25197 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
25198 | long result; | |
25199 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25200 | PyObject * obj1 = 0 ; |
25201 | PyObject * obj2 = 0 ; | |
25202 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25203 | char *kwnames[] = { |
25204 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
25205 | }; | |
25206 | ||
994141e6 | 25207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25210 | { | |
32fe5131 | 25211 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25212 | if (SWIG_arg_fail(2)) SWIG_fail; |
25213 | } | |
994141e6 | 25214 | if (obj2) { |
093d3ff1 | 25215 | { |
32fe5131 | 25216 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
25217 | if (SWIG_arg_fail(3)) SWIG_fail; |
25218 | } | |
994141e6 RD |
25219 | } |
25220 | if (obj3) { | |
093d3ff1 | 25221 | { |
32fe5131 | 25222 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
25223 | if (SWIG_arg_fail(4)) SWIG_fail; |
25224 | } | |
994141e6 | 25225 | } |
d14a1e28 RD |
25226 | { |
25227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25228 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
25229 | ||
25230 | wxPyEndAllowThreads(__tstate); | |
25231 | if (PyErr_Occurred()) SWIG_fail; | |
25232 | } | |
093d3ff1 | 25233 | { |
32fe5131 | 25234 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 25235 | } |
d14a1e28 RD |
25236 | return resultobj; |
25237 | fail: | |
25238 | return NULL; | |
25239 | } | |
25240 | ||
25241 | ||
c32bde28 | 25242 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25243 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25244 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25245 | int arg2 ; | |
25246 | wxImageList *result; | |
25247 | PyObject * obj0 = 0 ; | |
994141e6 | 25248 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25249 | char *kwnames[] = { |
25250 | (char *) "self",(char *) "which", NULL | |
25251 | }; | |
25252 | ||
994141e6 | 25253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25256 | { | |
32fe5131 | 25257 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25258 | if (SWIG_arg_fail(2)) SWIG_fail; |
25259 | } | |
d14a1e28 RD |
25260 | { |
25261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25262 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
25263 | ||
25264 | wxPyEndAllowThreads(__tstate); | |
25265 | if (PyErr_Occurred()) SWIG_fail; | |
25266 | } | |
25267 | { | |
412d302d | 25268 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25269 | } |
25270 | return resultobj; | |
25271 | fail: | |
25272 | return NULL; | |
25273 | } | |
25274 | ||
25275 | ||
c32bde28 | 25276 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25277 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25278 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25279 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25280 | int arg3 ; | |
25281 | PyObject * obj0 = 0 ; | |
25282 | PyObject * obj1 = 0 ; | |
994141e6 | 25283 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25284 | char *kwnames[] = { |
25285 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25286 | }; | |
25287 | ||
994141e6 | 25288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25291 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
25292 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25293 | { | |
32fe5131 | 25294 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
25295 | if (SWIG_arg_fail(3)) SWIG_fail; |
25296 | } | |
d14a1e28 RD |
25297 | { |
25298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25299 | (arg1)->SetImageList(arg2,arg3); | |
25300 | ||
25301 | wxPyEndAllowThreads(__tstate); | |
25302 | if (PyErr_Occurred()) SWIG_fail; | |
25303 | } | |
25304 | Py_INCREF(Py_None); resultobj = Py_None; | |
25305 | return resultobj; | |
25306 | fail: | |
25307 | return NULL; | |
25308 | } | |
25309 | ||
25310 | ||
c32bde28 | 25311 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25312 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25313 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25314 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25315 | int arg3 ; | |
25316 | PyObject * obj0 = 0 ; | |
25317 | PyObject * obj1 = 0 ; | |
994141e6 | 25318 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25319 | char *kwnames[] = { |
25320 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25321 | }; | |
25322 | ||
994141e6 | 25323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25326 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
25327 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25328 | { | |
32fe5131 | 25329 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
25330 | if (SWIG_arg_fail(3)) SWIG_fail; |
25331 | } | |
d14a1e28 RD |
25332 | { |
25333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25334 | (arg1)->AssignImageList(arg2,arg3); | |
25335 | ||
25336 | wxPyEndAllowThreads(__tstate); | |
25337 | if (PyErr_Occurred()) SWIG_fail; | |
25338 | } | |
25339 | Py_INCREF(Py_None); resultobj = Py_None; | |
25340 | return resultobj; | |
25341 | fail: | |
25342 | return NULL; | |
25343 | } | |
25344 | ||
25345 | ||
c32bde28 | 25346 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25347 | PyObject *resultobj = NULL; |
4276dc52 RD |
25348 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25349 | bool result; | |
25350 | PyObject * obj0 = 0 ; | |
25351 | char *kwnames[] = { | |
25352 | (char *) "self", NULL | |
25353 | }; | |
25354 | ||
25355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
25358 | { |
25359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25360 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
25361 | ||
25362 | wxPyEndAllowThreads(__tstate); | |
25363 | if (PyErr_Occurred()) SWIG_fail; | |
25364 | } | |
4f89f6a3 RD |
25365 | { |
25366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25367 | } | |
4276dc52 RD |
25368 | return resultobj; |
25369 | fail: | |
25370 | return NULL; | |
25371 | } | |
25372 | ||
25373 | ||
c32bde28 | 25374 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25375 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25376 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25377 | bool result; | |
25378 | PyObject * obj0 = 0 ; | |
25379 | char *kwnames[] = { | |
25380 | (char *) "self", NULL | |
25381 | }; | |
25382 | ||
25383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25386 | { |
25387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25388 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
25389 | ||
25390 | wxPyEndAllowThreads(__tstate); | |
25391 | if (PyErr_Occurred()) SWIG_fail; | |
25392 | } | |
4f89f6a3 RD |
25393 | { |
25394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25395 | } | |
d14a1e28 RD |
25396 | return resultobj; |
25397 | fail: | |
25398 | return NULL; | |
25399 | } | |
25400 | ||
25401 | ||
c32bde28 | 25402 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25403 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25404 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25405 | long arg2 ; | |
25406 | PyObject * obj0 = 0 ; | |
994141e6 | 25407 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25408 | char *kwnames[] = { |
25409 | (char *) "self",(char *) "item", NULL | |
25410 | }; | |
25411 | ||
994141e6 | 25412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25413 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25414 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25415 | { | |
32fe5131 | 25416 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25417 | if (SWIG_arg_fail(2)) SWIG_fail; |
25418 | } | |
d14a1e28 RD |
25419 | { |
25420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25421 | (arg1)->RefreshItem(arg2); | |
25422 | ||
25423 | wxPyEndAllowThreads(__tstate); | |
25424 | if (PyErr_Occurred()) SWIG_fail; | |
25425 | } | |
25426 | Py_INCREF(Py_None); resultobj = Py_None; | |
25427 | return resultobj; | |
25428 | fail: | |
25429 | return NULL; | |
25430 | } | |
25431 | ||
25432 | ||
c32bde28 | 25433 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25434 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25435 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25436 | long arg2 ; | |
25437 | long arg3 ; | |
25438 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25439 | PyObject * obj1 = 0 ; |
25440 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25441 | char *kwnames[] = { |
25442 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
25443 | }; | |
25444 | ||
994141e6 | 25445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25448 | { | |
32fe5131 | 25449 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25450 | if (SWIG_arg_fail(2)) SWIG_fail; |
25451 | } | |
25452 | { | |
32fe5131 | 25453 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
25454 | if (SWIG_arg_fail(3)) SWIG_fail; |
25455 | } | |
d14a1e28 RD |
25456 | { |
25457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25458 | (arg1)->RefreshItems(arg2,arg3); | |
25459 | ||
25460 | wxPyEndAllowThreads(__tstate); | |
25461 | if (PyErr_Occurred()) SWIG_fail; | |
25462 | } | |
25463 | Py_INCREF(Py_None); resultobj = Py_None; | |
25464 | return resultobj; | |
25465 | fail: | |
25466 | return NULL; | |
25467 | } | |
25468 | ||
25469 | ||
c32bde28 | 25470 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25471 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25472 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25473 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
25474 | bool result; | |
25475 | PyObject * obj0 = 0 ; | |
994141e6 | 25476 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25477 | char *kwnames[] = { |
25478 | (char *) "self",(char *) "flag", NULL | |
25479 | }; | |
25480 | ||
994141e6 | 25481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 25484 | if (obj1) { |
093d3ff1 | 25485 | { |
32fe5131 | 25486 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25487 | if (SWIG_arg_fail(2)) SWIG_fail; |
25488 | } | |
994141e6 | 25489 | } |
d14a1e28 RD |
25490 | { |
25491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25492 | result = (bool)(arg1)->Arrange(arg2); | |
25493 | ||
25494 | wxPyEndAllowThreads(__tstate); | |
25495 | if (PyErr_Occurred()) SWIG_fail; | |
25496 | } | |
4f89f6a3 RD |
25497 | { |
25498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25499 | } | |
d14a1e28 RD |
25500 | return resultobj; |
25501 | fail: | |
25502 | return NULL; | |
25503 | } | |
25504 | ||
25505 | ||
c32bde28 | 25506 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25507 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25508 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25509 | long arg2 ; | |
25510 | bool result; | |
25511 | PyObject * obj0 = 0 ; | |
994141e6 | 25512 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25513 | char *kwnames[] = { |
25514 | (char *) "self",(char *) "item", NULL | |
25515 | }; | |
25516 | ||
994141e6 | 25517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25520 | { | |
32fe5131 | 25521 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25522 | if (SWIG_arg_fail(2)) SWIG_fail; |
25523 | } | |
d14a1e28 RD |
25524 | { |
25525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25526 | result = (bool)(arg1)->DeleteItem(arg2); | |
25527 | ||
25528 | wxPyEndAllowThreads(__tstate); | |
25529 | if (PyErr_Occurred()) SWIG_fail; | |
25530 | } | |
4f89f6a3 RD |
25531 | { |
25532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25533 | } | |
d14a1e28 RD |
25534 | return resultobj; |
25535 | fail: | |
25536 | return NULL; | |
25537 | } | |
25538 | ||
25539 | ||
c32bde28 | 25540 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25541 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25542 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25543 | bool result; | |
25544 | PyObject * obj0 = 0 ; | |
25545 | char *kwnames[] = { | |
25546 | (char *) "self", NULL | |
25547 | }; | |
25548 | ||
25549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25550 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25551 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25552 | { |
25553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25554 | result = (bool)(arg1)->DeleteAllItems(); | |
25555 | ||
25556 | wxPyEndAllowThreads(__tstate); | |
25557 | if (PyErr_Occurred()) SWIG_fail; | |
25558 | } | |
4f89f6a3 RD |
25559 | { |
25560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25561 | } | |
d14a1e28 RD |
25562 | return resultobj; |
25563 | fail: | |
25564 | return NULL; | |
25565 | } | |
25566 | ||
25567 | ||
c32bde28 | 25568 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25569 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25570 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25571 | int arg2 ; | |
25572 | bool result; | |
25573 | PyObject * obj0 = 0 ; | |
994141e6 | 25574 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25575 | char *kwnames[] = { |
25576 | (char *) "self",(char *) "col", NULL | |
25577 | }; | |
25578 | ||
994141e6 | 25579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25582 | { | |
32fe5131 | 25583 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25584 | if (SWIG_arg_fail(2)) SWIG_fail; |
25585 | } | |
d14a1e28 RD |
25586 | { |
25587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25588 | result = (bool)(arg1)->DeleteColumn(arg2); | |
25589 | ||
25590 | wxPyEndAllowThreads(__tstate); | |
25591 | if (PyErr_Occurred()) SWIG_fail; | |
25592 | } | |
4f89f6a3 RD |
25593 | { |
25594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25595 | } | |
d14a1e28 RD |
25596 | return resultobj; |
25597 | fail: | |
25598 | return NULL; | |
25599 | } | |
25600 | ||
25601 | ||
c32bde28 | 25602 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25603 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25604 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25605 | bool result; | |
25606 | PyObject * obj0 = 0 ; | |
25607 | char *kwnames[] = { | |
25608 | (char *) "self", NULL | |
25609 | }; | |
25610 | ||
25611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) 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; | |
d14a1e28 RD |
25614 | { |
25615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25616 | result = (bool)(arg1)->DeleteAllColumns(); | |
25617 | ||
25618 | wxPyEndAllowThreads(__tstate); | |
25619 | if (PyErr_Occurred()) SWIG_fail; | |
25620 | } | |
4f89f6a3 RD |
25621 | { |
25622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25623 | } | |
d14a1e28 RD |
25624 | return resultobj; |
25625 | fail: | |
25626 | return NULL; | |
25627 | } | |
25628 | ||
25629 | ||
c32bde28 | 25630 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25631 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25632 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25633 | PyObject * obj0 = 0 ; | |
25634 | char *kwnames[] = { | |
25635 | (char *) "self", NULL | |
25636 | }; | |
25637 | ||
25638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25641 | { |
25642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25643 | (arg1)->ClearAll(); | |
25644 | ||
25645 | wxPyEndAllowThreads(__tstate); | |
25646 | if (PyErr_Occurred()) SWIG_fail; | |
25647 | } | |
25648 | Py_INCREF(Py_None); resultobj = Py_None; | |
25649 | return resultobj; | |
25650 | fail: | |
25651 | return NULL; | |
25652 | } | |
25653 | ||
25654 | ||
c32bde28 | 25655 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25656 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25657 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25658 | long arg2 ; | |
25659 | PyObject * obj0 = 0 ; | |
994141e6 | 25660 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25661 | char *kwnames[] = { |
25662 | (char *) "self",(char *) "item", NULL | |
25663 | }; | |
25664 | ||
994141e6 | 25665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25666 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25667 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25668 | { | |
32fe5131 | 25669 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25670 | if (SWIG_arg_fail(2)) SWIG_fail; |
25671 | } | |
d14a1e28 RD |
25672 | { |
25673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25674 | (arg1)->EditLabel(arg2); | |
25675 | ||
25676 | wxPyEndAllowThreads(__tstate); | |
25677 | if (PyErr_Occurred()) SWIG_fail; | |
25678 | } | |
25679 | Py_INCREF(Py_None); resultobj = Py_None; | |
25680 | return resultobj; | |
25681 | fail: | |
25682 | return NULL; | |
25683 | } | |
25684 | ||
25685 | ||
c32bde28 | 25686 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25687 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25688 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25689 | long arg2 ; | |
25690 | bool result; | |
25691 | PyObject * obj0 = 0 ; | |
994141e6 | 25692 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25693 | char *kwnames[] = { |
25694 | (char *) "self",(char *) "item", NULL | |
25695 | }; | |
25696 | ||
994141e6 | 25697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25698 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25699 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25700 | { | |
32fe5131 | 25701 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25702 | if (SWIG_arg_fail(2)) SWIG_fail; |
25703 | } | |
d14a1e28 RD |
25704 | { |
25705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25706 | result = (bool)(arg1)->EnsureVisible(arg2); | |
25707 | ||
25708 | wxPyEndAllowThreads(__tstate); | |
25709 | if (PyErr_Occurred()) SWIG_fail; | |
25710 | } | |
4f89f6a3 RD |
25711 | { |
25712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25713 | } | |
d14a1e28 RD |
25714 | return resultobj; |
25715 | fail: | |
25716 | return NULL; | |
25717 | } | |
25718 | ||
25719 | ||
c32bde28 | 25720 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25721 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25722 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25723 | long arg2 ; | |
25724 | wxString *arg3 = 0 ; | |
ae8162c8 | 25725 | bool arg4 = (bool) false ; |
d14a1e28 | 25726 | long result; |
ae8162c8 | 25727 | bool temp3 = false ; |
d14a1e28 | 25728 | PyObject * obj0 = 0 ; |
994141e6 | 25729 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25730 | PyObject * obj2 = 0 ; |
25731 | PyObject * obj3 = 0 ; | |
25732 | char *kwnames[] = { | |
25733 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
25734 | }; | |
25735 | ||
994141e6 | 25736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25739 | { | |
32fe5131 | 25740 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25741 | if (SWIG_arg_fail(2)) SWIG_fail; |
25742 | } | |
d14a1e28 RD |
25743 | { |
25744 | arg3 = wxString_in_helper(obj2); | |
25745 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 25746 | temp3 = true; |
d14a1e28 RD |
25747 | } |
25748 | if (obj3) { | |
093d3ff1 | 25749 | { |
32fe5131 | 25750 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
25751 | if (SWIG_arg_fail(4)) SWIG_fail; |
25752 | } | |
d14a1e28 RD |
25753 | } |
25754 | { | |
25755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25756 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
25757 | ||
25758 | wxPyEndAllowThreads(__tstate); | |
25759 | if (PyErr_Occurred()) SWIG_fail; | |
25760 | } | |
093d3ff1 | 25761 | { |
32fe5131 | 25762 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 25763 | } |
d14a1e28 RD |
25764 | { |
25765 | if (temp3) | |
25766 | delete arg3; | |
25767 | } | |
25768 | return resultobj; | |
25769 | fail: | |
25770 | { | |
25771 | if (temp3) | |
25772 | delete arg3; | |
25773 | } | |
25774 | return NULL; | |
25775 | } | |
25776 | ||
25777 | ||
c32bde28 | 25778 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25779 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25780 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25781 | long arg2 ; | |
25782 | long arg3 ; | |
25783 | long result; | |
25784 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25785 | PyObject * obj1 = 0 ; |
25786 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25787 | char *kwnames[] = { |
25788 | (char *) "self",(char *) "start",(char *) "data", NULL | |
25789 | }; | |
25790 | ||
994141e6 | 25791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25794 | { | |
32fe5131 | 25795 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25796 | if (SWIG_arg_fail(2)) SWIG_fail; |
25797 | } | |
25798 | { | |
32fe5131 | 25799 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
25800 | if (SWIG_arg_fail(3)) SWIG_fail; |
25801 | } | |
d14a1e28 RD |
25802 | { |
25803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25804 | result = (long)(arg1)->FindItem(arg2,arg3); | |
25805 | ||
25806 | wxPyEndAllowThreads(__tstate); | |
25807 | if (PyErr_Occurred()) SWIG_fail; | |
25808 | } | |
093d3ff1 | 25809 | { |
32fe5131 | 25810 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 25811 | } |
d14a1e28 RD |
25812 | return resultobj; |
25813 | fail: | |
25814 | return NULL; | |
25815 | } | |
25816 | ||
25817 | ||
c32bde28 | 25818 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25819 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25820 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25821 | long arg2 ; | |
25822 | wxPoint *arg3 = 0 ; | |
25823 | int arg4 ; | |
25824 | long result; | |
25825 | wxPoint temp3 ; | |
25826 | PyObject * obj0 = 0 ; | |
994141e6 | 25827 | PyObject * obj1 = 0 ; |
d14a1e28 | 25828 | PyObject * obj2 = 0 ; |
994141e6 | 25829 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
25830 | char *kwnames[] = { |
25831 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
25832 | }; | |
25833 | ||
994141e6 | 25834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25835 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25836 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25837 | { | |
32fe5131 | 25838 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25839 | if (SWIG_arg_fail(2)) SWIG_fail; |
25840 | } | |
d14a1e28 RD |
25841 | { |
25842 | arg3 = &temp3; | |
25843 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25844 | } | |
093d3ff1 | 25845 | { |
32fe5131 | 25846 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
25847 | if (SWIG_arg_fail(4)) SWIG_fail; |
25848 | } | |
d14a1e28 RD |
25849 | { |
25850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25851 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
25852 | ||
25853 | wxPyEndAllowThreads(__tstate); | |
25854 | if (PyErr_Occurred()) SWIG_fail; | |
25855 | } | |
093d3ff1 | 25856 | { |
32fe5131 | 25857 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 25858 | } |
d14a1e28 RD |
25859 | return resultobj; |
25860 | fail: | |
25861 | return NULL; | |
25862 | } | |
25863 | ||
25864 | ||
c32bde28 | 25865 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25866 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25867 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25868 | wxPoint *arg2 = 0 ; | |
25869 | int *arg3 = 0 ; | |
25870 | long result; | |
25871 | wxPoint temp2 ; | |
25872 | int temp3 ; | |
c32bde28 | 25873 | int res3 = 0 ; |
d14a1e28 RD |
25874 | PyObject * obj0 = 0 ; |
25875 | PyObject * obj1 = 0 ; | |
25876 | char *kwnames[] = { | |
25877 | (char *) "self",(char *) "point", NULL | |
25878 | }; | |
25879 | ||
c32bde28 | 25880 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 25881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25884 | { |
25885 | arg2 = &temp2; | |
25886 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25887 | } | |
25888 | { | |
25889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25890 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
25891 | ||
25892 | wxPyEndAllowThreads(__tstate); | |
25893 | if (PyErr_Occurred()) SWIG_fail; | |
25894 | } | |
093d3ff1 | 25895 | { |
32fe5131 | 25896 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 25897 | } |
c32bde28 RD |
25898 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
25899 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
25900 | return resultobj; |
25901 | fail: | |
25902 | return NULL; | |
25903 | } | |
25904 | ||
25905 | ||
c32bde28 | 25906 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25907 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25908 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25909 | wxListItem *arg2 = 0 ; | |
25910 | long result; | |
25911 | PyObject * obj0 = 0 ; | |
25912 | PyObject * obj1 = 0 ; | |
25913 | char *kwnames[] = { | |
25914 | (char *) "self",(char *) "info", NULL | |
25915 | }; | |
25916 | ||
25917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25918 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25919 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25920 | { | |
25921 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
25922 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25923 | if (arg2 == NULL) { | |
25924 | SWIG_null_ref("wxListItem"); | |
25925 | } | |
25926 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25927 | } |
25928 | { | |
25929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25930 | result = (long)(arg1)->InsertItem(*arg2); | |
25931 | ||
25932 | wxPyEndAllowThreads(__tstate); | |
25933 | if (PyErr_Occurred()) SWIG_fail; | |
25934 | } | |
093d3ff1 | 25935 | { |
32fe5131 | 25936 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 25937 | } |
d14a1e28 RD |
25938 | return resultobj; |
25939 | fail: | |
25940 | return NULL; | |
25941 | } | |
25942 | ||
25943 | ||
c32bde28 | 25944 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25945 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25946 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25947 | long arg2 ; | |
25948 | wxString *arg3 = 0 ; | |
32fe5131 | 25949 | int arg4 = (int) -1 ; |
d14a1e28 | 25950 | long result; |
ae8162c8 | 25951 | bool temp3 = false ; |
d14a1e28 | 25952 | PyObject * obj0 = 0 ; |
994141e6 | 25953 | PyObject * obj1 = 0 ; |
d14a1e28 | 25954 | PyObject * obj2 = 0 ; |
32fe5131 | 25955 | PyObject * obj3 = 0 ; |
d14a1e28 | 25956 | char *kwnames[] = { |
32fe5131 | 25957 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL |
d14a1e28 RD |
25958 | }; |
25959 | ||
32fe5131 | 25960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25963 | { | |
32fe5131 | 25964 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25965 | if (SWIG_arg_fail(2)) SWIG_fail; |
25966 | } | |
d14a1e28 RD |
25967 | { |
25968 | arg3 = wxString_in_helper(obj2); | |
25969 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 25970 | temp3 = true; |
d14a1e28 | 25971 | } |
32fe5131 RD |
25972 | if (obj3) { |
25973 | { | |
25974 | arg4 = static_cast<int >(SWIG_As_int(obj3)); | |
25975 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25976 | } | |
25977 | } | |
d14a1e28 RD |
25978 | { |
25979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 25980 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); |
d14a1e28 RD |
25981 | |
25982 | wxPyEndAllowThreads(__tstate); | |
25983 | if (PyErr_Occurred()) SWIG_fail; | |
25984 | } | |
093d3ff1 | 25985 | { |
32fe5131 | 25986 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 25987 | } |
d14a1e28 RD |
25988 | { |
25989 | if (temp3) | |
25990 | delete arg3; | |
25991 | } | |
25992 | return resultobj; | |
25993 | fail: | |
25994 | { | |
25995 | if (temp3) | |
25996 | delete arg3; | |
25997 | } | |
25998 | return NULL; | |
25999 | } | |
26000 | ||
26001 | ||
c32bde28 | 26002 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26003 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26004 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26005 | long arg2 ; | |
26006 | int arg3 ; | |
26007 | long result; | |
26008 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26009 | PyObject * obj1 = 0 ; |
26010 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26011 | char *kwnames[] = { |
26012 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
26013 | }; | |
26014 | ||
994141e6 | 26015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26018 | { | |
32fe5131 | 26019 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26020 | if (SWIG_arg_fail(2)) SWIG_fail; |
26021 | } | |
26022 | { | |
32fe5131 | 26023 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
26024 | if (SWIG_arg_fail(3)) SWIG_fail; |
26025 | } | |
d14a1e28 RD |
26026 | { |
26027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26028 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
26029 | ||
26030 | wxPyEndAllowThreads(__tstate); | |
26031 | if (PyErr_Occurred()) SWIG_fail; | |
26032 | } | |
093d3ff1 | 26033 | { |
32fe5131 | 26034 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 26035 | } |
d14a1e28 RD |
26036 | return resultobj; |
26037 | fail: | |
26038 | return NULL; | |
26039 | } | |
26040 | ||
26041 | ||
c32bde28 | 26042 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26043 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26044 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26045 | long arg2 ; | |
26046 | wxString *arg3 = 0 ; | |
26047 | int arg4 ; | |
26048 | long result; | |
ae8162c8 | 26049 | bool temp3 = false ; |
d14a1e28 | 26050 | PyObject * obj0 = 0 ; |
994141e6 | 26051 | PyObject * obj1 = 0 ; |
d14a1e28 | 26052 | PyObject * obj2 = 0 ; |
994141e6 | 26053 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
26054 | char *kwnames[] = { |
26055 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
26056 | }; | |
26057 | ||
994141e6 | 26058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
26059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26061 | { | |
32fe5131 | 26062 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26063 | if (SWIG_arg_fail(2)) SWIG_fail; |
26064 | } | |
d14a1e28 RD |
26065 | { |
26066 | arg3 = wxString_in_helper(obj2); | |
26067 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26068 | temp3 = true; |
d14a1e28 | 26069 | } |
093d3ff1 | 26070 | { |
32fe5131 | 26071 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
26072 | if (SWIG_arg_fail(4)) SWIG_fail; |
26073 | } | |
d14a1e28 RD |
26074 | { |
26075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26076 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
26077 | ||
26078 | wxPyEndAllowThreads(__tstate); | |
26079 | if (PyErr_Occurred()) SWIG_fail; | |
26080 | } | |
093d3ff1 | 26081 | { |
32fe5131 | 26082 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 26083 | } |
d14a1e28 RD |
26084 | { |
26085 | if (temp3) | |
26086 | delete arg3; | |
26087 | } | |
26088 | return resultobj; | |
26089 | fail: | |
26090 | { | |
26091 | if (temp3) | |
26092 | delete arg3; | |
26093 | } | |
26094 | return NULL; | |
26095 | } | |
26096 | ||
26097 | ||
a3957d3d | 26098 | static PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26099 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26100 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26101 | long arg2 ; | |
26102 | wxListItem *arg3 = 0 ; | |
26103 | long result; | |
26104 | PyObject * obj0 = 0 ; | |
994141e6 | 26105 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26106 | PyObject * obj2 = 0 ; |
26107 | char *kwnames[] = { | |
26108 | (char *) "self",(char *) "col",(char *) "info", NULL | |
26109 | }; | |
26110 | ||
a3957d3d | 26111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26112 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26113 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26114 | { | |
32fe5131 | 26115 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26116 | if (SWIG_arg_fail(2)) SWIG_fail; |
26117 | } | |
26118 | { | |
26119 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
26120 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26121 | if (arg3 == NULL) { | |
26122 | SWIG_null_ref("wxListItem"); | |
26123 | } | |
26124 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
26125 | } |
26126 | { | |
26127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26128 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
26129 | ||
26130 | wxPyEndAllowThreads(__tstate); | |
26131 | if (PyErr_Occurred()) SWIG_fail; | |
26132 | } | |
093d3ff1 | 26133 | { |
32fe5131 | 26134 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 26135 | } |
d14a1e28 RD |
26136 | return resultobj; |
26137 | fail: | |
26138 | return NULL; | |
26139 | } | |
26140 | ||
26141 | ||
c32bde28 | 26142 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26143 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26144 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26145 | long arg2 ; | |
26146 | wxString *arg3 = 0 ; | |
26147 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
26148 | int arg5 = (int) -1 ; | |
26149 | long result; | |
ae8162c8 | 26150 | bool temp3 = false ; |
d14a1e28 | 26151 | PyObject * obj0 = 0 ; |
994141e6 | 26152 | PyObject * obj1 = 0 ; |
d14a1e28 | 26153 | PyObject * obj2 = 0 ; |
994141e6 RD |
26154 | PyObject * obj3 = 0 ; |
26155 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26156 | char *kwnames[] = { |
26157 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
26158 | }; | |
26159 | ||
994141e6 | 26160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
26161 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26162 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26163 | { | |
32fe5131 | 26164 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26165 | if (SWIG_arg_fail(2)) SWIG_fail; |
26166 | } | |
d14a1e28 RD |
26167 | { |
26168 | arg3 = wxString_in_helper(obj2); | |
26169 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26170 | temp3 = true; |
d14a1e28 | 26171 | } |
994141e6 | 26172 | if (obj3) { |
093d3ff1 | 26173 | { |
32fe5131 | 26174 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
26175 | if (SWIG_arg_fail(4)) SWIG_fail; |
26176 | } | |
994141e6 RD |
26177 | } |
26178 | if (obj4) { | |
093d3ff1 | 26179 | { |
32fe5131 | 26180 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
26181 | if (SWIG_arg_fail(5)) SWIG_fail; |
26182 | } | |
994141e6 | 26183 | } |
d14a1e28 RD |
26184 | { |
26185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26186 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
26187 | ||
26188 | wxPyEndAllowThreads(__tstate); | |
26189 | if (PyErr_Occurred()) SWIG_fail; | |
26190 | } | |
093d3ff1 | 26191 | { |
32fe5131 | 26192 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 26193 | } |
d14a1e28 RD |
26194 | { |
26195 | if (temp3) | |
26196 | delete arg3; | |
26197 | } | |
26198 | return resultobj; | |
26199 | fail: | |
26200 | { | |
26201 | if (temp3) | |
26202 | delete arg3; | |
26203 | } | |
26204 | return NULL; | |
26205 | } | |
26206 | ||
26207 | ||
c32bde28 | 26208 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26209 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26210 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26211 | long arg2 ; | |
26212 | PyObject * obj0 = 0 ; | |
994141e6 | 26213 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26214 | char *kwnames[] = { |
26215 | (char *) "self",(char *) "count", NULL | |
26216 | }; | |
26217 | ||
994141e6 | 26218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26219 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26220 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26221 | { | |
32fe5131 | 26222 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26223 | if (SWIG_arg_fail(2)) SWIG_fail; |
26224 | } | |
d14a1e28 RD |
26225 | { |
26226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26227 | (arg1)->SetItemCount(arg2); | |
26228 | ||
26229 | wxPyEndAllowThreads(__tstate); | |
26230 | if (PyErr_Occurred()) SWIG_fail; | |
26231 | } | |
26232 | Py_INCREF(Py_None); resultobj = Py_None; | |
26233 | return resultobj; | |
26234 | fail: | |
26235 | return NULL; | |
26236 | } | |
26237 | ||
26238 | ||
c32bde28 | 26239 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26240 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26241 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26242 | int arg2 ; | |
26243 | int arg3 ; | |
26244 | bool result; | |
26245 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26246 | PyObject * obj1 = 0 ; |
26247 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26248 | char *kwnames[] = { |
26249 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
26250 | }; | |
26251 | ||
994141e6 | 26252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26253 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26255 | { | |
32fe5131 | 26256 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26257 | if (SWIG_arg_fail(2)) SWIG_fail; |
26258 | } | |
26259 | { | |
32fe5131 | 26260 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
26261 | if (SWIG_arg_fail(3)) SWIG_fail; |
26262 | } | |
d14a1e28 RD |
26263 | { |
26264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26265 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
26266 | ||
26267 | wxPyEndAllowThreads(__tstate); | |
26268 | if (PyErr_Occurred()) SWIG_fail; | |
26269 | } | |
4f89f6a3 RD |
26270 | { |
26271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26272 | } | |
d14a1e28 RD |
26273 | return resultobj; |
26274 | fail: | |
26275 | return NULL; | |
26276 | } | |
26277 | ||
26278 | ||
c32bde28 | 26279 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26280 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26281 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26282 | long arg2 ; | |
26283 | wxColour *arg3 = 0 ; | |
26284 | wxColour temp3 ; | |
26285 | PyObject * obj0 = 0 ; | |
994141e6 | 26286 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26287 | PyObject * obj2 = 0 ; |
26288 | char *kwnames[] = { | |
26289 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26290 | }; | |
26291 | ||
994141e6 | 26292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26295 | { | |
32fe5131 | 26296 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26297 | if (SWIG_arg_fail(2)) SWIG_fail; |
26298 | } | |
d14a1e28 RD |
26299 | { |
26300 | arg3 = &temp3; | |
26301 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26302 | } | |
26303 | { | |
26304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26305 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
26306 | ||
26307 | wxPyEndAllowThreads(__tstate); | |
26308 | if (PyErr_Occurred()) SWIG_fail; | |
26309 | } | |
26310 | Py_INCREF(Py_None); resultobj = Py_None; | |
26311 | return resultobj; | |
26312 | fail: | |
26313 | return NULL; | |
26314 | } | |
26315 | ||
26316 | ||
c32bde28 | 26317 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26318 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26319 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26320 | long arg2 ; | |
26321 | wxColour result; | |
26322 | PyObject * obj0 = 0 ; | |
994141e6 | 26323 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26324 | char *kwnames[] = { |
26325 | (char *) "self",(char *) "item", NULL | |
26326 | }; | |
26327 | ||
994141e6 | 26328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26331 | { | |
32fe5131 | 26332 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26333 | if (SWIG_arg_fail(2)) SWIG_fail; |
26334 | } | |
d14a1e28 RD |
26335 | { |
26336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26337 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
26338 | ||
26339 | wxPyEndAllowThreads(__tstate); | |
26340 | if (PyErr_Occurred()) SWIG_fail; | |
26341 | } | |
26342 | { | |
26343 | wxColour * resultptr; | |
32fe5131 | 26344 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 26345 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26346 | } |
26347 | return resultobj; | |
26348 | fail: | |
26349 | return NULL; | |
26350 | } | |
26351 | ||
26352 | ||
c32bde28 | 26353 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26354 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26355 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26356 | long arg2 ; | |
26357 | wxColour *arg3 = 0 ; | |
26358 | wxColour temp3 ; | |
26359 | PyObject * obj0 = 0 ; | |
994141e6 | 26360 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26361 | PyObject * obj2 = 0 ; |
26362 | char *kwnames[] = { | |
26363 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26364 | }; | |
26365 | ||
994141e6 | 26366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26369 | { | |
32fe5131 | 26370 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26371 | if (SWIG_arg_fail(2)) SWIG_fail; |
26372 | } | |
d14a1e28 RD |
26373 | { |
26374 | arg3 = &temp3; | |
26375 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26376 | } | |
26377 | { | |
26378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26379 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
26380 | ||
26381 | wxPyEndAllowThreads(__tstate); | |
26382 | if (PyErr_Occurred()) SWIG_fail; | |
26383 | } | |
26384 | Py_INCREF(Py_None); resultobj = Py_None; | |
26385 | return resultobj; | |
26386 | fail: | |
26387 | return NULL; | |
26388 | } | |
26389 | ||
26390 | ||
c32bde28 | 26391 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26392 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26393 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26394 | long arg2 ; | |
26395 | wxColour result; | |
26396 | PyObject * obj0 = 0 ; | |
994141e6 | 26397 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26398 | char *kwnames[] = { |
26399 | (char *) "self",(char *) "item", NULL | |
26400 | }; | |
26401 | ||
994141e6 | 26402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26405 | { | |
32fe5131 | 26406 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26407 | if (SWIG_arg_fail(2)) SWIG_fail; |
26408 | } | |
d14a1e28 RD |
26409 | { |
26410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26411 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
26412 | ||
26413 | wxPyEndAllowThreads(__tstate); | |
26414 | if (PyErr_Occurred()) SWIG_fail; | |
26415 | } | |
26416 | { | |
26417 | wxColour * resultptr; | |
32fe5131 | 26418 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 26419 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26420 | } |
26421 | return resultobj; | |
26422 | fail: | |
26423 | return NULL; | |
26424 | } | |
26425 | ||
26426 | ||
943e8dfd | 26427 | static PyObject *_wrap_ListCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26428 | PyObject *resultobj = NULL; |
943e8dfd RD |
26429 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26430 | long arg2 ; | |
26431 | wxFont *arg3 = 0 ; | |
26432 | PyObject * obj0 = 0 ; | |
26433 | PyObject * obj1 = 0 ; | |
26434 | PyObject * obj2 = 0 ; | |
26435 | char *kwnames[] = { | |
26436 | (char *) "self",(char *) "item",(char *) "f", NULL | |
26437 | }; | |
26438 | ||
26439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26442 | { | |
32fe5131 | 26443 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
943e8dfd RD |
26444 | if (SWIG_arg_fail(2)) SWIG_fail; |
26445 | } | |
26446 | { | |
26447 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
26448 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26449 | if (arg3 == NULL) { | |
26450 | SWIG_null_ref("wxFont"); | |
26451 | } | |
26452 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26453 | } | |
26454 | { | |
26455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26456 | (arg1)->SetItemFont(arg2,(wxFont const &)*arg3); | |
26457 | ||
26458 | wxPyEndAllowThreads(__tstate); | |
26459 | if (PyErr_Occurred()) SWIG_fail; | |
26460 | } | |
26461 | Py_INCREF(Py_None); resultobj = Py_None; | |
26462 | return resultobj; | |
26463 | fail: | |
26464 | return NULL; | |
26465 | } | |
26466 | ||
26467 | ||
26468 | static PyObject *_wrap_ListCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 26469 | PyObject *resultobj = NULL; |
943e8dfd RD |
26470 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26471 | long arg2 ; | |
26472 | wxFont result; | |
26473 | PyObject * obj0 = 0 ; | |
26474 | PyObject * obj1 = 0 ; | |
26475 | char *kwnames[] = { | |
26476 | (char *) "self",(char *) "item", NULL | |
26477 | }; | |
26478 | ||
26479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
26480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26482 | { | |
32fe5131 | 26483 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
943e8dfd RD |
26484 | if (SWIG_arg_fail(2)) SWIG_fail; |
26485 | } | |
26486 | { | |
26487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26488 | result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2); | |
26489 | ||
26490 | wxPyEndAllowThreads(__tstate); | |
26491 | if (PyErr_Occurred()) SWIG_fail; | |
26492 | } | |
26493 | { | |
26494 | wxFont * resultptr; | |
32fe5131 | 26495 | resultptr = new wxFont(static_cast<wxFont & >(result)); |
943e8dfd RD |
26496 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
26497 | } | |
26498 | return resultobj; | |
26499 | fail: | |
26500 | return NULL; | |
26501 | } | |
26502 | ||
26503 | ||
c32bde28 | 26504 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26505 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26506 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26507 | PyObject *arg2 = (PyObject *) 0 ; | |
26508 | bool result; | |
26509 | PyObject * obj0 = 0 ; | |
26510 | PyObject * obj1 = 0 ; | |
26511 | char *kwnames[] = { | |
26512 | (char *) "self",(char *) "func", NULL | |
26513 | }; | |
26514 | ||
26515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) 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; | |
d14a1e28 RD |
26518 | arg2 = obj1; |
26519 | { | |
26520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26521 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
26522 | ||
26523 | wxPyEndAllowThreads(__tstate); | |
26524 | if (PyErr_Occurred()) SWIG_fail; | |
26525 | } | |
4f89f6a3 RD |
26526 | { |
26527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26528 | } | |
d14a1e28 RD |
26529 | return resultobj; |
26530 | fail: | |
26531 | return NULL; | |
26532 | } | |
26533 | ||
26534 | ||
c32bde28 | 26535 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26536 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26537 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26538 | wxWindow *result; | |
26539 | PyObject * obj0 = 0 ; | |
26540 | char *kwnames[] = { | |
26541 | (char *) "self", NULL | |
26542 | }; | |
26543 | ||
26544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26547 | { |
26548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26549 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
26550 | ||
26551 | wxPyEndAllowThreads(__tstate); | |
26552 | if (PyErr_Occurred()) SWIG_fail; | |
26553 | } | |
26554 | { | |
412d302d | 26555 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
26556 | } |
26557 | return resultobj; | |
26558 | fail: | |
26559 | return NULL; | |
26560 | } | |
26561 | ||
26562 | ||
c32bde28 | 26563 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26564 | PyObject *resultobj = NULL; |
093d3ff1 | 26565 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
26566 | wxVisualAttributes result; |
26567 | PyObject * obj0 = 0 ; | |
26568 | char *kwnames[] = { | |
26569 | (char *) "variant", NULL | |
26570 | }; | |
26571 | ||
26572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26573 | if (obj0) { | |
093d3ff1 | 26574 | { |
32fe5131 | 26575 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
26576 | if (SWIG_arg_fail(1)) SWIG_fail; |
26577 | } | |
74a57fcd RD |
26578 | } |
26579 | { | |
110da5b0 | 26580 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd | 26581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 26582 | result = wxPyListCtrl::GetClassDefaultAttributes(arg1); |
74a57fcd RD |
26583 | |
26584 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 26585 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
26586 | } |
26587 | { | |
26588 | wxVisualAttributes * resultptr; | |
32fe5131 | 26589 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
74a57fcd RD |
26590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
26591 | } | |
26592 | return resultobj; | |
26593 | fail: | |
26594 | return NULL; | |
26595 | } | |
26596 | ||
26597 | ||
c32bde28 | 26598 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
26599 | PyObject *obj; |
26600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26601 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
26602 | Py_INCREF(obj); | |
26603 | return Py_BuildValue((char *)""); | |
26604 | } | |
c32bde28 | 26605 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26606 | PyObject *resultobj = NULL; |
d14a1e28 | 26607 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 26608 | int arg2 = (int) -1 ; |
d14a1e28 RD |
26609 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
26610 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26611 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26612 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26613 | long arg5 = (long) wxLC_REPORT ; | |
26614 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
26615 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
26616 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
26617 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26618 | wxListView *result; | |
26619 | wxPoint temp3 ; | |
26620 | wxSize temp4 ; | |
ae8162c8 | 26621 | bool temp7 = false ; |
d14a1e28 | 26622 | PyObject * obj0 = 0 ; |
994141e6 | 26623 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26624 | PyObject * obj2 = 0 ; |
26625 | PyObject * obj3 = 0 ; | |
994141e6 | 26626 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
26627 | PyObject * obj5 = 0 ; |
26628 | PyObject * obj6 = 0 ; | |
26629 | char *kwnames[] = { | |
26630 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26631 | }; | |
26632 | ||
994141e6 | 26633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
26634 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 26636 | if (obj1) { |
093d3ff1 | 26637 | { |
32fe5131 | 26638 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26639 | if (SWIG_arg_fail(2)) SWIG_fail; |
26640 | } | |
994141e6 | 26641 | } |
d14a1e28 RD |
26642 | if (obj2) { |
26643 | { | |
26644 | arg3 = &temp3; | |
26645 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26646 | } | |
26647 | } | |
26648 | if (obj3) { | |
26649 | { | |
26650 | arg4 = &temp4; | |
26651 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26652 | } | |
26653 | } | |
994141e6 | 26654 | if (obj4) { |
093d3ff1 | 26655 | { |
32fe5131 | 26656 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
26657 | if (SWIG_arg_fail(5)) SWIG_fail; |
26658 | } | |
994141e6 | 26659 | } |
d14a1e28 | 26660 | if (obj5) { |
093d3ff1 RD |
26661 | { |
26662 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26663 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26664 | if (arg6 == NULL) { | |
26665 | SWIG_null_ref("wxValidator"); | |
26666 | } | |
26667 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
26668 | } |
26669 | } | |
26670 | if (obj6) { | |
26671 | { | |
26672 | arg7 = wxString_in_helper(obj6); | |
26673 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 26674 | temp7 = true; |
d14a1e28 RD |
26675 | } |
26676 | } | |
26677 | { | |
e3b71cb8 | 26678 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
26679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26680 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
26681 | ||
26682 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26683 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 26684 | } |
15afbcd0 | 26685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
26686 | { |
26687 | if (temp7) | |
26688 | delete arg7; | |
26689 | } | |
26690 | return resultobj; | |
26691 | fail: | |
26692 | { | |
26693 | if (temp7) | |
26694 | delete arg7; | |
26695 | } | |
26696 | return NULL; | |
26697 | } | |
26698 | ||
26699 | ||
c32bde28 | 26700 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26701 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26702 | wxListView *result; |
26703 | char *kwnames[] = { | |
26704 | NULL | |
26705 | }; | |
26706 | ||
26707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
26708 | { | |
e3b71cb8 | 26709 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
26710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26711 | result = (wxListView *)new wxListView(); | |
26712 | ||
26713 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26714 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 26715 | } |
15afbcd0 | 26716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
26717 | return resultobj; |
26718 | fail: | |
26719 | return NULL; | |
26720 | } | |
26721 | ||
26722 | ||
c32bde28 | 26723 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26724 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26725 | wxListView *arg1 = (wxListView *) 0 ; |
26726 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 26727 | int arg3 = (int) -1 ; |
d14a1e28 RD |
26728 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
26729 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26730 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26731 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26732 | long arg6 = (long) wxLC_REPORT ; | |
26733 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
26734 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
26735 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
26736 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26737 | bool result; | |
26738 | wxPoint temp4 ; | |
26739 | wxSize temp5 ; | |
ae8162c8 | 26740 | bool temp8 = false ; |
d14a1e28 RD |
26741 | PyObject * obj0 = 0 ; |
26742 | PyObject * obj1 = 0 ; | |
994141e6 | 26743 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26744 | PyObject * obj3 = 0 ; |
26745 | PyObject * obj4 = 0 ; | |
994141e6 | 26746 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
26747 | PyObject * obj6 = 0 ; |
26748 | PyObject * obj7 = 0 ; | |
26749 | char *kwnames[] = { | |
26750 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26751 | }; | |
26752 | ||
994141e6 | 26753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
26754 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26755 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26756 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
26757 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 26758 | if (obj2) { |
093d3ff1 | 26759 | { |
32fe5131 | 26760 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
26761 | if (SWIG_arg_fail(3)) SWIG_fail; |
26762 | } | |
994141e6 | 26763 | } |
d14a1e28 RD |
26764 | if (obj3) { |
26765 | { | |
26766 | arg4 = &temp4; | |
26767 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26768 | } | |
26769 | } | |
26770 | if (obj4) { | |
26771 | { | |
26772 | arg5 = &temp5; | |
26773 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26774 | } | |
26775 | } | |
994141e6 | 26776 | if (obj5) { |
093d3ff1 | 26777 | { |
32fe5131 | 26778 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
26779 | if (SWIG_arg_fail(6)) SWIG_fail; |
26780 | } | |
994141e6 | 26781 | } |
d14a1e28 | 26782 | if (obj6) { |
093d3ff1 RD |
26783 | { |
26784 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26785 | if (SWIG_arg_fail(7)) SWIG_fail; | |
26786 | if (arg7 == NULL) { | |
26787 | SWIG_null_ref("wxValidator"); | |
26788 | } | |
26789 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
26790 | } |
26791 | } | |
26792 | if (obj7) { | |
26793 | { | |
26794 | arg8 = wxString_in_helper(obj7); | |
26795 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 26796 | temp8 = true; |
d14a1e28 RD |
26797 | } |
26798 | } | |
26799 | { | |
26800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26801 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
26802 | ||
26803 | wxPyEndAllowThreads(__tstate); | |
26804 | if (PyErr_Occurred()) SWIG_fail; | |
26805 | } | |
4f89f6a3 RD |
26806 | { |
26807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26808 | } | |
d14a1e28 RD |
26809 | { |
26810 | if (temp8) | |
26811 | delete arg8; | |
26812 | } | |
26813 | return resultobj; | |
26814 | fail: | |
26815 | { | |
26816 | if (temp8) | |
26817 | delete arg8; | |
26818 | } | |
26819 | return NULL; | |
26820 | } | |
26821 | ||
26822 | ||
c32bde28 | 26823 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26824 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26825 | wxListView *arg1 = (wxListView *) 0 ; |
26826 | long arg2 ; | |
ae8162c8 | 26827 | bool arg3 = (bool) true ; |
d14a1e28 | 26828 | PyObject * obj0 = 0 ; |
994141e6 | 26829 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26830 | PyObject * obj2 = 0 ; |
26831 | char *kwnames[] = { | |
26832 | (char *) "self",(char *) "n",(char *) "on", NULL | |
26833 | }; | |
26834 | ||
15afbcd0 | 26835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26838 | { | |
32fe5131 | 26839 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26840 | if (SWIG_arg_fail(2)) SWIG_fail; |
26841 | } | |
d14a1e28 | 26842 | if (obj2) { |
093d3ff1 | 26843 | { |
32fe5131 | 26844 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
26845 | if (SWIG_arg_fail(3)) SWIG_fail; |
26846 | } | |
d14a1e28 RD |
26847 | } |
26848 | { | |
26849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26850 | (arg1)->Select(arg2,arg3); | |
26851 | ||
26852 | wxPyEndAllowThreads(__tstate); | |
26853 | if (PyErr_Occurred()) SWIG_fail; | |
26854 | } | |
26855 | Py_INCREF(Py_None); resultobj = Py_None; | |
26856 | return resultobj; | |
26857 | fail: | |
26858 | return NULL; | |
26859 | } | |
26860 | ||
26861 | ||
c32bde28 | 26862 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26863 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26864 | wxListView *arg1 = (wxListView *) 0 ; |
26865 | long arg2 ; | |
26866 | PyObject * obj0 = 0 ; | |
994141e6 | 26867 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26868 | char *kwnames[] = { |
26869 | (char *) "self",(char *) "index", NULL | |
26870 | }; | |
26871 | ||
994141e6 | 26872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26873 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26874 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26875 | { | |
32fe5131 | 26876 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26877 | if (SWIG_arg_fail(2)) SWIG_fail; |
26878 | } | |
d14a1e28 RD |
26879 | { |
26880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26881 | (arg1)->Focus(arg2); | |
26882 | ||
26883 | wxPyEndAllowThreads(__tstate); | |
26884 | if (PyErr_Occurred()) SWIG_fail; | |
26885 | } | |
26886 | Py_INCREF(Py_None); resultobj = Py_None; | |
26887 | return resultobj; | |
26888 | fail: | |
26889 | return NULL; | |
26890 | } | |
26891 | ||
26892 | ||
c32bde28 | 26893 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26894 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26895 | wxListView *arg1 = (wxListView *) 0 ; |
26896 | long result; | |
26897 | PyObject * obj0 = 0 ; | |
26898 | char *kwnames[] = { | |
26899 | (char *) "self", NULL | |
26900 | }; | |
26901 | ||
26902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26905 | { |
26906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26907 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
26908 | ||
26909 | wxPyEndAllowThreads(__tstate); | |
26910 | if (PyErr_Occurred()) SWIG_fail; | |
26911 | } | |
093d3ff1 | 26912 | { |
32fe5131 | 26913 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 26914 | } |
d14a1e28 RD |
26915 | return resultobj; |
26916 | fail: | |
26917 | return NULL; | |
26918 | } | |
26919 | ||
26920 | ||
c32bde28 | 26921 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26922 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26923 | wxListView *arg1 = (wxListView *) 0 ; |
26924 | long arg2 ; | |
26925 | long result; | |
26926 | PyObject * obj0 = 0 ; | |
994141e6 | 26927 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26928 | char *kwnames[] = { |
26929 | (char *) "self",(char *) "item", NULL | |
26930 | }; | |
26931 | ||
994141e6 | 26932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26933 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26935 | { | |
32fe5131 | 26936 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26937 | if (SWIG_arg_fail(2)) SWIG_fail; |
26938 | } | |
d14a1e28 RD |
26939 | { |
26940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26941 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
26942 | ||
26943 | wxPyEndAllowThreads(__tstate); | |
26944 | if (PyErr_Occurred()) SWIG_fail; | |
26945 | } | |
093d3ff1 | 26946 | { |
32fe5131 | 26947 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 26948 | } |
d14a1e28 RD |
26949 | return resultobj; |
26950 | fail: | |
26951 | return NULL; | |
26952 | } | |
26953 | ||
26954 | ||
c32bde28 | 26955 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26956 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26957 | wxListView *arg1 = (wxListView *) 0 ; |
26958 | long result; | |
26959 | PyObject * obj0 = 0 ; | |
26960 | char *kwnames[] = { | |
26961 | (char *) "self", NULL | |
26962 | }; | |
26963 | ||
26964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26965 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26967 | { |
26968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26969 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
26970 | ||
26971 | wxPyEndAllowThreads(__tstate); | |
26972 | if (PyErr_Occurred()) SWIG_fail; | |
26973 | } | |
093d3ff1 | 26974 | { |
32fe5131 | 26975 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 26976 | } |
d14a1e28 RD |
26977 | return resultobj; |
26978 | fail: | |
26979 | return NULL; | |
26980 | } | |
26981 | ||
26982 | ||
c32bde28 | 26983 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26984 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26985 | wxListView *arg1 = (wxListView *) 0 ; |
26986 | long arg2 ; | |
26987 | bool result; | |
26988 | PyObject * obj0 = 0 ; | |
994141e6 | 26989 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26990 | char *kwnames[] = { |
26991 | (char *) "self",(char *) "index", NULL | |
26992 | }; | |
26993 | ||
994141e6 | 26994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26995 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26996 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26997 | { | |
32fe5131 | 26998 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26999 | if (SWIG_arg_fail(2)) SWIG_fail; |
27000 | } | |
d14a1e28 RD |
27001 | { |
27002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27003 | result = (bool)(arg1)->IsSelected(arg2); | |
27004 | ||
27005 | wxPyEndAllowThreads(__tstate); | |
27006 | if (PyErr_Occurred()) SWIG_fail; | |
27007 | } | |
4f89f6a3 RD |
27008 | { |
27009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27010 | } | |
d14a1e28 RD |
27011 | return resultobj; |
27012 | fail: | |
27013 | return NULL; | |
27014 | } | |
27015 | ||
27016 | ||
c32bde28 | 27017 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27018 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27019 | wxListView *arg1 = (wxListView *) 0 ; |
27020 | int arg2 ; | |
27021 | int arg3 ; | |
27022 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27023 | PyObject * obj1 = 0 ; |
27024 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27025 | char *kwnames[] = { |
27026 | (char *) "self",(char *) "col",(char *) "image", NULL | |
27027 | }; | |
27028 | ||
994141e6 | 27029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
27030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
27031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27032 | { | |
32fe5131 | 27033 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27034 | if (SWIG_arg_fail(2)) SWIG_fail; |
27035 | } | |
27036 | { | |
32fe5131 | 27037 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
27038 | if (SWIG_arg_fail(3)) SWIG_fail; |
27039 | } | |
d14a1e28 RD |
27040 | { |
27041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27042 | (arg1)->SetColumnImage(arg2,arg3); | |
27043 | ||
27044 | wxPyEndAllowThreads(__tstate); | |
27045 | if (PyErr_Occurred()) SWIG_fail; | |
27046 | } | |
27047 | Py_INCREF(Py_None); resultobj = Py_None; | |
27048 | return resultobj; | |
27049 | fail: | |
27050 | return NULL; | |
27051 | } | |
27052 | ||
27053 | ||
c32bde28 | 27054 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27055 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27056 | wxListView *arg1 = (wxListView *) 0 ; |
27057 | int arg2 ; | |
27058 | PyObject * obj0 = 0 ; | |
994141e6 | 27059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27060 | char *kwnames[] = { |
27061 | (char *) "self",(char *) "col", NULL | |
27062 | }; | |
27063 | ||
994141e6 | 27064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27065 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
27066 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27067 | { | |
32fe5131 | 27068 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27069 | if (SWIG_arg_fail(2)) SWIG_fail; |
27070 | } | |
d14a1e28 RD |
27071 | { |
27072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27073 | (arg1)->ClearColumnImage(arg2); | |
27074 | ||
27075 | wxPyEndAllowThreads(__tstate); | |
27076 | if (PyErr_Occurred()) SWIG_fail; | |
27077 | } | |
27078 | Py_INCREF(Py_None); resultobj = Py_None; | |
27079 | return resultobj; | |
27080 | fail: | |
27081 | return NULL; | |
27082 | } | |
27083 | ||
27084 | ||
c32bde28 | 27085 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27086 | PyObject *obj; |
27087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27088 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
27089 | Py_INCREF(obj); | |
27090 | return Py_BuildValue((char *)""); | |
27091 | } | |
c32bde28 | 27092 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
27093 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
27094 | return 1; | |
27095 | } | |
27096 | ||
27097 | ||
093d3ff1 | 27098 | static PyObject *_wrap_TreeCtrlNameStr_get(void) { |
32fe5131 | 27099 | PyObject *pyobj = NULL; |
b2dc1044 RD |
27100 | |
27101 | { | |
27102 | #if wxUSE_UNICODE | |
27103 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
27104 | #else | |
27105 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
27106 | #endif | |
27107 | } | |
27108 | return pyobj; | |
27109 | } | |
27110 | ||
27111 | ||
c32bde28 | 27112 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27113 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27114 | wxTreeItemId *result; |
27115 | char *kwnames[] = { | |
27116 | NULL | |
27117 | }; | |
27118 | ||
27119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
27120 | { | |
27121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27122 | result = (wxTreeItemId *)new wxTreeItemId(); | |
27123 | ||
27124 | wxPyEndAllowThreads(__tstate); | |
27125 | if (PyErr_Occurred()) SWIG_fail; | |
27126 | } | |
15afbcd0 | 27127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27128 | return resultobj; |
27129 | fail: | |
27130 | return NULL; | |
27131 | } | |
27132 | ||
27133 | ||
c32bde28 | 27134 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27135 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27136 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
27137 | PyObject * obj0 = 0 ; | |
27138 | char *kwnames[] = { | |
27139 | (char *) "self", NULL | |
27140 | }; | |
27141 | ||
27142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27145 | { |
27146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27147 | delete arg1; | |
27148 | ||
27149 | wxPyEndAllowThreads(__tstate); | |
27150 | if (PyErr_Occurred()) SWIG_fail; | |
27151 | } | |
27152 | Py_INCREF(Py_None); resultobj = Py_None; | |
27153 | return resultobj; | |
27154 | fail: | |
27155 | return NULL; | |
27156 | } | |
27157 | ||
27158 | ||
c32bde28 | 27159 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27160 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27161 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
27162 | bool result; | |
27163 | PyObject * obj0 = 0 ; | |
27164 | char *kwnames[] = { | |
27165 | (char *) "self", NULL | |
27166 | }; | |
27167 | ||
27168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27171 | { |
27172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27173 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
27174 | ||
27175 | wxPyEndAllowThreads(__tstate); | |
27176 | if (PyErr_Occurred()) SWIG_fail; | |
27177 | } | |
4f89f6a3 RD |
27178 | { |
27179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27180 | } | |
d14a1e28 RD |
27181 | return resultobj; |
27182 | fail: | |
27183 | return NULL; | |
27184 | } | |
27185 | ||
27186 | ||
c32bde28 | 27187 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27188 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27189 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
27190 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
27191 | bool result; | |
27192 | PyObject * obj0 = 0 ; | |
27193 | PyObject * obj1 = 0 ; | |
27194 | char *kwnames[] = { | |
27195 | (char *) "self",(char *) "other", NULL | |
27196 | }; | |
27197 | ||
27198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27201 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27202 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27203 | { |
27204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 27205 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
27206 | |
27207 | wxPyEndAllowThreads(__tstate); | |
27208 | if (PyErr_Occurred()) SWIG_fail; | |
27209 | } | |
4f89f6a3 RD |
27210 | { |
27211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27212 | } | |
d14a1e28 RD |
27213 | return resultobj; |
27214 | fail: | |
27215 | return NULL; | |
27216 | } | |
27217 | ||
27218 | ||
c32bde28 | 27219 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27220 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27221 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
27222 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
27223 | bool result; | |
27224 | PyObject * obj0 = 0 ; | |
27225 | PyObject * obj1 = 0 ; | |
27226 | char *kwnames[] = { | |
27227 | (char *) "self",(char *) "other", NULL | |
27228 | }; | |
27229 | ||
27230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27233 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27234 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27235 | { |
27236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 27237 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
27238 | |
27239 | wxPyEndAllowThreads(__tstate); | |
27240 | if (PyErr_Occurred()) SWIG_fail; | |
27241 | } | |
4f89f6a3 RD |
27242 | { |
27243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27244 | } | |
d14a1e28 RD |
27245 | return resultobj; |
27246 | fail: | |
27247 | return NULL; | |
27248 | } | |
27249 | ||
27250 | ||
c32bde28 | 27251 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27252 | PyObject *resultobj = NULL; |
d14a1e28 | 27253 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
58203fa6 | 27254 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
27255 | PyObject * obj0 = 0 ; |
27256 | PyObject * obj1 = 0 ; | |
27257 | char *kwnames[] = { | |
27258 | (char *) "self",(char *) "m_pItem", NULL | |
27259 | }; | |
27260 | ||
27261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27264 | { | |
32fe5131 | 27265 | if ((SWIG_ConvertPtr(obj1,reinterpret_cast<void ** >(&arg2),0,SWIG_POINTER_EXCEPTION|SWIG_POINTER_DISOWN))== -1) { |
093d3ff1 RD |
27266 | SWIG_arg_fail(2);SWIG_fail; |
27267 | } | |
27268 | } | |
d14a1e28 RD |
27269 | if (arg1) (arg1)->m_pItem = arg2; |
27270 | ||
27271 | Py_INCREF(Py_None); resultobj = Py_None; | |
27272 | return resultobj; | |
27273 | fail: | |
27274 | return NULL; | |
27275 | } | |
27276 | ||
27277 | ||
c32bde28 | 27278 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27279 | PyObject *resultobj = NULL; |
d14a1e28 | 27280 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
58203fa6 | 27281 | void *result; |
d14a1e28 RD |
27282 | PyObject * obj0 = 0 ; |
27283 | char *kwnames[] = { | |
27284 | (char *) "self", NULL | |
27285 | }; | |
27286 | ||
27287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
58203fa6 | 27290 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 27291 | |
15afbcd0 | 27292 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
27293 | return resultobj; |
27294 | fail: | |
27295 | return NULL; | |
27296 | } | |
27297 | ||
27298 | ||
c32bde28 | 27299 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27300 | PyObject *obj; |
27301 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27302 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
27303 | Py_INCREF(obj); | |
27304 | return Py_BuildValue((char *)""); | |
27305 | } | |
c32bde28 | 27306 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27307 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27308 | PyObject *arg1 = (PyObject *) NULL ; |
27309 | wxPyTreeItemData *result; | |
27310 | PyObject * obj0 = 0 ; | |
27311 | char *kwnames[] = { | |
27312 | (char *) "obj", NULL | |
27313 | }; | |
27314 | ||
27315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
27316 | if (obj0) { | |
27317 | arg1 = obj0; | |
27318 | } | |
27319 | { | |
27320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27321 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
27322 | ||
27323 | wxPyEndAllowThreads(__tstate); | |
27324 | if (PyErr_Occurred()) SWIG_fail; | |
27325 | } | |
15afbcd0 | 27326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
27327 | return resultobj; |
27328 | fail: | |
27329 | return NULL; | |
27330 | } | |
27331 | ||
27332 | ||
c32bde28 | 27333 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27334 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27335 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; |
27336 | PyObject *result; | |
27337 | PyObject * obj0 = 0 ; | |
27338 | char *kwnames[] = { | |
27339 | (char *) "self", NULL | |
27340 | }; | |
27341 | ||
27342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27345 | { |
27346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27347 | result = (PyObject *)(arg1)->GetData(); | |
27348 | ||
27349 | wxPyEndAllowThreads(__tstate); | |
27350 | if (PyErr_Occurred()) SWIG_fail; | |
27351 | } | |
27352 | resultobj = result; | |
27353 | return resultobj; | |
27354 | fail: | |
27355 | return NULL; | |
27356 | } | |
27357 | ||
27358 | ||
c32bde28 | 27359 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27360 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27361 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; |
27362 | PyObject *arg2 = (PyObject *) 0 ; | |
27363 | PyObject * obj0 = 0 ; | |
27364 | PyObject * obj1 = 0 ; | |
27365 | char *kwnames[] = { | |
27366 | (char *) "self",(char *) "obj", NULL | |
27367 | }; | |
27368 | ||
27369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27372 | arg2 = obj1; |
27373 | { | |
27374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27375 | (arg1)->SetData(arg2); | |
27376 | ||
27377 | wxPyEndAllowThreads(__tstate); | |
27378 | if (PyErr_Occurred()) SWIG_fail; | |
27379 | } | |
27380 | Py_INCREF(Py_None); resultobj = Py_None; | |
27381 | return resultobj; | |
27382 | fail: | |
27383 | return NULL; | |
27384 | } | |
27385 | ||
27386 | ||
c32bde28 | 27387 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27388 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27389 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; |
27390 | wxTreeItemId *result; | |
27391 | PyObject * obj0 = 0 ; | |
27392 | char *kwnames[] = { | |
27393 | (char *) "self", NULL | |
27394 | }; | |
27395 | ||
27396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27399 | { |
27400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27401 | { | |
27402 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
27403 | result = (wxTreeItemId *) &_result_ref; | |
27404 | } | |
27405 | ||
27406 | wxPyEndAllowThreads(__tstate); | |
27407 | if (PyErr_Occurred()) SWIG_fail; | |
27408 | } | |
15afbcd0 | 27409 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
27410 | return resultobj; |
27411 | fail: | |
27412 | return NULL; | |
27413 | } | |
27414 | ||
27415 | ||
c32bde28 | 27416 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27417 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27418 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; |
27419 | wxTreeItemId *arg2 = 0 ; | |
27420 | PyObject * obj0 = 0 ; | |
27421 | PyObject * obj1 = 0 ; | |
27422 | char *kwnames[] = { | |
27423 | (char *) "self",(char *) "id", NULL | |
27424 | }; | |
27425 | ||
27426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27427 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27428 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27429 | { | |
27430 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27431 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27432 | if (arg2 == NULL) { | |
27433 | SWIG_null_ref("wxTreeItemId"); | |
27434 | } | |
27435 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27436 | } |
27437 | { | |
27438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27439 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
27440 | ||
27441 | wxPyEndAllowThreads(__tstate); | |
27442 | if (PyErr_Occurred()) SWIG_fail; | |
27443 | } | |
27444 | Py_INCREF(Py_None); resultobj = Py_None; | |
27445 | return resultobj; | |
27446 | fail: | |
27447 | return NULL; | |
27448 | } | |
27449 | ||
27450 | ||
c32bde28 | 27451 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27452 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27453 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; |
27454 | PyObject * obj0 = 0 ; | |
27455 | char *kwnames[] = { | |
27456 | (char *) "self", NULL | |
27457 | }; | |
27458 | ||
27459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27462 | { |
27463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27464 | wxPyTreeItemData_Destroy(arg1); | |
27465 | ||
27466 | wxPyEndAllowThreads(__tstate); | |
27467 | if (PyErr_Occurred()) SWIG_fail; | |
27468 | } | |
27469 | Py_INCREF(Py_None); resultobj = Py_None; | |
27470 | return resultobj; | |
27471 | fail: | |
27472 | return NULL; | |
27473 | } | |
27474 | ||
27475 | ||
c32bde28 | 27476 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27477 | PyObject *obj; |
27478 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27479 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
27480 | Py_INCREF(obj); | |
27481 | return Py_BuildValue((char *)""); | |
27482 | } | |
c32bde28 | 27483 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27484 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27485 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
27486 | int arg2 = (int) 0 ; | |
27487 | wxTreeEvent *result; | |
994141e6 RD |
27488 | PyObject * obj0 = 0 ; |
27489 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
27490 | char *kwnames[] = { |
27491 | (char *) "commandType",(char *) "id", NULL | |
27492 | }; | |
27493 | ||
994141e6 RD |
27494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
27495 | if (obj0) { | |
093d3ff1 | 27496 | { |
32fe5131 | 27497 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
27498 | if (SWIG_arg_fail(1)) SWIG_fail; |
27499 | } | |
994141e6 RD |
27500 | } |
27501 | if (obj1) { | |
093d3ff1 | 27502 | { |
32fe5131 | 27503 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27504 | if (SWIG_arg_fail(2)) SWIG_fail; |
27505 | } | |
994141e6 | 27506 | } |
d14a1e28 RD |
27507 | { |
27508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27509 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
27510 | ||
27511 | wxPyEndAllowThreads(__tstate); | |
27512 | if (PyErr_Occurred()) SWIG_fail; | |
27513 | } | |
15afbcd0 | 27514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
27515 | return resultobj; |
27516 | fail: | |
27517 | return NULL; | |
27518 | } | |
27519 | ||
27520 | ||
c32bde28 | 27521 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27522 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27523 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27524 | wxTreeItemId result; | |
27525 | PyObject * obj0 = 0 ; | |
27526 | char *kwnames[] = { | |
27527 | (char *) "self", NULL | |
27528 | }; | |
27529 | ||
27530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27533 | { |
27534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27535 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
27536 | ||
27537 | wxPyEndAllowThreads(__tstate); | |
27538 | if (PyErr_Occurred()) SWIG_fail; | |
27539 | } | |
27540 | { | |
27541 | wxTreeItemId * resultptr; | |
32fe5131 | 27542 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 27543 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27544 | } |
27545 | return resultobj; | |
27546 | fail: | |
27547 | return NULL; | |
27548 | } | |
27549 | ||
27550 | ||
c32bde28 | 27551 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27552 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27553 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27554 | wxTreeItemId *arg2 = 0 ; | |
27555 | PyObject * obj0 = 0 ; | |
27556 | PyObject * obj1 = 0 ; | |
27557 | char *kwnames[] = { | |
27558 | (char *) "self",(char *) "item", NULL | |
27559 | }; | |
27560 | ||
27561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27562 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27563 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27564 | { | |
27565 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27566 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27567 | if (arg2 == NULL) { | |
27568 | SWIG_null_ref("wxTreeItemId"); | |
27569 | } | |
27570 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27571 | } |
27572 | { | |
27573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27574 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
27575 | ||
27576 | wxPyEndAllowThreads(__tstate); | |
27577 | if (PyErr_Occurred()) SWIG_fail; | |
27578 | } | |
27579 | Py_INCREF(Py_None); resultobj = Py_None; | |
27580 | return resultobj; | |
27581 | fail: | |
27582 | return NULL; | |
27583 | } | |
27584 | ||
27585 | ||
c32bde28 | 27586 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27587 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27588 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27589 | wxTreeItemId result; | |
27590 | PyObject * obj0 = 0 ; | |
27591 | char *kwnames[] = { | |
27592 | (char *) "self", NULL | |
27593 | }; | |
27594 | ||
27595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27598 | { |
27599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27600 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
27601 | ||
27602 | wxPyEndAllowThreads(__tstate); | |
27603 | if (PyErr_Occurred()) SWIG_fail; | |
27604 | } | |
27605 | { | |
27606 | wxTreeItemId * resultptr; | |
32fe5131 | 27607 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 27608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27609 | } |
27610 | return resultobj; | |
27611 | fail: | |
27612 | return NULL; | |
27613 | } | |
27614 | ||
27615 | ||
c32bde28 | 27616 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27617 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27618 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27619 | wxTreeItemId *arg2 = 0 ; | |
27620 | PyObject * obj0 = 0 ; | |
27621 | PyObject * obj1 = 0 ; | |
27622 | char *kwnames[] = { | |
27623 | (char *) "self",(char *) "item", NULL | |
27624 | }; | |
27625 | ||
27626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27627 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27628 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27629 | { | |
27630 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27631 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27632 | if (arg2 == NULL) { | |
27633 | SWIG_null_ref("wxTreeItemId"); | |
27634 | } | |
27635 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27636 | } |
27637 | { | |
27638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27639 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
27640 | ||
27641 | wxPyEndAllowThreads(__tstate); | |
27642 | if (PyErr_Occurred()) SWIG_fail; | |
27643 | } | |
27644 | Py_INCREF(Py_None); resultobj = Py_None; | |
27645 | return resultobj; | |
27646 | fail: | |
27647 | return NULL; | |
27648 | } | |
27649 | ||
27650 | ||
c32bde28 | 27651 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27652 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27653 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27654 | wxPoint result; | |
27655 | PyObject * obj0 = 0 ; | |
27656 | char *kwnames[] = { | |
27657 | (char *) "self", NULL | |
27658 | }; | |
27659 | ||
27660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27663 | { |
27664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27665 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
27666 | ||
27667 | wxPyEndAllowThreads(__tstate); | |
27668 | if (PyErr_Occurred()) SWIG_fail; | |
27669 | } | |
27670 | { | |
27671 | wxPoint * resultptr; | |
32fe5131 | 27672 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
15afbcd0 | 27673 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
27674 | } |
27675 | return resultobj; | |
27676 | fail: | |
27677 | return NULL; | |
27678 | } | |
27679 | ||
27680 | ||
c32bde28 | 27681 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27682 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27683 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27684 | wxPoint *arg2 = 0 ; | |
27685 | wxPoint temp2 ; | |
27686 | PyObject * obj0 = 0 ; | |
27687 | PyObject * obj1 = 0 ; | |
27688 | char *kwnames[] = { | |
27689 | (char *) "self",(char *) "pt", NULL | |
27690 | }; | |
27691 | ||
27692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27695 | { |
27696 | arg2 = &temp2; | |
27697 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27698 | } | |
27699 | { | |
27700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27701 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
27702 | ||
27703 | wxPyEndAllowThreads(__tstate); | |
27704 | if (PyErr_Occurred()) SWIG_fail; | |
27705 | } | |
27706 | Py_INCREF(Py_None); resultobj = Py_None; | |
27707 | return resultobj; | |
27708 | fail: | |
27709 | return NULL; | |
27710 | } | |
27711 | ||
27712 | ||
c32bde28 | 27713 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27714 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27715 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27716 | wxKeyEvent *result; | |
27717 | PyObject * obj0 = 0 ; | |
27718 | char *kwnames[] = { | |
27719 | (char *) "self", NULL | |
27720 | }; | |
27721 | ||
27722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27725 | { |
27726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27727 | { | |
27728 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
27729 | result = (wxKeyEvent *) &_result_ref; | |
27730 | } | |
27731 | ||
27732 | wxPyEndAllowThreads(__tstate); | |
27733 | if (PyErr_Occurred()) SWIG_fail; | |
27734 | } | |
15afbcd0 | 27735 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
27736 | return resultobj; |
27737 | fail: | |
27738 | return NULL; | |
27739 | } | |
27740 | ||
27741 | ||
c32bde28 | 27742 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27743 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27744 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27745 | int result; | |
27746 | PyObject * obj0 = 0 ; | |
27747 | char *kwnames[] = { | |
27748 | (char *) "self", NULL | |
27749 | }; | |
27750 | ||
27751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27752 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27753 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27754 | { |
27755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27756 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
27757 | ||
27758 | wxPyEndAllowThreads(__tstate); | |
27759 | if (PyErr_Occurred()) SWIG_fail; | |
27760 | } | |
093d3ff1 | 27761 | { |
32fe5131 | 27762 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 27763 | } |
d14a1e28 RD |
27764 | return resultobj; |
27765 | fail: | |
27766 | return NULL; | |
27767 | } | |
27768 | ||
27769 | ||
c32bde28 | 27770 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27771 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27772 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27773 | wxKeyEvent *arg2 = 0 ; | |
27774 | PyObject * obj0 = 0 ; | |
27775 | PyObject * obj1 = 0 ; | |
27776 | char *kwnames[] = { | |
27777 | (char *) "self",(char *) "evt", NULL | |
27778 | }; | |
27779 | ||
27780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27781 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27782 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27783 | { | |
27784 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
27785 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27786 | if (arg2 == NULL) { | |
27787 | SWIG_null_ref("wxKeyEvent"); | |
27788 | } | |
27789 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27790 | } |
27791 | { | |
27792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27793 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
27794 | ||
27795 | wxPyEndAllowThreads(__tstate); | |
27796 | if (PyErr_Occurred()) SWIG_fail; | |
27797 | } | |
27798 | Py_INCREF(Py_None); resultobj = Py_None; | |
27799 | return resultobj; | |
27800 | fail: | |
27801 | return NULL; | |
27802 | } | |
27803 | ||
27804 | ||
c32bde28 | 27805 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27806 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27807 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27808 | wxString *result; | |
27809 | PyObject * obj0 = 0 ; | |
27810 | char *kwnames[] = { | |
27811 | (char *) "self", NULL | |
27812 | }; | |
27813 | ||
27814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27815 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27816 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27817 | { |
27818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27819 | { | |
27820 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
27821 | result = (wxString *) &_result_ref; | |
27822 | } | |
27823 | ||
27824 | wxPyEndAllowThreads(__tstate); | |
27825 | if (PyErr_Occurred()) SWIG_fail; | |
27826 | } | |
cc6dd355 RD |
27827 | { |
27828 | #if wxUSE_UNICODE | |
27829 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27830 | #else | |
27831 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27832 | #endif | |
27833 | } | |
d14a1e28 RD |
27834 | return resultobj; |
27835 | fail: | |
27836 | return NULL; | |
27837 | } | |
27838 | ||
27839 | ||
c32bde28 | 27840 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27841 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27842 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27843 | wxString *arg2 = 0 ; | |
ae8162c8 | 27844 | bool temp2 = false ; |
d14a1e28 RD |
27845 | PyObject * obj0 = 0 ; |
27846 | PyObject * obj1 = 0 ; | |
27847 | char *kwnames[] = { | |
27848 | (char *) "self",(char *) "label", NULL | |
27849 | }; | |
27850 | ||
27851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27852 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27854 | { |
27855 | arg2 = wxString_in_helper(obj1); | |
27856 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27857 | temp2 = true; |
d14a1e28 RD |
27858 | } |
27859 | { | |
27860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27861 | (arg1)->SetLabel((wxString const &)*arg2); | |
27862 | ||
27863 | wxPyEndAllowThreads(__tstate); | |
27864 | if (PyErr_Occurred()) SWIG_fail; | |
27865 | } | |
27866 | Py_INCREF(Py_None); resultobj = Py_None; | |
27867 | { | |
27868 | if (temp2) | |
27869 | delete arg2; | |
27870 | } | |
27871 | return resultobj; | |
27872 | fail: | |
27873 | { | |
27874 | if (temp2) | |
27875 | delete arg2; | |
27876 | } | |
27877 | return NULL; | |
27878 | } | |
27879 | ||
27880 | ||
c32bde28 | 27881 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27882 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27883 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27884 | bool result; | |
27885 | PyObject * obj0 = 0 ; | |
27886 | char *kwnames[] = { | |
27887 | (char *) "self", NULL | |
27888 | }; | |
27889 | ||
27890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27891 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27892 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27893 | { |
27894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27895 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
27896 | ||
27897 | wxPyEndAllowThreads(__tstate); | |
27898 | if (PyErr_Occurred()) SWIG_fail; | |
27899 | } | |
4f89f6a3 RD |
27900 | { |
27901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27902 | } | |
d14a1e28 RD |
27903 | return resultobj; |
27904 | fail: | |
27905 | return NULL; | |
27906 | } | |
27907 | ||
27908 | ||
c32bde28 | 27909 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27910 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27911 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27912 | bool arg2 ; | |
27913 | PyObject * obj0 = 0 ; | |
27914 | PyObject * obj1 = 0 ; | |
27915 | char *kwnames[] = { | |
27916 | (char *) "self",(char *) "editCancelled", NULL | |
27917 | }; | |
27918 | ||
27919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27920 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27921 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27922 | { | |
32fe5131 | 27923 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
27924 | if (SWIG_arg_fail(2)) SWIG_fail; |
27925 | } | |
d14a1e28 RD |
27926 | { |
27927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27928 | (arg1)->SetEditCanceled(arg2); | |
27929 | ||
27930 | wxPyEndAllowThreads(__tstate); | |
27931 | if (PyErr_Occurred()) SWIG_fail; | |
27932 | } | |
27933 | Py_INCREF(Py_None); resultobj = Py_None; | |
27934 | return resultobj; | |
27935 | fail: | |
27936 | return NULL; | |
27937 | } | |
27938 | ||
27939 | ||
c32bde28 | 27940 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27941 | PyObject *resultobj = NULL; |
c9c7117a RD |
27942 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27943 | wxString *arg2 = 0 ; | |
ae8162c8 | 27944 | bool temp2 = false ; |
c9c7117a RD |
27945 | PyObject * obj0 = 0 ; |
27946 | PyObject * obj1 = 0 ; | |
27947 | char *kwnames[] = { | |
27948 | (char *) "self",(char *) "toolTip", NULL | |
27949 | }; | |
27950 | ||
27951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27952 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27953 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c9c7117a RD |
27954 | { |
27955 | arg2 = wxString_in_helper(obj1); | |
27956 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27957 | temp2 = true; |
c9c7117a RD |
27958 | } |
27959 | { | |
27960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27961 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27962 | ||
27963 | wxPyEndAllowThreads(__tstate); | |
27964 | if (PyErr_Occurred()) SWIG_fail; | |
27965 | } | |
27966 | Py_INCREF(Py_None); resultobj = Py_None; | |
27967 | { | |
27968 | if (temp2) | |
27969 | delete arg2; | |
27970 | } | |
27971 | return resultobj; | |
27972 | fail: | |
27973 | { | |
27974 | if (temp2) | |
27975 | delete arg2; | |
27976 | } | |
27977 | return NULL; | |
27978 | } | |
27979 | ||
27980 | ||
562ecc31 | 27981 | static PyObject *_wrap_TreeEvent_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27982 | PyObject *resultobj = NULL; |
562ecc31 RD |
27983 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
27984 | wxString result; | |
27985 | PyObject * obj0 = 0 ; | |
27986 | char *kwnames[] = { | |
27987 | (char *) "self", NULL | |
27988 | }; | |
27989 | ||
27990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetToolTip",kwnames,&obj0)) goto fail; | |
27991 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27992 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27993 | { | |
27994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27995 | result = (arg1)->GetToolTip(); | |
27996 | ||
27997 | wxPyEndAllowThreads(__tstate); | |
27998 | if (PyErr_Occurred()) SWIG_fail; | |
27999 | } | |
28000 | { | |
28001 | #if wxUSE_UNICODE | |
28002 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28003 | #else | |
28004 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28005 | #endif | |
28006 | } | |
28007 | return resultobj; | |
28008 | fail: | |
28009 | return NULL; | |
28010 | } | |
28011 | ||
28012 | ||
c32bde28 | 28013 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28014 | PyObject *obj; |
28015 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28016 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
28017 | Py_INCREF(obj); | |
28018 | return Py_BuildValue((char *)""); | |
28019 | } | |
c32bde28 | 28020 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28021 | PyObject *resultobj = NULL; |
d14a1e28 | 28022 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 28023 | int arg2 = (int) -1 ; |
d14a1e28 RD |
28024 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28025 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28026 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28027 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28028 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
28029 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28030 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 28031 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
28032 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
28033 | wxPyTreeCtrl *result; | |
28034 | wxPoint temp3 ; | |
28035 | wxSize temp4 ; | |
ae8162c8 | 28036 | bool temp7 = false ; |
d14a1e28 | 28037 | PyObject * obj0 = 0 ; |
994141e6 | 28038 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28039 | PyObject * obj2 = 0 ; |
28040 | PyObject * obj3 = 0 ; | |
994141e6 | 28041 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28042 | PyObject * obj5 = 0 ; |
28043 | PyObject * obj6 = 0 ; | |
28044 | char *kwnames[] = { | |
28045 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28046 | }; | |
28047 | ||
994141e6 | 28048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
28049 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28050 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 28051 | if (obj1) { |
093d3ff1 | 28052 | { |
32fe5131 | 28053 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28054 | if (SWIG_arg_fail(2)) SWIG_fail; |
28055 | } | |
994141e6 | 28056 | } |
d14a1e28 RD |
28057 | if (obj2) { |
28058 | { | |
28059 | arg3 = &temp3; | |
28060 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28061 | } | |
28062 | } | |
28063 | if (obj3) { | |
28064 | { | |
994141e6 RD |
28065 | arg4 = &temp4; |
28066 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28067 | } | |
28068 | } | |
28069 | if (obj4) { | |
093d3ff1 | 28070 | { |
32fe5131 | 28071 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
28072 | if (SWIG_arg_fail(5)) SWIG_fail; |
28073 | } | |
d14a1e28 RD |
28074 | } |
28075 | if (obj5) { | |
093d3ff1 RD |
28076 | { |
28077 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
28078 | if (SWIG_arg_fail(6)) SWIG_fail; | |
28079 | if (arg6 == NULL) { | |
28080 | SWIG_null_ref("wxValidator"); | |
28081 | } | |
28082 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
28083 | } |
28084 | } | |
28085 | if (obj6) { | |
28086 | { | |
28087 | arg7 = wxString_in_helper(obj6); | |
28088 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 28089 | temp7 = true; |
d14a1e28 RD |
28090 | } |
28091 | } | |
28092 | { | |
e3b71cb8 | 28093 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28095 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28096 | ||
28097 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28098 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28099 | } |
b0f7404b | 28100 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
28101 | { |
28102 | if (temp7) | |
28103 | delete arg7; | |
28104 | } | |
28105 | return resultobj; | |
28106 | fail: | |
28107 | { | |
28108 | if (temp7) | |
28109 | delete arg7; | |
28110 | } | |
28111 | return NULL; | |
28112 | } | |
28113 | ||
28114 | ||
c32bde28 | 28115 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28116 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28117 | wxPyTreeCtrl *result; |
28118 | char *kwnames[] = { | |
28119 | NULL | |
28120 | }; | |
28121 | ||
28122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
28123 | { | |
e3b71cb8 | 28124 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28126 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
28127 | ||
28128 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28129 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28130 | } |
b0f7404b | 28131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
28132 | return resultobj; |
28133 | fail: | |
28134 | return NULL; | |
28135 | } | |
28136 | ||
28137 | ||
c32bde28 | 28138 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28139 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28140 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28141 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 28142 | int arg3 = (int) -1 ; |
d14a1e28 RD |
28143 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
28144 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28145 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28146 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28147 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
28148 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
28149 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 28150 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
28151 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
28152 | bool result; | |
28153 | wxPoint temp4 ; | |
28154 | wxSize temp5 ; | |
ae8162c8 | 28155 | bool temp8 = false ; |
d14a1e28 RD |
28156 | PyObject * obj0 = 0 ; |
28157 | PyObject * obj1 = 0 ; | |
994141e6 | 28158 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28159 | PyObject * obj3 = 0 ; |
28160 | PyObject * obj4 = 0 ; | |
994141e6 | 28161 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
28162 | PyObject * obj6 = 0 ; |
28163 | PyObject * obj7 = 0 ; | |
28164 | char *kwnames[] = { | |
28165 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28166 | }; | |
28167 | ||
994141e6 | 28168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
28169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28171 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28172 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 28173 | if (obj2) { |
093d3ff1 | 28174 | { |
32fe5131 | 28175 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
28176 | if (SWIG_arg_fail(3)) SWIG_fail; |
28177 | } | |
994141e6 | 28178 | } |
d14a1e28 RD |
28179 | if (obj3) { |
28180 | { | |
28181 | arg4 = &temp4; | |
28182 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28183 | } | |
28184 | } | |
28185 | if (obj4) { | |
28186 | { | |
28187 | arg5 = &temp5; | |
28188 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28189 | } | |
28190 | } | |
994141e6 | 28191 | if (obj5) { |
093d3ff1 | 28192 | { |
32fe5131 | 28193 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
28194 | if (SWIG_arg_fail(6)) SWIG_fail; |
28195 | } | |
994141e6 | 28196 | } |
d14a1e28 | 28197 | if (obj6) { |
093d3ff1 RD |
28198 | { |
28199 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
28200 | if (SWIG_arg_fail(7)) SWIG_fail; | |
28201 | if (arg7 == NULL) { | |
28202 | SWIG_null_ref("wxValidator"); | |
28203 | } | |
28204 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
28205 | } |
28206 | } | |
28207 | if (obj7) { | |
28208 | { | |
28209 | arg8 = wxString_in_helper(obj7); | |
28210 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 28211 | temp8 = true; |
d14a1e28 RD |
28212 | } |
28213 | } | |
28214 | { | |
28215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28216 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
28217 | ||
28218 | wxPyEndAllowThreads(__tstate); | |
28219 | if (PyErr_Occurred()) SWIG_fail; | |
28220 | } | |
4f89f6a3 RD |
28221 | { |
28222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28223 | } | |
d14a1e28 RD |
28224 | { |
28225 | if (temp8) | |
28226 | delete arg8; | |
28227 | } | |
28228 | return resultobj; | |
28229 | fail: | |
28230 | { | |
28231 | if (temp8) | |
28232 | delete arg8; | |
28233 | } | |
28234 | return NULL; | |
28235 | } | |
28236 | ||
28237 | ||
c32bde28 | 28238 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28239 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28240 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28241 | PyObject *arg2 = (PyObject *) 0 ; | |
28242 | PyObject *arg3 = (PyObject *) 0 ; | |
28243 | PyObject * obj0 = 0 ; | |
28244 | PyObject * obj1 = 0 ; | |
28245 | PyObject * obj2 = 0 ; | |
28246 | char *kwnames[] = { | |
28247 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28248 | }; | |
28249 | ||
28250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28251 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28252 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28253 | arg2 = obj1; |
28254 | arg3 = obj2; | |
28255 | { | |
28256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28257 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28258 | ||
28259 | wxPyEndAllowThreads(__tstate); | |
28260 | if (PyErr_Occurred()) SWIG_fail; | |
28261 | } | |
28262 | Py_INCREF(Py_None); resultobj = Py_None; | |
28263 | return resultobj; | |
28264 | fail: | |
28265 | return NULL; | |
28266 | } | |
28267 | ||
28268 | ||
c32bde28 | 28269 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28270 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28271 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28272 | size_t result; | |
28273 | PyObject * obj0 = 0 ; | |
28274 | char *kwnames[] = { | |
28275 | (char *) "self", NULL | |
28276 | }; | |
28277 | ||
28278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28279 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28280 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28281 | { |
28282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28283 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
28284 | ||
28285 | wxPyEndAllowThreads(__tstate); | |
28286 | if (PyErr_Occurred()) SWIG_fail; | |
28287 | } | |
093d3ff1 | 28288 | { |
32fe5131 | 28289 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 28290 | } |
d14a1e28 RD |
28291 | return resultobj; |
28292 | fail: | |
28293 | return NULL; | |
28294 | } | |
28295 | ||
28296 | ||
c32bde28 | 28297 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28298 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28299 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28300 | unsigned int result; | |
28301 | PyObject * obj0 = 0 ; | |
28302 | char *kwnames[] = { | |
28303 | (char *) "self", NULL | |
28304 | }; | |
28305 | ||
28306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28307 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28308 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28309 | { |
28310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28311 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
28312 | ||
28313 | wxPyEndAllowThreads(__tstate); | |
28314 | if (PyErr_Occurred()) SWIG_fail; | |
28315 | } | |
093d3ff1 | 28316 | { |
32fe5131 | 28317 | resultobj = SWIG_From_unsigned_SS_int(static_cast<unsigned int >(result)); |
093d3ff1 | 28318 | } |
d14a1e28 RD |
28319 | return resultobj; |
28320 | fail: | |
28321 | return NULL; | |
28322 | } | |
28323 | ||
28324 | ||
c32bde28 | 28325 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28326 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28327 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28328 | unsigned int arg2 ; | |
28329 | PyObject * obj0 = 0 ; | |
28330 | PyObject * obj1 = 0 ; | |
28331 | char *kwnames[] = { | |
28332 | (char *) "self",(char *) "indent", NULL | |
28333 | }; | |
28334 | ||
28335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28338 | { | |
32fe5131 | 28339 | arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1)); |
093d3ff1 RD |
28340 | if (SWIG_arg_fail(2)) SWIG_fail; |
28341 | } | |
d14a1e28 RD |
28342 | { |
28343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28344 | (arg1)->SetIndent(arg2); | |
28345 | ||
28346 | wxPyEndAllowThreads(__tstate); | |
28347 | if (PyErr_Occurred()) SWIG_fail; | |
28348 | } | |
28349 | Py_INCREF(Py_None); resultobj = Py_None; | |
28350 | return resultobj; | |
28351 | fail: | |
28352 | return NULL; | |
28353 | } | |
28354 | ||
28355 | ||
c32bde28 | 28356 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28357 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28358 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28359 | unsigned int result; | |
28360 | PyObject * obj0 = 0 ; | |
28361 | char *kwnames[] = { | |
28362 | (char *) "self", NULL | |
28363 | }; | |
28364 | ||
28365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28366 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28367 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28368 | { |
28369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28370 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
28371 | ||
28372 | wxPyEndAllowThreads(__tstate); | |
28373 | if (PyErr_Occurred()) SWIG_fail; | |
28374 | } | |
093d3ff1 | 28375 | { |
32fe5131 | 28376 | resultobj = SWIG_From_unsigned_SS_int(static_cast<unsigned int >(result)); |
093d3ff1 | 28377 | } |
d14a1e28 RD |
28378 | return resultobj; |
28379 | fail: | |
28380 | return NULL; | |
28381 | } | |
28382 | ||
28383 | ||
c32bde28 | 28384 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28385 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28386 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28387 | unsigned int arg2 ; | |
28388 | PyObject * obj0 = 0 ; | |
28389 | PyObject * obj1 = 0 ; | |
28390 | char *kwnames[] = { | |
28391 | (char *) "self",(char *) "spacing", NULL | |
28392 | }; | |
28393 | ||
28394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28397 | { | |
32fe5131 | 28398 | arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1)); |
093d3ff1 RD |
28399 | if (SWIG_arg_fail(2)) SWIG_fail; |
28400 | } | |
d14a1e28 RD |
28401 | { |
28402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28403 | (arg1)->SetSpacing(arg2); | |
28404 | ||
28405 | wxPyEndAllowThreads(__tstate); | |
28406 | if (PyErr_Occurred()) SWIG_fail; | |
28407 | } | |
28408 | Py_INCREF(Py_None); resultobj = Py_None; | |
28409 | return resultobj; | |
28410 | fail: | |
28411 | return NULL; | |
28412 | } | |
28413 | ||
28414 | ||
c32bde28 | 28415 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28416 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28417 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28418 | wxImageList *result; | |
28419 | PyObject * obj0 = 0 ; | |
28420 | char *kwnames[] = { | |
28421 | (char *) "self", NULL | |
28422 | }; | |
28423 | ||
28424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28427 | { |
28428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28429 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
28430 | ||
28431 | wxPyEndAllowThreads(__tstate); | |
28432 | if (PyErr_Occurred()) SWIG_fail; | |
28433 | } | |
28434 | { | |
412d302d | 28435 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28436 | } |
28437 | return resultobj; | |
28438 | fail: | |
28439 | return NULL; | |
28440 | } | |
28441 | ||
28442 | ||
c32bde28 | 28443 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28444 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28445 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28446 | wxImageList *result; | |
28447 | PyObject * obj0 = 0 ; | |
28448 | char *kwnames[] = { | |
28449 | (char *) "self", NULL | |
28450 | }; | |
28451 | ||
28452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28453 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28454 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28455 | { |
28456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28457 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
28458 | ||
28459 | wxPyEndAllowThreads(__tstate); | |
28460 | if (PyErr_Occurred()) SWIG_fail; | |
28461 | } | |
28462 | { | |
412d302d | 28463 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28464 | } |
28465 | return resultobj; | |
28466 | fail: | |
28467 | return NULL; | |
28468 | } | |
28469 | ||
28470 | ||
c32bde28 | 28471 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28472 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28473 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28474 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28475 | PyObject * obj0 = 0 ; | |
28476 | PyObject * obj1 = 0 ; | |
28477 | char *kwnames[] = { | |
28478 | (char *) "self",(char *) "imageList", NULL | |
28479 | }; | |
28480 | ||
28481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28484 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28485 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28486 | { |
28487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28488 | (arg1)->SetImageList(arg2); | |
28489 | ||
28490 | wxPyEndAllowThreads(__tstate); | |
28491 | if (PyErr_Occurred()) SWIG_fail; | |
28492 | } | |
28493 | Py_INCREF(Py_None); resultobj = Py_None; | |
28494 | return resultobj; | |
28495 | fail: | |
28496 | return NULL; | |
28497 | } | |
28498 | ||
28499 | ||
c32bde28 | 28500 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28501 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28502 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28503 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28504 | PyObject * obj0 = 0 ; | |
28505 | PyObject * obj1 = 0 ; | |
28506 | char *kwnames[] = { | |
28507 | (char *) "self",(char *) "imageList", NULL | |
28508 | }; | |
28509 | ||
28510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28513 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28514 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28515 | { |
28516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28517 | (arg1)->SetStateImageList(arg2); | |
28518 | ||
28519 | wxPyEndAllowThreads(__tstate); | |
28520 | if (PyErr_Occurred()) SWIG_fail; | |
28521 | } | |
28522 | Py_INCREF(Py_None); resultobj = Py_None; | |
28523 | return resultobj; | |
28524 | fail: | |
28525 | return NULL; | |
28526 | } | |
28527 | ||
28528 | ||
c32bde28 | 28529 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28530 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28531 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28532 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28533 | PyObject * obj0 = 0 ; | |
28534 | PyObject * obj1 = 0 ; | |
28535 | char *kwnames[] = { | |
28536 | (char *) "self",(char *) "imageList", NULL | |
28537 | }; | |
28538 | ||
28539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28540 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28541 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28542 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28543 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28544 | { |
28545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28546 | (arg1)->AssignImageList(arg2); | |
28547 | ||
28548 | wxPyEndAllowThreads(__tstate); | |
28549 | if (PyErr_Occurred()) SWIG_fail; | |
28550 | } | |
28551 | Py_INCREF(Py_None); resultobj = Py_None; | |
28552 | return resultobj; | |
28553 | fail: | |
28554 | return NULL; | |
28555 | } | |
28556 | ||
28557 | ||
c32bde28 | 28558 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28559 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28560 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28561 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28562 | PyObject * obj0 = 0 ; | |
28563 | PyObject * obj1 = 0 ; | |
28564 | char *kwnames[] = { | |
28565 | (char *) "self",(char *) "imageList", NULL | |
28566 | }; | |
28567 | ||
28568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28571 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28572 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28573 | { |
28574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28575 | (arg1)->AssignStateImageList(arg2); | |
28576 | ||
28577 | wxPyEndAllowThreads(__tstate); | |
28578 | if (PyErr_Occurred()) SWIG_fail; | |
28579 | } | |
28580 | Py_INCREF(Py_None); resultobj = Py_None; | |
28581 | return resultobj; | |
28582 | fail: | |
28583 | return NULL; | |
28584 | } | |
28585 | ||
28586 | ||
c32bde28 | 28587 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28588 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28589 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28590 | wxTreeItemId *arg2 = 0 ; | |
28591 | wxString result; | |
28592 | PyObject * obj0 = 0 ; | |
28593 | PyObject * obj1 = 0 ; | |
28594 | char *kwnames[] = { | |
28595 | (char *) "self",(char *) "item", NULL | |
28596 | }; | |
28597 | ||
28598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28601 | { | |
28602 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28603 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28604 | if (arg2 == NULL) { | |
28605 | SWIG_null_ref("wxTreeItemId"); | |
28606 | } | |
28607 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28608 | } |
28609 | { | |
28610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28611 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
28612 | ||
28613 | wxPyEndAllowThreads(__tstate); | |
28614 | if (PyErr_Occurred()) SWIG_fail; | |
28615 | } | |
28616 | { | |
28617 | #if wxUSE_UNICODE | |
28618 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28619 | #else | |
28620 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28621 | #endif | |
28622 | } | |
28623 | return resultobj; | |
28624 | fail: | |
28625 | return NULL; | |
28626 | } | |
28627 | ||
28628 | ||
c32bde28 | 28629 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28630 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28631 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28632 | wxTreeItemId *arg2 = 0 ; | |
093d3ff1 | 28633 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d14a1e28 RD |
28634 | int result; |
28635 | PyObject * obj0 = 0 ; | |
28636 | PyObject * obj1 = 0 ; | |
994141e6 | 28637 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28638 | char *kwnames[] = { |
28639 | (char *) "self",(char *) "item",(char *) "which", NULL | |
28640 | }; | |
28641 | ||
994141e6 | 28642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
28643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28645 | { | |
28646 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28647 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28648 | if (arg2 == NULL) { | |
28649 | SWIG_null_ref("wxTreeItemId"); | |
28650 | } | |
28651 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 28652 | } |
994141e6 | 28653 | if (obj2) { |
093d3ff1 | 28654 | { |
32fe5131 | 28655 | arg3 = static_cast<wxTreeItemIcon >(SWIG_As_int(obj2)); |
093d3ff1 RD |
28656 | if (SWIG_arg_fail(3)) SWIG_fail; |
28657 | } | |
994141e6 | 28658 | } |
d14a1e28 RD |
28659 | { |
28660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 28661 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
28662 | |
28663 | wxPyEndAllowThreads(__tstate); | |
28664 | if (PyErr_Occurred()) SWIG_fail; | |
28665 | } | |
093d3ff1 | 28666 | { |
32fe5131 | 28667 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 28668 | } |
d14a1e28 RD |
28669 | return resultobj; |
28670 | fail: | |
28671 | return NULL; | |
28672 | } | |
28673 | ||
28674 | ||
c32bde28 | 28675 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28676 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28677 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28678 | wxTreeItemId *arg2 = 0 ; | |
28679 | wxPyTreeItemData *result; | |
28680 | PyObject * obj0 = 0 ; | |
28681 | PyObject * obj1 = 0 ; | |
28682 | char *kwnames[] = { | |
28683 | (char *) "self",(char *) "item", NULL | |
28684 | }; | |
28685 | ||
28686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28687 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28689 | { | |
28690 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28691 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28692 | if (arg2 == NULL) { | |
28693 | SWIG_null_ref("wxTreeItemId"); | |
28694 | } | |
28695 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28696 | } |
28697 | { | |
28698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28699 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
28700 | ||
28701 | wxPyEndAllowThreads(__tstate); | |
28702 | if (PyErr_Occurred()) SWIG_fail; | |
28703 | } | |
15afbcd0 | 28704 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
28705 | return resultobj; |
28706 | fail: | |
28707 | return NULL; | |
28708 | } | |
28709 | ||
28710 | ||
c32bde28 | 28711 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28712 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28713 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28714 | wxTreeItemId *arg2 = 0 ; | |
28715 | PyObject *result; | |
28716 | PyObject * obj0 = 0 ; | |
28717 | PyObject * obj1 = 0 ; | |
28718 | char *kwnames[] = { | |
28719 | (char *) "self",(char *) "item", NULL | |
28720 | }; | |
28721 | ||
28722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28725 | { | |
28726 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28727 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28728 | if (arg2 == NULL) { | |
28729 | SWIG_null_ref("wxTreeItemId"); | |
28730 | } | |
28731 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28732 | } |
28733 | { | |
28734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28735 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
28736 | ||
28737 | wxPyEndAllowThreads(__tstate); | |
28738 | if (PyErr_Occurred()) SWIG_fail; | |
28739 | } | |
28740 | resultobj = result; | |
28741 | return resultobj; | |
28742 | fail: | |
28743 | return NULL; | |
28744 | } | |
28745 | ||
28746 | ||
c32bde28 | 28747 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28748 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28749 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28750 | wxTreeItemId *arg2 = 0 ; | |
28751 | wxColour result; | |
28752 | PyObject * obj0 = 0 ; | |
28753 | PyObject * obj1 = 0 ; | |
28754 | char *kwnames[] = { | |
28755 | (char *) "self",(char *) "item", NULL | |
28756 | }; | |
28757 | ||
28758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28759 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28760 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28761 | { | |
28762 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28763 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28764 | if (arg2 == NULL) { | |
28765 | SWIG_null_ref("wxTreeItemId"); | |
28766 | } | |
28767 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28768 | } |
28769 | { | |
28770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28771 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
28772 | ||
28773 | wxPyEndAllowThreads(__tstate); | |
28774 | if (PyErr_Occurred()) SWIG_fail; | |
28775 | } | |
28776 | { | |
28777 | wxColour * resultptr; | |
32fe5131 | 28778 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 28779 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
28780 | } |
28781 | return resultobj; | |
28782 | fail: | |
28783 | return NULL; | |
28784 | } | |
28785 | ||
28786 | ||
c32bde28 | 28787 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28788 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28789 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28790 | wxTreeItemId *arg2 = 0 ; | |
28791 | wxColour result; | |
28792 | PyObject * obj0 = 0 ; | |
28793 | PyObject * obj1 = 0 ; | |
28794 | char *kwnames[] = { | |
28795 | (char *) "self",(char *) "item", NULL | |
28796 | }; | |
28797 | ||
28798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28801 | { | |
28802 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28803 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28804 | if (arg2 == NULL) { | |
28805 | SWIG_null_ref("wxTreeItemId"); | |
28806 | } | |
28807 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28808 | } |
28809 | { | |
28810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28811 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
28812 | ||
28813 | wxPyEndAllowThreads(__tstate); | |
28814 | if (PyErr_Occurred()) SWIG_fail; | |
28815 | } | |
28816 | { | |
28817 | wxColour * resultptr; | |
32fe5131 | 28818 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 28819 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
28820 | } |
28821 | return resultobj; | |
28822 | fail: | |
28823 | return NULL; | |
28824 | } | |
28825 | ||
28826 | ||
c32bde28 | 28827 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28828 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28829 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28830 | wxTreeItemId *arg2 = 0 ; | |
28831 | wxFont result; | |
28832 | PyObject * obj0 = 0 ; | |
28833 | PyObject * obj1 = 0 ; | |
28834 | char *kwnames[] = { | |
28835 | (char *) "self",(char *) "item", NULL | |
28836 | }; | |
28837 | ||
28838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28841 | { | |
28842 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28843 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28844 | if (arg2 == NULL) { | |
28845 | SWIG_null_ref("wxTreeItemId"); | |
28846 | } | |
28847 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28848 | } |
28849 | { | |
28850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28851 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
28852 | ||
28853 | wxPyEndAllowThreads(__tstate); | |
28854 | if (PyErr_Occurred()) SWIG_fail; | |
28855 | } | |
28856 | { | |
28857 | wxFont * resultptr; | |
32fe5131 | 28858 | resultptr = new wxFont(static_cast<wxFont & >(result)); |
15afbcd0 | 28859 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
28860 | } |
28861 | return resultobj; | |
28862 | fail: | |
28863 | return NULL; | |
28864 | } | |
28865 | ||
28866 | ||
c32bde28 | 28867 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28868 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28869 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28870 | wxTreeItemId *arg2 = 0 ; | |
28871 | wxString *arg3 = 0 ; | |
ae8162c8 | 28872 | bool temp3 = false ; |
d14a1e28 RD |
28873 | PyObject * obj0 = 0 ; |
28874 | PyObject * obj1 = 0 ; | |
28875 | PyObject * obj2 = 0 ; | |
28876 | char *kwnames[] = { | |
28877 | (char *) "self",(char *) "item",(char *) "text", NULL | |
28878 | }; | |
28879 | ||
28880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28883 | { | |
28884 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28885 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28886 | if (arg2 == NULL) { | |
28887 | SWIG_null_ref("wxTreeItemId"); | |
28888 | } | |
28889 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28890 | } |
28891 | { | |
28892 | arg3 = wxString_in_helper(obj2); | |
28893 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 28894 | temp3 = true; |
d14a1e28 RD |
28895 | } |
28896 | { | |
28897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28898 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
28899 | ||
28900 | wxPyEndAllowThreads(__tstate); | |
28901 | if (PyErr_Occurred()) SWIG_fail; | |
28902 | } | |
28903 | Py_INCREF(Py_None); resultobj = Py_None; | |
28904 | { | |
28905 | if (temp3) | |
28906 | delete arg3; | |
28907 | } | |
28908 | return resultobj; | |
28909 | fail: | |
28910 | { | |
28911 | if (temp3) | |
28912 | delete arg3; | |
28913 | } | |
28914 | return NULL; | |
28915 | } | |
28916 | ||
28917 | ||
c32bde28 | 28918 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28919 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28920 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28921 | wxTreeItemId *arg2 = 0 ; | |
28922 | int arg3 ; | |
093d3ff1 | 28923 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d14a1e28 RD |
28924 | PyObject * obj0 = 0 ; |
28925 | PyObject * obj1 = 0 ; | |
994141e6 RD |
28926 | PyObject * obj2 = 0 ; |
28927 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
28928 | char *kwnames[] = { |
28929 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
28930 | }; | |
28931 | ||
994141e6 | 28932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
28933 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28935 | { | |
28936 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28937 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28938 | if (arg2 == NULL) { | |
28939 | SWIG_null_ref("wxTreeItemId"); | |
28940 | } | |
28941 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28942 | } | |
28943 | { | |
32fe5131 | 28944 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
28945 | if (SWIG_arg_fail(3)) SWIG_fail; |
28946 | } | |
994141e6 | 28947 | if (obj3) { |
093d3ff1 | 28948 | { |
32fe5131 | 28949 | arg4 = static_cast<wxTreeItemIcon >(SWIG_As_int(obj3)); |
093d3ff1 RD |
28950 | if (SWIG_arg_fail(4)) SWIG_fail; |
28951 | } | |
994141e6 | 28952 | } |
d14a1e28 RD |
28953 | { |
28954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 28955 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4); |
d14a1e28 RD |
28956 | |
28957 | wxPyEndAllowThreads(__tstate); | |
28958 | if (PyErr_Occurred()) SWIG_fail; | |
28959 | } | |
28960 | Py_INCREF(Py_None); resultobj = Py_None; | |
28961 | return resultobj; | |
28962 | fail: | |
28963 | return NULL; | |
28964 | } | |
28965 | ||
28966 | ||
c32bde28 | 28967 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28968 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28969 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
28970 | wxTreeItemId *arg2 = 0 ; | |
28971 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
28972 | PyObject * obj0 = 0 ; | |
28973 | PyObject * obj1 = 0 ; | |
28974 | PyObject * obj2 = 0 ; | |
28975 | char *kwnames[] = { | |
28976 | (char *) "self",(char *) "item",(char *) "data", NULL | |
28977 | }; | |
28978 | ||
28979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28980 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28981 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28982 | { | |
28983 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28984 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28985 | if (arg2 == NULL) { | |
28986 | SWIG_null_ref("wxTreeItemId"); | |
28987 | } | |
28988 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 28989 | } |
093d3ff1 RD |
28990 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
28991 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
28992 | { |
28993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28994 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28995 | ||
28996 | wxPyEndAllowThreads(__tstate); | |
28997 | if (PyErr_Occurred()) SWIG_fail; | |
28998 | } | |
28999 | Py_INCREF(Py_None); resultobj = Py_None; | |
29000 | return resultobj; | |
29001 | fail: | |
29002 | return NULL; | |
29003 | } | |
29004 | ||
29005 | ||
c32bde28 | 29006 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29007 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29008 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29009 | wxTreeItemId *arg2 = 0 ; | |
29010 | PyObject *arg3 = (PyObject *) 0 ; | |
29011 | PyObject * obj0 = 0 ; | |
29012 | PyObject * obj1 = 0 ; | |
29013 | PyObject * obj2 = 0 ; | |
29014 | char *kwnames[] = { | |
29015 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
29016 | }; | |
29017 | ||
29018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29021 | { | |
29022 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29023 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29024 | if (arg2 == NULL) { | |
29025 | SWIG_null_ref("wxTreeItemId"); | |
29026 | } | |
29027 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29028 | } |
29029 | arg3 = obj2; | |
29030 | { | |
29031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29032 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
29033 | ||
29034 | wxPyEndAllowThreads(__tstate); | |
29035 | if (PyErr_Occurred()) SWIG_fail; | |
29036 | } | |
29037 | Py_INCREF(Py_None); resultobj = Py_None; | |
29038 | return resultobj; | |
29039 | fail: | |
29040 | return NULL; | |
29041 | } | |
29042 | ||
29043 | ||
c32bde28 | 29044 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29045 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29046 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29047 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 29048 | bool arg3 = (bool) true ; |
d14a1e28 RD |
29049 | PyObject * obj0 = 0 ; |
29050 | PyObject * obj1 = 0 ; | |
29051 | PyObject * obj2 = 0 ; | |
29052 | char *kwnames[] = { | |
29053 | (char *) "self",(char *) "item",(char *) "has", NULL | |
29054 | }; | |
29055 | ||
29056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29057 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29058 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29059 | { | |
29060 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29061 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29062 | if (arg2 == NULL) { | |
29063 | SWIG_null_ref("wxTreeItemId"); | |
29064 | } | |
29065 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29066 | } |
29067 | if (obj2) { | |
093d3ff1 | 29068 | { |
32fe5131 | 29069 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
29070 | if (SWIG_arg_fail(3)) SWIG_fail; |
29071 | } | |
d14a1e28 RD |
29072 | } |
29073 | { | |
29074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29075 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
29076 | ||
29077 | wxPyEndAllowThreads(__tstate); | |
29078 | if (PyErr_Occurred()) SWIG_fail; | |
29079 | } | |
29080 | Py_INCREF(Py_None); resultobj = Py_None; | |
29081 | return resultobj; | |
29082 | fail: | |
29083 | return NULL; | |
29084 | } | |
29085 | ||
29086 | ||
c32bde28 | 29087 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29088 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29089 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29090 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 29091 | bool arg3 = (bool) true ; |
d14a1e28 RD |
29092 | PyObject * obj0 = 0 ; |
29093 | PyObject * obj1 = 0 ; | |
29094 | PyObject * obj2 = 0 ; | |
29095 | char *kwnames[] = { | |
29096 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
29097 | }; | |
29098 | ||
29099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29102 | { | |
29103 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29104 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29105 | if (arg2 == NULL) { | |
29106 | SWIG_null_ref("wxTreeItemId"); | |
29107 | } | |
29108 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29109 | } |
29110 | if (obj2) { | |
093d3ff1 | 29111 | { |
32fe5131 | 29112 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
29113 | if (SWIG_arg_fail(3)) SWIG_fail; |
29114 | } | |
d14a1e28 RD |
29115 | } |
29116 | { | |
29117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29118 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
29119 | ||
29120 | wxPyEndAllowThreads(__tstate); | |
29121 | if (PyErr_Occurred()) SWIG_fail; | |
29122 | } | |
29123 | Py_INCREF(Py_None); resultobj = Py_None; | |
29124 | return resultobj; | |
29125 | fail: | |
29126 | return NULL; | |
29127 | } | |
29128 | ||
29129 | ||
fef4c27a | 29130 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29131 | PyObject *resultobj = NULL; |
fef4c27a RD |
29132 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29133 | wxTreeItemId *arg2 = 0 ; | |
29134 | bool arg3 = (bool) true ; | |
29135 | PyObject * obj0 = 0 ; | |
29136 | PyObject * obj1 = 0 ; | |
29137 | PyObject * obj2 = 0 ; | |
29138 | char *kwnames[] = { | |
29139 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
29140 | }; | |
29141 | ||
29142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29145 | { | |
29146 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29147 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29148 | if (arg2 == NULL) { | |
29149 | SWIG_null_ref("wxTreeItemId"); | |
29150 | } | |
29151 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29152 | } | |
29153 | if (obj2) { | |
29154 | { | |
32fe5131 | 29155 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
fef4c27a RD |
29156 | if (SWIG_arg_fail(3)) SWIG_fail; |
29157 | } | |
29158 | } | |
29159 | { | |
29160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29161 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
29162 | ||
29163 | wxPyEndAllowThreads(__tstate); | |
29164 | if (PyErr_Occurred()) SWIG_fail; | |
29165 | } | |
29166 | Py_INCREF(Py_None); resultobj = Py_None; | |
29167 | return resultobj; | |
29168 | fail: | |
29169 | return NULL; | |
29170 | } | |
29171 | ||
29172 | ||
c32bde28 | 29173 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29174 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29175 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29176 | wxTreeItemId *arg2 = 0 ; | |
29177 | wxColour *arg3 = 0 ; | |
29178 | wxColour temp3 ; | |
29179 | PyObject * obj0 = 0 ; | |
29180 | PyObject * obj1 = 0 ; | |
29181 | PyObject * obj2 = 0 ; | |
29182 | char *kwnames[] = { | |
29183 | (char *) "self",(char *) "item",(char *) "col", NULL | |
29184 | }; | |
29185 | ||
29186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29189 | { | |
29190 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29191 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29192 | if (arg2 == NULL) { | |
29193 | SWIG_null_ref("wxTreeItemId"); | |
29194 | } | |
29195 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29196 | } |
29197 | { | |
29198 | arg3 = &temp3; | |
29199 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29200 | } | |
29201 | { | |
29202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29203 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
29204 | ||
29205 | wxPyEndAllowThreads(__tstate); | |
29206 | if (PyErr_Occurred()) SWIG_fail; | |
29207 | } | |
29208 | Py_INCREF(Py_None); resultobj = Py_None; | |
29209 | return resultobj; | |
29210 | fail: | |
29211 | return NULL; | |
29212 | } | |
29213 | ||
29214 | ||
c32bde28 | 29215 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29216 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29217 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29218 | wxTreeItemId *arg2 = 0 ; | |
29219 | wxColour *arg3 = 0 ; | |
29220 | wxColour temp3 ; | |
29221 | PyObject * obj0 = 0 ; | |
29222 | PyObject * obj1 = 0 ; | |
29223 | PyObject * obj2 = 0 ; | |
29224 | char *kwnames[] = { | |
29225 | (char *) "self",(char *) "item",(char *) "col", NULL | |
29226 | }; | |
29227 | ||
29228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29231 | { | |
29232 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29233 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29234 | if (arg2 == NULL) { | |
29235 | SWIG_null_ref("wxTreeItemId"); | |
29236 | } | |
29237 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29238 | } |
29239 | { | |
29240 | arg3 = &temp3; | |
29241 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29242 | } | |
29243 | { | |
29244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29245 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
29246 | ||
29247 | wxPyEndAllowThreads(__tstate); | |
29248 | if (PyErr_Occurred()) SWIG_fail; | |
29249 | } | |
29250 | Py_INCREF(Py_None); resultobj = Py_None; | |
29251 | return resultobj; | |
29252 | fail: | |
29253 | return NULL; | |
29254 | } | |
29255 | ||
29256 | ||
c32bde28 | 29257 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29258 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29259 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29260 | wxTreeItemId *arg2 = 0 ; | |
29261 | wxFont *arg3 = 0 ; | |
29262 | PyObject * obj0 = 0 ; | |
29263 | PyObject * obj1 = 0 ; | |
29264 | PyObject * obj2 = 0 ; | |
29265 | char *kwnames[] = { | |
29266 | (char *) "self",(char *) "item",(char *) "font", NULL | |
29267 | }; | |
29268 | ||
29269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29272 | { | |
29273 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29274 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29275 | if (arg2 == NULL) { | |
29276 | SWIG_null_ref("wxTreeItemId"); | |
29277 | } | |
29278 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 29279 | } |
093d3ff1 RD |
29280 | { |
29281 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
29282 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29283 | if (arg3 == NULL) { | |
29284 | SWIG_null_ref("wxFont"); | |
29285 | } | |
29286 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
29287 | } |
29288 | { | |
29289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29290 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
29291 | ||
29292 | wxPyEndAllowThreads(__tstate); | |
29293 | if (PyErr_Occurred()) SWIG_fail; | |
29294 | } | |
29295 | Py_INCREF(Py_None); resultobj = Py_None; | |
29296 | return resultobj; | |
29297 | fail: | |
29298 | return NULL; | |
29299 | } | |
29300 | ||
29301 | ||
c32bde28 | 29302 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29303 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29304 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29305 | wxTreeItemId *arg2 = 0 ; | |
29306 | bool result; | |
29307 | PyObject * obj0 = 0 ; | |
29308 | PyObject * obj1 = 0 ; | |
29309 | char *kwnames[] = { | |
29310 | (char *) "self",(char *) "item", NULL | |
29311 | }; | |
29312 | ||
29313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29314 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29315 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29316 | { | |
29317 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29318 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29319 | if (arg2 == NULL) { | |
29320 | SWIG_null_ref("wxTreeItemId"); | |
29321 | } | |
29322 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29323 | } |
29324 | { | |
29325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29326 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
29327 | ||
29328 | wxPyEndAllowThreads(__tstate); | |
29329 | if (PyErr_Occurred()) SWIG_fail; | |
29330 | } | |
4f89f6a3 RD |
29331 | { |
29332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29333 | } | |
d14a1e28 RD |
29334 | return resultobj; |
29335 | fail: | |
29336 | return NULL; | |
29337 | } | |
29338 | ||
29339 | ||
c32bde28 | 29340 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29341 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29342 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29343 | wxTreeItemId *arg2 = 0 ; | |
29344 | bool result; | |
29345 | PyObject * obj0 = 0 ; | |
29346 | PyObject * obj1 = 0 ; | |
29347 | char *kwnames[] = { | |
29348 | (char *) "self",(char *) "item", NULL | |
29349 | }; | |
29350 | ||
29351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29352 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29353 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29354 | { | |
29355 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29356 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29357 | if (arg2 == NULL) { | |
29358 | SWIG_null_ref("wxTreeItemId"); | |
29359 | } | |
29360 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29361 | } |
29362 | { | |
29363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29364 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
29365 | ||
29366 | wxPyEndAllowThreads(__tstate); | |
29367 | if (PyErr_Occurred()) SWIG_fail; | |
29368 | } | |
4f89f6a3 RD |
29369 | { |
29370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29371 | } | |
d14a1e28 RD |
29372 | return resultobj; |
29373 | fail: | |
29374 | return NULL; | |
29375 | } | |
29376 | ||
29377 | ||
c32bde28 | 29378 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29379 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29380 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29381 | wxTreeItemId *arg2 = 0 ; | |
29382 | bool result; | |
29383 | PyObject * obj0 = 0 ; | |
29384 | PyObject * obj1 = 0 ; | |
29385 | char *kwnames[] = { | |
29386 | (char *) "self",(char *) "item", NULL | |
29387 | }; | |
29388 | ||
29389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29392 | { | |
29393 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29394 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29395 | if (arg2 == NULL) { | |
29396 | SWIG_null_ref("wxTreeItemId"); | |
29397 | } | |
29398 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29399 | } |
29400 | { | |
29401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29402 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
29403 | ||
29404 | wxPyEndAllowThreads(__tstate); | |
29405 | if (PyErr_Occurred()) SWIG_fail; | |
29406 | } | |
4f89f6a3 RD |
29407 | { |
29408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29409 | } | |
d14a1e28 RD |
29410 | return resultobj; |
29411 | fail: | |
29412 | return NULL; | |
29413 | } | |
29414 | ||
29415 | ||
c32bde28 | 29416 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29417 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29418 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29419 | wxTreeItemId *arg2 = 0 ; | |
29420 | bool result; | |
29421 | PyObject * obj0 = 0 ; | |
29422 | PyObject * obj1 = 0 ; | |
29423 | char *kwnames[] = { | |
29424 | (char *) "self",(char *) "item", NULL | |
29425 | }; | |
29426 | ||
29427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29430 | { | |
29431 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29432 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29433 | if (arg2 == NULL) { | |
29434 | SWIG_null_ref("wxTreeItemId"); | |
29435 | } | |
29436 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29437 | } |
29438 | { | |
29439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29440 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
29441 | ||
29442 | wxPyEndAllowThreads(__tstate); | |
29443 | if (PyErr_Occurred()) SWIG_fail; | |
29444 | } | |
4f89f6a3 RD |
29445 | { |
29446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29447 | } | |
d14a1e28 RD |
29448 | return resultobj; |
29449 | fail: | |
29450 | return NULL; | |
29451 | } | |
29452 | ||
29453 | ||
c32bde28 | 29454 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29455 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29456 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29457 | wxTreeItemId *arg2 = 0 ; | |
29458 | bool result; | |
29459 | PyObject * obj0 = 0 ; | |
29460 | PyObject * obj1 = 0 ; | |
29461 | char *kwnames[] = { | |
29462 | (char *) "self",(char *) "item", NULL | |
29463 | }; | |
29464 | ||
29465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29468 | { | |
29469 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29470 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29471 | if (arg2 == NULL) { | |
29472 | SWIG_null_ref("wxTreeItemId"); | |
29473 | } | |
29474 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29475 | } |
29476 | { | |
29477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29478 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
29479 | ||
29480 | wxPyEndAllowThreads(__tstate); | |
29481 | if (PyErr_Occurred()) SWIG_fail; | |
29482 | } | |
4f89f6a3 RD |
29483 | { |
29484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29485 | } | |
d14a1e28 RD |
29486 | return resultobj; |
29487 | fail: | |
29488 | return NULL; | |
29489 | } | |
29490 | ||
29491 | ||
c32bde28 | 29492 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29493 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29494 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29495 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 29496 | bool arg3 = (bool) true ; |
d14a1e28 RD |
29497 | size_t result; |
29498 | PyObject * obj0 = 0 ; | |
29499 | PyObject * obj1 = 0 ; | |
29500 | PyObject * obj2 = 0 ; | |
29501 | char *kwnames[] = { | |
29502 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
29503 | }; | |
29504 | ||
29505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29508 | { | |
29509 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29510 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29511 | if (arg2 == NULL) { | |
29512 | SWIG_null_ref("wxTreeItemId"); | |
29513 | } | |
29514 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29515 | } |
29516 | if (obj2) { | |
093d3ff1 | 29517 | { |
32fe5131 | 29518 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
29519 | if (SWIG_arg_fail(3)) SWIG_fail; |
29520 | } | |
d14a1e28 RD |
29521 | } |
29522 | { | |
29523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29524 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
29525 | ||
29526 | wxPyEndAllowThreads(__tstate); | |
29527 | if (PyErr_Occurred()) SWIG_fail; | |
29528 | } | |
093d3ff1 | 29529 | { |
32fe5131 | 29530 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 29531 | } |
d14a1e28 RD |
29532 | return resultobj; |
29533 | fail: | |
29534 | return NULL; | |
29535 | } | |
29536 | ||
29537 | ||
c32bde28 | 29538 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29539 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29540 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29541 | wxTreeItemId result; | |
29542 | PyObject * obj0 = 0 ; | |
29543 | char *kwnames[] = { | |
29544 | (char *) "self", NULL | |
29545 | }; | |
29546 | ||
29547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29550 | { |
29551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29552 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
29553 | ||
29554 | wxPyEndAllowThreads(__tstate); | |
29555 | if (PyErr_Occurred()) SWIG_fail; | |
29556 | } | |
29557 | { | |
29558 | wxTreeItemId * resultptr; | |
32fe5131 | 29559 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 29560 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29561 | } |
29562 | return resultobj; | |
29563 | fail: | |
29564 | return NULL; | |
29565 | } | |
29566 | ||
29567 | ||
c32bde28 | 29568 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29569 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29570 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29571 | wxTreeItemId result; | |
29572 | PyObject * obj0 = 0 ; | |
29573 | char *kwnames[] = { | |
29574 | (char *) "self", NULL | |
29575 | }; | |
29576 | ||
29577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29580 | { |
29581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29582 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
29583 | ||
29584 | wxPyEndAllowThreads(__tstate); | |
29585 | if (PyErr_Occurred()) SWIG_fail; | |
29586 | } | |
29587 | { | |
29588 | wxTreeItemId * resultptr; | |
32fe5131 | 29589 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 29590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29591 | } |
29592 | return resultobj; | |
29593 | fail: | |
29594 | return NULL; | |
29595 | } | |
29596 | ||
29597 | ||
c32bde28 | 29598 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29599 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29600 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29601 | PyObject *result; | |
29602 | PyObject * obj0 = 0 ; | |
29603 | char *kwnames[] = { | |
29604 | (char *) "self", NULL | |
29605 | }; | |
29606 | ||
29607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29610 | { |
29611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29612 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
29613 | ||
29614 | wxPyEndAllowThreads(__tstate); | |
29615 | if (PyErr_Occurred()) SWIG_fail; | |
29616 | } | |
29617 | resultobj = result; | |
29618 | return resultobj; | |
29619 | fail: | |
29620 | return NULL; | |
29621 | } | |
29622 | ||
29623 | ||
c32bde28 | 29624 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29625 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29626 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29627 | wxTreeItemId *arg2 = 0 ; | |
29628 | wxTreeItemId result; | |
29629 | PyObject * obj0 = 0 ; | |
29630 | PyObject * obj1 = 0 ; | |
29631 | char *kwnames[] = { | |
29632 | (char *) "self",(char *) "item", NULL | |
29633 | }; | |
29634 | ||
29635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29638 | { | |
29639 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29640 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29641 | if (arg2 == NULL) { | |
29642 | SWIG_null_ref("wxTreeItemId"); | |
29643 | } | |
29644 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29645 | } |
29646 | { | |
29647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29648 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
29649 | ||
29650 | wxPyEndAllowThreads(__tstate); | |
29651 | if (PyErr_Occurred()) SWIG_fail; | |
29652 | } | |
29653 | { | |
29654 | wxTreeItemId * resultptr; | |
32fe5131 | 29655 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 29656 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29657 | } |
29658 | return resultobj; | |
29659 | fail: | |
29660 | return NULL; | |
29661 | } | |
29662 | ||
29663 | ||
c32bde28 | 29664 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29665 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29666 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29667 | wxTreeItemId *arg2 = 0 ; | |
29668 | PyObject *result; | |
29669 | PyObject * obj0 = 0 ; | |
29670 | PyObject * obj1 = 0 ; | |
29671 | char *kwnames[] = { | |
29672 | (char *) "self",(char *) "item", NULL | |
29673 | }; | |
29674 | ||
29675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29678 | { | |
29679 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29680 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29681 | if (arg2 == NULL) { | |
29682 | SWIG_null_ref("wxTreeItemId"); | |
29683 | } | |
29684 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29685 | } |
29686 | { | |
29687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29688 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
29689 | ||
29690 | wxPyEndAllowThreads(__tstate); | |
29691 | if (PyErr_Occurred()) SWIG_fail; | |
29692 | } | |
29693 | resultobj = result; | |
29694 | return resultobj; | |
29695 | fail: | |
29696 | return NULL; | |
29697 | } | |
29698 | ||
29699 | ||
c32bde28 | 29700 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29701 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29702 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29703 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 29704 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
29705 | PyObject *result; |
29706 | PyObject * obj0 = 0 ; | |
29707 | PyObject * obj1 = 0 ; | |
29708 | PyObject * obj2 = 0 ; | |
29709 | char *kwnames[] = { | |
29710 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
29711 | }; | |
29712 | ||
29713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29714 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29715 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29716 | { | |
29717 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29718 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29719 | if (arg2 == NULL) { | |
29720 | SWIG_null_ref("wxTreeItemId"); | |
29721 | } | |
29722 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29723 | } | |
29724 | { | |
32fe5131 | 29725 | if ((SWIG_ConvertPtr(obj2,reinterpret_cast<void ** >(&arg3),0,SWIG_POINTER_EXCEPTION|0))== -1) { |
093d3ff1 RD |
29726 | SWIG_arg_fail(3);SWIG_fail; |
29727 | } | |
d14a1e28 | 29728 | } |
d14a1e28 RD |
29729 | { |
29730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 29731 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
29732 | |
29733 | wxPyEndAllowThreads(__tstate); | |
29734 | if (PyErr_Occurred()) SWIG_fail; | |
29735 | } | |
29736 | resultobj = result; | |
29737 | return resultobj; | |
29738 | fail: | |
29739 | return NULL; | |
29740 | } | |
29741 | ||
29742 | ||
c32bde28 | 29743 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29744 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29745 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29746 | wxTreeItemId *arg2 = 0 ; | |
29747 | wxTreeItemId result; | |
29748 | PyObject * obj0 = 0 ; | |
29749 | PyObject * obj1 = 0 ; | |
29750 | char *kwnames[] = { | |
29751 | (char *) "self",(char *) "item", NULL | |
29752 | }; | |
29753 | ||
29754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29757 | { | |
29758 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29759 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29760 | if (arg2 == NULL) { | |
29761 | SWIG_null_ref("wxTreeItemId"); | |
29762 | } | |
29763 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29764 | } |
29765 | { | |
29766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29767 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
29768 | ||
29769 | wxPyEndAllowThreads(__tstate); | |
29770 | if (PyErr_Occurred()) SWIG_fail; | |
29771 | } | |
29772 | { | |
29773 | wxTreeItemId * resultptr; | |
32fe5131 | 29774 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 29775 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29776 | } |
29777 | return resultobj; | |
29778 | fail: | |
29779 | return NULL; | |
29780 | } | |
29781 | ||
29782 | ||
c32bde28 | 29783 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29784 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29785 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29786 | wxTreeItemId *arg2 = 0 ; | |
29787 | wxTreeItemId result; | |
29788 | PyObject * obj0 = 0 ; | |
29789 | PyObject * obj1 = 0 ; | |
29790 | char *kwnames[] = { | |
29791 | (char *) "self",(char *) "item", NULL | |
29792 | }; | |
29793 | ||
29794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29797 | { | |
29798 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29799 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29800 | if (arg2 == NULL) { | |
29801 | SWIG_null_ref("wxTreeItemId"); | |
29802 | } | |
29803 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29804 | } |
29805 | { | |
29806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29807 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
29808 | ||
29809 | wxPyEndAllowThreads(__tstate); | |
29810 | if (PyErr_Occurred()) SWIG_fail; | |
29811 | } | |
29812 | { | |
29813 | wxTreeItemId * resultptr; | |
32fe5131 | 29814 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 29815 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29816 | } |
29817 | return resultobj; | |
29818 | fail: | |
29819 | return NULL; | |
29820 | } | |
29821 | ||
29822 | ||
c32bde28 | 29823 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29824 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29825 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29826 | wxTreeItemId *arg2 = 0 ; | |
29827 | wxTreeItemId result; | |
29828 | PyObject * obj0 = 0 ; | |
29829 | PyObject * obj1 = 0 ; | |
29830 | char *kwnames[] = { | |
29831 | (char *) "self",(char *) "item", NULL | |
29832 | }; | |
29833 | ||
29834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29835 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29836 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29837 | { | |
29838 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29839 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29840 | if (arg2 == NULL) { | |
29841 | SWIG_null_ref("wxTreeItemId"); | |
29842 | } | |
29843 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29844 | } |
29845 | { | |
29846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29847 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
29848 | ||
29849 | wxPyEndAllowThreads(__tstate); | |
29850 | if (PyErr_Occurred()) SWIG_fail; | |
29851 | } | |
29852 | { | |
29853 | wxTreeItemId * resultptr; | |
32fe5131 | 29854 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 29855 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29856 | } |
29857 | return resultobj; | |
29858 | fail: | |
29859 | return NULL; | |
29860 | } | |
29861 | ||
29862 | ||
c32bde28 | 29863 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29864 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29865 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29866 | wxTreeItemId result; | |
29867 | PyObject * obj0 = 0 ; | |
29868 | char *kwnames[] = { | |
29869 | (char *) "self", NULL | |
29870 | }; | |
29871 | ||
29872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29873 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29874 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29875 | { |
29876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29877 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
29878 | ||
29879 | wxPyEndAllowThreads(__tstate); | |
29880 | if (PyErr_Occurred()) SWIG_fail; | |
29881 | } | |
29882 | { | |
29883 | wxTreeItemId * resultptr; | |
32fe5131 | 29884 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 29885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29886 | } |
29887 | return resultobj; | |
29888 | fail: | |
29889 | return NULL; | |
29890 | } | |
29891 | ||
29892 | ||
c32bde28 | 29893 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29894 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29895 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29896 | wxTreeItemId *arg2 = 0 ; | |
29897 | wxTreeItemId result; | |
29898 | PyObject * obj0 = 0 ; | |
29899 | PyObject * obj1 = 0 ; | |
29900 | char *kwnames[] = { | |
29901 | (char *) "self",(char *) "item", NULL | |
29902 | }; | |
29903 | ||
29904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29907 | { | |
29908 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29909 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29910 | if (arg2 == NULL) { | |
29911 | SWIG_null_ref("wxTreeItemId"); | |
29912 | } | |
29913 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29914 | } |
29915 | { | |
29916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29917 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
29918 | ||
29919 | wxPyEndAllowThreads(__tstate); | |
29920 | if (PyErr_Occurred()) SWIG_fail; | |
29921 | } | |
29922 | { | |
29923 | wxTreeItemId * resultptr; | |
32fe5131 | 29924 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 29925 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29926 | } |
29927 | return resultobj; | |
29928 | fail: | |
29929 | return NULL; | |
29930 | } | |
29931 | ||
29932 | ||
c32bde28 | 29933 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29934 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29935 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29936 | wxTreeItemId *arg2 = 0 ; | |
29937 | wxTreeItemId result; | |
29938 | PyObject * obj0 = 0 ; | |
29939 | PyObject * obj1 = 0 ; | |
29940 | char *kwnames[] = { | |
29941 | (char *) "self",(char *) "item", NULL | |
29942 | }; | |
29943 | ||
29944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29947 | { | |
29948 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29950 | if (arg2 == NULL) { | |
29951 | SWIG_null_ref("wxTreeItemId"); | |
29952 | } | |
29953 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29954 | } |
29955 | { | |
29956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29957 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
29958 | ||
29959 | wxPyEndAllowThreads(__tstate); | |
29960 | if (PyErr_Occurred()) SWIG_fail; | |
29961 | } | |
29962 | { | |
29963 | wxTreeItemId * resultptr; | |
32fe5131 | 29964 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 29965 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29966 | } |
29967 | return resultobj; | |
29968 | fail: | |
29969 | return NULL; | |
29970 | } | |
29971 | ||
29972 | ||
c32bde28 | 29973 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29974 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29975 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29976 | wxString *arg2 = 0 ; | |
29977 | int arg3 = (int) -1 ; | |
29978 | int arg4 = (int) -1 ; | |
29979 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
29980 | wxTreeItemId result; | |
ae8162c8 | 29981 | bool temp2 = false ; |
d14a1e28 RD |
29982 | PyObject * obj0 = 0 ; |
29983 | PyObject * obj1 = 0 ; | |
994141e6 RD |
29984 | PyObject * obj2 = 0 ; |
29985 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
29986 | PyObject * obj4 = 0 ; |
29987 | char *kwnames[] = { | |
29988 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29989 | }; | |
29990 | ||
994141e6 | 29991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
29992 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29993 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29994 | { |
29995 | arg2 = wxString_in_helper(obj1); | |
29996 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29997 | temp2 = true; |
d14a1e28 | 29998 | } |
994141e6 | 29999 | if (obj2) { |
093d3ff1 | 30000 | { |
32fe5131 | 30001 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30002 | if (SWIG_arg_fail(3)) SWIG_fail; |
30003 | } | |
994141e6 RD |
30004 | } |
30005 | if (obj3) { | |
093d3ff1 | 30006 | { |
32fe5131 | 30007 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30008 | if (SWIG_arg_fail(4)) SWIG_fail; |
30009 | } | |
994141e6 | 30010 | } |
d14a1e28 | 30011 | if (obj4) { |
093d3ff1 RD |
30012 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30013 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
30014 | } |
30015 | { | |
30016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30017 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
30018 | ||
30019 | wxPyEndAllowThreads(__tstate); | |
30020 | if (PyErr_Occurred()) SWIG_fail; | |
30021 | } | |
30022 | { | |
30023 | wxTreeItemId * resultptr; | |
32fe5131 | 30024 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 30025 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30026 | } |
30027 | { | |
30028 | if (temp2) | |
30029 | delete arg2; | |
30030 | } | |
30031 | return resultobj; | |
30032 | fail: | |
30033 | { | |
30034 | if (temp2) | |
30035 | delete arg2; | |
30036 | } | |
30037 | return NULL; | |
30038 | } | |
30039 | ||
30040 | ||
c32bde28 | 30041 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30042 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30043 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30044 | wxTreeItemId *arg2 = 0 ; | |
30045 | wxString *arg3 = 0 ; | |
30046 | int arg4 = (int) -1 ; | |
30047 | int arg5 = (int) -1 ; | |
30048 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
30049 | wxTreeItemId result; | |
ae8162c8 | 30050 | bool temp3 = false ; |
d14a1e28 RD |
30051 | PyObject * obj0 = 0 ; |
30052 | PyObject * obj1 = 0 ; | |
30053 | PyObject * obj2 = 0 ; | |
994141e6 RD |
30054 | PyObject * obj3 = 0 ; |
30055 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
30056 | PyObject * obj5 = 0 ; |
30057 | char *kwnames[] = { | |
30058 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30059 | }; | |
30060 | ||
994141e6 | 30061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
30062 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30063 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30064 | { | |
30065 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30066 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30067 | if (arg2 == NULL) { | |
30068 | SWIG_null_ref("wxTreeItemId"); | |
30069 | } | |
30070 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30071 | } |
30072 | { | |
30073 | arg3 = wxString_in_helper(obj2); | |
30074 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30075 | temp3 = true; |
d14a1e28 | 30076 | } |
994141e6 | 30077 | if (obj3) { |
093d3ff1 | 30078 | { |
32fe5131 | 30079 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30080 | if (SWIG_arg_fail(4)) SWIG_fail; |
30081 | } | |
994141e6 RD |
30082 | } |
30083 | if (obj4) { | |
093d3ff1 | 30084 | { |
32fe5131 | 30085 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
30086 | if (SWIG_arg_fail(5)) SWIG_fail; |
30087 | } | |
994141e6 | 30088 | } |
d14a1e28 | 30089 | if (obj5) { |
093d3ff1 RD |
30090 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30091 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
30092 | } |
30093 | { | |
30094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30095 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
30096 | ||
30097 | wxPyEndAllowThreads(__tstate); | |
30098 | if (PyErr_Occurred()) SWIG_fail; | |
30099 | } | |
30100 | { | |
30101 | wxTreeItemId * resultptr; | |
32fe5131 | 30102 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 30103 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30104 | } |
30105 | { | |
30106 | if (temp3) | |
30107 | delete arg3; | |
30108 | } | |
30109 | return resultobj; | |
30110 | fail: | |
30111 | { | |
30112 | if (temp3) | |
30113 | delete arg3; | |
30114 | } | |
30115 | return NULL; | |
30116 | } | |
30117 | ||
30118 | ||
c32bde28 | 30119 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30120 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30121 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30122 | wxTreeItemId *arg2 = 0 ; | |
30123 | wxTreeItemId *arg3 = 0 ; | |
30124 | wxString *arg4 = 0 ; | |
30125 | int arg5 = (int) -1 ; | |
30126 | int arg6 = (int) -1 ; | |
30127 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
30128 | wxTreeItemId result; | |
ae8162c8 | 30129 | bool temp4 = false ; |
d14a1e28 RD |
30130 | PyObject * obj0 = 0 ; |
30131 | PyObject * obj1 = 0 ; | |
30132 | PyObject * obj2 = 0 ; | |
30133 | PyObject * obj3 = 0 ; | |
994141e6 RD |
30134 | PyObject * obj4 = 0 ; |
30135 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
30136 | PyObject * obj6 = 0 ; |
30137 | char *kwnames[] = { | |
30138 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30139 | }; | |
30140 | ||
994141e6 | 30141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
30142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30144 | { | |
30145 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30146 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30147 | if (arg2 == NULL) { | |
30148 | SWIG_null_ref("wxTreeItemId"); | |
30149 | } | |
30150 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30151 | } | |
30152 | { | |
30153 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30154 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30155 | if (arg3 == NULL) { | |
30156 | SWIG_null_ref("wxTreeItemId"); | |
30157 | } | |
30158 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
30159 | } |
30160 | { | |
30161 | arg4 = wxString_in_helper(obj3); | |
30162 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30163 | temp4 = true; |
d14a1e28 | 30164 | } |
994141e6 | 30165 | if (obj4) { |
093d3ff1 | 30166 | { |
32fe5131 | 30167 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
30168 | if (SWIG_arg_fail(5)) SWIG_fail; |
30169 | } | |
994141e6 RD |
30170 | } |
30171 | if (obj5) { | |
093d3ff1 | 30172 | { |
32fe5131 | 30173 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
30174 | if (SWIG_arg_fail(6)) SWIG_fail; |
30175 | } | |
994141e6 | 30176 | } |
d14a1e28 | 30177 | if (obj6) { |
093d3ff1 RD |
30178 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30179 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
30180 | } |
30181 | { | |
30182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30183 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
30184 | ||
30185 | wxPyEndAllowThreads(__tstate); | |
30186 | if (PyErr_Occurred()) SWIG_fail; | |
30187 | } | |
30188 | { | |
30189 | wxTreeItemId * resultptr; | |
32fe5131 | 30190 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 30191 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30192 | } |
30193 | { | |
30194 | if (temp4) | |
30195 | delete arg4; | |
30196 | } | |
30197 | return resultobj; | |
30198 | fail: | |
30199 | { | |
30200 | if (temp4) | |
30201 | delete arg4; | |
30202 | } | |
30203 | return NULL; | |
30204 | } | |
30205 | ||
30206 | ||
c32bde28 | 30207 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30208 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30209 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30210 | wxTreeItemId *arg2 = 0 ; | |
30211 | size_t arg3 ; | |
30212 | wxString *arg4 = 0 ; | |
30213 | int arg5 = (int) -1 ; | |
30214 | int arg6 = (int) -1 ; | |
30215 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
30216 | wxTreeItemId result; | |
ae8162c8 | 30217 | bool temp4 = false ; |
d14a1e28 RD |
30218 | PyObject * obj0 = 0 ; |
30219 | PyObject * obj1 = 0 ; | |
30220 | PyObject * obj2 = 0 ; | |
30221 | PyObject * obj3 = 0 ; | |
994141e6 RD |
30222 | PyObject * obj4 = 0 ; |
30223 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
30224 | PyObject * obj6 = 0 ; |
30225 | char *kwnames[] = { | |
30226 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30227 | }; | |
30228 | ||
994141e6 | 30229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
30230 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30231 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30232 | { | |
30233 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30234 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30235 | if (arg2 == NULL) { | |
30236 | SWIG_null_ref("wxTreeItemId"); | |
30237 | } | |
30238 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30239 | } | |
30240 | { | |
32fe5131 | 30241 | arg3 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj2)); |
093d3ff1 RD |
30242 | if (SWIG_arg_fail(3)) SWIG_fail; |
30243 | } | |
d14a1e28 RD |
30244 | { |
30245 | arg4 = wxString_in_helper(obj3); | |
30246 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30247 | temp4 = true; |
d14a1e28 | 30248 | } |
994141e6 | 30249 | if (obj4) { |
093d3ff1 | 30250 | { |
32fe5131 | 30251 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
30252 | if (SWIG_arg_fail(5)) SWIG_fail; |
30253 | } | |
994141e6 RD |
30254 | } |
30255 | if (obj5) { | |
093d3ff1 | 30256 | { |
32fe5131 | 30257 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
30258 | if (SWIG_arg_fail(6)) SWIG_fail; |
30259 | } | |
994141e6 | 30260 | } |
d14a1e28 | 30261 | if (obj6) { |
093d3ff1 RD |
30262 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30263 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
30264 | } |
30265 | { | |
30266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30267 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
30268 | ||
30269 | wxPyEndAllowThreads(__tstate); | |
30270 | if (PyErr_Occurred()) SWIG_fail; | |
30271 | } | |
30272 | { | |
30273 | wxTreeItemId * resultptr; | |
32fe5131 | 30274 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 30275 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30276 | } |
30277 | { | |
30278 | if (temp4) | |
30279 | delete arg4; | |
30280 | } | |
30281 | return resultobj; | |
30282 | fail: | |
30283 | { | |
30284 | if (temp4) | |
30285 | delete arg4; | |
30286 | } | |
30287 | return NULL; | |
30288 | } | |
30289 | ||
30290 | ||
c32bde28 | 30291 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30292 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30293 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30294 | wxTreeItemId *arg2 = 0 ; | |
30295 | wxString *arg3 = 0 ; | |
30296 | int arg4 = (int) -1 ; | |
30297 | int arg5 = (int) -1 ; | |
30298 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
30299 | wxTreeItemId result; | |
ae8162c8 | 30300 | bool temp3 = false ; |
d14a1e28 RD |
30301 | PyObject * obj0 = 0 ; |
30302 | PyObject * obj1 = 0 ; | |
30303 | PyObject * obj2 = 0 ; | |
994141e6 RD |
30304 | PyObject * obj3 = 0 ; |
30305 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
30306 | PyObject * obj5 = 0 ; |
30307 | char *kwnames[] = { | |
30308 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30309 | }; | |
30310 | ||
994141e6 | 30311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
30312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30314 | { | |
30315 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30316 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30317 | if (arg2 == NULL) { | |
30318 | SWIG_null_ref("wxTreeItemId"); | |
30319 | } | |
30320 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30321 | } |
30322 | { | |
30323 | arg3 = wxString_in_helper(obj2); | |
30324 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30325 | temp3 = true; |
d14a1e28 | 30326 | } |
994141e6 | 30327 | if (obj3) { |
093d3ff1 | 30328 | { |
32fe5131 | 30329 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30330 | if (SWIG_arg_fail(4)) SWIG_fail; |
30331 | } | |
994141e6 RD |
30332 | } |
30333 | if (obj4) { | |
093d3ff1 | 30334 | { |
32fe5131 | 30335 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
30336 | if (SWIG_arg_fail(5)) SWIG_fail; |
30337 | } | |
994141e6 | 30338 | } |
d14a1e28 | 30339 | if (obj5) { |
093d3ff1 RD |
30340 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30341 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
30342 | } |
30343 | { | |
30344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30345 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
30346 | ||
30347 | wxPyEndAllowThreads(__tstate); | |
30348 | if (PyErr_Occurred()) SWIG_fail; | |
30349 | } | |
30350 | { | |
30351 | wxTreeItemId * resultptr; | |
32fe5131 | 30352 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 30353 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30354 | } |
30355 | { | |
30356 | if (temp3) | |
30357 | delete arg3; | |
30358 | } | |
30359 | return resultobj; | |
30360 | fail: | |
30361 | { | |
30362 | if (temp3) | |
30363 | delete arg3; | |
30364 | } | |
30365 | return NULL; | |
30366 | } | |
30367 | ||
30368 | ||
c32bde28 | 30369 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30370 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30371 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30372 | wxTreeItemId *arg2 = 0 ; | |
30373 | PyObject * obj0 = 0 ; | |
30374 | PyObject * obj1 = 0 ; | |
30375 | char *kwnames[] = { | |
30376 | (char *) "self",(char *) "item", NULL | |
30377 | }; | |
30378 | ||
30379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30380 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30381 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30382 | { | |
30383 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30384 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30385 | if (arg2 == NULL) { | |
30386 | SWIG_null_ref("wxTreeItemId"); | |
30387 | } | |
30388 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30389 | } |
30390 | { | |
30391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30392 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
30393 | ||
30394 | wxPyEndAllowThreads(__tstate); | |
30395 | if (PyErr_Occurred()) SWIG_fail; | |
30396 | } | |
30397 | Py_INCREF(Py_None); resultobj = Py_None; | |
30398 | return resultobj; | |
30399 | fail: | |
30400 | return NULL; | |
30401 | } | |
30402 | ||
30403 | ||
c32bde28 | 30404 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30405 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30406 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30407 | wxTreeItemId *arg2 = 0 ; | |
30408 | PyObject * obj0 = 0 ; | |
30409 | PyObject * obj1 = 0 ; | |
30410 | char *kwnames[] = { | |
30411 | (char *) "self",(char *) "item", NULL | |
30412 | }; | |
30413 | ||
30414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30417 | { | |
30418 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30419 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30420 | if (arg2 == NULL) { | |
30421 | SWIG_null_ref("wxTreeItemId"); | |
30422 | } | |
30423 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30424 | } |
30425 | { | |
30426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30427 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
30428 | ||
30429 | wxPyEndAllowThreads(__tstate); | |
30430 | if (PyErr_Occurred()) SWIG_fail; | |
30431 | } | |
30432 | Py_INCREF(Py_None); resultobj = Py_None; | |
30433 | return resultobj; | |
30434 | fail: | |
30435 | return NULL; | |
30436 | } | |
30437 | ||
30438 | ||
c32bde28 | 30439 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30440 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30441 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30442 | PyObject * obj0 = 0 ; | |
30443 | char *kwnames[] = { | |
30444 | (char *) "self", NULL | |
30445 | }; | |
30446 | ||
30447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30448 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30449 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30450 | { |
30451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30452 | (arg1)->DeleteAllItems(); | |
30453 | ||
30454 | wxPyEndAllowThreads(__tstate); | |
30455 | if (PyErr_Occurred()) SWIG_fail; | |
30456 | } | |
30457 | Py_INCREF(Py_None); resultobj = Py_None; | |
30458 | return resultobj; | |
30459 | fail: | |
30460 | return NULL; | |
30461 | } | |
30462 | ||
30463 | ||
c32bde28 | 30464 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30465 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30466 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30467 | wxTreeItemId *arg2 = 0 ; | |
30468 | PyObject * obj0 = 0 ; | |
30469 | PyObject * obj1 = 0 ; | |
30470 | char *kwnames[] = { | |
30471 | (char *) "self",(char *) "item", NULL | |
30472 | }; | |
30473 | ||
30474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30477 | { | |
30478 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30479 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30480 | if (arg2 == NULL) { | |
30481 | SWIG_null_ref("wxTreeItemId"); | |
30482 | } | |
30483 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30484 | } |
30485 | { | |
30486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30487 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
30488 | ||
30489 | wxPyEndAllowThreads(__tstate); | |
30490 | if (PyErr_Occurred()) SWIG_fail; | |
30491 | } | |
30492 | Py_INCREF(Py_None); resultobj = Py_None; | |
30493 | return resultobj; | |
30494 | fail: | |
30495 | return NULL; | |
30496 | } | |
30497 | ||
30498 | ||
c32bde28 | 30499 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30500 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30501 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30502 | wxTreeItemId *arg2 = 0 ; | |
30503 | PyObject * obj0 = 0 ; | |
30504 | PyObject * obj1 = 0 ; | |
30505 | char *kwnames[] = { | |
30506 | (char *) "self",(char *) "item", NULL | |
30507 | }; | |
30508 | ||
30509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30512 | { | |
30513 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30514 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30515 | if (arg2 == NULL) { | |
30516 | SWIG_null_ref("wxTreeItemId"); | |
30517 | } | |
30518 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30519 | } |
30520 | { | |
30521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30522 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
30523 | ||
30524 | wxPyEndAllowThreads(__tstate); | |
30525 | if (PyErr_Occurred()) SWIG_fail; | |
30526 | } | |
30527 | Py_INCREF(Py_None); resultobj = Py_None; | |
30528 | return resultobj; | |
30529 | fail: | |
30530 | return NULL; | |
30531 | } | |
30532 | ||
30533 | ||
c32bde28 | 30534 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30535 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30536 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30537 | wxTreeItemId *arg2 = 0 ; | |
30538 | PyObject * obj0 = 0 ; | |
30539 | PyObject * obj1 = 0 ; | |
30540 | char *kwnames[] = { | |
30541 | (char *) "self",(char *) "item", NULL | |
30542 | }; | |
30543 | ||
30544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30547 | { | |
30548 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30549 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30550 | if (arg2 == NULL) { | |
30551 | SWIG_null_ref("wxTreeItemId"); | |
30552 | } | |
30553 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30554 | } |
30555 | { | |
30556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30557 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
30558 | ||
30559 | wxPyEndAllowThreads(__tstate); | |
30560 | if (PyErr_Occurred()) SWIG_fail; | |
30561 | } | |
30562 | Py_INCREF(Py_None); resultobj = Py_None; | |
30563 | return resultobj; | |
30564 | fail: | |
30565 | return NULL; | |
30566 | } | |
30567 | ||
30568 | ||
c32bde28 | 30569 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30570 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30571 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30572 | wxTreeItemId *arg2 = 0 ; | |
30573 | PyObject * obj0 = 0 ; | |
30574 | PyObject * obj1 = 0 ; | |
30575 | char *kwnames[] = { | |
30576 | (char *) "self",(char *) "item", NULL | |
30577 | }; | |
30578 | ||
30579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30582 | { | |
30583 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30584 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30585 | if (arg2 == NULL) { | |
30586 | SWIG_null_ref("wxTreeItemId"); | |
30587 | } | |
30588 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30589 | } |
30590 | { | |
30591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30592 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
30593 | ||
30594 | wxPyEndAllowThreads(__tstate); | |
30595 | if (PyErr_Occurred()) SWIG_fail; | |
30596 | } | |
30597 | Py_INCREF(Py_None); resultobj = Py_None; | |
30598 | return resultobj; | |
30599 | fail: | |
30600 | return NULL; | |
30601 | } | |
30602 | ||
30603 | ||
c32bde28 | 30604 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30605 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30606 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30607 | PyObject * obj0 = 0 ; | |
30608 | char *kwnames[] = { | |
30609 | (char *) "self", NULL | |
30610 | }; | |
30611 | ||
30612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30613 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30614 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30615 | { |
30616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30617 | (arg1)->Unselect(); | |
30618 | ||
30619 | wxPyEndAllowThreads(__tstate); | |
30620 | if (PyErr_Occurred()) SWIG_fail; | |
30621 | } | |
30622 | Py_INCREF(Py_None); resultobj = Py_None; | |
30623 | return resultobj; | |
30624 | fail: | |
30625 | return NULL; | |
30626 | } | |
30627 | ||
30628 | ||
c32bde28 | 30629 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30630 | PyObject *resultobj = NULL; |
3adfb63b RD |
30631 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30632 | wxTreeItemId *arg2 = 0 ; | |
30633 | PyObject * obj0 = 0 ; | |
30634 | PyObject * obj1 = 0 ; | |
30635 | char *kwnames[] = { | |
30636 | (char *) "self",(char *) "item", NULL | |
30637 | }; | |
30638 | ||
30639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30642 | { | |
30643 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30644 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30645 | if (arg2 == NULL) { | |
30646 | SWIG_null_ref("wxTreeItemId"); | |
30647 | } | |
30648 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3adfb63b RD |
30649 | } |
30650 | { | |
30651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30652 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
30653 | ||
30654 | wxPyEndAllowThreads(__tstate); | |
30655 | if (PyErr_Occurred()) SWIG_fail; | |
30656 | } | |
30657 | Py_INCREF(Py_None); resultobj = Py_None; | |
30658 | return resultobj; | |
30659 | fail: | |
30660 | return NULL; | |
30661 | } | |
30662 | ||
30663 | ||
c32bde28 | 30664 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30665 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30666 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30667 | PyObject * obj0 = 0 ; | |
30668 | char *kwnames[] = { | |
30669 | (char *) "self", NULL | |
30670 | }; | |
30671 | ||
30672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30675 | { |
30676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30677 | (arg1)->UnselectAll(); | |
30678 | ||
30679 | wxPyEndAllowThreads(__tstate); | |
30680 | if (PyErr_Occurred()) SWIG_fail; | |
30681 | } | |
30682 | Py_INCREF(Py_None); resultobj = Py_None; | |
30683 | return resultobj; | |
30684 | fail: | |
30685 | return NULL; | |
30686 | } | |
30687 | ||
30688 | ||
c32bde28 | 30689 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30690 | PyObject *resultobj = NULL; |
3adfb63b RD |
30691 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30692 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30693 | bool arg3 = (bool) true ; |
3adfb63b RD |
30694 | PyObject * obj0 = 0 ; |
30695 | PyObject * obj1 = 0 ; | |
30696 | PyObject * obj2 = 0 ; | |
30697 | char *kwnames[] = { | |
30698 | (char *) "self",(char *) "item",(char *) "select", NULL | |
30699 | }; | |
30700 | ||
30701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30704 | { | |
30705 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30706 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30707 | if (arg2 == NULL) { | |
30708 | SWIG_null_ref("wxTreeItemId"); | |
30709 | } | |
30710 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3adfb63b RD |
30711 | } |
30712 | if (obj2) { | |
093d3ff1 | 30713 | { |
32fe5131 | 30714 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
30715 | if (SWIG_arg_fail(3)) SWIG_fail; |
30716 | } | |
3adfb63b RD |
30717 | } |
30718 | { | |
30719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30720 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
30721 | ||
30722 | wxPyEndAllowThreads(__tstate); | |
30723 | if (PyErr_Occurred()) SWIG_fail; | |
30724 | } | |
30725 | Py_INCREF(Py_None); resultobj = Py_None; | |
30726 | return resultobj; | |
30727 | fail: | |
30728 | return NULL; | |
30729 | } | |
30730 | ||
30731 | ||
c32bde28 | 30732 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30733 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30734 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30735 | wxTreeItemId *arg2 = 0 ; | |
30736 | PyObject * obj0 = 0 ; | |
30737 | PyObject * obj1 = 0 ; | |
30738 | char *kwnames[] = { | |
30739 | (char *) "self",(char *) "item", NULL | |
30740 | }; | |
30741 | ||
3adfb63b | 30742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30743 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30744 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30745 | { | |
30746 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30747 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30748 | if (arg2 == NULL) { | |
30749 | SWIG_null_ref("wxTreeItemId"); | |
30750 | } | |
30751 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30752 | } |
30753 | { | |
30754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 30755 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
30756 | |
30757 | wxPyEndAllowThreads(__tstate); | |
30758 | if (PyErr_Occurred()) SWIG_fail; | |
30759 | } | |
30760 | Py_INCREF(Py_None); resultobj = Py_None; | |
30761 | return resultobj; | |
30762 | fail: | |
30763 | return NULL; | |
30764 | } | |
30765 | ||
30766 | ||
c32bde28 | 30767 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30768 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30769 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30770 | wxTreeItemId *arg2 = 0 ; | |
30771 | PyObject * obj0 = 0 ; | |
30772 | PyObject * obj1 = 0 ; | |
30773 | char *kwnames[] = { | |
30774 | (char *) "self",(char *) "item", NULL | |
30775 | }; | |
30776 | ||
30777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30780 | { | |
30781 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30782 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30783 | if (arg2 == NULL) { | |
30784 | SWIG_null_ref("wxTreeItemId"); | |
30785 | } | |
30786 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30787 | } |
30788 | { | |
30789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30790 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
30791 | ||
30792 | wxPyEndAllowThreads(__tstate); | |
30793 | if (PyErr_Occurred()) SWIG_fail; | |
30794 | } | |
30795 | Py_INCREF(Py_None); resultobj = Py_None; | |
30796 | return resultobj; | |
30797 | fail: | |
30798 | return NULL; | |
30799 | } | |
30800 | ||
30801 | ||
c32bde28 | 30802 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30803 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30804 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30805 | wxTreeItemId *arg2 = 0 ; | |
30806 | PyObject * obj0 = 0 ; | |
30807 | PyObject * obj1 = 0 ; | |
30808 | char *kwnames[] = { | |
30809 | (char *) "self",(char *) "item", NULL | |
30810 | }; | |
30811 | ||
30812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30815 | { | |
30816 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30817 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30818 | if (arg2 == NULL) { | |
30819 | SWIG_null_ref("wxTreeItemId"); | |
30820 | } | |
30821 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30822 | } |
30823 | { | |
30824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30825 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
30826 | ||
30827 | wxPyEndAllowThreads(__tstate); | |
30828 | if (PyErr_Occurred()) SWIG_fail; | |
30829 | } | |
30830 | Py_INCREF(Py_None); resultobj = Py_None; | |
30831 | return resultobj; | |
30832 | fail: | |
30833 | return NULL; | |
30834 | } | |
30835 | ||
30836 | ||
c32bde28 | 30837 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30838 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30839 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30840 | wxTreeItemId *arg2 = 0 ; | |
30841 | PyObject * obj0 = 0 ; | |
30842 | PyObject * obj1 = 0 ; | |
30843 | char *kwnames[] = { | |
30844 | (char *) "self",(char *) "item", NULL | |
30845 | }; | |
30846 | ||
30847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30850 | { | |
30851 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30852 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30853 | if (arg2 == NULL) { | |
30854 | SWIG_null_ref("wxTreeItemId"); | |
30855 | } | |
30856 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30857 | } |
30858 | { | |
30859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30860 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
30861 | ||
30862 | wxPyEndAllowThreads(__tstate); | |
30863 | if (PyErr_Occurred()) SWIG_fail; | |
30864 | } | |
30865 | Py_INCREF(Py_None); resultobj = Py_None; | |
30866 | return resultobj; | |
30867 | fail: | |
30868 | return NULL; | |
30869 | } | |
30870 | ||
30871 | ||
c32bde28 | 30872 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30873 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30874 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30875 | wxTextCtrl *result; | |
30876 | PyObject * obj0 = 0 ; | |
30877 | char *kwnames[] = { | |
30878 | (char *) "self", NULL | |
30879 | }; | |
30880 | ||
30881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30884 | { |
30885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30886 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
30887 | ||
30888 | wxPyEndAllowThreads(__tstate); | |
30889 | if (PyErr_Occurred()) SWIG_fail; | |
30890 | } | |
30891 | { | |
412d302d | 30892 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30893 | } |
30894 | return resultobj; | |
30895 | fail: | |
30896 | return NULL; | |
30897 | } | |
30898 | ||
30899 | ||
c32bde28 | 30900 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30901 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30902 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30903 | wxTreeItemId *arg2 = 0 ; | |
30904 | PyObject * obj0 = 0 ; | |
30905 | PyObject * obj1 = 0 ; | |
30906 | char *kwnames[] = { | |
30907 | (char *) "self",(char *) "item", NULL | |
30908 | }; | |
30909 | ||
30910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30913 | { | |
30914 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30915 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30916 | if (arg2 == NULL) { | |
30917 | SWIG_null_ref("wxTreeItemId"); | |
30918 | } | |
30919 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30920 | } |
30921 | { | |
30922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30923 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
30924 | ||
30925 | wxPyEndAllowThreads(__tstate); | |
30926 | if (PyErr_Occurred()) SWIG_fail; | |
30927 | } | |
30928 | Py_INCREF(Py_None); resultobj = Py_None; | |
30929 | return resultobj; | |
30930 | fail: | |
30931 | return NULL; | |
30932 | } | |
30933 | ||
30934 | ||
c32bde28 | 30935 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30936 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30937 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30938 | wxPoint *arg2 = 0 ; | |
30939 | int *arg3 = 0 ; | |
30940 | wxTreeItemId result; | |
30941 | wxPoint temp2 ; | |
30942 | int temp3 ; | |
c32bde28 | 30943 | int res3 = 0 ; |
d14a1e28 RD |
30944 | PyObject * obj0 = 0 ; |
30945 | PyObject * obj1 = 0 ; | |
30946 | char *kwnames[] = { | |
30947 | (char *) "self",(char *) "point", NULL | |
30948 | }; | |
30949 | ||
c32bde28 | 30950 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 30951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30952 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30953 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30954 | { |
30955 | arg2 = &temp2; | |
30956 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30957 | } | |
30958 | { | |
30959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30960 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
30961 | ||
30962 | wxPyEndAllowThreads(__tstate); | |
30963 | if (PyErr_Occurred()) SWIG_fail; | |
30964 | } | |
30965 | { | |
30966 | wxTreeItemId * resultptr; | |
32fe5131 | 30967 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 30968 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 30969 | } |
c32bde28 RD |
30970 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
30971 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
30972 | return resultobj; |
30973 | fail: | |
30974 | return NULL; | |
30975 | } | |
30976 | ||
30977 | ||
c32bde28 | 30978 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30979 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30980 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30981 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30982 | bool arg3 = (bool) false ; |
d14a1e28 RD |
30983 | PyObject *result; |
30984 | PyObject * obj0 = 0 ; | |
30985 | PyObject * obj1 = 0 ; | |
30986 | PyObject * obj2 = 0 ; | |
30987 | char *kwnames[] = { | |
30988 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
30989 | }; | |
30990 | ||
30991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30992 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30993 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30994 | { | |
30995 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30996 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30997 | if (arg2 == NULL) { | |
30998 | SWIG_null_ref("wxTreeItemId"); | |
30999 | } | |
31000 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31001 | } |
31002 | if (obj2) { | |
093d3ff1 | 31003 | { |
32fe5131 | 31004 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
31005 | if (SWIG_arg_fail(3)) SWIG_fail; |
31006 | } | |
d14a1e28 RD |
31007 | } |
31008 | { | |
31009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31010 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
31011 | ||
31012 | wxPyEndAllowThreads(__tstate); | |
31013 | if (PyErr_Occurred()) SWIG_fail; | |
31014 | } | |
31015 | resultobj = result; | |
31016 | return resultobj; | |
31017 | fail: | |
31018 | return NULL; | |
31019 | } | |
31020 | ||
31021 | ||
c32bde28 | 31022 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31023 | PyObject *resultobj = NULL; |
093d3ff1 | 31024 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
31025 | wxVisualAttributes result; |
31026 | PyObject * obj0 = 0 ; | |
31027 | char *kwnames[] = { | |
31028 | (char *) "variant", NULL | |
31029 | }; | |
31030 | ||
31031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
31032 | if (obj0) { | |
093d3ff1 | 31033 | { |
32fe5131 | 31034 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
31035 | if (SWIG_arg_fail(1)) SWIG_fail; |
31036 | } | |
74a57fcd RD |
31037 | } |
31038 | { | |
110da5b0 | 31039 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd | 31040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 31041 | result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1); |
74a57fcd RD |
31042 | |
31043 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 31044 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
31045 | } |
31046 | { | |
31047 | wxVisualAttributes * resultptr; | |
32fe5131 | 31048 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
74a57fcd RD |
31049 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
31050 | } | |
31051 | return resultobj; | |
31052 | fail: | |
31053 | return NULL; | |
31054 | } | |
31055 | ||
31056 | ||
c32bde28 | 31057 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31058 | PyObject *obj; |
31059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31060 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
31061 | Py_INCREF(obj); | |
31062 | return Py_BuildValue((char *)""); | |
31063 | } | |
c32bde28 | 31064 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
b2dc1044 RD |
31065 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
31066 | return 1; | |
31067 | } | |
31068 | ||
31069 | ||
093d3ff1 | 31070 | static PyObject *_wrap_DirDialogDefaultFolderStr_get(void) { |
32fe5131 | 31071 | PyObject *pyobj = NULL; |
b2dc1044 RD |
31072 | |
31073 | { | |
31074 | #if wxUSE_UNICODE | |
31075 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
31076 | #else | |
31077 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
31078 | #endif | |
31079 | } | |
31080 | return pyobj; | |
31081 | } | |
31082 | ||
31083 | ||
c32bde28 | 31084 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31085 | PyObject *resultobj = NULL; |
d14a1e28 | 31086 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 31087 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
31088 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
31089 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31090 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
31091 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31092 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31093 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31094 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
31095 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
31096 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31097 | int arg8 = (int) 0 ; | |
b2dc1044 | 31098 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
31099 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
31100 | wxGenericDirCtrl *result; | |
ae8162c8 | 31101 | bool temp3 = false ; |
d14a1e28 RD |
31102 | wxPoint temp4 ; |
31103 | wxSize temp5 ; | |
ae8162c8 RD |
31104 | bool temp7 = false ; |
31105 | bool temp9 = false ; | |
d14a1e28 | 31106 | PyObject * obj0 = 0 ; |
994141e6 | 31107 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31108 | PyObject * obj2 = 0 ; |
31109 | PyObject * obj3 = 0 ; | |
31110 | PyObject * obj4 = 0 ; | |
994141e6 | 31111 | PyObject * obj5 = 0 ; |
d14a1e28 | 31112 | PyObject * obj6 = 0 ; |
994141e6 | 31113 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
31114 | PyObject * obj8 = 0 ; |
31115 | char *kwnames[] = { | |
31116 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
31117 | }; | |
31118 | ||
994141e6 | 31119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
31120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 31122 | if (obj1) { |
093d3ff1 | 31123 | { |
32fe5131 | 31124 | arg2 = static_cast<int const >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31125 | if (SWIG_arg_fail(2)) SWIG_fail; |
31126 | } | |
994141e6 | 31127 | } |
d14a1e28 RD |
31128 | if (obj2) { |
31129 | { | |
31130 | arg3 = wxString_in_helper(obj2); | |
31131 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31132 | temp3 = true; |
d14a1e28 RD |
31133 | } |
31134 | } | |
31135 | if (obj3) { | |
31136 | { | |
31137 | arg4 = &temp4; | |
31138 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31139 | } | |
31140 | } | |
31141 | if (obj4) { | |
31142 | { | |
31143 | arg5 = &temp5; | |
31144 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31145 | } | |
31146 | } | |
994141e6 | 31147 | if (obj5) { |
093d3ff1 | 31148 | { |
32fe5131 | 31149 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
31150 | if (SWIG_arg_fail(6)) SWIG_fail; |
31151 | } | |
994141e6 | 31152 | } |
d14a1e28 RD |
31153 | if (obj6) { |
31154 | { | |
31155 | arg7 = wxString_in_helper(obj6); | |
31156 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 31157 | temp7 = true; |
d14a1e28 RD |
31158 | } |
31159 | } | |
994141e6 | 31160 | if (obj7) { |
093d3ff1 | 31161 | { |
32fe5131 | 31162 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
31163 | if (SWIG_arg_fail(8)) SWIG_fail; |
31164 | } | |
994141e6 | 31165 | } |
d14a1e28 RD |
31166 | if (obj8) { |
31167 | { | |
31168 | arg9 = wxString_in_helper(obj8); | |
31169 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 31170 | temp9 = true; |
d14a1e28 RD |
31171 | } |
31172 | } | |
31173 | { | |
e3b71cb8 | 31174 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
31175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31176 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
31177 | ||
31178 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31179 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 31180 | } |
15afbcd0 | 31181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
31182 | { |
31183 | if (temp3) | |
31184 | delete arg3; | |
31185 | } | |
31186 | { | |
31187 | if (temp7) | |
31188 | delete arg7; | |
31189 | } | |
31190 | { | |
31191 | if (temp9) | |
31192 | delete arg9; | |
31193 | } | |
31194 | return resultobj; | |
31195 | fail: | |
31196 | { | |
31197 | if (temp3) | |
31198 | delete arg3; | |
31199 | } | |
31200 | { | |
31201 | if (temp7) | |
31202 | delete arg7; | |
31203 | } | |
31204 | { | |
31205 | if (temp9) | |
31206 | delete arg9; | |
31207 | } | |
31208 | return NULL; | |
31209 | } | |
31210 | ||
31211 | ||
c32bde28 | 31212 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31213 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31214 | wxGenericDirCtrl *result; |
31215 | char *kwnames[] = { | |
31216 | NULL | |
31217 | }; | |
31218 | ||
31219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
31220 | { | |
e3b71cb8 | 31221 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
31222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31223 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
31224 | ||
31225 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31226 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 31227 | } |
15afbcd0 | 31228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
31229 | return resultobj; |
31230 | fail: | |
31231 | return NULL; | |
31232 | } | |
31233 | ||
31234 | ||
c32bde28 | 31235 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31236 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31237 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31238 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 31239 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
31240 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
31241 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31242 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
31243 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
31244 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
31245 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
31246 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
31247 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
31248 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31249 | int arg9 = (int) 0 ; | |
b2dc1044 | 31250 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
31251 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
31252 | bool result; | |
ae8162c8 | 31253 | bool temp4 = false ; |
d14a1e28 RD |
31254 | wxPoint temp5 ; |
31255 | wxSize temp6 ; | |
ae8162c8 RD |
31256 | bool temp8 = false ; |
31257 | bool temp10 = false ; | |
d14a1e28 RD |
31258 | PyObject * obj0 = 0 ; |
31259 | PyObject * obj1 = 0 ; | |
994141e6 | 31260 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31261 | PyObject * obj3 = 0 ; |
31262 | PyObject * obj4 = 0 ; | |
31263 | PyObject * obj5 = 0 ; | |
994141e6 | 31264 | PyObject * obj6 = 0 ; |
d14a1e28 | 31265 | PyObject * obj7 = 0 ; |
994141e6 | 31266 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
31267 | PyObject * obj9 = 0 ; |
31268 | char *kwnames[] = { | |
31269 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
31270 | }; | |
31271 | ||
994141e6 | 31272 | 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 |
31273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31275 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
31276 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 31277 | if (obj2) { |
093d3ff1 | 31278 | { |
32fe5131 | 31279 | arg3 = static_cast<int const >(SWIG_As_int(obj2)); |
093d3ff1 RD |
31280 | if (SWIG_arg_fail(3)) SWIG_fail; |
31281 | } | |
994141e6 | 31282 | } |
d14a1e28 RD |
31283 | if (obj3) { |
31284 | { | |
31285 | arg4 = wxString_in_helper(obj3); | |
31286 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31287 | temp4 = true; |
d14a1e28 RD |
31288 | } |
31289 | } | |
31290 | if (obj4) { | |
31291 | { | |
31292 | arg5 = &temp5; | |
31293 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
31294 | } | |
31295 | } | |
31296 | if (obj5) { | |
31297 | { | |
31298 | arg6 = &temp6; | |
31299 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
31300 | } | |
31301 | } | |
994141e6 | 31302 | if (obj6) { |
093d3ff1 | 31303 | { |
32fe5131 | 31304 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
31305 | if (SWIG_arg_fail(7)) SWIG_fail; |
31306 | } | |
994141e6 | 31307 | } |
d14a1e28 RD |
31308 | if (obj7) { |
31309 | { | |
31310 | arg8 = wxString_in_helper(obj7); | |
31311 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 31312 | temp8 = true; |
d14a1e28 RD |
31313 | } |
31314 | } | |
994141e6 | 31315 | if (obj8) { |
093d3ff1 | 31316 | { |
32fe5131 | 31317 | arg9 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
31318 | if (SWIG_arg_fail(9)) SWIG_fail; |
31319 | } | |
994141e6 | 31320 | } |
d14a1e28 RD |
31321 | if (obj9) { |
31322 | { | |
31323 | arg10 = wxString_in_helper(obj9); | |
31324 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 31325 | temp10 = true; |
d14a1e28 RD |
31326 | } |
31327 | } | |
31328 | { | |
31329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31330 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
31331 | ||
31332 | wxPyEndAllowThreads(__tstate); | |
31333 | if (PyErr_Occurred()) SWIG_fail; | |
31334 | } | |
4f89f6a3 RD |
31335 | { |
31336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31337 | } | |
d14a1e28 RD |
31338 | { |
31339 | if (temp4) | |
31340 | delete arg4; | |
31341 | } | |
31342 | { | |
31343 | if (temp8) | |
31344 | delete arg8; | |
31345 | } | |
31346 | { | |
31347 | if (temp10) | |
31348 | delete arg10; | |
31349 | } | |
31350 | return resultobj; | |
31351 | fail: | |
31352 | { | |
31353 | if (temp4) | |
31354 | delete arg4; | |
31355 | } | |
31356 | { | |
31357 | if (temp8) | |
31358 | delete arg8; | |
31359 | } | |
31360 | { | |
31361 | if (temp10) | |
31362 | delete arg10; | |
31363 | } | |
31364 | return NULL; | |
31365 | } | |
31366 | ||
31367 | ||
c32bde28 | 31368 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31369 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31370 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31371 | wxString *arg2 = 0 ; | |
31372 | bool result; | |
ae8162c8 | 31373 | bool temp2 = false ; |
d14a1e28 RD |
31374 | PyObject * obj0 = 0 ; |
31375 | PyObject * obj1 = 0 ; | |
31376 | char *kwnames[] = { | |
31377 | (char *) "self",(char *) "path", NULL | |
31378 | }; | |
31379 | ||
31380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31383 | { |
31384 | arg2 = wxString_in_helper(obj1); | |
31385 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31386 | temp2 = true; |
d14a1e28 RD |
31387 | } |
31388 | { | |
31389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31390 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
31391 | ||
31392 | wxPyEndAllowThreads(__tstate); | |
31393 | if (PyErr_Occurred()) SWIG_fail; | |
31394 | } | |
4f89f6a3 RD |
31395 | { |
31396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31397 | } | |
d14a1e28 RD |
31398 | { |
31399 | if (temp2) | |
31400 | delete arg2; | |
31401 | } | |
31402 | return resultobj; | |
31403 | fail: | |
31404 | { | |
31405 | if (temp2) | |
31406 | delete arg2; | |
31407 | } | |
31408 | return NULL; | |
31409 | } | |
31410 | ||
31411 | ||
c32bde28 | 31412 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31413 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31414 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31415 | wxString result; | |
31416 | PyObject * obj0 = 0 ; | |
31417 | char *kwnames[] = { | |
31418 | (char *) "self", NULL | |
31419 | }; | |
31420 | ||
31421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31422 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31423 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31424 | { |
31425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31426 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
31427 | ||
31428 | wxPyEndAllowThreads(__tstate); | |
31429 | if (PyErr_Occurred()) SWIG_fail; | |
31430 | } | |
31431 | { | |
31432 | #if wxUSE_UNICODE | |
31433 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31434 | #else | |
31435 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31436 | #endif | |
31437 | } | |
31438 | return resultobj; | |
31439 | fail: | |
31440 | return NULL; | |
31441 | } | |
31442 | ||
31443 | ||
c32bde28 | 31444 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31445 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31446 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31447 | wxString *arg2 = 0 ; | |
ae8162c8 | 31448 | bool temp2 = false ; |
d14a1e28 RD |
31449 | PyObject * obj0 = 0 ; |
31450 | PyObject * obj1 = 0 ; | |
31451 | char *kwnames[] = { | |
31452 | (char *) "self",(char *) "path", NULL | |
31453 | }; | |
31454 | ||
31455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31458 | { |
31459 | arg2 = wxString_in_helper(obj1); | |
31460 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31461 | temp2 = true; |
d14a1e28 RD |
31462 | } |
31463 | { | |
31464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31465 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
31466 | ||
31467 | wxPyEndAllowThreads(__tstate); | |
31468 | if (PyErr_Occurred()) SWIG_fail; | |
31469 | } | |
31470 | Py_INCREF(Py_None); resultobj = Py_None; | |
31471 | { | |
31472 | if (temp2) | |
31473 | delete arg2; | |
31474 | } | |
31475 | return resultobj; | |
31476 | fail: | |
31477 | { | |
31478 | if (temp2) | |
31479 | delete arg2; | |
31480 | } | |
31481 | return NULL; | |
31482 | } | |
31483 | ||
31484 | ||
c32bde28 | 31485 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31486 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31487 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31488 | wxString result; | |
31489 | PyObject * obj0 = 0 ; | |
31490 | char *kwnames[] = { | |
31491 | (char *) "self", NULL | |
31492 | }; | |
31493 | ||
31494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31497 | { |
31498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31499 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
31500 | ||
31501 | wxPyEndAllowThreads(__tstate); | |
31502 | if (PyErr_Occurred()) SWIG_fail; | |
31503 | } | |
31504 | { | |
31505 | #if wxUSE_UNICODE | |
31506 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31507 | #else | |
31508 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31509 | #endif | |
31510 | } | |
31511 | return resultobj; | |
31512 | fail: | |
31513 | return NULL; | |
31514 | } | |
31515 | ||
31516 | ||
c32bde28 | 31517 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31518 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31519 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31520 | wxString result; | |
31521 | PyObject * obj0 = 0 ; | |
31522 | char *kwnames[] = { | |
31523 | (char *) "self", NULL | |
31524 | }; | |
31525 | ||
31526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31529 | { |
31530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31531 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
31532 | ||
31533 | wxPyEndAllowThreads(__tstate); | |
31534 | if (PyErr_Occurred()) SWIG_fail; | |
31535 | } | |
31536 | { | |
31537 | #if wxUSE_UNICODE | |
31538 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31539 | #else | |
31540 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31541 | #endif | |
31542 | } | |
31543 | return resultobj; | |
31544 | fail: | |
31545 | return NULL; | |
31546 | } | |
31547 | ||
31548 | ||
c32bde28 | 31549 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31550 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31551 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31552 | wxString *arg2 = 0 ; | |
ae8162c8 | 31553 | bool temp2 = false ; |
d14a1e28 RD |
31554 | PyObject * obj0 = 0 ; |
31555 | PyObject * obj1 = 0 ; | |
31556 | char *kwnames[] = { | |
31557 | (char *) "self",(char *) "path", NULL | |
31558 | }; | |
31559 | ||
31560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31563 | { |
31564 | arg2 = wxString_in_helper(obj1); | |
31565 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31566 | temp2 = true; |
d14a1e28 RD |
31567 | } |
31568 | { | |
31569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31570 | (arg1)->SetPath((wxString const &)*arg2); | |
31571 | ||
31572 | wxPyEndAllowThreads(__tstate); | |
31573 | if (PyErr_Occurred()) SWIG_fail; | |
31574 | } | |
31575 | Py_INCREF(Py_None); resultobj = Py_None; | |
31576 | { | |
31577 | if (temp2) | |
31578 | delete arg2; | |
31579 | } | |
31580 | return resultobj; | |
31581 | fail: | |
31582 | { | |
31583 | if (temp2) | |
31584 | delete arg2; | |
31585 | } | |
31586 | return NULL; | |
31587 | } | |
31588 | ||
31589 | ||
c32bde28 | 31590 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31591 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31592 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31593 | bool arg2 ; | |
31594 | PyObject * obj0 = 0 ; | |
31595 | PyObject * obj1 = 0 ; | |
31596 | char *kwnames[] = { | |
31597 | (char *) "self",(char *) "show", NULL | |
31598 | }; | |
31599 | ||
31600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31603 | { | |
32fe5131 | 31604 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
31605 | if (SWIG_arg_fail(2)) SWIG_fail; |
31606 | } | |
d14a1e28 RD |
31607 | { |
31608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31609 | (arg1)->ShowHidden(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_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31622 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31623 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31624 | bool result; | |
31625 | PyObject * obj0 = 0 ; | |
31626 | char *kwnames[] = { | |
31627 | (char *) "self", NULL | |
31628 | }; | |
31629 | ||
31630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31633 | { |
31634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31635 | result = (bool)(arg1)->GetShowHidden(); | |
31636 | ||
31637 | wxPyEndAllowThreads(__tstate); | |
31638 | if (PyErr_Occurred()) SWIG_fail; | |
31639 | } | |
4f89f6a3 RD |
31640 | { |
31641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31642 | } | |
d14a1e28 RD |
31643 | return resultobj; |
31644 | fail: | |
31645 | return NULL; | |
31646 | } | |
31647 | ||
31648 | ||
c32bde28 | 31649 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31650 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31651 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31652 | wxString result; | |
31653 | PyObject * obj0 = 0 ; | |
31654 | char *kwnames[] = { | |
31655 | (char *) "self", NULL | |
31656 | }; | |
31657 | ||
31658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31659 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31661 | { |
31662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31663 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
31664 | ||
31665 | wxPyEndAllowThreads(__tstate); | |
31666 | if (PyErr_Occurred()) SWIG_fail; | |
31667 | } | |
31668 | { | |
31669 | #if wxUSE_UNICODE | |
31670 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31671 | #else | |
31672 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31673 | #endif | |
31674 | } | |
31675 | return resultobj; | |
31676 | fail: | |
31677 | return NULL; | |
31678 | } | |
31679 | ||
31680 | ||
c32bde28 | 31681 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31682 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31683 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31684 | wxString *arg2 = 0 ; | |
ae8162c8 | 31685 | bool temp2 = false ; |
d14a1e28 RD |
31686 | PyObject * obj0 = 0 ; |
31687 | PyObject * obj1 = 0 ; | |
31688 | char *kwnames[] = { | |
31689 | (char *) "self",(char *) "filter", NULL | |
31690 | }; | |
31691 | ||
31692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31695 | { |
31696 | arg2 = wxString_in_helper(obj1); | |
31697 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31698 | temp2 = true; |
d14a1e28 RD |
31699 | } |
31700 | { | |
31701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31702 | (arg1)->SetFilter((wxString const &)*arg2); | |
31703 | ||
31704 | wxPyEndAllowThreads(__tstate); | |
31705 | if (PyErr_Occurred()) SWIG_fail; | |
31706 | } | |
31707 | Py_INCREF(Py_None); resultobj = Py_None; | |
31708 | { | |
31709 | if (temp2) | |
31710 | delete arg2; | |
31711 | } | |
31712 | return resultobj; | |
31713 | fail: | |
31714 | { | |
31715 | if (temp2) | |
31716 | delete arg2; | |
31717 | } | |
31718 | return NULL; | |
31719 | } | |
31720 | ||
31721 | ||
c32bde28 | 31722 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31723 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31724 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31725 | int result; | |
31726 | PyObject * obj0 = 0 ; | |
31727 | char *kwnames[] = { | |
31728 | (char *) "self", NULL | |
31729 | }; | |
31730 | ||
31731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31734 | { |
31735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31736 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
31737 | ||
31738 | wxPyEndAllowThreads(__tstate); | |
31739 | if (PyErr_Occurred()) SWIG_fail; | |
31740 | } | |
093d3ff1 | 31741 | { |
32fe5131 | 31742 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31743 | } |
d14a1e28 RD |
31744 | return resultobj; |
31745 | fail: | |
31746 | return NULL; | |
31747 | } | |
31748 | ||
31749 | ||
c32bde28 | 31750 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31751 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31752 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31753 | int arg2 ; | |
31754 | PyObject * obj0 = 0 ; | |
994141e6 | 31755 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31756 | char *kwnames[] = { |
31757 | (char *) "self",(char *) "n", NULL | |
31758 | }; | |
31759 | ||
994141e6 | 31760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
31761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31763 | { | |
32fe5131 | 31764 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31765 | if (SWIG_arg_fail(2)) SWIG_fail; |
31766 | } | |
d14a1e28 RD |
31767 | { |
31768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31769 | (arg1)->SetFilterIndex(arg2); | |
31770 | ||
31771 | wxPyEndAllowThreads(__tstate); | |
31772 | if (PyErr_Occurred()) SWIG_fail; | |
31773 | } | |
31774 | Py_INCREF(Py_None); resultobj = Py_None; | |
31775 | return resultobj; | |
31776 | fail: | |
31777 | return NULL; | |
31778 | } | |
31779 | ||
31780 | ||
c32bde28 | 31781 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31782 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31783 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31784 | wxTreeItemId result; | |
31785 | PyObject * obj0 = 0 ; | |
31786 | char *kwnames[] = { | |
31787 | (char *) "self", NULL | |
31788 | }; | |
31789 | ||
31790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31791 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31792 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31793 | { |
31794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31795 | result = (arg1)->GetRootId(); | |
31796 | ||
31797 | wxPyEndAllowThreads(__tstate); | |
31798 | if (PyErr_Occurred()) SWIG_fail; | |
31799 | } | |
31800 | { | |
31801 | wxTreeItemId * resultptr; | |
32fe5131 | 31802 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31803 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31804 | } |
31805 | return resultobj; | |
31806 | fail: | |
31807 | return NULL; | |
31808 | } | |
31809 | ||
31810 | ||
c32bde28 | 31811 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31812 | PyObject *resultobj = NULL; |
d14a1e28 | 31813 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
b2dc1044 | 31814 | wxPyTreeCtrl *result; |
d14a1e28 RD |
31815 | PyObject * obj0 = 0 ; |
31816 | char *kwnames[] = { | |
31817 | (char *) "self", NULL | |
31818 | }; | |
31819 | ||
31820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31823 | { |
31824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 31825 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
31826 | |
31827 | wxPyEndAllowThreads(__tstate); | |
31828 | if (PyErr_Occurred()) SWIG_fail; | |
31829 | } | |
31830 | { | |
412d302d | 31831 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31832 | } |
31833 | return resultobj; | |
31834 | fail: | |
31835 | return NULL; | |
31836 | } | |
31837 | ||
31838 | ||
c32bde28 | 31839 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31840 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31841 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31842 | wxDirFilterListCtrl *result; | |
31843 | PyObject * obj0 = 0 ; | |
31844 | char *kwnames[] = { | |
31845 | (char *) "self", NULL | |
31846 | }; | |
31847 | ||
31848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31851 | { |
31852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31853 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
31854 | ||
31855 | wxPyEndAllowThreads(__tstate); | |
31856 | if (PyErr_Occurred()) SWIG_fail; | |
31857 | } | |
15afbcd0 | 31858 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
31859 | return resultobj; |
31860 | fail: | |
31861 | return NULL; | |
31862 | } | |
31863 | ||
31864 | ||
c32bde28 | 31865 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31866 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31867 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31868 | wxTreeItemId arg2 ; | |
31869 | wxString *arg3 = 0 ; | |
31870 | bool *arg4 = 0 ; | |
31871 | wxTreeItemId result; | |
ae8162c8 | 31872 | bool temp3 = false ; |
d14a1e28 | 31873 | bool temp4 ; |
c32bde28 | 31874 | int res4 = 0 ; |
d14a1e28 RD |
31875 | PyObject * obj0 = 0 ; |
31876 | PyObject * obj1 = 0 ; | |
31877 | PyObject * obj2 = 0 ; | |
31878 | char *kwnames[] = { | |
31879 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
31880 | }; | |
31881 | ||
c32bde28 | 31882 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
d14a1e28 | 31883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
31884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31886 | { | |
31887 | wxTreeItemId * argp; | |
31888 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION); | |
31889 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31890 | if (argp == NULL) { | |
31891 | SWIG_null_ref("wxTreeItemId"); | |
31892 | } | |
31893 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31894 | arg2 = *argp; | |
31895 | } | |
d14a1e28 RD |
31896 | { |
31897 | arg3 = wxString_in_helper(obj2); | |
31898 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31899 | temp3 = true; |
d14a1e28 RD |
31900 | } |
31901 | { | |
31902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31903 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
31904 | ||
31905 | wxPyEndAllowThreads(__tstate); | |
31906 | if (PyErr_Occurred()) SWIG_fail; | |
31907 | } | |
31908 | { | |
31909 | wxTreeItemId * resultptr; | |
32fe5131 | 31910 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31911 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 31912 | } |
c32bde28 RD |
31913 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
31914 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
d14a1e28 RD |
31915 | { |
31916 | if (temp3) | |
31917 | delete arg3; | |
31918 | } | |
31919 | return resultobj; | |
31920 | fail: | |
31921 | { | |
31922 | if (temp3) | |
31923 | delete arg3; | |
31924 | } | |
31925 | return NULL; | |
31926 | } | |
31927 | ||
31928 | ||
c32bde28 | 31929 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31930 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31931 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31932 | PyObject * obj0 = 0 ; | |
31933 | char *kwnames[] = { | |
31934 | (char *) "self", NULL | |
31935 | }; | |
31936 | ||
31937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31940 | { |
31941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31942 | (arg1)->DoResize(); | |
31943 | ||
31944 | wxPyEndAllowThreads(__tstate); | |
31945 | if (PyErr_Occurred()) SWIG_fail; | |
31946 | } | |
31947 | Py_INCREF(Py_None); resultobj = Py_None; | |
31948 | return resultobj; | |
31949 | fail: | |
31950 | return NULL; | |
31951 | } | |
31952 | ||
31953 | ||
c32bde28 | 31954 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31955 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31956 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
31957 | PyObject * obj0 = 0 ; | |
31958 | char *kwnames[] = { | |
31959 | (char *) "self", NULL | |
31960 | }; | |
31961 | ||
31962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31965 | { |
31966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31967 | (arg1)->ReCreateTree(); | |
31968 | ||
31969 | wxPyEndAllowThreads(__tstate); | |
31970 | if (PyErr_Occurred()) SWIG_fail; | |
31971 | } | |
31972 | Py_INCREF(Py_None); resultobj = Py_None; | |
31973 | return resultobj; | |
31974 | fail: | |
31975 | return NULL; | |
31976 | } | |
31977 | ||
31978 | ||
c32bde28 | 31979 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31980 | PyObject *obj; |
31981 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31982 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
31983 | Py_INCREF(obj); | |
31984 | return Py_BuildValue((char *)""); | |
31985 | } | |
c32bde28 | 31986 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31987 | PyObject *resultobj = NULL; |
d14a1e28 | 31988 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
e811c8ce | 31989 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
31990 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
31991 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31992 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31993 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31994 | long arg5 = (long) 0 ; | |
31995 | wxDirFilterListCtrl *result; | |
31996 | wxPoint temp3 ; | |
31997 | wxSize temp4 ; | |
31998 | PyObject * obj0 = 0 ; | |
994141e6 | 31999 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32000 | PyObject * obj2 = 0 ; |
32001 | PyObject * obj3 = 0 ; | |
994141e6 | 32002 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
32003 | char *kwnames[] = { |
32004 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
32005 | }; | |
32006 | ||
994141e6 | 32007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
32008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 32010 | if (obj1) { |
093d3ff1 | 32011 | { |
32fe5131 | 32012 | arg2 = static_cast<int const >(SWIG_As_int(obj1)); |
093d3ff1 RD |
32013 | if (SWIG_arg_fail(2)) SWIG_fail; |
32014 | } | |
994141e6 | 32015 | } |
d14a1e28 RD |
32016 | if (obj2) { |
32017 | { | |
32018 | arg3 = &temp3; | |
32019 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32020 | } | |
32021 | } | |
32022 | if (obj3) { | |
32023 | { | |
32024 | arg4 = &temp4; | |
32025 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32026 | } | |
32027 | } | |
994141e6 | 32028 | if (obj4) { |
093d3ff1 | 32029 | { |
32fe5131 | 32030 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
32031 | if (SWIG_arg_fail(5)) SWIG_fail; |
32032 | } | |
994141e6 | 32033 | } |
d14a1e28 | 32034 | { |
e3b71cb8 | 32035 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32037 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
32038 | ||
32039 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32040 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 32041 | } |
15afbcd0 | 32042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
32043 | return resultobj; |
32044 | fail: | |
32045 | return NULL; | |
32046 | } | |
32047 | ||
32048 | ||
c32bde28 | 32049 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32050 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32051 | wxDirFilterListCtrl *result; |
32052 | char *kwnames[] = { | |
32053 | NULL | |
32054 | }; | |
32055 | ||
32056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
32057 | { | |
e3b71cb8 | 32058 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32060 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
32061 | ||
32062 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32063 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 32064 | } |
15afbcd0 | 32065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
32066 | return resultobj; |
32067 | fail: | |
32068 | return NULL; | |
32069 | } | |
32070 | ||
32071 | ||
c32bde28 | 32072 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32073 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32074 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; |
32075 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 32076 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
32077 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
32078 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32079 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32080 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32081 | long arg6 = (long) 0 ; | |
32082 | bool result; | |
32083 | wxPoint temp4 ; | |
32084 | wxSize temp5 ; | |
32085 | PyObject * obj0 = 0 ; | |
32086 | PyObject * obj1 = 0 ; | |
994141e6 | 32087 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32088 | PyObject * obj3 = 0 ; |
32089 | PyObject * obj4 = 0 ; | |
994141e6 | 32090 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
32091 | char *kwnames[] = { |
32092 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
32093 | }; | |
32094 | ||
994141e6 | 32095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
32096 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
32097 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32098 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
32099 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 32100 | if (obj2) { |
093d3ff1 | 32101 | { |
32fe5131 | 32102 | arg3 = static_cast<int const >(SWIG_As_int(obj2)); |
093d3ff1 RD |
32103 | if (SWIG_arg_fail(3)) SWIG_fail; |
32104 | } | |
994141e6 | 32105 | } |
d14a1e28 RD |
32106 | if (obj3) { |
32107 | { | |
32108 | arg4 = &temp4; | |
32109 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
32110 | } | |
32111 | } | |
32112 | if (obj4) { | |
32113 | { | |
32114 | arg5 = &temp5; | |
32115 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
32116 | } | |
32117 | } | |
994141e6 | 32118 | if (obj5) { |
093d3ff1 | 32119 | { |
32fe5131 | 32120 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
32121 | if (SWIG_arg_fail(6)) SWIG_fail; |
32122 | } | |
994141e6 | 32123 | } |
d14a1e28 RD |
32124 | { |
32125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32126 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
32127 | ||
32128 | wxPyEndAllowThreads(__tstate); | |
32129 | if (PyErr_Occurred()) SWIG_fail; | |
32130 | } | |
4f89f6a3 RD |
32131 | { |
32132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32133 | } | |
d14a1e28 RD |
32134 | return resultobj; |
32135 | fail: | |
32136 | return NULL; | |
32137 | } | |
32138 | ||
32139 | ||
c32bde28 | 32140 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32141 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32142 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; |
32143 | wxString *arg2 = 0 ; | |
32144 | int arg3 ; | |
ae8162c8 | 32145 | bool temp2 = false ; |
d14a1e28 RD |
32146 | PyObject * obj0 = 0 ; |
32147 | PyObject * obj1 = 0 ; | |
994141e6 | 32148 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32149 | char *kwnames[] = { |
32150 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
32151 | }; | |
32152 | ||
994141e6 | 32153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
32154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
32155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32156 | { |
32157 | arg2 = wxString_in_helper(obj1); | |
32158 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32159 | temp2 = true; |
d14a1e28 | 32160 | } |
093d3ff1 | 32161 | { |
32fe5131 | 32162 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
32163 | if (SWIG_arg_fail(3)) SWIG_fail; |
32164 | } | |
d14a1e28 RD |
32165 | { |
32166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32167 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
32168 | ||
32169 | wxPyEndAllowThreads(__tstate); | |
32170 | if (PyErr_Occurred()) SWIG_fail; | |
32171 | } | |
32172 | Py_INCREF(Py_None); resultobj = Py_None; | |
32173 | { | |
32174 | if (temp2) | |
32175 | delete arg2; | |
32176 | } | |
32177 | return resultobj; | |
32178 | fail: | |
32179 | { | |
32180 | if (temp2) | |
32181 | delete arg2; | |
32182 | } | |
32183 | return NULL; | |
32184 | } | |
32185 | ||
32186 | ||
c32bde28 | 32187 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
32188 | PyObject *obj; |
32189 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32190 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
32191 | Py_INCREF(obj); | |
32192 | return Py_BuildValue((char *)""); | |
32193 | } | |
c32bde28 | 32194 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32195 | PyObject *resultobj = NULL; |
d14a1e28 | 32196 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 32197 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
32198 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
32199 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32200 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32201 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32202 | long arg5 = (long) 0 ; | |
32203 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32204 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32205 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32206 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32207 | wxPyControl *result; | |
32208 | wxPoint temp3 ; | |
32209 | wxSize temp4 ; | |
ae8162c8 | 32210 | bool temp7 = false ; |
d14a1e28 | 32211 | PyObject * obj0 = 0 ; |
994141e6 | 32212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32213 | PyObject * obj2 = 0 ; |
32214 | PyObject * obj3 = 0 ; | |
994141e6 | 32215 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
32216 | PyObject * obj5 = 0 ; |
32217 | PyObject * obj6 = 0 ; | |
32218 | char *kwnames[] = { | |
32219 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32220 | }; | |
32221 | ||
248ed943 | 32222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
32223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 32225 | if (obj1) { |
093d3ff1 | 32226 | { |
32fe5131 | 32227 | arg2 = static_cast<int const >(SWIG_As_int(obj1)); |
093d3ff1 RD |
32228 | if (SWIG_arg_fail(2)) SWIG_fail; |
32229 | } | |
248ed943 | 32230 | } |
d14a1e28 RD |
32231 | if (obj2) { |
32232 | { | |
32233 | arg3 = &temp3; | |
32234 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32235 | } | |
32236 | } | |
32237 | if (obj3) { | |
32238 | { | |
32239 | arg4 = &temp4; | |
32240 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32241 | } | |
32242 | } | |
994141e6 | 32243 | if (obj4) { |
093d3ff1 | 32244 | { |
32fe5131 | 32245 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
32246 | if (SWIG_arg_fail(5)) SWIG_fail; |
32247 | } | |
994141e6 | 32248 | } |
d14a1e28 | 32249 | if (obj5) { |
093d3ff1 RD |
32250 | { |
32251 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
32252 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32253 | if (arg6 == NULL) { | |
32254 | SWIG_null_ref("wxValidator"); | |
32255 | } | |
32256 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
32257 | } |
32258 | } | |
32259 | if (obj6) { | |
32260 | { | |
32261 | arg7 = wxString_in_helper(obj6); | |
32262 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 32263 | temp7 = true; |
d14a1e28 RD |
32264 | } |
32265 | } | |
32266 | { | |
e3b71cb8 | 32267 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32269 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32270 | ||
32271 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32272 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 32273 | } |
15afbcd0 | 32274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
32275 | { |
32276 | if (temp7) | |
32277 | delete arg7; | |
32278 | } | |
32279 | return resultobj; | |
32280 | fail: | |
32281 | { | |
32282 | if (temp7) | |
32283 | delete arg7; | |
32284 | } | |
32285 | return NULL; | |
32286 | } | |
32287 | ||
32288 | ||
c32bde28 | 32289 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32290 | PyObject *resultobj = NULL; |
1cb4a8aa RD |
32291 | wxPyControl *result; |
32292 | char *kwnames[] = { | |
32293 | NULL | |
32294 | }; | |
32295 | ||
32296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
32297 | { | |
e3b71cb8 | 32298 | if (!wxPyCheckForApp()) SWIG_fail; |
1cb4a8aa RD |
32299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32300 | result = (wxPyControl *)new wxPyControl(); | |
32301 | ||
32302 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32303 | if (PyErr_Occurred()) SWIG_fail; |
1cb4a8aa RD |
32304 | } |
32305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
32306 | return resultobj; | |
32307 | fail: | |
32308 | return NULL; | |
32309 | } | |
32310 | ||
32311 | ||
c32bde28 | 32312 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32313 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32314 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32315 | PyObject *arg2 = (PyObject *) 0 ; | |
32316 | PyObject *arg3 = (PyObject *) 0 ; | |
32317 | PyObject * obj0 = 0 ; | |
32318 | PyObject * obj1 = 0 ; | |
32319 | PyObject * obj2 = 0 ; | |
32320 | char *kwnames[] = { | |
32321 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
32322 | }; | |
32323 | ||
32324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
32325 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32327 | arg2 = obj1; |
32328 | arg3 = obj2; | |
32329 | { | |
32330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32331 | (arg1)->_setCallbackInfo(arg2,arg3); | |
32332 | ||
32333 | wxPyEndAllowThreads(__tstate); | |
32334 | if (PyErr_Occurred()) SWIG_fail; | |
32335 | } | |
32336 | Py_INCREF(Py_None); resultobj = Py_None; | |
32337 | return resultobj; | |
32338 | fail: | |
32339 | return NULL; | |
32340 | } | |
32341 | ||
32342 | ||
c32bde28 | 32343 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32344 | PyObject *resultobj = NULL; |
db3e571a RD |
32345 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32346 | wxSize *arg2 = 0 ; | |
32347 | wxSize temp2 ; | |
32348 | PyObject * obj0 = 0 ; | |
32349 | PyObject * obj1 = 0 ; | |
32350 | char *kwnames[] = { | |
32351 | (char *) "self",(char *) "size", NULL | |
32352 | }; | |
32353 | ||
32354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32355 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32356 | if (SWIG_arg_fail(1)) SWIG_fail; | |
db3e571a RD |
32357 | { |
32358 | arg2 = &temp2; | |
32359 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
32360 | } | |
32361 | { | |
32362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32363 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
32364 | ||
32365 | wxPyEndAllowThreads(__tstate); | |
32366 | if (PyErr_Occurred()) SWIG_fail; | |
32367 | } | |
32368 | Py_INCREF(Py_None); resultobj = Py_None; | |
32369 | return resultobj; | |
32370 | fail: | |
32371 | return NULL; | |
32372 | } | |
32373 | ||
32374 | ||
976dbff5 | 32375 | static PyObject *_wrap_PyControl_DoEraseBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32376 | PyObject *resultobj = NULL; |
976dbff5 RD |
32377 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32378 | wxDC *arg2 = (wxDC *) 0 ; | |
32379 | bool result; | |
32380 | PyObject * obj0 = 0 ; | |
32381 | PyObject * obj1 = 0 ; | |
32382 | char *kwnames[] = { | |
32383 | (char *) "self",(char *) "dc", NULL | |
32384 | }; | |
32385 | ||
32386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) goto fail; | |
32387 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32388 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32389 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
32390 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32391 | { | |
32392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32393 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
32394 | ||
32395 | wxPyEndAllowThreads(__tstate); | |
32396 | if (PyErr_Occurred()) SWIG_fail; | |
32397 | } | |
32398 | { | |
32399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32400 | } | |
32401 | return resultobj; | |
32402 | fail: | |
32403 | return NULL; | |
32404 | } | |
32405 | ||
32406 | ||
c32bde28 | 32407 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32408 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32409 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32410 | int arg2 ; | |
32411 | int arg3 ; | |
32412 | int arg4 ; | |
32413 | int arg5 ; | |
32414 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32415 | PyObject * obj1 = 0 ; |
32416 | PyObject * obj2 = 0 ; | |
32417 | PyObject * obj3 = 0 ; | |
32418 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
32419 | char *kwnames[] = { |
32420 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
32421 | }; | |
32422 | ||
994141e6 | 32423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
32424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32426 | { | |
32fe5131 | 32427 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
32428 | if (SWIG_arg_fail(2)) SWIG_fail; |
32429 | } | |
32430 | { | |
32fe5131 | 32431 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
32432 | if (SWIG_arg_fail(3)) SWIG_fail; |
32433 | } | |
32434 | { | |
32fe5131 | 32435 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
32436 | if (SWIG_arg_fail(4)) SWIG_fail; |
32437 | } | |
32438 | { | |
32fe5131 | 32439 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
32440 | if (SWIG_arg_fail(5)) SWIG_fail; |
32441 | } | |
d14a1e28 RD |
32442 | { |
32443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32444 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
32445 | ||
32446 | wxPyEndAllowThreads(__tstate); | |
32447 | if (PyErr_Occurred()) SWIG_fail; | |
32448 | } | |
32449 | Py_INCREF(Py_None); resultobj = Py_None; | |
32450 | return resultobj; | |
32451 | fail: | |
32452 | return NULL; | |
32453 | } | |
32454 | ||
32455 | ||
c32bde28 | 32456 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32457 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32458 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32459 | int arg2 ; | |
32460 | int arg3 ; | |
32461 | int arg4 ; | |
32462 | int arg5 ; | |
32463 | int arg6 = (int) wxSIZE_AUTO ; | |
32464 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32465 | PyObject * obj1 = 0 ; |
32466 | PyObject * obj2 = 0 ; | |
32467 | PyObject * obj3 = 0 ; | |
32468 | PyObject * obj4 = 0 ; | |
32469 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
32470 | char *kwnames[] = { |
32471 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
32472 | }; | |
32473 | ||
994141e6 | 32474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
32475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32477 | { | |
32fe5131 | 32478 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
32479 | if (SWIG_arg_fail(2)) SWIG_fail; |
32480 | } | |
32481 | { | |
32fe5131 | 32482 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
32483 | if (SWIG_arg_fail(3)) SWIG_fail; |
32484 | } | |
32485 | { | |
32fe5131 | 32486 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
32487 | if (SWIG_arg_fail(4)) SWIG_fail; |
32488 | } | |
32489 | { | |
32fe5131 | 32490 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
32491 | if (SWIG_arg_fail(5)) SWIG_fail; |
32492 | } | |
994141e6 | 32493 | if (obj5) { |
093d3ff1 | 32494 | { |
32fe5131 | 32495 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
32496 | if (SWIG_arg_fail(6)) SWIG_fail; |
32497 | } | |
994141e6 | 32498 | } |
d14a1e28 RD |
32499 | { |
32500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32501 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
32502 | ||
32503 | wxPyEndAllowThreads(__tstate); | |
32504 | if (PyErr_Occurred()) SWIG_fail; | |
32505 | } | |
32506 | Py_INCREF(Py_None); resultobj = Py_None; | |
32507 | return resultobj; | |
32508 | fail: | |
32509 | return NULL; | |
32510 | } | |
32511 | ||
32512 | ||
c32bde28 | 32513 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32514 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32515 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32516 | int arg2 ; | |
32517 | int arg3 ; | |
32518 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32519 | PyObject * obj1 = 0 ; |
32520 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32521 | char *kwnames[] = { |
32522 | (char *) "self",(char *) "width",(char *) "height", NULL | |
32523 | }; | |
32524 | ||
994141e6 | 32525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
32526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32528 | { | |
32fe5131 | 32529 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
32530 | if (SWIG_arg_fail(2)) SWIG_fail; |
32531 | } | |
32532 | { | |
32fe5131 | 32533 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
32534 | if (SWIG_arg_fail(3)) SWIG_fail; |
32535 | } | |
d14a1e28 RD |
32536 | { |
32537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32538 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
32539 | ||
32540 | wxPyEndAllowThreads(__tstate); | |
32541 | if (PyErr_Occurred()) SWIG_fail; | |
32542 | } | |
32543 | Py_INCREF(Py_None); resultobj = Py_None; | |
32544 | return resultobj; | |
32545 | fail: | |
32546 | return NULL; | |
32547 | } | |
32548 | ||
32549 | ||
c32bde28 | 32550 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32551 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32552 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32553 | int arg2 ; | |
32554 | int arg3 ; | |
32555 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32556 | PyObject * obj1 = 0 ; |
32557 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32558 | char *kwnames[] = { |
32559 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32560 | }; | |
32561 | ||
994141e6 | 32562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
32563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32565 | { | |
32fe5131 | 32566 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
32567 | if (SWIG_arg_fail(2)) SWIG_fail; |
32568 | } | |
32569 | { | |
32fe5131 | 32570 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
32571 | if (SWIG_arg_fail(3)) SWIG_fail; |
32572 | } | |
d14a1e28 RD |
32573 | { |
32574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32575 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
32576 | ||
32577 | wxPyEndAllowThreads(__tstate); | |
32578 | if (PyErr_Occurred()) SWIG_fail; | |
32579 | } | |
32580 | Py_INCREF(Py_None); resultobj = Py_None; | |
32581 | return resultobj; | |
32582 | fail: | |
32583 | return NULL; | |
32584 | } | |
32585 | ||
32586 | ||
c32bde28 | 32587 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32588 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32589 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32590 | int *arg2 = (int *) 0 ; | |
32591 | int *arg3 = (int *) 0 ; | |
32592 | int temp2 ; | |
c32bde28 | 32593 | int res2 = 0 ; |
d14a1e28 | 32594 | int temp3 ; |
c32bde28 | 32595 | int res3 = 0 ; |
d14a1e28 RD |
32596 | PyObject * obj0 = 0 ; |
32597 | char *kwnames[] = { | |
32598 | (char *) "self", NULL | |
32599 | }; | |
32600 | ||
c32bde28 RD |
32601 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32602 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 32603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32604 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32606 | { |
32607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32608 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
32609 | ||
32610 | wxPyEndAllowThreads(__tstate); | |
32611 | if (PyErr_Occurred()) SWIG_fail; | |
32612 | } | |
32613 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32614 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32615 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32616 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32617 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
32618 | return resultobj; |
32619 | fail: | |
32620 | return NULL; | |
32621 | } | |
32622 | ||
32623 | ||
c32bde28 | 32624 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32625 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32626 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32627 | int *arg2 = (int *) 0 ; | |
32628 | int *arg3 = (int *) 0 ; | |
32629 | int temp2 ; | |
c32bde28 | 32630 | int res2 = 0 ; |
d14a1e28 | 32631 | int temp3 ; |
c32bde28 | 32632 | int res3 = 0 ; |
d14a1e28 RD |
32633 | PyObject * obj0 = 0 ; |
32634 | char *kwnames[] = { | |
32635 | (char *) "self", NULL | |
32636 | }; | |
32637 | ||
c32bde28 RD |
32638 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32639 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 32640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32643 | { |
32644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32645 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
32646 | ||
32647 | wxPyEndAllowThreads(__tstate); | |
32648 | if (PyErr_Occurred()) SWIG_fail; | |
32649 | } | |
32650 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32651 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32652 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32653 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32654 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
32655 | return resultobj; |
32656 | fail: | |
32657 | return NULL; | |
32658 | } | |
32659 | ||
32660 | ||
c32bde28 | 32661 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32662 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32663 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32664 | int *arg2 = (int *) 0 ; | |
32665 | int *arg3 = (int *) 0 ; | |
32666 | int temp2 ; | |
c32bde28 | 32667 | int res2 = 0 ; |
d14a1e28 | 32668 | int temp3 ; |
c32bde28 | 32669 | int res3 = 0 ; |
d14a1e28 RD |
32670 | PyObject * obj0 = 0 ; |
32671 | char *kwnames[] = { | |
32672 | (char *) "self", NULL | |
32673 | }; | |
32674 | ||
c32bde28 RD |
32675 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32676 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 32677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32678 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32680 | { |
32681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32682 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
32683 | ||
32684 | wxPyEndAllowThreads(__tstate); | |
32685 | if (PyErr_Occurred()) SWIG_fail; | |
32686 | } | |
32687 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32688 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32689 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32690 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32691 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
32692 | return resultobj; |
32693 | fail: | |
32694 | return NULL; | |
32695 | } | |
32696 | ||
32697 | ||
c32bde28 | 32698 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32699 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32700 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32701 | wxSize result; | |
32702 | PyObject * obj0 = 0 ; | |
32703 | char *kwnames[] = { | |
32704 | (char *) "self", NULL | |
32705 | }; | |
32706 | ||
32707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32708 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32709 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32710 | { |
32711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32712 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
32713 | ||
32714 | wxPyEndAllowThreads(__tstate); | |
32715 | if (PyErr_Occurred()) SWIG_fail; | |
32716 | } | |
32717 | { | |
32718 | wxSize * resultptr; | |
32fe5131 | 32719 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 32720 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32721 | } |
32722 | return resultobj; | |
32723 | fail: | |
32724 | return NULL; | |
32725 | } | |
32726 | ||
32727 | ||
c32bde28 | 32728 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32729 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32730 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32731 | wxSize result; | |
32732 | PyObject * obj0 = 0 ; | |
32733 | char *kwnames[] = { | |
32734 | (char *) "self", NULL | |
32735 | }; | |
32736 | ||
32737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32740 | { |
32741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32742 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
32743 | ||
32744 | wxPyEndAllowThreads(__tstate); | |
32745 | if (PyErr_Occurred()) SWIG_fail; | |
32746 | } | |
32747 | { | |
32748 | wxSize * resultptr; | |
32fe5131 | 32749 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 32750 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32751 | } |
32752 | return resultobj; | |
32753 | fail: | |
32754 | return NULL; | |
32755 | } | |
32756 | ||
32757 | ||
c32bde28 | 32758 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32759 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32760 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32761 | PyObject * obj0 = 0 ; | |
32762 | char *kwnames[] = { | |
32763 | (char *) "self", NULL | |
32764 | }; | |
32765 | ||
32766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32769 | { |
32770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32771 | (arg1)->base_InitDialog(); | |
32772 | ||
32773 | wxPyEndAllowThreads(__tstate); | |
32774 | if (PyErr_Occurred()) SWIG_fail; | |
32775 | } | |
32776 | Py_INCREF(Py_None); resultobj = Py_None; | |
32777 | return resultobj; | |
32778 | fail: | |
32779 | return NULL; | |
32780 | } | |
32781 | ||
32782 | ||
c32bde28 | 32783 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32784 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32785 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32786 | bool result; | |
32787 | PyObject * obj0 = 0 ; | |
32788 | char *kwnames[] = { | |
32789 | (char *) "self", NULL | |
32790 | }; | |
32791 | ||
32792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32793 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32794 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32795 | { |
32796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32797 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
32798 | ||
32799 | wxPyEndAllowThreads(__tstate); | |
32800 | if (PyErr_Occurred()) SWIG_fail; | |
32801 | } | |
4f89f6a3 RD |
32802 | { |
32803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32804 | } | |
d14a1e28 RD |
32805 | return resultobj; |
32806 | fail: | |
32807 | return NULL; | |
32808 | } | |
32809 | ||
32810 | ||
c32bde28 | 32811 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32812 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32813 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32814 | bool result; | |
32815 | PyObject * obj0 = 0 ; | |
32816 | char *kwnames[] = { | |
32817 | (char *) "self", NULL | |
32818 | }; | |
32819 | ||
32820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32823 | { |
32824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32825 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
32826 | ||
32827 | wxPyEndAllowThreads(__tstate); | |
32828 | if (PyErr_Occurred()) SWIG_fail; | |
32829 | } | |
4f89f6a3 RD |
32830 | { |
32831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32832 | } | |
d14a1e28 RD |
32833 | return resultobj; |
32834 | fail: | |
32835 | return NULL; | |
32836 | } | |
32837 | ||
32838 | ||
c32bde28 | 32839 | static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32840 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32841 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32842 | bool result; | |
32843 | PyObject * obj0 = 0 ; | |
32844 | char *kwnames[] = { | |
32845 | (char *) "self", NULL | |
32846 | }; | |
32847 | ||
32848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32851 | { |
32852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32853 | result = (bool)(arg1)->base_Validate(); | |
32854 | ||
32855 | wxPyEndAllowThreads(__tstate); | |
32856 | if (PyErr_Occurred()) SWIG_fail; | |
32857 | } | |
4f89f6a3 RD |
32858 | { |
32859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32860 | } | |
d14a1e28 RD |
32861 | return resultobj; |
32862 | fail: | |
32863 | return NULL; | |
32864 | } | |
32865 | ||
32866 | ||
c32bde28 | 32867 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32868 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32869 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32870 | bool result; | |
32871 | PyObject * obj0 = 0 ; | |
32872 | char *kwnames[] = { | |
32873 | (char *) "self", NULL | |
32874 | }; | |
32875 | ||
32876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32879 | { |
32880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32881 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
32882 | ||
32883 | wxPyEndAllowThreads(__tstate); | |
32884 | if (PyErr_Occurred()) SWIG_fail; | |
32885 | } | |
4f89f6a3 RD |
32886 | { |
32887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32888 | } | |
d14a1e28 RD |
32889 | return resultobj; |
32890 | fail: | |
32891 | return NULL; | |
32892 | } | |
32893 | ||
32894 | ||
c32bde28 | 32895 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32896 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32897 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32898 | bool result; | |
32899 | PyObject * obj0 = 0 ; | |
32900 | char *kwnames[] = { | |
32901 | (char *) "self", NULL | |
32902 | }; | |
32903 | ||
32904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32907 | { |
32908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32909 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
32910 | ||
32911 | wxPyEndAllowThreads(__tstate); | |
32912 | if (PyErr_Occurred()) SWIG_fail; | |
32913 | } | |
4f89f6a3 RD |
32914 | { |
32915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32916 | } | |
d14a1e28 RD |
32917 | return resultobj; |
32918 | fail: | |
32919 | return NULL; | |
32920 | } | |
32921 | ||
32922 | ||
c32bde28 | 32923 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32924 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32925 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32926 | wxSize result; | |
32927 | PyObject * obj0 = 0 ; | |
32928 | char *kwnames[] = { | |
32929 | (char *) "self", NULL | |
32930 | }; | |
32931 | ||
32932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32933 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32935 | { |
32936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32937 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
32938 | ||
32939 | wxPyEndAllowThreads(__tstate); | |
32940 | if (PyErr_Occurred()) SWIG_fail; | |
32941 | } | |
32942 | { | |
32943 | wxSize * resultptr; | |
32fe5131 | 32944 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 32945 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32946 | } |
32947 | return resultobj; | |
32948 | fail: | |
32949 | return NULL; | |
32950 | } | |
32951 | ||
32952 | ||
c32bde28 | 32953 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32954 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32955 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32956 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32957 | PyObject * obj0 = 0 ; | |
32958 | PyObject * obj1 = 0 ; | |
32959 | char *kwnames[] = { | |
32960 | (char *) "self",(char *) "child", NULL | |
32961 | }; | |
32962 | ||
32963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32966 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32967 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32968 | { |
32969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32970 | (arg1)->base_AddChild(arg2); | |
32971 | ||
32972 | wxPyEndAllowThreads(__tstate); | |
32973 | if (PyErr_Occurred()) SWIG_fail; | |
32974 | } | |
32975 | Py_INCREF(Py_None); resultobj = Py_None; | |
32976 | return resultobj; | |
32977 | fail: | |
32978 | return NULL; | |
32979 | } | |
32980 | ||
32981 | ||
c32bde28 | 32982 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32983 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32984 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
32985 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32986 | PyObject * obj0 = 0 ; | |
32987 | PyObject * obj1 = 0 ; | |
32988 | char *kwnames[] = { | |
32989 | (char *) "self",(char *) "child", NULL | |
32990 | }; | |
32991 | ||
32992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32995 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32996 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32997 | { |
32998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32999 | (arg1)->base_RemoveChild(arg2); | |
33000 | ||
33001 | wxPyEndAllowThreads(__tstate); | |
33002 | if (PyErr_Occurred()) SWIG_fail; | |
33003 | } | |
33004 | Py_INCREF(Py_None); resultobj = Py_None; | |
33005 | return resultobj; | |
33006 | fail: | |
33007 | return NULL; | |
33008 | } | |
33009 | ||
33010 | ||
c32bde28 | 33011 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33012 | PyObject *resultobj = NULL; |
1cb4a8aa RD |
33013 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33014 | bool result; | |
33015 | PyObject * obj0 = 0 ; | |
33016 | char *kwnames[] = { | |
33017 | (char *) "self", NULL | |
33018 | }; | |
33019 | ||
33020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1cb4a8aa RD |
33023 | { |
33024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 33025 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
1cb4a8aa RD |
33026 | |
33027 | wxPyEndAllowThreads(__tstate); | |
33028 | if (PyErr_Occurred()) SWIG_fail; | |
33029 | } | |
33030 | { | |
33031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33032 | } | |
33033 | return resultobj; | |
33034 | fail: | |
33035 | return NULL; | |
33036 | } | |
33037 | ||
33038 | ||
c32bde28 | 33039 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33040 | PyObject *resultobj = NULL; |
db3e571a RD |
33041 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33042 | wxVisualAttributes result; | |
33043 | PyObject * obj0 = 0 ; | |
33044 | char *kwnames[] = { | |
33045 | (char *) "self", NULL | |
33046 | }; | |
33047 | ||
33048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33049 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33050 | if (SWIG_arg_fail(1)) SWIG_fail; | |
db3e571a RD |
33051 | { |
33052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33053 | result = (arg1)->base_GetDefaultAttributes(); | |
33054 | ||
33055 | wxPyEndAllowThreads(__tstate); | |
33056 | if (PyErr_Occurred()) SWIG_fail; | |
33057 | } | |
33058 | { | |
33059 | wxVisualAttributes * resultptr; | |
32fe5131 | 33060 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
db3e571a RD |
33061 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
33062 | } | |
33063 | return resultobj; | |
33064 | fail: | |
33065 | return NULL; | |
33066 | } | |
33067 | ||
33068 | ||
8d38bd1d | 33069 | static PyObject *_wrap_PyControl_base_OnInternalIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33070 | PyObject *resultobj = NULL; |
8d38bd1d RD |
33071 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33072 | PyObject * obj0 = 0 ; | |
33073 | char *kwnames[] = { | |
33074 | (char *) "self", NULL | |
33075 | }; | |
33076 | ||
33077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_OnInternalIdle",kwnames,&obj0)) goto fail; | |
33078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
33079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33080 | { | |
33081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33082 | (arg1)->base_OnInternalIdle(); | |
33083 | ||
33084 | wxPyEndAllowThreads(__tstate); | |
33085 | if (PyErr_Occurred()) SWIG_fail; | |
33086 | } | |
33087 | Py_INCREF(Py_None); resultobj = Py_None; | |
33088 | return resultobj; | |
33089 | fail: | |
33090 | return NULL; | |
33091 | } | |
33092 | ||
33093 | ||
c32bde28 | 33094 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33095 | PyObject *obj; |
33096 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33097 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
33098 | Py_INCREF(obj); | |
33099 | return Py_BuildValue((char *)""); | |
33100 | } | |
c32bde28 | 33101 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33102 | PyObject *resultobj = NULL; |
d14a1e28 | 33103 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
e811c8ce | 33104 | int arg2 = (int) 0 ; |
d14a1e28 RD |
33105 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33106 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33107 | wxHelpEvent *result; | |
33108 | wxPoint temp3 ; | |
994141e6 RD |
33109 | PyObject * obj0 = 0 ; |
33110 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
33111 | PyObject * obj2 = 0 ; |
33112 | char *kwnames[] = { | |
33113 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
33114 | }; | |
33115 | ||
994141e6 RD |
33116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
33117 | if (obj0) { | |
093d3ff1 | 33118 | { |
32fe5131 | 33119 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
33120 | if (SWIG_arg_fail(1)) SWIG_fail; |
33121 | } | |
994141e6 RD |
33122 | } |
33123 | if (obj1) { | |
093d3ff1 | 33124 | { |
32fe5131 | 33125 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
33126 | if (SWIG_arg_fail(2)) SWIG_fail; |
33127 | } | |
994141e6 | 33128 | } |
d14a1e28 RD |
33129 | if (obj2) { |
33130 | { | |
33131 | arg3 = &temp3; | |
33132 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33133 | } | |
33134 | } | |
33135 | { | |
33136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33137 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
33138 | ||
33139 | wxPyEndAllowThreads(__tstate); | |
33140 | if (PyErr_Occurred()) SWIG_fail; | |
33141 | } | |
15afbcd0 | 33142 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
33143 | return resultobj; |
33144 | fail: | |
33145 | return NULL; | |
33146 | } | |
33147 | ||
33148 | ||
c32bde28 | 33149 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33150 | PyObject *resultobj = NULL; |
d14a1e28 | 33151 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
15afbcd0 | 33152 | wxPoint result; |
d14a1e28 RD |
33153 | PyObject * obj0 = 0 ; |
33154 | char *kwnames[] = { | |
33155 | (char *) "self", NULL | |
33156 | }; | |
33157 | ||
33158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33161 | { |
33162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15afbcd0 | 33163 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
33164 | |
33165 | wxPyEndAllowThreads(__tstate); | |
33166 | if (PyErr_Occurred()) SWIG_fail; | |
33167 | } | |
15afbcd0 RD |
33168 | { |
33169 | wxPoint * resultptr; | |
32fe5131 | 33170 | resultptr = new wxPoint(static_cast<wxPoint const & >(result)); |
15afbcd0 RD |
33171 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
33172 | } | |
d14a1e28 RD |
33173 | return resultobj; |
33174 | fail: | |
33175 | return NULL; | |
33176 | } | |
33177 | ||
33178 | ||
c32bde28 | 33179 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33180 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33181 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
33182 | wxPoint *arg2 = 0 ; | |
33183 | wxPoint temp2 ; | |
33184 | PyObject * obj0 = 0 ; | |
33185 | PyObject * obj1 = 0 ; | |
33186 | char *kwnames[] = { | |
33187 | (char *) "self",(char *) "pos", NULL | |
33188 | }; | |
33189 | ||
33190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33193 | { |
33194 | arg2 = &temp2; | |
33195 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33196 | } | |
33197 | { | |
33198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33199 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
33200 | ||
33201 | wxPyEndAllowThreads(__tstate); | |
33202 | if (PyErr_Occurred()) SWIG_fail; | |
33203 | } | |
33204 | Py_INCREF(Py_None); resultobj = Py_None; | |
33205 | return resultobj; | |
33206 | fail: | |
33207 | return NULL; | |
33208 | } | |
33209 | ||
33210 | ||
c32bde28 | 33211 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33212 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33213 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
33214 | wxString *result; | |
33215 | PyObject * obj0 = 0 ; | |
33216 | char *kwnames[] = { | |
33217 | (char *) "self", NULL | |
33218 | }; | |
33219 | ||
33220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33223 | { |
33224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33225 | { | |
33226 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
33227 | result = (wxString *) &_result_ref; | |
33228 | } | |
33229 | ||
33230 | wxPyEndAllowThreads(__tstate); | |
33231 | if (PyErr_Occurred()) SWIG_fail; | |
33232 | } | |
cc6dd355 RD |
33233 | { |
33234 | #if wxUSE_UNICODE | |
33235 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33236 | #else | |
33237 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33238 | #endif | |
33239 | } | |
d14a1e28 RD |
33240 | return resultobj; |
33241 | fail: | |
33242 | return NULL; | |
33243 | } | |
33244 | ||
33245 | ||
c32bde28 | 33246 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33247 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33248 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
33249 | wxString *arg2 = 0 ; | |
ae8162c8 | 33250 | bool temp2 = false ; |
d14a1e28 RD |
33251 | PyObject * obj0 = 0 ; |
33252 | PyObject * obj1 = 0 ; | |
33253 | char *kwnames[] = { | |
33254 | (char *) "self",(char *) "link", NULL | |
33255 | }; | |
33256 | ||
33257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33260 | { |
33261 | arg2 = wxString_in_helper(obj1); | |
33262 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33263 | temp2 = true; |
d14a1e28 RD |
33264 | } |
33265 | { | |
33266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33267 | (arg1)->SetLink((wxString const &)*arg2); | |
33268 | ||
33269 | wxPyEndAllowThreads(__tstate); | |
33270 | if (PyErr_Occurred()) SWIG_fail; | |
33271 | } | |
33272 | Py_INCREF(Py_None); resultobj = Py_None; | |
33273 | { | |
33274 | if (temp2) | |
33275 | delete arg2; | |
33276 | } | |
33277 | return resultobj; | |
33278 | fail: | |
33279 | { | |
33280 | if (temp2) | |
33281 | delete arg2; | |
33282 | } | |
33283 | return NULL; | |
33284 | } | |
33285 | ||
33286 | ||
c32bde28 | 33287 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33288 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33289 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
33290 | wxString *result; | |
33291 | PyObject * obj0 = 0 ; | |
33292 | char *kwnames[] = { | |
33293 | (char *) "self", NULL | |
33294 | }; | |
33295 | ||
33296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33297 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33299 | { |
33300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33301 | { | |
33302 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
33303 | result = (wxString *) &_result_ref; | |
33304 | } | |
33305 | ||
33306 | wxPyEndAllowThreads(__tstate); | |
33307 | if (PyErr_Occurred()) SWIG_fail; | |
33308 | } | |
cc6dd355 RD |
33309 | { |
33310 | #if wxUSE_UNICODE | |
33311 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33312 | #else | |
33313 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33314 | #endif | |
33315 | } | |
d14a1e28 RD |
33316 | return resultobj; |
33317 | fail: | |
33318 | return NULL; | |
33319 | } | |
33320 | ||
33321 | ||
c32bde28 | 33322 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33323 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33324 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
33325 | wxString *arg2 = 0 ; | |
ae8162c8 | 33326 | bool temp2 = false ; |
d14a1e28 RD |
33327 | PyObject * obj0 = 0 ; |
33328 | PyObject * obj1 = 0 ; | |
33329 | char *kwnames[] = { | |
33330 | (char *) "self",(char *) "target", NULL | |
33331 | }; | |
33332 | ||
33333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33334 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33335 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33336 | { |
33337 | arg2 = wxString_in_helper(obj1); | |
33338 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33339 | temp2 = true; |
d14a1e28 RD |
33340 | } |
33341 | { | |
33342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33343 | (arg1)->SetTarget((wxString const &)*arg2); | |
33344 | ||
33345 | wxPyEndAllowThreads(__tstate); | |
33346 | if (PyErr_Occurred()) SWIG_fail; | |
33347 | } | |
33348 | Py_INCREF(Py_None); resultobj = Py_None; | |
33349 | { | |
33350 | if (temp2) | |
33351 | delete arg2; | |
33352 | } | |
33353 | return resultobj; | |
33354 | fail: | |
33355 | { | |
33356 | if (temp2) | |
33357 | delete arg2; | |
33358 | } | |
33359 | return NULL; | |
33360 | } | |
33361 | ||
33362 | ||
c32bde28 | 33363 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33364 | PyObject *obj; |
33365 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33366 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
33367 | Py_INCREF(obj); | |
33368 | return Py_BuildValue((char *)""); | |
33369 | } | |
c32bde28 | 33370 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33371 | PyObject *resultobj = NULL; |
d14a1e28 | 33372 | wxWindow *arg1 = (wxWindow *) NULL ; |
ae8162c8 | 33373 | bool arg2 = (bool) true ; |
d14a1e28 RD |
33374 | wxContextHelp *result; |
33375 | PyObject * obj0 = 0 ; | |
33376 | PyObject * obj1 = 0 ; | |
33377 | char *kwnames[] = { | |
33378 | (char *) "window",(char *) "doNow", NULL | |
33379 | }; | |
33380 | ||
33381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
33382 | if (obj0) { | |
093d3ff1 RD |
33383 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33385 | } |
33386 | if (obj1) { | |
093d3ff1 | 33387 | { |
32fe5131 | 33388 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
33389 | if (SWIG_arg_fail(2)) SWIG_fail; |
33390 | } | |
d14a1e28 RD |
33391 | } |
33392 | { | |
e3b71cb8 | 33393 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33395 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
33396 | ||
33397 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33398 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33399 | } |
15afbcd0 | 33400 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
33401 | return resultobj; |
33402 | fail: | |
33403 | return NULL; | |
33404 | } | |
33405 | ||
33406 | ||
c32bde28 | 33407 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33408 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33409 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; |
33410 | PyObject * obj0 = 0 ; | |
33411 | char *kwnames[] = { | |
33412 | (char *) "self", NULL | |
33413 | }; | |
33414 | ||
33415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33418 | { |
33419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33420 | delete arg1; | |
33421 | ||
33422 | wxPyEndAllowThreads(__tstate); | |
33423 | if (PyErr_Occurred()) SWIG_fail; | |
33424 | } | |
33425 | Py_INCREF(Py_None); resultobj = Py_None; | |
33426 | return resultobj; | |
33427 | fail: | |
33428 | return NULL; | |
33429 | } | |
33430 | ||
33431 | ||
c32bde28 | 33432 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33433 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33434 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; |
33435 | wxWindow *arg2 = (wxWindow *) NULL ; | |
33436 | bool result; | |
33437 | PyObject * obj0 = 0 ; | |
33438 | PyObject * obj1 = 0 ; | |
33439 | char *kwnames[] = { | |
33440 | (char *) "self",(char *) "window", NULL | |
33441 | }; | |
33442 | ||
33443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 33446 | if (obj1) { |
093d3ff1 RD |
33447 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33448 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33449 | } |
33450 | { | |
33451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33452 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
33453 | ||
33454 | wxPyEndAllowThreads(__tstate); | |
33455 | if (PyErr_Occurred()) SWIG_fail; | |
33456 | } | |
4f89f6a3 RD |
33457 | { |
33458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33459 | } | |
d14a1e28 RD |
33460 | return resultobj; |
33461 | fail: | |
33462 | return NULL; | |
33463 | } | |
33464 | ||
33465 | ||
c32bde28 | 33466 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33467 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33468 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; |
33469 | bool result; | |
33470 | PyObject * obj0 = 0 ; | |
33471 | char *kwnames[] = { | |
33472 | (char *) "self", NULL | |
33473 | }; | |
33474 | ||
33475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33478 | { |
33479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33480 | result = (bool)(arg1)->EndContextHelp(); | |
33481 | ||
33482 | wxPyEndAllowThreads(__tstate); | |
33483 | if (PyErr_Occurred()) SWIG_fail; | |
33484 | } | |
4f89f6a3 RD |
33485 | { |
33486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33487 | } | |
d14a1e28 RD |
33488 | return resultobj; |
33489 | fail: | |
33490 | return NULL; | |
33491 | } | |
33492 | ||
33493 | ||
c32bde28 | 33494 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33495 | PyObject *obj; |
33496 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33497 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
33498 | Py_INCREF(obj); | |
33499 | return Py_BuildValue((char *)""); | |
33500 | } | |
c32bde28 | 33501 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33502 | PyObject *resultobj = NULL; |
d14a1e28 | 33503 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 33504 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
33505 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33506 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33507 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33508 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33509 | long arg5 = (long) wxBU_AUTODRAW ; | |
33510 | wxContextHelpButton *result; | |
33511 | wxPoint temp3 ; | |
33512 | wxSize temp4 ; | |
33513 | PyObject * obj0 = 0 ; | |
994141e6 | 33514 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33515 | PyObject * obj2 = 0 ; |
33516 | PyObject * obj3 = 0 ; | |
994141e6 | 33517 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
33518 | char *kwnames[] = { |
33519 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
33520 | }; | |
33521 | ||
994141e6 | 33522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
33523 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33524 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 33525 | if (obj1) { |
093d3ff1 | 33526 | { |
32fe5131 | 33527 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
33528 | if (SWIG_arg_fail(2)) SWIG_fail; |
33529 | } | |
994141e6 | 33530 | } |
d14a1e28 RD |
33531 | if (obj2) { |
33532 | { | |
33533 | arg3 = &temp3; | |
33534 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33535 | } | |
33536 | } | |
33537 | if (obj3) { | |
33538 | { | |
33539 | arg4 = &temp4; | |
33540 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33541 | } | |
33542 | } | |
994141e6 | 33543 | if (obj4) { |
093d3ff1 | 33544 | { |
32fe5131 | 33545 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
33546 | if (SWIG_arg_fail(5)) SWIG_fail; |
33547 | } | |
994141e6 | 33548 | } |
d14a1e28 | 33549 | { |
e3b71cb8 | 33550 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33552 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
33553 | ||
33554 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33555 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33556 | } |
15afbcd0 | 33557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
33558 | return resultobj; |
33559 | fail: | |
33560 | return NULL; | |
33561 | } | |
33562 | ||
33563 | ||
c32bde28 | 33564 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33565 | PyObject *obj; |
33566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33567 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
33568 | Py_INCREF(obj); | |
33569 | return Py_BuildValue((char *)""); | |
33570 | } | |
c32bde28 | 33571 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33572 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33573 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
33574 | wxHelpProvider *result; | |
33575 | PyObject * obj0 = 0 ; | |
33576 | char *kwnames[] = { | |
33577 | (char *) "helpProvider", NULL | |
33578 | }; | |
33579 | ||
33580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33581 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33582 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33583 | { |
33584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33585 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
33586 | ||
33587 | wxPyEndAllowThreads(__tstate); | |
33588 | if (PyErr_Occurred()) SWIG_fail; | |
33589 | } | |
15afbcd0 | 33590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
33591 | return resultobj; |
33592 | fail: | |
33593 | return NULL; | |
33594 | } | |
33595 | ||
33596 | ||
c32bde28 | 33597 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33598 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33599 | wxHelpProvider *result; |
33600 | char *kwnames[] = { | |
33601 | NULL | |
33602 | }; | |
33603 | ||
33604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
33605 | { | |
33606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33607 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
33608 | ||
33609 | wxPyEndAllowThreads(__tstate); | |
33610 | if (PyErr_Occurred()) SWIG_fail; | |
33611 | } | |
15afbcd0 | 33612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
33613 | return resultobj; |
33614 | fail: | |
33615 | return NULL; | |
33616 | } | |
33617 | ||
33618 | ||
c32bde28 | 33619 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33620 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33621 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
33622 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33623 | wxString result; | |
33624 | PyObject * obj0 = 0 ; | |
33625 | PyObject * obj1 = 0 ; | |
33626 | char *kwnames[] = { | |
33627 | (char *) "self",(char *) "window", NULL | |
33628 | }; | |
33629 | ||
33630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33633 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33634 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33635 | { |
33636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33637 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
33638 | ||
33639 | wxPyEndAllowThreads(__tstate); | |
33640 | if (PyErr_Occurred()) SWIG_fail; | |
33641 | } | |
33642 | { | |
33643 | #if wxUSE_UNICODE | |
33644 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33645 | #else | |
33646 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33647 | #endif | |
33648 | } | |
33649 | return resultobj; | |
33650 | fail: | |
33651 | return NULL; | |
33652 | } | |
33653 | ||
33654 | ||
c32bde28 | 33655 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33656 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33657 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
33658 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33659 | bool result; | |
33660 | PyObject * obj0 = 0 ; | |
33661 | PyObject * obj1 = 0 ; | |
33662 | char *kwnames[] = { | |
33663 | (char *) "self",(char *) "window", NULL | |
33664 | }; | |
33665 | ||
33666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33667 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33668 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33669 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33670 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33671 | { |
33672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33673 | result = (bool)(arg1)->ShowHelp(arg2); | |
33674 | ||
33675 | wxPyEndAllowThreads(__tstate); | |
33676 | if (PyErr_Occurred()) SWIG_fail; | |
33677 | } | |
4f89f6a3 RD |
33678 | { |
33679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33680 | } | |
d14a1e28 RD |
33681 | return resultobj; |
33682 | fail: | |
33683 | return NULL; | |
33684 | } | |
33685 | ||
33686 | ||
c32bde28 | 33687 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33688 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33689 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
33690 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33691 | wxString *arg3 = 0 ; | |
ae8162c8 | 33692 | bool temp3 = false ; |
d14a1e28 RD |
33693 | PyObject * obj0 = 0 ; |
33694 | PyObject * obj1 = 0 ; | |
33695 | PyObject * obj2 = 0 ; | |
33696 | char *kwnames[] = { | |
33697 | (char *) "self",(char *) "window",(char *) "text", NULL | |
33698 | }; | |
33699 | ||
33700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
33701 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33702 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33703 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33704 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33705 | { |
33706 | arg3 = wxString_in_helper(obj2); | |
33707 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33708 | temp3 = true; |
d14a1e28 RD |
33709 | } |
33710 | { | |
33711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33712 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
33713 | ||
33714 | wxPyEndAllowThreads(__tstate); | |
33715 | if (PyErr_Occurred()) SWIG_fail; | |
33716 | } | |
33717 | Py_INCREF(Py_None); resultobj = Py_None; | |
33718 | { | |
33719 | if (temp3) | |
33720 | delete arg3; | |
33721 | } | |
33722 | return resultobj; | |
33723 | fail: | |
33724 | { | |
33725 | if (temp3) | |
33726 | delete arg3; | |
33727 | } | |
33728 | return NULL; | |
33729 | } | |
33730 | ||
33731 | ||
c32bde28 | 33732 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33733 | PyObject *resultobj = NULL; |
d14a1e28 | 33734 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
e811c8ce | 33735 | int arg2 ; |
d14a1e28 | 33736 | wxString *arg3 = 0 ; |
ae8162c8 | 33737 | bool temp3 = false ; |
d14a1e28 | 33738 | PyObject * obj0 = 0 ; |
994141e6 | 33739 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33740 | PyObject * obj2 = 0 ; |
33741 | char *kwnames[] = { | |
33742 | (char *) "self",(char *) "id",(char *) "text", NULL | |
33743 | }; | |
33744 | ||
994141e6 | 33745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
33746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33748 | { | |
32fe5131 | 33749 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
33750 | if (SWIG_arg_fail(2)) SWIG_fail; |
33751 | } | |
d14a1e28 RD |
33752 | { |
33753 | arg3 = wxString_in_helper(obj2); | |
33754 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33755 | temp3 = true; |
d14a1e28 RD |
33756 | } |
33757 | { | |
33758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33759 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
33760 | ||
33761 | wxPyEndAllowThreads(__tstate); | |
33762 | if (PyErr_Occurred()) SWIG_fail; | |
33763 | } | |
33764 | Py_INCREF(Py_None); resultobj = Py_None; | |
33765 | { | |
33766 | if (temp3) | |
33767 | delete arg3; | |
33768 | } | |
33769 | return resultobj; | |
33770 | fail: | |
33771 | { | |
33772 | if (temp3) | |
33773 | delete arg3; | |
33774 | } | |
33775 | return NULL; | |
33776 | } | |
33777 | ||
33778 | ||
c32bde28 | 33779 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33780 | PyObject *resultobj = NULL; |
15afbcd0 RD |
33781 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
33782 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33783 | PyObject * obj0 = 0 ; | |
33784 | PyObject * obj1 = 0 ; | |
33785 | char *kwnames[] = { | |
33786 | (char *) "self",(char *) "window", NULL | |
33787 | }; | |
33788 | ||
33789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33790 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33792 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33793 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15afbcd0 RD |
33794 | { |
33795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33796 | (arg1)->RemoveHelp(arg2); | |
33797 | ||
33798 | wxPyEndAllowThreads(__tstate); | |
33799 | if (PyErr_Occurred()) SWIG_fail; | |
33800 | } | |
33801 | Py_INCREF(Py_None); resultobj = Py_None; | |
33802 | return resultobj; | |
33803 | fail: | |
33804 | return NULL; | |
33805 | } | |
33806 | ||
33807 | ||
c32bde28 | 33808 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33809 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33810 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
33811 | PyObject * obj0 = 0 ; | |
33812 | char *kwnames[] = { | |
33813 | (char *) "self", NULL | |
33814 | }; | |
33815 | ||
33816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33819 | { |
33820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33821 | wxHelpProvider_Destroy(arg1); | |
33822 | ||
33823 | wxPyEndAllowThreads(__tstate); | |
33824 | if (PyErr_Occurred()) SWIG_fail; | |
33825 | } | |
33826 | Py_INCREF(Py_None); resultobj = Py_None; | |
33827 | return resultobj; | |
33828 | fail: | |
33829 | return NULL; | |
33830 | } | |
33831 | ||
33832 | ||
c32bde28 | 33833 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33834 | PyObject *obj; |
33835 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33836 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
33837 | Py_INCREF(obj); | |
33838 | return Py_BuildValue((char *)""); | |
33839 | } | |
c32bde28 | 33840 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33841 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33842 | wxSimpleHelpProvider *result; |
33843 | char *kwnames[] = { | |
33844 | NULL | |
33845 | }; | |
33846 | ||
33847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
33848 | { | |
33849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33850 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
33851 | ||
33852 | wxPyEndAllowThreads(__tstate); | |
33853 | if (PyErr_Occurred()) SWIG_fail; | |
33854 | } | |
15afbcd0 | 33855 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
33856 | return resultobj; |
33857 | fail: | |
33858 | return NULL; | |
33859 | } | |
33860 | ||
33861 | ||
c32bde28 | 33862 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33863 | PyObject *obj; |
33864 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33865 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
33866 | Py_INCREF(obj); | |
33867 | return Py_BuildValue((char *)""); | |
33868 | } | |
c32bde28 | 33869 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33870 | PyObject *resultobj = NULL; |
e811c8ce RD |
33871 | wxBitmap *arg1 = 0 ; |
33872 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33873 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33874 | wxGenericDragImage *result; | |
33875 | PyObject * obj0 = 0 ; | |
33876 | PyObject * obj1 = 0 ; | |
33877 | char *kwnames[] = { | |
33878 | (char *) "image",(char *) "cursor", NULL | |
33879 | }; | |
33880 | ||
33881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33882 | { |
33883 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
33884 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33885 | if (arg1 == NULL) { | |
33886 | SWIG_null_ref("wxBitmap"); | |
33887 | } | |
33888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
33889 | } |
33890 | if (obj1) { | |
093d3ff1 RD |
33891 | { |
33892 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33893 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33894 | if (arg2 == NULL) { | |
33895 | SWIG_null_ref("wxCursor"); | |
33896 | } | |
33897 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
33898 | } |
33899 | } | |
33900 | { | |
e3b71cb8 | 33901 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33903 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
33904 | ||
33905 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33906 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33907 | } |
15afbcd0 | 33908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33909 | return resultobj; |
33910 | fail: | |
33911 | return NULL; | |
33912 | } | |
33913 | ||
33914 | ||
c32bde28 | 33915 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33916 | PyObject *resultobj = NULL; |
e811c8ce RD |
33917 | wxIcon *arg1 = 0 ; |
33918 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33919 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33920 | wxGenericDragImage *result; | |
33921 | PyObject * obj0 = 0 ; | |
33922 | PyObject * obj1 = 0 ; | |
33923 | char *kwnames[] = { | |
33924 | (char *) "image",(char *) "cursor", NULL | |
33925 | }; | |
33926 | ||
33927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33928 | { |
33929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
33930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33931 | if (arg1 == NULL) { | |
33932 | SWIG_null_ref("wxIcon"); | |
33933 | } | |
33934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
33935 | } |
33936 | if (obj1) { | |
093d3ff1 RD |
33937 | { |
33938 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33939 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33940 | if (arg2 == NULL) { | |
33941 | SWIG_null_ref("wxCursor"); | |
33942 | } | |
33943 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
33944 | } |
33945 | } | |
33946 | { | |
e3b71cb8 | 33947 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33949 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
33950 | ||
33951 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33952 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33953 | } |
15afbcd0 | 33954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33955 | return resultobj; |
33956 | fail: | |
33957 | return NULL; | |
33958 | } | |
33959 | ||
33960 | ||
c32bde28 | 33961 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33962 | PyObject *resultobj = NULL; |
e811c8ce RD |
33963 | wxString *arg1 = 0 ; |
33964 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33965 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33966 | wxGenericDragImage *result; | |
ae8162c8 | 33967 | bool temp1 = false ; |
e811c8ce RD |
33968 | PyObject * obj0 = 0 ; |
33969 | PyObject * obj1 = 0 ; | |
33970 | char *kwnames[] = { | |
33971 | (char *) "str",(char *) "cursor", NULL | |
33972 | }; | |
33973 | ||
33974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
33975 | { | |
33976 | arg1 = wxString_in_helper(obj0); | |
33977 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 33978 | temp1 = true; |
e811c8ce RD |
33979 | } |
33980 | if (obj1) { | |
093d3ff1 RD |
33981 | { |
33982 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33983 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33984 | if (arg2 == NULL) { | |
33985 | SWIG_null_ref("wxCursor"); | |
33986 | } | |
33987 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
33988 | } |
33989 | } | |
33990 | { | |
e3b71cb8 | 33991 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33993 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
33994 | ||
33995 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33996 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33997 | } |
15afbcd0 | 33998 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33999 | { |
34000 | if (temp1) | |
34001 | delete arg1; | |
34002 | } | |
34003 | return resultobj; | |
34004 | fail: | |
34005 | { | |
34006 | if (temp1) | |
34007 | delete arg1; | |
34008 | } | |
34009 | return NULL; | |
34010 | } | |
34011 | ||
34012 | ||
c32bde28 | 34013 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34014 | PyObject *resultobj = NULL; |
e811c8ce RD |
34015 | wxPyTreeCtrl *arg1 = 0 ; |
34016 | wxTreeItemId *arg2 = 0 ; | |
34017 | wxGenericDragImage *result; | |
34018 | PyObject * obj0 = 0 ; | |
34019 | PyObject * obj1 = 0 ; | |
34020 | char *kwnames[] = { | |
34021 | (char *) "treeCtrl",(char *) "id", NULL | |
34022 | }; | |
34023 | ||
34024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34025 | { |
34026 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34027 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34028 | if (arg1 == NULL) { | |
34029 | SWIG_null_ref("wxPyTreeCtrl"); | |
34030 | } | |
34031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce | 34032 | } |
093d3ff1 RD |
34033 | { |
34034 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
34035 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34036 | if (arg2 == NULL) { | |
34037 | SWIG_null_ref("wxTreeItemId"); | |
34038 | } | |
34039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
34040 | } |
34041 | { | |
e3b71cb8 | 34042 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
34043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34044 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
34045 | ||
34046 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34047 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 34048 | } |
15afbcd0 | 34049 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
34050 | return resultobj; |
34051 | fail: | |
34052 | return NULL; | |
34053 | } | |
34054 | ||
34055 | ||
c32bde28 | 34056 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34057 | PyObject *resultobj = NULL; |
e811c8ce RD |
34058 | wxPyListCtrl *arg1 = 0 ; |
34059 | long arg2 ; | |
34060 | wxGenericDragImage *result; | |
34061 | PyObject * obj0 = 0 ; | |
994141e6 | 34062 | PyObject * obj1 = 0 ; |
e811c8ce RD |
34063 | char *kwnames[] = { |
34064 | (char *) "listCtrl",(char *) "id", NULL | |
34065 | }; | |
34066 | ||
994141e6 | 34067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
34068 | { |
34069 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34070 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34071 | if (arg1 == NULL) { | |
34072 | SWIG_null_ref("wxPyListCtrl"); | |
34073 | } | |
34074 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34075 | } | |
34076 | { | |
32fe5131 | 34077 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 | 34078 | if (SWIG_arg_fail(2)) SWIG_fail; |
994141e6 | 34079 | } |
e811c8ce | 34080 | { |
e3b71cb8 | 34081 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
34082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34083 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
34084 | ||
34085 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34086 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 34087 | } |
15afbcd0 | 34088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
34089 | return resultobj; |
34090 | fail: | |
34091 | return NULL; | |
34092 | } | |
34093 | ||
34094 | ||
c32bde28 | 34095 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34096 | PyObject *resultobj = NULL; |
e811c8ce RD |
34097 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34098 | PyObject * obj0 = 0 ; | |
34099 | char *kwnames[] = { | |
34100 | (char *) "self", NULL | |
34101 | }; | |
34102 | ||
34103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34104 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34105 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34106 | { |
34107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34108 | delete arg1; | |
34109 | ||
34110 | wxPyEndAllowThreads(__tstate); | |
34111 | if (PyErr_Occurred()) SWIG_fail; | |
34112 | } | |
34113 | Py_INCREF(Py_None); resultobj = Py_None; | |
34114 | return resultobj; | |
34115 | fail: | |
34116 | return NULL; | |
34117 | } | |
34118 | ||
34119 | ||
c32bde28 | 34120 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34121 | PyObject *resultobj = NULL; |
e811c8ce RD |
34122 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34123 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
34124 | PyObject * obj0 = 0 ; | |
34125 | PyObject * obj1 = 0 ; | |
34126 | char *kwnames[] = { | |
34127 | (char *) "self",(char *) "bitmap", NULL | |
34128 | }; | |
34129 | ||
34130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34133 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
34134 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
34135 | { |
34136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34137 | (arg1)->SetBackingBitmap(arg2); | |
34138 | ||
34139 | wxPyEndAllowThreads(__tstate); | |
34140 | if (PyErr_Occurred()) SWIG_fail; | |
34141 | } | |
34142 | Py_INCREF(Py_None); resultobj = Py_None; | |
34143 | return resultobj; | |
34144 | fail: | |
34145 | return NULL; | |
34146 | } | |
34147 | ||
34148 | ||
c32bde28 | 34149 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34150 | PyObject *resultobj = NULL; |
e811c8ce RD |
34151 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34152 | wxPoint *arg2 = 0 ; | |
34153 | wxWindow *arg3 = (wxWindow *) 0 ; | |
ae8162c8 | 34154 | bool arg4 = (bool) false ; |
e811c8ce RD |
34155 | wxRect *arg5 = (wxRect *) NULL ; |
34156 | bool result; | |
34157 | wxPoint temp2 ; | |
34158 | PyObject * obj0 = 0 ; | |
34159 | PyObject * obj1 = 0 ; | |
34160 | PyObject * obj2 = 0 ; | |
34161 | PyObject * obj3 = 0 ; | |
34162 | PyObject * obj4 = 0 ; | |
34163 | char *kwnames[] = { | |
34164 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
34165 | }; | |
34166 | ||
34167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34170 | { |
34171 | arg2 = &temp2; | |
34172 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34173 | } | |
093d3ff1 RD |
34174 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
34175 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e811c8ce | 34176 | if (obj3) { |
093d3ff1 | 34177 | { |
32fe5131 | 34178 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
34179 | if (SWIG_arg_fail(4)) SWIG_fail; |
34180 | } | |
e811c8ce RD |
34181 | } |
34182 | if (obj4) { | |
093d3ff1 RD |
34183 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
34184 | if (SWIG_arg_fail(5)) SWIG_fail; | |
e811c8ce RD |
34185 | } |
34186 | { | |
34187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34188 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
34189 | ||
34190 | wxPyEndAllowThreads(__tstate); | |
34191 | if (PyErr_Occurred()) SWIG_fail; | |
34192 | } | |
4f89f6a3 RD |
34193 | { |
34194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34195 | } | |
e811c8ce RD |
34196 | return resultobj; |
34197 | fail: | |
34198 | return NULL; | |
34199 | } | |
34200 | ||
34201 | ||
c32bde28 | 34202 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34203 | PyObject *resultobj = NULL; |
e811c8ce RD |
34204 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34205 | wxPoint *arg2 = 0 ; | |
34206 | wxWindow *arg3 = (wxWindow *) 0 ; | |
34207 | wxWindow *arg4 = (wxWindow *) 0 ; | |
34208 | bool result; | |
34209 | wxPoint temp2 ; | |
34210 | PyObject * obj0 = 0 ; | |
34211 | PyObject * obj1 = 0 ; | |
34212 | PyObject * obj2 = 0 ; | |
34213 | PyObject * obj3 = 0 ; | |
34214 | char *kwnames[] = { | |
34215 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
34216 | }; | |
34217 | ||
34218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
34219 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34220 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34221 | { |
34222 | arg2 = &temp2; | |
34223 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34224 | } | |
093d3ff1 RD |
34225 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
34226 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34227 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34228 | if (SWIG_arg_fail(4)) SWIG_fail; | |
e811c8ce RD |
34229 | { |
34230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34231 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
34232 | ||
34233 | wxPyEndAllowThreads(__tstate); | |
34234 | if (PyErr_Occurred()) SWIG_fail; | |
34235 | } | |
4f89f6a3 RD |
34236 | { |
34237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34238 | } | |
e811c8ce RD |
34239 | return resultobj; |
34240 | fail: | |
34241 | return NULL; | |
34242 | } | |
34243 | ||
34244 | ||
c32bde28 | 34245 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34246 | PyObject *resultobj = NULL; |
e811c8ce RD |
34247 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34248 | bool result; | |
34249 | PyObject * obj0 = 0 ; | |
34250 | char *kwnames[] = { | |
34251 | (char *) "self", NULL | |
34252 | }; | |
34253 | ||
34254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34257 | { |
34258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34259 | result = (bool)(arg1)->EndDrag(); | |
34260 | ||
34261 | wxPyEndAllowThreads(__tstate); | |
34262 | if (PyErr_Occurred()) SWIG_fail; | |
34263 | } | |
4f89f6a3 RD |
34264 | { |
34265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34266 | } | |
e811c8ce RD |
34267 | return resultobj; |
34268 | fail: | |
34269 | return NULL; | |
34270 | } | |
34271 | ||
34272 | ||
c32bde28 | 34273 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34274 | PyObject *resultobj = NULL; |
e811c8ce RD |
34275 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34276 | wxPoint *arg2 = 0 ; | |
34277 | bool result; | |
34278 | wxPoint temp2 ; | |
34279 | PyObject * obj0 = 0 ; | |
34280 | PyObject * obj1 = 0 ; | |
34281 | char *kwnames[] = { | |
34282 | (char *) "self",(char *) "pt", NULL | |
34283 | }; | |
34284 | ||
34285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34288 | { |
34289 | arg2 = &temp2; | |
34290 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34291 | } | |
34292 | { | |
34293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34294 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
34295 | ||
34296 | wxPyEndAllowThreads(__tstate); | |
34297 | if (PyErr_Occurred()) SWIG_fail; | |
34298 | } | |
4f89f6a3 RD |
34299 | { |
34300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34301 | } | |
e811c8ce RD |
34302 | return resultobj; |
34303 | fail: | |
34304 | return NULL; | |
34305 | } | |
34306 | ||
34307 | ||
c32bde28 | 34308 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34309 | PyObject *resultobj = NULL; |
e811c8ce RD |
34310 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34311 | bool result; | |
34312 | PyObject * obj0 = 0 ; | |
34313 | char *kwnames[] = { | |
34314 | (char *) "self", NULL | |
34315 | }; | |
34316 | ||
34317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34320 | { |
34321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34322 | result = (bool)(arg1)->Show(); | |
34323 | ||
34324 | wxPyEndAllowThreads(__tstate); | |
34325 | if (PyErr_Occurred()) SWIG_fail; | |
34326 | } | |
4f89f6a3 RD |
34327 | { |
34328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34329 | } | |
e811c8ce RD |
34330 | return resultobj; |
34331 | fail: | |
34332 | return NULL; | |
34333 | } | |
34334 | ||
34335 | ||
c32bde28 | 34336 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34337 | PyObject *resultobj = NULL; |
e811c8ce RD |
34338 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34339 | bool result; | |
34340 | PyObject * obj0 = 0 ; | |
34341 | char *kwnames[] = { | |
34342 | (char *) "self", NULL | |
34343 | }; | |
34344 | ||
34345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34346 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34347 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34348 | { |
34349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34350 | result = (bool)(arg1)->Hide(); | |
34351 | ||
34352 | wxPyEndAllowThreads(__tstate); | |
34353 | if (PyErr_Occurred()) SWIG_fail; | |
34354 | } | |
4f89f6a3 RD |
34355 | { |
34356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34357 | } | |
e811c8ce RD |
34358 | return resultobj; |
34359 | fail: | |
34360 | return NULL; | |
34361 | } | |
34362 | ||
34363 | ||
c32bde28 | 34364 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34365 | PyObject *resultobj = NULL; |
e811c8ce RD |
34366 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34367 | wxPoint *arg2 = 0 ; | |
34368 | wxRect result; | |
34369 | wxPoint temp2 ; | |
34370 | PyObject * obj0 = 0 ; | |
34371 | PyObject * obj1 = 0 ; | |
34372 | char *kwnames[] = { | |
34373 | (char *) "self",(char *) "pos", NULL | |
34374 | }; | |
34375 | ||
34376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34379 | { |
34380 | arg2 = &temp2; | |
34381 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34382 | } | |
34383 | { | |
34384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34385 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
34386 | ||
34387 | wxPyEndAllowThreads(__tstate); | |
34388 | if (PyErr_Occurred()) SWIG_fail; | |
34389 | } | |
34390 | { | |
34391 | wxRect * resultptr; | |
32fe5131 | 34392 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
15afbcd0 | 34393 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
e811c8ce RD |
34394 | } |
34395 | return resultobj; | |
34396 | fail: | |
34397 | return NULL; | |
34398 | } | |
34399 | ||
34400 | ||
c32bde28 | 34401 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34402 | PyObject *resultobj = NULL; |
e811c8ce RD |
34403 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34404 | wxDC *arg2 = 0 ; | |
34405 | wxPoint *arg3 = 0 ; | |
34406 | bool result; | |
34407 | wxPoint temp3 ; | |
34408 | PyObject * obj0 = 0 ; | |
34409 | PyObject * obj1 = 0 ; | |
34410 | PyObject * obj2 = 0 ; | |
34411 | char *kwnames[] = { | |
34412 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
34413 | }; | |
34414 | ||
34415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34418 | { | |
34419 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34420 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34421 | if (arg2 == NULL) { | |
34422 | SWIG_null_ref("wxDC"); | |
34423 | } | |
34424 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
34425 | } |
34426 | { | |
34427 | arg3 = &temp3; | |
34428 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34429 | } | |
34430 | { | |
34431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34432 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
34433 | ||
34434 | wxPyEndAllowThreads(__tstate); | |
34435 | if (PyErr_Occurred()) SWIG_fail; | |
34436 | } | |
4f89f6a3 RD |
34437 | { |
34438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34439 | } | |
e811c8ce RD |
34440 | return resultobj; |
34441 | fail: | |
34442 | return NULL; | |
34443 | } | |
34444 | ||
34445 | ||
c32bde28 | 34446 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34447 | PyObject *resultobj = NULL; |
e811c8ce RD |
34448 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34449 | wxDC *arg2 = 0 ; | |
34450 | wxMemoryDC *arg3 = 0 ; | |
34451 | wxRect *arg4 = 0 ; | |
34452 | wxRect *arg5 = 0 ; | |
34453 | bool result; | |
34454 | wxRect temp4 ; | |
34455 | wxRect temp5 ; | |
34456 | PyObject * obj0 = 0 ; | |
34457 | PyObject * obj1 = 0 ; | |
34458 | PyObject * obj2 = 0 ; | |
34459 | PyObject * obj3 = 0 ; | |
34460 | PyObject * obj4 = 0 ; | |
34461 | char *kwnames[] = { | |
34462 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
34463 | }; | |
34464 | ||
34465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34468 | { | |
34469 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34470 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34471 | if (arg2 == NULL) { | |
34472 | SWIG_null_ref("wxDC"); | |
34473 | } | |
34474 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34475 | } | |
34476 | { | |
34477 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0); | |
34478 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34479 | if (arg3 == NULL) { | |
34480 | SWIG_null_ref("wxMemoryDC"); | |
34481 | } | |
34482 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e811c8ce RD |
34483 | } |
34484 | { | |
34485 | arg4 = &temp4; | |
34486 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34487 | } | |
34488 | { | |
34489 | arg5 = &temp5; | |
34490 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
34491 | } | |
34492 | { | |
34493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34494 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
34495 | ||
34496 | wxPyEndAllowThreads(__tstate); | |
34497 | if (PyErr_Occurred()) SWIG_fail; | |
34498 | } | |
4f89f6a3 RD |
34499 | { |
34500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34501 | } | |
e811c8ce RD |
34502 | return resultobj; |
34503 | fail: | |
34504 | return NULL; | |
34505 | } | |
34506 | ||
34507 | ||
c32bde28 | 34508 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34509 | PyObject *resultobj = NULL; |
e811c8ce RD |
34510 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
34511 | wxPoint *arg2 = 0 ; | |
34512 | wxPoint *arg3 = 0 ; | |
34513 | bool arg4 ; | |
34514 | bool arg5 ; | |
34515 | bool result; | |
34516 | wxPoint temp2 ; | |
34517 | wxPoint temp3 ; | |
34518 | PyObject * obj0 = 0 ; | |
34519 | PyObject * obj1 = 0 ; | |
34520 | PyObject * obj2 = 0 ; | |
34521 | PyObject * obj3 = 0 ; | |
34522 | PyObject * obj4 = 0 ; | |
34523 | char *kwnames[] = { | |
34524 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
34525 | }; | |
34526 | ||
34527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34528 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34529 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34530 | { |
34531 | arg2 = &temp2; | |
34532 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34533 | } | |
34534 | { | |
34535 | arg3 = &temp3; | |
34536 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34537 | } | |
093d3ff1 | 34538 | { |
32fe5131 | 34539 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
34540 | if (SWIG_arg_fail(4)) SWIG_fail; |
34541 | } | |
34542 | { | |
32fe5131 | 34543 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
093d3ff1 RD |
34544 | if (SWIG_arg_fail(5)) SWIG_fail; |
34545 | } | |
e811c8ce RD |
34546 | { |
34547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34548 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
34549 | ||
34550 | wxPyEndAllowThreads(__tstate); | |
34551 | if (PyErr_Occurred()) SWIG_fail; | |
34552 | } | |
4f89f6a3 RD |
34553 | { |
34554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34555 | } | |
e811c8ce RD |
34556 | return resultobj; |
34557 | fail: | |
34558 | return NULL; | |
34559 | } | |
34560 | ||
34561 | ||
c32bde28 | 34562 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { |
e811c8ce RD |
34563 | PyObject *obj; |
34564 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34565 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
34566 | Py_INCREF(obj); | |
34567 | return Py_BuildValue((char *)""); | |
34568 | } | |
53aa7709 RD |
34569 | static int _wrap_DatePickerCtrlNameStr_set(PyObject *) { |
34570 | PyErr_SetString(PyExc_TypeError,"Variable DatePickerCtrlNameStr is read-only."); | |
34571 | return 1; | |
34572 | } | |
34573 | ||
34574 | ||
34575 | static PyObject *_wrap_DatePickerCtrlNameStr_get(void) { | |
32fe5131 | 34576 | PyObject *pyobj = NULL; |
53aa7709 RD |
34577 | |
34578 | { | |
34579 | #if wxUSE_UNICODE | |
34580 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
34581 | #else | |
34582 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
34583 | #endif | |
34584 | } | |
34585 | return pyobj; | |
34586 | } | |
34587 | ||
34588 | ||
34589 | static PyObject *_wrap_new_DatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 34590 | PyObject *resultobj = NULL; |
53aa7709 RD |
34591 | wxWindow *arg1 = (wxWindow *) 0 ; |
34592 | int arg2 = (int) -1 ; | |
34593 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
34594 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
34595 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
34596 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
34597 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
34598 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
34599 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
34600 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
34601 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
34602 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
34603 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
34604 | wxDatePickerCtrl *result; | |
34605 | wxPoint temp4 ; | |
34606 | wxSize temp5 ; | |
34607 | bool temp8 = false ; | |
34608 | PyObject * obj0 = 0 ; | |
34609 | PyObject * obj1 = 0 ; | |
34610 | PyObject * obj2 = 0 ; | |
34611 | PyObject * obj3 = 0 ; | |
34612 | PyObject * obj4 = 0 ; | |
34613 | PyObject * obj5 = 0 ; | |
34614 | PyObject * obj6 = 0 ; | |
34615 | PyObject * obj7 = 0 ; | |
34616 | char *kwnames[] = { | |
34617 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34618 | }; | |
34619 | ||
34620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
34621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34623 | if (obj1) { | |
34624 | { | |
32fe5131 | 34625 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
53aa7709 RD |
34626 | if (SWIG_arg_fail(2)) SWIG_fail; |
34627 | } | |
34628 | } | |
34629 | if (obj2) { | |
34630 | { | |
34631 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34632 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34633 | if (arg3 == NULL) { | |
34634 | SWIG_null_ref("wxDateTime"); | |
34635 | } | |
34636 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34637 | } | |
34638 | } | |
34639 | if (obj3) { | |
34640 | { | |
34641 | arg4 = &temp4; | |
34642 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
34643 | } | |
34644 | } | |
34645 | if (obj4) { | |
34646 | { | |
34647 | arg5 = &temp5; | |
34648 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
34649 | } | |
34650 | } | |
34651 | if (obj5) { | |
34652 | { | |
32fe5131 | 34653 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
53aa7709 RD |
34654 | if (SWIG_arg_fail(6)) SWIG_fail; |
34655 | } | |
34656 | } | |
34657 | if (obj6) { | |
34658 | { | |
34659 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
34660 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34661 | if (arg7 == NULL) { | |
34662 | SWIG_null_ref("wxValidator"); | |
34663 | } | |
34664 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34665 | } | |
34666 | } | |
34667 | if (obj7) { | |
34668 | { | |
34669 | arg8 = wxString_in_helper(obj7); | |
34670 | if (arg8 == NULL) SWIG_fail; | |
34671 | temp8 = true; | |
34672 | } | |
34673 | } | |
34674 | { | |
34675 | if (!wxPyCheckForApp()) SWIG_fail; | |
34676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34677 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34678 | ||
34679 | wxPyEndAllowThreads(__tstate); | |
34680 | if (PyErr_Occurred()) SWIG_fail; | |
34681 | } | |
34682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
34683 | { | |
34684 | if (temp8) | |
34685 | delete arg8; | |
34686 | } | |
34687 | return resultobj; | |
34688 | fail: | |
34689 | { | |
34690 | if (temp8) | |
34691 | delete arg8; | |
34692 | } | |
34693 | return NULL; | |
34694 | } | |
34695 | ||
34696 | ||
34697 | static PyObject *_wrap_new_PreDatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 34698 | PyObject *resultobj = NULL; |
53aa7709 RD |
34699 | wxDatePickerCtrl *result; |
34700 | char *kwnames[] = { | |
34701 | NULL | |
34702 | }; | |
34703 | ||
34704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDatePickerCtrl",kwnames)) goto fail; | |
34705 | { | |
34706 | if (!wxPyCheckForApp()) SWIG_fail; | |
34707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34708 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
34709 | ||
34710 | wxPyEndAllowThreads(__tstate); | |
34711 | if (PyErr_Occurred()) SWIG_fail; | |
34712 | } | |
34713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
34714 | return resultobj; | |
34715 | fail: | |
34716 | return NULL; | |
34717 | } | |
34718 | ||
34719 | ||
34720 | static PyObject *_wrap_DatePickerCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 34721 | PyObject *resultobj = NULL; |
53aa7709 RD |
34722 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
34723 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34724 | int arg3 = (int) -1 ; | |
34725 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
34726 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
34727 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
34728 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
34729 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
34730 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
34731 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
34732 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
34733 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
34734 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
34735 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
34736 | bool result; | |
34737 | wxPoint temp5 ; | |
34738 | wxSize temp6 ; | |
34739 | bool temp9 = false ; | |
34740 | PyObject * obj0 = 0 ; | |
34741 | PyObject * obj1 = 0 ; | |
34742 | PyObject * obj2 = 0 ; | |
34743 | PyObject * obj3 = 0 ; | |
34744 | PyObject * obj4 = 0 ; | |
34745 | PyObject * obj5 = 0 ; | |
34746 | PyObject * obj6 = 0 ; | |
34747 | PyObject * obj7 = 0 ; | |
34748 | PyObject * obj8 = 0 ; | |
34749 | char *kwnames[] = { | |
34750 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34751 | }; | |
34752 | ||
34753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
34754 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34755 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34756 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34757 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34758 | if (obj2) { | |
34759 | { | |
32fe5131 | 34760 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
53aa7709 RD |
34761 | if (SWIG_arg_fail(3)) SWIG_fail; |
34762 | } | |
34763 | } | |
34764 | if (obj3) { | |
34765 | { | |
34766 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34767 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34768 | if (arg4 == NULL) { | |
34769 | SWIG_null_ref("wxDateTime"); | |
34770 | } | |
34771 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34772 | } | |
34773 | } | |
34774 | if (obj4) { | |
34775 | { | |
34776 | arg5 = &temp5; | |
34777 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
34778 | } | |
34779 | } | |
34780 | if (obj5) { | |
34781 | { | |
34782 | arg6 = &temp6; | |
34783 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
34784 | } | |
34785 | } | |
34786 | if (obj6) { | |
34787 | { | |
32fe5131 | 34788 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
53aa7709 RD |
34789 | if (SWIG_arg_fail(7)) SWIG_fail; |
34790 | } | |
34791 | } | |
34792 | if (obj7) { | |
34793 | { | |
34794 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
34795 | if (SWIG_arg_fail(8)) SWIG_fail; | |
34796 | if (arg8 == NULL) { | |
34797 | SWIG_null_ref("wxValidator"); | |
34798 | } | |
34799 | if (SWIG_arg_fail(8)) SWIG_fail; | |
34800 | } | |
34801 | } | |
34802 | if (obj8) { | |
34803 | { | |
34804 | arg9 = wxString_in_helper(obj8); | |
34805 | if (arg9 == NULL) SWIG_fail; | |
34806 | temp9 = true; | |
34807 | } | |
34808 | } | |
34809 | { | |
34810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34811 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
34812 | ||
34813 | wxPyEndAllowThreads(__tstate); | |
34814 | if (PyErr_Occurred()) SWIG_fail; | |
34815 | } | |
34816 | { | |
34817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34818 | } | |
34819 | { | |
34820 | if (temp9) | |
34821 | delete arg9; | |
34822 | } | |
34823 | return resultobj; | |
34824 | fail: | |
34825 | { | |
34826 | if (temp9) | |
34827 | delete arg9; | |
34828 | } | |
34829 | return NULL; | |
34830 | } | |
34831 | ||
34832 | ||
34833 | static PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 34834 | PyObject *resultobj = NULL; |
53aa7709 RD |
34835 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
34836 | wxDateTime *arg2 = 0 ; | |
34837 | PyObject * obj0 = 0 ; | |
34838 | PyObject * obj1 = 0 ; | |
34839 | char *kwnames[] = { | |
34840 | (char *) "self",(char *) "dt", NULL | |
34841 | }; | |
34842 | ||
34843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
34844 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34846 | { | |
34847 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34848 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34849 | if (arg2 == NULL) { | |
34850 | SWIG_null_ref("wxDateTime"); | |
34851 | } | |
34852 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34853 | } | |
34854 | { | |
34855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34856 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
34857 | ||
34858 | wxPyEndAllowThreads(__tstate); | |
34859 | if (PyErr_Occurred()) SWIG_fail; | |
34860 | } | |
34861 | Py_INCREF(Py_None); resultobj = Py_None; | |
34862 | return resultobj; | |
34863 | fail: | |
34864 | return NULL; | |
34865 | } | |
34866 | ||
34867 | ||
34868 | static PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 34869 | PyObject *resultobj = NULL; |
53aa7709 RD |
34870 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
34871 | wxDateTime result; | |
34872 | PyObject * obj0 = 0 ; | |
34873 | char *kwnames[] = { | |
34874 | (char *) "self", NULL | |
34875 | }; | |
34876 | ||
34877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetValue",kwnames,&obj0)) goto fail; | |
34878 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34879 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34880 | { | |
34881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34882 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
34883 | ||
34884 | wxPyEndAllowThreads(__tstate); | |
34885 | if (PyErr_Occurred()) SWIG_fail; | |
34886 | } | |
34887 | { | |
34888 | wxDateTime * resultptr; | |
32fe5131 | 34889 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
53aa7709 RD |
34890 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
34891 | } | |
34892 | return resultobj; | |
34893 | fail: | |
34894 | return NULL; | |
34895 | } | |
34896 | ||
34897 | ||
34898 | static PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 34899 | PyObject *resultobj = NULL; |
53aa7709 RD |
34900 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
34901 | wxDateTime *arg2 = 0 ; | |
34902 | wxDateTime *arg3 = 0 ; | |
34903 | PyObject * obj0 = 0 ; | |
34904 | PyObject * obj1 = 0 ; | |
34905 | PyObject * obj2 = 0 ; | |
34906 | char *kwnames[] = { | |
34907 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
34908 | }; | |
34909 | ||
34910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34913 | { | |
34914 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34915 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34916 | if (arg2 == NULL) { | |
34917 | SWIG_null_ref("wxDateTime"); | |
34918 | } | |
34919 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34920 | } | |
34921 | { | |
34922 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34923 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34924 | if (arg3 == NULL) { | |
34925 | SWIG_null_ref("wxDateTime"); | |
34926 | } | |
34927 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34928 | } | |
34929 | { | |
34930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34931 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
34932 | ||
34933 | wxPyEndAllowThreads(__tstate); | |
34934 | if (PyErr_Occurred()) SWIG_fail; | |
34935 | } | |
34936 | Py_INCREF(Py_None); resultobj = Py_None; | |
34937 | return resultobj; | |
34938 | fail: | |
34939 | return NULL; | |
34940 | } | |
34941 | ||
34942 | ||
34943 | static PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 34944 | PyObject *resultobj = NULL; |
53aa7709 RD |
34945 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
34946 | wxDateTime result; | |
34947 | PyObject * obj0 = 0 ; | |
34948 | char *kwnames[] = { | |
34949 | (char *) "self", NULL | |
34950 | }; | |
34951 | ||
34952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetLowerLimit",kwnames,&obj0)) goto fail; | |
34953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34955 | { | |
34956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34957 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
34958 | ||
34959 | wxPyEndAllowThreads(__tstate); | |
34960 | if (PyErr_Occurred()) SWIG_fail; | |
34961 | } | |
34962 | { | |
34963 | wxDateTime * resultptr; | |
32fe5131 | 34964 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
53aa7709 RD |
34965 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
34966 | } | |
34967 | return resultobj; | |
34968 | fail: | |
34969 | return NULL; | |
34970 | } | |
34971 | ||
34972 | ||
34973 | static PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 34974 | PyObject *resultobj = NULL; |
53aa7709 RD |
34975 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
34976 | wxDateTime result; | |
34977 | PyObject * obj0 = 0 ; | |
34978 | char *kwnames[] = { | |
34979 | (char *) "self", NULL | |
34980 | }; | |
34981 | ||
34982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetUpperLimit",kwnames,&obj0)) goto fail; | |
34983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34985 | { | |
34986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34987 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
34988 | ||
34989 | wxPyEndAllowThreads(__tstate); | |
34990 | if (PyErr_Occurred()) SWIG_fail; | |
34991 | } | |
34992 | { | |
34993 | wxDateTime * resultptr; | |
32fe5131 | 34994 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
53aa7709 RD |
34995 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
34996 | } | |
34997 | return resultobj; | |
34998 | fail: | |
34999 | return NULL; | |
35000 | } | |
35001 | ||
35002 | ||
35003 | static PyObject * DatePickerCtrl_swigregister(PyObject *, PyObject *args) { | |
35004 | PyObject *obj; | |
35005 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35006 | SWIG_TypeClientData(SWIGTYPE_p_wxDatePickerCtrl, obj); | |
35007 | Py_INCREF(obj); | |
35008 | return Py_BuildValue((char *)""); | |
35009 | } | |
e811c8ce | 35010 | static PyMethodDef SwigMethods[] = { |
093d3ff1 RD |
35011 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, |
35012 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35013 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35014 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35015 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35016 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35017 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
35018 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35019 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35020 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35021 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35022 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35023 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35024 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35025 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35026 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35027 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35028 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35029 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35030 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35031 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35032 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
35033 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35034 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35035 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35036 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35037 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35038 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35039 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35040 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35041 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35042 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35043 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35044 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
35045 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35046 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35047 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd | 35048 | { (char *)"Choice_GetCurrentSelection", (PyCFunction) _wrap_Choice_GetCurrentSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35049 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
35050 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
35051 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35052 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35053 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35054 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35055 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35056 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35057 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35058 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35059 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35060 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35061 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35062 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35063 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35064 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b9d6a5f3 | 35065 | { (char *)"ComboBox_GetMark", (PyCFunction) _wrap_ComboBox_GetMark, METH_VARARGS | METH_KEYWORDS, NULL}, |
943e8dfd | 35066 | { (char *)"ComboBox_GetCurrentSelection", (PyCFunction) _wrap_ComboBox_GetCurrentSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35067 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
35068 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35069 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35070 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35071 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35072 | { (char *)"ComboBox_IsEditable", (PyCFunction) _wrap_ComboBox_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35073 | { (char *)"ComboBox_Undo", (PyCFunction) _wrap_ComboBox_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35074 | { (char *)"ComboBox_Redo", (PyCFunction) _wrap_ComboBox_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35075 | { (char *)"ComboBox_SelectAll", (PyCFunction) _wrap_ComboBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35076 | { (char *)"ComboBox_CanCopy", (PyCFunction) _wrap_ComboBox_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35077 | { (char *)"ComboBox_CanCut", (PyCFunction) _wrap_ComboBox_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35078 | { (char *)"ComboBox_CanPaste", (PyCFunction) _wrap_ComboBox_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35079 | { (char *)"ComboBox_CanUndo", (PyCFunction) _wrap_ComboBox_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35080 | { (char *)"ComboBox_CanRedo", (PyCFunction) _wrap_ComboBox_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35081 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35082 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
35083 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35084 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35085 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35086 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35087 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35088 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35089 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35090 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35091 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35092 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35093 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35094 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35095 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35096 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
35097 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35098 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35099 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35100 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35101 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
35102 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35103 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35104 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35105 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35106 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35107 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35108 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
35109 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35110 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35111 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd | 35112 | { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35113 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
35114 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
35115 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35116 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35117 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35118 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35119 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35120 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35121 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35122 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
35123 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35124 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35125 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35126 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35127 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35128 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35129 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35130 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35131 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35132 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35133 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35134 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35135 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35136 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35137 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35138 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35139 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35140 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35141 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35142 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35143 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35144 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35145 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
35146 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35147 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35148 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35149 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35150 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35151 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35152 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35153 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35154 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
35155 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35156 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35157 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35158 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35159 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35160 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35161 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35162 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35163 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35164 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35165 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35166 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35167 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35168 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35169 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35170 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35171 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35172 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35173 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35174 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35175 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35176 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35177 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35178 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35179 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35180 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35181 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35182 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35183 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35184 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35185 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
35186 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35187 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35188 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35189 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35190 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35191 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35192 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35193 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35194 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35195 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35196 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35197 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35198 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35199 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35200 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35201 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35202 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35203 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35204 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35205 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35206 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35207 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35208 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35209 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35210 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35211 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35212 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35213 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35214 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35215 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35216 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35217 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35218 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35219 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35220 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35221 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35222 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35223 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35224 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35225 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35226 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35227 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35228 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35229 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35230 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35231 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35232 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35233 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35234 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35235 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35236 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35237 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35238 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35239 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35240 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35241 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
35242 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35243 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35244 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35245 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35246 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
35247 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35248 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35249 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35250 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35251 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35252 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35253 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35254 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35255 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35256 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35257 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35258 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
35259 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35260 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35261 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35262 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35263 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35264 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35265 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35266 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35267 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35268 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35269 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35270 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35271 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
35272 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35273 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35274 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35275 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35276 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35277 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35278 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35279 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35280 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35281 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35282 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35283 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
35284 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35285 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35286 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35287 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
35288 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35289 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35290 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35291 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35292 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35293 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35294 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35295 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35296 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35297 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35298 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35299 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35300 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35301 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35302 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35303 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35304 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35305 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
35306 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35307 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35308 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35309 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35310 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35311 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35312 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
35313 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35314 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35315 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35316 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35317 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35318 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35319 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35320 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35321 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35322 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35323 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35324 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35325 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35326 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35327 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35328 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35329 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35330 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35331 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35332 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35333 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35334 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35335 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35336 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35337 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35338 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
35339 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35340 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35341 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35342 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35343 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35344 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35345 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35346 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
35347 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35348 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35349 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35350 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35351 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35352 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35353 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35354 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35355 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35356 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35357 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35358 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35359 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35360 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35361 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35362 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35363 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35364 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35365 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35366 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35367 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35368 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
35369 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35370 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35371 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35372 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35373 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35374 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
35375 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35376 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35377 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35378 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35379 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35380 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35381 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35382 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8e738329 | 35383 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction) _wrap_Notebook_GetThemeBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35384 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
35385 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, | |
35386 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35387 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
35388 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35389 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35390 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35391 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35392 | { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35393 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
35394 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35395 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
35396 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35397 | { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35398 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35399 | { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70b7a5fe | 35400 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction) _wrap_Choicebook_GetChoiceCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35401 | { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, |
35402 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
35403 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35404 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
35405 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, |
35406 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35407 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35408 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35409 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35410 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35411 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35412 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35413 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35414 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35415 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35416 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35417 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35418 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35419 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35420 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35421 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35422 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35423 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35424 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35425 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35426 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35427 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35428 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35429 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35430 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35431 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35432 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35433 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35434 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
35435 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35436 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35437 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35438 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35439 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35440 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35441 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35442 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35443 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35444 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35445 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35446 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35447 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35448 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35449 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35450 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35451 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35452 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35453 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35454 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35455 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35456 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35457 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35458 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35459 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35460 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35461 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35462 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35463 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35464 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35465 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35466 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35467 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35468 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35469 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35470 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35471 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35472 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35473 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35474 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35475 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35476 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35477 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35478 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35479 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
35480 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35481 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35482 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35483 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35484 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35485 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
35486 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35487 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35488 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35489 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35490 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35491 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35492 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35493 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35494 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35495 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35496 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35497 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
35498 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35499 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35500 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35501 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35502 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35503 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35504 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35505 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35506 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35507 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35508 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35509 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35510 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35511 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35512 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35513 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35514 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35515 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35516 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35517 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35518 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35519 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35520 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35521 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35522 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35523 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35524 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35525 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35526 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35527 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35528 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35529 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35530 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35531 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35532 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35533 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35534 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35535 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35536 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35537 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35538 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35539 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35540 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35541 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35542 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35543 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35544 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35545 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35546 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35547 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35548 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35549 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
35550 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35551 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35552 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35553 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35554 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35555 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35556 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35557 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35558 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35559 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35560 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35561 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35562 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35563 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35564 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35565 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35566 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35567 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35568 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35569 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35570 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35571 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35572 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35573 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35574 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35575 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35576 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
35577 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35578 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35579 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35580 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35581 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35582 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35583 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35584 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35585 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35586 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35587 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35588 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35589 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35590 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35591 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35592 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35593 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35594 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35595 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35596 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35597 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35598 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35599 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35600 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35601 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35602 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35603 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35604 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35605 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35606 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35607 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35608 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35609 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35610 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35611 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35612 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35613 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35614 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35615 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35616 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35617 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35618 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35619 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35620 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35621 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35622 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35623 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35624 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35625 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35626 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35627 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35628 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35629 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35630 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35631 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35632 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35633 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35634 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35635 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
a3957d3d | 35636 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35637 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, |
35638 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35639 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35640 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35641 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35642 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35643 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd RD |
35644 | { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
35645 | { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
35646 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, |
35647 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35648 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35649 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
35650 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35651 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35652 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35653 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35654 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35655 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35656 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35657 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35658 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35659 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35660 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35661 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
35662 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35663 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35664 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35665 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35666 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35667 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35668 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35669 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
35670 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35671 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35672 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35673 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35674 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35675 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35676 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
35677 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35678 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35679 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35680 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35681 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35682 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35683 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35684 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35685 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35686 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35687 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35688 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35689 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35690 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35691 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
562ecc31 | 35692 | { (char *)"TreeEvent_GetToolTip", (PyCFunction) _wrap_TreeEvent_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35693 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, |
35694 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35695 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35696 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35697 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35698 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35699 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35700 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35701 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35702 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35703 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35704 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35705 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35706 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35707 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35708 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35709 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35710 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35711 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35712 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35713 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35714 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35715 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35716 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35717 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35718 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35719 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35720 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35721 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fef4c27a | 35722 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35723 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
35724 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35725 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35726 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35727 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35728 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35729 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35730 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35731 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35732 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35733 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35734 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35735 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35736 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35737 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35738 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35739 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35740 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35741 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35742 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35743 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35744 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35745 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35746 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35747 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35748 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35749 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35750 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35751 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35752 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35753 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35754 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35755 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35756 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35757 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35758 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35759 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35760 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35761 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35762 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35763 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35764 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35765 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35766 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35767 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35768 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35769 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, | |
35770 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35771 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35772 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35773 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35774 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35775 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35776 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35777 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35778 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35779 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35780 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35781 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35782 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35783 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35784 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35785 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35786 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35787 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35788 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35789 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35790 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35791 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
35792 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35793 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35794 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35795 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35796 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
35797 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35798 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35799 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35800 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 35801 | { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35802 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
35803 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35804 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35805 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35806 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35807 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35808 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35809 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35810 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35811 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35812 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35813 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35814 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35815 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35816 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35817 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35818 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35819 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35820 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 35821 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
8d38bd1d | 35822 | { (char *)"PyControl_base_OnInternalIdle", (PyCFunction) _wrap_PyControl_base_OnInternalIdle, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35823 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, |
35824 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35825 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35826 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35827 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35828 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35829 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35830 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35831 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, | |
35832 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35833 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35834 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35835 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35836 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
35837 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35838 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
35839 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35840 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35841 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35842 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35843 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35844 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35845 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35846 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35847 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
35848 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35849 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
35850 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35851 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35852 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35853 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35854 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35855 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35856 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35857 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35858 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35859 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35860 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35861 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35862 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35863 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35864 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35865 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35866 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35867 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
53aa7709 RD |
35868 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
35869 | { (char *)"new_PreDatePickerCtrl", (PyCFunction) _wrap_new_PreDatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35870 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35871 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35872 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction) _wrap_DatePickerCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35873 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35874 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction) _wrap_DatePickerCtrl_GetLowerLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35875 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction) _wrap_DatePickerCtrl_GetUpperLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35876 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 35877 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
35878 | }; |
35879 | ||
35880 | ||
35881 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
35882 | ||
d14a1e28 RD |
35883 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { |
35884 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
35885 | } | |
35886 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
35887 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
35888 | } | |
35889 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
35890 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
35891 | } | |
35892 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
35893 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
35894 | } | |
35895 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
35896 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
35897 | } | |
8ac8dba0 RD |
35898 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { |
35899 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
35900 | } | |
d14a1e28 RD |
35901 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { |
35902 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
35903 | } | |
35904 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
35905 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
35906 | } | |
35907 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
35908 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
35909 | } | |
35910 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
35911 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
35912 | } | |
35913 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
35914 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
35915 | } | |
d14a1e28 RD |
35916 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
35917 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
35918 | } | |
35919 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
35920 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
35921 | } | |
35922 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
35923 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
35924 | } | |
35925 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 35926 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
35927 | } |
35928 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 35929 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 35930 | } |
2ef75293 | 35931 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { |
8ac8dba0 | 35932 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 35933 | } |
d14a1e28 RD |
35934 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { |
35935 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
35936 | } | |
35937 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
35938 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
35939 | } | |
35940 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
35941 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
35942 | } | |
35943 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
35944 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
35945 | } | |
35946 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
35947 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
35948 | } | |
35949 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
35950 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
35951 | } | |
35952 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
35953 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
35954 | } | |
35955 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
35956 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
35957 | } | |
35958 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
35959 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
35960 | } | |
53aa7709 RD |
35961 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
35962 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
35963 | } | |
d14a1e28 RD |
35964 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
35965 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
35966 | } | |
35967 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
35968 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
35969 | } | |
35970 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
35971 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
35972 | } | |
35973 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
35974 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
35975 | } | |
35976 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
35977 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
35978 | } | |
35979 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
35980 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
35981 | } | |
35982 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
35983 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
35984 | } | |
35985 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
35986 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
35987 | } | |
35988 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
35989 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
35990 | } | |
35991 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
35992 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
35993 | } | |
35994 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
35995 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
35996 | } | |
35997 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
35998 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
35999 | } | |
36000 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
36001 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36002 | } | |
36003 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
36004 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36005 | } | |
36006 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
36007 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
36008 | } | |
36009 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
36010 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
36011 | } | |
36012 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
36013 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
36014 | } | |
d1e20054 RD |
36015 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
36016 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36017 | } | |
d14a1e28 RD |
36018 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
36019 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
36020 | } | |
36021 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
36022 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36023 | } | |
36024 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
36025 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
36026 | } | |
36027 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
36028 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
36029 | } | |
36030 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
36031 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
36032 | } | |
36033 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
36034 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36035 | } | |
36036 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
36037 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
36038 | } | |
8ac8dba0 RD |
36039 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { |
36040 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
d14a1e28 RD |
36041 | } |
36042 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
36043 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
36044 | } | |
2ef75293 RD |
36045 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
36046 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
d14a1e28 | 36047 | } |
2ef75293 RD |
36048 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { |
36049 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
d14a1e28 | 36050 | } |
2ef75293 RD |
36051 | static void *_p_wxPyControlTo_p_wxControl(void *x) { |
36052 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
d14a1e28 | 36053 | } |
2ef75293 RD |
36054 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { |
36055 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
36056 | } | |
36057 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
36058 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
d14a1e28 RD |
36059 | } |
36060 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
36061 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
36062 | } | |
2ef75293 RD |
36063 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { |
36064 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
d14a1e28 | 36065 | } |
2ef75293 RD |
36066 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { |
36067 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
d14a1e28 RD |
36068 | } |
36069 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
36070 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
36071 | } | |
2ef75293 RD |
36072 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { |
36073 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
d14a1e28 RD |
36074 | } |
36075 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
36076 | return (void *)((wxControl *) ((wxGauge *) x)); | |
36077 | } | |
2ef75293 RD |
36078 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { |
36079 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
d14a1e28 | 36080 | } |
2ef75293 | 36081 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { |
8ac8dba0 | 36082 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); |
d14a1e28 | 36083 | } |
2ef75293 | 36084 | static void *_p_wxListbookTo_p_wxControl(void *x) { |
8ac8dba0 | 36085 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 | 36086 | } |
2ef75293 RD |
36087 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
36088 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
d14a1e28 | 36089 | } |
2ef75293 RD |
36090 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { |
36091 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
d14a1e28 RD |
36092 | } |
36093 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
36094 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
36095 | } | |
2ef75293 RD |
36096 | static void *_p_wxChoiceTo_p_wxControl(void *x) { |
36097 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
36098 | } | |
36099 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
36100 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
36101 | } | |
36102 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
36103 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36104 | } | |
36105 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
36106 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
36107 | } | |
d14a1e28 | 36108 | static void *_p_wxNotebookTo_p_wxControl(void *x) { |
8ac8dba0 | 36109 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 | 36110 | } |
2ef75293 RD |
36111 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { |
36112 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
d14a1e28 | 36113 | } |
2ef75293 RD |
36114 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { |
36115 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
d14a1e28 | 36116 | } |
2ef75293 RD |
36117 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { |
36118 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
d14a1e28 | 36119 | } |
2ef75293 RD |
36120 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { |
36121 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
d14a1e28 RD |
36122 | } |
36123 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
36124 | return (void *)((wxControl *) ((wxSlider *) x)); | |
36125 | } | |
2ef75293 RD |
36126 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { |
36127 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
d14a1e28 | 36128 | } |
2ef75293 RD |
36129 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { |
36130 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
d14a1e28 | 36131 | } |
2ef75293 RD |
36132 | static void *_p_wxButtonTo_p_wxControl(void *x) { |
36133 | return (void *)((wxControl *) ((wxButton *) x)); | |
d14a1e28 | 36134 | } |
2ef75293 RD |
36135 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { |
36136 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
36137 | } | |
53aa7709 RD |
36138 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { |
36139 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
36140 | } | |
2ef75293 RD |
36141 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { |
36142 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
d14a1e28 RD |
36143 | } |
36144 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
36145 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
36146 | } | |
36147 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
36148 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36149 | } | |
8ac8dba0 RD |
36150 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { |
36151 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36152 | } | |
d14a1e28 RD |
36153 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { |
36154 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36155 | } | |
d14a1e28 RD |
36156 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { |
36157 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
36158 | } | |
d1e20054 RD |
36159 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
36160 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36161 | } | |
d14a1e28 | 36162 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 | 36163 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
36164 | } |
36165 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
8ac8dba0 | 36166 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 36167 | } |
2ef75293 | 36168 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 RD |
36169 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
36170 | } | |
36171 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
36172 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
36173 | } | |
36174 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
36175 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
2ef75293 | 36176 | } |
8ac8dba0 RD |
36177 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { |
36178 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
d14a1e28 RD |
36179 | } |
36180 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
36181 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
36182 | } | |
8ac8dba0 RD |
36183 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { |
36184 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
36185 | } | |
d14a1e28 RD |
36186 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { |
36187 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
36188 | } | |
36189 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
36190 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
36191 | } | |
36192 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
36193 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36194 | } | |
36195 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
36196 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
36197 | } | |
36198 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
36199 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
36200 | } | |
36201 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
36202 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
36203 | } | |
36204 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
36205 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
36206 | } | |
36207 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
36208 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
36209 | } | |
36210 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
36211 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
36212 | } | |
d14a1e28 RD |
36213 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { |
36214 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
36215 | } | |
2ef75293 RD |
36216 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { |
36217 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
36218 | } | |
d14a1e28 RD |
36219 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { |
36220 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36221 | } | |
36222 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
36223 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
36224 | } | |
36225 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
36226 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
36227 | } | |
36228 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
36229 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
36230 | } | |
36231 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
36232 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
36233 | } | |
36234 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
36235 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36236 | } | |
36237 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
36238 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
36239 | } | |
36240 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
36241 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
36242 | } | |
2ef75293 | 36243 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 36244 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 36245 | } |
d14a1e28 | 36246 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 36247 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
36248 | } |
36249 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
36250 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
36251 | } | |
36252 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
36253 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
36254 | } | |
36255 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
36256 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
36257 | } | |
36258 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
36259 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36260 | } | |
36261 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
36262 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36263 | } | |
36264 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
36265 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36266 | } | |
36267 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
8ac8dba0 | 36268 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
36269 | } |
36270 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
36271 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
36272 | } | |
36273 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
36274 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36275 | } | |
36276 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
36277 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
36278 | } | |
36279 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
36280 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
36281 | } | |
36282 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
36283 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
36284 | } | |
36285 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
36286 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
36287 | } | |
36288 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
36289 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
36290 | } | |
36291 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
36292 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
36293 | } | |
36294 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
36295 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36296 | } | |
36297 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
36298 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36299 | } | |
53aa7709 RD |
36300 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { |
36301 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
36302 | } | |
d14a1e28 RD |
36303 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { |
36304 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
36305 | } | |
36306 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
36307 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
36308 | } | |
d14a1e28 RD |
36309 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { |
36310 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
36311 | } | |
36312 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
36313 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36314 | } | |
36315 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
36316 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36317 | } | |
36318 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
36319 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
36320 | } | |
36321 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
36322 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
36323 | } | |
36324 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
36325 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
36326 | } | |
36327 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
36328 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
36329 | } | |
36330 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
36331 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
36332 | } | |
36333 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
36334 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
36335 | } | |
36336 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
36337 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
36338 | } | |
d14a1e28 RD |
36339 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
36340 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36341 | } | |
36342 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
36343 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
36344 | } | |
36345 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
36346 | return (void *)((wxObject *) ((wxSizer *) x)); | |
36347 | } | |
36348 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
36349 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36350 | } | |
36351 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
36352 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
36353 | } | |
36354 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
36355 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
36356 | } | |
36357 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
36358 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36359 | } | |
36360 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
36361 | return (void *)((wxObject *) ((wxEvent *) x)); | |
36362 | } | |
36363 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
36364 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36365 | } | |
36366 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
36367 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
36368 | } | |
36369 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
36370 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
36371 | } | |
36372 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
36373 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
36374 | } | |
36375 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
36376 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
36377 | } | |
36378 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
36379 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36380 | } | |
36381 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
36382 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
36383 | } | |
36384 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
36385 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
36386 | } | |
36387 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
36388 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
36389 | } | |
36390 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
36391 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
36392 | } | |
36393 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
36394 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
36395 | } | |
36396 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
36397 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
36398 | } | |
36399 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
36400 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
36401 | } | |
36402 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
36403 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
36404 | } | |
36405 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
36406 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
36407 | } | |
36408 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
36409 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
36410 | } | |
36411 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
36412 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
36413 | } | |
36414 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
36415 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
36416 | } | |
36417 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
36418 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
36419 | } | |
36420 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
36421 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
36422 | } | |
36423 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
36424 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36425 | } | |
36426 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
36427 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
36428 | } | |
36429 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
36430 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
36431 | } | |
36432 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
36433 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36434 | } | |
36435 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
36436 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
36437 | } | |
36438 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
8ac8dba0 | 36439 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
36440 | } |
36441 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
36442 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
36443 | } | |
36444 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
36445 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36446 | } | |
2ef75293 | 36447 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { |
8ac8dba0 | 36448 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 36449 | } |
d14a1e28 | 36450 | static void *_p_wxListbookTo_p_wxObject(void *x) { |
8ac8dba0 | 36451 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
36452 | } |
36453 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
36454 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
36455 | } | |
36456 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
36457 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
36458 | } | |
36459 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
36460 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
36461 | } | |
36462 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
36463 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
36464 | } | |
53aa7709 RD |
36465 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
36466 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
36467 | } | |
d14a1e28 RD |
36468 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
36469 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
36470 | } | |
36471 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
36472 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36473 | } | |
36474 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
36475 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
36476 | } | |
36477 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
36478 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
36479 | } | |
36480 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
36481 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
36482 | } | |
36483 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
36484 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
36485 | } | |
36486 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
36487 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
36488 | } | |
36489 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
36490 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
36491 | } | |
36492 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
36493 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
36494 | } | |
36495 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
36496 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
36497 | } | |
8ac8dba0 RD |
36498 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { |
36499 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
36500 | } | |
d14a1e28 RD |
36501 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
36502 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
36503 | } | |
36504 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
36505 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
36506 | } | |
36507 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
36508 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
36509 | } | |
36510 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
36511 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
36512 | } | |
36513 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
36514 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
36515 | } | |
36516 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
36517 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36518 | } | |
36519 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
36520 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
36521 | } | |
36522 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
36523 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
36524 | } | |
36525 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
36526 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
36527 | } | |
943e8dfd RD |
36528 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
36529 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
36530 | } | |
d14a1e28 RD |
36531 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
36532 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
36533 | } | |
943e8dfd RD |
36534 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
36535 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
36536 | } | |
d14a1e28 RD |
36537 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
36538 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
36539 | } | |
36540 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
36541 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
36542 | } | |
36543 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
36544 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
36545 | } | |
36546 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
36547 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36548 | } | |
36549 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
36550 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36551 | } | |
d14a1e28 RD |
36552 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
36553 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
36554 | } | |
1e0c8722 RD |
36555 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
36556 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36557 | } | |
d14a1e28 RD |
36558 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
36559 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
36560 | } | |
36561 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
36562 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36563 | } | |
e505d15e RD |
36564 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
36565 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
36566 | } | |
1e0c8722 RD |
36567 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
36568 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
36569 | } | |
d14a1e28 RD |
36570 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
36571 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
36572 | } | |
36573 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
36574 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
36575 | } | |
36576 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
36577 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
36578 | } | |
36579 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
36580 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
36581 | } | |
36582 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
36583 | return (void *)((wxObject *) ((wxListItem *) x)); | |
36584 | } | |
36585 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
36586 | return (void *)((wxObject *) ((wxImage *) x)); | |
36587 | } | |
d14a1e28 RD |
36588 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { |
36589 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
36590 | } | |
d1e20054 RD |
36591 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
36592 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36593 | } | |
e811c8ce RD |
36594 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
36595 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
36596 | } | |
d14a1e28 RD |
36597 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
36598 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
36599 | } | |
36600 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 36601 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
36602 | } |
36603 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 36604 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 36605 | } |
2ef75293 | 36606 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { |
8ac8dba0 | 36607 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 36608 | } |
d14a1e28 RD |
36609 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
36610 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36611 | } | |
36612 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
36613 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
36614 | } | |
36615 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
36616 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
36617 | } | |
36618 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
36619 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
36620 | } | |
36621 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
36622 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
36623 | } | |
36624 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
36625 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
36626 | } | |
36627 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
36628 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
36629 | } | |
36630 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
36631 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36632 | } | |
36633 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
36634 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
36635 | } | |
36636 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
36637 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
36638 | } | |
36639 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
36640 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
36641 | } | |
36642 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
36643 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
36644 | } | |
36645 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
36646 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
36647 | } | |
8ac8dba0 RD |
36648 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { |
36649 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36650 | } | |
d14a1e28 RD |
36651 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { |
36652 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36653 | } | |
36654 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
36655 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36656 | } | |
36657 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
36658 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
36659 | } | |
36660 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
36661 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
36662 | } | |
36663 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
36664 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
36665 | } | |
36666 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
36667 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
36668 | } | |
36669 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
36670 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36671 | } | |
53aa7709 RD |
36672 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { |
36673 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
36674 | } | |
d14a1e28 RD |
36675 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
36676 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36677 | } | |
36678 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
36679 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
36680 | } | |
36681 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
36682 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36683 | } | |
36684 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
36685 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
36686 | } | |
36687 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
36688 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
36689 | } | |
d14a1e28 RD |
36690 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
36691 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
36692 | } | |
8ac8dba0 RD |
36693 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { |
36694 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
36695 | } | |
d14a1e28 RD |
36696 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { |
36697 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36698 | } | |
36699 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
36700 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
36701 | } | |
36702 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
36703 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
36704 | } | |
d14a1e28 RD |
36705 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
36706 | return (void *)((wxWindow *) ((wxControl *) x)); | |
36707 | } | |
36708 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
36709 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
36710 | } | |
36711 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
36712 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36713 | } | |
36714 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
36715 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
36716 | } | |
36717 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
36718 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
36719 | } | |
2ef75293 RD |
36720 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { |
36721 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
36722 | } | |
d14a1e28 RD |
36723 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { |
36724 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
36725 | } | |
36726 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
36727 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
36728 | } | |
36729 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
36730 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
36731 | } | |
36732 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
36733 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
36734 | } | |
36735 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
36736 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
36737 | } | |
2ef75293 | 36738 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { |
8ac8dba0 | 36739 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 36740 | } |
d14a1e28 | 36741 | static void *_p_wxListbookTo_p_wxWindow(void *x) { |
8ac8dba0 | 36742 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
36743 | } |
36744 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
36745 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
36746 | } | |
36747 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
36748 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
36749 | } | |
36750 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
36751 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
36752 | } | |
36753 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
36754 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36755 | } | |
36756 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
36757 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36758 | } | |
36759 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
36760 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36761 | } | |
36762 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
36763 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36764 | } | |
36765 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
8ac8dba0 | 36766 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
36767 | } |
36768 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
36769 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
36770 | } | |
36771 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
36772 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
36773 | } | |
36774 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
36775 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
36776 | } | |
36777 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
36778 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
36779 | } | |
36780 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
36781 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
36782 | } | |
36783 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
36784 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
36785 | } | |
36786 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
36787 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
36788 | } | |
36789 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
36790 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36791 | } | |
36792 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
36793 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36794 | } | |
53aa7709 RD |
36795 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { |
36796 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
36797 | } | |
d14a1e28 RD |
36798 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { |
36799 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
36800 | } | |
8ac8dba0 RD |
36801 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { |
36802 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
36803 | } | |
36804 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36805 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
36806 | } | |
36807 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36808 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36809 | } | |
d14a1e28 RD |
36810 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { |
36811 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36812 | } | |
d14a1e28 RD |
36813 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
36814 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
36815 | } | |
36816 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
36817 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
36818 | } | |
36819 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
36820 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36821 | } | |
36822 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
36823 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36824 | } | |
36825 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
36826 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36827 | } | |
36828 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
8ac8dba0 | 36829 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 RD |
36830 | } |
36831 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
8ac8dba0 | 36832 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 | 36833 | } |
53aa7709 RD |
36834 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
36835 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36836 | } | |
36837 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
36838 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
36839 | } | |
d14a1e28 RD |
36840 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { |
36841 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36842 | } | |
2ef75293 RD |
36843 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { |
36844 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
36845 | } | |
8ac8dba0 RD |
36846 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { |
36847 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36848 | } | |
d14a1e28 RD |
36849 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { |
36850 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36851 | } | |
d1e20054 RD |
36852 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
36853 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36854 | } | |
d14a1e28 RD |
36855 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
36856 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
36857 | } | |
36858 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
36859 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36860 | } | |
36861 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
36862 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36863 | } | |
36864 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
36865 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36866 | } | |
36867 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
36868 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
36869 | } | |
36870 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
36871 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
36872 | } | |
36873 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
36874 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
36875 | } | |
36876 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
36877 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
36878 | } | |
32fe5131 RD |
36879 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, 0}; |
36880 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0}; | |
36881 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0}; | |
36882 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0}; | |
36883 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, 0}; | |
36884 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0}; | |
36885 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0}; | |
36886 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0}; | |
36887 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, 0}; | |
36888 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, 0}; | |
36889 | static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, 0}; | |
36890 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0}; | |
36891 | static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, 0}; | |
36892 | static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, 0}; | |
36893 | static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, 0}; | |
36894 | static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, 0}; | |
36895 | static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, 0}; | |
36896 | static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, 0}; | |
36897 | static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, 0}; | |
36898 | static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, 0}; | |
36899 | static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, 0}; | |
36900 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0}; | |
36901 | static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, 0}; | |
36902 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, 0}; | |
36903 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0}; | |
36904 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0}; | |
36905 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0}; | |
36906 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0}; | |
36907 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0}; | |
36908 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0}; | |
36909 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0}; | |
36910 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0}; | |
36911 | static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, 0}; | |
36912 | static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, 0}; | |
36913 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, 0}; | |
36914 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, 0}; | |
36915 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0}; | |
36916 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0}; | |
36917 | static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, 0}; | |
36918 | static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, 0}; | |
36919 | static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, 0}; | |
36920 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0}; | |
36921 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0}; | |
36922 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0}; | |
36923 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0}; | |
36924 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0}; | |
36925 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0}; | |
36926 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0}; | |
36927 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0}; | |
36928 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0}; | |
36929 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0}; | |
36930 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0}; | |
36931 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0}; | |
36932 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0}; | |
36933 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0}; | |
36934 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0}; | |
36935 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0}; | |
36936 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0}; | |
36937 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0}; | |
36938 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0}; | |
36939 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0}; | |
36940 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0}; | |
36941 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0}; | |
36942 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0}; | |
36943 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0}; | |
36944 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0}; | |
36945 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0}; | |
36946 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0}; | |
36947 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0}; | |
36948 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0}; | |
36949 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0}; | |
36950 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0}; | |
36951 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0}; | |
36952 | static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, 0}; | |
36953 | static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, 0}; | |
36954 | static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, 0}; | |
36955 | static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, 0}; | |
36956 | static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, 0}; | |
36957 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0}; | |
36958 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, 0}; | |
36959 | static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, 0}; | |
36960 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, 0}; | |
36961 | static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, 0}; | |
36962 | static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, 0}; | |
36963 | static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, 0}; | |
36964 | static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, 0}; | |
36965 | static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, 0}; | |
36966 | static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, 0}; | |
36967 | static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, 0}; | |
36968 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, 0}; | |
36969 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, 0}; | |
36970 | static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, 0}; | |
36971 | static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, 0}; | |
36972 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, 0}; | |
36973 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0}; | |
36974 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0}; | |
36975 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0}; | |
36976 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0}; | |
36977 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0}; | |
36978 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0}; | |
36979 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0}; | |
36980 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0}; | |
36981 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0}; | |
36982 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0}; | |
36983 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0}; | |
36984 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0}; | |
36985 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0}; | |
36986 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0}; | |
36987 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0}; | |
36988 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0}; | |
36989 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0}; | |
36990 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0}; | |
36991 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0}; | |
36992 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0}; | |
36993 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0}; | |
36994 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0}; | |
36995 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0}; | |
36996 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0}; | |
36997 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0}; | |
36998 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0}; | |
36999 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0}; | |
37000 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0}; | |
37001 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0}; | |
37002 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0}; | |
37003 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0}; | |
37004 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0}; | |
37005 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0}; | |
37006 | static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, 0}; | |
37007 | static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, 0}; | |
37008 | static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, 0}; | |
37009 | static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, 0}; | |
37010 | static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, 0}; | |
37011 | static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, 0}; | |
37012 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0}; | |
37013 | static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, 0}; | |
37014 | static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, 0}; | |
37015 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0}; | |
37016 | static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, 0}; | |
37017 | static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, 0}; | |
37018 | static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, 0}; | |
37019 | static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, 0}; | |
37020 | static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, 0}; | |
37021 | static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, 0}; | |
37022 | static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, 0}; | |
37023 | static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, 0}; | |
37024 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0}; | |
37025 | static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, 0}; | |
37026 | static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, 0}; | |
37027 | static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, 0}; | |
37028 | static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, 0}; | |
37029 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, 0}; | |
37030 | static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, 0}; | |
37031 | static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, 0}; | |
37032 | static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, 0}; | |
37033 | static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, 0}; | |
37034 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, 0}; | |
37035 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, 0}; | |
37036 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0}; | |
37037 | static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0}; | |
37038 | static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0}; | |
37039 | static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0}; | |
37040 | ||
37041 | static swig_type_info *swig_type_initial[] = { | |
37042 | &_swigt__p_bool, | |
37043 | &_swigt__p_char, | |
37044 | &_swigt__p_form_ops_t, | |
37045 | &_swigt__p_int, | |
37046 | &_swigt__p_long, | |
37047 | &_swigt__p_unsigned_char, | |
37048 | &_swigt__p_unsigned_int, | |
37049 | &_swigt__p_unsigned_long, | |
37050 | &_swigt__p_void, | |
37051 | &_swigt__p_wxANIHandler, | |
37052 | &_swigt__p_wxAcceleratorTable, | |
37053 | &_swigt__p_wxActivateEvent, | |
37054 | &_swigt__p_wxArrayInt, | |
37055 | &_swigt__p_wxArrayString, | |
37056 | &_swigt__p_wxBMPHandler, | |
37057 | &_swigt__p_wxBitmap, | |
37058 | &_swigt__p_wxBitmapButton, | |
37059 | &_swigt__p_wxBookCtrlBase, | |
37060 | &_swigt__p_wxBookCtrlBaseEvent, | |
37061 | &_swigt__p_wxBoxSizer, | |
37062 | &_swigt__p_wxButton, | |
37063 | &_swigt__p_wxCURHandler, | |
37064 | &_swigt__p_wxCheckBox, | |
37065 | &_swigt__p_wxCheckListBox, | |
37066 | &_swigt__p_wxChildFocusEvent, | |
37067 | &_swigt__p_wxChoice, | |
37068 | &_swigt__p_wxChoicebook, | |
37069 | &_swigt__p_wxChoicebookEvent, | |
37070 | &_swigt__p_wxCloseEvent, | |
37071 | &_swigt__p_wxColour, | |
37072 | &_swigt__p_wxComboBox, | |
37073 | &_swigt__p_wxCommandEvent, | |
37074 | &_swigt__p_wxContextHelp, | |
37075 | &_swigt__p_wxContextHelpButton, | |
37076 | &_swigt__p_wxContextMenuEvent, | |
37077 | &_swigt__p_wxControl, | |
37078 | &_swigt__p_wxControlWithItems, | |
37079 | &_swigt__p_wxCursor, | |
37080 | &_swigt__p_wxDC, | |
37081 | &_swigt__p_wxDateEvent, | |
37082 | &_swigt__p_wxDatePickerCtrl, | |
37083 | &_swigt__p_wxDateTime, | |
37084 | &_swigt__p_wxDirFilterListCtrl, | |
37085 | &_swigt__p_wxDisplayChangedEvent, | |
37086 | &_swigt__p_wxDropFilesEvent, | |
37087 | &_swigt__p_wxDuplexMode, | |
37088 | &_swigt__p_wxEraseEvent, | |
37089 | &_swigt__p_wxEvent, | |
37090 | &_swigt__p_wxEvtHandler, | |
37091 | &_swigt__p_wxFSFile, | |
37092 | &_swigt__p_wxFileSystem, | |
37093 | &_swigt__p_wxFlexGridSizer, | |
37094 | &_swigt__p_wxFocusEvent, | |
37095 | &_swigt__p_wxFont, | |
37096 | &_swigt__p_wxGBSizerItem, | |
37097 | &_swigt__p_wxGIFHandler, | |
37098 | &_swigt__p_wxGauge, | |
37099 | &_swigt__p_wxGenericDirCtrl, | |
37100 | &_swigt__p_wxGenericDragImage, | |
37101 | &_swigt__p_wxGridBagSizer, | |
37102 | &_swigt__p_wxGridSizer, | |
37103 | &_swigt__p_wxHelpEvent, | |
37104 | &_swigt__p_wxHelpProvider, | |
37105 | &_swigt__p_wxICOHandler, | |
37106 | &_swigt__p_wxIcon, | |
37107 | &_swigt__p_wxIconizeEvent, | |
37108 | &_swigt__p_wxIdleEvent, | |
37109 | &_swigt__p_wxImage, | |
37110 | &_swigt__p_wxImageHandler, | |
37111 | &_swigt__p_wxImageList, | |
37112 | &_swigt__p_wxIndividualLayoutConstraint, | |
37113 | &_swigt__p_wxInitDialogEvent, | |
37114 | &_swigt__p_wxItemContainer, | |
37115 | &_swigt__p_wxJPEGHandler, | |
37116 | &_swigt__p_wxKeyEvent, | |
37117 | &_swigt__p_wxLayoutConstraints, | |
37118 | &_swigt__p_wxListBox, | |
37119 | &_swigt__p_wxListEvent, | |
37120 | &_swigt__p_wxListItem, | |
37121 | &_swigt__p_wxListItemAttr, | |
37122 | &_swigt__p_wxListView, | |
37123 | &_swigt__p_wxListbook, | |
37124 | &_swigt__p_wxListbookEvent, | |
37125 | &_swigt__p_wxMaximizeEvent, | |
37126 | &_swigt__p_wxMemoryDC, | |
37127 | &_swigt__p_wxMenu, | |
37128 | &_swigt__p_wxMenuBar, | |
37129 | &_swigt__p_wxMenuEvent, | |
37130 | &_swigt__p_wxMenuItem, | |
37131 | &_swigt__p_wxMouseCaptureChangedEvent, | |
37132 | &_swigt__p_wxMouseEvent, | |
37133 | &_swigt__p_wxMoveEvent, | |
37134 | &_swigt__p_wxNavigationKeyEvent, | |
37135 | &_swigt__p_wxNcPaintEvent, | |
37136 | &_swigt__p_wxNotebook, | |
37137 | &_swigt__p_wxNotebookEvent, | |
37138 | &_swigt__p_wxNotifyEvent, | |
37139 | &_swigt__p_wxObject, | |
37140 | &_swigt__p_wxPCXHandler, | |
37141 | &_swigt__p_wxPNGHandler, | |
37142 | &_swigt__p_wxPNMHandler, | |
37143 | &_swigt__p_wxPaintEvent, | |
37144 | &_swigt__p_wxPaletteChangedEvent, | |
37145 | &_swigt__p_wxPaperSize, | |
37146 | &_swigt__p_wxPoint, | |
37147 | &_swigt__p_wxPyApp, | |
37148 | &_swigt__p_wxPyCommandEvent, | |
37149 | &_swigt__p_wxPyControl, | |
37150 | &_swigt__p_wxPyEvent, | |
37151 | &_swigt__p_wxPyImageHandler, | |
37152 | &_swigt__p_wxPyListCtrl, | |
37153 | &_swigt__p_wxPySizer, | |
37154 | &_swigt__p_wxPyTreeCtrl, | |
37155 | &_swigt__p_wxPyTreeItemData, | |
37156 | &_swigt__p_wxPyValidator, | |
37157 | &_swigt__p_wxQueryNewPaletteEvent, | |
37158 | &_swigt__p_wxRadioBox, | |
37159 | &_swigt__p_wxRadioButton, | |
37160 | &_swigt__p_wxRect, | |
37161 | &_swigt__p_wxScrollBar, | |
37162 | &_swigt__p_wxScrollEvent, | |
37163 | &_swigt__p_wxScrollWinEvent, | |
37164 | &_swigt__p_wxSetCursorEvent, | |
37165 | &_swigt__p_wxShowEvent, | |
37166 | &_swigt__p_wxSimpleHelpProvider, | |
37167 | &_swigt__p_wxSize, | |
37168 | &_swigt__p_wxSizeEvent, | |
37169 | &_swigt__p_wxSizer, | |
37170 | &_swigt__p_wxSizerItem, | |
37171 | &_swigt__p_wxSlider, | |
37172 | &_swigt__p_wxSpinButton, | |
37173 | &_swigt__p_wxSpinCtrl, | |
37174 | &_swigt__p_wxSpinEvent, | |
37175 | &_swigt__p_wxStaticBitmap, | |
37176 | &_swigt__p_wxStaticBox, | |
37177 | &_swigt__p_wxStaticBoxSizer, | |
37178 | &_swigt__p_wxStaticLine, | |
37179 | &_swigt__p_wxStaticText, | |
37180 | &_swigt__p_wxStdDialogButtonSizer, | |
37181 | &_swigt__p_wxString, | |
37182 | &_swigt__p_wxSysColourChangedEvent, | |
37183 | &_swigt__p_wxTIFFHandler, | |
37184 | &_swigt__p_wxTextAttr, | |
37185 | &_swigt__p_wxTextCtrl, | |
37186 | &_swigt__p_wxTextUrlEvent, | |
37187 | &_swigt__p_wxToggleButton, | |
37188 | &_swigt__p_wxToolBar, | |
37189 | &_swigt__p_wxToolBarBase, | |
37190 | &_swigt__p_wxToolBarToolBase, | |
37191 | &_swigt__p_wxTreeEvent, | |
37192 | &_swigt__p_wxTreeItemId, | |
37193 | &_swigt__p_wxUpdateUIEvent, | |
37194 | &_swigt__p_wxValidator, | |
37195 | &_swigt__p_wxVisualAttributes, | |
37196 | &_swigt__p_wxWindow, | |
37197 | &_swigt__p_wxWindowCreateEvent, | |
37198 | &_swigt__p_wxWindowDestroyEvent, | |
37199 | &_swigt__p_wxXPMHandler, | |
37200 | &_swigt__ptrdiff_t, | |
37201 | &_swigt__std__ptrdiff_t, | |
37202 | &_swigt__unsigned_int, | |
37203 | }; | |
37204 | ||
37205 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; | |
37206 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
37207 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
37208 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
37209 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
37210 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
37211 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
37212 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
37213 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; | |
37214 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
37215 | static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}}; | |
37216 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
37217 | 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}}; | |
37218 | 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_wxNotebook, _p_wxNotebookTo_p_wxBookCtrlBase, 0, 0},{0, 0, 0, 0}}; | |
37219 | 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},{0, 0, 0, 0}}; | |
37220 | 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}}; | |
37221 | static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}}; | |
37222 | static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
37223 | 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}}; | |
37224 | static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}}; | |
37225 | static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37226 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
37227 | static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}}; | |
37228 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37229 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37230 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37231 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37232 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37233 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37234 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37235 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37236 | 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_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_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}}; | |
37237 | static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}}; | |
37238 | static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}}; | |
37239 | 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_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_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_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}}; | |
37240 | 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}}; | |
37241 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
37242 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
37243 | static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
37244 | static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}}; | |
37245 | static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
37246 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
37247 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37248 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37249 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37250 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37251 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37252 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37253 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37254 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37255 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37256 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37257 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37258 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37259 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37260 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37261 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37262 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37263 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37264 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37265 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37266 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37267 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37268 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37269 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37270 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37271 | 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_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_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_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}}; | |
37272 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
37273 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
37274 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
37275 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
37276 | 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_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_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_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_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}}; | |
37277 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
37278 | static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}}; | |
37279 | static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
37280 | static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}}; | |
37281 | static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37282 | 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}}; | |
37283 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
37284 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
37285 | 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}}; | |
37286 | static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37287 | 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}}; | |
37288 | static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37289 | static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}}; | |
37290 | static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
37291 | static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}}; | |
37292 | static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}}; | |
37293 | static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37294 | static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}}; | |
37295 | static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37296 | static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}}; | |
37297 | static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37298 | 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_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37299 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
37300 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
37301 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
37302 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
37303 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37304 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37305 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37306 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37307 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37308 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37309 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
37310 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37311 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
37312 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37313 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37314 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37315 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37316 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37317 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37318 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37319 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37320 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37321 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37322 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37323 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37324 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37325 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37326 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
37327 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
37328 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
37329 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_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_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_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_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_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_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_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_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_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_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_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_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}}; | |
37330 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
37331 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
37332 | static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}}; | |
37333 | 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}}; | |
37334 | static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
37335 | static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}}; | |
37336 | static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}}; | |
37337 | static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}}; | |
37338 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
37339 | static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}}; | |
37340 | static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}}; | |
37341 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
37342 | static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}}; | |
37343 | static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}}; | |
37344 | static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
37345 | static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37346 | static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
37347 | static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}}; | |
37348 | static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}}; | |
37349 | static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}}; | |
37350 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
37351 | static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
37352 | static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
37353 | static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37354 | static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}}; | |
37355 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
37356 | 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}}; | |
37357 | static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}}; | |
37358 | static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37359 | static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}}; | |
37360 | 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}}; | |
37361 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; | |
37362 | 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_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_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_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_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_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}}; | |
37363 | static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
37364 | static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
37365 | static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
37366 | ||
37367 | static swig_cast_info *swig_cast_initial[] = { | |
37368 | _swigc__p_bool, | |
37369 | _swigc__p_char, | |
37370 | _swigc__p_form_ops_t, | |
37371 | _swigc__p_int, | |
37372 | _swigc__p_long, | |
37373 | _swigc__p_unsigned_char, | |
37374 | _swigc__p_unsigned_int, | |
37375 | _swigc__p_unsigned_long, | |
37376 | _swigc__p_void, | |
37377 | _swigc__p_wxANIHandler, | |
37378 | _swigc__p_wxAcceleratorTable, | |
37379 | _swigc__p_wxActivateEvent, | |
37380 | _swigc__p_wxArrayInt, | |
37381 | _swigc__p_wxArrayString, | |
37382 | _swigc__p_wxBMPHandler, | |
37383 | _swigc__p_wxBitmap, | |
37384 | _swigc__p_wxBitmapButton, | |
37385 | _swigc__p_wxBookCtrlBase, | |
37386 | _swigc__p_wxBookCtrlBaseEvent, | |
37387 | _swigc__p_wxBoxSizer, | |
37388 | _swigc__p_wxButton, | |
37389 | _swigc__p_wxCURHandler, | |
37390 | _swigc__p_wxCheckBox, | |
37391 | _swigc__p_wxCheckListBox, | |
37392 | _swigc__p_wxChildFocusEvent, | |
37393 | _swigc__p_wxChoice, | |
37394 | _swigc__p_wxChoicebook, | |
37395 | _swigc__p_wxChoicebookEvent, | |
37396 | _swigc__p_wxCloseEvent, | |
37397 | _swigc__p_wxColour, | |
37398 | _swigc__p_wxComboBox, | |
37399 | _swigc__p_wxCommandEvent, | |
37400 | _swigc__p_wxContextHelp, | |
37401 | _swigc__p_wxContextHelpButton, | |
37402 | _swigc__p_wxContextMenuEvent, | |
37403 | _swigc__p_wxControl, | |
37404 | _swigc__p_wxControlWithItems, | |
37405 | _swigc__p_wxCursor, | |
37406 | _swigc__p_wxDC, | |
37407 | _swigc__p_wxDateEvent, | |
37408 | _swigc__p_wxDatePickerCtrl, | |
37409 | _swigc__p_wxDateTime, | |
37410 | _swigc__p_wxDirFilterListCtrl, | |
37411 | _swigc__p_wxDisplayChangedEvent, | |
37412 | _swigc__p_wxDropFilesEvent, | |
37413 | _swigc__p_wxDuplexMode, | |
37414 | _swigc__p_wxEraseEvent, | |
37415 | _swigc__p_wxEvent, | |
37416 | _swigc__p_wxEvtHandler, | |
37417 | _swigc__p_wxFSFile, | |
37418 | _swigc__p_wxFileSystem, | |
37419 | _swigc__p_wxFlexGridSizer, | |
37420 | _swigc__p_wxFocusEvent, | |
37421 | _swigc__p_wxFont, | |
37422 | _swigc__p_wxGBSizerItem, | |
37423 | _swigc__p_wxGIFHandler, | |
37424 | _swigc__p_wxGauge, | |
37425 | _swigc__p_wxGenericDirCtrl, | |
37426 | _swigc__p_wxGenericDragImage, | |
37427 | _swigc__p_wxGridBagSizer, | |
37428 | _swigc__p_wxGridSizer, | |
37429 | _swigc__p_wxHelpEvent, | |
37430 | _swigc__p_wxHelpProvider, | |
37431 | _swigc__p_wxICOHandler, | |
37432 | _swigc__p_wxIcon, | |
37433 | _swigc__p_wxIconizeEvent, | |
37434 | _swigc__p_wxIdleEvent, | |
37435 | _swigc__p_wxImage, | |
37436 | _swigc__p_wxImageHandler, | |
37437 | _swigc__p_wxImageList, | |
37438 | _swigc__p_wxIndividualLayoutConstraint, | |
37439 | _swigc__p_wxInitDialogEvent, | |
37440 | _swigc__p_wxItemContainer, | |
37441 | _swigc__p_wxJPEGHandler, | |
37442 | _swigc__p_wxKeyEvent, | |
37443 | _swigc__p_wxLayoutConstraints, | |
37444 | _swigc__p_wxListBox, | |
37445 | _swigc__p_wxListEvent, | |
37446 | _swigc__p_wxListItem, | |
37447 | _swigc__p_wxListItemAttr, | |
37448 | _swigc__p_wxListView, | |
37449 | _swigc__p_wxListbook, | |
37450 | _swigc__p_wxListbookEvent, | |
37451 | _swigc__p_wxMaximizeEvent, | |
37452 | _swigc__p_wxMemoryDC, | |
37453 | _swigc__p_wxMenu, | |
37454 | _swigc__p_wxMenuBar, | |
37455 | _swigc__p_wxMenuEvent, | |
37456 | _swigc__p_wxMenuItem, | |
37457 | _swigc__p_wxMouseCaptureChangedEvent, | |
37458 | _swigc__p_wxMouseEvent, | |
37459 | _swigc__p_wxMoveEvent, | |
37460 | _swigc__p_wxNavigationKeyEvent, | |
37461 | _swigc__p_wxNcPaintEvent, | |
37462 | _swigc__p_wxNotebook, | |
37463 | _swigc__p_wxNotebookEvent, | |
37464 | _swigc__p_wxNotifyEvent, | |
37465 | _swigc__p_wxObject, | |
37466 | _swigc__p_wxPCXHandler, | |
37467 | _swigc__p_wxPNGHandler, | |
37468 | _swigc__p_wxPNMHandler, | |
37469 | _swigc__p_wxPaintEvent, | |
37470 | _swigc__p_wxPaletteChangedEvent, | |
37471 | _swigc__p_wxPaperSize, | |
37472 | _swigc__p_wxPoint, | |
37473 | _swigc__p_wxPyApp, | |
37474 | _swigc__p_wxPyCommandEvent, | |
37475 | _swigc__p_wxPyControl, | |
37476 | _swigc__p_wxPyEvent, | |
37477 | _swigc__p_wxPyImageHandler, | |
37478 | _swigc__p_wxPyListCtrl, | |
37479 | _swigc__p_wxPySizer, | |
37480 | _swigc__p_wxPyTreeCtrl, | |
37481 | _swigc__p_wxPyTreeItemData, | |
37482 | _swigc__p_wxPyValidator, | |
37483 | _swigc__p_wxQueryNewPaletteEvent, | |
37484 | _swigc__p_wxRadioBox, | |
37485 | _swigc__p_wxRadioButton, | |
37486 | _swigc__p_wxRect, | |
37487 | _swigc__p_wxScrollBar, | |
37488 | _swigc__p_wxScrollEvent, | |
37489 | _swigc__p_wxScrollWinEvent, | |
37490 | _swigc__p_wxSetCursorEvent, | |
37491 | _swigc__p_wxShowEvent, | |
37492 | _swigc__p_wxSimpleHelpProvider, | |
37493 | _swigc__p_wxSize, | |
37494 | _swigc__p_wxSizeEvent, | |
37495 | _swigc__p_wxSizer, | |
37496 | _swigc__p_wxSizerItem, | |
37497 | _swigc__p_wxSlider, | |
37498 | _swigc__p_wxSpinButton, | |
37499 | _swigc__p_wxSpinCtrl, | |
37500 | _swigc__p_wxSpinEvent, | |
37501 | _swigc__p_wxStaticBitmap, | |
37502 | _swigc__p_wxStaticBox, | |
37503 | _swigc__p_wxStaticBoxSizer, | |
37504 | _swigc__p_wxStaticLine, | |
37505 | _swigc__p_wxStaticText, | |
37506 | _swigc__p_wxStdDialogButtonSizer, | |
37507 | _swigc__p_wxString, | |
37508 | _swigc__p_wxSysColourChangedEvent, | |
37509 | _swigc__p_wxTIFFHandler, | |
37510 | _swigc__p_wxTextAttr, | |
37511 | _swigc__p_wxTextCtrl, | |
37512 | _swigc__p_wxTextUrlEvent, | |
37513 | _swigc__p_wxToggleButton, | |
37514 | _swigc__p_wxToolBar, | |
37515 | _swigc__p_wxToolBarBase, | |
37516 | _swigc__p_wxToolBarToolBase, | |
37517 | _swigc__p_wxTreeEvent, | |
37518 | _swigc__p_wxTreeItemId, | |
37519 | _swigc__p_wxUpdateUIEvent, | |
37520 | _swigc__p_wxValidator, | |
37521 | _swigc__p_wxVisualAttributes, | |
37522 | _swigc__p_wxWindow, | |
37523 | _swigc__p_wxWindowCreateEvent, | |
37524 | _swigc__p_wxWindowDestroyEvent, | |
37525 | _swigc__p_wxXPMHandler, | |
37526 | _swigc__ptrdiff_t, | |
37527 | _swigc__std__ptrdiff_t, | |
37528 | _swigc__unsigned_int, | |
d14a1e28 RD |
37529 | }; |
37530 | ||
37531 | ||
37532 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
37533 | ||
37534 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 37535 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
37536 | |
37537 | #ifdef __cplusplus | |
37538 | } | |
37539 | #endif | |
32fe5131 RD |
37540 | /************************************************************************* |
37541 | * Type initialization: | |
37542 | * This problem is tough by the requirement that no dynamic | |
37543 | * memory is used. Also, since swig_type_info structures store pointers to | |
37544 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
37545 | * to swig_type_info structures, we need some lookup code at initialization. | |
37546 | * The idea is that swig generates all the structures that are needed. | |
37547 | * The runtime then collects these partially filled structures. | |
37548 | * The SWIG_InitializeModule function takes these initial arrays out of | |
37549 | * swig_module, and does all the lookup, filling in the swig_module.types | |
37550 | * array with the correct data and linking the correct swig_cast_info | |
37551 | * structures together. | |
37552 | ||
37553 | * The generated swig_type_info structures are assigned staticly to an initial | |
37554 | * array. We just loop though that array, and handle each type individually. | |
37555 | * First we lookup if this type has been already loaded, and if so, use the | |
37556 | * loaded structure instead of the generated one. Then we have to fill in the | |
37557 | * cast linked list. The cast data is initially stored in something like a | |
37558 | * two-dimensional array. Each row corresponds to a type (there are the same | |
37559 | * number of rows as there are in the swig_type_initial array). Each entry in | |
37560 | * a column is one of the swig_cast_info structures for that type. | |
37561 | * The cast_initial array is actually an array of arrays, because each row has | |
37562 | * a variable number of columns. So to actually build the cast linked list, | |
37563 | * we find the array of casts associated with the type, and loop through it | |
37564 | * adding the casts to the list. The one last trick we need to do is making | |
37565 | * sure the type pointer in the swig_cast_info struct is correct. | |
37566 | ||
37567 | * First off, we lookup the cast->type name to see if it is already loaded. | |
37568 | * There are three cases to handle: | |
37569 | * 1) If the cast->type has already been loaded AND the type we are adding | |
37570 | * casting info to has not been loaded (it is in this module), THEN we | |
37571 | * replace the cast->type pointer with the type pointer that has already | |
37572 | * been loaded. | |
37573 | * 2) If BOTH types (the one we are adding casting info to, and the | |
37574 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
37575 | * the previous module so we just ignore it. | |
37576 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
37577 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
37578 | * be correct. | |
37579 | **/ | |
37580 | ||
37581 | #ifdef __cplusplus | |
37582 | extern "C" { | |
37583 | #if 0 | |
37584 | } /* c-mode */ | |
37585 | #endif | |
37586 | #endif | |
37587 | ||
37588 | #if 0 | |
37589 | #define SWIGRUNTIME_DEBUG | |
37590 | #endif | |
37591 | ||
37592 | SWIGRUNTIME void | |
37593 | SWIG_InitializeModule(void *clientdata) { | |
37594 | size_t i; | |
37595 | swig_module_info *module_head; | |
37596 | static int init_run = 0; | |
37597 | ||
37598 | clientdata = clientdata; | |
37599 | ||
37600 | if (init_run) return; | |
37601 | init_run = 1; | |
37602 | ||
37603 | /* Initialize the swig_module */ | |
37604 | swig_module.type_initial = swig_type_initial; | |
37605 | swig_module.cast_initial = swig_cast_initial; | |
37606 | ||
37607 | /* Try and load any already created modules */ | |
37608 | module_head = SWIG_GetModule(clientdata); | |
37609 | if (module_head) { | |
37610 | swig_module.next = module_head->next; | |
37611 | module_head->next = &swig_module; | |
37612 | } else { | |
37613 | /* This is the first module loaded */ | |
37614 | swig_module.next = &swig_module; | |
37615 | SWIG_SetModule(clientdata, &swig_module); | |
37616 | } | |
37617 | ||
37618 | /* Now work on filling in swig_module.types */ | |
37619 | #ifdef SWIGRUNTIME_DEBUG | |
37620 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
37621 | #endif | |
37622 | for (i = 0; i < swig_module.size; ++i) { | |
37623 | swig_type_info *type = 0; | |
37624 | swig_type_info *ret; | |
37625 | swig_cast_info *cast; | |
37626 | ||
37627 | #ifdef SWIGRUNTIME_DEBUG | |
37628 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
37629 | #endif | |
37630 | ||
37631 | /* if there is another module already loaded */ | |
37632 | if (swig_module.next != &swig_module) { | |
37633 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
37634 | } | |
37635 | if (type) { | |
37636 | /* Overwrite clientdata field */ | |
37637 | #ifdef SWIGRUNTIME_DEBUG | |
37638 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
37639 | #endif | |
37640 | if (swig_module.type_initial[i]->clientdata) { | |
37641 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
37642 | #ifdef SWIGRUNTIME_DEBUG | |
37643 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
37644 | #endif | |
37645 | } | |
37646 | } else { | |
37647 | type = swig_module.type_initial[i]; | |
37648 | } | |
37649 | ||
37650 | /* Insert casting types */ | |
37651 | cast = swig_module.cast_initial[i]; | |
37652 | while (cast->type) { | |
37653 | /* Don't need to add information already in the list */ | |
37654 | ret = 0; | |
37655 | #ifdef SWIGRUNTIME_DEBUG | |
37656 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
37657 | #endif | |
37658 | if (swig_module.next != &swig_module) { | |
37659 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
37660 | #ifdef SWIGRUNTIME_DEBUG | |
37661 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
37662 | #endif | |
37663 | } | |
37664 | if (ret) { | |
37665 | if (type == swig_module.type_initial[i]) { | |
37666 | #ifdef SWIGRUNTIME_DEBUG | |
37667 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
37668 | #endif | |
37669 | cast->type = ret; | |
37670 | ret = 0; | |
37671 | } else { | |
37672 | /* Check for casting already in the list */ | |
37673 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
37674 | #ifdef SWIGRUNTIME_DEBUG | |
37675 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
37676 | #endif | |
37677 | if (!ocast) ret = 0; | |
37678 | } | |
37679 | } | |
37680 | ||
37681 | if (!ret) { | |
37682 | #ifdef SWIGRUNTIME_DEBUG | |
37683 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
37684 | #endif | |
37685 | if (type->cast) { | |
37686 | type->cast->prev = cast; | |
37687 | cast->next = type->cast; | |
37688 | } | |
37689 | type->cast = cast; | |
37690 | } | |
37691 | cast++; | |
37692 | } | |
37693 | /* Set entry in modules->types array equal to the type */ | |
37694 | swig_module.types[i] = type; | |
37695 | } | |
37696 | swig_module.types[i] = 0; | |
37697 | ||
37698 | #ifdef SWIGRUNTIME_DEBUG | |
37699 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
37700 | for (i = 0; i < swig_module.size; ++i) { | |
37701 | int j = 0; | |
37702 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
37703 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
37704 | while (cast->type) { | |
37705 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
37706 | cast++; | |
37707 | ++j; | |
37708 | } | |
37709 | printf("---- Total casts: %d\n",j); | |
37710 | } | |
37711 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
37712 | #endif | |
37713 | } | |
37714 | ||
37715 | /* This function will propagate the clientdata field of type to | |
37716 | * any new swig_type_info structures that have been added into the list | |
37717 | * of equivalent types. It is like calling | |
37718 | * SWIG_TypeClientData(type, clientdata) a second time. | |
37719 | */ | |
37720 | SWIGRUNTIME void | |
37721 | SWIG_PropagateClientData(void) { | |
37722 | size_t i; | |
37723 | swig_cast_info *equiv; | |
37724 | static int init_run = 0; | |
37725 | ||
37726 | if (init_run) return; | |
37727 | init_run = 1; | |
37728 | ||
37729 | for (i = 0; i < swig_module.size; i++) { | |
37730 | if (swig_module.types[i]->clientdata) { | |
37731 | equiv = swig_module.types[i]->cast; | |
37732 | while (equiv) { | |
37733 | if (!equiv->converter) { | |
37734 | if (equiv->type && !equiv->type->clientdata) | |
37735 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
37736 | } | |
37737 | equiv = equiv->next; | |
37738 | } | |
37739 | } | |
37740 | } | |
37741 | } | |
37742 | ||
37743 | #ifdef __cplusplus | |
37744 | #if 0 | |
37745 | { | |
37746 | /* c-mode */ | |
37747 | #endif | |
37748 | } | |
37749 | #endif | |
37750 | ||
d14a1e28 | 37751 | |
093d3ff1 RD |
37752 | |
37753 | #ifdef __cplusplus | |
37754 | extern "C" { | |
37755 | #endif | |
37756 | ||
37757 | /* Python-specific SWIG API */ | |
37758 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
37759 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
37760 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
37761 | ||
37762 | /* ----------------------------------------------------------------------------- | |
37763 | * global variable support code. | |
37764 | * ----------------------------------------------------------------------------- */ | |
37765 | ||
37766 | typedef struct swig_globalvar { | |
37767 | char *name; /* Name of global variable */ | |
32fe5131 | 37768 | PyObject *(*get_attr)(void); /* Return the current value */ |
093d3ff1 RD |
37769 | int (*set_attr)(PyObject *); /* Set the value */ |
37770 | struct swig_globalvar *next; | |
37771 | } swig_globalvar; | |
37772 | ||
37773 | typedef struct swig_varlinkobject { | |
37774 | PyObject_HEAD | |
37775 | swig_globalvar *vars; | |
37776 | } swig_varlinkobject; | |
37777 | ||
32fe5131 | 37778 | SWIGINTERN PyObject * |
093d3ff1 RD |
37779 | swig_varlink_repr(swig_varlinkobject *v) { |
37780 | v = v; | |
37781 | return PyString_FromString("<Swig global variables>"); | |
37782 | } | |
37783 | ||
32fe5131 | 37784 | SWIGINTERN int |
093d3ff1 RD |
37785 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { |
37786 | swig_globalvar *var; | |
37787 | flags = flags; | |
37788 | fprintf(fp,"Swig global variables { "); | |
37789 | for (var = v->vars; var; var=var->next) { | |
37790 | fprintf(fp,"%s", var->name); | |
37791 | if (var->next) fprintf(fp,", "); | |
37792 | } | |
37793 | fprintf(fp," }\n"); | |
37794 | return 0; | |
37795 | } | |
37796 | ||
32fe5131 | 37797 | SWIGINTERN PyObject * |
093d3ff1 RD |
37798 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
37799 | swig_globalvar *var = v->vars; | |
37800 | while (var) { | |
37801 | if (strcmp(var->name,n) == 0) { | |
37802 | return (*var->get_attr)(); | |
37803 | } | |
37804 | var = var->next; | |
37805 | } | |
37806 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
37807 | return NULL; | |
37808 | } | |
37809 | ||
32fe5131 | 37810 | SWIGINTERN int |
093d3ff1 RD |
37811 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
37812 | swig_globalvar *var = v->vars; | |
37813 | while (var) { | |
37814 | if (strcmp(var->name,n) == 0) { | |
37815 | return (*var->set_attr)(p); | |
37816 | } | |
37817 | var = var->next; | |
37818 | } | |
37819 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
37820 | return 1; | |
37821 | } | |
37822 | ||
32fe5131 RD |
37823 | SWIGINTERN PyTypeObject* |
37824 | swig_varlink_type(void) { | |
37825 | static char varlink__doc__[] = "Swig var link object"; | |
37826 | static PyTypeObject varlink_type | |
37827 | #if !defined(__cplusplus) | |
37828 | ; | |
37829 | static int type_init = 0; | |
37830 | if (!type_init) { | |
37831 | PyTypeObject tmp | |
37832 | #endif | |
37833 | = { | |
37834 | PyObject_HEAD_INIT(&PyType_Type) | |
37835 | 0, /* Number of items in variable part (ob_size) */ | |
37836 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
37837 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
37838 | 0, /* Itemsize (tp_itemsize) */ | |
37839 | 0, /* Deallocator (tp_dealloc) */ | |
37840 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
37841 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
37842 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
37843 | 0, /* tp_compare */ | |
37844 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
37845 | 0, /* tp_as_number */ | |
37846 | 0, /* tp_as_sequence */ | |
37847 | 0, /* tp_as_mapping */ | |
37848 | 0, /* tp_hash */ | |
37849 | 0, /* tp_call */ | |
37850 | 0, /* tp_str */ | |
37851 | 0, /* tp_getattro */ | |
37852 | 0, /* tp_setattro */ | |
37853 | 0, /* tp_as_buffer */ | |
37854 | 0, /* tp_flags */ | |
37855 | varlink__doc__, /* tp_doc */ | |
093d3ff1 | 37856 | #if PY_VERSION_HEX >= 0x02000000 |
32fe5131 RD |
37857 | 0, /* tp_traverse */ |
37858 | 0, /* tp_clear */ | |
093d3ff1 RD |
37859 | #endif |
37860 | #if PY_VERSION_HEX >= 0x02010000 | |
32fe5131 RD |
37861 | 0, /* tp_richcompare */ |
37862 | 0, /* tp_weaklistoffset */ | |
093d3ff1 RD |
37863 | #endif |
37864 | #if PY_VERSION_HEX >= 0x02020000 | |
32fe5131 | 37865 | 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 |
37866 | #endif |
37867 | #if PY_VERSION_HEX >= 0x02030000 | |
32fe5131 | 37868 | 0, /* tp_del */ |
093d3ff1 RD |
37869 | #endif |
37870 | #ifdef COUNT_ALLOCS | |
32fe5131 | 37871 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 37872 | #endif |
32fe5131 RD |
37873 | }; |
37874 | #if !defined(__cplusplus) | |
37875 | varlink_type = tmp; | |
37876 | type_init = 1; | |
37877 | } | |
37878 | #endif | |
37879 | return &varlink_type; | |
37880 | } | |
093d3ff1 RD |
37881 | |
37882 | /* Create a variable linking object for use later */ | |
32fe5131 | 37883 | SWIGINTERN PyObject * |
093d3ff1 | 37884 | SWIG_Python_newvarlink(void) { |
32fe5131 RD |
37885 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); |
37886 | if (result) { | |
37887 | result->vars = 0; | |
37888 | } | |
093d3ff1 RD |
37889 | return ((PyObject*) result); |
37890 | } | |
37891 | ||
32fe5131 | 37892 | SWIGINTERN void |
093d3ff1 | 37893 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
32fe5131 RD |
37894 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
37895 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
37896 | if (gv) { | |
37897 | size_t size = strlen(name)+1; | |
37898 | gv->name = (char *)malloc(size); | |
37899 | if (gv->name) { | |
37900 | strncpy(gv->name,name,size); | |
37901 | gv->get_attr = get_attr; | |
37902 | gv->set_attr = set_attr; | |
37903 | gv->next = v->vars; | |
37904 | } | |
37905 | } | |
093d3ff1 RD |
37906 | v->vars = gv; |
37907 | } | |
37908 | ||
37909 | /* ----------------------------------------------------------------------------- | |
37910 | * constants/methods manipulation | |
37911 | * ----------------------------------------------------------------------------- */ | |
37912 | ||
37913 | /* Install Constants */ | |
32fe5131 | 37914 | SWIGINTERN void |
093d3ff1 RD |
37915 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
37916 | PyObject *obj = 0; | |
37917 | size_t i; | |
32fe5131 | 37918 | for (i = 0; constants[i].type; ++i) { |
093d3ff1 RD |
37919 | switch(constants[i].type) { |
37920 | case SWIG_PY_INT: | |
37921 | obj = PyInt_FromLong(constants[i].lvalue); | |
37922 | break; | |
37923 | case SWIG_PY_FLOAT: | |
37924 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
37925 | break; | |
37926 | case SWIG_PY_STRING: | |
37927 | if (constants[i].pvalue) { | |
37928 | obj = PyString_FromString((char *) constants[i].pvalue); | |
37929 | } else { | |
37930 | Py_INCREF(Py_None); | |
37931 | obj = Py_None; | |
37932 | } | |
37933 | break; | |
37934 | case SWIG_PY_POINTER: | |
37935 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
37936 | break; | |
37937 | case SWIG_PY_BINARY: | |
37938 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
37939 | break; | |
37940 | default: | |
37941 | obj = 0; | |
37942 | break; | |
37943 | } | |
37944 | if (obj) { | |
37945 | PyDict_SetItemString(d,constants[i].name,obj); | |
37946 | Py_DECREF(obj); | |
37947 | } | |
37948 | } | |
37949 | } | |
37950 | ||
37951 | /* -----------------------------------------------------------------------------*/ | |
37952 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
37953 | /* -----------------------------------------------------------------------------*/ | |
37954 | ||
32fe5131 | 37955 | SWIGINTERN void |
093d3ff1 RD |
37956 | SWIG_Python_FixMethods(PyMethodDef *methods, |
37957 | swig_const_info *const_table, | |
37958 | swig_type_info **types, | |
37959 | swig_type_info **types_initial) { | |
37960 | size_t i; | |
37961 | for (i = 0; methods[i].ml_name; ++i) { | |
37962 | char *c = methods[i].ml_doc; | |
37963 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
37964 | int j; | |
37965 | swig_const_info *ci = 0; | |
37966 | char *name = c + 10; | |
32fe5131 | 37967 | for (j = 0; const_table[j].type; ++j) { |
093d3ff1 RD |
37968 | if (strncmp(const_table[j].name, name, |
37969 | strlen(const_table[j].name)) == 0) { | |
37970 | ci = &(const_table[j]); | |
37971 | break; | |
37972 | } | |
37973 | } | |
37974 | if (ci) { | |
37975 | size_t shift = (ci->ptype) - types; | |
37976 | swig_type_info *ty = types_initial[shift]; | |
37977 | size_t ldoc = (c - methods[i].ml_doc); | |
37978 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
37979 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
32fe5131 RD |
37980 | if (ndoc) { |
37981 | char *buff = ndoc; | |
37982 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
37983 | if (ptr) { | |
37984 | strncpy(buff, methods[i].ml_doc, ldoc); | |
37985 | buff += ldoc; | |
37986 | strncpy(buff, "swig_ptr: ", 10); | |
37987 | buff += 10; | |
37988 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
37989 | methods[i].ml_doc = ndoc; | |
37990 | } | |
37991 | } | |
093d3ff1 RD |
37992 | } |
37993 | } | |
37994 | } | |
37995 | } | |
37996 | ||
37997 | /* -----------------------------------------------------------------------------* | |
37998 | * Initialize type list | |
37999 | * -----------------------------------------------------------------------------*/ | |
38000 | ||
093d3ff1 RD |
38001 | #ifdef __cplusplus |
38002 | } | |
38003 | #endif | |
38004 | ||
38005 | /* -----------------------------------------------------------------------------* | |
38006 | * Partial Init method | |
38007 | * -----------------------------------------------------------------------------*/ | |
38008 | ||
d14a1e28 RD |
38009 | #ifdef __cplusplus |
38010 | extern "C" | |
38011 | #endif | |
32fe5131 | 38012 | SWIGEXPORT void SWIG_init(void) { |
d14a1e28 | 38013 | static PyObject *SWIG_globals = 0; |
d14a1e28 | 38014 | PyObject *m, *d; |
d14a1e28 | 38015 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); |
093d3ff1 RD |
38016 | |
38017 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
32fe5131 | 38018 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
093d3ff1 | 38019 | |
d14a1e28 RD |
38020 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
38021 | d = PyModule_GetDict(m); | |
38022 | ||
32fe5131 | 38023 | SWIG_InitializeModule(0); |
d14a1e28 RD |
38024 | SWIG_InstallConstants(d,swig_const_table); |
38025 | ||
b2dc1044 RD |
38026 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
38027 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
093d3ff1 | 38028 | { |
32fe5131 | 38029 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int(static_cast<int >(wxBU_LEFT))); |
093d3ff1 RD |
38030 | } |
38031 | { | |
32fe5131 | 38032 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int(static_cast<int >(wxBU_TOP))); |
093d3ff1 RD |
38033 | } |
38034 | { | |
32fe5131 | 38035 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int(static_cast<int >(wxBU_RIGHT))); |
093d3ff1 RD |
38036 | } |
38037 | { | |
32fe5131 | 38038 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int(static_cast<int >(wxBU_BOTTOM))); |
093d3ff1 RD |
38039 | } |
38040 | { | |
32fe5131 | 38041 | PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int(static_cast<int >(wxBU_ALIGN_MASK))); |
093d3ff1 RD |
38042 | } |
38043 | { | |
32fe5131 | 38044 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int(static_cast<int >(wxBU_EXACTFIT))); |
093d3ff1 RD |
38045 | } |
38046 | { | |
32fe5131 | 38047 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int(static_cast<int >(wxBU_AUTODRAW))); |
093d3ff1 | 38048 | } |
b2dc1044 | 38049 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
093d3ff1 | 38050 | { |
32fe5131 | 38051 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int(static_cast<int >(wxCHK_2STATE))); |
093d3ff1 RD |
38052 | } |
38053 | { | |
32fe5131 | 38054 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int(static_cast<int >(wxCHK_3STATE))); |
093d3ff1 RD |
38055 | } |
38056 | { | |
32fe5131 | 38057 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int(static_cast<int >(wxCHK_ALLOW_3RD_STATE_FOR_USER))); |
093d3ff1 RD |
38058 | } |
38059 | { | |
32fe5131 | 38060 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int(static_cast<int >(wxCHK_UNCHECKED))); |
093d3ff1 RD |
38061 | } |
38062 | { | |
32fe5131 | 38063 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int(static_cast<int >(wxCHK_CHECKED))); |
093d3ff1 RD |
38064 | } |
38065 | { | |
32fe5131 | 38066 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int(static_cast<int >(wxCHK_UNDETERMINED))); |
093d3ff1 | 38067 | } |
b2dc1044 RD |
38068 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
38069 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
38070 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
093d3ff1 | 38071 | { |
32fe5131 | 38072 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int(static_cast<int >(wxGA_HORIZONTAL))); |
093d3ff1 RD |
38073 | } |
38074 | { | |
32fe5131 | 38075 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int(static_cast<int >(wxGA_VERTICAL))); |
093d3ff1 RD |
38076 | } |
38077 | { | |
32fe5131 | 38078 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int(static_cast<int >(wxGA_SMOOTH))); |
093d3ff1 RD |
38079 | } |
38080 | { | |
32fe5131 | 38081 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int(static_cast<int >(wxGA_PROGRESSBAR))); |
093d3ff1 | 38082 | } |
b2dc1044 RD |
38083 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
38084 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
38085 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
38086 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
38087 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
093d3ff1 | 38088 | { |
32fe5131 | 38089 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int(static_cast<int >(wxTE_NO_VSCROLL))); |
093d3ff1 RD |
38090 | } |
38091 | { | |
32fe5131 | 38092 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int(static_cast<int >(wxTE_AUTO_SCROLL))); |
093d3ff1 RD |
38093 | } |
38094 | { | |
32fe5131 | 38095 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int(static_cast<int >(wxTE_READONLY))); |
093d3ff1 RD |
38096 | } |
38097 | { | |
32fe5131 | 38098 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int(static_cast<int >(wxTE_MULTILINE))); |
093d3ff1 RD |
38099 | } |
38100 | { | |
32fe5131 | 38101 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int(static_cast<int >(wxTE_PROCESS_TAB))); |
093d3ff1 RD |
38102 | } |
38103 | { | |
32fe5131 | 38104 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int(static_cast<int >(wxTE_LEFT))); |
093d3ff1 RD |
38105 | } |
38106 | { | |
32fe5131 | 38107 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int(static_cast<int >(wxTE_CENTER))); |
093d3ff1 RD |
38108 | } |
38109 | { | |
32fe5131 | 38110 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int(static_cast<int >(wxTE_RIGHT))); |
093d3ff1 RD |
38111 | } |
38112 | { | |
32fe5131 | 38113 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int(static_cast<int >(wxTE_CENTRE))); |
093d3ff1 RD |
38114 | } |
38115 | { | |
32fe5131 | 38116 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int(static_cast<int >(wxTE_RICH))); |
093d3ff1 RD |
38117 | } |
38118 | { | |
32fe5131 | 38119 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int(static_cast<int >(wxTE_PROCESS_ENTER))); |
093d3ff1 RD |
38120 | } |
38121 | { | |
32fe5131 | 38122 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int(static_cast<int >(wxTE_PASSWORD))); |
093d3ff1 RD |
38123 | } |
38124 | { | |
32fe5131 | 38125 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int(static_cast<int >(wxTE_AUTO_URL))); |
093d3ff1 RD |
38126 | } |
38127 | { | |
32fe5131 | 38128 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int(static_cast<int >(wxTE_NOHIDESEL))); |
093d3ff1 RD |
38129 | } |
38130 | { | |
32fe5131 | 38131 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int(static_cast<int >(wxTE_DONTWRAP))); |
093d3ff1 RD |
38132 | } |
38133 | { | |
32fe5131 | 38134 | PyDict_SetItemString(d,"TE_CHARWRAP", SWIG_From_int(static_cast<int >(wxTE_CHARWRAP))); |
093d3ff1 RD |
38135 | } |
38136 | { | |
32fe5131 | 38137 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int(static_cast<int >(wxTE_WORDWRAP))); |
093d3ff1 | 38138 | } |
08d9e66e | 38139 | { |
32fe5131 | 38140 | PyDict_SetItemString(d,"TE_BESTWRAP", SWIG_From_int(static_cast<int >(wxTE_BESTWRAP))); |
08d9e66e RD |
38141 | } |
38142 | { | |
32fe5131 | 38143 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int(static_cast<int >(wxTE_LINEWRAP))); |
08d9e66e | 38144 | } |
093d3ff1 | 38145 | { |
32fe5131 | 38146 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int(static_cast<int >(wxTE_RICH2))); |
093d3ff1 | 38147 | } |
88c6b281 | 38148 | { |
32fe5131 | 38149 | PyDict_SetItemString(d,"TE_CAPITALIZE", SWIG_From_int(static_cast<int >(wxTE_CAPITALIZE))); |
88c6b281 | 38150 | } |
093d3ff1 | 38151 | { |
32fe5131 | 38152 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_DEFAULT))); |
093d3ff1 RD |
38153 | } |
38154 | { | |
32fe5131 | 38155 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_LEFT))); |
093d3ff1 RD |
38156 | } |
38157 | { | |
32fe5131 | 38158 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_CENTRE))); |
093d3ff1 RD |
38159 | } |
38160 | { | |
32fe5131 | 38161 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_CENTER))); |
093d3ff1 RD |
38162 | } |
38163 | { | |
32fe5131 | 38164 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_RIGHT))); |
093d3ff1 RD |
38165 | } |
38166 | { | |
32fe5131 | 38167 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_JUSTIFIED))); |
093d3ff1 RD |
38168 | } |
38169 | { | |
32fe5131 | 38170 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_TEXT_COLOUR))); |
093d3ff1 RD |
38171 | } |
38172 | { | |
32fe5131 | 38173 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); |
093d3ff1 RD |
38174 | } |
38175 | { | |
32fe5131 | 38176 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT_FACE))); |
093d3ff1 RD |
38177 | } |
38178 | { | |
32fe5131 | 38179 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT_SIZE))); |
093d3ff1 RD |
38180 | } |
38181 | { | |
32fe5131 | 38182 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT_WEIGHT))); |
093d3ff1 RD |
38183 | } |
38184 | { | |
32fe5131 | 38185 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT_ITALIC))); |
093d3ff1 RD |
38186 | } |
38187 | { | |
32fe5131 | 38188 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT_UNDERLINE))); |
093d3ff1 RD |
38189 | } |
38190 | { | |
32fe5131 | 38191 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT))); |
093d3ff1 RD |
38192 | } |
38193 | { | |
32fe5131 | 38194 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_ALIGNMENT))); |
093d3ff1 RD |
38195 | } |
38196 | { | |
32fe5131 | 38197 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_LEFT_INDENT))); |
093d3ff1 RD |
38198 | } |
38199 | { | |
32fe5131 | 38200 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_RIGHT_INDENT))); |
093d3ff1 RD |
38201 | } |
38202 | { | |
32fe5131 | 38203 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_TABS))); |
093d3ff1 RD |
38204 | } |
38205 | { | |
32fe5131 | 38206 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int(static_cast<int >(wxTE_HT_UNKNOWN))); |
093d3ff1 RD |
38207 | } |
38208 | { | |
32fe5131 | 38209 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int(static_cast<int >(wxTE_HT_BEFORE))); |
093d3ff1 RD |
38210 | } |
38211 | { | |
32fe5131 | 38212 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int(static_cast<int >(wxTE_HT_ON_TEXT))); |
093d3ff1 RD |
38213 | } |
38214 | { | |
32fe5131 | 38215 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int(static_cast<int >(wxTE_HT_BELOW))); |
093d3ff1 RD |
38216 | } |
38217 | { | |
32fe5131 | 38218 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int(static_cast<int >(wxTE_HT_BEYOND))); |
093d3ff1 | 38219 | } |
7557b9b5 | 38220 | { |
32fe5131 | 38221 | PyDict_SetItemString(d,"OutOfRangeTextCoord", SWIG_From_int(static_cast<int >(wxOutOfRangeTextCoord))); |
7557b9b5 RD |
38222 | } |
38223 | { | |
32fe5131 | 38224 | PyDict_SetItemString(d,"InvalidTextCoord", SWIG_From_int(static_cast<int >(wxInvalidTextCoord))); |
7557b9b5 | 38225 | } |
d14a1e28 RD |
38226 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
38227 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
38228 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
38229 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
38230 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
38231 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
38232 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
093d3ff1 | 38233 | { |
32fe5131 | 38234 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int(static_cast<int >(wxSP_HORIZONTAL))); |
093d3ff1 RD |
38235 | } |
38236 | { | |
32fe5131 | 38237 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int(static_cast<int >(wxSP_VERTICAL))); |
093d3ff1 RD |
38238 | } |
38239 | { | |
32fe5131 | 38240 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int(static_cast<int >(wxSP_ARROW_KEYS))); |
093d3ff1 RD |
38241 | } |
38242 | { | |
32fe5131 | 38243 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int(static_cast<int >(wxSP_WRAP))); |
093d3ff1 | 38244 | } |
d14a1e28 | 38245 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
38246 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
38247 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
38248 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
7557b9b5 | 38249 | { |
32fe5131 | 38250 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int(static_cast<int >(wxSL_HORIZONTAL))); |
7557b9b5 RD |
38251 | } |
38252 | { | |
32fe5131 | 38253 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int(static_cast<int >(wxSL_VERTICAL))); |
7557b9b5 | 38254 | } |
70b7a5fe | 38255 | { |
32fe5131 | 38256 | PyDict_SetItemString(d,"SL_TICKS", SWIG_From_int(static_cast<int >(wxSL_TICKS))); |
70b7a5fe | 38257 | } |
7557b9b5 | 38258 | { |
32fe5131 | 38259 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int(static_cast<int >(wxSL_AUTOTICKS))); |
7557b9b5 RD |
38260 | } |
38261 | { | |
32fe5131 | 38262 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int(static_cast<int >(wxSL_LABELS))); |
7557b9b5 RD |
38263 | } |
38264 | { | |
32fe5131 | 38265 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int(static_cast<int >(wxSL_LEFT))); |
7557b9b5 RD |
38266 | } |
38267 | { | |
32fe5131 | 38268 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int(static_cast<int >(wxSL_TOP))); |
7557b9b5 RD |
38269 | } |
38270 | { | |
32fe5131 | 38271 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int(static_cast<int >(wxSL_RIGHT))); |
7557b9b5 RD |
38272 | } |
38273 | { | |
32fe5131 | 38274 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int(static_cast<int >(wxSL_BOTTOM))); |
7557b9b5 RD |
38275 | } |
38276 | { | |
32fe5131 | 38277 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int(static_cast<int >(wxSL_BOTH))); |
7557b9b5 RD |
38278 | } |
38279 | { | |
32fe5131 | 38280 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int(static_cast<int >(wxSL_SELRANGE))); |
7557b9b5 RD |
38281 | } |
38282 | { | |
32fe5131 | 38283 | PyDict_SetItemString(d,"SL_INVERSE", SWIG_From_int(static_cast<int >(wxSL_INVERSE))); |
7557b9b5 | 38284 | } |
b2dc1044 | 38285 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); |
d14a1e28 | 38286 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
51b83b37 | 38287 | SWIG_addvarlink(SWIG_globals,(char*)"NotebookNameStr",_wrap_NotebookNameStr_get, _wrap_NotebookNameStr_set); |
093d3ff1 | 38288 | { |
32fe5131 | 38289 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int(static_cast<int >(wxNB_FIXEDWIDTH))); |
093d3ff1 RD |
38290 | } |
38291 | { | |
32fe5131 | 38292 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int(static_cast<int >(wxNB_TOP))); |
093d3ff1 RD |
38293 | } |
38294 | { | |
32fe5131 | 38295 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int(static_cast<int >(wxNB_LEFT))); |
093d3ff1 RD |
38296 | } |
38297 | { | |
32fe5131 | 38298 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int(static_cast<int >(wxNB_RIGHT))); |
093d3ff1 RD |
38299 | } |
38300 | { | |
32fe5131 | 38301 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int(static_cast<int >(wxNB_BOTTOM))); |
093d3ff1 RD |
38302 | } |
38303 | { | |
32fe5131 | 38304 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int(static_cast<int >(wxNB_MULTILINE))); |
093d3ff1 | 38305 | } |
8e738329 | 38306 | { |
32fe5131 | 38307 | PyDict_SetItemString(d,"NB_NOPAGETHEME", SWIG_From_int(static_cast<int >(wxNB_NOPAGETHEME))); |
8e738329 | 38308 | } |
093d3ff1 | 38309 | { |
32fe5131 | 38310 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int(static_cast<int >(wxNB_HITTEST_NOWHERE))); |
093d3ff1 RD |
38311 | } |
38312 | { | |
32fe5131 | 38313 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int(static_cast<int >(wxNB_HITTEST_ONICON))); |
093d3ff1 RD |
38314 | } |
38315 | { | |
32fe5131 | 38316 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int(static_cast<int >(wxNB_HITTEST_ONLABEL))); |
093d3ff1 RD |
38317 | } |
38318 | { | |
32fe5131 | 38319 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int(static_cast<int >(wxNB_HITTEST_ONITEM))); |
093d3ff1 | 38320 | } |
d14a1e28 RD |
38321 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
38322 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
093d3ff1 | 38323 | { |
32fe5131 | 38324 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int(static_cast<int >(wxLB_DEFAULT))); |
093d3ff1 RD |
38325 | } |
38326 | { | |
32fe5131 | 38327 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int(static_cast<int >(wxLB_TOP))); |
093d3ff1 RD |
38328 | } |
38329 | { | |
32fe5131 | 38330 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int(static_cast<int >(wxLB_BOTTOM))); |
093d3ff1 RD |
38331 | } |
38332 | { | |
32fe5131 | 38333 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int(static_cast<int >(wxLB_LEFT))); |
093d3ff1 RD |
38334 | } |
38335 | { | |
32fe5131 | 38336 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int(static_cast<int >(wxLB_RIGHT))); |
093d3ff1 RD |
38337 | } |
38338 | { | |
32fe5131 | 38339 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int(static_cast<int >(wxLB_ALIGN_MASK))); |
093d3ff1 | 38340 | } |
d14a1e28 RD |
38341 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
38342 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
093d3ff1 | 38343 | { |
32fe5131 | 38344 | PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int(static_cast<int >(wxCHB_DEFAULT))); |
093d3ff1 RD |
38345 | } |
38346 | { | |
32fe5131 | 38347 | PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int(static_cast<int >(wxCHB_TOP))); |
093d3ff1 RD |
38348 | } |
38349 | { | |
32fe5131 | 38350 | PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int(static_cast<int >(wxCHB_BOTTOM))); |
093d3ff1 RD |
38351 | } |
38352 | { | |
32fe5131 | 38353 | PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int(static_cast<int >(wxCHB_LEFT))); |
093d3ff1 RD |
38354 | } |
38355 | { | |
32fe5131 | 38356 | PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int(static_cast<int >(wxCHB_RIGHT))); |
093d3ff1 RD |
38357 | } |
38358 | { | |
32fe5131 | 38359 | PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int(static_cast<int >(wxCHB_ALIGN_MASK))); |
093d3ff1 | 38360 | } |
2ef75293 RD |
38361 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); |
38362 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
093d3ff1 | 38363 | { |
32fe5131 | 38364 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int(static_cast<int >(wxTOOL_STYLE_BUTTON))); |
093d3ff1 RD |
38365 | } |
38366 | { | |
32fe5131 | 38367 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int(static_cast<int >(wxTOOL_STYLE_SEPARATOR))); |
093d3ff1 RD |
38368 | } |
38369 | { | |
32fe5131 | 38370 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int(static_cast<int >(wxTOOL_STYLE_CONTROL))); |
093d3ff1 RD |
38371 | } |
38372 | { | |
32fe5131 | 38373 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int(static_cast<int >(wxTB_HORIZONTAL))); |
093d3ff1 RD |
38374 | } |
38375 | { | |
32fe5131 | 38376 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int(static_cast<int >(wxTB_VERTICAL))); |
093d3ff1 RD |
38377 | } |
38378 | { | |
32fe5131 | 38379 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int(static_cast<int >(wxTB_3DBUTTONS))); |
093d3ff1 RD |
38380 | } |
38381 | { | |
32fe5131 | 38382 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int(static_cast<int >(wxTB_FLAT))); |
093d3ff1 RD |
38383 | } |
38384 | { | |
32fe5131 | 38385 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int(static_cast<int >(wxTB_DOCKABLE))); |
093d3ff1 RD |
38386 | } |
38387 | { | |
32fe5131 | 38388 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int(static_cast<int >(wxTB_NOICONS))); |
093d3ff1 RD |
38389 | } |
38390 | { | |
32fe5131 | 38391 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int(static_cast<int >(wxTB_TEXT))); |
093d3ff1 RD |
38392 | } |
38393 | { | |
32fe5131 | 38394 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int(static_cast<int >(wxTB_NODIVIDER))); |
093d3ff1 RD |
38395 | } |
38396 | { | |
32fe5131 | 38397 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int(static_cast<int >(wxTB_NOALIGN))); |
093d3ff1 RD |
38398 | } |
38399 | { | |
32fe5131 | 38400 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int(static_cast<int >(wxTB_HORZ_LAYOUT))); |
093d3ff1 RD |
38401 | } |
38402 | { | |
32fe5131 | 38403 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int(static_cast<int >(wxTB_HORZ_TEXT))); |
093d3ff1 | 38404 | } |
b2dc1044 | 38405 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
093d3ff1 | 38406 | { |
32fe5131 | 38407 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int(static_cast<int >(wxLC_VRULES))); |
093d3ff1 RD |
38408 | } |
38409 | { | |
32fe5131 | 38410 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int(static_cast<int >(wxLC_HRULES))); |
093d3ff1 RD |
38411 | } |
38412 | { | |
32fe5131 | 38413 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int(static_cast<int >(wxLC_ICON))); |
093d3ff1 RD |
38414 | } |
38415 | { | |
32fe5131 | 38416 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int(static_cast<int >(wxLC_SMALL_ICON))); |
093d3ff1 RD |
38417 | } |
38418 | { | |
32fe5131 | 38419 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int(static_cast<int >(wxLC_LIST))); |
093d3ff1 RD |
38420 | } |
38421 | { | |
32fe5131 | 38422 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int(static_cast<int >(wxLC_REPORT))); |
093d3ff1 RD |
38423 | } |
38424 | { | |
32fe5131 | 38425 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int(static_cast<int >(wxLC_ALIGN_TOP))); |
093d3ff1 RD |
38426 | } |
38427 | { | |
32fe5131 | 38428 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int(static_cast<int >(wxLC_ALIGN_LEFT))); |
093d3ff1 RD |
38429 | } |
38430 | { | |
32fe5131 | 38431 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int(static_cast<int >(wxLC_AUTOARRANGE))); |
093d3ff1 RD |
38432 | } |
38433 | { | |
32fe5131 | 38434 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int(static_cast<int >(wxLC_VIRTUAL))); |
093d3ff1 RD |
38435 | } |
38436 | { | |
32fe5131 | 38437 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int(static_cast<int >(wxLC_EDIT_LABELS))); |
093d3ff1 RD |
38438 | } |
38439 | { | |
32fe5131 | 38440 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int(static_cast<int >(wxLC_NO_HEADER))); |
093d3ff1 RD |
38441 | } |
38442 | { | |
32fe5131 | 38443 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int(static_cast<int >(wxLC_NO_SORT_HEADER))); |
093d3ff1 RD |
38444 | } |
38445 | { | |
32fe5131 | 38446 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int(static_cast<int >(wxLC_SINGLE_SEL))); |
093d3ff1 RD |
38447 | } |
38448 | { | |
32fe5131 | 38449 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int(static_cast<int >(wxLC_SORT_ASCENDING))); |
093d3ff1 RD |
38450 | } |
38451 | { | |
32fe5131 | 38452 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int(static_cast<int >(wxLC_SORT_DESCENDING))); |
093d3ff1 RD |
38453 | } |
38454 | { | |
32fe5131 | 38455 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int(static_cast<int >(wxLC_MASK_TYPE))); |
093d3ff1 RD |
38456 | } |
38457 | { | |
32fe5131 | 38458 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int(static_cast<int >(wxLC_MASK_ALIGN))); |
093d3ff1 RD |
38459 | } |
38460 | { | |
32fe5131 | 38461 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int(static_cast<int >(wxLC_MASK_SORT))); |
093d3ff1 RD |
38462 | } |
38463 | { | |
32fe5131 | 38464 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int(static_cast<int >(wxLIST_MASK_STATE))); |
093d3ff1 RD |
38465 | } |
38466 | { | |
32fe5131 | 38467 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int(static_cast<int >(wxLIST_MASK_TEXT))); |
093d3ff1 RD |
38468 | } |
38469 | { | |
32fe5131 | 38470 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int(static_cast<int >(wxLIST_MASK_IMAGE))); |
093d3ff1 RD |
38471 | } |
38472 | { | |
32fe5131 | 38473 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int(static_cast<int >(wxLIST_MASK_DATA))); |
093d3ff1 RD |
38474 | } |
38475 | { | |
32fe5131 | 38476 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int(static_cast<int >(wxLIST_SET_ITEM))); |
093d3ff1 RD |
38477 | } |
38478 | { | |
32fe5131 | 38479 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int(static_cast<int >(wxLIST_MASK_WIDTH))); |
093d3ff1 RD |
38480 | } |
38481 | { | |
32fe5131 | 38482 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int(static_cast<int >(wxLIST_MASK_FORMAT))); |
093d3ff1 RD |
38483 | } |
38484 | { | |
32fe5131 | 38485 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int(static_cast<int >(wxLIST_STATE_DONTCARE))); |
093d3ff1 RD |
38486 | } |
38487 | { | |
32fe5131 | 38488 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int(static_cast<int >(wxLIST_STATE_DROPHILITED))); |
093d3ff1 RD |
38489 | } |
38490 | { | |
32fe5131 | 38491 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int(static_cast<int >(wxLIST_STATE_FOCUSED))); |
093d3ff1 RD |
38492 | } |
38493 | { | |
32fe5131 | 38494 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int(static_cast<int >(wxLIST_STATE_SELECTED))); |
093d3ff1 RD |
38495 | } |
38496 | { | |
32fe5131 | 38497 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int(static_cast<int >(wxLIST_STATE_CUT))); |
093d3ff1 RD |
38498 | } |
38499 | { | |
32fe5131 | 38500 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int(static_cast<int >(wxLIST_STATE_DISABLED))); |
093d3ff1 RD |
38501 | } |
38502 | { | |
32fe5131 | 38503 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int(static_cast<int >(wxLIST_STATE_FILTERED))); |
093d3ff1 RD |
38504 | } |
38505 | { | |
32fe5131 | 38506 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int(static_cast<int >(wxLIST_STATE_INUSE))); |
093d3ff1 RD |
38507 | } |
38508 | { | |
32fe5131 | 38509 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int(static_cast<int >(wxLIST_STATE_PICKED))); |
093d3ff1 RD |
38510 | } |
38511 | { | |
32fe5131 | 38512 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int(static_cast<int >(wxLIST_STATE_SOURCE))); |
093d3ff1 RD |
38513 | } |
38514 | { | |
32fe5131 | 38515 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ABOVE))); |
093d3ff1 RD |
38516 | } |
38517 | { | |
32fe5131 | 38518 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_BELOW))); |
093d3ff1 RD |
38519 | } |
38520 | { | |
32fe5131 | 38521 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_NOWHERE))); |
093d3ff1 RD |
38522 | } |
38523 | { | |
32fe5131 | 38524 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ONITEMICON))); |
093d3ff1 RD |
38525 | } |
38526 | { | |
32fe5131 | 38527 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ONITEMLABEL))); |
093d3ff1 RD |
38528 | } |
38529 | { | |
32fe5131 | 38530 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ONITEMRIGHT))); |
093d3ff1 RD |
38531 | } |
38532 | { | |
32fe5131 | 38533 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ONITEMSTATEICON))); |
093d3ff1 RD |
38534 | } |
38535 | { | |
32fe5131 | 38536 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_TOLEFT))); |
093d3ff1 RD |
38537 | } |
38538 | { | |
32fe5131 | 38539 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_TORIGHT))); |
093d3ff1 RD |
38540 | } |
38541 | { | |
32fe5131 | 38542 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ONITEM))); |
093d3ff1 RD |
38543 | } |
38544 | { | |
32fe5131 | 38545 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int(static_cast<int >(wxLIST_NEXT_ABOVE))); |
093d3ff1 RD |
38546 | } |
38547 | { | |
32fe5131 | 38548 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int(static_cast<int >(wxLIST_NEXT_ALL))); |
093d3ff1 RD |
38549 | } |
38550 | { | |
32fe5131 | 38551 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int(static_cast<int >(wxLIST_NEXT_BELOW))); |
093d3ff1 RD |
38552 | } |
38553 | { | |
32fe5131 | 38554 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int(static_cast<int >(wxLIST_NEXT_LEFT))); |
093d3ff1 RD |
38555 | } |
38556 | { | |
32fe5131 | 38557 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int(static_cast<int >(wxLIST_NEXT_RIGHT))); |
093d3ff1 RD |
38558 | } |
38559 | { | |
32fe5131 | 38560 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int(static_cast<int >(wxLIST_ALIGN_DEFAULT))); |
093d3ff1 RD |
38561 | } |
38562 | { | |
32fe5131 | 38563 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int(static_cast<int >(wxLIST_ALIGN_LEFT))); |
093d3ff1 RD |
38564 | } |
38565 | { | |
32fe5131 | 38566 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int(static_cast<int >(wxLIST_ALIGN_TOP))); |
093d3ff1 RD |
38567 | } |
38568 | { | |
32fe5131 | 38569 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int(static_cast<int >(wxLIST_ALIGN_SNAP_TO_GRID))); |
093d3ff1 RD |
38570 | } |
38571 | { | |
32fe5131 | 38572 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int(static_cast<int >(wxLIST_FORMAT_LEFT))); |
093d3ff1 RD |
38573 | } |
38574 | { | |
32fe5131 | 38575 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int(static_cast<int >(wxLIST_FORMAT_RIGHT))); |
093d3ff1 RD |
38576 | } |
38577 | { | |
32fe5131 | 38578 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int(static_cast<int >(wxLIST_FORMAT_CENTRE))); |
093d3ff1 RD |
38579 | } |
38580 | { | |
32fe5131 | 38581 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int(static_cast<int >(wxLIST_FORMAT_CENTER))); |
093d3ff1 RD |
38582 | } |
38583 | { | |
32fe5131 | 38584 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int(static_cast<int >(wxLIST_AUTOSIZE))); |
093d3ff1 RD |
38585 | } |
38586 | { | |
32fe5131 | 38587 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int(static_cast<int >(wxLIST_AUTOSIZE_USEHEADER))); |
093d3ff1 RD |
38588 | } |
38589 | { | |
32fe5131 | 38590 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int(static_cast<int >(wxLIST_RECT_BOUNDS))); |
093d3ff1 RD |
38591 | } |
38592 | { | |
32fe5131 | 38593 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int(static_cast<int >(wxLIST_RECT_ICON))); |
093d3ff1 RD |
38594 | } |
38595 | { | |
32fe5131 | 38596 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int(static_cast<int >(wxLIST_RECT_LABEL))); |
093d3ff1 RD |
38597 | } |
38598 | { | |
32fe5131 | 38599 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int(static_cast<int >(wxLIST_FIND_UP))); |
093d3ff1 RD |
38600 | } |
38601 | { | |
32fe5131 | 38602 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int(static_cast<int >(wxLIST_FIND_DOWN))); |
093d3ff1 RD |
38603 | } |
38604 | { | |
32fe5131 | 38605 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int(static_cast<int >(wxLIST_FIND_LEFT))); |
093d3ff1 RD |
38606 | } |
38607 | { | |
32fe5131 | 38608 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int(static_cast<int >(wxLIST_FIND_RIGHT))); |
093d3ff1 | 38609 | } |
d14a1e28 RD |
38610 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
38611 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
38612 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
38613 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
38614 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
38615 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
d14a1e28 RD |
38616 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); |
38617 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
38618 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
38619 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
38620 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
38621 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
38622 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
38623 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
38624 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
38625 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
38626 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
38627 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
38628 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
38629 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
38630 | ||
38631 | // Map renamed classes back to their common name for OOR | |
38632 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
38633 | ||
b2dc1044 | 38634 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
093d3ff1 | 38635 | { |
32fe5131 | 38636 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int(static_cast<int >(wxTR_NO_BUTTONS))); |
093d3ff1 RD |
38637 | } |
38638 | { | |
32fe5131 | 38639 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int(static_cast<int >(wxTR_HAS_BUTTONS))); |
093d3ff1 RD |
38640 | } |
38641 | { | |
32fe5131 | 38642 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int(static_cast<int >(wxTR_NO_LINES))); |
093d3ff1 RD |
38643 | } |
38644 | { | |
32fe5131 | 38645 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int(static_cast<int >(wxTR_LINES_AT_ROOT))); |
093d3ff1 RD |
38646 | } |
38647 | { | |
32fe5131 | 38648 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int(static_cast<int >(wxTR_SINGLE))); |
093d3ff1 RD |
38649 | } |
38650 | { | |
32fe5131 | 38651 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int(static_cast<int >(wxTR_MULTIPLE))); |
093d3ff1 RD |
38652 | } |
38653 | { | |
32fe5131 | 38654 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int(static_cast<int >(wxTR_EXTENDED))); |
093d3ff1 RD |
38655 | } |
38656 | { | |
32fe5131 | 38657 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int(static_cast<int >(wxTR_HAS_VARIABLE_ROW_HEIGHT))); |
093d3ff1 RD |
38658 | } |
38659 | { | |
32fe5131 | 38660 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int(static_cast<int >(wxTR_EDIT_LABELS))); |
093d3ff1 RD |
38661 | } |
38662 | { | |
32fe5131 | 38663 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int(static_cast<int >(wxTR_HIDE_ROOT))); |
093d3ff1 RD |
38664 | } |
38665 | { | |
32fe5131 | 38666 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int(static_cast<int >(wxTR_ROW_LINES))); |
093d3ff1 RD |
38667 | } |
38668 | { | |
32fe5131 | 38669 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int(static_cast<int >(wxTR_FULL_ROW_HIGHLIGHT))); |
093d3ff1 RD |
38670 | } |
38671 | { | |
32fe5131 | 38672 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int(static_cast<int >(wxTR_DEFAULT_STYLE))); |
093d3ff1 RD |
38673 | } |
38674 | { | |
32fe5131 | 38675 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int(static_cast<int >(wxTR_TWIST_BUTTONS))); |
093d3ff1 RD |
38676 | } |
38677 | { | |
32fe5131 | 38678 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int(static_cast<int >(wxTR_MAC_BUTTONS))); |
093d3ff1 RD |
38679 | } |
38680 | { | |
32fe5131 | 38681 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int(static_cast<int >(wxTR_AQUA_BUTTONS))); |
093d3ff1 RD |
38682 | } |
38683 | { | |
32fe5131 | 38684 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int(static_cast<int >(wxTreeItemIcon_Normal))); |
093d3ff1 RD |
38685 | } |
38686 | { | |
32fe5131 | 38687 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int(static_cast<int >(wxTreeItemIcon_Selected))); |
093d3ff1 RD |
38688 | } |
38689 | { | |
32fe5131 | 38690 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int(static_cast<int >(wxTreeItemIcon_Expanded))); |
093d3ff1 RD |
38691 | } |
38692 | { | |
32fe5131 | 38693 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int(static_cast<int >(wxTreeItemIcon_SelectedExpanded))); |
093d3ff1 RD |
38694 | } |
38695 | { | |
32fe5131 | 38696 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int(static_cast<int >(wxTreeItemIcon_Max))); |
093d3ff1 RD |
38697 | } |
38698 | { | |
32fe5131 | 38699 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ABOVE))); |
093d3ff1 RD |
38700 | } |
38701 | { | |
32fe5131 | 38702 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_BELOW))); |
093d3ff1 RD |
38703 | } |
38704 | { | |
32fe5131 | 38705 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_NOWHERE))); |
093d3ff1 RD |
38706 | } |
38707 | { | |
32fe5131 | 38708 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMBUTTON))); |
093d3ff1 RD |
38709 | } |
38710 | { | |
32fe5131 | 38711 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMICON))); |
093d3ff1 RD |
38712 | } |
38713 | { | |
32fe5131 | 38714 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMINDENT))); |
093d3ff1 RD |
38715 | } |
38716 | { | |
32fe5131 | 38717 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMLABEL))); |
093d3ff1 RD |
38718 | } |
38719 | { | |
32fe5131 | 38720 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMRIGHT))); |
093d3ff1 RD |
38721 | } |
38722 | { | |
32fe5131 | 38723 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMSTATEICON))); |
093d3ff1 RD |
38724 | } |
38725 | { | |
32fe5131 | 38726 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_TOLEFT))); |
093d3ff1 RD |
38727 | } |
38728 | { | |
32fe5131 | 38729 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_TORIGHT))); |
093d3ff1 RD |
38730 | } |
38731 | { | |
32fe5131 | 38732 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMUPPERPART))); |
093d3ff1 RD |
38733 | } |
38734 | { | |
32fe5131 | 38735 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMLOWERPART))); |
093d3ff1 RD |
38736 | } |
38737 | { | |
32fe5131 | 38738 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEM))); |
093d3ff1 | 38739 | } |
d14a1e28 RD |
38740 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
38741 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
38742 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
38743 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
38744 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
38745 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
38746 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
38747 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
38748 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
38749 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
38750 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
38751 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
38752 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
38753 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
38754 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
38755 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
38756 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
38757 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
38758 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 38759 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
e505d15e | 38760 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); |
d14a1e28 RD |
38761 | |
38762 | // Map renamed classes back to their common name for OOR | |
38763 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
38764 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
38765 | ||
b2dc1044 | 38766 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
093d3ff1 | 38767 | { |
32fe5131 | 38768 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int(static_cast<int >(wxDIRCTRL_DIR_ONLY))); |
093d3ff1 RD |
38769 | } |
38770 | { | |
32fe5131 | 38771 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int(static_cast<int >(wxDIRCTRL_SELECT_FIRST))); |
093d3ff1 RD |
38772 | } |
38773 | { | |
32fe5131 | 38774 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int(static_cast<int >(wxDIRCTRL_SHOW_FILTERS))); |
093d3ff1 RD |
38775 | } |
38776 | { | |
32fe5131 | 38777 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int(static_cast<int >(wxDIRCTRL_3D_INTERNAL))); |
093d3ff1 RD |
38778 | } |
38779 | { | |
32fe5131 | 38780 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int(static_cast<int >(wxDIRCTRL_EDIT_LABELS))); |
093d3ff1 RD |
38781 | } |
38782 | { | |
32fe5131 | 38783 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int(static_cast<int >(wxFRAME_EX_CONTEXTHELP))); |
093d3ff1 RD |
38784 | } |
38785 | { | |
32fe5131 | 38786 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int(static_cast<int >(wxDIALOG_EX_CONTEXTHELP))); |
093d3ff1 | 38787 | } |
d14a1e28 RD |
38788 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
38789 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
38790 | |
38791 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
38792 | ||
53aa7709 RD |
38793 | SWIG_addvarlink(SWIG_globals,(char*)"DatePickerCtrlNameStr",_wrap_DatePickerCtrlNameStr_get, _wrap_DatePickerCtrlNameStr_set); |
38794 | { | |
32fe5131 | 38795 | PyDict_SetItemString(d,"DP_DEFAULT", SWIG_From_int(static_cast<int >(wxDP_DEFAULT))); |
53aa7709 RD |
38796 | } |
38797 | { | |
32fe5131 | 38798 | PyDict_SetItemString(d,"DP_SPIN", SWIG_From_int(static_cast<int >(wxDP_SPIN))); |
53aa7709 RD |
38799 | } |
38800 | { | |
32fe5131 | 38801 | PyDict_SetItemString(d,"DP_DROPDOWN", SWIG_From_int(static_cast<int >(wxDP_DROPDOWN))); |
53aa7709 RD |
38802 | } |
38803 | { | |
32fe5131 | 38804 | PyDict_SetItemString(d,"DP_SHOWCENTURY", SWIG_From_int(static_cast<int >(wxDP_SHOWCENTURY))); |
53aa7709 RD |
38805 | } |
38806 | { | |
32fe5131 | 38807 | PyDict_SetItemString(d,"DP_ALLOWNONE", SWIG_From_int(static_cast<int >(wxDP_ALLOWNONE))); |
53aa7709 | 38808 | } |
d14a1e28 RD |
38809 | } |
38810 |