]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
7449af73 | 3 | * Version 1.3.27 |
d55e5bfc 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 | |
d55e5bfc 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 | }; |
d55e5bfc RD |
27 | #endif |
28 | ||
7449af73 RD |
29 | /*********************************************************************** |
30 | * | |
31 | * This section contains generic SWIG labels for method/variable | |
32 | * declarations/attributes, and other compiler dependent labels. | |
33 | * | |
34 | ************************************************************************/ | |
d55e5bfc | 35 | |
7449af73 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 |
7449af73 | 41 | # define SWIGTEMPLATEDISAMBIGUATOR |
093d3ff1 RD |
42 | # endif |
43 | #endif | |
d55e5bfc | 44 | |
7449af73 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 | ||
d55e5bfc | 96 | |
093d3ff1 | 97 | #include <Python.h> |
d55e5bfc RD |
98 | |
99 | /*********************************************************************** | |
093d3ff1 | 100 | * swigrun.swg |
d55e5bfc | 101 | * |
093d3ff1 RD |
102 | * This file contains generic CAPI SWIG runtime support for pointer |
103 | * type checking. | |
d55e5bfc 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 */ | |
7449af73 | 109 | #define SWIG_RUNTIME_VERSION "2" |
d55e5bfc | 110 | |
093d3ff1 RD |
111 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
112 | #ifdef SWIG_TYPE_TABLE | |
7449af73 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) | |
d55e5bfc | 116 | #else |
7449af73 | 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 | */ | |
7449af73 | 128 | |
093d3ff1 | 129 | #ifndef SWIGRUNTIME |
7449af73 | 130 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 131 | #endif |
7449af73 | 132 | |
093d3ff1 | 133 | #ifndef SWIGRUNTIMEINLINE |
7449af73 | 134 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d55e5bfc RD |
135 | #endif |
136 | ||
7449af73 RD |
137 | #include <string.h> |
138 | ||
d55e5bfc 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 | ||
7449af73 | 146 | /* Structure to store inforomation on one type */ |
d55e5bfc | 147 | typedef struct swig_type_info { |
7449af73 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 */ | |
d55e5bfc RD |
153 | } swig_type_info; |
154 | ||
7449af73 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; | |
7449af73 | 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>|... | |
7449af73 | 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 | } | |
7449af73 | 207 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
208 | if (*ne) ++ne; |
209 | } | |
210 | return equiv; | |
211 | } | |
212 | ||
213 | /* | |
7449af73 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 | */ |
7449af73 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 | } |
7449af73 RD |
226 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
227 | if (*ne) ++ne; | |
093d3ff1 | 228 | } |
7449af73 | 229 | return equiv; |
093d3ff1 RD |
230 | } |
231 | ||
7449af73 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 | */ | |
7449af73 | 258 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 259 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
7449af73 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 * | |
7449af73 | 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 | |
7449af73 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; | |
7449af73 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 | } |
7449af73 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 | } |
7449af73 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 | } |
7449af73 RD |
414 | |
415 | /* neither found a match */ | |
416 | return 0; | |
093d3ff1 RD |
417 | } |
418 | ||
7449af73 | 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) { | |
7449af73 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) { |
7449af73 | 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; | |
7449af73 | 442 | register const unsigned char *eu = u + sz; |
093d3ff1 | 443 | for (; u != eu; ++u) { |
7449af73 | 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 | } | |
d55e5bfc | 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 | } | |
d55e5bfc RD |
518 | |
519 | #ifdef __cplusplus | |
520 | } | |
521 | #endif | |
522 | ||
093d3ff1 RD |
523 | /* ----------------------------------------------------------------------------- |
524 | * SWIG API. Portion that goes into the runtime | |
525 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 526 | |
093d3ff1 RD |
527 | #ifdef __cplusplus |
528 | extern "C" { | |
529 | #endif | |
c32bde28 | 530 | |
093d3ff1 RD |
531 | /* ----------------------------------------------------------------------------- |
532 | * for internal method declarations | |
533 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 534 | |
093d3ff1 | 535 | #ifndef SWIGINTERN |
7449af73 | 536 | # define SWIGINTERN static SWIGUNUSED |
093d3ff1 | 537 | #endif |
d55e5bfc | 538 | |
7449af73 RD |
539 | #ifndef SWIGINTERNINLINE |
540 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
093d3ff1 | 541 | #endif |
d55e5bfc | 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 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 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; | |
d55e5bfc | 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 | |
d55e5bfc RD |
587 | |
588 | #ifdef __cplusplus | |
093d3ff1 RD |
589 | } |
590 | #endif | |
d55e5bfc | 591 | |
d55e5bfc | 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 | ************************************************************************/ | |
d55e5bfc | 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) | |
9d7dfdff | 607 | |
d55e5bfc | 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) | |
d55e5bfc | 612 | |
7449af73 RD |
613 | /* Runtime API */ |
614 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
615 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
d55e5bfc | 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 | |
d55e5bfc | 628 | |
093d3ff1 RD |
629 | /* Flags for pointer conversion */ |
630 | #define SWIG_POINTER_EXCEPTION 0x1 | |
631 | #define SWIG_POINTER_DISOWN 0x2 | |
d55e5bfc | 632 | |
d55e5bfc | 633 | |
7449af73 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 | |
d55e5bfc | 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 | |
d55e5bfc | 649 | |
7449af73 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 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 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) | |
d55e5bfc | 684 | { |
093d3ff1 | 685 | char result[SWIG_BUFFER_SIZE]; |
7449af73 | 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; | |
d55e5bfc | 692 | } |
d55e5bfc | 693 | } |
9d7dfdff | 694 | |
093d3ff1 RD |
695 | SWIGRUNTIME PyObject * |
696 | PySwigObject_repr(PySwigObject *v) | |
d55e5bfc | 697 | { |
093d3ff1 RD |
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; | |
d55e5bfc 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 | } | |
d55e5bfc | 710 | |
093d3ff1 RD |
711 | SWIGRUNTIME PyObject * |
712 | PySwigObject_long(PySwigObject *v) | |
713 | { | |
7449af73 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; | |
d55e5bfc | 731 | } |
093d3ff1 RD |
732 | |
733 | SWIGRUNTIME PyObject * | |
734 | PySwigObject_oct(PySwigObject *v) | |
c32bde28 | 735 | { |
7449af73 | 736 | return PySwigObject_format("%o",v); |
c32bde28 | 737 | } |
d55e5bfc | 738 | |
093d3ff1 RD |
739 | SWIGRUNTIME PyObject * |
740 | PySwigObject_hex(PySwigObject *v) | |
741 | { | |
7449af73 | 742 | return PySwigObject_format("%x",v); |
093d3ff1 | 743 | } |
d55e5bfc | 744 | |
093d3ff1 RD |
745 | SWIGRUNTIME int |
746 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
d55e5bfc | 747 | { |
093d3ff1 RD |
748 | int c = strcmp(v->desc, w->desc); |
749 | if (c) { | |
7449af73 | 750 | return (c > 0) ? 1 : -1; |
093d3ff1 RD |
751 | } else { |
752 | void *i = v->ptr; | |
753 | void *j = w->ptr; | |
7449af73 | 754 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
d55e5bfc | 755 | } |
c32bde28 RD |
756 | } |
757 | ||
093d3ff1 RD |
758 | SWIGRUNTIME void |
759 | PySwigObject_dealloc(PySwigObject *self) | |
c32bde28 | 760 | { |
7449af73 | 761 | PyObject_Del(self); |
d55e5bfc RD |
762 | } |
763 | ||
093d3ff1 | 764 | SWIGRUNTIME PyTypeObject* |
7449af73 RD |
765 | PySwigObject_type(void) { |
766 | static char pyswigobject_type__doc__[] = | |
093d3ff1 | 767 | "Swig object carries a C/C++ instance pointer"; |
9d7dfdff | 768 | |
093d3ff1 RD |
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*/ | |
7449af73 | 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 */ |
7449af73 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 | ||
7449af73 RD |
800 | static PyTypeObject pyswigobject_type |
801 | #if !defined(__cplusplus) | |
802 | ; | |
803 | static int type_init = 0; | |
093d3ff1 | 804 | if (!type_init) { |
7449af73 RD |
805 | PyTypeObject tmp |
806 | #endif | |
807 | = { | |
093d3ff1 RD |
808 | PyObject_HEAD_INIT(&PyType_Type) |
809 | 0, /*ob_size*/ | |
7449af73 | 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 */ | |
7449af73 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 */ | |
839 | #endif | |
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 | }; | |
7449af73 RD |
847 | #if !defined(__cplusplus) |
848 | pyswigobject_type = tmp; | |
093d3ff1 | 849 | type_init = 1; |
c32bde28 | 850 | } |
7449af73 RD |
851 | #endif |
852 | return &pyswigobject_type; | |
c32bde28 RD |
853 | } |
854 | ||
093d3ff1 RD |
855 | SWIGRUNTIME PyObject * |
856 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
d55e5bfc | 857 | { |
7449af73 RD |
858 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type()); |
859 | if (self) { | |
860 | self->ptr = ptr; | |
861 | self->desc = desc; | |
862 | } | |
093d3ff1 | 863 | return (PyObject *)self; |
c32bde28 RD |
864 | } |
865 | ||
093d3ff1 RD |
866 | SWIGRUNTIMEINLINE void * |
867 | PySwigObject_AsVoidPtr(PyObject *self) | |
868 | { | |
869 | return ((PySwigObject *)self)->ptr; | |
870 | } | |
c32bde28 | 871 | |
093d3ff1 RD |
872 | SWIGRUNTIMEINLINE const char * |
873 | PySwigObject_GetDesc(PyObject *self) | |
c32bde28 | 874 | { |
093d3ff1 | 875 | return ((PySwigObject *)self)->desc; |
d55e5bfc RD |
876 | } |
877 | ||
093d3ff1 RD |
878 | SWIGRUNTIMEINLINE int |
879 | PySwigObject_Check(PyObject *op) { | |
7449af73 | 880 | return ((op)->ob_type == PySwigObject_type()) |
093d3ff1 RD |
881 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); |
882 | } | |
d55e5bfc | 883 | |
093d3ff1 RD |
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) | |
d55e5bfc | 897 | { |
093d3ff1 | 898 | char result[SWIG_BUFFER_SIZE]; |
7449af73 | 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); | |
c32bde28 | 904 | } |
093d3ff1 RD |
905 | fputs(v->desc,fp); |
906 | fputs(">", fp); | |
907 | return 0; | |
d55e5bfc | 908 | } |
9d7dfdff | 909 | |
093d3ff1 RD |
910 | SWIGRUNTIME PyObject * |
911 | PySwigPacked_repr(PySwigPacked *v) | |
d55e5bfc | 912 | { |
093d3ff1 RD |
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 | } | |
d55e5bfc RD |
919 | } |
920 | ||
093d3ff1 RD |
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 { | |
7449af73 | 928 | return PyString_FromString(v->desc); |
093d3ff1 RD |
929 | } |
930 | } | |
d55e5bfc | 931 | |
093d3ff1 RD |
932 | SWIGRUNTIME int |
933 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
934 | { | |
935 | int c = strcmp(v->desc, w->desc); | |
936 | if (c) { | |
7449af73 | 937 | return (c > 0) ? 1 : -1; |
093d3ff1 RD |
938 | } else { |
939 | size_t i = v->size; | |
940 | size_t j = w->size; | |
7449af73 | 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 | } | |
d55e5bfc | 945 | |
093d3ff1 RD |
946 | SWIGRUNTIME void |
947 | PySwigPacked_dealloc(PySwigPacked *self) | |
948 | { | |
949 | free(self->pack); | |
7449af73 | 950 | PyObject_Del(self); |
093d3ff1 RD |
951 | } |
952 | ||
953 | SWIGRUNTIME PyTypeObject* | |
7449af73 RD |
954 | PySwigPacked_type(void) { |
955 | static char pyswigpacked_type__doc__[] = | |
093d3ff1 | 956 | "Swig object carries a C/C++ instance pointer"; |
7449af73 RD |
957 | static PyTypeObject pyswigpacked_type |
958 | #if !defined(__cplusplus) | |
959 | ; | |
960 | static int type_init = 0; | |
093d3ff1 | 961 | if (!type_init) { |
7449af73 RD |
962 | PyTypeObject tmp |
963 | #endif | |
964 | = { | |
093d3ff1 RD |
965 | PyObject_HEAD_INIT(&PyType_Type) |
966 | 0, /*ob_size*/ | |
7449af73 | 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 */ | |
7449af73 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 | }; | |
7449af73 RD |
1004 | #if !defined(__cplusplus) |
1005 | pyswigpacked_type = tmp; | |
093d3ff1 | 1006 | type_init = 1; |
7e63a440 | 1007 | } |
7449af73 RD |
1008 | #endif |
1009 | return &pyswigpacked_type; | |
093d3ff1 | 1010 | } |
d55e5bfc | 1011 | |
093d3ff1 RD |
1012 | SWIGRUNTIME PyObject * |
1013 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
1014 | { | |
7449af73 | 1015 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
093d3ff1 RD |
1016 | if (self == NULL) { |
1017 | return NULL; | |
1018 | } else { | |
1019 | void *pack = malloc(size); | |
7449af73 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 | } | |
c32bde28 | 1030 | |
093d3ff1 RD |
1031 | SWIGRUNTIMEINLINE const char * |
1032 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
d55e5bfc | 1033 | { |
093d3ff1 RD |
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; | |
d55e5bfc RD |
1044 | } |
1045 | ||
093d3ff1 RD |
1046 | SWIGRUNTIMEINLINE int |
1047 | PySwigPacked_Check(PyObject *op) { | |
7449af73 | 1048 | return ((op)->ob_type == PySwigPacked_type()) |
093d3ff1 RD |
1049 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); |
1050 | } | |
d55e5bfc | 1051 | |
093d3ff1 RD |
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) | |
d55e5bfc | 1072 | { |
093d3ff1 RD |
1073 | if (type) { |
1074 | #if defined(SWIG_COBJECT_TYPES) | |
7449af73 | 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 | } | |
7449af73 | 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"); | |
d55e5bfc | 1103 | } |
c32bde28 RD |
1104 | } |
1105 | ||
093d3ff1 RD |
1106 | SWIGRUNTIMEINLINE void |
1107 | SWIG_Python_NullRef(const char *type) | |
c32bde28 | 1108 | { |
093d3ff1 RD |
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 | } | |
d55e5bfc RD |
1114 | } |
1115 | ||
093d3ff1 RD |
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 | } | |
d55e5bfc | 1140 | |
093d3ff1 RD |
1141 | SWIGRUNTIME int |
1142 | SWIG_Python_ArgFail(int argnum) | |
d55e5bfc | 1143 | { |
093d3ff1 RD |
1144 | if (PyErr_Occurred()) { |
1145 | /* add information about failing argument */ | |
1146 | char mesg[256]; | |
7449af73 | 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 | } | |
d55e5bfc RD |
1152 | } |
1153 | ||
1154 | ||
093d3ff1 RD |
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) { | |
7449af73 | 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; | |
9d7dfdff | 1168 | |
093d3ff1 RD |
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; | |
d55e5bfc | 1192 | #else |
093d3ff1 RD |
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 | } | |
7449af73 | 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; | |
d55e5bfc | 1210 | #endif |
d55e5bfc | 1211 | |
093d3ff1 | 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) { | |
7449af73 | 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); | |
d55e5bfc | 1245 | } |
093d3ff1 RD |
1246 | } |
1247 | return -1; | |
1248 | } | |
d55e5bfc | 1249 | |
093d3ff1 RD |
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); | |
d55e5bfc | 1259 | } |
093d3ff1 RD |
1260 | } |
1261 | return result; | |
1262 | } | |
d55e5bfc | 1263 | |
093d3ff1 RD |
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) { | |
7449af73 | 1267 | swig_cast_info *tc; |
093d3ff1 | 1268 | const char *c = 0; |
d55e5bfc | 1269 | |
093d3ff1 RD |
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; | |
7449af73 | 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; | |
d55e5bfc | 1284 | |
093d3ff1 RD |
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; | |
7449af73 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 | } | |
d55e5bfc | 1336 | |
093d3ff1 RD |
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 | } | |
d55e5bfc | 1352 | #endif |
093d3ff1 RD |
1353 | return robj; |
1354 | } | |
d55e5bfc | 1355 | |
093d3ff1 RD |
1356 | /* -----------------------------------------------------------------------------* |
1357 | * Get type list | |
1358 | * -----------------------------------------------------------------------------*/ | |
d55e5bfc | 1359 | |
093d3ff1 RD |
1360 | #ifdef SWIG_LINK_RUNTIME |
1361 | void *SWIG_ReturnGlobalTypeList(void *); | |
1362 | #endif | |
d55e5bfc | 1363 | |
7449af73 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 |
7449af73 RD |
1379 | } |
1380 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 1381 | } |
d55e5bfc | 1382 | |
7449af73 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 | } |
7449af73 | 1413 | #endif |
d55e5bfc | 1414 | |
7449af73 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 | } | |
d55e5bfc | 1426 | |
093d3ff1 RD |
1427 | #ifdef __cplusplus |
1428 | } | |
1429 | #endif | |
d55e5bfc | 1430 | |
d55e5bfc | 1431 | |
093d3ff1 | 1432 | /* -------- TYPES TABLE (BEGIN) -------- */ |
d55e5bfc | 1433 | |
7449af73 RD |
1434 | #define SWIGTYPE_p_char swig_types[0] |
1435 | #define SWIGTYPE_p_form_ops_t swig_types[1] | |
1436 | #define SWIGTYPE_p_int swig_types[2] | |
1437 | #define SWIGTYPE_p_unsigned_char swig_types[3] | |
1438 | #define SWIGTYPE_p_unsigned_int swig_types[4] | |
1439 | #define SWIGTYPE_p_unsigned_long swig_types[5] | |
1440 | #define SWIGTYPE_p_void swig_types[6] | |
1441 | #define SWIGTYPE_p_wxANIHandler swig_types[7] | |
1442 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[8] | |
1443 | #define SWIGTYPE_p_wxActivateEvent swig_types[9] | |
1444 | #define SWIGTYPE_p_wxArrayString swig_types[10] | |
1445 | #define SWIGTYPE_p_wxBMPHandler swig_types[11] | |
1446 | #define SWIGTYPE_p_wxBitmap swig_types[12] | |
1447 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[13] | |
1448 | #define SWIGTYPE_p_wxBoxSizer swig_types[14] | |
1449 | #define SWIGTYPE_p_wxBusyCursor swig_types[15] | |
1450 | #define SWIGTYPE_p_wxBusyInfo swig_types[16] | |
1451 | #define SWIGTYPE_p_wxCURHandler swig_types[17] | |
1452 | #define SWIGTYPE_p_wxCaret swig_types[18] | |
1453 | #define SWIGTYPE_p_wxChar swig_types[19] | |
1454 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[20] | |
1455 | #define SWIGTYPE_p_wxClipboard swig_types[21] | |
1456 | #define SWIGTYPE_p_wxClipboardLocker swig_types[22] | |
1457 | #define SWIGTYPE_p_wxCloseEvent swig_types[23] | |
1458 | #define SWIGTYPE_p_wxColour swig_types[24] | |
1459 | #define SWIGTYPE_p_wxCommandEvent swig_types[25] | |
1460 | #define SWIGTYPE_p_wxConfig swig_types[26] | |
1461 | #define SWIGTYPE_p_wxConfigBase swig_types[27] | |
1462 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[28] | |
1463 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[29] | |
1464 | #define SWIGTYPE_p_wxControl swig_types[30] | |
1465 | #define SWIGTYPE_p_wxControlWithItems swig_types[31] | |
1466 | #define SWIGTYPE_p_wxCursor swig_types[32] | |
1467 | #define SWIGTYPE_p_wxCustomDataObject swig_types[33] | |
1468 | #define SWIGTYPE_p_wxDC swig_types[34] | |
1469 | #define SWIGTYPE_p_wxDataFormat swig_types[35] | |
1470 | #define SWIGTYPE_p_wxDataObject swig_types[36] | |
1471 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[37] | |
1472 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[38] | |
1473 | #define SWIGTYPE_p_wxDateEvent swig_types[39] | |
1474 | #define SWIGTYPE_p_wxDateSpan swig_types[40] | |
1475 | #define SWIGTYPE_p_wxDateTime swig_types[41] | |
1476 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[42] | |
1477 | #define SWIGTYPE_p_wxDisplay swig_types[43] | |
1478 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44] | |
1479 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[45] | |
1480 | #define SWIGTYPE_p_wxDuplexMode swig_types[46] | |
1481 | #define SWIGTYPE_p_wxEraseEvent swig_types[47] | |
1482 | #define SWIGTYPE_p_wxEvent swig_types[48] | |
1483 | #define SWIGTYPE_p_wxEvtHandler swig_types[49] | |
1484 | #define SWIGTYPE_p_wxFSFile swig_types[50] | |
1485 | #define SWIGTYPE_p_wxFileConfig swig_types[51] | |
1486 | #define SWIGTYPE_p_wxFileDataObject swig_types[52] | |
1487 | #define SWIGTYPE_p_wxFileHistory swig_types[53] | |
1488 | #define SWIGTYPE_p_wxFileSystem swig_types[54] | |
1489 | #define SWIGTYPE_p_wxFileType swig_types[55] | |
1490 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[56] | |
1491 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[57] | |
1492 | #define SWIGTYPE_p_wxFocusEvent swig_types[58] | |
1493 | #define SWIGTYPE_p_wxFont swig_types[59] | |
1494 | #define SWIGTYPE_p_wxFrame swig_types[60] | |
1495 | #define SWIGTYPE_p_wxGBSizerItem swig_types[61] | |
1496 | #define SWIGTYPE_p_wxGIFHandler swig_types[62] | |
1497 | #define SWIGTYPE_p_wxGridBagSizer swig_types[63] | |
1498 | #define SWIGTYPE_p_wxGridSizer swig_types[64] | |
1499 | #define SWIGTYPE_p_wxICOHandler swig_types[65] | |
1500 | #define SWIGTYPE_p_wxIcon swig_types[66] | |
1501 | #define SWIGTYPE_p_wxIconizeEvent swig_types[67] | |
1502 | #define SWIGTYPE_p_wxIdleEvent swig_types[68] | |
1503 | #define SWIGTYPE_p_wxImage swig_types[69] | |
1504 | #define SWIGTYPE_p_wxImageHandler swig_types[70] | |
1505 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[71] | |
1506 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[72] | |
1507 | #define SWIGTYPE_p_wxJPEGHandler swig_types[73] | |
1508 | #define SWIGTYPE_p_wxJoystick swig_types[74] | |
1509 | #define SWIGTYPE_p_wxJoystickEvent swig_types[75] | |
1510 | #define SWIGTYPE_p_wxKeyEvent swig_types[76] | |
1511 | #define SWIGTYPE_p_wxKillError swig_types[77] | |
1512 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[78] | |
1513 | #define SWIGTYPE_p_wxLog swig_types[79] | |
1514 | #define SWIGTYPE_p_wxLogBuffer swig_types[80] | |
1515 | #define SWIGTYPE_p_wxLogChain swig_types[81] | |
1516 | #define SWIGTYPE_p_wxLogGui swig_types[82] | |
1517 | #define SWIGTYPE_p_wxLogNull swig_types[83] | |
1518 | #define SWIGTYPE_p_wxLogStderr swig_types[84] | |
1519 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[85] | |
1520 | #define SWIGTYPE_p_wxLogWindow swig_types[86] | |
1521 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[87] | |
1522 | #define SWIGTYPE_p_wxMemorySize swig_types[88] | |
1523 | #define SWIGTYPE_p_wxMenu swig_types[89] | |
1524 | #define SWIGTYPE_p_wxMenuBar swig_types[90] | |
1525 | #define SWIGTYPE_p_wxMenuEvent swig_types[91] | |
1526 | #define SWIGTYPE_p_wxMenuItem swig_types[92] | |
1527 | #define SWIGTYPE_p_wxMetafile swig_types[93] | |
1528 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[94] | |
1529 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[95] | |
1530 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[96] | |
1531 | #define SWIGTYPE_p_wxMouseEvent swig_types[97] | |
1532 | #define SWIGTYPE_p_wxMouseState swig_types[98] | |
1533 | #define SWIGTYPE_p_wxMoveEvent swig_types[99] | |
1534 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[100] | |
1535 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[101] | |
1536 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[102] | |
1537 | #define SWIGTYPE_p_wxNotifyEvent swig_types[103] | |
1538 | #define SWIGTYPE_p_wxObject swig_types[104] | |
1539 | #define SWIGTYPE_p_wxOutputStream swig_types[105] | |
1540 | #define SWIGTYPE_p_wxPCXHandler swig_types[106] | |
1541 | #define SWIGTYPE_p_wxPNGHandler swig_types[107] | |
1542 | #define SWIGTYPE_p_wxPNMHandler swig_types[108] | |
1543 | #define SWIGTYPE_p_wxPaintEvent swig_types[109] | |
1544 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110] | |
1545 | #define SWIGTYPE_p_wxPaperSize swig_types[111] | |
1546 | #define SWIGTYPE_p_wxPoint swig_types[112] | |
1547 | #define SWIGTYPE_p_wxProcessEvent swig_types[113] | |
1548 | #define SWIGTYPE_p_wxPyApp swig_types[114] | |
1549 | #define SWIGTYPE_p_wxPyArtProvider swig_types[115] | |
1550 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[116] | |
1551 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[117] | |
1552 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[118] | |
1553 | #define SWIGTYPE_p_wxPyDropSource swig_types[119] | |
1554 | #define SWIGTYPE_p_wxPyDropTarget swig_types[120] | |
1555 | #define SWIGTYPE_p_wxPyEvent swig_types[121] | |
1556 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[122] | |
1557 | #define SWIGTYPE_p_wxPyImageHandler swig_types[123] | |
1558 | #define SWIGTYPE_p_wxPyLog swig_types[124] | |
1559 | #define SWIGTYPE_p_wxPyProcess swig_types[125] | |
1560 | #define SWIGTYPE_p_wxPySizer swig_types[126] | |
1561 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[127] | |
1562 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[128] | |
1563 | #define SWIGTYPE_p_wxPyTimer swig_types[129] | |
1564 | #define SWIGTYPE_p_wxPyTipProvider swig_types[130] | |
1565 | #define SWIGTYPE_p_wxPyValidator swig_types[131] | |
1566 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[132] | |
1567 | #define SWIGTYPE_p_wxRect swig_types[133] | |
1568 | #define SWIGTYPE_p_wxScrollEvent swig_types[134] | |
1569 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[135] | |
1570 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[136] | |
1571 | #define SWIGTYPE_p_wxShowEvent swig_types[137] | |
1572 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[138] | |
1573 | #define SWIGTYPE_p_wxSize swig_types[139] | |
1574 | #define SWIGTYPE_p_wxSizeEvent swig_types[140] | |
1575 | #define SWIGTYPE_p_wxSizer swig_types[141] | |
1576 | #define SWIGTYPE_p_wxSizerItem swig_types[142] | |
1577 | #define SWIGTYPE_p_wxSound swig_types[143] | |
1578 | #define SWIGTYPE_p_wxStandardPaths swig_types[144] | |
1579 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[145] | |
1580 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146] | |
1581 | #define SWIGTYPE_p_wxStopWatch swig_types[147] | |
1582 | #define SWIGTYPE_p_wxString swig_types[148] | |
1583 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149] | |
1584 | #define SWIGTYPE_p_wxSystemOptions swig_types[150] | |
1585 | #define SWIGTYPE_p_wxSystemSettings swig_types[151] | |
1586 | #define SWIGTYPE_p_wxTIFFHandler swig_types[152] | |
1587 | #define SWIGTYPE_p_wxTextCtrl swig_types[153] | |
1588 | #define SWIGTYPE_p_wxTextDataObject swig_types[154] | |
1589 | #define SWIGTYPE_p_wxTimeSpan swig_types[155] | |
1590 | #define SWIGTYPE_p_wxTimer swig_types[156] | |
1591 | #define SWIGTYPE_p_wxTimerEvent swig_types[157] | |
1592 | #define SWIGTYPE_p_wxTimerRunner swig_types[158] | |
1593 | #define SWIGTYPE_p_wxTipProvider swig_types[159] | |
1594 | #define SWIGTYPE_p_wxToolTip swig_types[160] | |
1595 | #define SWIGTYPE_p_wxURLDataObject swig_types[161] | |
1596 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[162] | |
1597 | #define SWIGTYPE_p_wxValidator swig_types[163] | |
1598 | #define SWIGTYPE_p_wxVideoMode swig_types[164] | |
1599 | #define SWIGTYPE_p_wxWindow swig_types[165] | |
1600 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[166] | |
1601 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167] | |
1602 | #define SWIGTYPE_p_wxWindowDisabler swig_types[168] | |
1603 | #define SWIGTYPE_p_wxXPMHandler swig_types[169] | |
1604 | #define SWIGTYPE_ptrdiff_t swig_types[170] | |
1605 | #define SWIGTYPE_std__ptrdiff_t swig_types[171] | |
1606 | #define SWIGTYPE_unsigned_int swig_types[172] | |
1607 | static swig_type_info *swig_types[174]; | |
1608 | static swig_module_info swig_module = {swig_types, 173, 0, 0, 0, 0}; | |
1609 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) | |
1610 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
d55e5bfc | 1611 | |
093d3ff1 | 1612 | /* -------- TYPES TABLE (END) -------- */ |
d55e5bfc RD |
1613 | |
1614 | ||
093d3ff1 RD |
1615 | /*----------------------------------------------- |
1616 | @(target):= _misc_.so | |
1617 | ------------------------------------------------*/ | |
1618 | #define SWIG_init init_misc_ | |
d55e5bfc | 1619 | |
093d3ff1 | 1620 | #define SWIG_name "_misc_" |
d55e5bfc | 1621 | |
093d3ff1 RD |
1622 | #include "wx/wxPython/wxPython.h" |
1623 | #include "wx/wxPython/pyclasses.h" | |
1624 | #include "wx/wxPython/pyistream.h" | |
d55e5bfc | 1625 | |
093d3ff1 | 1626 | static const wxString wxPyEmptyString(wxEmptyString); |
d55e5bfc | 1627 | |
d55e5bfc | 1628 | |
d55e5bfc | 1629 | |
7449af73 | 1630 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1631 | #define SWIG_From_int PyInt_FromLong |
1632 | /*@@*/ | |
d55e5bfc RD |
1633 | |
1634 | ||
093d3ff1 | 1635 | #include <limits.h> |
d55e5bfc RD |
1636 | |
1637 | ||
093d3ff1 RD |
1638 | SWIGINTERN int |
1639 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1640 | const char *errmsg) | |
d55e5bfc | 1641 | { |
093d3ff1 RD |
1642 | if (value < min_value) { |
1643 | if (errmsg) { | |
1644 | PyErr_Format(PyExc_OverflowError, | |
1645 | "value %ld is less than '%s' minimum %ld", | |
1646 | value, errmsg, min_value); | |
1647 | } | |
1648 | return 0; | |
1649 | } else if (value > max_value) { | |
c32bde28 RD |
1650 | if (errmsg) { |
1651 | PyErr_Format(PyExc_OverflowError, | |
093d3ff1 | 1652 | "value %ld is greater than '%s' maximum %ld", |
c32bde28 | 1653 | value, errmsg, max_value); |
d55e5bfc | 1654 | } |
c32bde28 | 1655 | return 0; |
d55e5bfc | 1656 | } |
c32bde28 | 1657 | return 1; |
093d3ff1 | 1658 | } |
d55e5bfc RD |
1659 | |
1660 | ||
093d3ff1 RD |
1661 | SWIGINTERN int |
1662 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1663 | { | |
1664 | if (PyNumber_Check(obj)) { | |
1665 | if (val) *val = PyInt_AsLong(obj); | |
1666 | return 1; | |
1667 | } | |
1668 | else { | |
1669 | SWIG_type_error("number", obj); | |
1670 | } | |
1671 | return 0; | |
1672 | } | |
1673 | ||
1674 | ||
1675 | #if INT_MAX != LONG_MAX | |
1676 | SWIGINTERN int | |
1677 | SWIG_AsVal_int(PyObject *obj, int *val) | |
d55e5bfc | 1678 | { |
093d3ff1 RD |
1679 | const char* errmsg = val ? "int" : (char*)0; |
1680 | long v; | |
1681 | if (SWIG_AsVal_long(obj, &v)) { | |
1682 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
7449af73 | 1683 | if (val) *val = static_cast<int >(v); |
c32bde28 | 1684 | return 1; |
093d3ff1 RD |
1685 | } else { |
1686 | return 0; | |
c32bde28 RD |
1687 | } |
1688 | } else { | |
1689 | PyErr_Clear(); | |
1690 | } | |
1691 | if (val) { | |
093d3ff1 | 1692 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
1693 | } |
1694 | return 0; | |
d55e5bfc RD |
1695 | } |
1696 | #else | |
7449af73 | 1697 | SWIGINTERNINLINE int |
093d3ff1 | 1698 | SWIG_AsVal_int(PyObject *obj, int *val) |
c32bde28 | 1699 | { |
093d3ff1 | 1700 | return SWIG_AsVal_long(obj,(long*)val); |
c32bde28 | 1701 | } |
d55e5bfc RD |
1702 | #endif |
1703 | ||
1704 | ||
7449af73 | 1705 | SWIGINTERNINLINE int |
093d3ff1 | 1706 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 1707 | { |
093d3ff1 RD |
1708 | int v; |
1709 | if (!SWIG_AsVal_int(obj, &v)) { | |
c32bde28 | 1710 | /* |
093d3ff1 | 1711 | this is needed to make valgrind/purify happier. |
c32bde28 | 1712 | */ |
093d3ff1 | 1713 | memset((void*)&v, 0, sizeof(int)); |
d55e5bfc | 1714 | } |
c32bde28 RD |
1715 | return v; |
1716 | } | |
1717 | ||
1718 | ||
7449af73 | 1719 | SWIGINTERNINLINE int |
093d3ff1 | 1720 | SWIG_Check_int(PyObject* obj) |
c32bde28 | 1721 | { |
093d3ff1 | 1722 | return SWIG_AsVal_int(obj, (int*)0); |
d55e5bfc RD |
1723 | } |
1724 | ||
093d3ff1 | 1725 | static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT); |
f78cc896 | 1726 | |
093d3ff1 | 1727 | #include <wx/stockitem.h> |
f78cc896 | 1728 | |
093d3ff1 RD |
1729 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
1730 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
1731 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
f78cc896 | 1732 | |
7449af73 | 1733 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1734 | #define SWIG_From_long PyInt_FromLong |
1735 | /*@@*/ | |
f78cc896 | 1736 | |
f78cc896 | 1737 | |
7449af73 | 1738 | SWIGINTERNINLINE long |
093d3ff1 RD |
1739 | SWIG_As_long(PyObject* obj) |
1740 | { | |
1741 | long v; | |
1742 | if (!SWIG_AsVal_long(obj, &v)) { | |
1743 | /* | |
1744 | this is needed to make valgrind/purify happier. | |
1745 | */ | |
1746 | memset((void*)&v, 0, sizeof(long)); | |
1747 | } | |
1748 | return v; | |
1749 | } | |
f78cc896 | 1750 | |
093d3ff1 | 1751 | |
7449af73 | 1752 | SWIGINTERNINLINE int |
093d3ff1 RD |
1753 | SWIG_Check_long(PyObject* obj) |
1754 | { | |
1755 | return SWIG_AsVal_long(obj, (long*)0); | |
1756 | } | |
f78cc896 | 1757 | |
f78cc896 | 1758 | |
093d3ff1 RD |
1759 | SWIGINTERN int |
1760 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
1761 | { | |
1762 | if (obj == Py_True) { | |
1763 | if (val) *val = true; | |
1764 | return 1; | |
1765 | } | |
1766 | if (obj == Py_False) { | |
1767 | if (val) *val = false; | |
1768 | return 1; | |
1769 | } | |
1770 | int res = 0; | |
1771 | if (SWIG_AsVal_int(obj, &res)) { | |
1772 | if (val) *val = res ? true : false; | |
1773 | return 1; | |
1774 | } else { | |
1775 | PyErr_Clear(); | |
1776 | } | |
1777 | if (val) { | |
1778 | SWIG_type_error("bool", obj); | |
1779 | } | |
1780 | return 0; | |
1781 | } | |
d55e5bfc | 1782 | |
d55e5bfc | 1783 | |
7449af73 | 1784 | SWIGINTERNINLINE bool |
093d3ff1 RD |
1785 | SWIG_As_bool(PyObject* obj) |
1786 | { | |
1787 | bool v; | |
1788 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1789 | /* | |
1790 | this is needed to make valgrind/purify happier. | |
1791 | */ | |
1792 | memset((void*)&v, 0, sizeof(bool)); | |
1793 | } | |
1794 | return v; | |
1795 | } | |
d55e5bfc | 1796 | |
093d3ff1 | 1797 | |
7449af73 | 1798 | SWIGINTERNINLINE int |
093d3ff1 RD |
1799 | SWIG_Check_bool(PyObject* obj) |
1800 | { | |
1801 | return SWIG_AsVal_bool(obj, (bool*)0); | |
1802 | } | |
d55e5bfc RD |
1803 | |
1804 | ||
093d3ff1 RD |
1805 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
1806 | PyObject* o2; | |
1807 | PyObject* o3; | |
1808 | ||
1809 | if (!target) { | |
1810 | target = o; | |
1811 | } else if (target == Py_None) { | |
1812 | Py_DECREF(Py_None); | |
1813 | target = o; | |
1814 | } else { | |
1815 | if (!PyTuple_Check(target)) { | |
1816 | o2 = target; | |
1817 | target = PyTuple_New(1); | |
1818 | PyTuple_SetItem(target, 0, o2); | |
1819 | } | |
1820 | o3 = PyTuple_New(1); | |
1821 | PyTuple_SetItem(o3, 0, o); | |
d55e5bfc | 1822 | |
093d3ff1 RD |
1823 | o2 = target; |
1824 | target = PySequence_Concat(o2, o3); | |
1825 | Py_DECREF(o2); | |
1826 | Py_DECREF(o3); | |
1827 | } | |
1828 | return target; | |
1829 | } | |
d55e5bfc | 1830 | |
d55e5bfc RD |
1831 | |
1832 | ||
093d3ff1 RD |
1833 | SWIGINTERN int |
1834 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
1835 | { | |
1836 | long v = 0; | |
1837 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
1838 | SWIG_type_error("unsigned number", obj); | |
d55e5bfc | 1839 | } |
093d3ff1 RD |
1840 | else if (val) |
1841 | *val = (unsigned long)v; | |
1842 | return 1; | |
1843 | } | |
d55e5bfc | 1844 | |
d55e5bfc | 1845 | |
7449af73 | 1846 | SWIGINTERNINLINE unsigned long |
093d3ff1 RD |
1847 | SWIG_As_unsigned_SS_long(PyObject* obj) |
1848 | { | |
1849 | unsigned long v; | |
1850 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1851 | /* | |
1852 | this is needed to make valgrind/purify happier. | |
1853 | */ | |
1854 | memset((void*)&v, 0, sizeof(unsigned long)); | |
1855 | } | |
1856 | return v; | |
1857 | } | |
d55e5bfc | 1858 | |
093d3ff1 | 1859 | |
7449af73 | 1860 | SWIGINTERNINLINE int |
093d3ff1 RD |
1861 | SWIG_Check_unsigned_SS_long(PyObject* obj) |
1862 | { | |
1863 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
1864 | } | |
d55e5bfc RD |
1865 | |
1866 | ||
7449af73 | 1867 | SWIGINTERNINLINE PyObject* |
093d3ff1 RD |
1868 | SWIG_From_unsigned_SS_long(unsigned long value) |
1869 | { | |
1870 | return (value > LONG_MAX) ? | |
1871 | PyLong_FromUnsignedLong(value) | |
7449af73 | 1872 | : PyInt_FromLong(static_cast<long >(value)); |
093d3ff1 | 1873 | } |
d55e5bfc RD |
1874 | |
1875 | ||
a97cefba RD |
1876 | void* wxGetXDisplay() |
1877 | { | |
1878 | #ifdef __WXGTK__ | |
1879 | return wxGetDisplay(); | |
1880 | #else | |
1881 | return NULL; | |
1882 | #endif | |
1883 | } | |
1884 | ||
1885 | ||
7449af73 RD |
1886 | wxWindow* FindWindowAtPointer() { |
1887 | wxPoint unused; | |
1888 | return wxFindWindowAtPointer(unused); | |
1889 | } | |
1890 | ||
1891 | ||
093d3ff1 RD |
1892 | bool wxThread_IsMain() { |
1893 | #ifdef WXP_WITH_THREAD | |
1894 | return wxThread::IsMain(); | |
1895 | #else | |
1896 | return true; | |
1897 | #endif | |
d55e5bfc | 1898 | } |
093d3ff1 | 1899 | |
091fdbfa RD |
1900 | static void wxCaret_Destroy(wxCaret *self){ |
1901 | delete self; | |
1902 | } | |
d55e5bfc | 1903 | |
093d3ff1 RD |
1904 | #include <wx/snglinst.h> |
1905 | ||
1906 | ||
68350608 RD |
1907 | #ifdef __WXMSW__ |
1908 | #include <wx/msw/private.h> | |
1909 | #include <wx/dynload.h> | |
1910 | #endif | |
1911 | ||
1912 | ||
1913 | ||
1914 | bool wxDrawWindowOnDC(wxWindow* window, const wxDC& dc | |
1915 | #if 0 | |
1916 | , int method | |
1917 | #endif | |
1918 | ) | |
1919 | { | |
1920 | #ifdef __WXMSW__ | |
1921 | #if 0 | |
1922 | switch (method) | |
1923 | { | |
1924 | case 1: | |
1925 | // This one only partially works. Appears to be an undocumented | |
1926 | // "standard" convention that not all widgets adhear to. For | |
1927 | // example, for some widgets backgrounds or non-client areas may | |
1928 | // not be painted. | |
1929 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
1930 | break; | |
1931 | ||
1932 | case 2: | |
1933 | #endif | |
1934 | // This one works much better, nearly all widgets and their | |
1935 | // children are captured correctly[**]. Prior to the big | |
1936 | // background erase changes that Vadim did in 2004-2005 this | |
1937 | // method failed badly on XP with Themes activated, most native | |
1938 | // widgets draw only partially, if at all. Without themes it | |
1939 | // worked just like on Win2k. After those changes this method | |
1940 | // works very well. | |
1941 | // | |
1942 | // ** For example the radio buttons in a wxRadioBox are not its | |
1943 | // children by default, but you can capture it via the panel | |
1944 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
1945 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
1946 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
1947 | PRF_ERASEBKGND | PRF_OWNED ); | |
1948 | return true; | |
1949 | #if 0 | |
1950 | break; | |
1951 | ||
1952 | case 3: | |
1953 | // This one is only defined in the latest SDK and is only | |
1954 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
1955 | // so I expect that it will work similar to the above. Since it | |
1956 | // is avaialble only on XP, it can't be compiled like this and | |
1957 | // will have to be loaded dynamically. | |
1958 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
1959 | ||
1960 | // fall through | |
1961 | ||
1962 | case 4: | |
1963 | // Use PrintWindow if available, or fallback to WM_PRINT | |
1964 | // otherwise. Unfortunately using PrintWindow is even worse than | |
1965 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
1966 | // at all, with or without Themes. | |
1967 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
1968 | static bool s_triedToLoad = false; | |
1969 | static PrintWindow_t pfnPrintWindow = NULL; | |
1970 | if ( !s_triedToLoad ) | |
1971 | { | |
1972 | ||
1973 | s_triedToLoad = true; | |
1974 | wxDynamicLibrary dllUser32(_T("user32.dll")); | |
1975 | if ( dllUser32.IsLoaded() ) | |
1976 | { | |
1977 | wxLogNull nolog; // Don't report errors here | |
1978 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
1979 | } | |
1980 | } | |
1981 | if (pfnPrintWindow) | |
1982 | { | |
1983 | //printf("Using PrintWindow\n"); | |
1984 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
1985 | } | |
1986 | else | |
1987 | { | |
1988 | //printf("Using WM_PRINT\n"); | |
1989 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
1990 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
1991 | PRF_ERASEBKGND | PRF_OWNED ); | |
1992 | } | |
1993 | } | |
1994 | #endif // 0 | |
1995 | #else | |
1996 | return false; | |
1997 | #endif // __WXMSW__ | |
1998 | } | |
1999 | ||
2000 | ||
2001 | ||
093d3ff1 RD |
2002 | #include <wx/tipdlg.h> |
2003 | ||
d55e5bfc | 2004 | |
093d3ff1 RD |
2005 | class wxPyTipProvider : public wxTipProvider { |
2006 | public: | |
2007 | wxPyTipProvider(size_t currentTip) | |
2008 | : wxTipProvider(currentTip) {} | |
2009 | ||
2010 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
2011 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
d55e5bfc RD |
2012 | PYPRIVATE; |
2013 | }; | |
2014 | ||
093d3ff1 RD |
2015 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); |
2016 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
d55e5bfc RD |
2017 | |
2018 | ||
093d3ff1 | 2019 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); |
d55e5bfc | 2020 | |
093d3ff1 | 2021 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
d55e5bfc | 2022 | |
093d3ff1 RD |
2023 | wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id) |
2024 | : wxTimer(owner, id) | |
2025 | { | |
2026 | if (owner == NULL) SetOwner(this); | |
2027 | } | |
d55e5bfc | 2028 | |
d55e5bfc | 2029 | |
093d3ff1 RD |
2030 | void wxPyTimer::Notify() { |
2031 | bool found; | |
5a446332 | 2032 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2033 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) |
2034 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
2035 | wxPyEndBlockThreads(blocked); | |
2036 | if (! found) | |
2037 | wxTimer::Notify(); | |
2038 | } | |
2039 | void wxPyTimer::base_Notify() { | |
2040 | wxTimer::Notify(); | |
2041 | } | |
d55e5bfc | 2042 | |
d55e5bfc | 2043 | |
093d3ff1 RD |
2044 | |
2045 | SWIGINTERN PyObject * | |
2046 | SWIG_FromCharPtr(const char* cptr) | |
2047 | { | |
2048 | if (cptr) { | |
2049 | size_t size = strlen(cptr); | |
2050 | if (size > INT_MAX) { | |
7449af73 | 2051 | return SWIG_NewPointerObj(const_cast<char* >(cptr), |
093d3ff1 RD |
2052 | SWIG_TypeQuery("char *"), 0); |
2053 | } else { | |
2054 | if (size != 0) { | |
2055 | return PyString_FromStringAndSize(cptr, size); | |
2056 | } else { | |
2057 | return PyString_FromString(cptr); | |
2058 | } | |
c32bde28 | 2059 | } |
093d3ff1 RD |
2060 | } |
2061 | Py_INCREF(Py_None); | |
2062 | return Py_None; | |
2063 | } | |
2064 | ||
2065 | ||
7449af73 | 2066 | SWIGINTERNINLINE int |
093d3ff1 RD |
2067 | SWIG_CheckUnsignedLongInRange(unsigned long value, |
2068 | unsigned long max_value, | |
2069 | const char *errmsg) | |
2070 | { | |
2071 | if (value > max_value) { | |
2072 | if (errmsg) { | |
2073 | PyErr_Format(PyExc_OverflowError, | |
2074 | "value %lu is greater than '%s' minimum %lu", | |
2075 | value, errmsg, max_value); | |
d55e5bfc | 2076 | } |
c32bde28 | 2077 | return 0; |
093d3ff1 RD |
2078 | } |
2079 | return 1; | |
2080 | } | |
2081 | ||
2082 | ||
2083 | #if UINT_MAX != ULONG_MAX | |
2084 | SWIGINTERN int | |
2085 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
2086 | { | |
2087 | const char* errmsg = val ? "unsigned int" : (char*)0; | |
2088 | unsigned long v; | |
2089 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2090 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
7449af73 | 2091 | if (val) *val = static_cast<unsigned int >(v); |
093d3ff1 RD |
2092 | return 1; |
2093 | } | |
2094 | } else { | |
2095 | PyErr_Clear(); | |
2096 | } | |
2097 | if (val) { | |
2098 | SWIG_type_error(errmsg, obj); | |
2099 | } | |
2100 | return 0; | |
2101 | } | |
2102 | #else | |
7449af73 | 2103 | SWIGINTERNINLINE unsigned int |
093d3ff1 RD |
2104 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
2105 | { | |
2106 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
d55e5bfc | 2107 | } |
093d3ff1 | 2108 | #endif |
d55e5bfc RD |
2109 | |
2110 | ||
7449af73 | 2111 | SWIGINTERNINLINE unsigned int |
093d3ff1 | 2112 | SWIG_As_unsigned_SS_int(PyObject* obj) |
d55e5bfc | 2113 | { |
093d3ff1 RD |
2114 | unsigned int v; |
2115 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
c32bde28 | 2116 | /* |
093d3ff1 | 2117 | this is needed to make valgrind/purify happier. |
c32bde28 | 2118 | */ |
093d3ff1 | 2119 | memset((void*)&v, 0, sizeof(unsigned int)); |
d55e5bfc | 2120 | } |
c32bde28 RD |
2121 | return v; |
2122 | } | |
2123 | ||
2124 | ||
7449af73 | 2125 | SWIGINTERNINLINE int |
093d3ff1 | 2126 | SWIG_Check_unsigned_SS_int(PyObject* obj) |
c32bde28 | 2127 | { |
093d3ff1 | 2128 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); |
d55e5bfc RD |
2129 | } |
2130 | ||
7449af73 | 2131 | static wxString wxLog_TimeStamp(){ |
093d3ff1 RD |
2132 | wxString msg; |
2133 | wxLog::TimeStamp(&msg); | |
2134 | return msg; | |
d55e5bfc | 2135 | } |
093d3ff1 RD |
2136 | static void wxLog_Destroy(wxLog *self){ delete self; } |
2137 | // Make somce wrappers that double any % signs so they are 'escaped' | |
2138 | void wxPyLogFatalError(const wxString& msg) | |
2139 | { | |
2140 | wxString m(msg); | |
2141 | m.Replace(wxT("%"), wxT("%%")); | |
2142 | wxLogFatalError(m); | |
2143 | } | |
2144 | ||
2145 | void wxPyLogError(const wxString& msg) | |
2146 | { | |
2147 | wxString m(msg); | |
2148 | m.Replace(wxT("%"), wxT("%%")); | |
2149 | wxLogError(m); | |
2150 | } | |
d55e5bfc | 2151 | |
093d3ff1 RD |
2152 | void wxPyLogWarning(const wxString& msg) |
2153 | { | |
2154 | wxString m(msg); | |
2155 | m.Replace(wxT("%"), wxT("%%")); | |
2156 | wxLogWarning(m); | |
2157 | } | |
d55e5bfc | 2158 | |
093d3ff1 RD |
2159 | void wxPyLogMessage(const wxString& msg) |
2160 | { | |
2161 | wxString m(msg); | |
2162 | m.Replace(wxT("%"), wxT("%%")); | |
2163 | wxLogMessage(m); | |
2164 | } | |
d55e5bfc | 2165 | |
093d3ff1 RD |
2166 | void wxPyLogInfo(const wxString& msg) |
2167 | { | |
2168 | wxString m(msg); | |
2169 | m.Replace(wxT("%"), wxT("%%")); | |
2170 | wxLogInfo(m); | |
2171 | } | |
d55e5bfc | 2172 | |
093d3ff1 RD |
2173 | void wxPyLogDebug(const wxString& msg) |
2174 | { | |
2175 | wxString m(msg); | |
2176 | m.Replace(wxT("%"), wxT("%%")); | |
2177 | wxLogDebug(m); | |
2178 | } | |
d55e5bfc | 2179 | |
093d3ff1 RD |
2180 | void wxPyLogVerbose(const wxString& msg) |
2181 | { | |
2182 | wxString m(msg); | |
2183 | m.Replace(wxT("%"), wxT("%%")); | |
2184 | wxLogVerbose(m); | |
2185 | } | |
d55e5bfc | 2186 | |
093d3ff1 RD |
2187 | void wxPyLogStatus(const wxString& msg) |
2188 | { | |
2189 | wxString m(msg); | |
2190 | m.Replace(wxT("%"), wxT("%%")); | |
2191 | wxLogStatus(m); | |
2192 | } | |
d55e5bfc | 2193 | |
093d3ff1 RD |
2194 | void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg) |
2195 | { | |
2196 | wxString m(msg); | |
2197 | m.Replace(wxT("%"), wxT("%%")); | |
2198 | wxLogStatus(pFrame, m); | |
2199 | } | |
d55e5bfc | 2200 | |
093d3ff1 RD |
2201 | void wxPyLogSysError(const wxString& msg) |
2202 | { | |
2203 | wxString m(msg); | |
2204 | m.Replace(wxT("%"), wxT("%%")); | |
2205 | wxLogSysError(m); | |
2206 | } | |
d55e5bfc | 2207 | |
093d3ff1 RD |
2208 | void wxPyLogGeneric(unsigned long level, const wxString& msg) |
2209 | { | |
2210 | wxString m(msg); | |
2211 | m.Replace(wxT("%"), wxT("%%")); | |
2212 | wxLogGeneric(level, m); | |
2213 | } | |
a07a67e6 | 2214 | |
093d3ff1 RD |
2215 | void wxPyLogTrace(unsigned long mask, const wxString& msg) |
2216 | { | |
2217 | wxString m(msg); | |
2218 | m.Replace(wxT("%"), wxT("%%")); | |
2219 | wxLogTrace(mask, m); | |
d55e5bfc | 2220 | } |
093d3ff1 RD |
2221 | |
2222 | void wxPyLogTrace(const wxString& mask, const wxString& msg) | |
2223 | { | |
2224 | wxString m(msg); | |
2225 | m.Replace(wxT("%"), wxT("%%")); | |
2226 | wxLogTrace(mask, m); | |
d55e5bfc | 2227 | } |
093d3ff1 | 2228 | |
d55e5bfc RD |
2229 | |
2230 | ||
093d3ff1 RD |
2231 | // A wxLog class that can be derived from in wxPython |
2232 | class wxPyLog : public wxLog { | |
d55e5bfc | 2233 | public: |
093d3ff1 | 2234 | wxPyLog() : wxLog() {} |
d55e5bfc | 2235 | |
093d3ff1 RD |
2236 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { |
2237 | bool found; | |
5a446332 | 2238 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2239 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
2240 | PyObject* s = wx2PyString(szString); | |
2241 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
2242 | Py_DECREF(s); | |
d55e5bfc | 2243 | } |
093d3ff1 RD |
2244 | wxPyEndBlockThreads(blocked); |
2245 | if (! found) | |
2246 | wxLog::DoLog(level, szString, t); | |
d55e5bfc | 2247 | } |
d55e5bfc | 2248 | |
093d3ff1 RD |
2249 | virtual void DoLogString(const wxChar *szString, time_t t) { |
2250 | bool found; | |
5a446332 | 2251 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2252 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
2253 | PyObject* s = wx2PyString(szString); | |
2254 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
2255 | Py_DECREF(s); | |
d55e5bfc | 2256 | } |
093d3ff1 RD |
2257 | wxPyEndBlockThreads(blocked); |
2258 | if (! found) | |
2259 | wxLog::DoLogString(szString, t); | |
2260 | } | |
d55e5bfc RD |
2261 | |
2262 | PYPRIVATE; | |
2263 | }; | |
2264 | ||
d55e5bfc RD |
2265 | |
2266 | ||
093d3ff1 RD |
2267 | |
2268 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
d55e5bfc | 2269 | |
d55e5bfc | 2270 | |
093d3ff1 | 2271 | #include <wx/joystick.h> |
d55e5bfc | 2272 | |
d55e5bfc | 2273 | |
093d3ff1 RD |
2274 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
2275 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
2276 | class wxJoystick : public wxObject { | |
2277 | public: | |
2278 | wxJoystick(int joystick = wxJOYSTICK1) { | |
5a446332 | 2279 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2280 | PyErr_SetString(PyExc_NotImplementedError, |
2281 | "wxJoystick is not available on this platform."); | |
2282 | wxPyEndBlockThreads(blocked); | |
d55e5bfc | 2283 | } |
093d3ff1 RD |
2284 | wxPoint GetPosition() { return wxPoint(-1,-1); } |
2285 | int GetZPosition() { return -1; } | |
2286 | int GetButtonState() { return -1; } | |
2287 | int GetPOVPosition() { return -1; } | |
2288 | int GetPOVCTSPosition() { return -1; } | |
2289 | int GetRudderPosition() { return -1; } | |
2290 | int GetUPosition() { return -1; } | |
2291 | int GetVPosition() { return -1; } | |
2292 | int GetMovementThreshold() { return -1; } | |
2293 | void SetMovementThreshold(int threshold) {} | |
d55e5bfc | 2294 | |
093d3ff1 RD |
2295 | bool IsOk(void) { return false; } |
2296 | int GetNumberJoysticks() { return -1; } | |
2297 | int GetManufacturerId() { return -1; } | |
2298 | int GetProductId() { return -1; } | |
2299 | wxString GetProductName() { return wxEmptyString; } | |
2300 | int GetXMin() { return -1; } | |
2301 | int GetYMin() { return -1; } | |
2302 | int GetZMin() { return -1; } | |
2303 | int GetXMax() { return -1; } | |
2304 | int GetYMax() { return -1; } | |
2305 | int GetZMax() { return -1; } | |
2306 | int GetNumberButtons() { return -1; } | |
2307 | int GetNumberAxes() { return -1; } | |
2308 | int GetMaxButtons() { return -1; } | |
2309 | int GetMaxAxes() { return -1; } | |
2310 | int GetPollingMin() { return -1; } | |
2311 | int GetPollingMax() { return -1; } | |
2312 | int GetRudderMin() { return -1; } | |
2313 | int GetRudderMax() { return -1; } | |
2314 | int GetUMin() { return -1; } | |
2315 | int GetUMax() { return -1; } | |
2316 | int GetVMin() { return -1; } | |
2317 | int GetVMax() { return -1; } | |
d55e5bfc | 2318 | |
093d3ff1 RD |
2319 | bool HasRudder() { return false; } |
2320 | bool HasZ() { return false; } | |
2321 | bool HasU() { return false; } | |
2322 | bool HasV() { return false; } | |
2323 | bool HasPOV() { return false; } | |
2324 | bool HasPOV4Dir() { return false; } | |
2325 | bool HasPOVCTS() { return false; } | |
d55e5bfc | 2326 | |
093d3ff1 RD |
2327 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; } |
2328 | bool ReleaseCapture() { return false; } | |
2329 | }; | |
2330 | #endif | |
d55e5bfc | 2331 | |
6923d0a9 | 2332 | |
093d3ff1 | 2333 | #include <wx/sound.h> |
6923d0a9 | 2334 | |
6923d0a9 | 2335 | |
093d3ff1 RD |
2336 | #if !wxUSE_SOUND |
2337 | // A C++ stub class for wxWave for platforms that don't have it. | |
2338 | class wxSound : public wxObject | |
6923d0a9 RD |
2339 | { |
2340 | public: | |
093d3ff1 | 2341 | wxSound() { |
5a446332 | 2342 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2343 | PyErr_SetString(PyExc_NotImplementedError, |
2344 | "wxSound is not available on this platform."); | |
2345 | wxPyEndBlockThreads(blocked); | |
2346 | } | |
2347 | wxSound(const wxString&/*, bool*/) { | |
5a446332 | 2348 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2349 | PyErr_SetString(PyExc_NotImplementedError, |
2350 | "wxSound is not available on this platform."); | |
2351 | wxPyEndBlockThreads(blocked); | |
2352 | } | |
2353 | wxSound(int, const wxByte*) { | |
5a446332 | 2354 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2355 | PyErr_SetString(PyExc_NotImplementedError, |
2356 | "wxSound is not available on this platform."); | |
2357 | wxPyEndBlockThreads(blocked); | |
2358 | } | |
6923d0a9 | 2359 | |
093d3ff1 | 2360 | ~wxSound() {}; |
6923d0a9 | 2361 | |
093d3ff1 RD |
2362 | bool Create(const wxString&/*, bool*/) { return false; } |
2363 | bool Create(int, const wxByte*) { return false; }; | |
2364 | bool IsOk() { return false; }; | |
2365 | bool Play(unsigned) const { return false; } | |
2366 | static bool Play(const wxString&, unsigned) { return false; } | |
2367 | static void Stop() {} | |
6923d0a9 | 2368 | }; |
093d3ff1 | 2369 | |
6923d0a9 RD |
2370 | #endif |
2371 | ||
093d3ff1 RD |
2372 | static wxSound *new_wxSound(wxString const &fileName=wxPyEmptyString){ |
2373 | if (fileName.Length() == 0) | |
2374 | return new wxSound; | |
2375 | else | |
2376 | return new wxSound(fileName); | |
2377 | } | |
2378 | static wxSound *new_wxSound(PyObject *data){ | |
2379 | unsigned char* buffer; int size; | |
2380 | wxSound *sound = NULL; | |
2381 | ||
5a446332 | 2382 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2383 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
2384 | goto done; | |
2385 | sound = new wxSound(size, buffer); | |
2386 | done: | |
d55e5bfc | 2387 | wxPyEndBlockThreads(blocked); |
093d3ff1 | 2388 | return sound; |
d55e5bfc | 2389 | } |
093d3ff1 RD |
2390 | static bool wxSound_CreateFromData(wxSound *self,PyObject *data){ |
2391 | #ifndef __WXMAC__ | |
2392 | unsigned char* buffer; | |
2393 | int size; | |
2394 | bool rv = false; | |
c1cb24a4 | 2395 | |
5a446332 | 2396 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2397 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
2398 | goto done; | |
2399 | rv = self->Create(size, buffer); | |
2400 | done: | |
2401 | wxPyEndBlockThreads(blocked); | |
2402 | return rv; | |
2403 | #else | |
5a446332 | 2404 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2405 | PyErr_SetString(PyExc_NotImplementedError, |
2406 | "Create from data is not available on this platform."); | |
2407 | wxPyEndBlockThreads(blocked); | |
2408 | return false; | |
2409 | #endif | |
2410 | } | |
c1cb24a4 | 2411 | |
093d3ff1 RD |
2412 | #include <wx/mimetype.h> |
2413 | ||
2414 | static PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
2415 | wxString str; | |
2416 | if (self->GetMimeType(&str)) | |
2417 | return wx2PyString(str); | |
2418 | else | |
2419 | RETURN_NONE(); | |
8fb0e70a | 2420 | } |
093d3ff1 RD |
2421 | static PyObject *wxFileType_GetMimeTypes(wxFileType *self){ |
2422 | wxArrayString arr; | |
2423 | if (self->GetMimeTypes(arr)) | |
2424 | return wxArrayString2PyList_helper(arr); | |
2425 | else | |
2426 | RETURN_NONE(); | |
2427 | } | |
2428 | static PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
2429 | wxArrayString arr; | |
2430 | if (self->GetExtensions(arr)) | |
2431 | return wxArrayString2PyList_helper(arr); | |
2432 | else | |
2433 | RETURN_NONE(); | |
2434 | } | |
2435 | static wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
2436 | wxIconLocation loc; | |
2437 | if (self->GetIcon(&loc)) | |
2438 | return new wxIcon(loc); | |
2439 | else | |
2440 | return NULL; | |
2441 | } | |
2442 | static PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
2443 | wxIconLocation loc; | |
2444 | if (self->GetIcon(&loc)) { | |
2445 | wxString iconFile = loc.GetFileName(); | |
2446 | int iconIndex = -1; | |
d55e5bfc | 2447 | |
093d3ff1 | 2448 | iconIndex = loc.GetIndex(); |
d55e5bfc | 2449 | |
093d3ff1 | 2450 | // Make a tuple and put the values in it |
5a446332 | 2451 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2452 | PyObject* tuple = PyTuple_New(3); |
2453 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
2454 | wxT("wxIcon"), true)); | |
2455 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); | |
2456 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
2457 | wxPyEndBlockThreads(blocked); | |
2458 | return tuple; | |
2459 | } | |
2460 | else | |
2461 | RETURN_NONE(); | |
2462 | } | |
2463 | static PyObject *wxFileType_GetDescription(wxFileType *self){ | |
2464 | wxString str; | |
2465 | if (self->GetDescription(&str)) | |
2466 | return wx2PyString(str); | |
2467 | else | |
2468 | RETURN_NONE(); | |
2469 | } | |
2470 | static PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2471 | wxString str; | |
2472 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
2473 | return wx2PyString(str); | |
2474 | else | |
2475 | RETURN_NONE(); | |
2476 | } | |
2477 | static PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2478 | wxString str; | |
2479 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
2480 | return wx2PyString(str); | |
2481 | else | |
2482 | RETURN_NONE(); | |
2483 | } | |
2484 | static PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2485 | wxArrayString verbs; | |
2486 | wxArrayString commands; | |
2487 | if (self->GetAllCommands(&verbs, &commands, | |
2488 | wxFileType::MessageParameters(filename, mimetype))) { | |
5a446332 | 2489 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2490 | PyObject* tuple = PyTuple_New(2); |
2491 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
2492 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
2493 | wxPyEndBlockThreads(blocked); | |
2494 | return tuple; | |
2495 | } | |
2496 | else | |
2497 | RETURN_NONE(); | |
2498 | } | |
7449af73 | 2499 | static wxString wxFileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ |
093d3ff1 RD |
2500 | return wxFileType::ExpandCommand(command, |
2501 | wxFileType::MessageParameters(filename, mimetype)); | |
2502 | } | |
2503 | static PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
2504 | wxArrayString arr; | |
2505 | self->EnumAllFileTypes(arr); | |
2506 | return wxArrayString2PyList_helper(arr); | |
2507 | } | |
d55e5bfc | 2508 | |
093d3ff1 | 2509 | #include <wx/artprov.h> |
d55e5bfc | 2510 | |
093d3ff1 RD |
2511 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); |
2512 | static const wxString wxPyART_MENU(wxART_MENU); | |
2513 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
2514 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
2515 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
2516 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
2517 | static const wxString wxPyART_BUTTON(wxART_BUTTON); | |
2518 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
2519 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
2520 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
2521 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
2522 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
2523 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
2524 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
2525 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
2526 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
2527 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
2528 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
2529 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
2530 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
2531 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
2532 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
68350608 RD |
2533 | static const wxString wxPyART_FILE_SAVE(wxART_FILE_SAVE); |
2534 | static const wxString wxPyART_FILE_SAVE_AS(wxART_FILE_SAVE_AS); | |
093d3ff1 RD |
2535 | static const wxString wxPyART_PRINT(wxART_PRINT); |
2536 | static const wxString wxPyART_HELP(wxART_HELP); | |
2537 | static const wxString wxPyART_TIP(wxART_TIP); | |
2538 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
2539 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
2540 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
2541 | static const wxString wxPyART_HARDDISK(wxART_HARDDISK); | |
2542 | static const wxString wxPyART_FLOPPY(wxART_FLOPPY); | |
2543 | static const wxString wxPyART_CDROM(wxART_CDROM); | |
2544 | static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE); | |
2545 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
2546 | static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN); | |
2547 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
2548 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
2549 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
2550 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
2551 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
2552 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
2553 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
2554 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
2555 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
2556 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
68350608 RD |
2557 | static const wxString wxPyART_COPY(wxART_COPY); |
2558 | static const wxString wxPyART_CUT(wxART_CUT); | |
2559 | static const wxString wxPyART_PASTE(wxART_PASTE); | |
2560 | static const wxString wxPyART_DELETE(wxART_DELETE); | |
a187dc0b | 2561 | static const wxString wxPyART_NEW(wxART_NEW); |
68350608 RD |
2562 | static const wxString wxPyART_UNDO(wxART_UNDO); |
2563 | static const wxString wxPyART_REDO(wxART_REDO); | |
2564 | static const wxString wxPyART_QUIT(wxART_QUIT); | |
2565 | static const wxString wxPyART_FIND(wxART_FIND); | |
2566 | static const wxString wxPyART_FIND_AND_REPLACE(wxART_FIND_AND_REPLACE); | |
093d3ff1 RD |
2567 | // Python aware wxArtProvider |
2568 | class wxPyArtProvider : public wxArtProvider { | |
2569 | public: | |
d55e5bfc | 2570 | |
093d3ff1 RD |
2571 | virtual wxBitmap CreateBitmap(const wxArtID& id, |
2572 | const wxArtClient& client, | |
2573 | const wxSize& size) { | |
2574 | wxBitmap rval = wxNullBitmap; | |
5a446332 | 2575 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2576 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { |
2577 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
2578 | PyObject* ro; | |
2579 | wxBitmap* ptr; | |
2580 | PyObject* s1, *s2; | |
2581 | s1 = wx2PyString(id); | |
2582 | s2 = wx2PyString(client); | |
2583 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
2584 | Py_DECREF(so); | |
2585 | Py_DECREF(s1); | |
2586 | Py_DECREF(s2); | |
2587 | if (ro) { | |
2588 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
2589 | rval = *ptr; | |
2590 | Py_DECREF(ro); | |
2591 | } | |
2592 | } | |
2593 | wxPyEndBlockThreads(blocked); | |
2594 | return rval; | |
d55e5bfc | 2595 | } |
d55e5bfc | 2596 | |
093d3ff1 RD |
2597 | PYPRIVATE; |
2598 | }; | |
d55e5bfc | 2599 | |
093d3ff1 | 2600 | static void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d55e5bfc RD |
2601 | |
2602 | ||
d55e5bfc | 2603 | |
093d3ff1 RD |
2604 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { |
2605 | PyObject* ret = PyTuple_New(3); | |
2606 | if (ret) { | |
2607 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
2608 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
2609 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
2610 | } | |
2611 | return ret; | |
2612 | } | |
d55e5bfc | 2613 | |
093d3ff1 RD |
2614 | static PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ |
2615 | bool cont; | |
2616 | long index = 0; | |
2617 | wxString value; | |
7e63a440 | 2618 | |
093d3ff1 RD |
2619 | cont = self->GetFirstGroup(value, index); |
2620 | return __EnumerationHelper(cont, value, index); | |
2621 | } | |
2622 | static PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
2623 | bool cont; | |
2624 | wxString value; | |
7e63a440 | 2625 | |
093d3ff1 RD |
2626 | cont = self->GetNextGroup(value, index); |
2627 | return __EnumerationHelper(cont, value, index); | |
2628 | } | |
2629 | static PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
2630 | bool cont; | |
2631 | long index = 0; | |
2632 | wxString value; | |
7e63a440 | 2633 | |
093d3ff1 RD |
2634 | cont = self->GetFirstEntry(value, index); |
2635 | return __EnumerationHelper(cont, value, index); | |
2636 | } | |
2637 | static PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
2638 | bool cont; | |
2639 | wxString value; | |
d55e5bfc | 2640 | |
093d3ff1 RD |
2641 | cont = self->GetNextEntry(value, index); |
2642 | return __EnumerationHelper(cont, value, index); | |
2643 | } | |
2644 | static long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal=0){ | |
2645 | long rv; | |
2646 | self->Read(key, &rv, defaultVal); | |
2647 | return rv; | |
2648 | } | |
d55e5bfc | 2649 | |
093d3ff1 RD |
2650 | SWIGINTERN int |
2651 | SWIG_AsVal_double(PyObject *obj, double* val) | |
2652 | { | |
2653 | if (PyNumber_Check(obj)) { | |
2654 | if (val) *val = PyFloat_AsDouble(obj); | |
2655 | return 1; | |
d55e5bfc | 2656 | } |
093d3ff1 RD |
2657 | else { |
2658 | SWIG_type_error("number", obj); | |
d55e5bfc | 2659 | } |
093d3ff1 | 2660 | return 0; |
d55e5bfc RD |
2661 | } |
2662 | ||
2663 | ||
7449af73 | 2664 | SWIGINTERNINLINE double |
093d3ff1 RD |
2665 | SWIG_As_double(PyObject* obj) |
2666 | { | |
2667 | double v; | |
2668 | if (!SWIG_AsVal_double(obj, &v)) { | |
2669 | /* | |
2670 | this is needed to make valgrind/purify happier. | |
2671 | */ | |
2672 | memset((void*)&v, 0, sizeof(double)); | |
2673 | } | |
2674 | return v; | |
d55e5bfc RD |
2675 | } |
2676 | ||
093d3ff1 | 2677 | |
7449af73 | 2678 | SWIGINTERNINLINE int |
093d3ff1 RD |
2679 | SWIG_Check_double(PyObject* obj) |
2680 | { | |
2681 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
2682 | } |
2683 | ||
093d3ff1 RD |
2684 | static double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal=0.0){ |
2685 | double rv; | |
2686 | self->Read(key, &rv, defaultVal); | |
2687 | return rv; | |
2688 | } | |
d55e5bfc | 2689 | |
7449af73 | 2690 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
2691 | #define SWIG_From_double PyFloat_FromDouble |
2692 | /*@@*/ | |
d55e5bfc | 2693 | |
093d3ff1 RD |
2694 | static bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal=false){ |
2695 | bool rv; | |
2696 | self->Read(key, &rv, defaultVal); | |
2697 | return rv; | |
2698 | } | |
d55e5bfc | 2699 | |
093d3ff1 | 2700 | #include <wx/datetime.h> |
d55e5bfc | 2701 | |
fef4c27a RD |
2702 | static const wxString wxPyDefaultDateTimeFormat(wxDefaultDateTimeFormat); |
2703 | static const wxString wxPyDefaultTimeSpanFormat(wxDefaultTimeSpanFormat); | |
d55e5bfc | 2704 | |
093d3ff1 | 2705 | #define LOCAL_TZ wxDateTime::Local |
d55e5bfc | 2706 | |
7449af73 | 2707 | static PyObject *wxDateTime_GetAmPmStrings(){ |
b9d6a5f3 RD |
2708 | wxString am; |
2709 | wxString pm; | |
2710 | wxDateTime::GetAmPmStrings(&am, &pm); | |
5a446332 | 2711 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
b9d6a5f3 RD |
2712 | PyObject* tup = PyTuple_New(2); |
2713 | PyTuple_SET_ITEM(tup, 0, wx2PyString(am)); | |
2714 | PyTuple_SET_ITEM(tup, 1, wx2PyString(pm)); | |
2715 | wxPyEndBlockThreads(blocked); | |
2716 | return tup; | |
2717 | } | |
093d3ff1 RD |
2718 | |
2719 | #if UINT_MAX < LONG_MAX | |
7449af73 | 2720 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
2721 | #define SWIG_From_unsigned_SS_int SWIG_From_long |
2722 | /*@@*/ | |
d55e5bfc | 2723 | #else |
7449af73 | 2724 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
2725 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long |
2726 | /*@@*/ | |
d55e5bfc | 2727 | #endif |
d55e5bfc | 2728 | |
093d3ff1 RD |
2729 | static wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } |
2730 | static wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
2731 | static wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
2732 | static wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
2733 | static wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
2734 | static bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
2735 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
2736 | return (*self < *other); | |
2737 | } | |
2738 | static bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
2739 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
2740 | return (*self <= *other); | |
2741 | } | |
2742 | static bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
2743 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
2744 | return (*self > *other); | |
2745 | } | |
2746 | static bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
2747 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
2748 | return (*self >= *other); | |
2749 | } | |
2750 | static bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
2751 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
2752 | return (*self == *other); | |
2753 | } | |
2754 | static bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
2755 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
2756 | return (*self != *other); | |
2757 | } | |
2758 | static int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
2759 | const wxChar* rv; | |
2760 | const wxChar* _date = date; | |
2761 | rv = self->ParseRfc822Date(_date); | |
2762 | if (rv == NULL) return -1; | |
2763 | return rv - _date; | |
2764 | } | |
fef4c27a | 2765 | static int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format=wxPyDefaultDateTimeFormat,wxDateTime const &dateDef=wxDefaultDateTime){ |
093d3ff1 RD |
2766 | const wxChar* rv; |
2767 | const wxChar* _date = date; | |
2768 | rv = self->ParseFormat(_date, format, dateDef); | |
2769 | if (rv == NULL) return -1; | |
2770 | return rv - _date; | |
2771 | } | |
2772 | static int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
2773 | const wxChar* rv; | |
2774 | const wxChar* _datetime = datetime; | |
2775 | rv = self->ParseDateTime(_datetime); | |
2776 | if (rv == NULL) return -1; | |
2777 | return rv - _datetime; | |
2778 | } | |
2779 | static int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
2780 | const wxChar* rv; | |
2781 | const wxChar* _date = date; | |
2782 | rv = self->ParseDate(_date); | |
2783 | if (rv == NULL) return -1; | |
2784 | return rv - _date; | |
2785 | } | |
2786 | static int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
2787 | const wxChar* rv; | |
2788 | const wxChar* _time = time; | |
2789 | rv = self->ParseTime(_time); | |
2790 | if (rv == NULL) return -1; | |
2791 | return rv - _time; | |
2792 | } | |
2793 | static wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
2794 | static wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
2795 | static wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
2796 | static wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
2797 | static bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; } | |
2798 | static bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; } | |
2799 | static bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; } | |
2800 | static bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; } | |
2801 | static bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; } | |
2802 | static bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; } | |
2803 | static wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
2804 | static wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
2805 | static wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
2806 | static wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
2807 | static bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; } | |
2808 | static bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc | 2809 | |
093d3ff1 | 2810 | #include <wx/dataobj.h> |
d55e5bfc | 2811 | |
093d3ff1 RD |
2812 | static PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir=wxDataObject::Get){ |
2813 | size_t count = self->GetFormatCount(dir); | |
2814 | wxDataFormat* formats = new wxDataFormat[count]; | |
2815 | self->GetAllFormats(formats, dir); | |
d55e5bfc | 2816 | |
5a446332 | 2817 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2818 | PyObject* list = PyList_New(count); |
2819 | for (size_t i=0; i<count; i++) { | |
2820 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
2821 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true); | |
9d7dfdff | 2822 | PyList_SET_ITEM(list, i, obj); // PyList_SET_ITEM steals a reference |
093d3ff1 RD |
2823 | } |
2824 | wxPyEndBlockThreads(blocked); | |
2825 | delete [] formats; | |
2826 | return list; | |
2827 | } | |
2828 | static PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
2829 | PyObject* rval = NULL; | |
2830 | size_t size = self->GetDataSize(format); | |
5a446332 | 2831 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2832 | if (size) { |
2833 | char* buf = new char[size]; | |
2834 | if (self->GetDataHere(format, buf)) | |
2835 | rval = PyString_FromStringAndSize(buf, size); | |
2836 | delete [] buf; | |
2837 | } | |
2838 | if (! rval) { | |
2839 | rval = Py_None; | |
2840 | Py_INCREF(rval); | |
2841 | } | |
2842 | wxPyEndBlockThreads(blocked); | |
2843 | return rval; | |
2844 | } | |
2845 | static bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
2846 | bool rval; | |
5a446332 | 2847 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2848 | if (PyString_Check(data)) { |
2849 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
2850 | } | |
2851 | else { | |
2852 | // raise a TypeError if not a string | |
2853 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
2854 | rval = false; | |
2855 | } | |
2856 | wxPyEndBlockThreads(blocked); | |
2857 | return rval; | |
2858 | } | |
2859 | static PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
2860 | PyObject* rval = NULL; | |
2861 | size_t size = self->GetDataSize(); | |
5a446332 | 2862 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2863 | if (size) { |
2864 | char* buf = new char[size]; | |
2865 | if (self->GetDataHere(buf)) | |
2866 | rval = PyString_FromStringAndSize(buf, size); | |
2867 | delete [] buf; | |
2868 | } | |
2869 | if (! rval) { | |
2870 | rval = Py_None; | |
2871 | Py_INCREF(rval); | |
2872 | } | |
2873 | wxPyEndBlockThreads(blocked); | |
2874 | return rval; | |
2875 | } | |
2876 | static bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
2877 | bool rval; | |
5a446332 | 2878 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2879 | if (PyString_Check(data)) { |
2880 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
2881 | } | |
2882 | else { | |
2883 | // raise a TypeError if not a string | |
2884 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
2885 | rval = false; | |
2886 | } | |
2887 | wxPyEndBlockThreads(blocked); | |
2888 | return rval; | |
2889 | } | |
2890 | // Create a new class for wxPython to use | |
2891 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
2892 | public: | |
2893 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
2894 | : wxDataObjectSimple(format) {} | |
d55e5bfc | 2895 | |
093d3ff1 RD |
2896 | DEC_PYCALLBACK_SIZET__const(GetDataSize); |
2897 | bool GetDataHere(void *buf) const; | |
2898 | bool SetData(size_t len, const void *buf) const; | |
2899 | PYPRIVATE; | |
2900 | }; | |
d55e5bfc | 2901 | |
093d3ff1 | 2902 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); |
d55e5bfc | 2903 | |
093d3ff1 RD |
2904 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { |
2905 | // We need to get the data for this object and write it to buf. I think | |
2906 | // the best way to do this for wxPython is to have the Python method | |
2907 | // return either a string or None and then act appropriately with the | |
2908 | // C++ version. | |
d55e5bfc | 2909 | |
093d3ff1 | 2910 | bool rval = false; |
5a446332 | 2911 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2912 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { |
2913 | PyObject* ro; | |
2914 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
2915 | if (ro) { | |
2916 | rval = (ro != Py_None && PyString_Check(ro)); | |
2917 | if (rval) | |
2918 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
2919 | Py_DECREF(ro); | |
2920 | } | |
d55e5bfc | 2921 | } |
093d3ff1 RD |
2922 | wxPyEndBlockThreads(blocked); |
2923 | return rval; | |
d55e5bfc RD |
2924 | } |
2925 | ||
093d3ff1 RD |
2926 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ |
2927 | // For this one we simply need to make a string from buf and len | |
2928 | // and send it to the Python method. | |
2929 | bool rval = false; | |
5a446332 | 2930 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2931 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { |
2932 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
2933 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
2934 | Py_DECREF(data); | |
d55e5bfc | 2935 | } |
093d3ff1 RD |
2936 | wxPyEndBlockThreads(blocked); |
2937 | return rval; | |
d55e5bfc RD |
2938 | } |
2939 | ||
093d3ff1 RD |
2940 | // Create a new class for wxPython to use |
2941 | class wxPyTextDataObject : public wxTextDataObject { | |
2942 | public: | |
2943 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
2944 | : wxTextDataObject(text) {} | |
2945 | ||
2946 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
2947 | DEC_PYCALLBACK_STRING__const(GetText); | |
2948 | DEC_PYCALLBACK__STRING(SetText); | |
2949 | PYPRIVATE; | |
2950 | }; | |
d55e5bfc | 2951 | |
093d3ff1 RD |
2952 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); |
2953 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
2954 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
2955 | ||
2956 | ||
2957 | // Create a new class for wxPython to use | |
2958 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
2959 | public: | |
2960 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
2961 | : wxBitmapDataObject(bitmap) {} | |
2962 | ||
2963 | wxBitmap GetBitmap() const; | |
2964 | void SetBitmap(const wxBitmap& bitmap); | |
2965 | PYPRIVATE; | |
2966 | }; | |
2967 | ||
2968 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
2969 | wxBitmap* rval = &wxNullBitmap; | |
5a446332 | 2970 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2971 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { |
2972 | PyObject* ro; | |
2973 | wxBitmap* ptr; | |
2974 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
2975 | if (ro) { | |
2976 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
2977 | rval = ptr; | |
2978 | Py_DECREF(ro); | |
2979 | } | |
2980 | } | |
2981 | wxPyEndBlockThreads(blocked); | |
2982 | return *rval; | |
2983 | } | |
2984 | ||
2985 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
5a446332 | 2986 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2987 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { |
2988 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false); | |
2989 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); | |
2990 | Py_DECREF(bo); | |
2991 | } | |
2992 | wxPyEndBlockThreads(blocked); | |
2993 | } | |
2994 | ||
fef4c27a RD |
2995 | static wxCustomDataObject *new_wxCustomDataObject__SWIG_1(wxString const &formatName){ |
2996 | return new wxCustomDataObject(wxDataFormat(formatName)); | |
2997 | } | |
093d3ff1 RD |
2998 | static bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
2999 | bool rval; | |
5a446332 | 3000 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
3001 | if (PyString_Check(data)) { |
3002 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
3003 | } | |
3004 | else { | |
3005 | // raise a TypeError if not a string | |
3006 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
3007 | rval = false; | |
3008 | } | |
3009 | wxPyEndBlockThreads(blocked); | |
3010 | return rval; | |
3011 | } | |
3012 | static PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
3013 | PyObject* obj; | |
5a446332 | 3014 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
3015 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); |
3016 | wxPyEndBlockThreads(blocked); | |
3017 | return obj; | |
3018 | } | |
3019 | ||
3020 | #include <wx/metafile.h> | |
3021 | ||
3022 | ||
3023 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
3024 | ||
3025 | ||
3026 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
3027 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
3028 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
3029 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
3030 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
3031 | ||
3032 | ||
3033 | class wxPyTextDropTarget : public wxTextDropTarget { | |
3034 | public: | |
3035 | wxPyTextDropTarget() {} | |
3036 | ||
3037 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
3038 | ||
3039 | DEC_PYCALLBACK__(OnLeave); | |
3040 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
3041 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
3042 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
3043 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
3044 | ||
3045 | PYPRIVATE; | |
3046 | }; | |
3047 | ||
3048 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
3049 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
3050 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
3051 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
3052 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
3053 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
3054 | ||
3055 | ||
3056 | ||
3057 | class wxPyFileDropTarget : public wxFileDropTarget { | |
3058 | public: | |
3059 | wxPyFileDropTarget() {} | |
3060 | ||
3061 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
3062 | ||
3063 | DEC_PYCALLBACK__(OnLeave); | |
3064 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
3065 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
3066 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
3067 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
3068 | ||
3069 | PYPRIVATE; | |
3070 | }; | |
3071 | ||
3072 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
3073 | const wxArrayString& filenames) { | |
3074 | bool rval = false; | |
5a446332 | 3075 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
3076 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { |
3077 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
3078 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
3079 | Py_DECREF(list); | |
3080 | } | |
3081 | wxPyEndBlockThreads(blocked); | |
3082 | return rval; | |
3083 | } | |
3084 | ||
3085 | ||
3086 | ||
3087 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
3088 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
3089 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
3090 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
3091 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
3092 | ||
3093 | ||
3094 | ||
3095 | ||
3096 | static bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
3097 | ||
3098 | #include <wx/display.h> | |
3099 | ||
3100 | static bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; } | |
3101 | static bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; } | |
3102 | ||
3103 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
3104 | #if !wxUSE_DISPLAY | |
3105 | #include <wx/dynarray.h> | |
3106 | #include <wx/vidmode.h> | |
3107 | ||
7449af73 | 3108 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); |
093d3ff1 RD |
3109 | #include "wx/arrimpl.cpp" |
3110 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
3111 | const wxVideoMode wxDefaultVideoMode; | |
3112 | ||
3113 | class wxDisplay | |
3114 | { | |
3115 | public: | |
3116 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
3117 | ~wxDisplay() {} | |
3118 | ||
3119 | static size_t GetCount() | |
3120 | { wxPyRaiseNotImplemented(); return 0; } | |
3121 | ||
3122 | static int GetFromPoint(const wxPoint& pt) | |
3123 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
3124 | static int GetFromWindow(wxWindow *window) | |
3125 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
3126 | ||
3127 | virtual bool IsOk() const { return false; } | |
3128 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
3129 | virtual wxString GetName() const { return wxEmptyString; } | |
3130 | bool IsPrimary() const { return false; } | |
3131 | ||
3132 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
3133 | { wxArrayVideoModes a; return a; } | |
3134 | ||
3135 | virtual wxVideoMode GetCurrentMode() const | |
3136 | { return wxDefaultVideoMode; } | |
3137 | ||
3138 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
3139 | { return false; } | |
3140 | ||
3141 | void ResetMode() {} | |
3142 | }; | |
3143 | #endif | |
3144 | ||
3145 | static PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode=wxDefaultVideoMode){ | |
3146 | PyObject* pyList = NULL; | |
3147 | wxArrayVideoModes arr = self->GetModes(mode); | |
5a446332 | 3148 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
3149 | pyList = PyList_New(0); |
3150 | for (int i=0; i < arr.GetCount(); i++) { | |
3151 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
3152 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
3153 | PyList_Append(pyList, pyObj); | |
3154 | Py_DECREF(pyObj); | |
3155 | } | |
3156 | wxPyEndBlockThreads(blocked); | |
3157 | return pyList; | |
3158 | } | |
3159 | ||
3160 | #include <wx/stdpaths.h> | |
3161 | ||
7449af73 | 3162 | static wxStandardPaths *wxStandardPaths_Get(){ |
093d3ff1 RD |
3163 | return (wxStandardPaths*) &wxStandardPaths::Get(); |
3164 | } | |
3165 | static void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){} | |
3166 | static wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; } | |
3167 | #ifdef __cplusplus | |
3168 | extern "C" { | |
3169 | #endif | |
3170 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 3171 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3172 | wxSystemColour arg1 ; |
3173 | wxColour result; | |
d55e5bfc RD |
3174 | PyObject * obj0 = 0 ; |
3175 | char *kwnames[] = { | |
093d3ff1 | 3176 | (char *) "index", NULL |
d55e5bfc RD |
3177 | }; |
3178 | ||
093d3ff1 RD |
3179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
3180 | { | |
7449af73 | 3181 | arg1 = static_cast<wxSystemColour >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3182 | if (SWIG_arg_fail(1)) SWIG_fail; |
3183 | } | |
d55e5bfc | 3184 | { |
093d3ff1 | 3185 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 3186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7449af73 | 3187 | result = wxSystemSettings::GetColour(arg1); |
d55e5bfc RD |
3188 | |
3189 | wxPyEndAllowThreads(__tstate); | |
3190 | if (PyErr_Occurred()) SWIG_fail; | |
3191 | } | |
093d3ff1 RD |
3192 | { |
3193 | wxColour * resultptr; | |
7449af73 | 3194 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
093d3ff1 RD |
3195 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
3196 | } | |
d55e5bfc RD |
3197 | return resultobj; |
3198 | fail: | |
3199 | return NULL; | |
3200 | } | |
3201 | ||
3202 | ||
093d3ff1 | 3203 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3204 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3205 | wxSystemFont arg1 ; |
3206 | wxFont result; | |
3207 | PyObject * obj0 = 0 ; | |
d55e5bfc | 3208 | char *kwnames[] = { |
093d3ff1 | 3209 | (char *) "index", NULL |
d55e5bfc RD |
3210 | }; |
3211 | ||
093d3ff1 | 3212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
d55e5bfc | 3213 | { |
7449af73 | 3214 | arg1 = static_cast<wxSystemFont >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3215 | if (SWIG_arg_fail(1)) SWIG_fail; |
3216 | } | |
3217 | { | |
3218 | if (!wxPyCheckForApp()) SWIG_fail; | |
d55e5bfc | 3219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7449af73 | 3220 | result = wxSystemSettings::GetFont(arg1); |
d55e5bfc RD |
3221 | |
3222 | wxPyEndAllowThreads(__tstate); | |
3223 | if (PyErr_Occurred()) SWIG_fail; | |
3224 | } | |
093d3ff1 RD |
3225 | { |
3226 | wxFont * resultptr; | |
7449af73 | 3227 | resultptr = new wxFont(static_cast<wxFont & >(result)); |
093d3ff1 RD |
3228 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
3229 | } | |
3230 | return resultobj; | |
3231 | fail: | |
3232 | return NULL; | |
d55e5bfc RD |
3233 | } |
3234 | ||
3235 | ||
093d3ff1 | 3236 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3237 | PyObject *resultobj = NULL; |
093d3ff1 | 3238 | wxSystemMetric arg1 ; |
6932ae68 | 3239 | wxWindow *arg2 = (wxWindow *) NULL ; |
093d3ff1 | 3240 | int result; |
d1f3a348 | 3241 | PyObject * obj0 = 0 ; |
6932ae68 | 3242 | PyObject * obj1 = 0 ; |
d1f3a348 | 3243 | char *kwnames[] = { |
6932ae68 | 3244 | (char *) "index",(char *) "win", NULL |
d1f3a348 RD |
3245 | }; |
3246 | ||
6932ae68 | 3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SystemSettings_GetMetric",kwnames,&obj0,&obj1)) goto fail; |
d1f3a348 | 3248 | { |
7449af73 | 3249 | arg1 = static_cast<wxSystemMetric >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3250 | if (SWIG_arg_fail(1)) SWIG_fail; |
3251 | } | |
6932ae68 RD |
3252 | if (obj1) { |
3253 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3254 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3255 | } | |
093d3ff1 RD |
3256 | { |
3257 | if (!wxPyCheckForApp()) SWIG_fail; | |
d1f3a348 | 3258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7449af73 | 3259 | result = (int)wxSystemSettings::GetMetric(arg1,arg2); |
d1f3a348 RD |
3260 | |
3261 | wxPyEndAllowThreads(__tstate); | |
3262 | if (PyErr_Occurred()) SWIG_fail; | |
3263 | } | |
3264 | { | |
7449af73 | 3265 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d1f3a348 RD |
3266 | } |
3267 | return resultobj; | |
3268 | fail: | |
3269 | return NULL; | |
3270 | } | |
3271 | ||
3272 | ||
093d3ff1 | 3273 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3274 | PyObject *resultobj = NULL; |
093d3ff1 | 3275 | wxSystemFeature arg1 ; |
d1f3a348 | 3276 | bool result; |
d1f3a348 | 3277 | PyObject * obj0 = 0 ; |
d1f3a348 | 3278 | char *kwnames[] = { |
093d3ff1 | 3279 | (char *) "index", NULL |
d1f3a348 RD |
3280 | }; |
3281 | ||
093d3ff1 | 3282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
d1f3a348 | 3283 | { |
7449af73 | 3284 | arg1 = static_cast<wxSystemFeature >(SWIG_As_int(obj0)); |
093d3ff1 | 3285 | if (SWIG_arg_fail(1)) SWIG_fail; |
d1f3a348 RD |
3286 | } |
3287 | { | |
093d3ff1 | 3288 | if (!wxPyCheckForApp()) SWIG_fail; |
d1f3a348 | 3289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7449af73 | 3290 | result = (bool)wxSystemSettings::HasFeature(arg1); |
d1f3a348 RD |
3291 | |
3292 | wxPyEndAllowThreads(__tstate); | |
3293 | if (PyErr_Occurred()) SWIG_fail; | |
3294 | } | |
3295 | { | |
3296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3297 | } | |
d1f3a348 RD |
3298 | return resultobj; |
3299 | fail: | |
d1f3a348 RD |
3300 | return NULL; |
3301 | } | |
3302 | ||
3303 | ||
093d3ff1 | 3304 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3305 | PyObject *resultobj = NULL; |
093d3ff1 | 3306 | wxSystemScreenType result; |
d1f3a348 | 3307 | char *kwnames[] = { |
093d3ff1 | 3308 | NULL |
d1f3a348 RD |
3309 | }; |
3310 | ||
093d3ff1 | 3311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; |
d1f3a348 | 3312 | { |
093d3ff1 | 3313 | if (!wxPyCheckForApp()) SWIG_fail; |
d1f3a348 | 3314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3315 | result = (wxSystemScreenType)wxSystemSettings::GetScreenType(); |
d1f3a348 RD |
3316 | |
3317 | wxPyEndAllowThreads(__tstate); | |
3318 | if (PyErr_Occurred()) SWIG_fail; | |
3319 | } | |
093d3ff1 | 3320 | resultobj = SWIG_From_int((result)); |
d1f3a348 RD |
3321 | return resultobj; |
3322 | fail: | |
3323 | return NULL; | |
3324 | } | |
3325 | ||
3326 | ||
093d3ff1 | 3327 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3328 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3329 | wxSystemScreenType arg1 ; |
3330 | PyObject * obj0 = 0 ; | |
d55e5bfc | 3331 | char *kwnames[] = { |
093d3ff1 | 3332 | (char *) "screen", NULL |
d55e5bfc RD |
3333 | }; |
3334 | ||
093d3ff1 RD |
3335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
3336 | { | |
7449af73 | 3337 | arg1 = static_cast<wxSystemScreenType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3338 | if (SWIG_arg_fail(1)) SWIG_fail; |
3339 | } | |
d55e5bfc | 3340 | { |
0439c23b | 3341 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 3342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7449af73 | 3343 | wxSystemSettings::SetScreenType(arg1); |
d55e5bfc RD |
3344 | |
3345 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3346 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3347 | } |
3348 | Py_INCREF(Py_None); resultobj = Py_None; | |
3349 | return resultobj; | |
3350 | fail: | |
3351 | return NULL; | |
3352 | } | |
3353 | ||
3354 | ||
093d3ff1 RD |
3355 | static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) { |
3356 | PyObject *obj; | |
3357 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3358 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
3359 | Py_INCREF(obj); | |
3360 | return Py_BuildValue((char *)""); | |
3361 | } | |
3362 | static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) { | |
3363 | PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only."); | |
3364 | return 1; | |
3365 | } | |
3366 | ||
3367 | ||
3368 | static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get(void) { | |
7449af73 | 3369 | PyObject *pyobj = NULL; |
d55e5bfc | 3370 | |
d55e5bfc | 3371 | { |
093d3ff1 RD |
3372 | #if wxUSE_UNICODE |
3373 | pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
3374 | #else | |
3375 | pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
3376 | #endif | |
d55e5bfc | 3377 | } |
093d3ff1 | 3378 | return pyobj; |
d55e5bfc RD |
3379 | } |
3380 | ||
3381 | ||
093d3ff1 | 3382 | static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3383 | PyObject *resultobj = NULL; |
093d3ff1 | 3384 | wxSystemOptions *result; |
d55e5bfc | 3385 | char *kwnames[] = { |
093d3ff1 | 3386 | NULL |
d55e5bfc RD |
3387 | }; |
3388 | ||
093d3ff1 | 3389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; |
d55e5bfc RD |
3390 | { |
3391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3392 | result = (wxSystemOptions *)new wxSystemOptions(); |
d55e5bfc RD |
3393 | |
3394 | wxPyEndAllowThreads(__tstate); | |
3395 | if (PyErr_Occurred()) SWIG_fail; | |
3396 | } | |
093d3ff1 | 3397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); |
d55e5bfc RD |
3398 | return resultobj; |
3399 | fail: | |
3400 | return NULL; | |
3401 | } | |
3402 | ||
3403 | ||
093d3ff1 | 3404 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3405 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3406 | wxString *arg1 = 0 ; |
3407 | wxString *arg2 = 0 ; | |
3408 | bool temp1 = false ; | |
3409 | bool temp2 = false ; | |
3410 | PyObject * obj0 = 0 ; | |
3411 | PyObject * obj1 = 0 ; | |
d55e5bfc | 3412 | char *kwnames[] = { |
093d3ff1 | 3413 | (char *) "name",(char *) "value", NULL |
d55e5bfc RD |
3414 | }; |
3415 | ||
093d3ff1 RD |
3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; |
3417 | { | |
3418 | arg1 = wxString_in_helper(obj0); | |
3419 | if (arg1 == NULL) SWIG_fail; | |
3420 | temp1 = true; | |
3421 | } | |
3422 | { | |
3423 | arg2 = wxString_in_helper(obj1); | |
3424 | if (arg2 == NULL) SWIG_fail; | |
3425 | temp2 = true; | |
3426 | } | |
d55e5bfc RD |
3427 | { |
3428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3429 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); |
d55e5bfc RD |
3430 | |
3431 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3432 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3433 | } |
3434 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
3435 | { |
3436 | if (temp1) | |
3437 | delete arg1; | |
3438 | } | |
3439 | { | |
3440 | if (temp2) | |
3441 | delete arg2; | |
3442 | } | |
d55e5bfc RD |
3443 | return resultobj; |
3444 | fail: | |
093d3ff1 RD |
3445 | { |
3446 | if (temp1) | |
3447 | delete arg1; | |
3448 | } | |
3449 | { | |
3450 | if (temp2) | |
3451 | delete arg2; | |
3452 | } | |
d55e5bfc RD |
3453 | return NULL; |
3454 | } | |
3455 | ||
3456 | ||
093d3ff1 | 3457 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3458 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3459 | wxString *arg1 = 0 ; |
3460 | int arg2 ; | |
3461 | bool temp1 = false ; | |
3462 | PyObject * obj0 = 0 ; | |
3463 | PyObject * obj1 = 0 ; | |
d55e5bfc | 3464 | char *kwnames[] = { |
093d3ff1 | 3465 | (char *) "name",(char *) "value", NULL |
d55e5bfc RD |
3466 | }; |
3467 | ||
093d3ff1 RD |
3468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
3469 | { | |
3470 | arg1 = wxString_in_helper(obj0); | |
3471 | if (arg1 == NULL) SWIG_fail; | |
3472 | temp1 = true; | |
3473 | } | |
3474 | { | |
7449af73 | 3475 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3476 | if (SWIG_arg_fail(2)) SWIG_fail; |
3477 | } | |
d55e5bfc RD |
3478 | { |
3479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3480 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); |
d55e5bfc RD |
3481 | |
3482 | wxPyEndAllowThreads(__tstate); | |
3483 | if (PyErr_Occurred()) SWIG_fail; | |
3484 | } | |
093d3ff1 | 3485 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc | 3486 | { |
093d3ff1 RD |
3487 | if (temp1) |
3488 | delete arg1; | |
d55e5bfc RD |
3489 | } |
3490 | return resultobj; | |
3491 | fail: | |
093d3ff1 RD |
3492 | { |
3493 | if (temp1) | |
3494 | delete arg1; | |
3495 | } | |
d55e5bfc RD |
3496 | return NULL; |
3497 | } | |
3498 | ||
3499 | ||
093d3ff1 | 3500 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3501 | PyObject *resultobj = NULL; |
093d3ff1 | 3502 | wxString *arg1 = 0 ; |
d55e5bfc | 3503 | wxString result; |
093d3ff1 RD |
3504 | bool temp1 = false ; |
3505 | PyObject * obj0 = 0 ; | |
d55e5bfc | 3506 | char *kwnames[] = { |
093d3ff1 | 3507 | (char *) "name", NULL |
d55e5bfc RD |
3508 | }; |
3509 | ||
093d3ff1 RD |
3510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; |
3511 | { | |
3512 | arg1 = wxString_in_helper(obj0); | |
3513 | if (arg1 == NULL) SWIG_fail; | |
3514 | temp1 = true; | |
3515 | } | |
d55e5bfc RD |
3516 | { |
3517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3518 | result = wxSystemOptions::GetOption((wxString const &)*arg1); |
d55e5bfc RD |
3519 | |
3520 | wxPyEndAllowThreads(__tstate); | |
3521 | if (PyErr_Occurred()) SWIG_fail; | |
3522 | } | |
3523 | { | |
3524 | #if wxUSE_UNICODE | |
3525 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3526 | #else | |
3527 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3528 | #endif | |
3529 | } | |
093d3ff1 RD |
3530 | { |
3531 | if (temp1) | |
3532 | delete arg1; | |
3533 | } | |
d55e5bfc RD |
3534 | return resultobj; |
3535 | fail: | |
093d3ff1 RD |
3536 | { |
3537 | if (temp1) | |
3538 | delete arg1; | |
3539 | } | |
d55e5bfc RD |
3540 | return NULL; |
3541 | } | |
3542 | ||
3543 | ||
093d3ff1 | 3544 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3545 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3546 | wxString *arg1 = 0 ; |
3547 | int result; | |
ae8162c8 | 3548 | bool temp1 = false ; |
d55e5bfc RD |
3549 | PyObject * obj0 = 0 ; |
3550 | char *kwnames[] = { | |
093d3ff1 | 3551 | (char *) "name", NULL |
d55e5bfc RD |
3552 | }; |
3553 | ||
093d3ff1 RD |
3554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; |
3555 | { | |
3556 | arg1 = wxString_in_helper(obj0); | |
3557 | if (arg1 == NULL) SWIG_fail; | |
3558 | temp1 = true; | |
d55e5bfc RD |
3559 | } |
3560 | { | |
3561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3562 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); |
d55e5bfc RD |
3563 | |
3564 | wxPyEndAllowThreads(__tstate); | |
3565 | if (PyErr_Occurred()) SWIG_fail; | |
3566 | } | |
3567 | { | |
7449af73 | 3568 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
3569 | } |
3570 | { | |
3571 | if (temp1) | |
3572 | delete arg1; | |
3573 | } | |
3574 | return resultobj; | |
3575 | fail: | |
3576 | { | |
3577 | if (temp1) | |
3578 | delete arg1; | |
3579 | } | |
3580 | return NULL; | |
3581 | } | |
3582 | ||
3583 | ||
093d3ff1 | 3584 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3585 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3586 | wxString *arg1 = 0 ; |
3587 | bool result; | |
3588 | bool temp1 = false ; | |
3589 | PyObject * obj0 = 0 ; | |
d55e5bfc | 3590 | char *kwnames[] = { |
093d3ff1 | 3591 | (char *) "name", NULL |
d55e5bfc RD |
3592 | }; |
3593 | ||
093d3ff1 RD |
3594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; |
3595 | { | |
3596 | arg1 = wxString_in_helper(obj0); | |
3597 | if (arg1 == NULL) SWIG_fail; | |
3598 | temp1 = true; | |
3599 | } | |
d55e5bfc RD |
3600 | { |
3601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3602 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); |
d55e5bfc RD |
3603 | |
3604 | wxPyEndAllowThreads(__tstate); | |
3605 | if (PyErr_Occurred()) SWIG_fail; | |
3606 | } | |
093d3ff1 RD |
3607 | { |
3608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3609 | } | |
3610 | { | |
3611 | if (temp1) | |
3612 | delete arg1; | |
3613 | } | |
d55e5bfc RD |
3614 | return resultobj; |
3615 | fail: | |
093d3ff1 RD |
3616 | { |
3617 | if (temp1) | |
3618 | delete arg1; | |
3619 | } | |
d55e5bfc RD |
3620 | return NULL; |
3621 | } | |
3622 | ||
3623 | ||
396fb509 | 3624 | static PyObject *_wrap_SystemOptions_IsFalse(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3625 | PyObject *resultobj = NULL; |
396fb509 RD |
3626 | wxString *arg1 = 0 ; |
3627 | bool result; | |
3628 | bool temp1 = false ; | |
3629 | PyObject * obj0 = 0 ; | |
3630 | char *kwnames[] = { | |
3631 | (char *) "name", NULL | |
3632 | }; | |
3633 | ||
3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_IsFalse",kwnames,&obj0)) goto fail; | |
3635 | { | |
3636 | arg1 = wxString_in_helper(obj0); | |
3637 | if (arg1 == NULL) SWIG_fail; | |
3638 | temp1 = true; | |
3639 | } | |
3640 | { | |
3641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3642 | result = (bool)wxSystemOptions::IsFalse((wxString const &)*arg1); | |
3643 | ||
3644 | wxPyEndAllowThreads(__tstate); | |
3645 | if (PyErr_Occurred()) SWIG_fail; | |
3646 | } | |
3647 | { | |
3648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3649 | } | |
3650 | { | |
3651 | if (temp1) | |
3652 | delete arg1; | |
3653 | } | |
3654 | return resultobj; | |
3655 | fail: | |
3656 | { | |
3657 | if (temp1) | |
3658 | delete arg1; | |
3659 | } | |
3660 | return NULL; | |
3661 | } | |
3662 | ||
3663 | ||
093d3ff1 RD |
3664 | static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) { |
3665 | PyObject *obj; | |
3666 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3667 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
3668 | Py_INCREF(obj); | |
3669 | return Py_BuildValue((char *)""); | |
3670 | } | |
3671 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { | |
3672 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
3673 | return 1; | |
3674 | } | |
3675 | ||
3676 | ||
3677 | static PyObject *_wrap_FileSelectorPromptStr_get(void) { | |
7449af73 | 3678 | PyObject *pyobj = NULL; |
093d3ff1 RD |
3679 | |
3680 | { | |
3681 | #if wxUSE_UNICODE | |
3682 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
3683 | #else | |
3684 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
3685 | #endif | |
3686 | } | |
3687 | return pyobj; | |
3688 | } | |
3689 | ||
3690 | ||
3691 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { | |
3692 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
3693 | return 1; | |
3694 | } | |
3695 | ||
3696 | ||
3697 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get(void) { | |
7449af73 | 3698 | PyObject *pyobj = NULL; |
093d3ff1 RD |
3699 | |
3700 | { | |
3701 | #if wxUSE_UNICODE | |
3702 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
3703 | #else | |
3704 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
3705 | #endif | |
3706 | } | |
3707 | return pyobj; | |
3708 | } | |
3709 | ||
3710 | ||
3711 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { | |
3712 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
3713 | return 1; | |
3714 | } | |
3715 | ||
3716 | ||
3717 | static PyObject *_wrap_DirSelectorPromptStr_get(void) { | |
7449af73 | 3718 | PyObject *pyobj = NULL; |
093d3ff1 RD |
3719 | |
3720 | { | |
3721 | #if wxUSE_UNICODE | |
3722 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
3723 | #else | |
3724 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
3725 | #endif | |
3726 | } | |
3727 | return pyobj; | |
3728 | } | |
3729 | ||
3730 | ||
3731 | static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 3732 | PyObject *resultobj = NULL; |
093d3ff1 | 3733 | long result; |
d55e5bfc RD |
3734 | char *kwnames[] = { |
3735 | NULL | |
3736 | }; | |
3737 | ||
093d3ff1 | 3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; |
d55e5bfc RD |
3739 | { |
3740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3741 | result = (long)wxNewId(); |
d55e5bfc RD |
3742 | |
3743 | wxPyEndAllowThreads(__tstate); | |
3744 | if (PyErr_Occurred()) SWIG_fail; | |
3745 | } | |
093d3ff1 | 3746 | { |
7449af73 | 3747 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 3748 | } |
d55e5bfc RD |
3749 | return resultobj; |
3750 | fail: | |
3751 | return NULL; | |
3752 | } | |
3753 | ||
3754 | ||
093d3ff1 | 3755 | static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3756 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3757 | long arg1 ; |
3758 | PyObject * obj0 = 0 ; | |
d55e5bfc | 3759 | char *kwnames[] = { |
093d3ff1 | 3760 | (char *) "id", NULL |
d55e5bfc RD |
3761 | }; |
3762 | ||
093d3ff1 RD |
3763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
3764 | { | |
7449af73 | 3765 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
3766 | if (SWIG_arg_fail(1)) SWIG_fail; |
3767 | } | |
d55e5bfc RD |
3768 | { |
3769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3770 | wxRegisterId(arg1); |
d55e5bfc RD |
3771 | |
3772 | wxPyEndAllowThreads(__tstate); | |
3773 | if (PyErr_Occurred()) SWIG_fail; | |
3774 | } | |
093d3ff1 | 3775 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3776 | return resultobj; |
3777 | fail: | |
3778 | return NULL; | |
3779 | } | |
3780 | ||
3781 | ||
093d3ff1 | 3782 | static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3783 | PyObject *resultobj = NULL; |
d55e5bfc RD |
3784 | long result; |
3785 | char *kwnames[] = { | |
3786 | NULL | |
3787 | }; | |
3788 | ||
093d3ff1 | 3789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; |
d55e5bfc RD |
3790 | { |
3791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3792 | result = (long)wxGetCurrentId(); |
d55e5bfc RD |
3793 | |
3794 | wxPyEndAllowThreads(__tstate); | |
3795 | if (PyErr_Occurred()) SWIG_fail; | |
3796 | } | |
093d3ff1 | 3797 | { |
7449af73 | 3798 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 3799 | } |
d55e5bfc RD |
3800 | return resultobj; |
3801 | fail: | |
3802 | return NULL; | |
3803 | } | |
3804 | ||
3805 | ||
093d3ff1 | 3806 | static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3807 | PyObject *resultobj = NULL; |
d55e5bfc RD |
3808 | int arg1 ; |
3809 | bool result; | |
3810 | PyObject * obj0 = 0 ; | |
3811 | char *kwnames[] = { | |
093d3ff1 | 3812 | (char *) "id", NULL |
d55e5bfc RD |
3813 | }; |
3814 | ||
093d3ff1 RD |
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail; |
3816 | { | |
7449af73 | 3817 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3818 | if (SWIG_arg_fail(1)) SWIG_fail; |
3819 | } | |
d55e5bfc RD |
3820 | { |
3821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3822 | result = (bool)wxIsStockID(arg1); |
d55e5bfc RD |
3823 | |
3824 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3825 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3826 | } |
3827 | { | |
3828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3829 | } | |
3830 | return resultobj; | |
3831 | fail: | |
3832 | return NULL; | |
3833 | } | |
3834 | ||
3835 | ||
093d3ff1 | 3836 | static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3837 | PyObject *resultobj = NULL; |
d55e5bfc | 3838 | int arg1 ; |
093d3ff1 RD |
3839 | wxString *arg2 = 0 ; |
3840 | bool result; | |
3841 | bool temp2 = false ; | |
d55e5bfc | 3842 | PyObject * obj0 = 0 ; |
093d3ff1 | 3843 | PyObject * obj1 = 0 ; |
d55e5bfc | 3844 | char *kwnames[] = { |
093d3ff1 | 3845 | (char *) "id",(char *) "label", NULL |
d55e5bfc RD |
3846 | }; |
3847 | ||
093d3ff1 RD |
3848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail; |
3849 | { | |
7449af73 | 3850 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3851 | if (SWIG_arg_fail(1)) SWIG_fail; |
3852 | } | |
3853 | { | |
3854 | arg2 = wxString_in_helper(obj1); | |
3855 | if (arg2 == NULL) SWIG_fail; | |
3856 | temp2 = true; | |
3857 | } | |
d55e5bfc RD |
3858 | { |
3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3860 | result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2); |
d55e5bfc RD |
3861 | |
3862 | wxPyEndAllowThreads(__tstate); | |
3863 | if (PyErr_Occurred()) SWIG_fail; | |
3864 | } | |
093d3ff1 RD |
3865 | { |
3866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3867 | } | |
3868 | { | |
3869 | if (temp2) | |
3870 | delete arg2; | |
3871 | } | |
d55e5bfc RD |
3872 | return resultobj; |
3873 | fail: | |
093d3ff1 RD |
3874 | { |
3875 | if (temp2) | |
3876 | delete arg2; | |
3877 | } | |
d55e5bfc RD |
3878 | return NULL; |
3879 | } | |
3880 | ||
3881 | ||
093d3ff1 | 3882 | static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3883 | PyObject *resultobj = NULL; |
093d3ff1 | 3884 | int arg1 ; |
fef4c27a RD |
3885 | bool arg2 = (bool) true ; |
3886 | wxString arg3 = (wxString) wxPyEmptyString ; | |
093d3ff1 | 3887 | wxString result; |
d55e5bfc | 3888 | PyObject * obj0 = 0 ; |
fef4c27a RD |
3889 | PyObject * obj1 = 0 ; |
3890 | PyObject * obj2 = 0 ; | |
d55e5bfc | 3891 | char *kwnames[] = { |
fef4c27a | 3892 | (char *) "id",(char *) "withCodes",(char *) "accelerator", NULL |
d55e5bfc RD |
3893 | }; |
3894 | ||
fef4c27a | 3895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GetStockLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 | 3896 | { |
7449af73 | 3897 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3898 | if (SWIG_arg_fail(1)) SWIG_fail; |
3899 | } | |
fef4c27a RD |
3900 | if (obj1) { |
3901 | { | |
7449af73 | 3902 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
fef4c27a RD |
3903 | if (SWIG_arg_fail(2)) SWIG_fail; |
3904 | } | |
3905 | } | |
3906 | if (obj2) { | |
3907 | { | |
3908 | wxString* sptr = wxString_in_helper(obj2); | |
3909 | if (sptr == NULL) SWIG_fail; | |
3910 | arg3 = *sptr; | |
3911 | delete sptr; | |
3912 | } | |
3913 | } | |
d55e5bfc RD |
3914 | { |
3915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fef4c27a | 3916 | result = wxGetStockLabel(arg1,arg2,arg3); |
bf26d883 RD |
3917 | |
3918 | wxPyEndAllowThreads(__tstate); | |
3919 | if (PyErr_Occurred()) SWIG_fail; | |
3920 | } | |
093d3ff1 RD |
3921 | { |
3922 | #if wxUSE_UNICODE | |
3923 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3924 | #else | |
3925 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3926 | #endif | |
3927 | } | |
bf26d883 RD |
3928 | return resultobj; |
3929 | fail: | |
3930 | return NULL; | |
3931 | } | |
3932 | ||
3933 | ||
093d3ff1 | 3934 | static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3935 | PyObject *resultobj = NULL; |
bf26d883 | 3936 | char *kwnames[] = { |
093d3ff1 | 3937 | NULL |
bf26d883 RD |
3938 | }; |
3939 | ||
093d3ff1 | 3940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; |
bf26d883 | 3941 | { |
093d3ff1 | 3942 | if (!wxPyCheckForApp()) SWIG_fail; |
bf26d883 | 3943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3944 | wxBell(); |
d55e5bfc RD |
3945 | |
3946 | wxPyEndAllowThreads(__tstate); | |
3947 | if (PyErr_Occurred()) SWIG_fail; | |
3948 | } | |
3949 | Py_INCREF(Py_None); resultobj = Py_None; | |
3950 | return resultobj; | |
3951 | fail: | |
3952 | return NULL; | |
3953 | } | |
3954 | ||
3955 | ||
093d3ff1 | 3956 | static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3957 | PyObject *resultobj = NULL; |
d55e5bfc | 3958 | char *kwnames[] = { |
093d3ff1 | 3959 | NULL |
d55e5bfc RD |
3960 | }; |
3961 | ||
093d3ff1 | 3962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; |
d55e5bfc | 3963 | { |
093d3ff1 | 3964 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 3965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3966 | wxEndBusyCursor(); |
d55e5bfc RD |
3967 | |
3968 | wxPyEndAllowThreads(__tstate); | |
3969 | if (PyErr_Occurred()) SWIG_fail; | |
3970 | } | |
3971 | Py_INCREF(Py_None); resultobj = Py_None; | |
3972 | return resultobj; | |
3973 | fail: | |
3974 | return NULL; | |
3975 | } | |
3976 | ||
3977 | ||
093d3ff1 | 3978 | static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 3979 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3980 | bool arg1 = (bool) true ; |
3981 | long result; | |
d55e5bfc RD |
3982 | PyObject * obj0 = 0 ; |
3983 | char *kwnames[] = { | |
093d3ff1 | 3984 | (char *) "resetTimer", NULL |
d55e5bfc RD |
3985 | }; |
3986 | ||
093d3ff1 RD |
3987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; |
3988 | if (obj0) { | |
3989 | { | |
7449af73 | 3990 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 RD |
3991 | if (SWIG_arg_fail(1)) SWIG_fail; |
3992 | } | |
d55e5bfc RD |
3993 | } |
3994 | { | |
3995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3996 | result = (long)wxGetElapsedTime(arg1); |
d55e5bfc RD |
3997 | |
3998 | wxPyEndAllowThreads(__tstate); | |
3999 | if (PyErr_Occurred()) SWIG_fail; | |
4000 | } | |
4001 | { | |
7449af73 | 4002 | resultobj = SWIG_From_long(static_cast<long >(result)); |
d55e5bfc | 4003 | } |
093d3ff1 RD |
4004 | return resultobj; |
4005 | fail: | |
d55e5bfc RD |
4006 | return NULL; |
4007 | } | |
4008 | ||
4009 | ||
093d3ff1 | 4010 | static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4011 | PyObject *resultobj = NULL; |
093d3ff1 | 4012 | bool result; |
d55e5bfc RD |
4013 | char *kwnames[] = { |
4014 | NULL | |
4015 | }; | |
4016 | ||
093d3ff1 | 4017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; |
d55e5bfc RD |
4018 | { |
4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4020 | result = (bool)wxIsBusy(); |
d55e5bfc RD |
4021 | |
4022 | wxPyEndAllowThreads(__tstate); | |
4023 | if (PyErr_Occurred()) SWIG_fail; | |
4024 | } | |
4025 | { | |
093d3ff1 | 4026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
4027 | } |
4028 | return resultobj; | |
4029 | fail: | |
4030 | return NULL; | |
4031 | } | |
4032 | ||
4033 | ||
093d3ff1 | 4034 | static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4035 | PyObject *resultobj = NULL; |
d55e5bfc RD |
4036 | wxString result; |
4037 | char *kwnames[] = { | |
4038 | NULL | |
4039 | }; | |
4040 | ||
093d3ff1 | 4041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; |
d55e5bfc RD |
4042 | { |
4043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4044 | result = wxNow(); |
d55e5bfc RD |
4045 | |
4046 | wxPyEndAllowThreads(__tstate); | |
4047 | if (PyErr_Occurred()) SWIG_fail; | |
4048 | } | |
4049 | { | |
4050 | #if wxUSE_UNICODE | |
4051 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4052 | #else | |
4053 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4054 | #endif | |
4055 | } | |
4056 | return resultobj; | |
4057 | fail: | |
4058 | return NULL; | |
4059 | } | |
4060 | ||
4061 | ||
093d3ff1 | 4062 | static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4063 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4064 | wxString const &arg1_defvalue = wxPyEmptyString ; |
4065 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4066 | bool result; | |
4067 | bool temp1 = false ; | |
4068 | PyObject * obj0 = 0 ; | |
d55e5bfc | 4069 | char *kwnames[] = { |
093d3ff1 | 4070 | (char *) "command", NULL |
d55e5bfc RD |
4071 | }; |
4072 | ||
093d3ff1 RD |
4073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; |
4074 | if (obj0) { | |
4075 | { | |
4076 | arg1 = wxString_in_helper(obj0); | |
4077 | if (arg1 == NULL) SWIG_fail; | |
4078 | temp1 = true; | |
4079 | } | |
4080 | } | |
d55e5bfc RD |
4081 | { |
4082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4083 | result = (bool)wxShell((wxString const &)*arg1); |
d55e5bfc RD |
4084 | |
4085 | wxPyEndAllowThreads(__tstate); | |
4086 | if (PyErr_Occurred()) SWIG_fail; | |
4087 | } | |
4088 | { | |
093d3ff1 RD |
4089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
4090 | } | |
4091 | { | |
4092 | if (temp1) | |
4093 | delete arg1; | |
d55e5bfc RD |
4094 | } |
4095 | return resultobj; | |
4096 | fail: | |
093d3ff1 RD |
4097 | { |
4098 | if (temp1) | |
4099 | delete arg1; | |
4100 | } | |
d55e5bfc RD |
4101 | return NULL; |
4102 | } | |
4103 | ||
4104 | ||
093d3ff1 | 4105 | static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4106 | PyObject *resultobj = NULL; |
d55e5bfc RD |
4107 | char *kwnames[] = { |
4108 | NULL | |
4109 | }; | |
4110 | ||
093d3ff1 | 4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; |
d55e5bfc RD |
4112 | { |
4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4114 | wxStartTimer(); |
d55e5bfc RD |
4115 | |
4116 | wxPyEndAllowThreads(__tstate); | |
4117 | if (PyErr_Occurred()) SWIG_fail; | |
4118 | } | |
093d3ff1 RD |
4119 | Py_INCREF(Py_None); resultobj = Py_None; |
4120 | return resultobj; | |
4121 | fail: | |
4122 | return NULL; | |
4123 | } | |
4124 | ||
4125 | ||
4126 | static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 4127 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4128 | int *arg1 = (int *) 0 ; |
4129 | int *arg2 = (int *) 0 ; | |
4130 | int result; | |
4131 | int temp1 ; | |
4132 | int res1 = 0 ; | |
4133 | int temp2 ; | |
4134 | int res2 = 0 ; | |
4135 | char *kwnames[] = { | |
4136 | NULL | |
4137 | }; | |
4138 | ||
4139 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
4140 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
d55e5bfc | 4142 | { |
093d3ff1 RD |
4143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4144 | result = (int)wxGetOsVersion(arg1,arg2); | |
4145 | ||
4146 | wxPyEndAllowThreads(__tstate); | |
4147 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 4148 | } |
093d3ff1 | 4149 | { |
7449af73 | 4150 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 RD |
4151 | } |
4152 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
4153 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4154 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4155 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4156 | return resultobj; |
4157 | fail: | |
4158 | return NULL; | |
4159 | } | |
4160 | ||
4161 | ||
093d3ff1 | 4162 | static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4163 | PyObject *resultobj = NULL; |
d55e5bfc RD |
4164 | wxString result; |
4165 | char *kwnames[] = { | |
4166 | NULL | |
4167 | }; | |
4168 | ||
093d3ff1 | 4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; |
d55e5bfc RD |
4170 | { |
4171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4172 | result = wxGetOsDescription(); |
d55e5bfc RD |
4173 | |
4174 | wxPyEndAllowThreads(__tstate); | |
4175 | if (PyErr_Occurred()) SWIG_fail; | |
4176 | } | |
4177 | { | |
4178 | #if wxUSE_UNICODE | |
4179 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4180 | #else | |
4181 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4182 | #endif | |
4183 | } | |
4184 | return resultobj; | |
4185 | fail: | |
4186 | return NULL; | |
4187 | } | |
4188 | ||
4189 | ||
093d3ff1 | 4190 | static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4191 | PyObject *resultobj = NULL; |
2f91e3df | 4192 | wxMemorySize result; |
d55e5bfc RD |
4193 | char *kwnames[] = { |
4194 | NULL | |
4195 | }; | |
4196 | ||
093d3ff1 | 4197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; |
d55e5bfc RD |
4198 | { |
4199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2f91e3df | 4200 | result = wxGetFreeMemory(); |
d55e5bfc RD |
4201 | |
4202 | wxPyEndAllowThreads(__tstate); | |
4203 | if (PyErr_Occurred()) SWIG_fail; | |
4204 | } | |
4205 | { | |
2f91e3df | 4206 | wxMemorySize * resultptr; |
7449af73 | 4207 | resultptr = new wxMemorySize(static_cast<wxMemorySize & >(result)); |
2f91e3df | 4208 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMemorySize, 1); |
d55e5bfc RD |
4209 | } |
4210 | return resultobj; | |
4211 | fail: | |
4212 | return NULL; | |
4213 | } | |
4214 | ||
4215 | ||
093d3ff1 | 4216 | static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4217 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4218 | wxShutdownFlags arg1 ; |
4219 | bool result; | |
d55e5bfc RD |
4220 | PyObject * obj0 = 0 ; |
4221 | char *kwnames[] = { | |
093d3ff1 | 4222 | (char *) "wFlags", NULL |
d55e5bfc RD |
4223 | }; |
4224 | ||
093d3ff1 RD |
4225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
4226 | { | |
7449af73 | 4227 | arg1 = static_cast<wxShutdownFlags >(SWIG_As_int(obj0)); |
093d3ff1 | 4228 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc RD |
4229 | } |
4230 | { | |
093d3ff1 | 4231 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7449af73 | 4233 | result = (bool)wxShutdown(arg1); |
d55e5bfc RD |
4234 | |
4235 | wxPyEndAllowThreads(__tstate); | |
4236 | if (PyErr_Occurred()) SWIG_fail; | |
4237 | } | |
4238 | { | |
093d3ff1 | 4239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
4240 | } |
4241 | return resultobj; | |
4242 | fail: | |
d55e5bfc RD |
4243 | return NULL; |
4244 | } | |
4245 | ||
4246 | ||
093d3ff1 | 4247 | static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4248 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4249 | int arg1 ; |
4250 | PyObject * obj0 = 0 ; | |
d55e5bfc | 4251 | char *kwnames[] = { |
093d3ff1 | 4252 | (char *) "secs", NULL |
d55e5bfc RD |
4253 | }; |
4254 | ||
093d3ff1 RD |
4255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; |
4256 | { | |
7449af73 | 4257 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
4258 | if (SWIG_arg_fail(1)) SWIG_fail; |
4259 | } | |
d55e5bfc RD |
4260 | { |
4261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4262 | wxSleep(arg1); |
d55e5bfc RD |
4263 | |
4264 | wxPyEndAllowThreads(__tstate); | |
4265 | if (PyErr_Occurred()) SWIG_fail; | |
4266 | } | |
093d3ff1 | 4267 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
4268 | return resultobj; |
4269 | fail: | |
4270 | return NULL; | |
4271 | } | |
4272 | ||
4273 | ||
093d3ff1 | 4274 | static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4275 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4276 | unsigned long arg1 ; |
4277 | PyObject * obj0 = 0 ; | |
d55e5bfc | 4278 | char *kwnames[] = { |
093d3ff1 | 4279 | (char *) "milliseconds", NULL |
d55e5bfc RD |
4280 | }; |
4281 | ||
093d3ff1 RD |
4282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail; |
4283 | { | |
7449af73 | 4284 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
4285 | if (SWIG_arg_fail(1)) SWIG_fail; |
4286 | } | |
d55e5bfc RD |
4287 | { |
4288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4289 | wxMilliSleep(arg1); |
d55e5bfc RD |
4290 | |
4291 | wxPyEndAllowThreads(__tstate); | |
4292 | if (PyErr_Occurred()) SWIG_fail; | |
4293 | } | |
4294 | Py_INCREF(Py_None); resultobj = Py_None; | |
4295 | return resultobj; | |
4296 | fail: | |
4297 | return NULL; | |
4298 | } | |
4299 | ||
4300 | ||
093d3ff1 | 4301 | static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4302 | PyObject *resultobj = NULL; |
093d3ff1 | 4303 | unsigned long arg1 ; |
d55e5bfc | 4304 | PyObject * obj0 = 0 ; |
d55e5bfc | 4305 | char *kwnames[] = { |
093d3ff1 | 4306 | (char *) "microseconds", NULL |
d55e5bfc RD |
4307 | }; |
4308 | ||
093d3ff1 RD |
4309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail; |
4310 | { | |
7449af73 | 4311 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 | 4312 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc RD |
4313 | } |
4314 | { | |
4315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4316 | wxMicroSleep(arg1); |
d55e5bfc RD |
4317 | |
4318 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4319 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4320 | } |
093d3ff1 | 4321 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
4322 | return resultobj; |
4323 | fail: | |
093d3ff1 RD |
4324 | return NULL; |
4325 | } | |
4326 | ||
4327 | ||
4328 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 4329 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4330 | bool arg1 ; |
4331 | PyObject * obj0 = 0 ; | |
4332 | char *kwnames[] = { | |
4333 | (char *) "enable", NULL | |
4334 | }; | |
4335 | ||
4336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
d55e5bfc | 4337 | { |
7449af73 | 4338 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 | 4339 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc RD |
4340 | } |
4341 | { | |
093d3ff1 RD |
4342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4343 | wxEnableTopLevelWindows(arg1); | |
4344 | ||
4345 | wxPyEndAllowThreads(__tstate); | |
4346 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 4347 | } |
093d3ff1 RD |
4348 | Py_INCREF(Py_None); resultobj = Py_None; |
4349 | return resultobj; | |
4350 | fail: | |
d55e5bfc RD |
4351 | return NULL; |
4352 | } | |
4353 | ||
4354 | ||
093d3ff1 | 4355 | static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4356 | PyObject *resultobj = NULL; |
d55e5bfc | 4357 | wxString *arg1 = 0 ; |
d55e5bfc | 4358 | wxString result; |
ae8162c8 | 4359 | bool temp1 = false ; |
d55e5bfc | 4360 | PyObject * obj0 = 0 ; |
d55e5bfc | 4361 | char *kwnames[] = { |
093d3ff1 | 4362 | (char *) "in", NULL |
d55e5bfc RD |
4363 | }; |
4364 | ||
093d3ff1 | 4365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
4366 | { |
4367 | arg1 = wxString_in_helper(obj0); | |
4368 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4369 | temp1 = true; |
d55e5bfc RD |
4370 | } |
4371 | { | |
d55e5bfc | 4372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4373 | result = wxStripMenuCodes((wxString const &)*arg1); |
d55e5bfc RD |
4374 | |
4375 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4376 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4377 | } |
4378 | { | |
4379 | #if wxUSE_UNICODE | |
4380 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4381 | #else | |
4382 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4383 | #endif | |
4384 | } | |
4385 | { | |
4386 | if (temp1) | |
4387 | delete arg1; | |
4388 | } | |
d55e5bfc RD |
4389 | return resultobj; |
4390 | fail: | |
4391 | { | |
4392 | if (temp1) | |
4393 | delete arg1; | |
4394 | } | |
d55e5bfc RD |
4395 | return NULL; |
4396 | } | |
4397 | ||
4398 | ||
093d3ff1 | 4399 | static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4400 | PyObject *resultobj = NULL; |
d55e5bfc | 4401 | wxString result; |
d55e5bfc | 4402 | char *kwnames[] = { |
093d3ff1 | 4403 | NULL |
d55e5bfc RD |
4404 | }; |
4405 | ||
093d3ff1 | 4406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; |
d55e5bfc RD |
4407 | { |
4408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4409 | result = wxGetEmailAddress(); |
d55e5bfc RD |
4410 | |
4411 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4412 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4413 | } |
4414 | { | |
4415 | #if wxUSE_UNICODE | |
4416 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4417 | #else | |
4418 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4419 | #endif | |
4420 | } | |
d55e5bfc RD |
4421 | return resultobj; |
4422 | fail: | |
093d3ff1 RD |
4423 | return NULL; |
4424 | } | |
4425 | ||
4426 | ||
4427 | static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 4428 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4429 | wxString result; |
4430 | char *kwnames[] = { | |
4431 | NULL | |
4432 | }; | |
4433 | ||
4434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
d55e5bfc | 4435 | { |
093d3ff1 RD |
4436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4437 | result = wxGetHostName(); | |
4438 | ||
4439 | wxPyEndAllowThreads(__tstate); | |
4440 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
4441 | } |
4442 | { | |
093d3ff1 RD |
4443 | #if wxUSE_UNICODE |
4444 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4445 | #else | |
4446 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4447 | #endif | |
d55e5bfc | 4448 | } |
093d3ff1 RD |
4449 | return resultobj; |
4450 | fail: | |
d55e5bfc RD |
4451 | return NULL; |
4452 | } | |
4453 | ||
4454 | ||
093d3ff1 | 4455 | static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4456 | PyObject *resultobj = NULL; |
d55e5bfc | 4457 | wxString result; |
093d3ff1 RD |
4458 | char *kwnames[] = { |
4459 | NULL | |
4460 | }; | |
4461 | ||
4462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
4463 | { | |
4464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4465 | result = wxGetFullHostName(); | |
4466 | ||
4467 | wxPyEndAllowThreads(__tstate); | |
4468 | if (PyErr_Occurred()) SWIG_fail; | |
4469 | } | |
4470 | { | |
4471 | #if wxUSE_UNICODE | |
4472 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4473 | #else | |
4474 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4475 | #endif | |
4476 | } | |
4477 | return resultobj; | |
4478 | fail: | |
4479 | return NULL; | |
4480 | } | |
4481 | ||
4482 | ||
4483 | static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 4484 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4485 | wxString result; |
4486 | char *kwnames[] = { | |
4487 | NULL | |
4488 | }; | |
4489 | ||
4490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
4491 | { | |
4492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4493 | result = wxGetUserId(); | |
4494 | ||
4495 | wxPyEndAllowThreads(__tstate); | |
4496 | if (PyErr_Occurred()) SWIG_fail; | |
4497 | } | |
4498 | { | |
4499 | #if wxUSE_UNICODE | |
4500 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4501 | #else | |
4502 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4503 | #endif | |
4504 | } | |
4505 | return resultobj; | |
4506 | fail: | |
4507 | return NULL; | |
4508 | } | |
4509 | ||
4510 | ||
4511 | static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 4512 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4513 | wxString result; |
4514 | char *kwnames[] = { | |
4515 | NULL | |
4516 | }; | |
4517 | ||
4518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
4519 | { | |
4520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4521 | result = wxGetUserName(); | |
4522 | ||
4523 | wxPyEndAllowThreads(__tstate); | |
4524 | if (PyErr_Occurred()) SWIG_fail; | |
4525 | } | |
4526 | { | |
4527 | #if wxUSE_UNICODE | |
4528 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4529 | #else | |
4530 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4531 | #endif | |
4532 | } | |
4533 | return resultobj; | |
4534 | fail: | |
4535 | return NULL; | |
4536 | } | |
4537 | ||
4538 | ||
4539 | static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 4540 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4541 | wxString result; |
4542 | char *kwnames[] = { | |
4543 | NULL | |
4544 | }; | |
4545 | ||
4546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
4547 | { | |
4548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4549 | result = wxGetHomeDir(); | |
4550 | ||
4551 | wxPyEndAllowThreads(__tstate); | |
4552 | if (PyErr_Occurred()) SWIG_fail; | |
4553 | } | |
4554 | { | |
4555 | #if wxUSE_UNICODE | |
4556 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4557 | #else | |
4558 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4559 | #endif | |
4560 | } | |
4561 | return resultobj; | |
4562 | fail: | |
4563 | return NULL; | |
4564 | } | |
4565 | ||
4566 | ||
4567 | static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 4568 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4569 | wxString const &arg1_defvalue = wxPyEmptyString ; |
4570 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4571 | wxString result; | |
4572 | bool temp1 = false ; | |
d55e5bfc | 4573 | PyObject * obj0 = 0 ; |
d55e5bfc | 4574 | char *kwnames[] = { |
093d3ff1 | 4575 | (char *) "user", NULL |
d55e5bfc RD |
4576 | }; |
4577 | ||
093d3ff1 | 4578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
4579 | if (obj0) { |
4580 | { | |
4581 | arg1 = wxString_in_helper(obj0); | |
4582 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4583 | temp1 = true; |
d55e5bfc RD |
4584 | } |
4585 | } | |
d55e5bfc RD |
4586 | { |
4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4588 | result = wxGetUserHome((wxString const &)*arg1); |
d55e5bfc RD |
4589 | |
4590 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4591 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4592 | } |
4593 | { | |
4594 | #if wxUSE_UNICODE | |
4595 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4596 | #else | |
4597 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4598 | #endif | |
4599 | } | |
4600 | { | |
4601 | if (temp1) | |
4602 | delete arg1; | |
4603 | } | |
d55e5bfc RD |
4604 | return resultobj; |
4605 | fail: | |
4606 | { | |
4607 | if (temp1) | |
4608 | delete arg1; | |
4609 | } | |
093d3ff1 RD |
4610 | return NULL; |
4611 | } | |
4612 | ||
4613 | ||
4614 | static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 4615 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4616 | unsigned long result; |
4617 | char *kwnames[] = { | |
4618 | NULL | |
4619 | }; | |
4620 | ||
4621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
4622 | { | |
4623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4624 | result = (unsigned long)wxGetProcessId(); | |
4625 | ||
4626 | wxPyEndAllowThreads(__tstate); | |
4627 | if (PyErr_Occurred()) SWIG_fail; | |
4628 | } | |
d55e5bfc | 4629 | { |
7449af73 | 4630 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
d55e5bfc | 4631 | } |
093d3ff1 RD |
4632 | return resultobj; |
4633 | fail: | |
d55e5bfc RD |
4634 | return NULL; |
4635 | } | |
4636 | ||
4637 | ||
093d3ff1 | 4638 | static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4639 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4640 | char *kwnames[] = { |
4641 | NULL | |
4642 | }; | |
4643 | ||
4644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
4645 | { | |
4646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4647 | wxTrap(); | |
4648 | ||
4649 | wxPyEndAllowThreads(__tstate); | |
4650 | if (PyErr_Occurred()) SWIG_fail; | |
4651 | } | |
4652 | Py_INCREF(Py_None); resultobj = Py_None; | |
4653 | return resultobj; | |
4654 | fail: | |
4655 | return NULL; | |
4656 | } | |
4657 | ||
4658 | ||
4659 | static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 4660 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4661 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; |
4662 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc RD |
4663 | wxString const &arg2_defvalue = wxPyEmptyString ; |
4664 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4665 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4666 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
093d3ff1 RD |
4667 | wxString const &arg4_defvalue = wxPyEmptyString ; |
4668 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4669 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
4670 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
4671 | int arg6 = (int) 0 ; | |
4672 | wxWindow *arg7 = (wxWindow *) NULL ; | |
4673 | int arg8 = (int) -1 ; | |
4674 | int arg9 = (int) -1 ; | |
d55e5bfc | 4675 | wxString result; |
ae8162c8 RD |
4676 | bool temp1 = false ; |
4677 | bool temp2 = false ; | |
4678 | bool temp3 = false ; | |
093d3ff1 RD |
4679 | bool temp4 = false ; |
4680 | bool temp5 = false ; | |
d55e5bfc RD |
4681 | PyObject * obj0 = 0 ; |
4682 | PyObject * obj1 = 0 ; | |
4683 | PyObject * obj2 = 0 ; | |
4684 | PyObject * obj3 = 0 ; | |
4685 | PyObject * obj4 = 0 ; | |
4686 | PyObject * obj5 = 0 ; | |
4687 | PyObject * obj6 = 0 ; | |
093d3ff1 RD |
4688 | PyObject * obj7 = 0 ; |
4689 | PyObject * obj8 = 0 ; | |
d55e5bfc | 4690 | char *kwnames[] = { |
093d3ff1 | 4691 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
4692 | }; |
4693 | ||
093d3ff1 RD |
4694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
4695 | if (obj0) { | |
4696 | { | |
4697 | arg1 = wxString_in_helper(obj0); | |
4698 | if (arg1 == NULL) SWIG_fail; | |
4699 | temp1 = true; | |
4700 | } | |
d55e5bfc RD |
4701 | } |
4702 | if (obj1) { | |
4703 | { | |
4704 | arg2 = wxString_in_helper(obj1); | |
4705 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4706 | temp2 = true; |
d55e5bfc RD |
4707 | } |
4708 | } | |
4709 | if (obj2) { | |
4710 | { | |
4711 | arg3 = wxString_in_helper(obj2); | |
4712 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4713 | temp3 = true; |
d55e5bfc RD |
4714 | } |
4715 | } | |
4716 | if (obj3) { | |
093d3ff1 RD |
4717 | { |
4718 | arg4 = wxString_in_helper(obj3); | |
4719 | if (arg4 == NULL) SWIG_fail; | |
4720 | temp4 = true; | |
4721 | } | |
d55e5bfc RD |
4722 | } |
4723 | if (obj4) { | |
093d3ff1 RD |
4724 | { |
4725 | arg5 = wxString_in_helper(obj4); | |
4726 | if (arg5 == NULL) SWIG_fail; | |
4727 | temp5 = true; | |
4728 | } | |
d55e5bfc RD |
4729 | } |
4730 | if (obj5) { | |
093d3ff1 | 4731 | { |
7449af73 | 4732 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
4733 | if (SWIG_arg_fail(6)) SWIG_fail; |
4734 | } | |
d55e5bfc RD |
4735 | } |
4736 | if (obj6) { | |
093d3ff1 RD |
4737 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4738 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4739 | } | |
4740 | if (obj7) { | |
4741 | { | |
7449af73 | 4742 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
4743 | if (SWIG_arg_fail(8)) SWIG_fail; |
4744 | } | |
4745 | } | |
4746 | if (obj8) { | |
4747 | { | |
7449af73 | 4748 | arg9 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
4749 | if (SWIG_arg_fail(9)) SWIG_fail; |
4750 | } | |
d55e5bfc RD |
4751 | } |
4752 | { | |
0439c23b | 4753 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4755 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); |
d55e5bfc RD |
4756 | |
4757 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4758 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4759 | } |
4760 | { | |
4761 | #if wxUSE_UNICODE | |
4762 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4763 | #else | |
4764 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4765 | #endif | |
4766 | } | |
4767 | { | |
4768 | if (temp1) | |
4769 | delete arg1; | |
4770 | } | |
4771 | { | |
4772 | if (temp2) | |
4773 | delete arg2; | |
4774 | } | |
4775 | { | |
4776 | if (temp3) | |
4777 | delete arg3; | |
4778 | } | |
d55e5bfc | 4779 | { |
093d3ff1 RD |
4780 | if (temp4) |
4781 | delete arg4; | |
4782 | } | |
4783 | { | |
4784 | if (temp5) | |
4785 | delete arg5; | |
4786 | } | |
4787 | return resultobj; | |
4788 | fail: | |
4789 | { | |
4790 | if (temp1) | |
4791 | delete arg1; | |
d55e5bfc RD |
4792 | } |
4793 | { | |
4794 | if (temp2) | |
4795 | delete arg2; | |
4796 | } | |
4797 | { | |
4798 | if (temp3) | |
4799 | delete arg3; | |
4800 | } | |
093d3ff1 RD |
4801 | { |
4802 | if (temp4) | |
4803 | delete arg4; | |
4804 | } | |
4805 | { | |
4806 | if (temp5) | |
4807 | delete arg5; | |
4808 | } | |
d55e5bfc RD |
4809 | return NULL; |
4810 | } | |
4811 | ||
4812 | ||
093d3ff1 | 4813 | static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4814 | PyObject *resultobj = NULL; |
d55e5bfc | 4815 | wxString *arg1 = 0 ; |
093d3ff1 | 4816 | wxString *arg2 = 0 ; |
d55e5bfc RD |
4817 | wxString const &arg3_defvalue = wxPyEmptyString ; |
4818 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4819 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4820 | wxString result; | |
ae8162c8 RD |
4821 | bool temp1 = false ; |
4822 | bool temp2 = false ; | |
4823 | bool temp3 = false ; | |
d55e5bfc RD |
4824 | PyObject * obj0 = 0 ; |
4825 | PyObject * obj1 = 0 ; | |
4826 | PyObject * obj2 = 0 ; | |
4827 | PyObject * obj3 = 0 ; | |
4828 | char *kwnames[] = { | |
093d3ff1 | 4829 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL |
d55e5bfc RD |
4830 | }; |
4831 | ||
093d3ff1 | 4832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
4833 | { |
4834 | arg1 = wxString_in_helper(obj0); | |
4835 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4836 | temp1 = true; |
d55e5bfc | 4837 | } |
093d3ff1 RD |
4838 | { |
4839 | arg2 = wxString_in_helper(obj1); | |
4840 | if (arg2 == NULL) SWIG_fail; | |
4841 | temp2 = true; | |
d55e5bfc RD |
4842 | } |
4843 | if (obj2) { | |
4844 | { | |
4845 | arg3 = wxString_in_helper(obj2); | |
4846 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4847 | temp3 = true; |
d55e5bfc RD |
4848 | } |
4849 | } | |
4850 | if (obj3) { | |
093d3ff1 RD |
4851 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4852 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
4853 | } |
4854 | { | |
0439c23b | 4855 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4857 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d55e5bfc RD |
4858 | |
4859 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4860 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4861 | } |
4862 | { | |
4863 | #if wxUSE_UNICODE | |
4864 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4865 | #else | |
4866 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4867 | #endif | |
4868 | } | |
4869 | { | |
4870 | if (temp1) | |
4871 | delete arg1; | |
4872 | } | |
4873 | { | |
4874 | if (temp2) | |
4875 | delete arg2; | |
4876 | } | |
4877 | { | |
4878 | if (temp3) | |
4879 | delete arg3; | |
4880 | } | |
4881 | return resultobj; | |
4882 | fail: | |
4883 | { | |
4884 | if (temp1) | |
4885 | delete arg1; | |
4886 | } | |
4887 | { | |
4888 | if (temp2) | |
4889 | delete arg2; | |
4890 | } | |
4891 | { | |
4892 | if (temp3) | |
4893 | delete arg3; | |
4894 | } | |
4895 | return NULL; | |
4896 | } | |
4897 | ||
4898 | ||
093d3ff1 | 4899 | static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4900 | PyObject *resultobj = NULL; |
d55e5bfc RD |
4901 | wxString *arg1 = 0 ; |
4902 | wxString *arg2 = 0 ; | |
093d3ff1 RD |
4903 | wxString const &arg3_defvalue = wxPyEmptyString ; |
4904 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4905 | wxWindow *arg4 = (wxWindow *) NULL ; | |
d55e5bfc | 4906 | wxString result; |
ae8162c8 RD |
4907 | bool temp1 = false ; |
4908 | bool temp2 = false ; | |
093d3ff1 | 4909 | bool temp3 = false ; |
d55e5bfc RD |
4910 | PyObject * obj0 = 0 ; |
4911 | PyObject * obj1 = 0 ; | |
4912 | PyObject * obj2 = 0 ; | |
4913 | PyObject * obj3 = 0 ; | |
d55e5bfc | 4914 | char *kwnames[] = { |
093d3ff1 | 4915 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL |
d55e5bfc RD |
4916 | }; |
4917 | ||
093d3ff1 | 4918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
4919 | { |
4920 | arg1 = wxString_in_helper(obj0); | |
4921 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4922 | temp1 = true; |
d55e5bfc RD |
4923 | } |
4924 | { | |
4925 | arg2 = wxString_in_helper(obj1); | |
4926 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4927 | temp2 = true; |
d55e5bfc | 4928 | } |
093d3ff1 RD |
4929 | if (obj2) { |
4930 | { | |
4931 | arg3 = wxString_in_helper(obj2); | |
4932 | if (arg3 == NULL) SWIG_fail; | |
4933 | temp3 = true; | |
4934 | } | |
d55e5bfc RD |
4935 | } |
4936 | if (obj3) { | |
093d3ff1 RD |
4937 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4938 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
4939 | } |
4940 | { | |
0439c23b | 4941 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4943 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d55e5bfc RD |
4944 | |
4945 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4946 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4947 | } |
4948 | { | |
4949 | #if wxUSE_UNICODE | |
4950 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4951 | #else | |
4952 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4953 | #endif | |
4954 | } | |
4955 | { | |
4956 | if (temp1) | |
4957 | delete arg1; | |
4958 | } | |
4959 | { | |
4960 | if (temp2) | |
4961 | delete arg2; | |
4962 | } | |
4963 | { | |
093d3ff1 RD |
4964 | if (temp3) |
4965 | delete arg3; | |
d55e5bfc RD |
4966 | } |
4967 | return resultobj; | |
4968 | fail: | |
4969 | { | |
4970 | if (temp1) | |
4971 | delete arg1; | |
4972 | } | |
4973 | { | |
4974 | if (temp2) | |
4975 | delete arg2; | |
4976 | } | |
4977 | { | |
093d3ff1 RD |
4978 | if (temp3) |
4979 | delete arg3; | |
d55e5bfc RD |
4980 | } |
4981 | return NULL; | |
4982 | } | |
4983 | ||
4984 | ||
093d3ff1 | 4985 | static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 4986 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4987 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; |
4988 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4989 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4990 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4991 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
4992 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4993 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
d55e5bfc | 4994 | wxWindow *arg5 = (wxWindow *) NULL ; |
093d3ff1 | 4995 | wxString result; |
ae8162c8 RD |
4996 | bool temp1 = false ; |
4997 | bool temp2 = false ; | |
093d3ff1 | 4998 | wxPoint temp4 ; |
d55e5bfc RD |
4999 | PyObject * obj0 = 0 ; |
5000 | PyObject * obj1 = 0 ; | |
5001 | PyObject * obj2 = 0 ; | |
5002 | PyObject * obj3 = 0 ; | |
5003 | PyObject * obj4 = 0 ; | |
d55e5bfc | 5004 | char *kwnames[] = { |
093d3ff1 | 5005 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL |
d55e5bfc RD |
5006 | }; |
5007 | ||
093d3ff1 RD |
5008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
5009 | if (obj0) { | |
5010 | { | |
5011 | arg1 = wxString_in_helper(obj0); | |
5012 | if (arg1 == NULL) SWIG_fail; | |
5013 | temp1 = true; | |
5014 | } | |
d55e5bfc | 5015 | } |
093d3ff1 RD |
5016 | if (obj1) { |
5017 | { | |
5018 | arg2 = wxString_in_helper(obj1); | |
5019 | if (arg2 == NULL) SWIG_fail; | |
5020 | temp2 = true; | |
5021 | } | |
d55e5bfc | 5022 | } |
093d3ff1 RD |
5023 | if (obj2) { |
5024 | { | |
7449af73 | 5025 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
5026 | if (SWIG_arg_fail(3)) SWIG_fail; |
5027 | } | |
d55e5bfc RD |
5028 | } |
5029 | if (obj3) { | |
093d3ff1 RD |
5030 | { |
5031 | arg4 = &temp4; | |
5032 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5033 | } | |
d55e5bfc RD |
5034 | } |
5035 | if (obj4) { | |
093d3ff1 RD |
5036 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5037 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
5038 | } |
5039 | { | |
0439c23b | 5040 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5042 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); |
d55e5bfc RD |
5043 | |
5044 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5045 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5046 | } |
093d3ff1 RD |
5047 | { |
5048 | #if wxUSE_UNICODE | |
5049 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5050 | #else | |
5051 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5052 | #endif | |
5053 | } | |
d55e5bfc RD |
5054 | { |
5055 | if (temp1) | |
5056 | delete arg1; | |
5057 | } | |
5058 | { | |
5059 | if (temp2) | |
5060 | delete arg2; | |
5061 | } | |
d55e5bfc RD |
5062 | return resultobj; |
5063 | fail: | |
5064 | { | |
5065 | if (temp1) | |
5066 | delete arg1; | |
5067 | } | |
5068 | { | |
5069 | if (temp2) | |
5070 | delete arg2; | |
5071 | } | |
d55e5bfc RD |
5072 | return NULL; |
5073 | } | |
5074 | ||
5075 | ||
093d3ff1 | 5076 | static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5077 | PyObject *resultobj = NULL; |
d55e5bfc RD |
5078 | wxString *arg1 = 0 ; |
5079 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5080 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
093d3ff1 RD |
5081 | wxString const &arg3_defvalue = wxPyEmptyString ; |
5082 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
5083 | wxWindow *arg4 = (wxWindow *) NULL ; |
5084 | int arg5 = (int) -1 ; | |
5085 | int arg6 = (int) -1 ; | |
093d3ff1 RD |
5086 | bool arg7 = (bool) true ; |
5087 | wxString result; | |
ae8162c8 RD |
5088 | bool temp1 = false ; |
5089 | bool temp2 = false ; | |
093d3ff1 | 5090 | bool temp3 = false ; |
d55e5bfc RD |
5091 | PyObject * obj0 = 0 ; |
5092 | PyObject * obj1 = 0 ; | |
5093 | PyObject * obj2 = 0 ; | |
5094 | PyObject * obj3 = 0 ; | |
5095 | PyObject * obj4 = 0 ; | |
5096 | PyObject * obj5 = 0 ; | |
093d3ff1 | 5097 | PyObject * obj6 = 0 ; |
d55e5bfc | 5098 | char *kwnames[] = { |
093d3ff1 | 5099 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL |
d55e5bfc RD |
5100 | }; |
5101 | ||
093d3ff1 | 5102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
5103 | { |
5104 | arg1 = wxString_in_helper(obj0); | |
5105 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 5106 | temp1 = true; |
d55e5bfc RD |
5107 | } |
5108 | if (obj1) { | |
5109 | { | |
5110 | arg2 = wxString_in_helper(obj1); | |
5111 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 5112 | temp2 = true; |
d55e5bfc RD |
5113 | } |
5114 | } | |
5115 | if (obj2) { | |
093d3ff1 RD |
5116 | { |
5117 | arg3 = wxString_in_helper(obj2); | |
5118 | if (arg3 == NULL) SWIG_fail; | |
5119 | temp3 = true; | |
5120 | } | |
d55e5bfc RD |
5121 | } |
5122 | if (obj3) { | |
093d3ff1 RD |
5123 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5124 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
5125 | } |
5126 | if (obj4) { | |
093d3ff1 | 5127 | { |
7449af73 | 5128 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
5129 | if (SWIG_arg_fail(5)) SWIG_fail; |
5130 | } | |
d55e5bfc RD |
5131 | } |
5132 | if (obj5) { | |
093d3ff1 | 5133 | { |
7449af73 | 5134 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
5135 | if (SWIG_arg_fail(6)) SWIG_fail; |
5136 | } | |
5137 | } | |
5138 | if (obj6) { | |
5139 | { | |
7449af73 | 5140 | arg7 = static_cast<bool >(SWIG_As_bool(obj6)); |
093d3ff1 RD |
5141 | if (SWIG_arg_fail(7)) SWIG_fail; |
5142 | } | |
d55e5bfc RD |
5143 | } |
5144 | { | |
0439c23b | 5145 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5147 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
5148 | |
5149 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5150 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5151 | } |
093d3ff1 RD |
5152 | { |
5153 | #if wxUSE_UNICODE | |
5154 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5155 | #else | |
5156 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5157 | #endif | |
5158 | } | |
d55e5bfc RD |
5159 | { |
5160 | if (temp1) | |
5161 | delete arg1; | |
5162 | } | |
5163 | { | |
5164 | if (temp2) | |
5165 | delete arg2; | |
5166 | } | |
093d3ff1 RD |
5167 | { |
5168 | if (temp3) | |
5169 | delete arg3; | |
5170 | } | |
d55e5bfc RD |
5171 | return resultobj; |
5172 | fail: | |
5173 | { | |
5174 | if (temp1) | |
5175 | delete arg1; | |
5176 | } | |
5177 | { | |
5178 | if (temp2) | |
5179 | delete arg2; | |
5180 | } | |
093d3ff1 RD |
5181 | { |
5182 | if (temp3) | |
5183 | delete arg3; | |
5184 | } | |
d55e5bfc RD |
5185 | return NULL; |
5186 | } | |
5187 | ||
5188 | ||
093d3ff1 | 5189 | static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5190 | PyObject *resultobj = NULL; |
d55e5bfc | 5191 | wxString *arg1 = 0 ; |
093d3ff1 RD |
5192 | wxString const &arg2_defvalue = wxPyEmptyString ; |
5193 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5194 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5195 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5196 | wxWindow *arg4 = (wxWindow *) NULL ; | |
5197 | wxString result; | |
ae8162c8 RD |
5198 | bool temp1 = false ; |
5199 | bool temp2 = false ; | |
5200 | bool temp3 = false ; | |
d55e5bfc RD |
5201 | PyObject * obj0 = 0 ; |
5202 | PyObject * obj1 = 0 ; | |
5203 | PyObject * obj2 = 0 ; | |
5204 | PyObject * obj3 = 0 ; | |
d55e5bfc | 5205 | char *kwnames[] = { |
093d3ff1 | 5206 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL |
d55e5bfc RD |
5207 | }; |
5208 | ||
093d3ff1 | 5209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
5210 | { |
5211 | arg1 = wxString_in_helper(obj0); | |
5212 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 5213 | temp1 = true; |
d55e5bfc | 5214 | } |
093d3ff1 RD |
5215 | if (obj1) { |
5216 | { | |
5217 | arg2 = wxString_in_helper(obj1); | |
5218 | if (arg2 == NULL) SWIG_fail; | |
5219 | temp2 = true; | |
5220 | } | |
d55e5bfc | 5221 | } |
093d3ff1 | 5222 | if (obj2) { |
d55e5bfc | 5223 | { |
093d3ff1 RD |
5224 | arg3 = wxString_in_helper(obj2); |
5225 | if (arg3 == NULL) SWIG_fail; | |
5226 | temp3 = true; | |
d55e5bfc RD |
5227 | } |
5228 | } | |
093d3ff1 RD |
5229 | if (obj3) { |
5230 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5231 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5232 | } | |
d55e5bfc | 5233 | { |
0439c23b | 5234 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5236 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d55e5bfc RD |
5237 | |
5238 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5239 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5240 | } |
093d3ff1 RD |
5241 | { |
5242 | #if wxUSE_UNICODE | |
5243 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5244 | #else | |
5245 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5246 | #endif | |
5247 | } | |
d55e5bfc RD |
5248 | { |
5249 | if (temp1) | |
5250 | delete arg1; | |
5251 | } | |
5252 | { | |
5253 | if (temp2) | |
5254 | delete arg2; | |
5255 | } | |
5256 | { | |
5257 | if (temp3) | |
5258 | delete arg3; | |
5259 | } | |
5260 | return resultobj; | |
5261 | fail: | |
5262 | { | |
5263 | if (temp1) | |
5264 | delete arg1; | |
5265 | } | |
5266 | { | |
5267 | if (temp2) | |
5268 | delete arg2; | |
5269 | } | |
5270 | { | |
5271 | if (temp3) | |
5272 | delete arg3; | |
5273 | } | |
5274 | return NULL; | |
5275 | } | |
5276 | ||
5277 | ||
093d3ff1 | 5278 | static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5279 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5280 | wxString *arg1 = 0 ; |
5281 | wxString *arg2 = 0 ; | |
5282 | int arg3 ; | |
5283 | wxString *arg4 = (wxString *) 0 ; | |
5284 | wxWindow *arg5 = (wxWindow *) NULL ; | |
5285 | int arg6 = (int) -1 ; | |
5286 | int arg7 = (int) -1 ; | |
5287 | bool arg8 = (bool) true ; | |
5288 | int arg9 = (int) 150 ; | |
5289 | int arg10 = (int) 200 ; | |
5290 | wxString result; | |
5291 | bool temp1 = false ; | |
5292 | bool temp2 = false ; | |
5293 | PyObject * obj0 = 0 ; | |
5294 | PyObject * obj1 = 0 ; | |
5295 | PyObject * obj2 = 0 ; | |
5296 | PyObject * obj3 = 0 ; | |
5297 | PyObject * obj4 = 0 ; | |
5298 | PyObject * obj5 = 0 ; | |
5299 | PyObject * obj6 = 0 ; | |
5300 | PyObject * obj7 = 0 ; | |
5301 | PyObject * obj8 = 0 ; | |
d55e5bfc | 5302 | char *kwnames[] = { |
093d3ff1 | 5303 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
5304 | }; |
5305 | ||
093d3ff1 RD |
5306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
5307 | { | |
5308 | arg1 = wxString_in_helper(obj0); | |
5309 | if (arg1 == NULL) SWIG_fail; | |
5310 | temp1 = true; | |
5311 | } | |
5312 | { | |
5313 | arg2 = wxString_in_helper(obj1); | |
5314 | if (arg2 == NULL) SWIG_fail; | |
5315 | temp2 = true; | |
5316 | } | |
5317 | { | |
5318 | arg3 = PyList_Size(obj2); | |
5319 | arg4 = wxString_LIST_helper(obj2); | |
5320 | if (arg4 == NULL) SWIG_fail; | |
5321 | } | |
5322 | if (obj3) { | |
5323 | SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5324 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5325 | } | |
5326 | if (obj4) { | |
5327 | { | |
7449af73 | 5328 | arg6 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
5329 | if (SWIG_arg_fail(6)) SWIG_fail; |
5330 | } | |
5331 | } | |
5332 | if (obj5) { | |
5333 | { | |
7449af73 | 5334 | arg7 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
5335 | if (SWIG_arg_fail(7)) SWIG_fail; |
5336 | } | |
5337 | } | |
5338 | if (obj6) { | |
5339 | { | |
7449af73 | 5340 | arg8 = static_cast<bool >(SWIG_As_bool(obj6)); |
093d3ff1 RD |
5341 | if (SWIG_arg_fail(8)) SWIG_fail; |
5342 | } | |
5343 | } | |
5344 | if (obj7) { | |
5345 | { | |
7449af73 | 5346 | arg9 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
5347 | if (SWIG_arg_fail(9)) SWIG_fail; |
5348 | } | |
5349 | } | |
5350 | if (obj8) { | |
5351 | { | |
7449af73 | 5352 | arg10 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
5353 | if (SWIG_arg_fail(10)) SWIG_fail; |
5354 | } | |
5355 | } | |
d55e5bfc | 5356 | { |
0439c23b | 5357 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5359 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); |
d55e5bfc RD |
5360 | |
5361 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5362 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5363 | } |
5364 | { | |
093d3ff1 RD |
5365 | #if wxUSE_UNICODE |
5366 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5367 | #else | |
5368 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5369 | #endif | |
5370 | } | |
5371 | { | |
5372 | if (temp1) | |
5373 | delete arg1; | |
5374 | } | |
5375 | { | |
5376 | if (temp2) | |
5377 | delete arg2; | |
5378 | } | |
5379 | { | |
5380 | if (arg4) delete [] arg4; | |
d55e5bfc RD |
5381 | } |
5382 | return resultobj; | |
5383 | fail: | |
093d3ff1 RD |
5384 | { |
5385 | if (temp1) | |
5386 | delete arg1; | |
5387 | } | |
5388 | { | |
5389 | if (temp2) | |
5390 | delete arg2; | |
5391 | } | |
5392 | { | |
5393 | if (arg4) delete [] arg4; | |
5394 | } | |
d55e5bfc RD |
5395 | return NULL; |
5396 | } | |
5397 | ||
5398 | ||
093d3ff1 | 5399 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5400 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5401 | wxString *arg1 = 0 ; |
5402 | wxString *arg2 = 0 ; | |
5403 | int arg3 ; | |
5404 | wxString *arg4 = (wxString *) 0 ; | |
5405 | wxWindow *arg5 = (wxWindow *) NULL ; | |
5406 | int arg6 = (int) -1 ; | |
5407 | int arg7 = (int) -1 ; | |
5408 | bool arg8 = (bool) true ; | |
5409 | int arg9 = (int) 150 ; | |
5410 | int arg10 = (int) 200 ; | |
d55e5bfc | 5411 | int result; |
093d3ff1 RD |
5412 | bool temp1 = false ; |
5413 | bool temp2 = false ; | |
5414 | PyObject * obj0 = 0 ; | |
5415 | PyObject * obj1 = 0 ; | |
5416 | PyObject * obj2 = 0 ; | |
5417 | PyObject * obj3 = 0 ; | |
5418 | PyObject * obj4 = 0 ; | |
5419 | PyObject * obj5 = 0 ; | |
5420 | PyObject * obj6 = 0 ; | |
5421 | PyObject * obj7 = 0 ; | |
5422 | PyObject * obj8 = 0 ; | |
d55e5bfc | 5423 | char *kwnames[] = { |
093d3ff1 | 5424 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
5425 | }; |
5426 | ||
093d3ff1 RD |
5427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
5428 | { | |
5429 | arg1 = wxString_in_helper(obj0); | |
5430 | if (arg1 == NULL) SWIG_fail; | |
5431 | temp1 = true; | |
5432 | } | |
5433 | { | |
5434 | arg2 = wxString_in_helper(obj1); | |
5435 | if (arg2 == NULL) SWIG_fail; | |
5436 | temp2 = true; | |
5437 | } | |
5438 | { | |
5439 | arg3 = PyList_Size(obj2); | |
5440 | arg4 = wxString_LIST_helper(obj2); | |
5441 | if (arg4 == NULL) SWIG_fail; | |
5442 | } | |
5443 | if (obj3) { | |
5444 | SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5445 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5446 | } | |
5447 | if (obj4) { | |
5448 | { | |
7449af73 | 5449 | arg6 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
5450 | if (SWIG_arg_fail(6)) SWIG_fail; |
5451 | } | |
5452 | } | |
5453 | if (obj5) { | |
5454 | { | |
7449af73 | 5455 | arg7 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
5456 | if (SWIG_arg_fail(7)) SWIG_fail; |
5457 | } | |
5458 | } | |
5459 | if (obj6) { | |
5460 | { | |
7449af73 | 5461 | arg8 = static_cast<bool >(SWIG_As_bool(obj6)); |
093d3ff1 RD |
5462 | if (SWIG_arg_fail(8)) SWIG_fail; |
5463 | } | |
5464 | } | |
5465 | if (obj7) { | |
5466 | { | |
7449af73 | 5467 | arg9 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
5468 | if (SWIG_arg_fail(9)) SWIG_fail; |
5469 | } | |
5470 | } | |
5471 | if (obj8) { | |
5472 | { | |
7449af73 | 5473 | arg10 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
5474 | if (SWIG_arg_fail(10)) SWIG_fail; |
5475 | } | |
5476 | } | |
d55e5bfc | 5477 | { |
0439c23b | 5478 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5480 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); |
d55e5bfc RD |
5481 | |
5482 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5483 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5484 | } |
093d3ff1 | 5485 | { |
7449af73 | 5486 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 RD |
5487 | } |
5488 | { | |
5489 | if (temp1) | |
5490 | delete arg1; | |
5491 | } | |
5492 | { | |
5493 | if (temp2) | |
5494 | delete arg2; | |
5495 | } | |
5496 | { | |
5497 | if (arg4) delete [] arg4; | |
5498 | } | |
d55e5bfc RD |
5499 | return resultobj; |
5500 | fail: | |
093d3ff1 RD |
5501 | { |
5502 | if (temp1) | |
5503 | delete arg1; | |
5504 | } | |
5505 | { | |
5506 | if (temp2) | |
5507 | delete arg2; | |
5508 | } | |
5509 | { | |
5510 | if (arg4) delete [] arg4; | |
5511 | } | |
d55e5bfc RD |
5512 | return NULL; |
5513 | } | |
5514 | ||
5515 | ||
093d3ff1 | 5516 | static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5517 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5518 | wxString *arg1 = 0 ; |
5519 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5520 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5521 | int arg3 = (int) wxOK|wxCENTRE ; | |
5522 | wxWindow *arg4 = (wxWindow *) NULL ; | |
5523 | int arg5 = (int) -1 ; | |
5524 | int arg6 = (int) -1 ; | |
d55e5bfc | 5525 | int result; |
093d3ff1 RD |
5526 | bool temp1 = false ; |
5527 | bool temp2 = false ; | |
5528 | PyObject * obj0 = 0 ; | |
5529 | PyObject * obj1 = 0 ; | |
5530 | PyObject * obj2 = 0 ; | |
5531 | PyObject * obj3 = 0 ; | |
5532 | PyObject * obj4 = 0 ; | |
5533 | PyObject * obj5 = 0 ; | |
d55e5bfc | 5534 | char *kwnames[] = { |
093d3ff1 | 5535 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
5536 | }; |
5537 | ||
093d3ff1 | 5538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc | 5539 | { |
093d3ff1 RD |
5540 | arg1 = wxString_in_helper(obj0); |
5541 | if (arg1 == NULL) SWIG_fail; | |
5542 | temp1 = true; | |
5543 | } | |
5544 | if (obj1) { | |
5545 | { | |
5546 | arg2 = wxString_in_helper(obj1); | |
5547 | if (arg2 == NULL) SWIG_fail; | |
5548 | temp2 = true; | |
5549 | } | |
5550 | } | |
5551 | if (obj2) { | |
5552 | { | |
7449af73 | 5553 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
5554 | if (SWIG_arg_fail(3)) SWIG_fail; |
5555 | } | |
5556 | } | |
5557 | if (obj3) { | |
5558 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5559 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5560 | } | |
5561 | if (obj4) { | |
5562 | { | |
7449af73 | 5563 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
5564 | if (SWIG_arg_fail(5)) SWIG_fail; |
5565 | } | |
5566 | } | |
5567 | if (obj5) { | |
5568 | { | |
7449af73 | 5569 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
5570 | if (SWIG_arg_fail(6)) SWIG_fail; |
5571 | } | |
5572 | } | |
5573 | { | |
5574 | if (!wxPyCheckForApp()) SWIG_fail; | |
5575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5576 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
5577 | ||
5578 | wxPyEndAllowThreads(__tstate); | |
5579 | if (PyErr_Occurred()) SWIG_fail; | |
5580 | } | |
5581 | { | |
7449af73 | 5582 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 RD |
5583 | } |
5584 | { | |
5585 | if (temp1) | |
5586 | delete arg1; | |
5587 | } | |
5588 | { | |
5589 | if (temp2) | |
5590 | delete arg2; | |
5591 | } | |
5592 | return resultobj; | |
5593 | fail: | |
5594 | { | |
5595 | if (temp1) | |
5596 | delete arg1; | |
5597 | } | |
5598 | { | |
5599 | if (temp2) | |
5600 | delete arg2; | |
5601 | } | |
5602 | return NULL; | |
5603 | } | |
5604 | ||
5605 | ||
093d3ff1 | 5606 | static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5607 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5608 | bool result; |
5609 | char *kwnames[] = { | |
5610 | NULL | |
5611 | }; | |
5612 | ||
5613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
5614 | { | |
5615 | if (!wxPyCheckForApp()) SWIG_fail; | |
5616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5617 | result = (bool)wxColourDisplay(); | |
5618 | ||
5619 | wxPyEndAllowThreads(__tstate); | |
5620 | if (PyErr_Occurred()) SWIG_fail; | |
5621 | } | |
5622 | { | |
5623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5624 | } | |
5625 | return resultobj; | |
5626 | fail: | |
5627 | return NULL; | |
5628 | } | |
5629 | ||
5630 | ||
5631 | static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 5632 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5633 | int result; |
5634 | char *kwnames[] = { | |
5635 | NULL | |
5636 | }; | |
5637 | ||
5638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
5639 | { | |
5640 | if (!wxPyCheckForApp()) SWIG_fail; | |
5641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5642 | result = (int)wxDisplayDepth(); | |
5643 | ||
5644 | wxPyEndAllowThreads(__tstate); | |
5645 | if (PyErr_Occurred()) SWIG_fail; | |
5646 | } | |
5647 | { | |
7449af73 | 5648 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 RD |
5649 | } |
5650 | return resultobj; | |
5651 | fail: | |
5652 | return NULL; | |
5653 | } | |
5654 | ||
5655 | ||
5656 | static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 5657 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5658 | int result; |
5659 | char *kwnames[] = { | |
5660 | NULL | |
5661 | }; | |
5662 | ||
5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
5664 | { | |
5665 | if (!wxPyCheckForApp()) SWIG_fail; | |
5666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5667 | result = (int)wxGetDisplayDepth(); | |
5668 | ||
5669 | wxPyEndAllowThreads(__tstate); | |
5670 | if (PyErr_Occurred()) SWIG_fail; | |
5671 | } | |
5672 | { | |
7449af73 | 5673 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc | 5674 | } |
d55e5bfc RD |
5675 | return resultobj; |
5676 | fail: | |
5677 | return NULL; | |
5678 | } | |
5679 | ||
5680 | ||
c32bde28 | 5681 | static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5682 | PyObject *resultobj = NULL; |
d55e5bfc RD |
5683 | int *arg1 = (int *) 0 ; |
5684 | int *arg2 = (int *) 0 ; | |
5685 | int temp1 ; | |
c32bde28 | 5686 | int res1 = 0 ; |
d55e5bfc | 5687 | int temp2 ; |
c32bde28 | 5688 | int res2 = 0 ; |
d55e5bfc RD |
5689 | char *kwnames[] = { |
5690 | NULL | |
5691 | }; | |
5692 | ||
c32bde28 RD |
5693 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
5694 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; |
5696 | { | |
0439c23b | 5697 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5699 | wxDisplaySize(arg1,arg2); | |
5700 | ||
5701 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5702 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5703 | } |
5704 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5705 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
5706 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5707 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5708 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5709 | return resultobj; |
5710 | fail: | |
5711 | return NULL; | |
5712 | } | |
5713 | ||
5714 | ||
c32bde28 | 5715 | static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5716 | PyObject *resultobj = NULL; |
d55e5bfc RD |
5717 | wxSize result; |
5718 | char *kwnames[] = { | |
5719 | NULL | |
5720 | }; | |
5721 | ||
5722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
5723 | { | |
0439c23b | 5724 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5726 | result = wxGetDisplaySize(); | |
5727 | ||
5728 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5729 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5730 | } |
5731 | { | |
5732 | wxSize * resultptr; | |
7449af73 | 5733 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
d55e5bfc RD |
5734 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
5735 | } | |
5736 | return resultobj; | |
5737 | fail: | |
5738 | return NULL; | |
5739 | } | |
5740 | ||
5741 | ||
c32bde28 | 5742 | static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5743 | PyObject *resultobj = NULL; |
d55e5bfc RD |
5744 | int *arg1 = (int *) 0 ; |
5745 | int *arg2 = (int *) 0 ; | |
5746 | int temp1 ; | |
c32bde28 | 5747 | int res1 = 0 ; |
d55e5bfc | 5748 | int temp2 ; |
c32bde28 | 5749 | int res2 = 0 ; |
d55e5bfc RD |
5750 | char *kwnames[] = { |
5751 | NULL | |
5752 | }; | |
5753 | ||
c32bde28 RD |
5754 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
5755 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; |
5757 | { | |
0439c23b | 5758 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5760 | wxDisplaySizeMM(arg1,arg2); | |
5761 | ||
5762 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5763 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5764 | } |
5765 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5766 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
5767 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5768 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5769 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5770 | return resultobj; |
5771 | fail: | |
5772 | return NULL; | |
5773 | } | |
5774 | ||
5775 | ||
c32bde28 | 5776 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5777 | PyObject *resultobj = NULL; |
d55e5bfc RD |
5778 | wxSize result; |
5779 | char *kwnames[] = { | |
5780 | NULL | |
5781 | }; | |
5782 | ||
5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
5784 | { | |
0439c23b | 5785 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5787 | result = wxGetDisplaySizeMM(); | |
5788 | ||
5789 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5790 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5791 | } |
5792 | { | |
5793 | wxSize * resultptr; | |
7449af73 | 5794 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
d55e5bfc RD |
5795 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
5796 | } | |
5797 | return resultobj; | |
5798 | fail: | |
5799 | return NULL; | |
5800 | } | |
5801 | ||
5802 | ||
c32bde28 | 5803 | static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5804 | PyObject *resultobj = NULL; |
d55e5bfc RD |
5805 | int *arg1 = (int *) 0 ; |
5806 | int *arg2 = (int *) 0 ; | |
5807 | int *arg3 = (int *) 0 ; | |
5808 | int *arg4 = (int *) 0 ; | |
5809 | int temp1 ; | |
c32bde28 | 5810 | int res1 = 0 ; |
d55e5bfc | 5811 | int temp2 ; |
c32bde28 | 5812 | int res2 = 0 ; |
d55e5bfc | 5813 | int temp3 ; |
c32bde28 | 5814 | int res3 = 0 ; |
d55e5bfc | 5815 | int temp4 ; |
c32bde28 | 5816 | int res4 = 0 ; |
d55e5bfc RD |
5817 | char *kwnames[] = { |
5818 | NULL | |
5819 | }; | |
5820 | ||
c32bde28 RD |
5821 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
5822 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
5823 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
5824 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; |
5826 | { | |
0439c23b | 5827 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5829 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
5830 | ||
5831 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5832 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5833 | } |
5834 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5835 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
5836 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5837 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5838 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5839 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5840 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
5841 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
5842 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5843 | return resultobj; |
5844 | fail: | |
5845 | return NULL; | |
5846 | } | |
5847 | ||
5848 | ||
c32bde28 | 5849 | static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5850 | PyObject *resultobj = NULL; |
d55e5bfc RD |
5851 | wxRect result; |
5852 | char *kwnames[] = { | |
5853 | NULL | |
5854 | }; | |
5855 | ||
5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
5857 | { | |
0439c23b | 5858 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5860 | result = wxGetClientDisplayRect(); | |
5861 | ||
5862 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5863 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5864 | } |
5865 | { | |
5866 | wxRect * resultptr; | |
7449af73 | 5867 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
d55e5bfc RD |
5868 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
5869 | } | |
5870 | return resultobj; | |
5871 | fail: | |
5872 | return NULL; | |
5873 | } | |
5874 | ||
5875 | ||
c32bde28 | 5876 | static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 5877 | PyObject *resultobj = NULL; |
d55e5bfc RD |
5878 | wxCursor *arg1 = 0 ; |
5879 | PyObject * obj0 = 0 ; | |
5880 | char *kwnames[] = { | |
5881 | (char *) "cursor", NULL | |
5882 | }; | |
5883 | ||
5884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 | 5885 | { |
7449af73 RD |
5886 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); |
5887 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5888 | if (arg1 == NULL) { | |
5889 | SWIG_null_ref("wxCursor"); | |
5890 | } | |
5891 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5892 | } | |
5893 | { | |
5894 | if (!wxPyCheckForApp()) SWIG_fail; | |
5895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5896 | wxSetCursor(*arg1); | |
5897 | ||
5898 | wxPyEndAllowThreads(__tstate); | |
5899 | if (PyErr_Occurred()) SWIG_fail; | |
5900 | } | |
5901 | Py_INCREF(Py_None); resultobj = Py_None; | |
5902 | return resultobj; | |
5903 | fail: | |
5904 | return NULL; | |
5905 | } | |
5906 | ||
5907 | ||
5908 | static PyObject *_wrap_GetXDisplay(PyObject *, PyObject *args, PyObject *kwargs) { | |
5909 | PyObject *resultobj = NULL; | |
5910 | void *result; | |
5911 | char *kwnames[] = { | |
5912 | NULL | |
5913 | }; | |
5914 | ||
5915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetXDisplay",kwnames)) goto fail; | |
5916 | { | |
5917 | if (!wxPyCheckForApp()) SWIG_fail; | |
5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5919 | result = (void *)wxGetXDisplay(); | |
5920 | ||
5921 | wxPyEndAllowThreads(__tstate); | |
5922 | if (PyErr_Occurred()) SWIG_fail; | |
5923 | } | |
5924 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
5925 | return resultobj; | |
5926 | fail: | |
5927 | return NULL; | |
5928 | } | |
5929 | ||
5930 | ||
5931 | static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
5932 | PyObject *resultobj = NULL; | |
5933 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5934 | PyObject * obj0 = 0 ; | |
5935 | char *kwnames[] = { | |
5936 | (char *) "cursor", NULL | |
5937 | }; | |
5938 | ||
5939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
5940 | if (obj0) { | |
5941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
5942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5943 | } | |
5944 | { | |
5945 | if (!wxPyCheckForApp()) SWIG_fail; | |
5946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5947 | wxBeginBusyCursor(arg1); | |
5948 | ||
5949 | wxPyEndAllowThreads(__tstate); | |
5950 | if (PyErr_Occurred()) SWIG_fail; | |
5951 | } | |
5952 | Py_INCREF(Py_None); resultobj = Py_None; | |
5953 | return resultobj; | |
5954 | fail: | |
5955 | return NULL; | |
5956 | } | |
5957 | ||
5958 | ||
5959 | static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
5960 | PyObject *resultobj = NULL; | |
5961 | wxPoint result; | |
5962 | char *kwnames[] = { | |
5963 | NULL | |
5964 | }; | |
5965 | ||
5966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
5967 | { | |
5968 | if (!wxPyCheckForApp()) SWIG_fail; | |
5969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5970 | result = wxGetMousePosition(); | |
5971 | ||
5972 | wxPyEndAllowThreads(__tstate); | |
5973 | if (PyErr_Occurred()) SWIG_fail; | |
5974 | } | |
5975 | { | |
5976 | wxPoint * resultptr; | |
5977 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); | |
5978 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
5979 | } | |
5980 | return resultobj; | |
5981 | fail: | |
5982 | return NULL; | |
5983 | } | |
5984 | ||
5985 | ||
5986 | static PyObject *_wrap_FindWindowAtPointer(PyObject *, PyObject *args, PyObject *kwargs) { | |
5987 | PyObject *resultobj = NULL; | |
5988 | wxWindow *result; | |
5989 | char *kwnames[] = { | |
5990 | NULL | |
5991 | }; | |
5992 | ||
5993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FindWindowAtPointer",kwnames)) goto fail; | |
5994 | { | |
5995 | if (!wxPyCheckForApp()) SWIG_fail; | |
5996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5997 | result = (wxWindow *)FindWindowAtPointer(); | |
5998 | ||
5999 | wxPyEndAllowThreads(__tstate); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
6002 | { | |
6003 | resultobj = wxPyMake_wxObject(result, 0); | |
6004 | } | |
6005 | return resultobj; | |
6006 | fail: | |
6007 | return NULL; | |
6008 | } | |
6009 | ||
6010 | ||
6011 | static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
6012 | PyObject *resultobj = NULL; | |
6013 | wxWindow *result; | |
6014 | char *kwnames[] = { | |
6015 | NULL | |
6016 | }; | |
6017 | ||
6018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
6019 | { | |
6020 | if (!wxPyCheckForApp()) SWIG_fail; | |
6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6022 | result = (wxWindow *)wxGetActiveWindow(); | |
6023 | ||
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | { | |
6028 | resultobj = wxPyMake_wxObject(result, 0); | |
6029 | } | |
6030 | return resultobj; | |
6031 | fail: | |
6032 | return NULL; | |
6033 | } | |
6034 | ||
6035 | ||
6036 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
6037 | PyObject *resultobj = NULL; | |
6038 | wxPoint *arg1 = 0 ; | |
6039 | wxWindow *result; | |
6040 | wxPoint temp1 ; | |
6041 | PyObject * obj0 = 0 ; | |
6042 | char *kwnames[] = { | |
6043 | (char *) "pt", NULL | |
6044 | }; | |
6045 | ||
6046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
6047 | { | |
6048 | arg1 = &temp1; | |
6049 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
6050 | } | |
6051 | { | |
6052 | if (!wxPyCheckForApp()) SWIG_fail; | |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
6055 | ||
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
6059 | { | |
6060 | resultobj = wxPyMake_wxObject(result, 0); | |
6061 | } | |
6062 | return resultobj; | |
6063 | fail: | |
6064 | return NULL; | |
6065 | } | |
6066 | ||
6067 | ||
6068 | static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
6069 | PyObject *resultobj = NULL; | |
6070 | wxPoint *arg1 = 0 ; | |
6071 | wxWindow *result; | |
6072 | wxPoint temp1 ; | |
6073 | PyObject * obj0 = 0 ; | |
6074 | char *kwnames[] = { | |
6075 | (char *) "pt", NULL | |
6076 | }; | |
6077 | ||
6078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
6079 | { | |
6080 | arg1 = &temp1; | |
6081 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
6082 | } | |
6083 | { | |
6084 | if (!wxPyCheckForApp()) SWIG_fail; | |
6085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6086 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
6087 | ||
6088 | wxPyEndAllowThreads(__tstate); | |
6089 | if (PyErr_Occurred()) SWIG_fail; | |
6090 | } | |
6091 | { | |
6092 | resultobj = wxPyMake_wxObject(result, 0); | |
6093 | } | |
6094 | return resultobj; | |
6095 | fail: | |
6096 | return NULL; | |
6097 | } | |
6098 | ||
6099 | ||
6100 | static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) { | |
6101 | PyObject *resultobj = NULL; | |
6102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6103 | wxWindow *result; | |
6104 | PyObject * obj0 = 0 ; | |
6105 | char *kwnames[] = { | |
6106 | (char *) "win", NULL | |
6107 | }; | |
6108 | ||
6109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
6110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6112 | { | |
6113 | if (!wxPyCheckForApp()) SWIG_fail; | |
6114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6115 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
6116 | ||
6117 | wxPyEndAllowThreads(__tstate); | |
6118 | if (PyErr_Occurred()) SWIG_fail; | |
6119 | } | |
6120 | { | |
6121 | resultobj = wxPyMake_wxObject(result, 0); | |
6122 | } | |
6123 | return resultobj; | |
6124 | fail: | |
6125 | return NULL; | |
6126 | } | |
6127 | ||
6128 | ||
6129 | static PyObject *_wrap_LaunchDefaultBrowser(PyObject *, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject *resultobj = NULL; | |
6131 | wxString *arg1 = 0 ; | |
6132 | bool result; | |
6133 | bool temp1 = false ; | |
6134 | PyObject * obj0 = 0 ; | |
6135 | char *kwnames[] = { | |
6136 | (char *) "url", NULL | |
6137 | }; | |
6138 | ||
6139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LaunchDefaultBrowser",kwnames,&obj0)) goto fail; | |
6140 | { | |
6141 | arg1 = wxString_in_helper(obj0); | |
6142 | if (arg1 == NULL) SWIG_fail; | |
6143 | temp1 = true; | |
6144 | } | |
6145 | { | |
6146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6147 | result = (bool)wxLaunchDefaultBrowser((wxString const &)*arg1); | |
6148 | ||
6149 | wxPyEndAllowThreads(__tstate); | |
6150 | if (PyErr_Occurred()) SWIG_fail; | |
6151 | } | |
6152 | { | |
6153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6154 | } | |
6155 | { | |
6156 | if (temp1) | |
6157 | delete arg1; | |
6158 | } | |
6159 | return resultobj; | |
6160 | fail: | |
6161 | { | |
6162 | if (temp1) | |
6163 | delete arg1; | |
6164 | } | |
6165 | return NULL; | |
6166 | } | |
6167 | ||
6168 | ||
6169 | static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) { | |
6170 | PyObject *resultobj = NULL; | |
6171 | wxKeyCode arg1 ; | |
6172 | bool result; | |
6173 | PyObject * obj0 = 0 ; | |
6174 | char *kwnames[] = { | |
6175 | (char *) "key", NULL | |
6176 | }; | |
6177 | ||
6178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
6179 | { | |
6180 | arg1 = static_cast<wxKeyCode >(SWIG_As_int(obj0)); | |
6181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6182 | } | |
6183 | { | |
6184 | if (!wxPyCheckForApp()) SWIG_fail; | |
6185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6186 | result = (bool)wxGetKeyState(arg1); | |
6187 | ||
6188 | wxPyEndAllowThreads(__tstate); | |
6189 | if (PyErr_Occurred()) SWIG_fail; | |
6190 | } | |
6191 | { | |
6192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6193 | } | |
6194 | return resultobj; | |
6195 | fail: | |
6196 | return NULL; | |
6197 | } | |
6198 | ||
6199 | ||
6200 | static PyObject *_wrap_new_MouseState(PyObject *, PyObject *args, PyObject *kwargs) { | |
6201 | PyObject *resultobj = NULL; | |
6202 | wxMouseState *result; | |
6203 | char *kwnames[] = { | |
6204 | NULL | |
6205 | }; | |
6206 | ||
6207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MouseState",kwnames)) goto fail; | |
6208 | { | |
6209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6210 | result = (wxMouseState *)new wxMouseState(); | |
6211 | ||
6212 | wxPyEndAllowThreads(__tstate); | |
6213 | if (PyErr_Occurred()) SWIG_fail; | |
6214 | } | |
6215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseState, 1); | |
6216 | return resultobj; | |
6217 | fail: | |
6218 | return NULL; | |
6219 | } | |
6220 | ||
6221 | ||
6222 | static PyObject *_wrap_delete_MouseState(PyObject *, PyObject *args, PyObject *kwargs) { | |
6223 | PyObject *resultobj = NULL; | |
6224 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6225 | PyObject * obj0 = 0 ; | |
6226 | char *kwnames[] = { | |
6227 | (char *) "self", NULL | |
6228 | }; | |
6229 | ||
6230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MouseState",kwnames,&obj0)) goto fail; | |
6231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6233 | { | |
6234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6235 | delete arg1; | |
6236 | ||
6237 | wxPyEndAllowThreads(__tstate); | |
6238 | if (PyErr_Occurred()) SWIG_fail; | |
6239 | } | |
6240 | Py_INCREF(Py_None); resultobj = Py_None; | |
6241 | return resultobj; | |
6242 | fail: | |
6243 | return NULL; | |
6244 | } | |
6245 | ||
6246 | ||
6247 | static PyObject *_wrap_MouseState_GetX(PyObject *, PyObject *args, PyObject *kwargs) { | |
6248 | PyObject *resultobj = NULL; | |
6249 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6250 | int result; | |
6251 | PyObject * obj0 = 0 ; | |
6252 | char *kwnames[] = { | |
6253 | (char *) "self", NULL | |
6254 | }; | |
6255 | ||
6256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_GetX",kwnames,&obj0)) goto fail; | |
6257 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6258 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6259 | { | |
6260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6261 | result = (int)(arg1)->GetX(); | |
6262 | ||
6263 | wxPyEndAllowThreads(__tstate); | |
6264 | if (PyErr_Occurred()) SWIG_fail; | |
6265 | } | |
6266 | { | |
6267 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
6268 | } | |
6269 | return resultobj; | |
6270 | fail: | |
6271 | return NULL; | |
6272 | } | |
6273 | ||
6274 | ||
6275 | static PyObject *_wrap_MouseState_GetY(PyObject *, PyObject *args, PyObject *kwargs) { | |
6276 | PyObject *resultobj = NULL; | |
6277 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6278 | int result; | |
6279 | PyObject * obj0 = 0 ; | |
6280 | char *kwnames[] = { | |
6281 | (char *) "self", NULL | |
6282 | }; | |
6283 | ||
6284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_GetY",kwnames,&obj0)) goto fail; | |
6285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6287 | { | |
6288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6289 | result = (int)(arg1)->GetY(); | |
6290 | ||
6291 | wxPyEndAllowThreads(__tstate); | |
6292 | if (PyErr_Occurred()) SWIG_fail; | |
6293 | } | |
6294 | { | |
6295 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
6296 | } | |
6297 | return resultobj; | |
6298 | fail: | |
6299 | return NULL; | |
6300 | } | |
6301 | ||
6302 | ||
6303 | static PyObject *_wrap_MouseState_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6304 | PyObject *resultobj = NULL; | |
6305 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6306 | bool result; | |
6307 | PyObject * obj0 = 0 ; | |
6308 | char *kwnames[] = { | |
6309 | (char *) "self", NULL | |
6310 | }; | |
6311 | ||
6312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_LeftDown",kwnames,&obj0)) goto fail; | |
6313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6315 | { | |
6316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6317 | result = (bool)(arg1)->LeftDown(); | |
6318 | ||
6319 | wxPyEndAllowThreads(__tstate); | |
6320 | if (PyErr_Occurred()) SWIG_fail; | |
6321 | } | |
6322 | { | |
6323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6324 | } | |
6325 | return resultobj; | |
6326 | fail: | |
6327 | return NULL; | |
6328 | } | |
6329 | ||
6330 | ||
6331 | static PyObject *_wrap_MouseState_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6332 | PyObject *resultobj = NULL; | |
6333 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6334 | bool result; | |
6335 | PyObject * obj0 = 0 ; | |
6336 | char *kwnames[] = { | |
6337 | (char *) "self", NULL | |
6338 | }; | |
6339 | ||
6340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_MiddleDown",kwnames,&obj0)) goto fail; | |
6341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6343 | { | |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | result = (bool)(arg1)->MiddleDown(); | |
6346 | ||
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
6350 | { | |
6351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6352 | } | |
6353 | return resultobj; | |
6354 | fail: | |
6355 | return NULL; | |
6356 | } | |
6357 | ||
6358 | ||
6359 | static PyObject *_wrap_MouseState_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6360 | PyObject *resultobj = NULL; | |
6361 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6362 | bool result; | |
6363 | PyObject * obj0 = 0 ; | |
6364 | char *kwnames[] = { | |
6365 | (char *) "self", NULL | |
6366 | }; | |
6367 | ||
6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_RightDown",kwnames,&obj0)) goto fail; | |
6369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6371 | { | |
6372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6373 | result = (bool)(arg1)->RightDown(); | |
6374 | ||
6375 | wxPyEndAllowThreads(__tstate); | |
6376 | if (PyErr_Occurred()) SWIG_fail; | |
6377 | } | |
6378 | { | |
6379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6380 | } | |
6381 | return resultobj; | |
6382 | fail: | |
6383 | return NULL; | |
6384 | } | |
6385 | ||
6386 | ||
6387 | static PyObject *_wrap_MouseState_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6388 | PyObject *resultobj = NULL; | |
6389 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6390 | bool result; | |
6391 | PyObject * obj0 = 0 ; | |
6392 | char *kwnames[] = { | |
6393 | (char *) "self", NULL | |
6394 | }; | |
6395 | ||
6396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_ControlDown",kwnames,&obj0)) goto fail; | |
6397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6399 | { | |
6400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6401 | result = (bool)(arg1)->ControlDown(); | |
6402 | ||
6403 | wxPyEndAllowThreads(__tstate); | |
6404 | if (PyErr_Occurred()) SWIG_fail; | |
6405 | } | |
6406 | { | |
6407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6408 | } | |
6409 | return resultobj; | |
6410 | fail: | |
6411 | return NULL; | |
6412 | } | |
6413 | ||
6414 | ||
6415 | static PyObject *_wrap_MouseState_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6416 | PyObject *resultobj = NULL; | |
6417 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6418 | bool result; | |
6419 | PyObject * obj0 = 0 ; | |
6420 | char *kwnames[] = { | |
6421 | (char *) "self", NULL | |
6422 | }; | |
6423 | ||
6424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_ShiftDown",kwnames,&obj0)) goto fail; | |
6425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6427 | { | |
6428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6429 | result = (bool)(arg1)->ShiftDown(); | |
6430 | ||
6431 | wxPyEndAllowThreads(__tstate); | |
6432 | if (PyErr_Occurred()) SWIG_fail; | |
6433 | } | |
6434 | { | |
6435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6436 | } | |
6437 | return resultobj; | |
6438 | fail: | |
6439 | return NULL; | |
6440 | } | |
6441 | ||
6442 | ||
6443 | static PyObject *_wrap_MouseState_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6444 | PyObject *resultobj = NULL; | |
6445 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6446 | bool result; | |
6447 | PyObject * obj0 = 0 ; | |
6448 | char *kwnames[] = { | |
6449 | (char *) "self", NULL | |
6450 | }; | |
6451 | ||
6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_AltDown",kwnames,&obj0)) goto fail; | |
6453 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6454 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6455 | { | |
6456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6457 | result = (bool)(arg1)->AltDown(); | |
6458 | ||
6459 | wxPyEndAllowThreads(__tstate); | |
6460 | if (PyErr_Occurred()) SWIG_fail; | |
6461 | } | |
6462 | { | |
6463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6464 | } | |
6465 | return resultobj; | |
6466 | fail: | |
6467 | return NULL; | |
6468 | } | |
6469 | ||
6470 | ||
6471 | static PyObject *_wrap_MouseState_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6472 | PyObject *resultobj = NULL; | |
6473 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6474 | bool result; | |
6475 | PyObject * obj0 = 0 ; | |
6476 | char *kwnames[] = { | |
6477 | (char *) "self", NULL | |
6478 | }; | |
6479 | ||
6480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_MetaDown",kwnames,&obj0)) goto fail; | |
6481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6483 | { | |
6484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6485 | result = (bool)(arg1)->MetaDown(); | |
6486 | ||
6487 | wxPyEndAllowThreads(__tstate); | |
6488 | if (PyErr_Occurred()) SWIG_fail; | |
6489 | } | |
6490 | { | |
6491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6492 | } | |
6493 | return resultobj; | |
6494 | fail: | |
6495 | return NULL; | |
6496 | } | |
6497 | ||
6498 | ||
6499 | static PyObject *_wrap_MouseState_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6500 | PyObject *resultobj = NULL; | |
6501 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6502 | bool result; | |
6503 | PyObject * obj0 = 0 ; | |
6504 | char *kwnames[] = { | |
6505 | (char *) "self", NULL | |
6506 | }; | |
6507 | ||
6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_CmdDown",kwnames,&obj0)) goto fail; | |
6509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6511 | { | |
6512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6513 | result = (bool)(arg1)->CmdDown(); | |
6514 | ||
6515 | wxPyEndAllowThreads(__tstate); | |
6516 | if (PyErr_Occurred()) SWIG_fail; | |
6517 | } | |
6518 | { | |
6519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6520 | } | |
6521 | return resultobj; | |
6522 | fail: | |
6523 | return NULL; | |
6524 | } | |
6525 | ||
6526 | ||
6527 | static PyObject *_wrap_MouseState_SetX(PyObject *, PyObject *args, PyObject *kwargs) { | |
6528 | PyObject *resultobj = NULL; | |
6529 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6530 | int arg2 ; | |
6531 | PyObject * obj0 = 0 ; | |
6532 | PyObject * obj1 = 0 ; | |
6533 | char *kwnames[] = { | |
6534 | (char *) "self",(char *) "x", NULL | |
6535 | }; | |
6536 | ||
6537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetX",kwnames,&obj0,&obj1)) goto fail; | |
6538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6540 | { | |
6541 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
6542 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6543 | } | |
6544 | { | |
6545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6546 | (arg1)->SetX(arg2); | |
6547 | ||
6548 | wxPyEndAllowThreads(__tstate); | |
6549 | if (PyErr_Occurred()) SWIG_fail; | |
6550 | } | |
6551 | Py_INCREF(Py_None); resultobj = Py_None; | |
6552 | return resultobj; | |
6553 | fail: | |
6554 | return NULL; | |
6555 | } | |
6556 | ||
6557 | ||
6558 | static PyObject *_wrap_MouseState_SetY(PyObject *, PyObject *args, PyObject *kwargs) { | |
6559 | PyObject *resultobj = NULL; | |
6560 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6561 | int arg2 ; | |
6562 | PyObject * obj0 = 0 ; | |
6563 | PyObject * obj1 = 0 ; | |
6564 | char *kwnames[] = { | |
6565 | (char *) "self",(char *) "y", NULL | |
6566 | }; | |
6567 | ||
6568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetY",kwnames,&obj0,&obj1)) goto fail; | |
6569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6571 | { | |
6572 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
6573 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
6574 | } |
6575 | { | |
6576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 6577 | (arg1)->SetY(arg2); |
d55e5bfc RD |
6578 | |
6579 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6580 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6581 | } |
6582 | Py_INCREF(Py_None); resultobj = Py_None; | |
6583 | return resultobj; | |
6584 | fail: | |
6585 | return NULL; | |
6586 | } | |
6587 | ||
6588 | ||
7449af73 RD |
6589 | static PyObject *_wrap_MouseState_SetLeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
6590 | PyObject *resultobj = NULL; | |
6591 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6592 | bool arg2 ; | |
6593 | PyObject * obj0 = 0 ; | |
6594 | PyObject * obj1 = 0 ; | |
a97cefba | 6595 | char *kwnames[] = { |
7449af73 | 6596 | (char *) "self",(char *) "down", NULL |
a97cefba RD |
6597 | }; |
6598 | ||
7449af73 RD |
6599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetLeftDown",kwnames,&obj0,&obj1)) goto fail; |
6600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6602 | { | |
6603 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); | |
6604 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6605 | } | |
a97cefba | 6606 | { |
a97cefba | 6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7449af73 | 6608 | (arg1)->SetLeftDown(arg2); |
a97cefba RD |
6609 | |
6610 | wxPyEndAllowThreads(__tstate); | |
6611 | if (PyErr_Occurred()) SWIG_fail; | |
6612 | } | |
7449af73 | 6613 | Py_INCREF(Py_None); resultobj = Py_None; |
a97cefba RD |
6614 | return resultobj; |
6615 | fail: | |
6616 | return NULL; | |
6617 | } | |
6618 | ||
6619 | ||
7449af73 RD |
6620 | static PyObject *_wrap_MouseState_SetMiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
6621 | PyObject *resultobj = NULL; | |
6622 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6623 | bool arg2 ; | |
d55e5bfc | 6624 | PyObject * obj0 = 0 ; |
7449af73 | 6625 | PyObject * obj1 = 0 ; |
d55e5bfc | 6626 | char *kwnames[] = { |
7449af73 | 6627 | (char *) "self",(char *) "down", NULL |
d55e5bfc RD |
6628 | }; |
6629 | ||
7449af73 RD |
6630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMiddleDown",kwnames,&obj0,&obj1)) goto fail; |
6631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6633 | { | |
6634 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); | |
6635 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
6636 | } |
6637 | { | |
6638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 6639 | (arg1)->SetMiddleDown(arg2); |
d55e5bfc RD |
6640 | |
6641 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6642 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6643 | } |
6644 | Py_INCREF(Py_None); resultobj = Py_None; | |
6645 | return resultobj; | |
6646 | fail: | |
6647 | return NULL; | |
6648 | } | |
6649 | ||
6650 | ||
7449af73 RD |
6651 | static PyObject *_wrap_MouseState_SetRightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
6652 | PyObject *resultobj = NULL; | |
6653 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6654 | bool arg2 ; | |
6655 | PyObject * obj0 = 0 ; | |
6656 | PyObject * obj1 = 0 ; | |
d55e5bfc | 6657 | char *kwnames[] = { |
7449af73 | 6658 | (char *) "self",(char *) "down", NULL |
d55e5bfc RD |
6659 | }; |
6660 | ||
7449af73 RD |
6661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetRightDown",kwnames,&obj0,&obj1)) goto fail; |
6662 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6664 | { | |
6665 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); | |
6666 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6667 | } | |
d55e5bfc RD |
6668 | { |
6669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 6670 | (arg1)->SetRightDown(arg2); |
d55e5bfc RD |
6671 | |
6672 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6673 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 6674 | } |
7449af73 | 6675 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
6676 | return resultobj; |
6677 | fail: | |
6678 | return NULL; | |
6679 | } | |
6680 | ||
6681 | ||
7449af73 RD |
6682 | static PyObject *_wrap_MouseState_SetControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
6683 | PyObject *resultobj = NULL; | |
6684 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6685 | bool arg2 ; | |
d55e5bfc | 6686 | PyObject * obj0 = 0 ; |
7449af73 | 6687 | PyObject * obj1 = 0 ; |
d55e5bfc | 6688 | char *kwnames[] = { |
7449af73 | 6689 | (char *) "self",(char *) "down", NULL |
d55e5bfc RD |
6690 | }; |
6691 | ||
7449af73 RD |
6692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetControlDown",kwnames,&obj0,&obj1)) goto fail; |
6693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 6695 | { |
7449af73 RD |
6696 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6697 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
6698 | } |
6699 | { | |
6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 6701 | (arg1)->SetControlDown(arg2); |
d55e5bfc RD |
6702 | |
6703 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6704 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 6705 | } |
7449af73 | 6706 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
6707 | return resultobj; |
6708 | fail: | |
6709 | return NULL; | |
6710 | } | |
6711 | ||
6712 | ||
7449af73 RD |
6713 | static PyObject *_wrap_MouseState_SetShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
6714 | PyObject *resultobj = NULL; | |
6715 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6716 | bool arg2 ; | |
d55e5bfc | 6717 | PyObject * obj0 = 0 ; |
7449af73 | 6718 | PyObject * obj1 = 0 ; |
d55e5bfc | 6719 | char *kwnames[] = { |
7449af73 | 6720 | (char *) "self",(char *) "down", NULL |
d55e5bfc RD |
6721 | }; |
6722 | ||
7449af73 RD |
6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetShiftDown",kwnames,&obj0,&obj1)) goto fail; |
6724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 6726 | { |
7449af73 RD |
6727 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6728 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
6729 | } |
6730 | { | |
6731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 6732 | (arg1)->SetShiftDown(arg2); |
d55e5bfc RD |
6733 | |
6734 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6735 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 6736 | } |
7449af73 | 6737 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
6738 | return resultobj; |
6739 | fail: | |
6740 | return NULL; | |
6741 | } | |
6742 | ||
6743 | ||
7449af73 RD |
6744 | static PyObject *_wrap_MouseState_SetAltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
6745 | PyObject *resultobj = NULL; | |
6746 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6747 | bool arg2 ; | |
d55e5bfc | 6748 | PyObject * obj0 = 0 ; |
7449af73 | 6749 | PyObject * obj1 = 0 ; |
d55e5bfc | 6750 | char *kwnames[] = { |
7449af73 | 6751 | (char *) "self",(char *) "down", NULL |
d55e5bfc RD |
6752 | }; |
6753 | ||
7449af73 RD |
6754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetAltDown",kwnames,&obj0,&obj1)) goto fail; |
6755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
093d3ff1 | 6756 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc | 6757 | { |
7449af73 RD |
6758 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6759 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6760 | } | |
6761 | { | |
d55e5bfc | 6762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7449af73 | 6763 | (arg1)->SetAltDown(arg2); |
d55e5bfc RD |
6764 | |
6765 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6766 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 6767 | } |
7449af73 | 6768 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
6769 | return resultobj; |
6770 | fail: | |
6771 | return NULL; | |
6772 | } | |
6773 | ||
6774 | ||
7449af73 RD |
6775 | static PyObject *_wrap_MouseState_SetMetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
6776 | PyObject *resultobj = NULL; | |
6777 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6778 | bool arg2 ; | |
d04418a7 | 6779 | PyObject * obj0 = 0 ; |
7449af73 | 6780 | PyObject * obj1 = 0 ; |
d04418a7 | 6781 | char *kwnames[] = { |
7449af73 | 6782 | (char *) "self",(char *) "down", NULL |
d04418a7 RD |
6783 | }; |
6784 | ||
7449af73 RD |
6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMetaDown",kwnames,&obj0,&obj1)) goto fail; |
6786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d04418a7 | 6788 | { |
7449af73 RD |
6789 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6790 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d04418a7 RD |
6791 | } |
6792 | { | |
6793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 6794 | (arg1)->SetMetaDown(arg2); |
d04418a7 RD |
6795 | |
6796 | wxPyEndAllowThreads(__tstate); | |
6797 | if (PyErr_Occurred()) SWIG_fail; | |
6798 | } | |
7449af73 | 6799 | Py_INCREF(Py_None); resultobj = Py_None; |
d04418a7 RD |
6800 | return resultobj; |
6801 | fail: | |
d04418a7 RD |
6802 | return NULL; |
6803 | } | |
6804 | ||
6805 | ||
7449af73 RD |
6806 | static PyObject * MouseState_swigregister(PyObject *, PyObject *args) { |
6807 | PyObject *obj; | |
6808 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6809 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseState, obj); | |
6810 | Py_INCREF(obj); | |
6811 | return Py_BuildValue((char *)""); | |
6812 | } | |
6813 | static PyObject *_wrap_GetMouseState(PyObject *, PyObject *args, PyObject *kwargs) { | |
6814 | PyObject *resultobj = NULL; | |
6815 | wxMouseState result; | |
d55e5bfc | 6816 | char *kwnames[] = { |
7449af73 | 6817 | NULL |
d55e5bfc RD |
6818 | }; |
6819 | ||
7449af73 | 6820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMouseState",kwnames)) goto fail; |
d55e5bfc RD |
6821 | { |
6822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 6823 | result = wxGetMouseState(); |
d55e5bfc RD |
6824 | |
6825 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6826 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6827 | } |
6828 | { | |
7449af73 RD |
6829 | wxMouseState * resultptr; |
6830 | resultptr = new wxMouseState(static_cast<wxMouseState & >(result)); | |
6831 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMouseState, 1); | |
d55e5bfc RD |
6832 | } |
6833 | return resultobj; | |
6834 | fail: | |
6835 | return NULL; | |
6836 | } | |
6837 | ||
6838 | ||
c32bde28 | 6839 | static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 6840 | PyObject *resultobj = NULL; |
d55e5bfc RD |
6841 | char *kwnames[] = { |
6842 | NULL | |
6843 | }; | |
6844 | ||
6845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
6846 | { | |
0439c23b | 6847 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6849 | wxWakeUpMainThread(); | |
6850 | ||
6851 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6852 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6853 | } |
6854 | Py_INCREF(Py_None); resultobj = Py_None; | |
6855 | return resultobj; | |
6856 | fail: | |
6857 | return NULL; | |
6858 | } | |
6859 | ||
6860 | ||
c32bde28 | 6861 | static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 6862 | PyObject *resultobj = NULL; |
d55e5bfc RD |
6863 | char *kwnames[] = { |
6864 | NULL | |
6865 | }; | |
6866 | ||
6867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
6868 | { | |
0439c23b | 6869 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6871 | wxMutexGuiEnter(); | |
6872 | ||
6873 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6874 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6875 | } |
6876 | Py_INCREF(Py_None); resultobj = Py_None; | |
6877 | return resultobj; | |
6878 | fail: | |
6879 | return NULL; | |
6880 | } | |
6881 | ||
6882 | ||
c32bde28 | 6883 | static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 6884 | PyObject *resultobj = NULL; |
d55e5bfc RD |
6885 | char *kwnames[] = { |
6886 | NULL | |
6887 | }; | |
6888 | ||
6889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
6890 | { | |
0439c23b | 6891 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6893 | wxMutexGuiLeave(); | |
6894 | ||
6895 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6896 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6897 | } |
6898 | Py_INCREF(Py_None); resultobj = Py_None; | |
6899 | return resultobj; | |
6900 | fail: | |
6901 | return NULL; | |
6902 | } | |
6903 | ||
6904 | ||
c32bde28 | 6905 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 6906 | PyObject *resultobj = NULL; |
d55e5bfc RD |
6907 | wxMutexGuiLocker *result; |
6908 | char *kwnames[] = { | |
6909 | NULL | |
6910 | }; | |
6911 | ||
6912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
6913 | { | |
0439c23b | 6914 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6916 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
6917 | ||
6918 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6919 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6920 | } |
6921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
6922 | return resultobj; | |
6923 | fail: | |
6924 | return NULL; | |
6925 | } | |
6926 | ||
6927 | ||
c32bde28 | 6928 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 6929 | PyObject *resultobj = NULL; |
d55e5bfc RD |
6930 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; |
6931 | PyObject * obj0 = 0 ; | |
6932 | char *kwnames[] = { | |
6933 | (char *) "self", NULL | |
6934 | }; | |
6935 | ||
6936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMutexGuiLocker, SWIG_POINTER_EXCEPTION | 0); |
6938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6939 | { |
6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6941 | delete arg1; | |
6942 | ||
6943 | wxPyEndAllowThreads(__tstate); | |
6944 | if (PyErr_Occurred()) SWIG_fail; | |
6945 | } | |
6946 | Py_INCREF(Py_None); resultobj = Py_None; | |
6947 | return resultobj; | |
6948 | fail: | |
6949 | return NULL; | |
6950 | } | |
6951 | ||
6952 | ||
c32bde28 | 6953 | static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6954 | PyObject *obj; |
6955 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6956 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
6957 | Py_INCREF(obj); | |
6958 | return Py_BuildValue((char *)""); | |
6959 | } | |
c32bde28 | 6960 | static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 6961 | PyObject *resultobj = NULL; |
d55e5bfc RD |
6962 | bool result; |
6963 | char *kwnames[] = { | |
6964 | NULL | |
6965 | }; | |
6966 | ||
6967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
6968 | { | |
6969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6970 | result = (bool)wxThread_IsMain(); | |
6971 | ||
6972 | wxPyEndAllowThreads(__tstate); | |
6973 | if (PyErr_Occurred()) SWIG_fail; | |
6974 | } | |
6975 | { | |
6976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6977 | } | |
6978 | return resultobj; | |
6979 | fail: | |
6980 | return NULL; | |
6981 | } | |
6982 | ||
6983 | ||
c32bde28 | 6984 | static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 6985 | PyObject *resultobj = NULL; |
d55e5bfc RD |
6986 | wxString *arg1 = 0 ; |
6987 | wxToolTip *result; | |
ae8162c8 | 6988 | bool temp1 = false ; |
d55e5bfc RD |
6989 | PyObject * obj0 = 0 ; |
6990 | char *kwnames[] = { | |
6991 | (char *) "tip", NULL | |
6992 | }; | |
6993 | ||
6994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
6995 | { | |
6996 | arg1 = wxString_in_helper(obj0); | |
6997 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 6998 | temp1 = true; |
d55e5bfc RD |
6999 | } |
7000 | { | |
0439c23b | 7001 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7003 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
7004 | ||
7005 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7006 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7007 | } |
7008 | { | |
412d302d | 7009 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7010 | } |
7011 | { | |
7012 | if (temp1) | |
7013 | delete arg1; | |
7014 | } | |
7015 | return resultobj; | |
7016 | fail: | |
7017 | { | |
7018 | if (temp1) | |
7019 | delete arg1; | |
7020 | } | |
7021 | return NULL; | |
7022 | } | |
7023 | ||
7024 | ||
c32bde28 | 7025 | static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7026 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7027 | wxToolTip *arg1 = (wxToolTip *) 0 ; |
7028 | wxString *arg2 = 0 ; | |
ae8162c8 | 7029 | bool temp2 = false ; |
d55e5bfc RD |
7030 | PyObject * obj0 = 0 ; |
7031 | PyObject * obj1 = 0 ; | |
7032 | char *kwnames[] = { | |
7033 | (char *) "self",(char *) "tip", NULL | |
7034 | }; | |
7035 | ||
7036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7037 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
7038 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7039 | { |
7040 | arg2 = wxString_in_helper(obj1); | |
7041 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7042 | temp2 = true; |
d55e5bfc RD |
7043 | } |
7044 | { | |
7045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7046 | (arg1)->SetTip((wxString const &)*arg2); | |
7047 | ||
7048 | wxPyEndAllowThreads(__tstate); | |
7049 | if (PyErr_Occurred()) SWIG_fail; | |
7050 | } | |
7051 | Py_INCREF(Py_None); resultobj = Py_None; | |
7052 | { | |
7053 | if (temp2) | |
7054 | delete arg2; | |
7055 | } | |
7056 | return resultobj; | |
7057 | fail: | |
7058 | { | |
7059 | if (temp2) | |
7060 | delete arg2; | |
7061 | } | |
7062 | return NULL; | |
7063 | } | |
7064 | ||
7065 | ||
c32bde28 | 7066 | static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7067 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7068 | wxToolTip *arg1 = (wxToolTip *) 0 ; |
7069 | wxString result; | |
7070 | PyObject * obj0 = 0 ; | |
7071 | char *kwnames[] = { | |
7072 | (char *) "self", NULL | |
7073 | }; | |
7074 | ||
7075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
7077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7078 | { |
7079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7080 | result = (arg1)->GetTip(); | |
7081 | ||
7082 | wxPyEndAllowThreads(__tstate); | |
7083 | if (PyErr_Occurred()) SWIG_fail; | |
7084 | } | |
7085 | { | |
7086 | #if wxUSE_UNICODE | |
7087 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7088 | #else | |
7089 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7090 | #endif | |
7091 | } | |
7092 | return resultobj; | |
7093 | fail: | |
7094 | return NULL; | |
7095 | } | |
7096 | ||
7097 | ||
c32bde28 | 7098 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7099 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7100 | wxToolTip *arg1 = (wxToolTip *) 0 ; |
7101 | wxWindow *result; | |
7102 | PyObject * obj0 = 0 ; | |
7103 | char *kwnames[] = { | |
7104 | (char *) "self", NULL | |
7105 | }; | |
7106 | ||
7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
7109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7110 | { |
7111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7112 | result = (wxWindow *)(arg1)->GetWindow(); | |
7113 | ||
7114 | wxPyEndAllowThreads(__tstate); | |
7115 | if (PyErr_Occurred()) SWIG_fail; | |
7116 | } | |
7117 | { | |
412d302d | 7118 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
7119 | } |
7120 | return resultobj; | |
7121 | fail: | |
7122 | return NULL; | |
7123 | } | |
7124 | ||
7125 | ||
c32bde28 | 7126 | static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7127 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7128 | bool arg1 ; |
7129 | PyObject * obj0 = 0 ; | |
7130 | char *kwnames[] = { | |
7131 | (char *) "flag", NULL | |
7132 | }; | |
7133 | ||
7134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
093d3ff1 | 7135 | { |
7449af73 | 7136 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 RD |
7137 | if (SWIG_arg_fail(1)) SWIG_fail; |
7138 | } | |
d55e5bfc RD |
7139 | { |
7140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7141 | wxToolTip::Enable(arg1); | |
7142 | ||
7143 | wxPyEndAllowThreads(__tstate); | |
7144 | if (PyErr_Occurred()) SWIG_fail; | |
7145 | } | |
7146 | Py_INCREF(Py_None); resultobj = Py_None; | |
7147 | return resultobj; | |
7148 | fail: | |
7149 | return NULL; | |
7150 | } | |
7151 | ||
7152 | ||
c32bde28 | 7153 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7154 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7155 | long arg1 ; |
7156 | PyObject * obj0 = 0 ; | |
7157 | char *kwnames[] = { | |
7158 | (char *) "milliseconds", NULL | |
7159 | }; | |
7160 | ||
7161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
093d3ff1 | 7162 | { |
7449af73 | 7163 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
7164 | if (SWIG_arg_fail(1)) SWIG_fail; |
7165 | } | |
d55e5bfc RD |
7166 | { |
7167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7168 | wxToolTip::SetDelay(arg1); | |
7169 | ||
7170 | wxPyEndAllowThreads(__tstate); | |
7171 | if (PyErr_Occurred()) SWIG_fail; | |
7172 | } | |
7173 | Py_INCREF(Py_None); resultobj = Py_None; | |
7174 | return resultobj; | |
7175 | fail: | |
7176 | return NULL; | |
7177 | } | |
7178 | ||
7179 | ||
c32bde28 | 7180 | static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7181 | PyObject *obj; |
7182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7183 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
7184 | Py_INCREF(obj); | |
7185 | return Py_BuildValue((char *)""); | |
7186 | } | |
c32bde28 | 7187 | static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7188 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7189 | wxWindow *arg1 = (wxWindow *) 0 ; |
7190 | wxSize *arg2 = 0 ; | |
7191 | wxCaret *result; | |
7192 | wxSize temp2 ; | |
7193 | PyObject * obj0 = 0 ; | |
7194 | PyObject * obj1 = 0 ; | |
7195 | char *kwnames[] = { | |
7196 | (char *) "window",(char *) "size", NULL | |
7197 | }; | |
7198 | ||
7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7202 | { |
7203 | arg2 = &temp2; | |
7204 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7205 | } | |
7206 | { | |
0439c23b | 7207 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7209 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
7210 | ||
7211 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7212 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7213 | } |
7214 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
7215 | return resultobj; | |
7216 | fail: | |
7217 | return NULL; | |
7218 | } | |
7219 | ||
7220 | ||
091fdbfa | 7221 | static PyObject *_wrap_Caret_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7222 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7223 | wxCaret *arg1 = (wxCaret *) 0 ; |
7224 | PyObject * obj0 = 0 ; | |
7225 | char *kwnames[] = { | |
7226 | (char *) "self", NULL | |
7227 | }; | |
7228 | ||
091fdbfa | 7229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Destroy",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
7230 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7231 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7232 | { |
7233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
091fdbfa | 7234 | wxCaret_Destroy(arg1); |
d55e5bfc RD |
7235 | |
7236 | wxPyEndAllowThreads(__tstate); | |
7237 | if (PyErr_Occurred()) SWIG_fail; | |
7238 | } | |
7239 | Py_INCREF(Py_None); resultobj = Py_None; | |
7240 | return resultobj; | |
7241 | fail: | |
7242 | return NULL; | |
7243 | } | |
7244 | ||
7245 | ||
c32bde28 | 7246 | static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7247 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7248 | wxCaret *arg1 = (wxCaret *) 0 ; |
7249 | bool result; | |
7250 | PyObject * obj0 = 0 ; | |
7251 | char *kwnames[] = { | |
7252 | (char *) "self", NULL | |
7253 | }; | |
7254 | ||
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7256 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7257 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7258 | { |
7259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7260 | result = (bool)(arg1)->IsOk(); | |
7261 | ||
7262 | wxPyEndAllowThreads(__tstate); | |
7263 | if (PyErr_Occurred()) SWIG_fail; | |
7264 | } | |
7265 | { | |
7266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7267 | } | |
7268 | return resultobj; | |
7269 | fail: | |
7270 | return NULL; | |
7271 | } | |
7272 | ||
7273 | ||
c32bde28 | 7274 | static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7275 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7276 | wxCaret *arg1 = (wxCaret *) 0 ; |
7277 | bool result; | |
7278 | PyObject * obj0 = 0 ; | |
7279 | char *kwnames[] = { | |
7280 | (char *) "self", NULL | |
7281 | }; | |
7282 | ||
7283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7286 | { |
7287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7288 | result = (bool)(arg1)->IsVisible(); | |
7289 | ||
7290 | wxPyEndAllowThreads(__tstate); | |
7291 | if (PyErr_Occurred()) SWIG_fail; | |
7292 | } | |
7293 | { | |
7294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7295 | } | |
7296 | return resultobj; | |
7297 | fail: | |
7298 | return NULL; | |
7299 | } | |
7300 | ||
7301 | ||
c32bde28 | 7302 | static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7303 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7304 | wxCaret *arg1 = (wxCaret *) 0 ; |
7305 | wxPoint result; | |
7306 | PyObject * obj0 = 0 ; | |
7307 | char *kwnames[] = { | |
7308 | (char *) "self", NULL | |
7309 | }; | |
7310 | ||
7311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7314 | { |
7315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7316 | result = (arg1)->GetPosition(); | |
7317 | ||
7318 | wxPyEndAllowThreads(__tstate); | |
7319 | if (PyErr_Occurred()) SWIG_fail; | |
7320 | } | |
7321 | { | |
7322 | wxPoint * resultptr; | |
7449af73 | 7323 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
d55e5bfc RD |
7324 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
7325 | } | |
7326 | return resultobj; | |
7327 | fail: | |
7328 | return NULL; | |
7329 | } | |
7330 | ||
7331 | ||
c32bde28 | 7332 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7333 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7334 | wxCaret *arg1 = (wxCaret *) 0 ; |
7335 | int *arg2 = (int *) 0 ; | |
7336 | int *arg3 = (int *) 0 ; | |
7337 | int temp2 ; | |
c32bde28 | 7338 | int res2 = 0 ; |
d55e5bfc | 7339 | int temp3 ; |
c32bde28 | 7340 | int res3 = 0 ; |
d55e5bfc RD |
7341 | PyObject * obj0 = 0 ; |
7342 | char *kwnames[] = { | |
7343 | (char *) "self", NULL | |
7344 | }; | |
7345 | ||
c32bde28 RD |
7346 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
7347 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 7348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
7349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7351 | { |
7352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7353 | (arg1)->GetPosition(arg2,arg3); | |
7354 | ||
7355 | wxPyEndAllowThreads(__tstate); | |
7356 | if (PyErr_Occurred()) SWIG_fail; | |
7357 | } | |
7358 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
7359 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
7360 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
7361 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
7362 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
7363 | return resultobj; |
7364 | fail: | |
7365 | return NULL; | |
7366 | } | |
7367 | ||
7368 | ||
c32bde28 | 7369 | static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7370 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7371 | wxCaret *arg1 = (wxCaret *) 0 ; |
7372 | wxSize result; | |
7373 | PyObject * obj0 = 0 ; | |
7374 | char *kwnames[] = { | |
7375 | (char *) "self", NULL | |
7376 | }; | |
7377 | ||
7378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7379 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7380 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7381 | { |
7382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7383 | result = (arg1)->GetSize(); | |
7384 | ||
7385 | wxPyEndAllowThreads(__tstate); | |
7386 | if (PyErr_Occurred()) SWIG_fail; | |
7387 | } | |
7388 | { | |
7389 | wxSize * resultptr; | |
7449af73 | 7390 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
d55e5bfc RD |
7391 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
7392 | } | |
7393 | return resultobj; | |
7394 | fail: | |
7395 | return NULL; | |
7396 | } | |
7397 | ||
7398 | ||
c32bde28 | 7399 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7400 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7401 | wxCaret *arg1 = (wxCaret *) 0 ; |
7402 | int *arg2 = (int *) 0 ; | |
7403 | int *arg3 = (int *) 0 ; | |
7404 | int temp2 ; | |
c32bde28 | 7405 | int res2 = 0 ; |
d55e5bfc | 7406 | int temp3 ; |
c32bde28 | 7407 | int res3 = 0 ; |
d55e5bfc RD |
7408 | PyObject * obj0 = 0 ; |
7409 | char *kwnames[] = { | |
7410 | (char *) "self", NULL | |
7411 | }; | |
7412 | ||
c32bde28 RD |
7413 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
7414 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
7416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7418 | { |
7419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7420 | (arg1)->GetSize(arg2,arg3); | |
7421 | ||
7422 | wxPyEndAllowThreads(__tstate); | |
7423 | if (PyErr_Occurred()) SWIG_fail; | |
7424 | } | |
7425 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
7426 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
7427 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
7428 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
7429 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
7430 | return resultobj; |
7431 | fail: | |
7432 | return NULL; | |
7433 | } | |
7434 | ||
7435 | ||
c32bde28 | 7436 | static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7437 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7438 | wxCaret *arg1 = (wxCaret *) 0 ; |
7439 | wxWindow *result; | |
7440 | PyObject * obj0 = 0 ; | |
7441 | char *kwnames[] = { | |
7442 | (char *) "self", NULL | |
7443 | }; | |
7444 | ||
7445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7448 | { |
7449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7450 | result = (wxWindow *)(arg1)->GetWindow(); | |
7451 | ||
7452 | wxPyEndAllowThreads(__tstate); | |
7453 | if (PyErr_Occurred()) SWIG_fail; | |
7454 | } | |
7455 | { | |
412d302d | 7456 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
7457 | } |
7458 | return resultobj; | |
7459 | fail: | |
7460 | return NULL; | |
7461 | } | |
7462 | ||
7463 | ||
c32bde28 | 7464 | static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7465 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7466 | wxCaret *arg1 = (wxCaret *) 0 ; |
7467 | int arg2 ; | |
7468 | int arg3 ; | |
7469 | PyObject * obj0 = 0 ; | |
7470 | PyObject * obj1 = 0 ; | |
7471 | PyObject * obj2 = 0 ; | |
7472 | char *kwnames[] = { | |
7473 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7474 | }; | |
7475 | ||
7476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7479 | { | |
7449af73 | 7480 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7481 | if (SWIG_arg_fail(2)) SWIG_fail; |
7482 | } | |
7483 | { | |
7449af73 | 7484 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7485 | if (SWIG_arg_fail(3)) SWIG_fail; |
7486 | } | |
d55e5bfc RD |
7487 | { |
7488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7489 | (arg1)->Move(arg2,arg3); | |
7490 | ||
7491 | wxPyEndAllowThreads(__tstate); | |
7492 | if (PyErr_Occurred()) SWIG_fail; | |
7493 | } | |
7494 | Py_INCREF(Py_None); resultobj = Py_None; | |
7495 | return resultobj; | |
7496 | fail: | |
7497 | return NULL; | |
7498 | } | |
7499 | ||
7500 | ||
c32bde28 | 7501 | static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7502 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7503 | wxCaret *arg1 = (wxCaret *) 0 ; |
7504 | wxPoint *arg2 = 0 ; | |
7505 | wxPoint temp2 ; | |
7506 | PyObject * obj0 = 0 ; | |
7507 | PyObject * obj1 = 0 ; | |
7508 | char *kwnames[] = { | |
7509 | (char *) "self",(char *) "pt", NULL | |
7510 | }; | |
7511 | ||
7512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7513 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7514 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7515 | { |
7516 | arg2 = &temp2; | |
7517 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7518 | } | |
7519 | { | |
7520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7521 | (arg1)->Move((wxPoint const &)*arg2); | |
7522 | ||
7523 | wxPyEndAllowThreads(__tstate); | |
7524 | if (PyErr_Occurred()) SWIG_fail; | |
7525 | } | |
7526 | Py_INCREF(Py_None); resultobj = Py_None; | |
7527 | return resultobj; | |
7528 | fail: | |
7529 | return NULL; | |
7530 | } | |
7531 | ||
7532 | ||
c32bde28 | 7533 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7534 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7535 | wxCaret *arg1 = (wxCaret *) 0 ; |
7536 | int arg2 ; | |
7537 | int arg3 ; | |
7538 | PyObject * obj0 = 0 ; | |
7539 | PyObject * obj1 = 0 ; | |
7540 | PyObject * obj2 = 0 ; | |
7541 | char *kwnames[] = { | |
7542 | (char *) "self",(char *) "width",(char *) "height", NULL | |
7543 | }; | |
7544 | ||
7545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7546 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7547 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7548 | { | |
7449af73 | 7549 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7550 | if (SWIG_arg_fail(2)) SWIG_fail; |
7551 | } | |
7552 | { | |
7449af73 | 7553 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7554 | if (SWIG_arg_fail(3)) SWIG_fail; |
7555 | } | |
d55e5bfc RD |
7556 | { |
7557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7558 | (arg1)->SetSize(arg2,arg3); | |
7559 | ||
7560 | wxPyEndAllowThreads(__tstate); | |
7561 | if (PyErr_Occurred()) SWIG_fail; | |
7562 | } | |
7563 | Py_INCREF(Py_None); resultobj = Py_None; | |
7564 | return resultobj; | |
7565 | fail: | |
7566 | return NULL; | |
7567 | } | |
7568 | ||
7569 | ||
c32bde28 | 7570 | static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7571 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7572 | wxCaret *arg1 = (wxCaret *) 0 ; |
7573 | wxSize *arg2 = 0 ; | |
7574 | wxSize temp2 ; | |
7575 | PyObject * obj0 = 0 ; | |
7576 | PyObject * obj1 = 0 ; | |
7577 | char *kwnames[] = { | |
7578 | (char *) "self",(char *) "size", NULL | |
7579 | }; | |
7580 | ||
7581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7582 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7583 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7584 | { |
7585 | arg2 = &temp2; | |
7586 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7587 | } | |
7588 | { | |
7589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7590 | (arg1)->SetSize((wxSize const &)*arg2); | |
7591 | ||
7592 | wxPyEndAllowThreads(__tstate); | |
7593 | if (PyErr_Occurred()) SWIG_fail; | |
7594 | } | |
7595 | Py_INCREF(Py_None); resultobj = Py_None; | |
7596 | return resultobj; | |
7597 | fail: | |
7598 | return NULL; | |
7599 | } | |
7600 | ||
7601 | ||
c32bde28 | 7602 | static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7603 | PyObject *resultobj = NULL; |
d55e5bfc | 7604 | wxCaret *arg1 = (wxCaret *) 0 ; |
ae8162c8 | 7605 | int arg2 = (int) true ; |
d55e5bfc RD |
7606 | PyObject * obj0 = 0 ; |
7607 | PyObject * obj1 = 0 ; | |
7608 | char *kwnames[] = { | |
7609 | (char *) "self",(char *) "show", NULL | |
7610 | }; | |
7611 | ||
7612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7613 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7614 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7615 | if (obj1) { |
093d3ff1 | 7616 | { |
7449af73 | 7617 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7618 | if (SWIG_arg_fail(2)) SWIG_fail; |
7619 | } | |
d55e5bfc RD |
7620 | } |
7621 | { | |
7622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7623 | (arg1)->Show(arg2); | |
7624 | ||
7625 | wxPyEndAllowThreads(__tstate); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
7627 | } | |
7628 | Py_INCREF(Py_None); resultobj = Py_None; | |
7629 | return resultobj; | |
7630 | fail: | |
7631 | return NULL; | |
7632 | } | |
7633 | ||
7634 | ||
c32bde28 | 7635 | static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7636 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7637 | wxCaret *arg1 = (wxCaret *) 0 ; |
7638 | PyObject * obj0 = 0 ; | |
7639 | char *kwnames[] = { | |
7640 | (char *) "self", NULL | |
7641 | }; | |
7642 | ||
7643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7646 | { |
7647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7648 | (arg1)->Hide(); | |
7649 | ||
7650 | wxPyEndAllowThreads(__tstate); | |
7651 | if (PyErr_Occurred()) SWIG_fail; | |
7652 | } | |
7653 | Py_INCREF(Py_None); resultobj = Py_None; | |
7654 | return resultobj; | |
7655 | fail: | |
7656 | return NULL; | |
7657 | } | |
7658 | ||
7659 | ||
c32bde28 | 7660 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7661 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7662 | int result; |
7663 | char *kwnames[] = { | |
7664 | NULL | |
7665 | }; | |
7666 | ||
7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
7668 | { | |
7669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
091fdbfa | 7670 | result = (int)wxCaret::GetBlinkTime(); |
d55e5bfc RD |
7671 | |
7672 | wxPyEndAllowThreads(__tstate); | |
7673 | if (PyErr_Occurred()) SWIG_fail; | |
7674 | } | |
093d3ff1 | 7675 | { |
7449af73 | 7676 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 7677 | } |
d55e5bfc RD |
7678 | return resultobj; |
7679 | fail: | |
7680 | return NULL; | |
7681 | } | |
7682 | ||
7683 | ||
c32bde28 | 7684 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7685 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7686 | int arg1 ; |
7687 | PyObject * obj0 = 0 ; | |
7688 | char *kwnames[] = { | |
7689 | (char *) "milliseconds", NULL | |
7690 | }; | |
7691 | ||
7692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
093d3ff1 | 7693 | { |
7449af73 | 7694 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
7695 | if (SWIG_arg_fail(1)) SWIG_fail; |
7696 | } | |
d55e5bfc RD |
7697 | { |
7698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
091fdbfa | 7699 | wxCaret::SetBlinkTime(arg1); |
d55e5bfc RD |
7700 | |
7701 | wxPyEndAllowThreads(__tstate); | |
7702 | if (PyErr_Occurred()) SWIG_fail; | |
7703 | } | |
7704 | Py_INCREF(Py_None); resultobj = Py_None; | |
7705 | return resultobj; | |
7706 | fail: | |
7707 | return NULL; | |
7708 | } | |
7709 | ||
7710 | ||
091fdbfa RD |
7711 | static PyObject * Caret_swigregister(PyObject *, PyObject *args) { |
7712 | PyObject *obj; | |
7713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7714 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
7715 | Py_INCREF(obj); | |
7716 | return Py_BuildValue((char *)""); | |
7717 | } | |
c32bde28 | 7718 | static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7719 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7720 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; |
7721 | wxBusyCursor *result; | |
7722 | PyObject * obj0 = 0 ; | |
7723 | char *kwnames[] = { | |
7724 | (char *) "cursor", NULL | |
7725 | }; | |
7726 | ||
7727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
7728 | if (obj0) { | |
093d3ff1 RD |
7729 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); |
7730 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7731 | } |
7732 | { | |
0439c23b | 7733 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7735 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
7736 | ||
7737 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7738 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7739 | } |
7740 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
7741 | return resultobj; | |
7742 | fail: | |
7743 | return NULL; | |
7744 | } | |
7745 | ||
7746 | ||
c32bde28 | 7747 | static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7748 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7749 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; |
7750 | PyObject * obj0 = 0 ; | |
7751 | char *kwnames[] = { | |
7752 | (char *) "self", NULL | |
7753 | }; | |
7754 | ||
7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyCursor, SWIG_POINTER_EXCEPTION | 0); |
7757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7758 | { |
7759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7760 | delete arg1; | |
7761 | ||
7762 | wxPyEndAllowThreads(__tstate); | |
7763 | if (PyErr_Occurred()) SWIG_fail; | |
7764 | } | |
7765 | Py_INCREF(Py_None); resultobj = Py_None; | |
7766 | return resultobj; | |
7767 | fail: | |
7768 | return NULL; | |
7769 | } | |
7770 | ||
7771 | ||
c32bde28 | 7772 | static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7773 | PyObject *obj; |
7774 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7775 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
7776 | Py_INCREF(obj); | |
7777 | return Py_BuildValue((char *)""); | |
7778 | } | |
c32bde28 | 7779 | static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7780 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7781 | wxWindow *arg1 = (wxWindow *) NULL ; |
7782 | wxWindowDisabler *result; | |
7783 | PyObject * obj0 = 0 ; | |
7784 | char *kwnames[] = { | |
7785 | (char *) "winToSkip", NULL | |
7786 | }; | |
7787 | ||
7788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
7789 | if (obj0) { | |
093d3ff1 RD |
7790 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7792 | } |
7793 | { | |
0439c23b | 7794 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7796 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
7797 | ||
7798 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7799 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7800 | } |
7801 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
7802 | return resultobj; | |
7803 | fail: | |
7804 | return NULL; | |
7805 | } | |
7806 | ||
7807 | ||
c32bde28 | 7808 | static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7809 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7810 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; |
7811 | PyObject * obj0 = 0 ; | |
7812 | char *kwnames[] = { | |
7813 | (char *) "self", NULL | |
7814 | }; | |
7815 | ||
7816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowDisabler, SWIG_POINTER_EXCEPTION | 0); |
7818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7819 | { |
7820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7821 | delete arg1; | |
7822 | ||
7823 | wxPyEndAllowThreads(__tstate); | |
7824 | if (PyErr_Occurred()) SWIG_fail; | |
7825 | } | |
7826 | Py_INCREF(Py_None); resultobj = Py_None; | |
7827 | return resultobj; | |
7828 | fail: | |
7829 | return NULL; | |
7830 | } | |
7831 | ||
7832 | ||
c32bde28 | 7833 | static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7834 | PyObject *obj; |
7835 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7836 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
7837 | Py_INCREF(obj); | |
7838 | return Py_BuildValue((char *)""); | |
7839 | } | |
c32bde28 | 7840 | static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7841 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7842 | wxString *arg1 = 0 ; |
7843 | wxBusyInfo *result; | |
ae8162c8 | 7844 | bool temp1 = false ; |
d55e5bfc RD |
7845 | PyObject * obj0 = 0 ; |
7846 | char *kwnames[] = { | |
7847 | (char *) "message", NULL | |
7848 | }; | |
7849 | ||
7850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
7851 | { | |
7852 | arg1 = wxString_in_helper(obj0); | |
7853 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7854 | temp1 = true; |
d55e5bfc RD |
7855 | } |
7856 | { | |
0439c23b | 7857 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7859 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
7860 | ||
7861 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7862 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7863 | } |
7864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
7865 | { | |
7866 | if (temp1) | |
7867 | delete arg1; | |
7868 | } | |
7869 | return resultobj; | |
7870 | fail: | |
7871 | { | |
7872 | if (temp1) | |
7873 | delete arg1; | |
7874 | } | |
7875 | return NULL; | |
7876 | } | |
7877 | ||
7878 | ||
c32bde28 | 7879 | static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7880 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7881 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; |
7882 | PyObject * obj0 = 0 ; | |
7883 | char *kwnames[] = { | |
7884 | (char *) "self", NULL | |
7885 | }; | |
7886 | ||
7887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7888 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyInfo, SWIG_POINTER_EXCEPTION | 0); |
7889 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7890 | { |
7891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7892 | delete arg1; | |
7893 | ||
7894 | wxPyEndAllowThreads(__tstate); | |
7895 | if (PyErr_Occurred()) SWIG_fail; | |
7896 | } | |
7897 | Py_INCREF(Py_None); resultobj = Py_None; | |
7898 | return resultobj; | |
7899 | fail: | |
7900 | return NULL; | |
7901 | } | |
7902 | ||
7903 | ||
c32bde28 | 7904 | static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7905 | PyObject *obj; |
7906 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7907 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
7908 | Py_INCREF(obj); | |
7909 | return Py_BuildValue((char *)""); | |
7910 | } | |
c32bde28 | 7911 | static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7912 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7913 | wxStopWatch *result; |
7914 | char *kwnames[] = { | |
7915 | NULL | |
7916 | }; | |
7917 | ||
7918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
7919 | { | |
7920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7921 | result = (wxStopWatch *)new wxStopWatch(); | |
7922 | ||
7923 | wxPyEndAllowThreads(__tstate); | |
7924 | if (PyErr_Occurred()) SWIG_fail; | |
7925 | } | |
7926 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
7927 | return resultobj; | |
7928 | fail: | |
7929 | return NULL; | |
7930 | } | |
7931 | ||
7932 | ||
c32bde28 | 7933 | static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7934 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7935 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; |
7936 | long arg2 = (long) 0 ; | |
7937 | PyObject * obj0 = 0 ; | |
7938 | PyObject * obj1 = 0 ; | |
7939 | char *kwnames[] = { | |
7940 | (char *) "self",(char *) "t0", NULL | |
7941 | }; | |
7942 | ||
7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7944 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
7945 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7946 | if (obj1) { |
093d3ff1 | 7947 | { |
7449af73 | 7948 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
7949 | if (SWIG_arg_fail(2)) SWIG_fail; |
7950 | } | |
d55e5bfc RD |
7951 | } |
7952 | { | |
7953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7954 | (arg1)->Start(arg2); | |
7955 | ||
7956 | wxPyEndAllowThreads(__tstate); | |
7957 | if (PyErr_Occurred()) SWIG_fail; | |
7958 | } | |
7959 | Py_INCREF(Py_None); resultobj = Py_None; | |
7960 | return resultobj; | |
7961 | fail: | |
7962 | return NULL; | |
7963 | } | |
7964 | ||
7965 | ||
c32bde28 | 7966 | static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7967 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7968 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; |
7969 | PyObject * obj0 = 0 ; | |
7970 | char *kwnames[] = { | |
7971 | (char *) "self", NULL | |
7972 | }; | |
7973 | ||
7974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7975 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
7976 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7977 | { |
7978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7979 | (arg1)->Pause(); | |
7980 | ||
7981 | wxPyEndAllowThreads(__tstate); | |
7982 | if (PyErr_Occurred()) SWIG_fail; | |
7983 | } | |
7984 | Py_INCREF(Py_None); resultobj = Py_None; | |
7985 | return resultobj; | |
7986 | fail: | |
7987 | return NULL; | |
7988 | } | |
7989 | ||
7990 | ||
c32bde28 | 7991 | static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 7992 | PyObject *resultobj = NULL; |
d55e5bfc RD |
7993 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; |
7994 | PyObject * obj0 = 0 ; | |
7995 | char *kwnames[] = { | |
7996 | (char *) "self", NULL | |
7997 | }; | |
7998 | ||
7999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8000 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
8001 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8002 | { |
8003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8004 | (arg1)->Resume(); | |
8005 | ||
8006 | wxPyEndAllowThreads(__tstate); | |
8007 | if (PyErr_Occurred()) SWIG_fail; | |
8008 | } | |
8009 | Py_INCREF(Py_None); resultobj = Py_None; | |
8010 | return resultobj; | |
8011 | fail: | |
8012 | return NULL; | |
8013 | } | |
8014 | ||
8015 | ||
c32bde28 | 8016 | static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8017 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8018 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; |
8019 | long result; | |
8020 | PyObject * obj0 = 0 ; | |
8021 | char *kwnames[] = { | |
8022 | (char *) "self", NULL | |
8023 | }; | |
8024 | ||
8025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8026 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
8027 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8028 | { |
8029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8030 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
8031 | ||
8032 | wxPyEndAllowThreads(__tstate); | |
8033 | if (PyErr_Occurred()) SWIG_fail; | |
8034 | } | |
093d3ff1 | 8035 | { |
7449af73 | 8036 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 8037 | } |
d55e5bfc RD |
8038 | return resultobj; |
8039 | fail: | |
8040 | return NULL; | |
8041 | } | |
8042 | ||
8043 | ||
c32bde28 | 8044 | static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8045 | PyObject *obj; |
8046 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8047 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
8048 | Py_INCREF(obj); | |
8049 | return Py_BuildValue((char *)""); | |
8050 | } | |
c32bde28 | 8051 | static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8052 | PyObject *resultobj = NULL; |
d55e5bfc | 8053 | int arg1 = (int) 9 ; |
4cf4100f | 8054 | int arg2 = (int) wxID_FILE1 ; |
d55e5bfc RD |
8055 | wxFileHistory *result; |
8056 | PyObject * obj0 = 0 ; | |
4cf4100f | 8057 | PyObject * obj1 = 0 ; |
d55e5bfc | 8058 | char *kwnames[] = { |
4cf4100f | 8059 | (char *) "maxFiles",(char *) "idBase", NULL |
d55e5bfc RD |
8060 | }; |
8061 | ||
4cf4100f | 8062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc | 8063 | if (obj0) { |
093d3ff1 | 8064 | { |
7449af73 | 8065 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
8066 | if (SWIG_arg_fail(1)) SWIG_fail; |
8067 | } | |
d55e5bfc | 8068 | } |
4cf4100f | 8069 | if (obj1) { |
093d3ff1 | 8070 | { |
7449af73 | 8071 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8072 | if (SWIG_arg_fail(2)) SWIG_fail; |
8073 | } | |
4cf4100f | 8074 | } |
d55e5bfc RD |
8075 | { |
8076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4cf4100f | 8077 | result = (wxFileHistory *)new wxFileHistory(arg1,arg2); |
d55e5bfc RD |
8078 | |
8079 | wxPyEndAllowThreads(__tstate); | |
8080 | if (PyErr_Occurred()) SWIG_fail; | |
8081 | } | |
8082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
8083 | return resultobj; | |
8084 | fail: | |
8085 | return NULL; | |
8086 | } | |
8087 | ||
8088 | ||
c32bde28 | 8089 | static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8090 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8091 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8092 | PyObject * obj0 = 0 ; | |
8093 | char *kwnames[] = { | |
8094 | (char *) "self", NULL | |
8095 | }; | |
8096 | ||
8097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8098 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8099 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8100 | { |
8101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8102 | delete arg1; | |
8103 | ||
8104 | wxPyEndAllowThreads(__tstate); | |
8105 | if (PyErr_Occurred()) SWIG_fail; | |
8106 | } | |
8107 | Py_INCREF(Py_None); resultobj = Py_None; | |
8108 | return resultobj; | |
8109 | fail: | |
8110 | return NULL; | |
8111 | } | |
8112 | ||
8113 | ||
c32bde28 | 8114 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8115 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8116 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8117 | wxString *arg2 = 0 ; | |
ae8162c8 | 8118 | bool temp2 = false ; |
d55e5bfc RD |
8119 | PyObject * obj0 = 0 ; |
8120 | PyObject * obj1 = 0 ; | |
8121 | char *kwnames[] = { | |
8122 | (char *) "self",(char *) "file", NULL | |
8123 | }; | |
8124 | ||
8125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8126 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8127 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8128 | { |
8129 | arg2 = wxString_in_helper(obj1); | |
8130 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8131 | temp2 = true; |
d55e5bfc RD |
8132 | } |
8133 | { | |
8134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8135 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
8136 | ||
8137 | wxPyEndAllowThreads(__tstate); | |
8138 | if (PyErr_Occurred()) SWIG_fail; | |
8139 | } | |
8140 | Py_INCREF(Py_None); resultobj = Py_None; | |
8141 | { | |
8142 | if (temp2) | |
8143 | delete arg2; | |
8144 | } | |
8145 | return resultobj; | |
8146 | fail: | |
8147 | { | |
8148 | if (temp2) | |
8149 | delete arg2; | |
8150 | } | |
8151 | return NULL; | |
8152 | } | |
8153 | ||
8154 | ||
c32bde28 | 8155 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8156 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8157 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8158 | int arg2 ; | |
8159 | PyObject * obj0 = 0 ; | |
8160 | PyObject * obj1 = 0 ; | |
8161 | char *kwnames[] = { | |
8162 | (char *) "self",(char *) "i", NULL | |
8163 | }; | |
8164 | ||
8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8166 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8167 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8168 | { | |
7449af73 | 8169 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8170 | if (SWIG_arg_fail(2)) SWIG_fail; |
8171 | } | |
d55e5bfc RD |
8172 | { |
8173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8174 | (arg1)->RemoveFileFromHistory(arg2); | |
8175 | ||
8176 | wxPyEndAllowThreads(__tstate); | |
8177 | if (PyErr_Occurred()) SWIG_fail; | |
8178 | } | |
8179 | Py_INCREF(Py_None); resultobj = Py_None; | |
8180 | return resultobj; | |
8181 | fail: | |
8182 | return NULL; | |
8183 | } | |
8184 | ||
8185 | ||
c32bde28 | 8186 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8187 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8188 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8189 | int result; | |
8190 | PyObject * obj0 = 0 ; | |
8191 | char *kwnames[] = { | |
8192 | (char *) "self", NULL | |
8193 | }; | |
8194 | ||
8195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8198 | { |
8199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8200 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
8201 | ||
8202 | wxPyEndAllowThreads(__tstate); | |
8203 | if (PyErr_Occurred()) SWIG_fail; | |
8204 | } | |
093d3ff1 | 8205 | { |
7449af73 | 8206 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 8207 | } |
d55e5bfc RD |
8208 | return resultobj; |
8209 | fail: | |
8210 | return NULL; | |
8211 | } | |
8212 | ||
8213 | ||
c32bde28 | 8214 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8215 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8216 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8217 | wxMenu *arg2 = (wxMenu *) 0 ; | |
8218 | PyObject * obj0 = 0 ; | |
8219 | PyObject * obj1 = 0 ; | |
8220 | char *kwnames[] = { | |
8221 | (char *) "self",(char *) "menu", NULL | |
8222 | }; | |
8223 | ||
8224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8227 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
8228 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
8229 | { |
8230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8231 | (arg1)->UseMenu(arg2); | |
8232 | ||
8233 | wxPyEndAllowThreads(__tstate); | |
8234 | if (PyErr_Occurred()) SWIG_fail; | |
8235 | } | |
8236 | Py_INCREF(Py_None); resultobj = Py_None; | |
8237 | return resultobj; | |
8238 | fail: | |
8239 | return NULL; | |
8240 | } | |
8241 | ||
8242 | ||
c32bde28 | 8243 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8244 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8245 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8246 | wxMenu *arg2 = (wxMenu *) 0 ; | |
8247 | PyObject * obj0 = 0 ; | |
8248 | PyObject * obj1 = 0 ; | |
8249 | char *kwnames[] = { | |
8250 | (char *) "self",(char *) "menu", NULL | |
8251 | }; | |
8252 | ||
8253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8256 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
8257 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
8258 | { |
8259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8260 | (arg1)->RemoveMenu(arg2); | |
8261 | ||
8262 | wxPyEndAllowThreads(__tstate); | |
8263 | if (PyErr_Occurred()) SWIG_fail; | |
8264 | } | |
8265 | Py_INCREF(Py_None); resultobj = Py_None; | |
8266 | return resultobj; | |
8267 | fail: | |
8268 | return NULL; | |
8269 | } | |
8270 | ||
8271 | ||
c32bde28 | 8272 | static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8273 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8274 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8275 | wxConfigBase *arg2 = 0 ; | |
8276 | PyObject * obj0 = 0 ; | |
8277 | PyObject * obj1 = 0 ; | |
8278 | char *kwnames[] = { | |
8279 | (char *) "self",(char *) "config", NULL | |
8280 | }; | |
8281 | ||
8282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8283 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8284 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8285 | { | |
8286 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); | |
8287 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8288 | if (arg2 == NULL) { | |
8289 | SWIG_null_ref("wxConfigBase"); | |
8290 | } | |
8291 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
8292 | } |
8293 | { | |
8294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8295 | (arg1)->Load(*arg2); | |
8296 | ||
8297 | wxPyEndAllowThreads(__tstate); | |
8298 | if (PyErr_Occurred()) SWIG_fail; | |
8299 | } | |
8300 | Py_INCREF(Py_None); resultobj = Py_None; | |
8301 | return resultobj; | |
8302 | fail: | |
8303 | return NULL; | |
8304 | } | |
8305 | ||
8306 | ||
c32bde28 | 8307 | static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8308 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8309 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8310 | wxConfigBase *arg2 = 0 ; | |
8311 | PyObject * obj0 = 0 ; | |
8312 | PyObject * obj1 = 0 ; | |
8313 | char *kwnames[] = { | |
8314 | (char *) "self",(char *) "config", NULL | |
8315 | }; | |
8316 | ||
8317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8320 | { | |
8321 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); | |
8322 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8323 | if (arg2 == NULL) { | |
8324 | SWIG_null_ref("wxConfigBase"); | |
8325 | } | |
8326 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
8327 | } |
8328 | { | |
8329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8330 | (arg1)->Save(*arg2); | |
8331 | ||
8332 | wxPyEndAllowThreads(__tstate); | |
8333 | if (PyErr_Occurred()) SWIG_fail; | |
8334 | } | |
8335 | Py_INCREF(Py_None); resultobj = Py_None; | |
8336 | return resultobj; | |
8337 | fail: | |
8338 | return NULL; | |
8339 | } | |
8340 | ||
8341 | ||
c32bde28 | 8342 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8343 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8344 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8345 | PyObject * obj0 = 0 ; | |
8346 | char *kwnames[] = { | |
8347 | (char *) "self", NULL | |
8348 | }; | |
8349 | ||
8350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8353 | { |
8354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8355 | (arg1)->AddFilesToMenu(); | |
8356 | ||
8357 | wxPyEndAllowThreads(__tstate); | |
8358 | if (PyErr_Occurred()) SWIG_fail; | |
8359 | } | |
8360 | Py_INCREF(Py_None); resultobj = Py_None; | |
8361 | return resultobj; | |
8362 | fail: | |
8363 | return NULL; | |
8364 | } | |
8365 | ||
8366 | ||
c32bde28 | 8367 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8368 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8369 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8370 | wxMenu *arg2 = (wxMenu *) 0 ; | |
8371 | PyObject * obj0 = 0 ; | |
8372 | PyObject * obj1 = 0 ; | |
8373 | char *kwnames[] = { | |
8374 | (char *) "self",(char *) "menu", NULL | |
8375 | }; | |
8376 | ||
8377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8380 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
8381 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
8382 | { |
8383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8384 | (arg1)->AddFilesToMenu(arg2); | |
8385 | ||
8386 | wxPyEndAllowThreads(__tstate); | |
8387 | if (PyErr_Occurred()) SWIG_fail; | |
8388 | } | |
8389 | Py_INCREF(Py_None); resultobj = Py_None; | |
8390 | return resultobj; | |
8391 | fail: | |
8392 | return NULL; | |
8393 | } | |
8394 | ||
8395 | ||
c32bde28 | 8396 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8397 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8398 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8399 | int arg2 ; | |
8400 | wxString result; | |
8401 | PyObject * obj0 = 0 ; | |
8402 | PyObject * obj1 = 0 ; | |
8403 | char *kwnames[] = { | |
8404 | (char *) "self",(char *) "i", NULL | |
8405 | }; | |
8406 | ||
8407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8410 | { | |
7449af73 | 8411 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8412 | if (SWIG_arg_fail(2)) SWIG_fail; |
8413 | } | |
d55e5bfc RD |
8414 | { |
8415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8416 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
8417 | ||
8418 | wxPyEndAllowThreads(__tstate); | |
8419 | if (PyErr_Occurred()) SWIG_fail; | |
8420 | } | |
8421 | { | |
8422 | #if wxUSE_UNICODE | |
8423 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8424 | #else | |
8425 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8426 | #endif | |
8427 | } | |
8428 | return resultobj; | |
8429 | fail: | |
8430 | return NULL; | |
8431 | } | |
8432 | ||
8433 | ||
c32bde28 | 8434 | static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8435 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8436 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8437 | int result; | |
8438 | PyObject * obj0 = 0 ; | |
8439 | char *kwnames[] = { | |
8440 | (char *) "self", NULL | |
8441 | }; | |
8442 | ||
8443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8446 | { |
8447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8448 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
8449 | ||
8450 | wxPyEndAllowThreads(__tstate); | |
8451 | if (PyErr_Occurred()) SWIG_fail; | |
8452 | } | |
093d3ff1 | 8453 | { |
7449af73 | 8454 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 8455 | } |
d55e5bfc RD |
8456 | return resultobj; |
8457 | fail: | |
8458 | return NULL; | |
8459 | } | |
8460 | ||
8461 | ||
c32bde28 | 8462 | static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8463 | PyObject *obj; |
8464 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8465 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
8466 | Py_INCREF(obj); | |
8467 | return Py_BuildValue((char *)""); | |
8468 | } | |
c32bde28 | 8469 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8470 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8471 | wxString *arg1 = 0 ; |
8472 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8473 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8474 | wxSingleInstanceChecker *result; | |
ae8162c8 RD |
8475 | bool temp1 = false ; |
8476 | bool temp2 = false ; | |
d55e5bfc RD |
8477 | PyObject * obj0 = 0 ; |
8478 | PyObject * obj1 = 0 ; | |
8479 | char *kwnames[] = { | |
8480 | (char *) "name",(char *) "path", NULL | |
8481 | }; | |
8482 | ||
8483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
8484 | { | |
8485 | arg1 = wxString_in_helper(obj0); | |
8486 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8487 | temp1 = true; |
d55e5bfc RD |
8488 | } |
8489 | if (obj1) { | |
8490 | { | |
8491 | arg2 = wxString_in_helper(obj1); | |
8492 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8493 | temp2 = true; |
d55e5bfc RD |
8494 | } |
8495 | } | |
8496 | { | |
8497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8498 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
8499 | ||
8500 | wxPyEndAllowThreads(__tstate); | |
8501 | if (PyErr_Occurred()) SWIG_fail; | |
8502 | } | |
8503 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
8504 | { | |
8505 | if (temp1) | |
8506 | delete arg1; | |
8507 | } | |
8508 | { | |
8509 | if (temp2) | |
8510 | delete arg2; | |
8511 | } | |
8512 | return resultobj; | |
8513 | fail: | |
8514 | { | |
8515 | if (temp1) | |
8516 | delete arg1; | |
8517 | } | |
8518 | { | |
8519 | if (temp2) | |
8520 | delete arg2; | |
8521 | } | |
8522 | return NULL; | |
8523 | } | |
8524 | ||
8525 | ||
c32bde28 | 8526 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8527 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8528 | wxSingleInstanceChecker *result; |
8529 | char *kwnames[] = { | |
8530 | NULL | |
8531 | }; | |
8532 | ||
8533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
8534 | { | |
8535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8536 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
8537 | ||
8538 | wxPyEndAllowThreads(__tstate); | |
8539 | if (PyErr_Occurred()) SWIG_fail; | |
8540 | } | |
8541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
8542 | return resultobj; | |
8543 | fail: | |
8544 | return NULL; | |
8545 | } | |
8546 | ||
8547 | ||
c32bde28 | 8548 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8549 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8550 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; |
8551 | PyObject * obj0 = 0 ; | |
8552 | char *kwnames[] = { | |
8553 | (char *) "self", NULL | |
8554 | }; | |
8555 | ||
8556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8557 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
8558 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8559 | { |
8560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8561 | delete arg1; | |
8562 | ||
8563 | wxPyEndAllowThreads(__tstate); | |
8564 | if (PyErr_Occurred()) SWIG_fail; | |
8565 | } | |
8566 | Py_INCREF(Py_None); resultobj = Py_None; | |
8567 | return resultobj; | |
8568 | fail: | |
8569 | return NULL; | |
8570 | } | |
8571 | ||
8572 | ||
c32bde28 | 8573 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8574 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8575 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; |
8576 | wxString *arg2 = 0 ; | |
8577 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8578 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8579 | bool result; | |
ae8162c8 RD |
8580 | bool temp2 = false ; |
8581 | bool temp3 = false ; | |
d55e5bfc RD |
8582 | PyObject * obj0 = 0 ; |
8583 | PyObject * obj1 = 0 ; | |
8584 | PyObject * obj2 = 0 ; | |
8585 | char *kwnames[] = { | |
8586 | (char *) "self",(char *) "name",(char *) "path", NULL | |
8587 | }; | |
8588 | ||
8589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
8591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8592 | { |
8593 | arg2 = wxString_in_helper(obj1); | |
8594 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8595 | temp2 = true; |
d55e5bfc RD |
8596 | } |
8597 | if (obj2) { | |
8598 | { | |
8599 | arg3 = wxString_in_helper(obj2); | |
8600 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8601 | temp3 = true; |
d55e5bfc RD |
8602 | } |
8603 | } | |
8604 | { | |
8605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8606 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
8607 | ||
8608 | wxPyEndAllowThreads(__tstate); | |
8609 | if (PyErr_Occurred()) SWIG_fail; | |
8610 | } | |
8611 | { | |
8612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8613 | } | |
8614 | { | |
8615 | if (temp2) | |
8616 | delete arg2; | |
8617 | } | |
8618 | { | |
8619 | if (temp3) | |
8620 | delete arg3; | |
8621 | } | |
8622 | return resultobj; | |
8623 | fail: | |
8624 | { | |
8625 | if (temp2) | |
8626 | delete arg2; | |
8627 | } | |
8628 | { | |
8629 | if (temp3) | |
8630 | delete arg3; | |
8631 | } | |
8632 | return NULL; | |
8633 | } | |
8634 | ||
8635 | ||
c32bde28 | 8636 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8637 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8638 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; |
8639 | bool result; | |
8640 | PyObject * obj0 = 0 ; | |
8641 | char *kwnames[] = { | |
8642 | (char *) "self", NULL | |
8643 | }; | |
8644 | ||
8645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
8647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8648 | { |
8649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8650 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
8651 | ||
8652 | wxPyEndAllowThreads(__tstate); | |
8653 | if (PyErr_Occurred()) SWIG_fail; | |
8654 | } | |
8655 | { | |
8656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8657 | } | |
8658 | return resultobj; | |
8659 | fail: | |
8660 | return NULL; | |
8661 | } | |
8662 | ||
8663 | ||
c32bde28 | 8664 | static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8665 | PyObject *obj; |
8666 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8667 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
8668 | Py_INCREF(obj); | |
8669 | return Py_BuildValue((char *)""); | |
8670 | } | |
68350608 | 8671 | static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8672 | PyObject *resultobj = NULL; |
68350608 RD |
8673 | wxWindow *arg1 = (wxWindow *) 0 ; |
8674 | wxDC *arg2 = 0 ; | |
8675 | bool result; | |
8676 | PyObject * obj0 = 0 ; | |
8677 | PyObject * obj1 = 0 ; | |
8678 | char *kwnames[] = { | |
8679 | (char *) "window",(char *) "dc", NULL | |
8680 | }; | |
8681 | ||
8682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DrawWindowOnDC",kwnames,&obj0,&obj1)) goto fail; | |
8683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
8684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8685 | { | |
8686 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
8687 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8688 | if (arg2 == NULL) { | |
8689 | SWIG_null_ref("wxDC"); | |
8690 | } | |
8691 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8692 | } | |
8693 | { | |
8694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8695 | result = (bool)wxDrawWindowOnDC(arg1,(wxDC const &)*arg2); | |
8696 | ||
8697 | wxPyEndAllowThreads(__tstate); | |
8698 | if (PyErr_Occurred()) SWIG_fail; | |
8699 | } | |
8700 | { | |
8701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8702 | } | |
8703 | return resultobj; | |
8704 | fail: | |
8705 | return NULL; | |
8706 | } | |
8707 | ||
8708 | ||
c32bde28 | 8709 | static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8710 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8711 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; |
8712 | PyObject * obj0 = 0 ; | |
8713 | char *kwnames[] = { | |
8714 | (char *) "self", NULL | |
8715 | }; | |
8716 | ||
8717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8720 | { |
8721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8722 | delete arg1; | |
8723 | ||
8724 | wxPyEndAllowThreads(__tstate); | |
8725 | if (PyErr_Occurred()) SWIG_fail; | |
8726 | } | |
8727 | Py_INCREF(Py_None); resultobj = Py_None; | |
8728 | return resultobj; | |
8729 | fail: | |
8730 | return NULL; | |
8731 | } | |
8732 | ||
8733 | ||
c32bde28 | 8734 | static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8735 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8736 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; |
8737 | wxString result; | |
8738 | PyObject * obj0 = 0 ; | |
8739 | char *kwnames[] = { | |
8740 | (char *) "self", NULL | |
8741 | }; | |
8742 | ||
8743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8746 | { |
8747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8748 | result = (arg1)->GetTip(); | |
8749 | ||
8750 | wxPyEndAllowThreads(__tstate); | |
8751 | if (PyErr_Occurred()) SWIG_fail; | |
8752 | } | |
8753 | { | |
8754 | #if wxUSE_UNICODE | |
8755 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8756 | #else | |
8757 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8758 | #endif | |
8759 | } | |
8760 | return resultobj; | |
8761 | fail: | |
8762 | return NULL; | |
8763 | } | |
8764 | ||
8765 | ||
c32bde28 | 8766 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8767 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8768 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; |
8769 | size_t result; | |
8770 | PyObject * obj0 = 0 ; | |
8771 | char *kwnames[] = { | |
8772 | (char *) "self", NULL | |
8773 | }; | |
8774 | ||
8775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8778 | { |
8779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8780 | result = (size_t)(arg1)->GetCurrentTip(); | |
8781 | ||
8782 | wxPyEndAllowThreads(__tstate); | |
8783 | if (PyErr_Occurred()) SWIG_fail; | |
8784 | } | |
093d3ff1 | 8785 | { |
7449af73 | 8786 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 8787 | } |
d55e5bfc RD |
8788 | return resultobj; |
8789 | fail: | |
8790 | return NULL; | |
8791 | } | |
8792 | ||
8793 | ||
c32bde28 | 8794 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8795 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8796 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; |
8797 | wxString *arg2 = 0 ; | |
8798 | wxString result; | |
ae8162c8 | 8799 | bool temp2 = false ; |
d55e5bfc RD |
8800 | PyObject * obj0 = 0 ; |
8801 | PyObject * obj1 = 0 ; | |
8802 | char *kwnames[] = { | |
8803 | (char *) "self",(char *) "tip", NULL | |
8804 | }; | |
8805 | ||
8806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8809 | { |
8810 | arg2 = wxString_in_helper(obj1); | |
8811 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8812 | temp2 = true; |
d55e5bfc RD |
8813 | } |
8814 | { | |
8815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8816 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
8817 | ||
8818 | wxPyEndAllowThreads(__tstate); | |
8819 | if (PyErr_Occurred()) SWIG_fail; | |
8820 | } | |
8821 | { | |
8822 | #if wxUSE_UNICODE | |
8823 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8824 | #else | |
8825 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8826 | #endif | |
8827 | } | |
8828 | { | |
8829 | if (temp2) | |
8830 | delete arg2; | |
8831 | } | |
8832 | return resultobj; | |
8833 | fail: | |
8834 | { | |
8835 | if (temp2) | |
8836 | delete arg2; | |
8837 | } | |
8838 | return NULL; | |
8839 | } | |
8840 | ||
8841 | ||
c32bde28 | 8842 | static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8843 | PyObject *obj; |
8844 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8845 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
8846 | Py_INCREF(obj); | |
8847 | return Py_BuildValue((char *)""); | |
8848 | } | |
c32bde28 | 8849 | static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8850 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8851 | size_t arg1 ; |
8852 | wxPyTipProvider *result; | |
8853 | PyObject * obj0 = 0 ; | |
8854 | char *kwnames[] = { | |
8855 | (char *) "currentTip", NULL | |
8856 | }; | |
8857 | ||
8858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
093d3ff1 | 8859 | { |
7449af73 | 8860 | arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
8861 | if (SWIG_arg_fail(1)) SWIG_fail; |
8862 | } | |
d55e5bfc RD |
8863 | { |
8864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8865 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
8866 | ||
8867 | wxPyEndAllowThreads(__tstate); | |
8868 | if (PyErr_Occurred()) SWIG_fail; | |
8869 | } | |
8870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
8871 | return resultobj; | |
8872 | fail: | |
8873 | return NULL; | |
8874 | } | |
8875 | ||
8876 | ||
c32bde28 | 8877 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8878 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8879 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; |
8880 | PyObject *arg2 = (PyObject *) 0 ; | |
8881 | PyObject *arg3 = (PyObject *) 0 ; | |
8882 | PyObject * obj0 = 0 ; | |
8883 | PyObject * obj1 = 0 ; | |
8884 | PyObject * obj2 = 0 ; | |
8885 | char *kwnames[] = { | |
8886 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8887 | }; | |
8888 | ||
8889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8890 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8891 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8892 | arg2 = obj1; |
8893 | arg3 = obj2; | |
8894 | { | |
8895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8896 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8897 | ||
8898 | wxPyEndAllowThreads(__tstate); | |
8899 | if (PyErr_Occurred()) SWIG_fail; | |
8900 | } | |
8901 | Py_INCREF(Py_None); resultobj = Py_None; | |
8902 | return resultobj; | |
8903 | fail: | |
8904 | return NULL; | |
8905 | } | |
8906 | ||
8907 | ||
c32bde28 | 8908 | static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8909 | PyObject *obj; |
8910 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8911 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
8912 | Py_INCREF(obj); | |
8913 | return Py_BuildValue((char *)""); | |
8914 | } | |
c32bde28 | 8915 | static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8916 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8917 | wxWindow *arg1 = (wxWindow *) 0 ; |
8918 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
ae8162c8 | 8919 | bool arg3 = (bool) true ; |
d55e5bfc RD |
8920 | bool result; |
8921 | PyObject * obj0 = 0 ; | |
8922 | PyObject * obj1 = 0 ; | |
8923 | PyObject * obj2 = 0 ; | |
8924 | char *kwnames[] = { | |
8925 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
8926 | }; | |
8927 | ||
8928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
8930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8931 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); | |
8932 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 8933 | if (obj2) { |
093d3ff1 | 8934 | { |
7449af73 | 8935 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
8936 | if (SWIG_arg_fail(3)) SWIG_fail; |
8937 | } | |
d55e5bfc RD |
8938 | } |
8939 | { | |
0439c23b | 8940 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8942 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
8943 | ||
8944 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8945 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8946 | } |
8947 | { | |
8948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8949 | } | |
8950 | return resultobj; | |
8951 | fail: | |
8952 | return NULL; | |
8953 | } | |
8954 | ||
8955 | ||
c32bde28 | 8956 | static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 8957 | PyObject *resultobj = NULL; |
d55e5bfc RD |
8958 | wxString *arg1 = 0 ; |
8959 | size_t arg2 ; | |
8960 | wxTipProvider *result; | |
ae8162c8 | 8961 | bool temp1 = false ; |
d55e5bfc RD |
8962 | PyObject * obj0 = 0 ; |
8963 | PyObject * obj1 = 0 ; | |
8964 | char *kwnames[] = { | |
8965 | (char *) "filename",(char *) "currentTip", NULL | |
8966 | }; | |
8967 | ||
8968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
8969 | { | |
8970 | arg1 = wxString_in_helper(obj0); | |
8971 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8972 | temp1 = true; |
d55e5bfc | 8973 | } |
093d3ff1 | 8974 | { |
7449af73 | 8975 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
8976 | if (SWIG_arg_fail(2)) SWIG_fail; |
8977 | } | |
d55e5bfc | 8978 | { |
0439c23b | 8979 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8981 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
8982 | ||
8983 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8984 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8985 | } |
8986 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
8987 | { | |
8988 | if (temp1) | |
8989 | delete arg1; | |
8990 | } | |
8991 | return resultobj; | |
8992 | fail: | |
8993 | { | |
8994 | if (temp1) | |
8995 | delete arg1; | |
8996 | } | |
8997 | return NULL; | |
8998 | } | |
8999 | ||
9000 | ||
c32bde28 | 9001 | static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9002 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9003 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; |
9004 | int arg2 = (int) -1 ; | |
9005 | wxPyTimer *result; | |
9006 | PyObject * obj0 = 0 ; | |
9007 | PyObject * obj1 = 0 ; | |
9008 | char *kwnames[] = { | |
9009 | (char *) "owner",(char *) "id", NULL | |
9010 | }; | |
9011 | ||
9012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
9013 | if (obj0) { | |
093d3ff1 RD |
9014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
9015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9016 | } |
9017 | if (obj1) { | |
093d3ff1 | 9018 | { |
7449af73 | 9019 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9020 | if (SWIG_arg_fail(2)) SWIG_fail; |
9021 | } | |
d55e5bfc RD |
9022 | } |
9023 | { | |
0439c23b | 9024 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9026 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
9027 | ||
9028 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9029 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9030 | } |
9031 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
9032 | return resultobj; | |
9033 | fail: | |
9034 | return NULL; | |
9035 | } | |
9036 | ||
9037 | ||
c32bde28 | 9038 | static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9039 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9040 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9041 | PyObject * obj0 = 0 ; | |
9042 | char *kwnames[] = { | |
9043 | (char *) "self", NULL | |
9044 | }; | |
9045 | ||
9046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9047 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9048 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9049 | { |
9050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9051 | delete arg1; | |
9052 | ||
9053 | wxPyEndAllowThreads(__tstate); | |
9054 | if (PyErr_Occurred()) SWIG_fail; | |
9055 | } | |
9056 | Py_INCREF(Py_None); resultobj = Py_None; | |
9057 | return resultobj; | |
9058 | fail: | |
9059 | return NULL; | |
9060 | } | |
9061 | ||
9062 | ||
c32bde28 | 9063 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9064 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9065 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9066 | PyObject *arg2 = (PyObject *) 0 ; | |
9067 | PyObject *arg3 = (PyObject *) 0 ; | |
9068 | int arg4 = (int) 1 ; | |
9069 | PyObject * obj0 = 0 ; | |
9070 | PyObject * obj1 = 0 ; | |
9071 | PyObject * obj2 = 0 ; | |
9072 | PyObject * obj3 = 0 ; | |
9073 | char *kwnames[] = { | |
9074 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
9075 | }; | |
9076 | ||
9077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
9078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9080 | arg2 = obj1; |
9081 | arg3 = obj2; | |
9082 | if (obj3) { | |
093d3ff1 | 9083 | { |
7449af73 | 9084 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
9085 | if (SWIG_arg_fail(4)) SWIG_fail; |
9086 | } | |
d55e5bfc RD |
9087 | } |
9088 | { | |
9089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9090 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
9091 | ||
9092 | wxPyEndAllowThreads(__tstate); | |
9093 | if (PyErr_Occurred()) SWIG_fail; | |
9094 | } | |
9095 | Py_INCREF(Py_None); resultobj = Py_None; | |
9096 | return resultobj; | |
9097 | fail: | |
9098 | return NULL; | |
9099 | } | |
9100 | ||
9101 | ||
c32bde28 | 9102 | static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9103 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9104 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9105 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
9106 | int arg3 = (int) -1 ; | |
9107 | PyObject * obj0 = 0 ; | |
9108 | PyObject * obj1 = 0 ; | |
9109 | PyObject * obj2 = 0 ; | |
9110 | char *kwnames[] = { | |
9111 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
9112 | }; | |
9113 | ||
9114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9117 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
9118 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 9119 | if (obj2) { |
093d3ff1 | 9120 | { |
7449af73 | 9121 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
9122 | if (SWIG_arg_fail(3)) SWIG_fail; |
9123 | } | |
d55e5bfc RD |
9124 | } |
9125 | { | |
9126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9127 | (arg1)->SetOwner(arg2,arg3); | |
9128 | ||
9129 | wxPyEndAllowThreads(__tstate); | |
9130 | if (PyErr_Occurred()) SWIG_fail; | |
9131 | } | |
9132 | Py_INCREF(Py_None); resultobj = Py_None; | |
9133 | return resultobj; | |
9134 | fail: | |
9135 | return NULL; | |
9136 | } | |
9137 | ||
9138 | ||
c32bde28 | 9139 | static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9140 | PyObject *resultobj = NULL; |
1a6bba1e RD |
9141 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9142 | wxEvtHandler *result; | |
9143 | PyObject * obj0 = 0 ; | |
9144 | char *kwnames[] = { | |
9145 | (char *) "self", NULL | |
9146 | }; | |
9147 | ||
9148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a6bba1e RD |
9151 | { |
9152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9153 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
9154 | ||
9155 | wxPyEndAllowThreads(__tstate); | |
9156 | if (PyErr_Occurred()) SWIG_fail; | |
9157 | } | |
9158 | { | |
412d302d | 9159 | resultobj = wxPyMake_wxObject(result, 0); |
1a6bba1e RD |
9160 | } |
9161 | return resultobj; | |
9162 | fail: | |
9163 | return NULL; | |
9164 | } | |
9165 | ||
9166 | ||
c32bde28 | 9167 | static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9168 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9169 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9170 | int arg2 = (int) -1 ; | |
ae8162c8 | 9171 | bool arg3 = (bool) false ; |
d55e5bfc RD |
9172 | bool result; |
9173 | PyObject * obj0 = 0 ; | |
9174 | PyObject * obj1 = 0 ; | |
9175 | PyObject * obj2 = 0 ; | |
9176 | char *kwnames[] = { | |
9177 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
9178 | }; | |
9179 | ||
9180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9181 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9182 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 9183 | if (obj1) { |
093d3ff1 | 9184 | { |
7449af73 | 9185 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9186 | if (SWIG_arg_fail(2)) SWIG_fail; |
9187 | } | |
d55e5bfc RD |
9188 | } |
9189 | if (obj2) { | |
093d3ff1 | 9190 | { |
7449af73 | 9191 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
9192 | if (SWIG_arg_fail(3)) SWIG_fail; |
9193 | } | |
d55e5bfc RD |
9194 | } |
9195 | { | |
9196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9197 | result = (bool)(arg1)->Start(arg2,arg3); | |
9198 | ||
9199 | wxPyEndAllowThreads(__tstate); | |
9200 | if (PyErr_Occurred()) SWIG_fail; | |
9201 | } | |
9202 | { | |
9203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9204 | } | |
9205 | return resultobj; | |
9206 | fail: | |
9207 | return NULL; | |
9208 | } | |
9209 | ||
9210 | ||
c32bde28 | 9211 | static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9212 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9213 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9214 | PyObject * obj0 = 0 ; | |
9215 | char *kwnames[] = { | |
9216 | (char *) "self", NULL | |
9217 | }; | |
9218 | ||
9219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9222 | { |
9223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9224 | (arg1)->Stop(); | |
9225 | ||
9226 | wxPyEndAllowThreads(__tstate); | |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
9228 | } | |
9229 | Py_INCREF(Py_None); resultobj = Py_None; | |
9230 | return resultobj; | |
9231 | fail: | |
9232 | return NULL; | |
9233 | } | |
9234 | ||
9235 | ||
c32bde28 | 9236 | static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9237 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9238 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9239 | bool result; | |
9240 | PyObject * obj0 = 0 ; | |
9241 | char *kwnames[] = { | |
9242 | (char *) "self", NULL | |
9243 | }; | |
9244 | ||
9245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9248 | { |
9249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9250 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
9251 | ||
9252 | wxPyEndAllowThreads(__tstate); | |
9253 | if (PyErr_Occurred()) SWIG_fail; | |
9254 | } | |
9255 | { | |
9256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9257 | } | |
9258 | return resultobj; | |
9259 | fail: | |
9260 | return NULL; | |
9261 | } | |
9262 | ||
9263 | ||
c32bde28 | 9264 | static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9265 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9266 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9267 | int result; | |
9268 | PyObject * obj0 = 0 ; | |
9269 | char *kwnames[] = { | |
9270 | (char *) "self", NULL | |
9271 | }; | |
9272 | ||
9273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9276 | { |
9277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9278 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
9279 | ||
9280 | wxPyEndAllowThreads(__tstate); | |
9281 | if (PyErr_Occurred()) SWIG_fail; | |
9282 | } | |
093d3ff1 | 9283 | { |
7449af73 | 9284 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 9285 | } |
d55e5bfc RD |
9286 | return resultobj; |
9287 | fail: | |
9288 | return NULL; | |
9289 | } | |
9290 | ||
9291 | ||
c32bde28 | 9292 | static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9293 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9294 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9295 | bool result; | |
9296 | PyObject * obj0 = 0 ; | |
9297 | char *kwnames[] = { | |
9298 | (char *) "self", NULL | |
9299 | }; | |
9300 | ||
9301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9302 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9303 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9304 | { |
9305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9306 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
9307 | ||
9308 | wxPyEndAllowThreads(__tstate); | |
9309 | if (PyErr_Occurred()) SWIG_fail; | |
9310 | } | |
9311 | { | |
9312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9313 | } | |
9314 | return resultobj; | |
9315 | fail: | |
9316 | return NULL; | |
9317 | } | |
9318 | ||
9319 | ||
c32bde28 | 9320 | static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9321 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9322 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9323 | int result; | |
9324 | PyObject * obj0 = 0 ; | |
9325 | char *kwnames[] = { | |
9326 | (char *) "self", NULL | |
9327 | }; | |
9328 | ||
9329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9332 | { |
9333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9334 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
9335 | ||
9336 | wxPyEndAllowThreads(__tstate); | |
9337 | if (PyErr_Occurred()) SWIG_fail; | |
9338 | } | |
093d3ff1 | 9339 | { |
7449af73 | 9340 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 9341 | } |
d55e5bfc RD |
9342 | return resultobj; |
9343 | fail: | |
9344 | return NULL; | |
9345 | } | |
9346 | ||
9347 | ||
c32bde28 | 9348 | static PyObject * Timer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9349 | PyObject *obj; |
9350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9351 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
9352 | Py_INCREF(obj); | |
9353 | return Py_BuildValue((char *)""); | |
9354 | } | |
c32bde28 | 9355 | static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9356 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9357 | int arg1 = (int) 0 ; |
9358 | int arg2 = (int) 0 ; | |
9359 | wxTimerEvent *result; | |
9360 | PyObject * obj0 = 0 ; | |
9361 | PyObject * obj1 = 0 ; | |
9362 | char *kwnames[] = { | |
9363 | (char *) "timerid",(char *) "interval", NULL | |
9364 | }; | |
9365 | ||
9366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
9367 | if (obj0) { | |
093d3ff1 | 9368 | { |
7449af73 | 9369 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
9370 | if (SWIG_arg_fail(1)) SWIG_fail; |
9371 | } | |
d55e5bfc RD |
9372 | } |
9373 | if (obj1) { | |
093d3ff1 | 9374 | { |
7449af73 | 9375 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9376 | if (SWIG_arg_fail(2)) SWIG_fail; |
9377 | } | |
d55e5bfc RD |
9378 | } |
9379 | { | |
9380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9381 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
9382 | ||
9383 | wxPyEndAllowThreads(__tstate); | |
9384 | if (PyErr_Occurred()) SWIG_fail; | |
9385 | } | |
9386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
9387 | return resultobj; | |
9388 | fail: | |
9389 | return NULL; | |
9390 | } | |
9391 | ||
9392 | ||
c32bde28 | 9393 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9394 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9395 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; |
9396 | int result; | |
9397 | PyObject * obj0 = 0 ; | |
9398 | char *kwnames[] = { | |
9399 | (char *) "self", NULL | |
9400 | }; | |
9401 | ||
9402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerEvent, SWIG_POINTER_EXCEPTION | 0); |
9404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9405 | { |
9406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9407 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
9408 | ||
9409 | wxPyEndAllowThreads(__tstate); | |
9410 | if (PyErr_Occurred()) SWIG_fail; | |
9411 | } | |
093d3ff1 | 9412 | { |
7449af73 | 9413 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 9414 | } |
d55e5bfc RD |
9415 | return resultobj; |
9416 | fail: | |
9417 | return NULL; | |
9418 | } | |
9419 | ||
9420 | ||
c32bde28 | 9421 | static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9422 | PyObject *obj; |
9423 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9424 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
9425 | Py_INCREF(obj); | |
9426 | return Py_BuildValue((char *)""); | |
9427 | } | |
c32bde28 | 9428 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) { |
7449af73 | 9429 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9430 | wxTimer *arg1 = 0 ; |
9431 | wxTimerRunner *result; | |
9432 | PyObject * obj0 = 0 ; | |
9433 | ||
9434 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
093d3ff1 RD |
9435 | { |
9436 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0); | |
9437 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9438 | if (arg1 == NULL) { | |
9439 | SWIG_null_ref("wxTimer"); | |
9440 | } | |
9441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9442 | } |
9443 | { | |
0439c23b | 9444 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9446 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
9447 | ||
9448 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9449 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9450 | } |
9451 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
9452 | return resultobj; | |
9453 | fail: | |
9454 | return NULL; | |
9455 | } | |
9456 | ||
9457 | ||
c32bde28 | 9458 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) { |
7449af73 | 9459 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9460 | wxTimer *arg1 = 0 ; |
9461 | int arg2 ; | |
ae8162c8 | 9462 | bool arg3 = (bool) false ; |
d55e5bfc RD |
9463 | wxTimerRunner *result; |
9464 | PyObject * obj0 = 0 ; | |
9465 | PyObject * obj1 = 0 ; | |
9466 | PyObject * obj2 = 0 ; | |
9467 | ||
9468 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9469 | { |
9470 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0); | |
9471 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9472 | if (arg1 == NULL) { | |
9473 | SWIG_null_ref("wxTimer"); | |
9474 | } | |
9475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9476 | } | |
9477 | { | |
7449af73 | 9478 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9479 | if (SWIG_arg_fail(2)) SWIG_fail; |
9480 | } | |
d55e5bfc | 9481 | if (obj2) { |
093d3ff1 | 9482 | { |
7449af73 | 9483 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
9484 | if (SWIG_arg_fail(3)) SWIG_fail; |
9485 | } | |
d55e5bfc RD |
9486 | } |
9487 | { | |
0439c23b | 9488 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9490 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
9491 | ||
9492 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9493 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9494 | } |
9495 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
9496 | return resultobj; | |
9497 | fail: | |
9498 | return NULL; | |
9499 | } | |
9500 | ||
9501 | ||
9502 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
9503 | int argc; | |
9504 | PyObject *argv[4]; | |
9505 | int ii; | |
9506 | ||
9507 | argc = PyObject_Length(args); | |
9508 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9509 | argv[ii] = PyTuple_GetItem(args,ii); | |
9510 | } | |
9511 | if (argc == 1) { | |
9512 | int _v; | |
9513 | { | |
093d3ff1 | 9514 | void *ptr = 0; |
d55e5bfc RD |
9515 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
9516 | _v = 0; | |
9517 | PyErr_Clear(); | |
9518 | } else { | |
093d3ff1 | 9519 | _v = (ptr != 0); |
d55e5bfc RD |
9520 | } |
9521 | } | |
9522 | if (_v) { | |
9523 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
9524 | } | |
9525 | } | |
9526 | if ((argc >= 2) && (argc <= 3)) { | |
9527 | int _v; | |
9528 | { | |
093d3ff1 | 9529 | void *ptr = 0; |
d55e5bfc RD |
9530 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
9531 | _v = 0; | |
9532 | PyErr_Clear(); | |
9533 | } else { | |
093d3ff1 | 9534 | _v = (ptr != 0); |
d55e5bfc RD |
9535 | } |
9536 | } | |
9537 | if (_v) { | |
c32bde28 | 9538 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
9539 | if (_v) { |
9540 | if (argc <= 2) { | |
9541 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
9542 | } | |
c32bde28 | 9543 | _v = SWIG_Check_bool(argv[2]); |
d55e5bfc RD |
9544 | if (_v) { |
9545 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
9546 | } | |
9547 | } | |
9548 | } | |
9549 | } | |
9550 | ||
093d3ff1 | 9551 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_TimerRunner'"); |
d55e5bfc RD |
9552 | return NULL; |
9553 | } | |
9554 | ||
9555 | ||
c32bde28 | 9556 | static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9557 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9558 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; |
9559 | PyObject * obj0 = 0 ; | |
9560 | char *kwnames[] = { | |
9561 | (char *) "self", NULL | |
9562 | }; | |
9563 | ||
9564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0); |
9566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9567 | { |
9568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9569 | delete arg1; | |
9570 | ||
9571 | wxPyEndAllowThreads(__tstate); | |
9572 | if (PyErr_Occurred()) SWIG_fail; | |
9573 | } | |
9574 | Py_INCREF(Py_None); resultobj = Py_None; | |
9575 | return resultobj; | |
9576 | fail: | |
9577 | return NULL; | |
9578 | } | |
9579 | ||
9580 | ||
c32bde28 | 9581 | static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9582 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9583 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; |
9584 | int arg2 ; | |
ae8162c8 | 9585 | bool arg3 = (bool) false ; |
d55e5bfc RD |
9586 | PyObject * obj0 = 0 ; |
9587 | PyObject * obj1 = 0 ; | |
9588 | PyObject * obj2 = 0 ; | |
9589 | char *kwnames[] = { | |
9590 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
9591 | }; | |
9592 | ||
9593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0); |
9595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9596 | { | |
7449af73 | 9597 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9598 | if (SWIG_arg_fail(2)) SWIG_fail; |
9599 | } | |
d55e5bfc | 9600 | if (obj2) { |
093d3ff1 | 9601 | { |
7449af73 | 9602 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
9603 | if (SWIG_arg_fail(3)) SWIG_fail; |
9604 | } | |
d55e5bfc RD |
9605 | } |
9606 | { | |
9607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9608 | (arg1)->Start(arg2,arg3); | |
9609 | ||
9610 | wxPyEndAllowThreads(__tstate); | |
9611 | if (PyErr_Occurred()) SWIG_fail; | |
9612 | } | |
9613 | Py_INCREF(Py_None); resultobj = Py_None; | |
9614 | return resultobj; | |
9615 | fail: | |
9616 | return NULL; | |
9617 | } | |
9618 | ||
9619 | ||
c32bde28 | 9620 | static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9621 | PyObject *obj; |
9622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9623 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
9624 | Py_INCREF(obj); | |
9625 | return Py_BuildValue((char *)""); | |
9626 | } | |
c32bde28 | 9627 | static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9628 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9629 | wxLog *result; |
9630 | char *kwnames[] = { | |
9631 | NULL | |
9632 | }; | |
9633 | ||
9634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
9635 | { | |
9636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9637 | result = (wxLog *)new wxLog(); | |
9638 | ||
9639 | wxPyEndAllowThreads(__tstate); | |
9640 | if (PyErr_Occurred()) SWIG_fail; | |
9641 | } | |
9642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
9643 | return resultobj; | |
9644 | fail: | |
9645 | return NULL; | |
9646 | } | |
9647 | ||
9648 | ||
c32bde28 | 9649 | static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9650 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9651 | bool result; |
9652 | char *kwnames[] = { | |
9653 | NULL | |
9654 | }; | |
9655 | ||
9656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
9657 | { | |
9658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9659 | result = (bool)wxLog::IsEnabled(); | |
9660 | ||
9661 | wxPyEndAllowThreads(__tstate); | |
9662 | if (PyErr_Occurred()) SWIG_fail; | |
9663 | } | |
9664 | { | |
9665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9666 | } | |
9667 | return resultobj; | |
9668 | fail: | |
9669 | return NULL; | |
9670 | } | |
9671 | ||
9672 | ||
c32bde28 | 9673 | static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9674 | PyObject *resultobj = NULL; |
ae8162c8 | 9675 | bool arg1 = (bool) true ; |
d55e5bfc RD |
9676 | bool result; |
9677 | PyObject * obj0 = 0 ; | |
9678 | char *kwnames[] = { | |
9679 | (char *) "doIt", NULL | |
9680 | }; | |
9681 | ||
9682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
9683 | if (obj0) { | |
093d3ff1 | 9684 | { |
7449af73 | 9685 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 RD |
9686 | if (SWIG_arg_fail(1)) SWIG_fail; |
9687 | } | |
d55e5bfc RD |
9688 | } |
9689 | { | |
9690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9691 | result = (bool)wxLog::EnableLogging(arg1); | |
9692 | ||
9693 | wxPyEndAllowThreads(__tstate); | |
9694 | if (PyErr_Occurred()) SWIG_fail; | |
9695 | } | |
9696 | { | |
9697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9698 | } | |
9699 | return resultobj; | |
9700 | fail: | |
9701 | return NULL; | |
9702 | } | |
9703 | ||
9704 | ||
c32bde28 | 9705 | static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9706 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9707 | wxLogLevel arg1 ; |
9708 | wxChar *arg2 = (wxChar *) 0 ; | |
9709 | time_t arg3 ; | |
9710 | PyObject * obj0 = 0 ; | |
9711 | PyObject * obj1 = 0 ; | |
9712 | PyObject * obj2 = 0 ; | |
9713 | char *kwnames[] = { | |
9714 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
9715 | }; | |
9716 | ||
9717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 | 9718 | { |
7449af73 | 9719 | arg1 = static_cast<wxLogLevel >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
9720 | if (SWIG_arg_fail(1)) SWIG_fail; |
9721 | } | |
9722 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); | |
9723 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9724 | { | |
7449af73 | 9725 | arg3 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj2)); |
093d3ff1 RD |
9726 | if (SWIG_arg_fail(3)) SWIG_fail; |
9727 | } | |
d55e5bfc RD |
9728 | { |
9729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9730 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
9731 | ||
9732 | wxPyEndAllowThreads(__tstate); | |
9733 | if (PyErr_Occurred()) SWIG_fail; | |
9734 | } | |
9735 | Py_INCREF(Py_None); resultobj = Py_None; | |
9736 | return resultobj; | |
9737 | fail: | |
9738 | return NULL; | |
9739 | } | |
9740 | ||
9741 | ||
c32bde28 | 9742 | static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9743 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9744 | wxLog *arg1 = (wxLog *) 0 ; |
9745 | PyObject * obj0 = 0 ; | |
9746 | char *kwnames[] = { | |
9747 | (char *) "self", NULL | |
9748 | }; | |
9749 | ||
9750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
9752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9753 | { |
9754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9755 | (arg1)->Flush(); | |
9756 | ||
9757 | wxPyEndAllowThreads(__tstate); | |
9758 | if (PyErr_Occurred()) SWIG_fail; | |
9759 | } | |
9760 | Py_INCREF(Py_None); resultobj = Py_None; | |
9761 | return resultobj; | |
9762 | fail: | |
9763 | return NULL; | |
9764 | } | |
9765 | ||
9766 | ||
c32bde28 | 9767 | static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9768 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9769 | char *kwnames[] = { |
9770 | NULL | |
9771 | }; | |
9772 | ||
9773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
9774 | { | |
9775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9776 | wxLog::FlushActive(); | |
9777 | ||
9778 | wxPyEndAllowThreads(__tstate); | |
9779 | if (PyErr_Occurred()) SWIG_fail; | |
9780 | } | |
9781 | Py_INCREF(Py_None); resultobj = Py_None; | |
9782 | return resultobj; | |
9783 | fail: | |
9784 | return NULL; | |
9785 | } | |
9786 | ||
9787 | ||
c32bde28 | 9788 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9789 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9790 | wxLog *result; |
9791 | char *kwnames[] = { | |
9792 | NULL | |
9793 | }; | |
9794 | ||
9795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
9796 | { | |
9797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9798 | result = (wxLog *)wxLog::GetActiveTarget(); | |
9799 | ||
9800 | wxPyEndAllowThreads(__tstate); | |
9801 | if (PyErr_Occurred()) SWIG_fail; | |
9802 | } | |
9803 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
9804 | return resultobj; | |
9805 | fail: | |
9806 | return NULL; | |
9807 | } | |
9808 | ||
9809 | ||
c32bde28 | 9810 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9811 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9812 | wxLog *arg1 = (wxLog *) 0 ; |
9813 | wxLog *result; | |
9814 | PyObject * obj0 = 0 ; | |
9815 | char *kwnames[] = { | |
9816 | (char *) "pLogger", NULL | |
9817 | }; | |
9818 | ||
9819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9820 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
9821 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9822 | { |
9823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9824 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
9825 | ||
9826 | wxPyEndAllowThreads(__tstate); | |
9827 | if (PyErr_Occurred()) SWIG_fail; | |
9828 | } | |
9829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
9830 | return resultobj; | |
9831 | fail: | |
9832 | return NULL; | |
9833 | } | |
9834 | ||
9835 | ||
c32bde28 | 9836 | static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9837 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9838 | char *kwnames[] = { |
9839 | NULL | |
9840 | }; | |
9841 | ||
9842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
9843 | { | |
9844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9845 | wxLog::Suspend(); | |
9846 | ||
9847 | wxPyEndAllowThreads(__tstate); | |
9848 | if (PyErr_Occurred()) SWIG_fail; | |
9849 | } | |
9850 | Py_INCREF(Py_None); resultobj = Py_None; | |
9851 | return resultobj; | |
9852 | fail: | |
9853 | return NULL; | |
9854 | } | |
9855 | ||
9856 | ||
c32bde28 | 9857 | static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9858 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9859 | char *kwnames[] = { |
9860 | NULL | |
9861 | }; | |
9862 | ||
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
9864 | { | |
9865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9866 | wxLog::Resume(); | |
9867 | ||
9868 | wxPyEndAllowThreads(__tstate); | |
9869 | if (PyErr_Occurred()) SWIG_fail; | |
9870 | } | |
9871 | Py_INCREF(Py_None); resultobj = Py_None; | |
9872 | return resultobj; | |
9873 | fail: | |
9874 | return NULL; | |
9875 | } | |
9876 | ||
9877 | ||
c32bde28 | 9878 | static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9879 | PyObject *resultobj = NULL; |
ae8162c8 | 9880 | bool arg1 = (bool) true ; |
d55e5bfc RD |
9881 | PyObject * obj0 = 0 ; |
9882 | char *kwnames[] = { | |
9883 | (char *) "bVerbose", NULL | |
9884 | }; | |
9885 | ||
9886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
9887 | if (obj0) { | |
093d3ff1 | 9888 | { |
7449af73 | 9889 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 RD |
9890 | if (SWIG_arg_fail(1)) SWIG_fail; |
9891 | } | |
d55e5bfc RD |
9892 | } |
9893 | { | |
9894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9895 | wxLog::SetVerbose(arg1); | |
9896 | ||
9897 | wxPyEndAllowThreads(__tstate); | |
9898 | if (PyErr_Occurred()) SWIG_fail; | |
9899 | } | |
9900 | Py_INCREF(Py_None); resultobj = Py_None; | |
9901 | return resultobj; | |
9902 | fail: | |
9903 | return NULL; | |
9904 | } | |
9905 | ||
9906 | ||
c32bde28 | 9907 | static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9908 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9909 | wxLogLevel arg1 ; |
9910 | PyObject * obj0 = 0 ; | |
9911 | char *kwnames[] = { | |
9912 | (char *) "logLevel", NULL | |
9913 | }; | |
9914 | ||
9915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
093d3ff1 | 9916 | { |
7449af73 | 9917 | arg1 = static_cast<wxLogLevel >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
9918 | if (SWIG_arg_fail(1)) SWIG_fail; |
9919 | } | |
d55e5bfc RD |
9920 | { |
9921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9922 | wxLog::SetLogLevel(arg1); | |
9923 | ||
9924 | wxPyEndAllowThreads(__tstate); | |
9925 | if (PyErr_Occurred()) SWIG_fail; | |
9926 | } | |
9927 | Py_INCREF(Py_None); resultobj = Py_None; | |
9928 | return resultobj; | |
9929 | fail: | |
9930 | return NULL; | |
9931 | } | |
9932 | ||
9933 | ||
c32bde28 | 9934 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9935 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9936 | char *kwnames[] = { |
9937 | NULL | |
9938 | }; | |
9939 | ||
9940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
9941 | { | |
9942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9943 | wxLog::DontCreateOnDemand(); | |
9944 | ||
9945 | wxPyEndAllowThreads(__tstate); | |
9946 | if (PyErr_Occurred()) SWIG_fail; | |
9947 | } | |
9948 | Py_INCREF(Py_None); resultobj = Py_None; | |
9949 | return resultobj; | |
9950 | fail: | |
9951 | return NULL; | |
9952 | } | |
9953 | ||
9954 | ||
c32bde28 | 9955 | static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9956 | PyObject *resultobj = NULL; |
d55e5bfc RD |
9957 | wxTraceMask arg1 ; |
9958 | PyObject * obj0 = 0 ; | |
9959 | char *kwnames[] = { | |
9960 | (char *) "ulMask", NULL | |
9961 | }; | |
9962 | ||
9963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
093d3ff1 | 9964 | { |
7449af73 | 9965 | arg1 = static_cast<wxTraceMask >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
9966 | if (SWIG_arg_fail(1)) SWIG_fail; |
9967 | } | |
d55e5bfc RD |
9968 | { |
9969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9970 | wxLog::SetTraceMask(arg1); | |
9971 | ||
9972 | wxPyEndAllowThreads(__tstate); | |
9973 | if (PyErr_Occurred()) SWIG_fail; | |
9974 | } | |
9975 | Py_INCREF(Py_None); resultobj = Py_None; | |
9976 | return resultobj; | |
9977 | fail: | |
9978 | return NULL; | |
9979 | } | |
9980 | ||
9981 | ||
c32bde28 | 9982 | static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 9983 | PyObject *resultobj = NULL; |
d55e5bfc | 9984 | wxString *arg1 = 0 ; |
ae8162c8 | 9985 | bool temp1 = false ; |
d55e5bfc RD |
9986 | PyObject * obj0 = 0 ; |
9987 | char *kwnames[] = { | |
9988 | (char *) "str", NULL | |
9989 | }; | |
9990 | ||
9991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
9992 | { | |
9993 | arg1 = wxString_in_helper(obj0); | |
9994 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9995 | temp1 = true; |
d55e5bfc RD |
9996 | } |
9997 | { | |
9998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9999 | wxLog::AddTraceMask((wxString const &)*arg1); | |
10000 | ||
10001 | wxPyEndAllowThreads(__tstate); | |
10002 | if (PyErr_Occurred()) SWIG_fail; | |
10003 | } | |
10004 | Py_INCREF(Py_None); resultobj = Py_None; | |
10005 | { | |
10006 | if (temp1) | |
10007 | delete arg1; | |
10008 | } | |
10009 | return resultobj; | |
10010 | fail: | |
10011 | { | |
10012 | if (temp1) | |
10013 | delete arg1; | |
10014 | } | |
10015 | return NULL; | |
10016 | } | |
10017 | ||
10018 | ||
c32bde28 | 10019 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10020 | PyObject *resultobj = NULL; |
d55e5bfc | 10021 | wxString *arg1 = 0 ; |
ae8162c8 | 10022 | bool temp1 = false ; |
d55e5bfc RD |
10023 | PyObject * obj0 = 0 ; |
10024 | char *kwnames[] = { | |
10025 | (char *) "str", NULL | |
10026 | }; | |
10027 | ||
10028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
10029 | { | |
10030 | arg1 = wxString_in_helper(obj0); | |
10031 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10032 | temp1 = true; |
d55e5bfc RD |
10033 | } |
10034 | { | |
10035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10036 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
10037 | ||
10038 | wxPyEndAllowThreads(__tstate); | |
10039 | if (PyErr_Occurred()) SWIG_fail; | |
10040 | } | |
10041 | Py_INCREF(Py_None); resultobj = Py_None; | |
10042 | { | |
10043 | if (temp1) | |
10044 | delete arg1; | |
10045 | } | |
10046 | return resultobj; | |
10047 | fail: | |
10048 | { | |
10049 | if (temp1) | |
10050 | delete arg1; | |
10051 | } | |
10052 | return NULL; | |
10053 | } | |
10054 | ||
10055 | ||
c32bde28 | 10056 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10057 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10058 | char *kwnames[] = { |
10059 | NULL | |
10060 | }; | |
10061 | ||
10062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
10063 | { | |
10064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10065 | wxLog::ClearTraceMasks(); | |
10066 | ||
10067 | wxPyEndAllowThreads(__tstate); | |
10068 | if (PyErr_Occurred()) SWIG_fail; | |
10069 | } | |
10070 | Py_INCREF(Py_None); resultobj = Py_None; | |
10071 | return resultobj; | |
10072 | fail: | |
10073 | return NULL; | |
10074 | } | |
10075 | ||
10076 | ||
c32bde28 | 10077 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10078 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10079 | wxArrayString *result; |
10080 | char *kwnames[] = { | |
10081 | NULL | |
10082 | }; | |
10083 | ||
10084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
10085 | { | |
10086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10087 | { | |
10088 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
10089 | result = (wxArrayString *) &_result_ref; | |
10090 | } | |
10091 | ||
10092 | wxPyEndAllowThreads(__tstate); | |
10093 | if (PyErr_Occurred()) SWIG_fail; | |
10094 | } | |
10095 | { | |
10096 | resultobj = wxArrayString2PyList_helper(*result); | |
10097 | } | |
10098 | return resultobj; | |
10099 | fail: | |
10100 | return NULL; | |
10101 | } | |
10102 | ||
10103 | ||
c32bde28 | 10104 | static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10105 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10106 | wxChar *arg1 = (wxChar *) 0 ; |
10107 | PyObject * obj0 = 0 ; | |
10108 | char *kwnames[] = { | |
10109 | (char *) "ts", NULL | |
10110 | }; | |
10111 | ||
10112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10113 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); |
10114 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10115 | { |
10116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10117 | wxLog::SetTimestamp((wxChar const *)arg1); | |
10118 | ||
10119 | wxPyEndAllowThreads(__tstate); | |
10120 | if (PyErr_Occurred()) SWIG_fail; | |
10121 | } | |
10122 | Py_INCREF(Py_None); resultobj = Py_None; | |
10123 | return resultobj; | |
10124 | fail: | |
10125 | return NULL; | |
10126 | } | |
10127 | ||
10128 | ||
c32bde28 | 10129 | static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10130 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10131 | bool result; |
10132 | char *kwnames[] = { | |
10133 | NULL | |
10134 | }; | |
10135 | ||
10136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
10137 | { | |
10138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10139 | result = (bool)wxLog::GetVerbose(); | |
10140 | ||
10141 | wxPyEndAllowThreads(__tstate); | |
10142 | if (PyErr_Occurred()) SWIG_fail; | |
10143 | } | |
10144 | { | |
10145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10146 | } | |
10147 | return resultobj; | |
10148 | fail: | |
10149 | return NULL; | |
10150 | } | |
10151 | ||
10152 | ||
c32bde28 | 10153 | static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10154 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10155 | wxTraceMask result; |
10156 | char *kwnames[] = { | |
10157 | NULL | |
10158 | }; | |
10159 | ||
10160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
10161 | { | |
10162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10163 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
10164 | ||
10165 | wxPyEndAllowThreads(__tstate); | |
10166 | if (PyErr_Occurred()) SWIG_fail; | |
10167 | } | |
093d3ff1 | 10168 | { |
7449af73 | 10169 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 10170 | } |
d55e5bfc RD |
10171 | return resultobj; |
10172 | fail: | |
10173 | return NULL; | |
10174 | } | |
10175 | ||
10176 | ||
c32bde28 | 10177 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10178 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10179 | wxChar *arg1 = (wxChar *) 0 ; |
10180 | bool result; | |
10181 | PyObject * obj0 = 0 ; | |
10182 | char *kwnames[] = { | |
10183 | (char *) "mask", NULL | |
10184 | }; | |
10185 | ||
10186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); |
10188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10189 | { |
10190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10191 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
10192 | ||
10193 | wxPyEndAllowThreads(__tstate); | |
10194 | if (PyErr_Occurred()) SWIG_fail; | |
10195 | } | |
10196 | { | |
10197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10198 | } | |
10199 | return resultobj; | |
10200 | fail: | |
10201 | return NULL; | |
10202 | } | |
10203 | ||
10204 | ||
c32bde28 | 10205 | static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10206 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10207 | wxLogLevel result; |
10208 | char *kwnames[] = { | |
10209 | NULL | |
10210 | }; | |
10211 | ||
10212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
10213 | { | |
10214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10215 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
10216 | ||
10217 | wxPyEndAllowThreads(__tstate); | |
10218 | if (PyErr_Occurred()) SWIG_fail; | |
10219 | } | |
093d3ff1 | 10220 | { |
7449af73 | 10221 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 10222 | } |
d55e5bfc RD |
10223 | return resultobj; |
10224 | fail: | |
10225 | return NULL; | |
10226 | } | |
10227 | ||
10228 | ||
c32bde28 | 10229 | static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10230 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10231 | wxChar *result; |
10232 | char *kwnames[] = { | |
10233 | NULL | |
10234 | }; | |
10235 | ||
10236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
10237 | { | |
10238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10239 | result = (wxChar *)wxLog::GetTimestamp(); | |
10240 | ||
10241 | wxPyEndAllowThreads(__tstate); | |
10242 | if (PyErr_Occurred()) SWIG_fail; | |
10243 | } | |
10244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
10245 | return resultobj; | |
10246 | fail: | |
10247 | return NULL; | |
10248 | } | |
10249 | ||
10250 | ||
c32bde28 | 10251 | static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10252 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10253 | wxString result; |
10254 | char *kwnames[] = { | |
10255 | NULL | |
10256 | }; | |
10257 | ||
10258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
10259 | { | |
10260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 10261 | result = wxLog_TimeStamp(); |
d55e5bfc RD |
10262 | |
10263 | wxPyEndAllowThreads(__tstate); | |
10264 | if (PyErr_Occurred()) SWIG_fail; | |
10265 | } | |
10266 | { | |
10267 | #if wxUSE_UNICODE | |
10268 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10269 | #else | |
10270 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10271 | #endif | |
10272 | } | |
10273 | return resultobj; | |
10274 | fail: | |
10275 | return NULL; | |
10276 | } | |
10277 | ||
10278 | ||
c32bde28 | 10279 | static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10280 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10281 | wxLog *arg1 = (wxLog *) 0 ; |
10282 | PyObject * obj0 = 0 ; | |
10283 | char *kwnames[] = { | |
10284 | (char *) "self", NULL | |
10285 | }; | |
10286 | ||
10287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
10289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10290 | { |
10291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10292 | wxLog_Destroy(arg1); | |
10293 | ||
10294 | wxPyEndAllowThreads(__tstate); | |
10295 | if (PyErr_Occurred()) SWIG_fail; | |
10296 | } | |
10297 | Py_INCREF(Py_None); resultobj = Py_None; | |
10298 | return resultobj; | |
10299 | fail: | |
10300 | return NULL; | |
10301 | } | |
10302 | ||
10303 | ||
c32bde28 | 10304 | static PyObject * Log_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10305 | PyObject *obj; |
10306 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10307 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
10308 | Py_INCREF(obj); | |
10309 | return Py_BuildValue((char *)""); | |
10310 | } | |
c32bde28 | 10311 | static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10312 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10313 | wxLogStderr *result; |
10314 | char *kwnames[] = { | |
10315 | NULL | |
10316 | }; | |
10317 | ||
10318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
10319 | { | |
10320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10321 | result = (wxLogStderr *)new wxLogStderr(); | |
10322 | ||
10323 | wxPyEndAllowThreads(__tstate); | |
10324 | if (PyErr_Occurred()) SWIG_fail; | |
10325 | } | |
10326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
10327 | return resultobj; | |
10328 | fail: | |
10329 | return NULL; | |
10330 | } | |
10331 | ||
10332 | ||
c32bde28 | 10333 | static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10334 | PyObject *obj; |
10335 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10336 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
10337 | Py_INCREF(obj); | |
10338 | return Py_BuildValue((char *)""); | |
10339 | } | |
c32bde28 | 10340 | static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10341 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10342 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10343 | wxLogTextCtrl *result; | |
10344 | PyObject * obj0 = 0 ; | |
10345 | char *kwnames[] = { | |
10346 | (char *) "pTextCtrl", NULL | |
10347 | }; | |
10348 | ||
10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10350 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10351 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10352 | { |
10353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10354 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
10355 | ||
10356 | wxPyEndAllowThreads(__tstate); | |
10357 | if (PyErr_Occurred()) SWIG_fail; | |
10358 | } | |
10359 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
10360 | return resultobj; | |
10361 | fail: | |
10362 | return NULL; | |
10363 | } | |
10364 | ||
10365 | ||
c32bde28 | 10366 | static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10367 | PyObject *obj; |
10368 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10369 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
10370 | Py_INCREF(obj); | |
10371 | return Py_BuildValue((char *)""); | |
10372 | } | |
c32bde28 | 10373 | static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10374 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10375 | wxLogGui *result; |
10376 | char *kwnames[] = { | |
10377 | NULL | |
10378 | }; | |
10379 | ||
10380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
10381 | { | |
10382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10383 | result = (wxLogGui *)new wxLogGui(); | |
10384 | ||
10385 | wxPyEndAllowThreads(__tstate); | |
10386 | if (PyErr_Occurred()) SWIG_fail; | |
10387 | } | |
10388 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
10389 | return resultobj; | |
10390 | fail: | |
10391 | return NULL; | |
10392 | } | |
10393 | ||
10394 | ||
c32bde28 | 10395 | static PyObject * LogGui_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10396 | PyObject *obj; |
10397 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10398 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
10399 | Py_INCREF(obj); | |
10400 | return Py_BuildValue((char *)""); | |
10401 | } | |
c32bde28 | 10402 | static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10403 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10404 | wxFrame *arg1 = (wxFrame *) 0 ; |
10405 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
10406 | bool arg3 = (bool) true ; |
10407 | bool arg4 = (bool) true ; | |
d55e5bfc | 10408 | wxLogWindow *result; |
ae8162c8 | 10409 | bool temp2 = false ; |
d55e5bfc RD |
10410 | PyObject * obj0 = 0 ; |
10411 | PyObject * obj1 = 0 ; | |
10412 | PyObject * obj2 = 0 ; | |
10413 | PyObject * obj3 = 0 ; | |
10414 | char *kwnames[] = { | |
10415 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
10416 | }; | |
10417 | ||
10418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
10419 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0); |
10420 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10421 | { |
10422 | arg2 = wxString_in_helper(obj1); | |
10423 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10424 | temp2 = true; |
d55e5bfc RD |
10425 | } |
10426 | if (obj2) { | |
093d3ff1 | 10427 | { |
7449af73 | 10428 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
10429 | if (SWIG_arg_fail(3)) SWIG_fail; |
10430 | } | |
d55e5bfc RD |
10431 | } |
10432 | if (obj3) { | |
093d3ff1 | 10433 | { |
7449af73 | 10434 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
10435 | if (SWIG_arg_fail(4)) SWIG_fail; |
10436 | } | |
d55e5bfc RD |
10437 | } |
10438 | { | |
10439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10440 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
10441 | ||
10442 | wxPyEndAllowThreads(__tstate); | |
10443 | if (PyErr_Occurred()) SWIG_fail; | |
10444 | } | |
10445 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
10446 | { | |
10447 | if (temp2) | |
10448 | delete arg2; | |
10449 | } | |
10450 | return resultobj; | |
10451 | fail: | |
10452 | { | |
10453 | if (temp2) | |
10454 | delete arg2; | |
10455 | } | |
10456 | return NULL; | |
10457 | } | |
10458 | ||
10459 | ||
c32bde28 | 10460 | static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10461 | PyObject *resultobj = NULL; |
d55e5bfc | 10462 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; |
ae8162c8 | 10463 | bool arg2 = (bool) true ; |
d55e5bfc RD |
10464 | PyObject * obj0 = 0 ; |
10465 | PyObject * obj1 = 0 ; | |
10466 | char *kwnames[] = { | |
10467 | (char *) "self",(char *) "bShow", NULL | |
10468 | }; | |
10469 | ||
10470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
10472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 10473 | if (obj1) { |
093d3ff1 | 10474 | { |
7449af73 | 10475 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
10476 | if (SWIG_arg_fail(2)) SWIG_fail; |
10477 | } | |
d55e5bfc RD |
10478 | } |
10479 | { | |
10480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10481 | (arg1)->Show(arg2); | |
10482 | ||
10483 | wxPyEndAllowThreads(__tstate); | |
10484 | if (PyErr_Occurred()) SWIG_fail; | |
10485 | } | |
10486 | Py_INCREF(Py_None); resultobj = Py_None; | |
10487 | return resultobj; | |
10488 | fail: | |
10489 | return NULL; | |
10490 | } | |
10491 | ||
10492 | ||
c32bde28 | 10493 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10494 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10495 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; |
10496 | wxFrame *result; | |
10497 | PyObject * obj0 = 0 ; | |
10498 | char *kwnames[] = { | |
10499 | (char *) "self", NULL | |
10500 | }; | |
10501 | ||
10502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
10504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10505 | { |
10506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10507 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
10508 | ||
10509 | wxPyEndAllowThreads(__tstate); | |
10510 | if (PyErr_Occurred()) SWIG_fail; | |
10511 | } | |
10512 | { | |
412d302d | 10513 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
10514 | } |
10515 | return resultobj; | |
10516 | fail: | |
10517 | return NULL; | |
10518 | } | |
10519 | ||
10520 | ||
c32bde28 | 10521 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10522 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10523 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; |
10524 | wxLog *result; | |
10525 | PyObject * obj0 = 0 ; | |
10526 | char *kwnames[] = { | |
10527 | (char *) "self", NULL | |
10528 | }; | |
10529 | ||
10530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
10532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10533 | { |
10534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10535 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
10536 | ||
10537 | wxPyEndAllowThreads(__tstate); | |
10538 | if (PyErr_Occurred()) SWIG_fail; | |
10539 | } | |
10540 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
10541 | return resultobj; | |
10542 | fail: | |
10543 | return NULL; | |
10544 | } | |
10545 | ||
10546 | ||
c32bde28 | 10547 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10548 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10549 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; |
10550 | bool result; | |
10551 | PyObject * obj0 = 0 ; | |
10552 | char *kwnames[] = { | |
10553 | (char *) "self", NULL | |
10554 | }; | |
10555 | ||
10556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10557 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
10558 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10559 | { |
10560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10561 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
10562 | ||
10563 | wxPyEndAllowThreads(__tstate); | |
10564 | if (PyErr_Occurred()) SWIG_fail; | |
10565 | } | |
10566 | { | |
10567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10568 | } | |
10569 | return resultobj; | |
10570 | fail: | |
10571 | return NULL; | |
10572 | } | |
10573 | ||
10574 | ||
c32bde28 | 10575 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10576 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10577 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; |
10578 | bool arg2 ; | |
10579 | PyObject * obj0 = 0 ; | |
10580 | PyObject * obj1 = 0 ; | |
10581 | char *kwnames[] = { | |
10582 | (char *) "self",(char *) "bDoPass", NULL | |
10583 | }; | |
10584 | ||
10585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10586 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
10587 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10588 | { | |
7449af73 | 10589 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
10590 | if (SWIG_arg_fail(2)) SWIG_fail; |
10591 | } | |
d55e5bfc RD |
10592 | { |
10593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10594 | (arg1)->PassMessages(arg2); | |
10595 | ||
10596 | wxPyEndAllowThreads(__tstate); | |
10597 | if (PyErr_Occurred()) SWIG_fail; | |
10598 | } | |
10599 | Py_INCREF(Py_None); resultobj = Py_None; | |
10600 | return resultobj; | |
10601 | fail: | |
10602 | return NULL; | |
10603 | } | |
10604 | ||
10605 | ||
c32bde28 | 10606 | static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10607 | PyObject *obj; |
10608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10609 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
10610 | Py_INCREF(obj); | |
10611 | return Py_BuildValue((char *)""); | |
10612 | } | |
c32bde28 | 10613 | static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10614 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10615 | wxLog *arg1 = (wxLog *) 0 ; |
10616 | wxLogChain *result; | |
10617 | PyObject * obj0 = 0 ; | |
10618 | char *kwnames[] = { | |
10619 | (char *) "logger", NULL | |
10620 | }; | |
10621 | ||
10622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10623 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
10624 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10625 | { |
10626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10627 | result = (wxLogChain *)new wxLogChain(arg1); | |
10628 | ||
10629 | wxPyEndAllowThreads(__tstate); | |
10630 | if (PyErr_Occurred()) SWIG_fail; | |
10631 | } | |
10632 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
10633 | return resultobj; | |
10634 | fail: | |
10635 | return NULL; | |
10636 | } | |
10637 | ||
10638 | ||
c32bde28 | 10639 | static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10640 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10641 | wxLogChain *arg1 = (wxLogChain *) 0 ; |
10642 | wxLog *arg2 = (wxLog *) 0 ; | |
10643 | PyObject * obj0 = 0 ; | |
10644 | PyObject * obj1 = 0 ; | |
10645 | char *kwnames[] = { | |
10646 | (char *) "self",(char *) "logger", NULL | |
10647 | }; | |
10648 | ||
10649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
10651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10652 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); | |
10653 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
10654 | { |
10655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10656 | (arg1)->SetLog(arg2); | |
10657 | ||
10658 | wxPyEndAllowThreads(__tstate); | |
10659 | if (PyErr_Occurred()) SWIG_fail; | |
10660 | } | |
10661 | Py_INCREF(Py_None); resultobj = Py_None; | |
10662 | return resultobj; | |
10663 | fail: | |
10664 | return NULL; | |
10665 | } | |
10666 | ||
10667 | ||
c32bde28 | 10668 | static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10669 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10670 | wxLogChain *arg1 = (wxLogChain *) 0 ; |
10671 | bool arg2 ; | |
10672 | PyObject * obj0 = 0 ; | |
10673 | PyObject * obj1 = 0 ; | |
10674 | char *kwnames[] = { | |
10675 | (char *) "self",(char *) "bDoPass", NULL | |
10676 | }; | |
10677 | ||
10678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10679 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
10680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10681 | { | |
7449af73 | 10682 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
10683 | if (SWIG_arg_fail(2)) SWIG_fail; |
10684 | } | |
d55e5bfc RD |
10685 | { |
10686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10687 | (arg1)->PassMessages(arg2); | |
10688 | ||
10689 | wxPyEndAllowThreads(__tstate); | |
10690 | if (PyErr_Occurred()) SWIG_fail; | |
10691 | } | |
10692 | Py_INCREF(Py_None); resultobj = Py_None; | |
10693 | return resultobj; | |
10694 | fail: | |
10695 | return NULL; | |
10696 | } | |
10697 | ||
10698 | ||
c32bde28 | 10699 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10700 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10701 | wxLogChain *arg1 = (wxLogChain *) 0 ; |
10702 | bool result; | |
10703 | PyObject * obj0 = 0 ; | |
10704 | char *kwnames[] = { | |
10705 | (char *) "self", NULL | |
10706 | }; | |
10707 | ||
10708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10709 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
10710 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10711 | { |
10712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10713 | result = (bool)(arg1)->IsPassingMessages(); | |
10714 | ||
10715 | wxPyEndAllowThreads(__tstate); | |
10716 | if (PyErr_Occurred()) SWIG_fail; | |
10717 | } | |
10718 | { | |
10719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10720 | } | |
10721 | return resultobj; | |
10722 | fail: | |
10723 | return NULL; | |
10724 | } | |
10725 | ||
10726 | ||
c32bde28 | 10727 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10728 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10729 | wxLogChain *arg1 = (wxLogChain *) 0 ; |
10730 | wxLog *result; | |
10731 | PyObject * obj0 = 0 ; | |
10732 | char *kwnames[] = { | |
10733 | (char *) "self", NULL | |
10734 | }; | |
10735 | ||
10736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
10738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10739 | { |
10740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10741 | result = (wxLog *)(arg1)->GetOldLog(); | |
10742 | ||
10743 | wxPyEndAllowThreads(__tstate); | |
10744 | if (PyErr_Occurred()) SWIG_fail; | |
10745 | } | |
10746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
10747 | return resultobj; | |
10748 | fail: | |
10749 | return NULL; | |
10750 | } | |
10751 | ||
10752 | ||
c32bde28 | 10753 | static PyObject * LogChain_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10754 | PyObject *obj; |
10755 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10756 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
10757 | Py_INCREF(obj); | |
10758 | return Py_BuildValue((char *)""); | |
10759 | } | |
be9b1dca | 10760 | static PyObject *_wrap_new_LogBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10761 | PyObject *resultobj = NULL; |
be9b1dca RD |
10762 | wxLogBuffer *result; |
10763 | char *kwnames[] = { | |
10764 | NULL | |
10765 | }; | |
10766 | ||
10767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogBuffer",kwnames)) goto fail; | |
10768 | { | |
10769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10770 | result = (wxLogBuffer *)new wxLogBuffer(); | |
10771 | ||
10772 | wxPyEndAllowThreads(__tstate); | |
10773 | if (PyErr_Occurred()) SWIG_fail; | |
10774 | } | |
10775 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogBuffer, 1); | |
10776 | return resultobj; | |
10777 | fail: | |
10778 | return NULL; | |
10779 | } | |
10780 | ||
10781 | ||
10782 | static PyObject *_wrap_LogBuffer_GetBuffer(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 10783 | PyObject *resultobj = NULL; |
be9b1dca RD |
10784 | wxLogBuffer *arg1 = (wxLogBuffer *) 0 ; |
10785 | wxString *result; | |
10786 | PyObject * obj0 = 0 ; | |
10787 | char *kwnames[] = { | |
10788 | (char *) "self", NULL | |
10789 | }; | |
10790 | ||
10791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogBuffer_GetBuffer",kwnames,&obj0)) goto fail; | |
10792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_EXCEPTION | 0); | |
10793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10794 | { | |
10795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10796 | { | |
10797 | wxString const &_result_ref = ((wxLogBuffer const *)arg1)->GetBuffer(); | |
10798 | result = (wxString *) &_result_ref; | |
10799 | } | |
10800 | ||
10801 | wxPyEndAllowThreads(__tstate); | |
10802 | if (PyErr_Occurred()) SWIG_fail; | |
10803 | } | |
10804 | { | |
10805 | #if wxUSE_UNICODE | |
10806 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10807 | #else | |
10808 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10809 | #endif | |
10810 | } | |
10811 | return resultobj; | |
10812 | fail: | |
10813 | return NULL; | |
10814 | } | |
10815 | ||
10816 | ||
10817 | static PyObject *_wrap_LogBuffer_Flush(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 10818 | PyObject *resultobj = NULL; |
be9b1dca RD |
10819 | wxLogBuffer *arg1 = (wxLogBuffer *) 0 ; |
10820 | PyObject * obj0 = 0 ; | |
10821 | char *kwnames[] = { | |
10822 | (char *) "self", NULL | |
10823 | }; | |
10824 | ||
10825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogBuffer_Flush",kwnames,&obj0)) goto fail; | |
10826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_EXCEPTION | 0); | |
10827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10828 | { | |
10829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10830 | (arg1)->Flush(); | |
10831 | ||
10832 | wxPyEndAllowThreads(__tstate); | |
10833 | if (PyErr_Occurred()) SWIG_fail; | |
10834 | } | |
10835 | Py_INCREF(Py_None); resultobj = Py_None; | |
10836 | return resultobj; | |
10837 | fail: | |
10838 | return NULL; | |
10839 | } | |
10840 | ||
10841 | ||
10842 | static PyObject * LogBuffer_swigregister(PyObject *, PyObject *args) { | |
10843 | PyObject *obj; | |
10844 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10845 | SWIG_TypeClientData(SWIGTYPE_p_wxLogBuffer, obj); | |
10846 | Py_INCREF(obj); | |
10847 | return Py_BuildValue((char *)""); | |
10848 | } | |
c32bde28 | 10849 | static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10850 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10851 | unsigned long result; |
10852 | char *kwnames[] = { | |
10853 | NULL | |
10854 | }; | |
10855 | ||
10856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
10857 | { | |
10858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10859 | result = (unsigned long)wxSysErrorCode(); | |
10860 | ||
10861 | wxPyEndAllowThreads(__tstate); | |
10862 | if (PyErr_Occurred()) SWIG_fail; | |
10863 | } | |
093d3ff1 | 10864 | { |
7449af73 | 10865 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 10866 | } |
d55e5bfc RD |
10867 | return resultobj; |
10868 | fail: | |
10869 | return NULL; | |
10870 | } | |
10871 | ||
10872 | ||
c32bde28 | 10873 | static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10874 | PyObject *resultobj = NULL; |
d55e5bfc RD |
10875 | unsigned long arg1 = (unsigned long) 0 ; |
10876 | wxString result; | |
10877 | PyObject * obj0 = 0 ; | |
10878 | char *kwnames[] = { | |
10879 | (char *) "nErrCode", NULL | |
10880 | }; | |
10881 | ||
10882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
10883 | if (obj0) { | |
093d3ff1 | 10884 | { |
7449af73 | 10885 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
10886 | if (SWIG_arg_fail(1)) SWIG_fail; |
10887 | } | |
d55e5bfc RD |
10888 | } |
10889 | { | |
10890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10891 | result = wxSysErrorMsg(arg1); | |
10892 | ||
10893 | wxPyEndAllowThreads(__tstate); | |
10894 | if (PyErr_Occurred()) SWIG_fail; | |
10895 | } | |
10896 | { | |
10897 | #if wxUSE_UNICODE | |
10898 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10899 | #else | |
10900 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10901 | #endif | |
10902 | } | |
10903 | return resultobj; | |
10904 | fail: | |
10905 | return NULL; | |
10906 | } | |
10907 | ||
10908 | ||
c32bde28 | 10909 | static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10910 | PyObject *resultobj = NULL; |
d55e5bfc | 10911 | wxString *arg1 = 0 ; |
ae8162c8 | 10912 | bool temp1 = false ; |
d55e5bfc RD |
10913 | PyObject * obj0 = 0 ; |
10914 | char *kwnames[] = { | |
10915 | (char *) "msg", NULL | |
10916 | }; | |
10917 | ||
10918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
10919 | { | |
10920 | arg1 = wxString_in_helper(obj0); | |
10921 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10922 | temp1 = true; |
d55e5bfc RD |
10923 | } |
10924 | { | |
10925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10926 | wxPyLogFatalError((wxString const &)*arg1); |
d55e5bfc RD |
10927 | |
10928 | wxPyEndAllowThreads(__tstate); | |
10929 | if (PyErr_Occurred()) SWIG_fail; | |
10930 | } | |
10931 | Py_INCREF(Py_None); resultobj = Py_None; | |
10932 | { | |
10933 | if (temp1) | |
10934 | delete arg1; | |
10935 | } | |
10936 | return resultobj; | |
10937 | fail: | |
10938 | { | |
10939 | if (temp1) | |
10940 | delete arg1; | |
10941 | } | |
10942 | return NULL; | |
10943 | } | |
10944 | ||
10945 | ||
c32bde28 | 10946 | static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10947 | PyObject *resultobj = NULL; |
d55e5bfc | 10948 | wxString *arg1 = 0 ; |
ae8162c8 | 10949 | bool temp1 = false ; |
d55e5bfc RD |
10950 | PyObject * obj0 = 0 ; |
10951 | char *kwnames[] = { | |
10952 | (char *) "msg", NULL | |
10953 | }; | |
10954 | ||
10955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
10956 | { | |
10957 | arg1 = wxString_in_helper(obj0); | |
10958 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10959 | temp1 = true; |
d55e5bfc RD |
10960 | } |
10961 | { | |
10962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10963 | wxPyLogError((wxString const &)*arg1); |
d55e5bfc RD |
10964 | |
10965 | wxPyEndAllowThreads(__tstate); | |
10966 | if (PyErr_Occurred()) SWIG_fail; | |
10967 | } | |
10968 | Py_INCREF(Py_None); resultobj = Py_None; | |
10969 | { | |
10970 | if (temp1) | |
10971 | delete arg1; | |
10972 | } | |
10973 | return resultobj; | |
10974 | fail: | |
10975 | { | |
10976 | if (temp1) | |
10977 | delete arg1; | |
10978 | } | |
10979 | return NULL; | |
10980 | } | |
10981 | ||
10982 | ||
c32bde28 | 10983 | static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 10984 | PyObject *resultobj = NULL; |
d55e5bfc | 10985 | wxString *arg1 = 0 ; |
ae8162c8 | 10986 | bool temp1 = false ; |
d55e5bfc RD |
10987 | PyObject * obj0 = 0 ; |
10988 | char *kwnames[] = { | |
10989 | (char *) "msg", NULL | |
10990 | }; | |
10991 | ||
10992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
10993 | { | |
10994 | arg1 = wxString_in_helper(obj0); | |
10995 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10996 | temp1 = true; |
d55e5bfc RD |
10997 | } |
10998 | { | |
10999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11000 | wxPyLogWarning((wxString const &)*arg1); |
d55e5bfc RD |
11001 | |
11002 | wxPyEndAllowThreads(__tstate); | |
11003 | if (PyErr_Occurred()) SWIG_fail; | |
11004 | } | |
11005 | Py_INCREF(Py_None); resultobj = Py_None; | |
11006 | { | |
11007 | if (temp1) | |
11008 | delete arg1; | |
11009 | } | |
11010 | return resultobj; | |
11011 | fail: | |
11012 | { | |
11013 | if (temp1) | |
11014 | delete arg1; | |
11015 | } | |
11016 | return NULL; | |
11017 | } | |
11018 | ||
11019 | ||
c32bde28 | 11020 | static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11021 | PyObject *resultobj = NULL; |
d55e5bfc | 11022 | wxString *arg1 = 0 ; |
ae8162c8 | 11023 | bool temp1 = false ; |
d55e5bfc RD |
11024 | PyObject * obj0 = 0 ; |
11025 | char *kwnames[] = { | |
11026 | (char *) "msg", NULL | |
11027 | }; | |
11028 | ||
11029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
11030 | { | |
11031 | arg1 = wxString_in_helper(obj0); | |
11032 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11033 | temp1 = true; |
d55e5bfc RD |
11034 | } |
11035 | { | |
11036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11037 | wxPyLogMessage((wxString const &)*arg1); |
d55e5bfc RD |
11038 | |
11039 | wxPyEndAllowThreads(__tstate); | |
11040 | if (PyErr_Occurred()) SWIG_fail; | |
11041 | } | |
11042 | Py_INCREF(Py_None); resultobj = Py_None; | |
11043 | { | |
11044 | if (temp1) | |
11045 | delete arg1; | |
11046 | } | |
11047 | return resultobj; | |
11048 | fail: | |
11049 | { | |
11050 | if (temp1) | |
11051 | delete arg1; | |
11052 | } | |
11053 | return NULL; | |
11054 | } | |
11055 | ||
11056 | ||
c32bde28 | 11057 | static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11058 | PyObject *resultobj = NULL; |
d55e5bfc | 11059 | wxString *arg1 = 0 ; |
ae8162c8 | 11060 | bool temp1 = false ; |
d55e5bfc RD |
11061 | PyObject * obj0 = 0 ; |
11062 | char *kwnames[] = { | |
11063 | (char *) "msg", NULL | |
11064 | }; | |
11065 | ||
11066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
11067 | { | |
11068 | arg1 = wxString_in_helper(obj0); | |
11069 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11070 | temp1 = true; |
d55e5bfc RD |
11071 | } |
11072 | { | |
11073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11074 | wxPyLogInfo((wxString const &)*arg1); |
d55e5bfc RD |
11075 | |
11076 | wxPyEndAllowThreads(__tstate); | |
11077 | if (PyErr_Occurred()) SWIG_fail; | |
11078 | } | |
11079 | Py_INCREF(Py_None); resultobj = Py_None; | |
11080 | { | |
11081 | if (temp1) | |
11082 | delete arg1; | |
11083 | } | |
11084 | return resultobj; | |
11085 | fail: | |
11086 | { | |
11087 | if (temp1) | |
11088 | delete arg1; | |
11089 | } | |
11090 | return NULL; | |
11091 | } | |
11092 | ||
11093 | ||
c32bde28 | 11094 | static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11095 | PyObject *resultobj = NULL; |
d55e5bfc | 11096 | wxString *arg1 = 0 ; |
ae8162c8 | 11097 | bool temp1 = false ; |
d55e5bfc RD |
11098 | PyObject * obj0 = 0 ; |
11099 | char *kwnames[] = { | |
11100 | (char *) "msg", NULL | |
11101 | }; | |
11102 | ||
11103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
11104 | { | |
11105 | arg1 = wxString_in_helper(obj0); | |
11106 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11107 | temp1 = true; |
d55e5bfc RD |
11108 | } |
11109 | { | |
11110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11111 | wxPyLogDebug((wxString const &)*arg1); |
d55e5bfc RD |
11112 | |
11113 | wxPyEndAllowThreads(__tstate); | |
11114 | if (PyErr_Occurred()) SWIG_fail; | |
11115 | } | |
11116 | Py_INCREF(Py_None); resultobj = Py_None; | |
11117 | { | |
11118 | if (temp1) | |
11119 | delete arg1; | |
11120 | } | |
11121 | return resultobj; | |
11122 | fail: | |
11123 | { | |
11124 | if (temp1) | |
11125 | delete arg1; | |
11126 | } | |
11127 | return NULL; | |
11128 | } | |
11129 | ||
11130 | ||
c32bde28 | 11131 | static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11132 | PyObject *resultobj = NULL; |
d55e5bfc | 11133 | wxString *arg1 = 0 ; |
ae8162c8 | 11134 | bool temp1 = false ; |
d55e5bfc RD |
11135 | PyObject * obj0 = 0 ; |
11136 | char *kwnames[] = { | |
11137 | (char *) "msg", NULL | |
11138 | }; | |
11139 | ||
11140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
11141 | { | |
11142 | arg1 = wxString_in_helper(obj0); | |
11143 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11144 | temp1 = true; |
d55e5bfc RD |
11145 | } |
11146 | { | |
11147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11148 | wxPyLogVerbose((wxString const &)*arg1); |
d55e5bfc RD |
11149 | |
11150 | wxPyEndAllowThreads(__tstate); | |
11151 | if (PyErr_Occurred()) SWIG_fail; | |
11152 | } | |
11153 | Py_INCREF(Py_None); resultobj = Py_None; | |
11154 | { | |
11155 | if (temp1) | |
11156 | delete arg1; | |
11157 | } | |
11158 | return resultobj; | |
11159 | fail: | |
11160 | { | |
11161 | if (temp1) | |
11162 | delete arg1; | |
11163 | } | |
11164 | return NULL; | |
11165 | } | |
11166 | ||
11167 | ||
c32bde28 | 11168 | static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11169 | PyObject *resultobj = NULL; |
d55e5bfc | 11170 | wxString *arg1 = 0 ; |
ae8162c8 | 11171 | bool temp1 = false ; |
d55e5bfc RD |
11172 | PyObject * obj0 = 0 ; |
11173 | char *kwnames[] = { | |
11174 | (char *) "msg", NULL | |
11175 | }; | |
11176 | ||
11177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
11178 | { | |
11179 | arg1 = wxString_in_helper(obj0); | |
11180 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11181 | temp1 = true; |
d55e5bfc RD |
11182 | } |
11183 | { | |
11184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11185 | wxPyLogStatus((wxString const &)*arg1); |
d55e5bfc RD |
11186 | |
11187 | wxPyEndAllowThreads(__tstate); | |
11188 | if (PyErr_Occurred()) SWIG_fail; | |
11189 | } | |
11190 | Py_INCREF(Py_None); resultobj = Py_None; | |
11191 | { | |
11192 | if (temp1) | |
11193 | delete arg1; | |
11194 | } | |
11195 | return resultobj; | |
11196 | fail: | |
11197 | { | |
11198 | if (temp1) | |
11199 | delete arg1; | |
11200 | } | |
11201 | return NULL; | |
11202 | } | |
11203 | ||
11204 | ||
c32bde28 | 11205 | static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11206 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11207 | wxFrame *arg1 = (wxFrame *) 0 ; |
11208 | wxString *arg2 = 0 ; | |
ae8162c8 | 11209 | bool temp2 = false ; |
d55e5bfc RD |
11210 | PyObject * obj0 = 0 ; |
11211 | PyObject * obj1 = 0 ; | |
11212 | char *kwnames[] = { | |
11213 | (char *) "pFrame",(char *) "msg", NULL | |
11214 | }; | |
11215 | ||
11216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0); |
11218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11219 | { |
11220 | arg2 = wxString_in_helper(obj1); | |
11221 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11222 | temp2 = true; |
d55e5bfc RD |
11223 | } |
11224 | { | |
11225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11226 | wxPyLogStatusFrame(arg1,(wxString const &)*arg2); |
d55e5bfc RD |
11227 | |
11228 | wxPyEndAllowThreads(__tstate); | |
11229 | if (PyErr_Occurred()) SWIG_fail; | |
11230 | } | |
11231 | Py_INCREF(Py_None); resultobj = Py_None; | |
11232 | { | |
11233 | if (temp2) | |
11234 | delete arg2; | |
11235 | } | |
11236 | return resultobj; | |
11237 | fail: | |
11238 | { | |
11239 | if (temp2) | |
11240 | delete arg2; | |
11241 | } | |
11242 | return NULL; | |
11243 | } | |
11244 | ||
11245 | ||
c32bde28 | 11246 | static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11247 | PyObject *resultobj = NULL; |
d55e5bfc | 11248 | wxString *arg1 = 0 ; |
ae8162c8 | 11249 | bool temp1 = false ; |
d55e5bfc RD |
11250 | PyObject * obj0 = 0 ; |
11251 | char *kwnames[] = { | |
11252 | (char *) "msg", NULL | |
11253 | }; | |
11254 | ||
11255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
11256 | { | |
11257 | arg1 = wxString_in_helper(obj0); | |
11258 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11259 | temp1 = true; |
d55e5bfc RD |
11260 | } |
11261 | { | |
11262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11263 | wxPyLogSysError((wxString const &)*arg1); |
d55e5bfc RD |
11264 | |
11265 | wxPyEndAllowThreads(__tstate); | |
11266 | if (PyErr_Occurred()) SWIG_fail; | |
11267 | } | |
11268 | Py_INCREF(Py_None); resultobj = Py_None; | |
11269 | { | |
11270 | if (temp1) | |
11271 | delete arg1; | |
11272 | } | |
11273 | return resultobj; | |
11274 | fail: | |
11275 | { | |
11276 | if (temp1) | |
11277 | delete arg1; | |
11278 | } | |
11279 | return NULL; | |
11280 | } | |
11281 | ||
11282 | ||
f78cc896 | 11283 | static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11284 | PyObject *resultobj = NULL; |
f78cc896 RD |
11285 | unsigned long arg1 ; |
11286 | wxString *arg2 = 0 ; | |
11287 | bool temp2 = false ; | |
11288 | PyObject * obj0 = 0 ; | |
11289 | PyObject * obj1 = 0 ; | |
11290 | char *kwnames[] = { | |
11291 | (char *) "level",(char *) "msg", NULL | |
11292 | }; | |
11293 | ||
11294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 | 11295 | { |
7449af73 | 11296 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
11297 | if (SWIG_arg_fail(1)) SWIG_fail; |
11298 | } | |
f78cc896 RD |
11299 | { |
11300 | arg2 = wxString_in_helper(obj1); | |
11301 | if (arg2 == NULL) SWIG_fail; | |
11302 | temp2 = true; | |
11303 | } | |
11304 | { | |
11305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11306 | wxPyLogGeneric(arg1,(wxString const &)*arg2); | |
11307 | ||
11308 | wxPyEndAllowThreads(__tstate); | |
11309 | if (PyErr_Occurred()) SWIG_fail; | |
11310 | } | |
11311 | Py_INCREF(Py_None); resultobj = Py_None; | |
11312 | { | |
11313 | if (temp2) | |
11314 | delete arg2; | |
11315 | } | |
11316 | return resultobj; | |
11317 | fail: | |
11318 | { | |
11319 | if (temp2) | |
11320 | delete arg2; | |
11321 | } | |
11322 | return NULL; | |
11323 | } | |
11324 | ||
11325 | ||
c32bde28 | 11326 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) { |
7449af73 | 11327 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11328 | unsigned long arg1 ; |
11329 | wxString *arg2 = 0 ; | |
ae8162c8 | 11330 | bool temp2 = false ; |
d55e5bfc RD |
11331 | PyObject * obj0 = 0 ; |
11332 | PyObject * obj1 = 0 ; | |
11333 | ||
11334 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
093d3ff1 | 11335 | { |
7449af73 | 11336 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
11337 | if (SWIG_arg_fail(1)) SWIG_fail; |
11338 | } | |
d55e5bfc RD |
11339 | { |
11340 | arg2 = wxString_in_helper(obj1); | |
11341 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11342 | temp2 = true; |
d55e5bfc RD |
11343 | } |
11344 | { | |
11345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11346 | wxPyLogTrace(arg1,(wxString const &)*arg2); |
d55e5bfc RD |
11347 | |
11348 | wxPyEndAllowThreads(__tstate); | |
11349 | if (PyErr_Occurred()) SWIG_fail; | |
11350 | } | |
11351 | Py_INCREF(Py_None); resultobj = Py_None; | |
11352 | { | |
11353 | if (temp2) | |
11354 | delete arg2; | |
11355 | } | |
11356 | return resultobj; | |
11357 | fail: | |
11358 | { | |
11359 | if (temp2) | |
11360 | delete arg2; | |
11361 | } | |
11362 | return NULL; | |
11363 | } | |
11364 | ||
11365 | ||
c32bde28 | 11366 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) { |
7449af73 | 11367 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11368 | wxString *arg1 = 0 ; |
11369 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
11370 | bool temp1 = false ; |
11371 | bool temp2 = false ; | |
d55e5bfc RD |
11372 | PyObject * obj0 = 0 ; |
11373 | PyObject * obj1 = 0 ; | |
11374 | ||
11375 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
11376 | { | |
11377 | arg1 = wxString_in_helper(obj0); | |
11378 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11379 | temp1 = true; |
d55e5bfc RD |
11380 | } |
11381 | { | |
11382 | arg2 = wxString_in_helper(obj1); | |
11383 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11384 | temp2 = true; |
d55e5bfc RD |
11385 | } |
11386 | { | |
11387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11388 | wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2); |
d55e5bfc RD |
11389 | |
11390 | wxPyEndAllowThreads(__tstate); | |
11391 | if (PyErr_Occurred()) SWIG_fail; | |
11392 | } | |
11393 | Py_INCREF(Py_None); resultobj = Py_None; | |
11394 | { | |
11395 | if (temp1) | |
11396 | delete arg1; | |
11397 | } | |
11398 | { | |
11399 | if (temp2) | |
11400 | delete arg2; | |
11401 | } | |
11402 | return resultobj; | |
11403 | fail: | |
11404 | { | |
11405 | if (temp1) | |
11406 | delete arg1; | |
11407 | } | |
11408 | { | |
11409 | if (temp2) | |
11410 | delete arg2; | |
11411 | } | |
11412 | return NULL; | |
11413 | } | |
11414 | ||
11415 | ||
11416 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
11417 | int argc; | |
11418 | PyObject *argv[3]; | |
11419 | int ii; | |
11420 | ||
11421 | argc = PyObject_Length(args); | |
11422 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
11423 | argv[ii] = PyTuple_GetItem(args,ii); | |
11424 | } | |
11425 | if (argc == 2) { | |
11426 | int _v; | |
11427 | { | |
11428 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
11429 | } | |
11430 | if (_v) { | |
11431 | { | |
11432 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
11433 | } | |
11434 | if (_v) { | |
11435 | return _wrap_LogTrace__SWIG_1(self,args); | |
11436 | } | |
11437 | } | |
11438 | } | |
11439 | if (argc == 2) { | |
11440 | int _v; | |
c32bde28 | 11441 | _v = SWIG_Check_unsigned_SS_long(argv[0]); |
d55e5bfc RD |
11442 | if (_v) { |
11443 | { | |
11444 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
11445 | } | |
11446 | if (_v) { | |
11447 | return _wrap_LogTrace__SWIG_0(self,args); | |
11448 | } | |
11449 | } | |
11450 | } | |
11451 | ||
093d3ff1 | 11452 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'LogTrace'"); |
d55e5bfc RD |
11453 | return NULL; |
11454 | } | |
11455 | ||
11456 | ||
c32bde28 | 11457 | static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11458 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11459 | wxString *arg1 = 0 ; |
11460 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
11461 | bool temp1 = false ; |
11462 | bool temp2 = false ; | |
d55e5bfc RD |
11463 | PyObject * obj0 = 0 ; |
11464 | PyObject * obj1 = 0 ; | |
11465 | char *kwnames[] = { | |
11466 | (char *) "title",(char *) "text", NULL | |
11467 | }; | |
11468 | ||
11469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
11470 | { | |
11471 | arg1 = wxString_in_helper(obj0); | |
11472 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11473 | temp1 = true; |
d55e5bfc RD |
11474 | } |
11475 | { | |
11476 | arg2 = wxString_in_helper(obj1); | |
11477 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11478 | temp2 = true; |
d55e5bfc RD |
11479 | } |
11480 | { | |
11481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11482 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
11483 | ||
11484 | wxPyEndAllowThreads(__tstate); | |
11485 | if (PyErr_Occurred()) SWIG_fail; | |
11486 | } | |
11487 | Py_INCREF(Py_None); resultobj = Py_None; | |
11488 | { | |
11489 | if (temp1) | |
11490 | delete arg1; | |
11491 | } | |
11492 | { | |
11493 | if (temp2) | |
11494 | delete arg2; | |
11495 | } | |
11496 | return resultobj; | |
11497 | fail: | |
11498 | { | |
11499 | if (temp1) | |
11500 | delete arg1; | |
11501 | } | |
11502 | { | |
11503 | if (temp2) | |
11504 | delete arg2; | |
11505 | } | |
11506 | return NULL; | |
11507 | } | |
11508 | ||
11509 | ||
c32bde28 | 11510 | static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11511 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11512 | wxLogNull *result; |
11513 | char *kwnames[] = { | |
11514 | NULL | |
11515 | }; | |
11516 | ||
11517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
11518 | { | |
11519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11520 | result = (wxLogNull *)new wxLogNull(); | |
11521 | ||
11522 | wxPyEndAllowThreads(__tstate); | |
11523 | if (PyErr_Occurred()) SWIG_fail; | |
11524 | } | |
11525 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
11526 | return resultobj; | |
11527 | fail: | |
11528 | return NULL; | |
11529 | } | |
11530 | ||
11531 | ||
c32bde28 | 11532 | static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11533 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11534 | wxLogNull *arg1 = (wxLogNull *) 0 ; |
11535 | PyObject * obj0 = 0 ; | |
11536 | char *kwnames[] = { | |
11537 | (char *) "self", NULL | |
11538 | }; | |
11539 | ||
11540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogNull, SWIG_POINTER_EXCEPTION | 0); |
11542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11543 | { |
11544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11545 | delete arg1; | |
11546 | ||
11547 | wxPyEndAllowThreads(__tstate); | |
11548 | if (PyErr_Occurred()) SWIG_fail; | |
11549 | } | |
11550 | Py_INCREF(Py_None); resultobj = Py_None; | |
11551 | return resultobj; | |
11552 | fail: | |
11553 | return NULL; | |
11554 | } | |
11555 | ||
11556 | ||
c32bde28 | 11557 | static PyObject * LogNull_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11558 | PyObject *obj; |
11559 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11560 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
11561 | Py_INCREF(obj); | |
11562 | return Py_BuildValue((char *)""); | |
11563 | } | |
c32bde28 | 11564 | static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11565 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11566 | wxPyLog *result; |
11567 | char *kwnames[] = { | |
11568 | NULL | |
11569 | }; | |
11570 | ||
11571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
11572 | { | |
11573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11574 | result = (wxPyLog *)new wxPyLog(); | |
11575 | ||
11576 | wxPyEndAllowThreads(__tstate); | |
11577 | if (PyErr_Occurred()) SWIG_fail; | |
11578 | } | |
11579 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
11580 | return resultobj; | |
11581 | fail: | |
11582 | return NULL; | |
11583 | } | |
11584 | ||
11585 | ||
c32bde28 | 11586 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11587 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11588 | wxPyLog *arg1 = (wxPyLog *) 0 ; |
11589 | PyObject *arg2 = (PyObject *) 0 ; | |
11590 | PyObject *arg3 = (PyObject *) 0 ; | |
11591 | PyObject * obj0 = 0 ; | |
11592 | PyObject * obj1 = 0 ; | |
11593 | PyObject * obj2 = 0 ; | |
11594 | char *kwnames[] = { | |
11595 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
11596 | }; | |
11597 | ||
11598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyLog, SWIG_POINTER_EXCEPTION | 0); |
11600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11601 | arg2 = obj1; |
11602 | arg3 = obj2; | |
11603 | { | |
11604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11605 | (arg1)->_setCallbackInfo(arg2,arg3); | |
11606 | ||
11607 | wxPyEndAllowThreads(__tstate); | |
11608 | if (PyErr_Occurred()) SWIG_fail; | |
11609 | } | |
11610 | Py_INCREF(Py_None); resultobj = Py_None; | |
11611 | return resultobj; | |
11612 | fail: | |
11613 | return NULL; | |
11614 | } | |
11615 | ||
11616 | ||
c32bde28 | 11617 | static PyObject * PyLog_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11618 | PyObject *obj; |
11619 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11620 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
11621 | Py_INCREF(obj); | |
11622 | return Py_BuildValue((char *)""); | |
11623 | } | |
c32bde28 | 11624 | static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11625 | PyObject *resultobj = NULL; |
d55e5bfc | 11626 | int arg1 ; |
093d3ff1 | 11627 | wxSignal arg2 = (wxSignal) wxSIGTERM ; |
c9c2cf70 | 11628 | int arg3 = (int) wxKILL_NOCHILDREN ; |
093d3ff1 | 11629 | wxKillError result; |
d55e5bfc RD |
11630 | PyObject * obj0 = 0 ; |
11631 | PyObject * obj1 = 0 ; | |
c9c2cf70 | 11632 | PyObject * obj2 = 0 ; |
d55e5bfc | 11633 | char *kwnames[] = { |
c9c2cf70 | 11634 | (char *) "pid",(char *) "sig",(char *) "flags", NULL |
d55e5bfc RD |
11635 | }; |
11636 | ||
c9c2cf70 | 11637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Process_Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 | 11638 | { |
7449af73 | 11639 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
11640 | if (SWIG_arg_fail(1)) SWIG_fail; |
11641 | } | |
d55e5bfc | 11642 | if (obj1) { |
093d3ff1 | 11643 | { |
7449af73 | 11644 | arg2 = static_cast<wxSignal >(SWIG_As_int(obj1)); |
093d3ff1 RD |
11645 | if (SWIG_arg_fail(2)) SWIG_fail; |
11646 | } | |
d55e5bfc | 11647 | } |
c9c2cf70 | 11648 | if (obj2) { |
093d3ff1 | 11649 | { |
7449af73 | 11650 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
11651 | if (SWIG_arg_fail(3)) SWIG_fail; |
11652 | } | |
c9c2cf70 | 11653 | } |
d55e5bfc RD |
11654 | { |
11655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 11656 | result = (wxKillError)wxPyProcess::Kill(arg1,arg2,arg3); |
d55e5bfc RD |
11657 | |
11658 | wxPyEndAllowThreads(__tstate); | |
11659 | if (PyErr_Occurred()) SWIG_fail; | |
11660 | } | |
093d3ff1 | 11661 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
11662 | return resultobj; |
11663 | fail: | |
11664 | return NULL; | |
11665 | } | |
11666 | ||
11667 | ||
c32bde28 | 11668 | static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11669 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11670 | int arg1 ; |
11671 | bool result; | |
11672 | PyObject * obj0 = 0 ; | |
11673 | char *kwnames[] = { | |
11674 | (char *) "pid", NULL | |
11675 | }; | |
11676 | ||
11677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
093d3ff1 | 11678 | { |
7449af73 | 11679 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
11680 | if (SWIG_arg_fail(1)) SWIG_fail; |
11681 | } | |
d55e5bfc RD |
11682 | { |
11683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11684 | result = (bool)wxPyProcess::Exists(arg1); | |
11685 | ||
11686 | wxPyEndAllowThreads(__tstate); | |
11687 | if (PyErr_Occurred()) SWIG_fail; | |
11688 | } | |
11689 | { | |
11690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11691 | } | |
11692 | return resultobj; | |
11693 | fail: | |
11694 | return NULL; | |
11695 | } | |
11696 | ||
11697 | ||
c32bde28 | 11698 | static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11699 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11700 | wxString *arg1 = 0 ; |
11701 | int arg2 = (int) wxEXEC_ASYNC ; | |
11702 | wxPyProcess *result; | |
ae8162c8 | 11703 | bool temp1 = false ; |
d55e5bfc RD |
11704 | PyObject * obj0 = 0 ; |
11705 | PyObject * obj1 = 0 ; | |
11706 | char *kwnames[] = { | |
11707 | (char *) "cmd",(char *) "flags", NULL | |
11708 | }; | |
11709 | ||
11710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
11711 | { | |
11712 | arg1 = wxString_in_helper(obj0); | |
11713 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11714 | temp1 = true; |
d55e5bfc RD |
11715 | } |
11716 | if (obj1) { | |
093d3ff1 | 11717 | { |
7449af73 | 11718 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
11719 | if (SWIG_arg_fail(2)) SWIG_fail; |
11720 | } | |
d55e5bfc RD |
11721 | } |
11722 | { | |
11723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11724 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
11725 | ||
11726 | wxPyEndAllowThreads(__tstate); | |
11727 | if (PyErr_Occurred()) SWIG_fail; | |
11728 | } | |
11729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
11730 | { | |
11731 | if (temp1) | |
11732 | delete arg1; | |
11733 | } | |
11734 | return resultobj; | |
11735 | fail: | |
11736 | { | |
11737 | if (temp1) | |
11738 | delete arg1; | |
11739 | } | |
11740 | return NULL; | |
11741 | } | |
11742 | ||
11743 | ||
c32bde28 | 11744 | static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11745 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11746 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; |
11747 | int arg2 = (int) -1 ; | |
11748 | wxPyProcess *result; | |
11749 | PyObject * obj0 = 0 ; | |
11750 | PyObject * obj1 = 0 ; | |
11751 | char *kwnames[] = { | |
11752 | (char *) "parent",(char *) "id", NULL | |
11753 | }; | |
11754 | ||
11755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
11756 | if (obj0) { | |
093d3ff1 RD |
11757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
11758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11759 | } |
11760 | if (obj1) { | |
093d3ff1 | 11761 | { |
7449af73 | 11762 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
11763 | if (SWIG_arg_fail(2)) SWIG_fail; |
11764 | } | |
d55e5bfc RD |
11765 | } |
11766 | { | |
11767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11768 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
11769 | ||
11770 | wxPyEndAllowThreads(__tstate); | |
11771 | if (PyErr_Occurred()) SWIG_fail; | |
11772 | } | |
11773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
11774 | return resultobj; | |
11775 | fail: | |
11776 | return NULL; | |
11777 | } | |
11778 | ||
11779 | ||
c32bde28 | 11780 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11781 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11782 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11783 | PyObject *arg2 = (PyObject *) 0 ; | |
11784 | PyObject *arg3 = (PyObject *) 0 ; | |
11785 | PyObject * obj0 = 0 ; | |
11786 | PyObject * obj1 = 0 ; | |
11787 | PyObject * obj2 = 0 ; | |
11788 | char *kwnames[] = { | |
11789 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
11790 | }; | |
11791 | ||
11792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11793 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11794 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11795 | arg2 = obj1; |
11796 | arg3 = obj2; | |
11797 | { | |
11798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11799 | (arg1)->_setCallbackInfo(arg2,arg3); | |
11800 | ||
11801 | wxPyEndAllowThreads(__tstate); | |
11802 | if (PyErr_Occurred()) SWIG_fail; | |
11803 | } | |
11804 | Py_INCREF(Py_None); resultobj = Py_None; | |
11805 | return resultobj; | |
11806 | fail: | |
11807 | return NULL; | |
11808 | } | |
11809 | ||
11810 | ||
c32bde28 | 11811 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11812 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11813 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11814 | int arg2 ; | |
11815 | int arg3 ; | |
11816 | PyObject * obj0 = 0 ; | |
11817 | PyObject * obj1 = 0 ; | |
11818 | PyObject * obj2 = 0 ; | |
11819 | char *kwnames[] = { | |
11820 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
11821 | }; | |
11822 | ||
11823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11824 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11825 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11826 | { | |
7449af73 | 11827 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
11828 | if (SWIG_arg_fail(2)) SWIG_fail; |
11829 | } | |
11830 | { | |
7449af73 | 11831 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
11832 | if (SWIG_arg_fail(3)) SWIG_fail; |
11833 | } | |
d55e5bfc RD |
11834 | { |
11835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11836 | (arg1)->base_OnTerminate(arg2,arg3); | |
11837 | ||
11838 | wxPyEndAllowThreads(__tstate); | |
11839 | if (PyErr_Occurred()) SWIG_fail; | |
11840 | } | |
11841 | Py_INCREF(Py_None); resultobj = Py_None; | |
11842 | return resultobj; | |
11843 | fail: | |
11844 | return NULL; | |
11845 | } | |
11846 | ||
11847 | ||
c32bde28 | 11848 | static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11849 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11850 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11851 | PyObject * obj0 = 0 ; | |
11852 | char *kwnames[] = { | |
11853 | (char *) "self", NULL | |
11854 | }; | |
11855 | ||
11856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11859 | { |
11860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11861 | (arg1)->Redirect(); | |
11862 | ||
11863 | wxPyEndAllowThreads(__tstate); | |
11864 | if (PyErr_Occurred()) SWIG_fail; | |
11865 | } | |
11866 | Py_INCREF(Py_None); resultobj = Py_None; | |
11867 | return resultobj; | |
11868 | fail: | |
11869 | return NULL; | |
11870 | } | |
11871 | ||
11872 | ||
c32bde28 | 11873 | static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11874 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11875 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11876 | bool result; | |
11877 | PyObject * obj0 = 0 ; | |
11878 | char *kwnames[] = { | |
11879 | (char *) "self", NULL | |
11880 | }; | |
11881 | ||
11882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11883 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11884 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11885 | { |
11886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11887 | result = (bool)(arg1)->IsRedirected(); | |
11888 | ||
11889 | wxPyEndAllowThreads(__tstate); | |
11890 | if (PyErr_Occurred()) SWIG_fail; | |
11891 | } | |
11892 | { | |
11893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11894 | } | |
11895 | return resultobj; | |
11896 | fail: | |
11897 | return NULL; | |
11898 | } | |
11899 | ||
11900 | ||
c32bde28 | 11901 | static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11902 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11903 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11904 | PyObject * obj0 = 0 ; | |
11905 | char *kwnames[] = { | |
11906 | (char *) "self", NULL | |
11907 | }; | |
11908 | ||
11909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11912 | { |
11913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11914 | (arg1)->Detach(); | |
11915 | ||
11916 | wxPyEndAllowThreads(__tstate); | |
11917 | if (PyErr_Occurred()) SWIG_fail; | |
11918 | } | |
11919 | Py_INCREF(Py_None); resultobj = Py_None; | |
11920 | return resultobj; | |
11921 | fail: | |
11922 | return NULL; | |
11923 | } | |
11924 | ||
11925 | ||
c32bde28 | 11926 | static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11927 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11928 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11929 | wxInputStream *result; | |
11930 | PyObject * obj0 = 0 ; | |
11931 | char *kwnames[] = { | |
11932 | (char *) "self", NULL | |
11933 | }; | |
11934 | ||
11935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11936 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11937 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11938 | { |
11939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11940 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
11941 | ||
11942 | wxPyEndAllowThreads(__tstate); | |
11943 | if (PyErr_Occurred()) SWIG_fail; | |
11944 | } | |
11945 | { | |
11946 | wxPyInputStream * _ptr = NULL; | |
11947 | ||
11948 | if (result) { | |
11949 | _ptr = new wxPyInputStream(result); | |
11950 | } | |
fc71d09b | 11951 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
11952 | } |
11953 | return resultobj; | |
11954 | fail: | |
11955 | return NULL; | |
11956 | } | |
11957 | ||
11958 | ||
c32bde28 | 11959 | static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11960 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11961 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11962 | wxInputStream *result; | |
11963 | PyObject * obj0 = 0 ; | |
11964 | char *kwnames[] = { | |
11965 | (char *) "self", NULL | |
11966 | }; | |
11967 | ||
11968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11969 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11971 | { |
11972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11973 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
11974 | ||
11975 | wxPyEndAllowThreads(__tstate); | |
11976 | if (PyErr_Occurred()) SWIG_fail; | |
11977 | } | |
11978 | { | |
11979 | wxPyInputStream * _ptr = NULL; | |
11980 | ||
11981 | if (result) { | |
11982 | _ptr = new wxPyInputStream(result); | |
11983 | } | |
fc71d09b | 11984 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
11985 | } |
11986 | return resultobj; | |
11987 | fail: | |
11988 | return NULL; | |
11989 | } | |
11990 | ||
11991 | ||
c32bde28 | 11992 | static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 11993 | PyObject *resultobj = NULL; |
d55e5bfc RD |
11994 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11995 | wxOutputStream *result; | |
11996 | PyObject * obj0 = 0 ; | |
11997 | char *kwnames[] = { | |
11998 | (char *) "self", NULL | |
11999 | }; | |
12000 | ||
12001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12002 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12003 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12004 | { |
12005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12006 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
12007 | ||
12008 | wxPyEndAllowThreads(__tstate); | |
12009 | if (PyErr_Occurred()) SWIG_fail; | |
12010 | } | |
12011 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
12012 | return resultobj; | |
12013 | fail: | |
12014 | return NULL; | |
12015 | } | |
12016 | ||
12017 | ||
c32bde28 | 12018 | static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12019 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12020 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
12021 | PyObject * obj0 = 0 ; | |
12022 | char *kwnames[] = { | |
12023 | (char *) "self", NULL | |
12024 | }; | |
12025 | ||
12026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12027 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12028 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12029 | { |
12030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12031 | (arg1)->CloseOutput(); | |
12032 | ||
12033 | wxPyEndAllowThreads(__tstate); | |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
12035 | } | |
12036 | Py_INCREF(Py_None); resultobj = Py_None; | |
12037 | return resultobj; | |
12038 | fail: | |
12039 | return NULL; | |
12040 | } | |
12041 | ||
12042 | ||
c32bde28 | 12043 | static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12044 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12045 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
12046 | bool result; | |
12047 | PyObject * obj0 = 0 ; | |
12048 | char *kwnames[] = { | |
12049 | (char *) "self", NULL | |
12050 | }; | |
12051 | ||
12052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12055 | { |
12056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12057 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
12058 | ||
12059 | wxPyEndAllowThreads(__tstate); | |
12060 | if (PyErr_Occurred()) SWIG_fail; | |
12061 | } | |
12062 | { | |
12063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12064 | } | |
12065 | return resultobj; | |
12066 | fail: | |
12067 | return NULL; | |
12068 | } | |
12069 | ||
12070 | ||
c32bde28 | 12071 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12072 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12073 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
12074 | bool result; | |
12075 | PyObject * obj0 = 0 ; | |
12076 | char *kwnames[] = { | |
12077 | (char *) "self", NULL | |
12078 | }; | |
12079 | ||
12080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12083 | { |
12084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12085 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
12086 | ||
12087 | wxPyEndAllowThreads(__tstate); | |
12088 | if (PyErr_Occurred()) SWIG_fail; | |
12089 | } | |
12090 | { | |
12091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12092 | } | |
12093 | return resultobj; | |
12094 | fail: | |
12095 | return NULL; | |
12096 | } | |
12097 | ||
12098 | ||
c32bde28 | 12099 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12100 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12101 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
12102 | bool result; | |
12103 | PyObject * obj0 = 0 ; | |
12104 | char *kwnames[] = { | |
12105 | (char *) "self", NULL | |
12106 | }; | |
12107 | ||
12108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12111 | { |
12112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12113 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
12114 | ||
12115 | wxPyEndAllowThreads(__tstate); | |
12116 | if (PyErr_Occurred()) SWIG_fail; | |
12117 | } | |
12118 | { | |
12119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12120 | } | |
12121 | return resultobj; | |
12122 | fail: | |
12123 | return NULL; | |
12124 | } | |
12125 | ||
12126 | ||
c32bde28 | 12127 | static PyObject * Process_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12128 | PyObject *obj; |
12129 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12130 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
12131 | Py_INCREF(obj); | |
12132 | return Py_BuildValue((char *)""); | |
12133 | } | |
c32bde28 | 12134 | static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12135 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12136 | int arg1 = (int) 0 ; |
12137 | int arg2 = (int) 0 ; | |
12138 | int arg3 = (int) 0 ; | |
12139 | wxProcessEvent *result; | |
12140 | PyObject * obj0 = 0 ; | |
12141 | PyObject * obj1 = 0 ; | |
12142 | PyObject * obj2 = 0 ; | |
12143 | char *kwnames[] = { | |
12144 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
12145 | }; | |
12146 | ||
12147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12148 | if (obj0) { | |
093d3ff1 | 12149 | { |
7449af73 | 12150 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
12151 | if (SWIG_arg_fail(1)) SWIG_fail; |
12152 | } | |
d55e5bfc RD |
12153 | } |
12154 | if (obj1) { | |
093d3ff1 | 12155 | { |
7449af73 | 12156 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12157 | if (SWIG_arg_fail(2)) SWIG_fail; |
12158 | } | |
d55e5bfc RD |
12159 | } |
12160 | if (obj2) { | |
093d3ff1 | 12161 | { |
7449af73 | 12162 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12163 | if (SWIG_arg_fail(3)) SWIG_fail; |
12164 | } | |
d55e5bfc RD |
12165 | } |
12166 | { | |
12167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12168 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
12169 | ||
12170 | wxPyEndAllowThreads(__tstate); | |
12171 | if (PyErr_Occurred()) SWIG_fail; | |
12172 | } | |
12173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
12174 | return resultobj; | |
12175 | fail: | |
12176 | return NULL; | |
12177 | } | |
12178 | ||
12179 | ||
c32bde28 | 12180 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12181 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12182 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12183 | int result; | |
12184 | PyObject * obj0 = 0 ; | |
12185 | char *kwnames[] = { | |
12186 | (char *) "self", NULL | |
12187 | }; | |
12188 | ||
12189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12192 | { |
12193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12194 | result = (int)(arg1)->GetPid(); | |
12195 | ||
12196 | wxPyEndAllowThreads(__tstate); | |
12197 | if (PyErr_Occurred()) SWIG_fail; | |
12198 | } | |
093d3ff1 | 12199 | { |
7449af73 | 12200 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12201 | } |
d55e5bfc RD |
12202 | return resultobj; |
12203 | fail: | |
12204 | return NULL; | |
12205 | } | |
12206 | ||
12207 | ||
c32bde28 | 12208 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12209 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12210 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12211 | int result; | |
12212 | PyObject * obj0 = 0 ; | |
12213 | char *kwnames[] = { | |
12214 | (char *) "self", NULL | |
12215 | }; | |
12216 | ||
12217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12220 | { |
12221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12222 | result = (int)(arg1)->GetExitCode(); | |
12223 | ||
12224 | wxPyEndAllowThreads(__tstate); | |
12225 | if (PyErr_Occurred()) SWIG_fail; | |
12226 | } | |
093d3ff1 | 12227 | { |
7449af73 | 12228 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12229 | } |
d55e5bfc RD |
12230 | return resultobj; |
12231 | fail: | |
12232 | return NULL; | |
12233 | } | |
12234 | ||
12235 | ||
c32bde28 | 12236 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12237 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12238 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12239 | int arg2 ; | |
12240 | PyObject * obj0 = 0 ; | |
12241 | PyObject * obj1 = 0 ; | |
12242 | char *kwnames[] = { | |
12243 | (char *) "self",(char *) "m_pid", NULL | |
12244 | }; | |
12245 | ||
12246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12247 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12248 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12249 | { | |
7449af73 | 12250 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12251 | if (SWIG_arg_fail(2)) SWIG_fail; |
12252 | } | |
d55e5bfc RD |
12253 | if (arg1) (arg1)->m_pid = arg2; |
12254 | ||
12255 | Py_INCREF(Py_None); resultobj = Py_None; | |
12256 | return resultobj; | |
12257 | fail: | |
12258 | return NULL; | |
12259 | } | |
12260 | ||
12261 | ||
c32bde28 | 12262 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12263 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12264 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12265 | int result; | |
12266 | PyObject * obj0 = 0 ; | |
12267 | char *kwnames[] = { | |
12268 | (char *) "self", NULL | |
12269 | }; | |
12270 | ||
12271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12274 | result = (int) ((arg1)->m_pid); |
12275 | ||
093d3ff1 | 12276 | { |
7449af73 | 12277 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12278 | } |
d55e5bfc RD |
12279 | return resultobj; |
12280 | fail: | |
12281 | return NULL; | |
12282 | } | |
12283 | ||
12284 | ||
c32bde28 | 12285 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12286 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12287 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12288 | int arg2 ; | |
12289 | PyObject * obj0 = 0 ; | |
12290 | PyObject * obj1 = 0 ; | |
12291 | char *kwnames[] = { | |
12292 | (char *) "self",(char *) "m_exitcode", NULL | |
12293 | }; | |
12294 | ||
12295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12298 | { | |
7449af73 | 12299 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12300 | if (SWIG_arg_fail(2)) SWIG_fail; |
12301 | } | |
d55e5bfc RD |
12302 | if (arg1) (arg1)->m_exitcode = arg2; |
12303 | ||
12304 | Py_INCREF(Py_None); resultobj = Py_None; | |
12305 | return resultobj; | |
12306 | fail: | |
12307 | return NULL; | |
12308 | } | |
12309 | ||
12310 | ||
c32bde28 | 12311 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12312 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12313 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12314 | int result; | |
12315 | PyObject * obj0 = 0 ; | |
12316 | char *kwnames[] = { | |
12317 | (char *) "self", NULL | |
12318 | }; | |
12319 | ||
12320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12323 | result = (int) ((arg1)->m_exitcode); |
12324 | ||
093d3ff1 | 12325 | { |
7449af73 | 12326 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12327 | } |
d55e5bfc RD |
12328 | return resultobj; |
12329 | fail: | |
12330 | return NULL; | |
12331 | } | |
12332 | ||
12333 | ||
c32bde28 | 12334 | static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12335 | PyObject *obj; |
12336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12337 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
12338 | Py_INCREF(obj); | |
12339 | return Py_BuildValue((char *)""); | |
12340 | } | |
c32bde28 | 12341 | static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12342 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12343 | wxString *arg1 = 0 ; |
12344 | int arg2 = (int) wxEXEC_ASYNC ; | |
12345 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
12346 | long result; | |
ae8162c8 | 12347 | bool temp1 = false ; |
d55e5bfc RD |
12348 | PyObject * obj0 = 0 ; |
12349 | PyObject * obj1 = 0 ; | |
12350 | PyObject * obj2 = 0 ; | |
12351 | char *kwnames[] = { | |
12352 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
12353 | }; | |
12354 | ||
12355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12356 | { | |
12357 | arg1 = wxString_in_helper(obj0); | |
12358 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 12359 | temp1 = true; |
d55e5bfc RD |
12360 | } |
12361 | if (obj1) { | |
093d3ff1 | 12362 | { |
7449af73 | 12363 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12364 | if (SWIG_arg_fail(2)) SWIG_fail; |
12365 | } | |
d55e5bfc RD |
12366 | } |
12367 | if (obj2) { | |
093d3ff1 RD |
12368 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12369 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
12370 | } |
12371 | { | |
0439c23b | 12372 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12374 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
12375 | ||
12376 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12377 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 12378 | } |
093d3ff1 | 12379 | { |
7449af73 | 12380 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 12381 | } |
d55e5bfc RD |
12382 | { |
12383 | if (temp1) | |
12384 | delete arg1; | |
12385 | } | |
12386 | return resultobj; | |
12387 | fail: | |
12388 | { | |
12389 | if (temp1) | |
12390 | delete arg1; | |
12391 | } | |
12392 | return NULL; | |
12393 | } | |
12394 | ||
12395 | ||
c9c2cf70 | 12396 | static PyObject *_wrap_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12397 | PyObject *resultobj = NULL; |
c9c2cf70 | 12398 | long arg1 ; |
093d3ff1 | 12399 | wxSignal arg2 = (wxSignal) wxSIGTERM ; |
c9c2cf70 RD |
12400 | wxKillError *arg3 = (wxKillError *) 0 ; |
12401 | int arg4 = (int) wxKILL_NOCHILDREN ; | |
12402 | int result; | |
12403 | wxKillError temp3 ; | |
12404 | PyObject * obj0 = 0 ; | |
12405 | PyObject * obj1 = 0 ; | |
12406 | PyObject * obj2 = 0 ; | |
12407 | char *kwnames[] = { | |
12408 | (char *) "pid",(char *) "sig",(char *) "flags", NULL | |
12409 | }; | |
12410 | ||
12411 | { | |
12412 | arg3 = &temp3; | |
12413 | } | |
12414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 | 12415 | { |
7449af73 | 12416 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
12417 | if (SWIG_arg_fail(1)) SWIG_fail; |
12418 | } | |
c9c2cf70 | 12419 | if (obj1) { |
093d3ff1 | 12420 | { |
7449af73 | 12421 | arg2 = static_cast<wxSignal >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12422 | if (SWIG_arg_fail(2)) SWIG_fail; |
12423 | } | |
c9c2cf70 RD |
12424 | } |
12425 | if (obj2) { | |
093d3ff1 | 12426 | { |
7449af73 | 12427 | arg4 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12428 | if (SWIG_arg_fail(4)) SWIG_fail; |
12429 | } | |
c9c2cf70 RD |
12430 | } |
12431 | { | |
12432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 12433 | result = (int)wxKill(arg1,arg2,arg3,arg4); |
c9c2cf70 RD |
12434 | |
12435 | wxPyEndAllowThreads(__tstate); | |
12436 | if (PyErr_Occurred()) SWIG_fail; | |
12437 | } | |
093d3ff1 | 12438 | { |
7449af73 | 12439 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12440 | } |
c9c2cf70 RD |
12441 | { |
12442 | PyObject* o; | |
12443 | o = PyInt_FromLong((long) (*arg3)); | |
12444 | resultobj = t_output_helper(resultobj, o); | |
12445 | } | |
12446 | return resultobj; | |
12447 | fail: | |
12448 | return NULL; | |
12449 | } | |
12450 | ||
12451 | ||
c32bde28 | 12452 | static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12453 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12454 | int arg1 = (int) wxJOYSTICK1 ; |
12455 | wxJoystick *result; | |
12456 | PyObject * obj0 = 0 ; | |
12457 | char *kwnames[] = { | |
12458 | (char *) "joystick", NULL | |
12459 | }; | |
12460 | ||
12461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
12462 | if (obj0) { | |
093d3ff1 | 12463 | { |
7449af73 | 12464 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
12465 | if (SWIG_arg_fail(1)) SWIG_fail; |
12466 | } | |
d55e5bfc RD |
12467 | } |
12468 | { | |
0439c23b | 12469 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12471 | result = (wxJoystick *)new wxJoystick(arg1); | |
12472 | ||
12473 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12474 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12475 | } |
12476 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
12477 | return resultobj; | |
12478 | fail: | |
12479 | return NULL; | |
12480 | } | |
12481 | ||
12482 | ||
c32bde28 | 12483 | static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12484 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12485 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12486 | PyObject * obj0 = 0 ; | |
12487 | char *kwnames[] = { | |
12488 | (char *) "self", NULL | |
12489 | }; | |
12490 | ||
12491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12494 | { |
12495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12496 | delete arg1; | |
12497 | ||
12498 | wxPyEndAllowThreads(__tstate); | |
12499 | if (PyErr_Occurred()) SWIG_fail; | |
12500 | } | |
12501 | Py_INCREF(Py_None); resultobj = Py_None; | |
12502 | return resultobj; | |
12503 | fail: | |
12504 | return NULL; | |
12505 | } | |
12506 | ||
12507 | ||
c32bde28 | 12508 | static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12509 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12510 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12511 | wxPoint result; | |
12512 | PyObject * obj0 = 0 ; | |
12513 | char *kwnames[] = { | |
12514 | (char *) "self", NULL | |
12515 | }; | |
12516 | ||
12517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12520 | { |
12521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12522 | result = (arg1)->GetPosition(); | |
12523 | ||
12524 | wxPyEndAllowThreads(__tstate); | |
12525 | if (PyErr_Occurred()) SWIG_fail; | |
12526 | } | |
12527 | { | |
12528 | wxPoint * resultptr; | |
7449af73 | 12529 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
d55e5bfc RD |
12530 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
12531 | } | |
12532 | return resultobj; | |
12533 | fail: | |
12534 | return NULL; | |
12535 | } | |
12536 | ||
12537 | ||
c32bde28 | 12538 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12539 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12540 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12541 | int result; | |
12542 | PyObject * obj0 = 0 ; | |
12543 | char *kwnames[] = { | |
12544 | (char *) "self", NULL | |
12545 | }; | |
12546 | ||
12547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12550 | { |
12551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12552 | result = (int)(arg1)->GetZPosition(); | |
12553 | ||
12554 | wxPyEndAllowThreads(__tstate); | |
12555 | if (PyErr_Occurred()) SWIG_fail; | |
12556 | } | |
093d3ff1 | 12557 | { |
7449af73 | 12558 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12559 | } |
d55e5bfc RD |
12560 | return resultobj; |
12561 | fail: | |
12562 | return NULL; | |
12563 | } | |
12564 | ||
12565 | ||
c32bde28 | 12566 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12567 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12568 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12569 | int result; | |
12570 | PyObject * obj0 = 0 ; | |
12571 | char *kwnames[] = { | |
12572 | (char *) "self", NULL | |
12573 | }; | |
12574 | ||
12575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12578 | { |
12579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12580 | result = (int)(arg1)->GetButtonState(); | |
12581 | ||
12582 | wxPyEndAllowThreads(__tstate); | |
12583 | if (PyErr_Occurred()) SWIG_fail; | |
12584 | } | |
093d3ff1 | 12585 | { |
7449af73 | 12586 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12587 | } |
d55e5bfc RD |
12588 | return resultobj; |
12589 | fail: | |
12590 | return NULL; | |
12591 | } | |
12592 | ||
12593 | ||
c32bde28 | 12594 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12595 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12596 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12597 | int result; | |
12598 | PyObject * obj0 = 0 ; | |
12599 | char *kwnames[] = { | |
12600 | (char *) "self", NULL | |
12601 | }; | |
12602 | ||
12603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12604 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12606 | { |
12607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12608 | result = (int)(arg1)->GetPOVPosition(); | |
12609 | ||
12610 | wxPyEndAllowThreads(__tstate); | |
12611 | if (PyErr_Occurred()) SWIG_fail; | |
12612 | } | |
093d3ff1 | 12613 | { |
7449af73 | 12614 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12615 | } |
d55e5bfc RD |
12616 | return resultobj; |
12617 | fail: | |
12618 | return NULL; | |
12619 | } | |
12620 | ||
12621 | ||
c32bde28 | 12622 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12623 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12624 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12625 | int result; | |
12626 | PyObject * obj0 = 0 ; | |
12627 | char *kwnames[] = { | |
12628 | (char *) "self", NULL | |
12629 | }; | |
12630 | ||
12631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12634 | { |
12635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12636 | result = (int)(arg1)->GetPOVCTSPosition(); | |
12637 | ||
12638 | wxPyEndAllowThreads(__tstate); | |
12639 | if (PyErr_Occurred()) SWIG_fail; | |
12640 | } | |
093d3ff1 | 12641 | { |
7449af73 | 12642 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12643 | } |
d55e5bfc RD |
12644 | return resultobj; |
12645 | fail: | |
12646 | return NULL; | |
12647 | } | |
12648 | ||
12649 | ||
c32bde28 | 12650 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12651 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12652 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12653 | int result; | |
12654 | PyObject * obj0 = 0 ; | |
12655 | char *kwnames[] = { | |
12656 | (char *) "self", NULL | |
12657 | }; | |
12658 | ||
12659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12662 | { |
12663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12664 | result = (int)(arg1)->GetRudderPosition(); | |
12665 | ||
12666 | wxPyEndAllowThreads(__tstate); | |
12667 | if (PyErr_Occurred()) SWIG_fail; | |
12668 | } | |
093d3ff1 | 12669 | { |
7449af73 | 12670 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12671 | } |
d55e5bfc RD |
12672 | return resultobj; |
12673 | fail: | |
12674 | return NULL; | |
12675 | } | |
12676 | ||
12677 | ||
c32bde28 | 12678 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12679 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12680 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12681 | int result; | |
12682 | PyObject * obj0 = 0 ; | |
12683 | char *kwnames[] = { | |
12684 | (char *) "self", NULL | |
12685 | }; | |
12686 | ||
12687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12690 | { |
12691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12692 | result = (int)(arg1)->GetUPosition(); | |
12693 | ||
12694 | wxPyEndAllowThreads(__tstate); | |
12695 | if (PyErr_Occurred()) SWIG_fail; | |
12696 | } | |
093d3ff1 | 12697 | { |
7449af73 | 12698 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12699 | } |
d55e5bfc RD |
12700 | return resultobj; |
12701 | fail: | |
12702 | return NULL; | |
12703 | } | |
12704 | ||
12705 | ||
c32bde28 | 12706 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12707 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12708 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12709 | int result; | |
12710 | PyObject * obj0 = 0 ; | |
12711 | char *kwnames[] = { | |
12712 | (char *) "self", NULL | |
12713 | }; | |
12714 | ||
12715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12718 | { |
12719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12720 | result = (int)(arg1)->GetVPosition(); | |
12721 | ||
12722 | wxPyEndAllowThreads(__tstate); | |
12723 | if (PyErr_Occurred()) SWIG_fail; | |
12724 | } | |
093d3ff1 | 12725 | { |
7449af73 | 12726 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12727 | } |
d55e5bfc RD |
12728 | return resultobj; |
12729 | fail: | |
12730 | return NULL; | |
12731 | } | |
12732 | ||
12733 | ||
c32bde28 | 12734 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12735 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12736 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12737 | int result; | |
12738 | PyObject * obj0 = 0 ; | |
12739 | char *kwnames[] = { | |
12740 | (char *) "self", NULL | |
12741 | }; | |
12742 | ||
12743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12746 | { |
12747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12748 | result = (int)(arg1)->GetMovementThreshold(); | |
12749 | ||
12750 | wxPyEndAllowThreads(__tstate); | |
12751 | if (PyErr_Occurred()) SWIG_fail; | |
12752 | } | |
093d3ff1 | 12753 | { |
7449af73 | 12754 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12755 | } |
d55e5bfc RD |
12756 | return resultobj; |
12757 | fail: | |
12758 | return NULL; | |
12759 | } | |
12760 | ||
12761 | ||
c32bde28 | 12762 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12763 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12764 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12765 | int arg2 ; | |
12766 | PyObject * obj0 = 0 ; | |
12767 | PyObject * obj1 = 0 ; | |
12768 | char *kwnames[] = { | |
12769 | (char *) "self",(char *) "threshold", NULL | |
12770 | }; | |
12771 | ||
12772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12775 | { | |
7449af73 | 12776 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12777 | if (SWIG_arg_fail(2)) SWIG_fail; |
12778 | } | |
d55e5bfc RD |
12779 | { |
12780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12781 | (arg1)->SetMovementThreshold(arg2); | |
12782 | ||
12783 | wxPyEndAllowThreads(__tstate); | |
12784 | if (PyErr_Occurred()) SWIG_fail; | |
12785 | } | |
12786 | Py_INCREF(Py_None); resultobj = Py_None; | |
12787 | return resultobj; | |
12788 | fail: | |
12789 | return NULL; | |
12790 | } | |
12791 | ||
12792 | ||
c32bde28 | 12793 | static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12794 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12795 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12796 | bool result; | |
12797 | PyObject * obj0 = 0 ; | |
12798 | char *kwnames[] = { | |
12799 | (char *) "self", NULL | |
12800 | }; | |
12801 | ||
12802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12803 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12805 | { |
12806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12807 | result = (bool)(arg1)->IsOk(); | |
12808 | ||
12809 | wxPyEndAllowThreads(__tstate); | |
12810 | if (PyErr_Occurred()) SWIG_fail; | |
12811 | } | |
12812 | { | |
12813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12814 | } | |
12815 | return resultobj; | |
12816 | fail: | |
12817 | return NULL; | |
12818 | } | |
12819 | ||
12820 | ||
c32bde28 | 12821 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12822 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12823 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12824 | int result; | |
12825 | PyObject * obj0 = 0 ; | |
12826 | char *kwnames[] = { | |
12827 | (char *) "self", NULL | |
12828 | }; | |
12829 | ||
12830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12833 | { |
12834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12835 | result = (int)(arg1)->GetNumberJoysticks(); | |
12836 | ||
12837 | wxPyEndAllowThreads(__tstate); | |
12838 | if (PyErr_Occurred()) SWIG_fail; | |
12839 | } | |
093d3ff1 | 12840 | { |
7449af73 | 12841 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12842 | } |
d55e5bfc RD |
12843 | return resultobj; |
12844 | fail: | |
12845 | return NULL; | |
12846 | } | |
12847 | ||
12848 | ||
c32bde28 | 12849 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12850 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12851 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12852 | int result; | |
12853 | PyObject * obj0 = 0 ; | |
12854 | char *kwnames[] = { | |
12855 | (char *) "self", NULL | |
12856 | }; | |
12857 | ||
12858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12861 | { |
12862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12863 | result = (int)(arg1)->GetManufacturerId(); | |
12864 | ||
12865 | wxPyEndAllowThreads(__tstate); | |
12866 | if (PyErr_Occurred()) SWIG_fail; | |
12867 | } | |
093d3ff1 | 12868 | { |
7449af73 | 12869 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12870 | } |
d55e5bfc RD |
12871 | return resultobj; |
12872 | fail: | |
12873 | return NULL; | |
12874 | } | |
12875 | ||
12876 | ||
c32bde28 | 12877 | static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12878 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12879 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12880 | int result; | |
12881 | PyObject * obj0 = 0 ; | |
12882 | char *kwnames[] = { | |
12883 | (char *) "self", NULL | |
12884 | }; | |
12885 | ||
12886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12889 | { |
12890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12891 | result = (int)(arg1)->GetProductId(); | |
12892 | ||
12893 | wxPyEndAllowThreads(__tstate); | |
12894 | if (PyErr_Occurred()) SWIG_fail; | |
12895 | } | |
093d3ff1 | 12896 | { |
7449af73 | 12897 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12898 | } |
d55e5bfc RD |
12899 | return resultobj; |
12900 | fail: | |
12901 | return NULL; | |
12902 | } | |
12903 | ||
12904 | ||
c32bde28 | 12905 | static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12906 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12907 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12908 | wxString result; | |
12909 | PyObject * obj0 = 0 ; | |
12910 | char *kwnames[] = { | |
12911 | (char *) "self", NULL | |
12912 | }; | |
12913 | ||
12914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12915 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12916 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12917 | { |
12918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12919 | result = (arg1)->GetProductName(); | |
12920 | ||
12921 | wxPyEndAllowThreads(__tstate); | |
12922 | if (PyErr_Occurred()) SWIG_fail; | |
12923 | } | |
12924 | { | |
12925 | #if wxUSE_UNICODE | |
12926 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12927 | #else | |
12928 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12929 | #endif | |
12930 | } | |
12931 | return resultobj; | |
12932 | fail: | |
12933 | return NULL; | |
12934 | } | |
12935 | ||
12936 | ||
c32bde28 | 12937 | static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12938 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12939 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12940 | int result; | |
12941 | PyObject * obj0 = 0 ; | |
12942 | char *kwnames[] = { | |
12943 | (char *) "self", NULL | |
12944 | }; | |
12945 | ||
12946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12947 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12948 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12949 | { |
12950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12951 | result = (int)(arg1)->GetXMin(); | |
12952 | ||
12953 | wxPyEndAllowThreads(__tstate); | |
12954 | if (PyErr_Occurred()) SWIG_fail; | |
12955 | } | |
093d3ff1 | 12956 | { |
7449af73 | 12957 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12958 | } |
d55e5bfc RD |
12959 | return resultobj; |
12960 | fail: | |
12961 | return NULL; | |
12962 | } | |
12963 | ||
12964 | ||
c32bde28 | 12965 | static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12966 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12967 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12968 | int result; | |
12969 | PyObject * obj0 = 0 ; | |
12970 | char *kwnames[] = { | |
12971 | (char *) "self", NULL | |
12972 | }; | |
12973 | ||
12974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12975 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12976 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12977 | { |
12978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12979 | result = (int)(arg1)->GetYMin(); | |
12980 | ||
12981 | wxPyEndAllowThreads(__tstate); | |
12982 | if (PyErr_Occurred()) SWIG_fail; | |
12983 | } | |
093d3ff1 | 12984 | { |
7449af73 | 12985 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12986 | } |
d55e5bfc RD |
12987 | return resultobj; |
12988 | fail: | |
12989 | return NULL; | |
12990 | } | |
12991 | ||
12992 | ||
c32bde28 | 12993 | static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 12994 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12995 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12996 | int result; | |
12997 | PyObject * obj0 = 0 ; | |
12998 | char *kwnames[] = { | |
12999 | (char *) "self", NULL | |
13000 | }; | |
13001 | ||
13002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13003 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13004 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13005 | { |
13006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13007 | result = (int)(arg1)->GetZMin(); | |
13008 | ||
13009 | wxPyEndAllowThreads(__tstate); | |
13010 | if (PyErr_Occurred()) SWIG_fail; | |
13011 | } | |
093d3ff1 | 13012 | { |
7449af73 | 13013 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13014 | } |
d55e5bfc RD |
13015 | return resultobj; |
13016 | fail: | |
13017 | return NULL; | |
13018 | } | |
13019 | ||
13020 | ||
c32bde28 | 13021 | static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13022 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13023 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13024 | int result; | |
13025 | PyObject * obj0 = 0 ; | |
13026 | char *kwnames[] = { | |
13027 | (char *) "self", NULL | |
13028 | }; | |
13029 | ||
13030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13031 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13032 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13033 | { |
13034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13035 | result = (int)(arg1)->GetXMax(); | |
13036 | ||
13037 | wxPyEndAllowThreads(__tstate); | |
13038 | if (PyErr_Occurred()) SWIG_fail; | |
13039 | } | |
093d3ff1 | 13040 | { |
7449af73 | 13041 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13042 | } |
d55e5bfc RD |
13043 | return resultobj; |
13044 | fail: | |
13045 | return NULL; | |
13046 | } | |
13047 | ||
13048 | ||
c32bde28 | 13049 | static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13050 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13051 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13052 | int result; | |
13053 | PyObject * obj0 = 0 ; | |
13054 | char *kwnames[] = { | |
13055 | (char *) "self", NULL | |
13056 | }; | |
13057 | ||
13058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13061 | { |
13062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13063 | result = (int)(arg1)->GetYMax(); | |
13064 | ||
13065 | wxPyEndAllowThreads(__tstate); | |
13066 | if (PyErr_Occurred()) SWIG_fail; | |
13067 | } | |
093d3ff1 | 13068 | { |
7449af73 | 13069 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13070 | } |
d55e5bfc RD |
13071 | return resultobj; |
13072 | fail: | |
13073 | return NULL; | |
13074 | } | |
13075 | ||
13076 | ||
c32bde28 | 13077 | static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13078 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13079 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13080 | int result; | |
13081 | PyObject * obj0 = 0 ; | |
13082 | char *kwnames[] = { | |
13083 | (char *) "self", NULL | |
13084 | }; | |
13085 | ||
13086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13089 | { |
13090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13091 | result = (int)(arg1)->GetZMax(); | |
13092 | ||
13093 | wxPyEndAllowThreads(__tstate); | |
13094 | if (PyErr_Occurred()) SWIG_fail; | |
13095 | } | |
093d3ff1 | 13096 | { |
7449af73 | 13097 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13098 | } |
d55e5bfc RD |
13099 | return resultobj; |
13100 | fail: | |
13101 | return NULL; | |
13102 | } | |
13103 | ||
13104 | ||
c32bde28 | 13105 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13106 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13107 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13108 | int result; | |
13109 | PyObject * obj0 = 0 ; | |
13110 | char *kwnames[] = { | |
13111 | (char *) "self", NULL | |
13112 | }; | |
13113 | ||
13114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13117 | { |
13118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13119 | result = (int)(arg1)->GetNumberButtons(); | |
13120 | ||
13121 | wxPyEndAllowThreads(__tstate); | |
13122 | if (PyErr_Occurred()) SWIG_fail; | |
13123 | } | |
093d3ff1 | 13124 | { |
7449af73 | 13125 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13126 | } |
d55e5bfc RD |
13127 | return resultobj; |
13128 | fail: | |
13129 | return NULL; | |
13130 | } | |
13131 | ||
13132 | ||
c32bde28 | 13133 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13134 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13135 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13136 | int result; | |
13137 | PyObject * obj0 = 0 ; | |
13138 | char *kwnames[] = { | |
13139 | (char *) "self", NULL | |
13140 | }; | |
13141 | ||
13142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13145 | { |
13146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13147 | result = (int)(arg1)->GetNumberAxes(); | |
13148 | ||
13149 | wxPyEndAllowThreads(__tstate); | |
13150 | if (PyErr_Occurred()) SWIG_fail; | |
13151 | } | |
093d3ff1 | 13152 | { |
7449af73 | 13153 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13154 | } |
d55e5bfc RD |
13155 | return resultobj; |
13156 | fail: | |
13157 | return NULL; | |
13158 | } | |
13159 | ||
13160 | ||
c32bde28 | 13161 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13162 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13163 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13164 | int result; | |
13165 | PyObject * obj0 = 0 ; | |
13166 | char *kwnames[] = { | |
13167 | (char *) "self", NULL | |
13168 | }; | |
13169 | ||
13170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13173 | { |
13174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13175 | result = (int)(arg1)->GetMaxButtons(); | |
13176 | ||
13177 | wxPyEndAllowThreads(__tstate); | |
13178 | if (PyErr_Occurred()) SWIG_fail; | |
13179 | } | |
093d3ff1 | 13180 | { |
7449af73 | 13181 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13182 | } |
d55e5bfc RD |
13183 | return resultobj; |
13184 | fail: | |
13185 | return NULL; | |
13186 | } | |
13187 | ||
13188 | ||
c32bde28 | 13189 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13190 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13191 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13192 | int result; | |
13193 | PyObject * obj0 = 0 ; | |
13194 | char *kwnames[] = { | |
13195 | (char *) "self", NULL | |
13196 | }; | |
13197 | ||
13198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13201 | { |
13202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13203 | result = (int)(arg1)->GetMaxAxes(); | |
13204 | ||
13205 | wxPyEndAllowThreads(__tstate); | |
13206 | if (PyErr_Occurred()) SWIG_fail; | |
13207 | } | |
093d3ff1 | 13208 | { |
7449af73 | 13209 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13210 | } |
d55e5bfc RD |
13211 | return resultobj; |
13212 | fail: | |
13213 | return NULL; | |
13214 | } | |
13215 | ||
13216 | ||
c32bde28 | 13217 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13218 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13219 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13220 | int result; | |
13221 | PyObject * obj0 = 0 ; | |
13222 | char *kwnames[] = { | |
13223 | (char *) "self", NULL | |
13224 | }; | |
13225 | ||
13226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13229 | { |
13230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13231 | result = (int)(arg1)->GetPollingMin(); | |
13232 | ||
13233 | wxPyEndAllowThreads(__tstate); | |
13234 | if (PyErr_Occurred()) SWIG_fail; | |
13235 | } | |
093d3ff1 | 13236 | { |
7449af73 | 13237 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13238 | } |
d55e5bfc RD |
13239 | return resultobj; |
13240 | fail: | |
13241 | return NULL; | |
13242 | } | |
13243 | ||
13244 | ||
c32bde28 | 13245 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13246 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13247 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13248 | int result; | |
13249 | PyObject * obj0 = 0 ; | |
13250 | char *kwnames[] = { | |
13251 | (char *) "self", NULL | |
13252 | }; | |
13253 | ||
13254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13257 | { |
13258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13259 | result = (int)(arg1)->GetPollingMax(); | |
13260 | ||
13261 | wxPyEndAllowThreads(__tstate); | |
13262 | if (PyErr_Occurred()) SWIG_fail; | |
13263 | } | |
093d3ff1 | 13264 | { |
7449af73 | 13265 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13266 | } |
d55e5bfc RD |
13267 | return resultobj; |
13268 | fail: | |
13269 | return NULL; | |
13270 | } | |
13271 | ||
13272 | ||
c32bde28 | 13273 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13274 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13275 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13276 | int result; | |
13277 | PyObject * obj0 = 0 ; | |
13278 | char *kwnames[] = { | |
13279 | (char *) "self", NULL | |
13280 | }; | |
13281 | ||
13282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13283 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13284 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13285 | { |
13286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13287 | result = (int)(arg1)->GetRudderMin(); | |
13288 | ||
13289 | wxPyEndAllowThreads(__tstate); | |
13290 | if (PyErr_Occurred()) SWIG_fail; | |
13291 | } | |
093d3ff1 | 13292 | { |
7449af73 | 13293 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13294 | } |
d55e5bfc RD |
13295 | return resultobj; |
13296 | fail: | |
13297 | return NULL; | |
13298 | } | |
13299 | ||
13300 | ||
c32bde28 | 13301 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13302 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13303 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13304 | int result; | |
13305 | PyObject * obj0 = 0 ; | |
13306 | char *kwnames[] = { | |
13307 | (char *) "self", NULL | |
13308 | }; | |
13309 | ||
13310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13313 | { |
13314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13315 | result = (int)(arg1)->GetRudderMax(); | |
13316 | ||
13317 | wxPyEndAllowThreads(__tstate); | |
13318 | if (PyErr_Occurred()) SWIG_fail; | |
13319 | } | |
093d3ff1 | 13320 | { |
7449af73 | 13321 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13322 | } |
d55e5bfc RD |
13323 | return resultobj; |
13324 | fail: | |
13325 | return NULL; | |
13326 | } | |
13327 | ||
13328 | ||
c32bde28 | 13329 | static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13330 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13331 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13332 | int result; | |
13333 | PyObject * obj0 = 0 ; | |
13334 | char *kwnames[] = { | |
13335 | (char *) "self", NULL | |
13336 | }; | |
13337 | ||
13338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13341 | { |
13342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13343 | result = (int)(arg1)->GetUMin(); | |
13344 | ||
13345 | wxPyEndAllowThreads(__tstate); | |
13346 | if (PyErr_Occurred()) SWIG_fail; | |
13347 | } | |
093d3ff1 | 13348 | { |
7449af73 | 13349 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13350 | } |
d55e5bfc RD |
13351 | return resultobj; |
13352 | fail: | |
13353 | return NULL; | |
13354 | } | |
13355 | ||
13356 | ||
c32bde28 | 13357 | static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13358 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13359 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13360 | int result; | |
13361 | PyObject * obj0 = 0 ; | |
13362 | char *kwnames[] = { | |
13363 | (char *) "self", NULL | |
13364 | }; | |
13365 | ||
13366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13369 | { |
13370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13371 | result = (int)(arg1)->GetUMax(); | |
13372 | ||
13373 | wxPyEndAllowThreads(__tstate); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
093d3ff1 | 13376 | { |
7449af73 | 13377 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13378 | } |
d55e5bfc RD |
13379 | return resultobj; |
13380 | fail: | |
13381 | return NULL; | |
13382 | } | |
13383 | ||
13384 | ||
c32bde28 | 13385 | static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13386 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13387 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13388 | int result; | |
13389 | PyObject * obj0 = 0 ; | |
13390 | char *kwnames[] = { | |
13391 | (char *) "self", NULL | |
13392 | }; | |
13393 | ||
13394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13397 | { |
13398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13399 | result = (int)(arg1)->GetVMin(); | |
13400 | ||
13401 | wxPyEndAllowThreads(__tstate); | |
13402 | if (PyErr_Occurred()) SWIG_fail; | |
13403 | } | |
093d3ff1 | 13404 | { |
7449af73 | 13405 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13406 | } |
d55e5bfc RD |
13407 | return resultobj; |
13408 | fail: | |
13409 | return NULL; | |
13410 | } | |
13411 | ||
13412 | ||
c32bde28 | 13413 | static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13414 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13415 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13416 | int result; | |
13417 | PyObject * obj0 = 0 ; | |
13418 | char *kwnames[] = { | |
13419 | (char *) "self", NULL | |
13420 | }; | |
13421 | ||
13422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13425 | { |
13426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13427 | result = (int)(arg1)->GetVMax(); | |
13428 | ||
13429 | wxPyEndAllowThreads(__tstate); | |
13430 | if (PyErr_Occurred()) SWIG_fail; | |
13431 | } | |
093d3ff1 | 13432 | { |
7449af73 | 13433 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13434 | } |
d55e5bfc RD |
13435 | return resultobj; |
13436 | fail: | |
13437 | return NULL; | |
13438 | } | |
13439 | ||
13440 | ||
c32bde28 | 13441 | static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13442 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13443 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13444 | bool result; | |
13445 | PyObject * obj0 = 0 ; | |
13446 | char *kwnames[] = { | |
13447 | (char *) "self", NULL | |
13448 | }; | |
13449 | ||
13450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13451 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13452 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13453 | { |
13454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13455 | result = (bool)(arg1)->HasRudder(); | |
13456 | ||
13457 | wxPyEndAllowThreads(__tstate); | |
13458 | if (PyErr_Occurred()) SWIG_fail; | |
13459 | } | |
13460 | { | |
13461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13462 | } | |
13463 | return resultobj; | |
13464 | fail: | |
13465 | return NULL; | |
13466 | } | |
13467 | ||
13468 | ||
c32bde28 | 13469 | static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13470 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13471 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13472 | bool result; | |
13473 | PyObject * obj0 = 0 ; | |
13474 | char *kwnames[] = { | |
13475 | (char *) "self", NULL | |
13476 | }; | |
13477 | ||
13478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13481 | { |
13482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13483 | result = (bool)(arg1)->HasZ(); | |
13484 | ||
13485 | wxPyEndAllowThreads(__tstate); | |
13486 | if (PyErr_Occurred()) SWIG_fail; | |
13487 | } | |
13488 | { | |
13489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13490 | } | |
13491 | return resultobj; | |
13492 | fail: | |
13493 | return NULL; | |
13494 | } | |
13495 | ||
13496 | ||
c32bde28 | 13497 | static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13498 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13499 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13500 | bool result; | |
13501 | PyObject * obj0 = 0 ; | |
13502 | char *kwnames[] = { | |
13503 | (char *) "self", NULL | |
13504 | }; | |
13505 | ||
13506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13507 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13508 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13509 | { |
13510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13511 | result = (bool)(arg1)->HasU(); | |
13512 | ||
13513 | wxPyEndAllowThreads(__tstate); | |
13514 | if (PyErr_Occurred()) SWIG_fail; | |
13515 | } | |
13516 | { | |
13517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13518 | } | |
13519 | return resultobj; | |
13520 | fail: | |
13521 | return NULL; | |
13522 | } | |
13523 | ||
13524 | ||
c32bde28 | 13525 | static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13526 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13527 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13528 | bool result; | |
13529 | PyObject * obj0 = 0 ; | |
13530 | char *kwnames[] = { | |
13531 | (char *) "self", NULL | |
13532 | }; | |
13533 | ||
13534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13537 | { |
13538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13539 | result = (bool)(arg1)->HasV(); | |
13540 | ||
13541 | wxPyEndAllowThreads(__tstate); | |
13542 | if (PyErr_Occurred()) SWIG_fail; | |
13543 | } | |
13544 | { | |
13545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13546 | } | |
13547 | return resultobj; | |
13548 | fail: | |
13549 | return NULL; | |
13550 | } | |
13551 | ||
13552 | ||
c32bde28 | 13553 | static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13554 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13555 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13556 | bool result; | |
13557 | PyObject * obj0 = 0 ; | |
13558 | char *kwnames[] = { | |
13559 | (char *) "self", NULL | |
13560 | }; | |
13561 | ||
13562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13565 | { |
13566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13567 | result = (bool)(arg1)->HasPOV(); | |
13568 | ||
13569 | wxPyEndAllowThreads(__tstate); | |
13570 | if (PyErr_Occurred()) SWIG_fail; | |
13571 | } | |
13572 | { | |
13573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13574 | } | |
13575 | return resultobj; | |
13576 | fail: | |
13577 | return NULL; | |
13578 | } | |
13579 | ||
13580 | ||
c32bde28 | 13581 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13582 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13583 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13584 | bool result; | |
13585 | PyObject * obj0 = 0 ; | |
13586 | char *kwnames[] = { | |
13587 | (char *) "self", NULL | |
13588 | }; | |
13589 | ||
13590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13593 | { |
13594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13595 | result = (bool)(arg1)->HasPOV4Dir(); | |
13596 | ||
13597 | wxPyEndAllowThreads(__tstate); | |
13598 | if (PyErr_Occurred()) SWIG_fail; | |
13599 | } | |
13600 | { | |
13601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13602 | } | |
13603 | return resultobj; | |
13604 | fail: | |
13605 | return NULL; | |
13606 | } | |
13607 | ||
13608 | ||
c32bde28 | 13609 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13610 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13611 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13612 | bool result; | |
13613 | PyObject * obj0 = 0 ; | |
13614 | char *kwnames[] = { | |
13615 | (char *) "self", NULL | |
13616 | }; | |
13617 | ||
13618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13621 | { |
13622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13623 | result = (bool)(arg1)->HasPOVCTS(); | |
13624 | ||
13625 | wxPyEndAllowThreads(__tstate); | |
13626 | if (PyErr_Occurred()) SWIG_fail; | |
13627 | } | |
13628 | { | |
13629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13630 | } | |
13631 | return resultobj; | |
13632 | fail: | |
13633 | return NULL; | |
13634 | } | |
13635 | ||
13636 | ||
c32bde28 | 13637 | static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13638 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13639 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13640 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13641 | int arg3 = (int) 0 ; | |
13642 | bool result; | |
13643 | PyObject * obj0 = 0 ; | |
13644 | PyObject * obj1 = 0 ; | |
13645 | PyObject * obj2 = 0 ; | |
13646 | char *kwnames[] = { | |
13647 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
13648 | }; | |
13649 | ||
13650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
13651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13653 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13654 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 13655 | if (obj2) { |
093d3ff1 | 13656 | { |
7449af73 | 13657 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13658 | if (SWIG_arg_fail(3)) SWIG_fail; |
13659 | } | |
d55e5bfc RD |
13660 | } |
13661 | { | |
13662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13663 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
13664 | ||
13665 | wxPyEndAllowThreads(__tstate); | |
13666 | if (PyErr_Occurred()) SWIG_fail; | |
13667 | } | |
13668 | { | |
13669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13670 | } | |
13671 | return resultobj; | |
13672 | fail: | |
13673 | return NULL; | |
13674 | } | |
13675 | ||
13676 | ||
c32bde28 | 13677 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13678 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13679 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13680 | bool result; | |
13681 | PyObject * obj0 = 0 ; | |
13682 | char *kwnames[] = { | |
13683 | (char *) "self", NULL | |
13684 | }; | |
13685 | ||
13686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13687 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13689 | { |
13690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13691 | result = (bool)(arg1)->ReleaseCapture(); | |
13692 | ||
13693 | wxPyEndAllowThreads(__tstate); | |
13694 | if (PyErr_Occurred()) SWIG_fail; | |
13695 | } | |
13696 | { | |
13697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13698 | } | |
13699 | return resultobj; | |
13700 | fail: | |
13701 | return NULL; | |
13702 | } | |
13703 | ||
13704 | ||
c32bde28 | 13705 | static PyObject * Joystick_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13706 | PyObject *obj; |
13707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13708 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
13709 | Py_INCREF(obj); | |
13710 | return Py_BuildValue((char *)""); | |
13711 | } | |
c32bde28 | 13712 | static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13713 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13714 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
13715 | int arg2 = (int) 0 ; | |
13716 | int arg3 = (int) wxJOYSTICK1 ; | |
13717 | int arg4 = (int) 0 ; | |
13718 | wxJoystickEvent *result; | |
13719 | PyObject * obj0 = 0 ; | |
13720 | PyObject * obj1 = 0 ; | |
13721 | PyObject * obj2 = 0 ; | |
13722 | PyObject * obj3 = 0 ; | |
13723 | char *kwnames[] = { | |
13724 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
13725 | }; | |
13726 | ||
13727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13728 | if (obj0) { | |
093d3ff1 | 13729 | { |
7449af73 | 13730 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
13731 | if (SWIG_arg_fail(1)) SWIG_fail; |
13732 | } | |
d55e5bfc RD |
13733 | } |
13734 | if (obj1) { | |
093d3ff1 | 13735 | { |
7449af73 | 13736 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13737 | if (SWIG_arg_fail(2)) SWIG_fail; |
13738 | } | |
d55e5bfc RD |
13739 | } |
13740 | if (obj2) { | |
093d3ff1 | 13741 | { |
7449af73 | 13742 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13743 | if (SWIG_arg_fail(3)) SWIG_fail; |
13744 | } | |
d55e5bfc RD |
13745 | } |
13746 | if (obj3) { | |
093d3ff1 | 13747 | { |
7449af73 | 13748 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
13749 | if (SWIG_arg_fail(4)) SWIG_fail; |
13750 | } | |
d55e5bfc RD |
13751 | } |
13752 | { | |
13753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13754 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
13755 | ||
13756 | wxPyEndAllowThreads(__tstate); | |
13757 | if (PyErr_Occurred()) SWIG_fail; | |
13758 | } | |
13759 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
13760 | return resultobj; | |
13761 | fail: | |
13762 | return NULL; | |
13763 | } | |
13764 | ||
13765 | ||
c32bde28 | 13766 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13767 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13768 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13769 | wxPoint result; | |
13770 | PyObject * obj0 = 0 ; | |
13771 | char *kwnames[] = { | |
13772 | (char *) "self", NULL | |
13773 | }; | |
13774 | ||
13775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13778 | { |
13779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13780 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
13781 | ||
13782 | wxPyEndAllowThreads(__tstate); | |
13783 | if (PyErr_Occurred()) SWIG_fail; | |
13784 | } | |
13785 | { | |
13786 | wxPoint * resultptr; | |
7449af73 | 13787 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
d55e5bfc RD |
13788 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
13789 | } | |
13790 | return resultobj; | |
13791 | fail: | |
13792 | return NULL; | |
13793 | } | |
13794 | ||
13795 | ||
c32bde28 | 13796 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13797 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13798 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13799 | int result; | |
13800 | PyObject * obj0 = 0 ; | |
13801 | char *kwnames[] = { | |
13802 | (char *) "self", NULL | |
13803 | }; | |
13804 | ||
13805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13808 | { |
13809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13810 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
13811 | ||
13812 | wxPyEndAllowThreads(__tstate); | |
13813 | if (PyErr_Occurred()) SWIG_fail; | |
13814 | } | |
093d3ff1 | 13815 | { |
7449af73 | 13816 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13817 | } |
d55e5bfc RD |
13818 | return resultobj; |
13819 | fail: | |
13820 | return NULL; | |
13821 | } | |
13822 | ||
13823 | ||
c32bde28 | 13824 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13825 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13826 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13827 | int result; | |
13828 | PyObject * obj0 = 0 ; | |
13829 | char *kwnames[] = { | |
13830 | (char *) "self", NULL | |
13831 | }; | |
13832 | ||
13833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13836 | { |
13837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13838 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
13839 | ||
13840 | wxPyEndAllowThreads(__tstate); | |
13841 | if (PyErr_Occurred()) SWIG_fail; | |
13842 | } | |
093d3ff1 | 13843 | { |
7449af73 | 13844 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13845 | } |
d55e5bfc RD |
13846 | return resultobj; |
13847 | fail: | |
13848 | return NULL; | |
13849 | } | |
13850 | ||
13851 | ||
c32bde28 | 13852 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13853 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13854 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13855 | int result; | |
13856 | PyObject * obj0 = 0 ; | |
13857 | char *kwnames[] = { | |
13858 | (char *) "self", NULL | |
13859 | }; | |
13860 | ||
13861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13862 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13863 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13864 | { |
13865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13866 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
13867 | ||
13868 | wxPyEndAllowThreads(__tstate); | |
13869 | if (PyErr_Occurred()) SWIG_fail; | |
13870 | } | |
093d3ff1 | 13871 | { |
7449af73 | 13872 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13873 | } |
d55e5bfc RD |
13874 | return resultobj; |
13875 | fail: | |
13876 | return NULL; | |
13877 | } | |
13878 | ||
13879 | ||
c32bde28 | 13880 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13881 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13882 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13883 | int result; | |
13884 | PyObject * obj0 = 0 ; | |
13885 | char *kwnames[] = { | |
13886 | (char *) "self", NULL | |
13887 | }; | |
13888 | ||
13889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13890 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13891 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13892 | { |
13893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13894 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
13895 | ||
13896 | wxPyEndAllowThreads(__tstate); | |
13897 | if (PyErr_Occurred()) SWIG_fail; | |
13898 | } | |
093d3ff1 | 13899 | { |
7449af73 | 13900 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13901 | } |
d55e5bfc RD |
13902 | return resultobj; |
13903 | fail: | |
13904 | return NULL; | |
13905 | } | |
13906 | ||
13907 | ||
c32bde28 | 13908 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13909 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13910 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13911 | int arg2 ; | |
13912 | PyObject * obj0 = 0 ; | |
13913 | PyObject * obj1 = 0 ; | |
13914 | char *kwnames[] = { | |
13915 | (char *) "self",(char *) "stick", NULL | |
13916 | }; | |
13917 | ||
13918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13921 | { | |
7449af73 | 13922 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13923 | if (SWIG_arg_fail(2)) SWIG_fail; |
13924 | } | |
d55e5bfc RD |
13925 | { |
13926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13927 | (arg1)->SetJoystick(arg2); | |
13928 | ||
13929 | wxPyEndAllowThreads(__tstate); | |
13930 | if (PyErr_Occurred()) SWIG_fail; | |
13931 | } | |
13932 | Py_INCREF(Py_None); resultobj = Py_None; | |
13933 | return resultobj; | |
13934 | fail: | |
13935 | return NULL; | |
13936 | } | |
13937 | ||
13938 | ||
c32bde28 | 13939 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13940 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13941 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13942 | int arg2 ; | |
13943 | PyObject * obj0 = 0 ; | |
13944 | PyObject * obj1 = 0 ; | |
13945 | char *kwnames[] = { | |
13946 | (char *) "self",(char *) "state", NULL | |
13947 | }; | |
13948 | ||
13949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13950 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13952 | { | |
7449af73 | 13953 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13954 | if (SWIG_arg_fail(2)) SWIG_fail; |
13955 | } | |
d55e5bfc RD |
13956 | { |
13957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13958 | (arg1)->SetButtonState(arg2); | |
13959 | ||
13960 | wxPyEndAllowThreads(__tstate); | |
13961 | if (PyErr_Occurred()) SWIG_fail; | |
13962 | } | |
13963 | Py_INCREF(Py_None); resultobj = Py_None; | |
13964 | return resultobj; | |
13965 | fail: | |
13966 | return NULL; | |
13967 | } | |
13968 | ||
13969 | ||
c32bde28 | 13970 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 13971 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13972 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13973 | int arg2 ; | |
13974 | PyObject * obj0 = 0 ; | |
13975 | PyObject * obj1 = 0 ; | |
13976 | char *kwnames[] = { | |
13977 | (char *) "self",(char *) "change", NULL | |
13978 | }; | |
13979 | ||
13980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13981 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13982 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13983 | { | |
7449af73 | 13984 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13985 | if (SWIG_arg_fail(2)) SWIG_fail; |
13986 | } | |
d55e5bfc RD |
13987 | { |
13988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13989 | (arg1)->SetButtonChange(arg2); | |
13990 | ||
13991 | wxPyEndAllowThreads(__tstate); | |
13992 | if (PyErr_Occurred()) SWIG_fail; | |
13993 | } | |
13994 | Py_INCREF(Py_None); resultobj = Py_None; | |
13995 | return resultobj; | |
13996 | fail: | |
13997 | return NULL; | |
13998 | } | |
13999 | ||
14000 | ||
c32bde28 | 14001 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14002 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14003 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14004 | wxPoint *arg2 = 0 ; | |
14005 | wxPoint temp2 ; | |
14006 | PyObject * obj0 = 0 ; | |
14007 | PyObject * obj1 = 0 ; | |
14008 | char *kwnames[] = { | |
14009 | (char *) "self",(char *) "pos", NULL | |
14010 | }; | |
14011 | ||
14012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14015 | { |
14016 | arg2 = &temp2; | |
14017 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14018 | } | |
14019 | { | |
14020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14021 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
14022 | ||
14023 | wxPyEndAllowThreads(__tstate); | |
14024 | if (PyErr_Occurred()) SWIG_fail; | |
14025 | } | |
14026 | Py_INCREF(Py_None); resultobj = Py_None; | |
14027 | return resultobj; | |
14028 | fail: | |
14029 | return NULL; | |
14030 | } | |
14031 | ||
14032 | ||
c32bde28 | 14033 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14034 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14035 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14036 | int arg2 ; | |
14037 | PyObject * obj0 = 0 ; | |
14038 | PyObject * obj1 = 0 ; | |
14039 | char *kwnames[] = { | |
14040 | (char *) "self",(char *) "zPos", NULL | |
14041 | }; | |
14042 | ||
14043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14046 | { | |
7449af73 | 14047 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14048 | if (SWIG_arg_fail(2)) SWIG_fail; |
14049 | } | |
d55e5bfc RD |
14050 | { |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14052 | (arg1)->SetZPosition(arg2); | |
14053 | ||
14054 | wxPyEndAllowThreads(__tstate); | |
14055 | if (PyErr_Occurred()) SWIG_fail; | |
14056 | } | |
14057 | Py_INCREF(Py_None); resultobj = Py_None; | |
14058 | return resultobj; | |
14059 | fail: | |
14060 | return NULL; | |
14061 | } | |
14062 | ||
14063 | ||
c32bde28 | 14064 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14065 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14066 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14067 | bool result; | |
14068 | PyObject * obj0 = 0 ; | |
14069 | char *kwnames[] = { | |
14070 | (char *) "self", NULL | |
14071 | }; | |
14072 | ||
14073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14076 | { |
14077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14078 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
14079 | ||
14080 | wxPyEndAllowThreads(__tstate); | |
14081 | if (PyErr_Occurred()) SWIG_fail; | |
14082 | } | |
14083 | { | |
14084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14085 | } | |
14086 | return resultobj; | |
14087 | fail: | |
14088 | return NULL; | |
14089 | } | |
14090 | ||
14091 | ||
c32bde28 | 14092 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14093 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14094 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14095 | bool result; | |
14096 | PyObject * obj0 = 0 ; | |
14097 | char *kwnames[] = { | |
14098 | (char *) "self", NULL | |
14099 | }; | |
14100 | ||
14101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14104 | { |
14105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14106 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
14107 | ||
14108 | wxPyEndAllowThreads(__tstate); | |
14109 | if (PyErr_Occurred()) SWIG_fail; | |
14110 | } | |
14111 | { | |
14112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14113 | } | |
14114 | return resultobj; | |
14115 | fail: | |
14116 | return NULL; | |
14117 | } | |
14118 | ||
14119 | ||
c32bde28 | 14120 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14121 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14122 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14123 | bool result; | |
14124 | PyObject * obj0 = 0 ; | |
14125 | char *kwnames[] = { | |
14126 | (char *) "self", NULL | |
14127 | }; | |
14128 | ||
14129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14132 | { |
14133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14134 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
14135 | ||
14136 | wxPyEndAllowThreads(__tstate); | |
14137 | if (PyErr_Occurred()) SWIG_fail; | |
14138 | } | |
14139 | { | |
14140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14141 | } | |
14142 | return resultobj; | |
14143 | fail: | |
14144 | return NULL; | |
14145 | } | |
14146 | ||
14147 | ||
c32bde28 | 14148 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14149 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14150 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14151 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
14152 | bool result; | |
14153 | PyObject * obj0 = 0 ; | |
14154 | PyObject * obj1 = 0 ; | |
14155 | char *kwnames[] = { | |
14156 | (char *) "self",(char *) "but", NULL | |
14157 | }; | |
14158 | ||
14159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14160 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14162 | if (obj1) { |
093d3ff1 | 14163 | { |
7449af73 | 14164 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14165 | if (SWIG_arg_fail(2)) SWIG_fail; |
14166 | } | |
d55e5bfc RD |
14167 | } |
14168 | { | |
14169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14170 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
14171 | ||
14172 | wxPyEndAllowThreads(__tstate); | |
14173 | if (PyErr_Occurred()) SWIG_fail; | |
14174 | } | |
14175 | { | |
14176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14177 | } | |
14178 | return resultobj; | |
14179 | fail: | |
14180 | return NULL; | |
14181 | } | |
14182 | ||
14183 | ||
c32bde28 | 14184 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14185 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14186 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14187 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
14188 | bool result; | |
14189 | PyObject * obj0 = 0 ; | |
14190 | PyObject * obj1 = 0 ; | |
14191 | char *kwnames[] = { | |
14192 | (char *) "self",(char *) "but", NULL | |
14193 | }; | |
14194 | ||
14195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14198 | if (obj1) { |
093d3ff1 | 14199 | { |
7449af73 | 14200 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14201 | if (SWIG_arg_fail(2)) SWIG_fail; |
14202 | } | |
d55e5bfc RD |
14203 | } |
14204 | { | |
14205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14206 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
14207 | ||
14208 | wxPyEndAllowThreads(__tstate); | |
14209 | if (PyErr_Occurred()) SWIG_fail; | |
14210 | } | |
14211 | { | |
14212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14213 | } | |
14214 | return resultobj; | |
14215 | fail: | |
14216 | return NULL; | |
14217 | } | |
14218 | ||
14219 | ||
c32bde28 | 14220 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14221 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14222 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14223 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
14224 | bool result; | |
14225 | PyObject * obj0 = 0 ; | |
14226 | PyObject * obj1 = 0 ; | |
14227 | char *kwnames[] = { | |
14228 | (char *) "self",(char *) "but", NULL | |
14229 | }; | |
14230 | ||
14231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14234 | if (obj1) { |
093d3ff1 | 14235 | { |
7449af73 | 14236 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14237 | if (SWIG_arg_fail(2)) SWIG_fail; |
14238 | } | |
d55e5bfc RD |
14239 | } |
14240 | { | |
14241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14242 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
14243 | ||
14244 | wxPyEndAllowThreads(__tstate); | |
14245 | if (PyErr_Occurred()) SWIG_fail; | |
14246 | } | |
14247 | { | |
14248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14249 | } | |
14250 | return resultobj; | |
14251 | fail: | |
14252 | return NULL; | |
14253 | } | |
14254 | ||
14255 | ||
c32bde28 | 14256 | static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14257 | PyObject *obj; |
14258 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14259 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
14260 | Py_INCREF(obj); | |
14261 | return Py_BuildValue((char *)""); | |
14262 | } | |
c32bde28 | 14263 | static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14264 | PyObject *resultobj = NULL; |
b1f29bf7 RD |
14265 | wxString const &arg1_defvalue = wxPyEmptyString ; |
14266 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc | 14267 | wxSound *result; |
ae8162c8 | 14268 | bool temp1 = false ; |
d55e5bfc | 14269 | PyObject * obj0 = 0 ; |
b1f29bf7 RD |
14270 | char *kwnames[] = { |
14271 | (char *) "fileName", NULL | |
14272 | }; | |
d55e5bfc | 14273 | |
b1f29bf7 RD |
14274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
14275 | if (obj0) { | |
14276 | { | |
14277 | arg1 = wxString_in_helper(obj0); | |
14278 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14279 | temp1 = true; |
b1f29bf7 | 14280 | } |
d55e5bfc RD |
14281 | } |
14282 | { | |
0439c23b | 14283 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 14284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1f29bf7 | 14285 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d55e5bfc RD |
14286 | |
14287 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14288 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14289 | } |
14290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
14291 | { | |
14292 | if (temp1) | |
14293 | delete arg1; | |
14294 | } | |
14295 | return resultobj; | |
14296 | fail: | |
14297 | { | |
14298 | if (temp1) | |
14299 | delete arg1; | |
14300 | } | |
14301 | return NULL; | |
14302 | } | |
14303 | ||
14304 | ||
c32bde28 | 14305 | static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14306 | PyObject *resultobj = NULL; |
b1f29bf7 | 14307 | PyObject *arg1 = (PyObject *) 0 ; |
d55e5bfc RD |
14308 | wxSound *result; |
14309 | PyObject * obj0 = 0 ; | |
b1f29bf7 RD |
14310 | char *kwnames[] = { |
14311 | (char *) "data", NULL | |
14312 | }; | |
d55e5bfc | 14313 | |
b1f29bf7 RD |
14314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
14315 | arg1 = obj0; | |
d55e5bfc | 14316 | { |
0439c23b | 14317 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 14318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1f29bf7 | 14319 | result = (wxSound *)new_wxSound(arg1); |
d55e5bfc RD |
14320 | |
14321 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14322 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14323 | } |
14324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
14325 | return resultobj; | |
14326 | fail: | |
14327 | return NULL; | |
14328 | } | |
14329 | ||
14330 | ||
c32bde28 | 14331 | static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14332 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14333 | wxSound *arg1 = (wxSound *) 0 ; |
14334 | PyObject * obj0 = 0 ; | |
14335 | char *kwnames[] = { | |
14336 | (char *) "self", NULL | |
14337 | }; | |
14338 | ||
14339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14340 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
14341 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14342 | { |
14343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14344 | delete arg1; | |
14345 | ||
14346 | wxPyEndAllowThreads(__tstate); | |
14347 | if (PyErr_Occurred()) SWIG_fail; | |
14348 | } | |
14349 | Py_INCREF(Py_None); resultobj = Py_None; | |
14350 | return resultobj; | |
14351 | fail: | |
14352 | return NULL; | |
14353 | } | |
14354 | ||
14355 | ||
c32bde28 | 14356 | static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14357 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14358 | wxSound *arg1 = (wxSound *) 0 ; |
14359 | wxString *arg2 = 0 ; | |
d55e5bfc | 14360 | bool result; |
ae8162c8 | 14361 | bool temp2 = false ; |
d55e5bfc RD |
14362 | PyObject * obj0 = 0 ; |
14363 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
14364 | char *kwnames[] = { |
14365 | (char *) "self",(char *) "fileName", NULL | |
14366 | }; | |
d55e5bfc | 14367 | |
b1f29bf7 | 14368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
14370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14371 | { |
14372 | arg2 = wxString_in_helper(obj1); | |
14373 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14374 | temp2 = true; |
d55e5bfc | 14375 | } |
d55e5bfc RD |
14376 | { |
14377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 14378 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d55e5bfc RD |
14379 | |
14380 | wxPyEndAllowThreads(__tstate); | |
14381 | if (PyErr_Occurred()) SWIG_fail; | |
14382 | } | |
14383 | { | |
14384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14385 | } | |
14386 | { | |
14387 | if (temp2) | |
14388 | delete arg2; | |
14389 | } | |
14390 | return resultobj; | |
14391 | fail: | |
14392 | { | |
14393 | if (temp2) | |
14394 | delete arg2; | |
14395 | } | |
14396 | return NULL; | |
14397 | } | |
14398 | ||
14399 | ||
c32bde28 | 14400 | static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14401 | PyObject *resultobj = NULL; |
d55e5bfc | 14402 | wxSound *arg1 = (wxSound *) 0 ; |
b1f29bf7 | 14403 | PyObject *arg2 = (PyObject *) 0 ; |
d55e5bfc RD |
14404 | bool result; |
14405 | PyObject * obj0 = 0 ; | |
14406 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
14407 | char *kwnames[] = { |
14408 | (char *) "self",(char *) "data", NULL | |
14409 | }; | |
d55e5bfc | 14410 | |
b1f29bf7 | 14411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14412 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
14413 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b1f29bf7 | 14414 | arg2 = obj1; |
d55e5bfc RD |
14415 | { |
14416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 14417 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
d55e5bfc RD |
14418 | |
14419 | wxPyEndAllowThreads(__tstate); | |
14420 | if (PyErr_Occurred()) SWIG_fail; | |
14421 | } | |
14422 | { | |
14423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14424 | } | |
14425 | return resultobj; | |
14426 | fail: | |
14427 | return NULL; | |
14428 | } | |
14429 | ||
14430 | ||
c32bde28 | 14431 | static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14432 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14433 | wxSound *arg1 = (wxSound *) 0 ; |
14434 | bool result; | |
14435 | PyObject * obj0 = 0 ; | |
14436 | char *kwnames[] = { | |
14437 | (char *) "self", NULL | |
14438 | }; | |
14439 | ||
14440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
14442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14443 | { |
14444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14445 | result = (bool)(arg1)->IsOk(); | |
14446 | ||
14447 | wxPyEndAllowThreads(__tstate); | |
14448 | if (PyErr_Occurred()) SWIG_fail; | |
14449 | } | |
14450 | { | |
14451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14452 | } | |
14453 | return resultobj; | |
14454 | fail: | |
14455 | return NULL; | |
14456 | } | |
14457 | ||
14458 | ||
c32bde28 | 14459 | static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14460 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14461 | wxSound *arg1 = (wxSound *) 0 ; |
14462 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
14463 | bool result; | |
14464 | PyObject * obj0 = 0 ; | |
14465 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
14466 | char *kwnames[] = { |
14467 | (char *) "self",(char *) "flags", NULL | |
14468 | }; | |
d55e5bfc | 14469 | |
b1f29bf7 | 14470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
14472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14473 | if (obj1) { |
093d3ff1 | 14474 | { |
7449af73 | 14475 | arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1)); |
093d3ff1 RD |
14476 | if (SWIG_arg_fail(2)) SWIG_fail; |
14477 | } | |
d55e5bfc RD |
14478 | } |
14479 | { | |
0439c23b | 14480 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14482 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
14483 | ||
14484 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14485 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14486 | } |
14487 | { | |
14488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14489 | } | |
14490 | return resultobj; | |
14491 | fail: | |
14492 | return NULL; | |
14493 | } | |
14494 | ||
14495 | ||
c32bde28 | 14496 | static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14497 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14498 | wxString *arg1 = 0 ; |
14499 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
14500 | bool result; | |
ae8162c8 | 14501 | bool temp1 = false ; |
d55e5bfc RD |
14502 | PyObject * obj0 = 0 ; |
14503 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
14504 | char *kwnames[] = { |
14505 | (char *) "filename",(char *) "flags", NULL | |
14506 | }; | |
d55e5bfc | 14507 | |
b1f29bf7 | 14508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
14509 | { |
14510 | arg1 = wxString_in_helper(obj0); | |
14511 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14512 | temp1 = true; |
d55e5bfc RD |
14513 | } |
14514 | if (obj1) { | |
093d3ff1 | 14515 | { |
7449af73 | 14516 | arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1)); |
093d3ff1 RD |
14517 | if (SWIG_arg_fail(2)) SWIG_fail; |
14518 | } | |
d55e5bfc RD |
14519 | } |
14520 | { | |
0439c23b | 14521 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14523 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
14524 | ||
14525 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14526 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14527 | } |
14528 | { | |
14529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14530 | } | |
14531 | { | |
14532 | if (temp1) | |
14533 | delete arg1; | |
14534 | } | |
14535 | return resultobj; | |
14536 | fail: | |
14537 | { | |
14538 | if (temp1) | |
14539 | delete arg1; | |
14540 | } | |
14541 | return NULL; | |
14542 | } | |
14543 | ||
14544 | ||
c32bde28 | 14545 | static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14546 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14547 | char *kwnames[] = { |
14548 | NULL | |
14549 | }; | |
14550 | ||
14551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
14552 | { | |
0439c23b | 14553 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14555 | wxSound::Stop(); | |
14556 | ||
14557 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14558 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14559 | } |
14560 | Py_INCREF(Py_None); resultobj = Py_None; | |
14561 | return resultobj; | |
14562 | fail: | |
14563 | return NULL; | |
14564 | } | |
14565 | ||
14566 | ||
c32bde28 | 14567 | static PyObject * Sound_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14568 | PyObject *obj; |
14569 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14570 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
14571 | Py_INCREF(obj); | |
14572 | return Py_BuildValue((char *)""); | |
14573 | } | |
c32bde28 | 14574 | static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14575 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14576 | wxString *arg1 = 0 ; |
14577 | wxString *arg2 = 0 ; | |
14578 | wxString *arg3 = 0 ; | |
14579 | wxString *arg4 = 0 ; | |
14580 | wxFileTypeInfo *result; | |
ae8162c8 RD |
14581 | bool temp1 = false ; |
14582 | bool temp2 = false ; | |
14583 | bool temp3 = false ; | |
14584 | bool temp4 = false ; | |
d55e5bfc RD |
14585 | PyObject * obj0 = 0 ; |
14586 | PyObject * obj1 = 0 ; | |
14587 | PyObject * obj2 = 0 ; | |
14588 | PyObject * obj3 = 0 ; | |
14589 | char *kwnames[] = { | |
14590 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
14591 | }; | |
14592 | ||
14593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14594 | { | |
14595 | arg1 = wxString_in_helper(obj0); | |
14596 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14597 | temp1 = true; |
d55e5bfc RD |
14598 | } |
14599 | { | |
14600 | arg2 = wxString_in_helper(obj1); | |
14601 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14602 | temp2 = true; |
d55e5bfc RD |
14603 | } |
14604 | { | |
14605 | arg3 = wxString_in_helper(obj2); | |
14606 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14607 | temp3 = true; |
d55e5bfc RD |
14608 | } |
14609 | { | |
14610 | arg4 = wxString_in_helper(obj3); | |
14611 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 14612 | temp4 = true; |
d55e5bfc RD |
14613 | } |
14614 | { | |
14615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14616 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
14617 | ||
14618 | wxPyEndAllowThreads(__tstate); | |
14619 | if (PyErr_Occurred()) SWIG_fail; | |
14620 | } | |
14621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
14622 | { | |
14623 | if (temp1) | |
14624 | delete arg1; | |
14625 | } | |
14626 | { | |
14627 | if (temp2) | |
14628 | delete arg2; | |
14629 | } | |
14630 | { | |
14631 | if (temp3) | |
14632 | delete arg3; | |
14633 | } | |
14634 | { | |
14635 | if (temp4) | |
14636 | delete arg4; | |
14637 | } | |
14638 | return resultobj; | |
14639 | fail: | |
14640 | { | |
14641 | if (temp1) | |
14642 | delete arg1; | |
14643 | } | |
14644 | { | |
14645 | if (temp2) | |
14646 | delete arg2; | |
14647 | } | |
14648 | { | |
14649 | if (temp3) | |
14650 | delete arg3; | |
14651 | } | |
14652 | { | |
14653 | if (temp4) | |
14654 | delete arg4; | |
14655 | } | |
14656 | return NULL; | |
14657 | } | |
14658 | ||
14659 | ||
c32bde28 | 14660 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14661 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14662 | wxArrayString *arg1 = 0 ; |
14663 | wxFileTypeInfo *result; | |
ae8162c8 | 14664 | bool temp1 = false ; |
d55e5bfc RD |
14665 | PyObject * obj0 = 0 ; |
14666 | char *kwnames[] = { | |
14667 | (char *) "sArray", NULL | |
14668 | }; | |
14669 | ||
14670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
14671 | { | |
14672 | if (! PySequence_Check(obj0)) { | |
14673 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
14674 | SWIG_fail; | |
14675 | } | |
14676 | arg1 = new wxArrayString; | |
ae8162c8 | 14677 | temp1 = true; |
d55e5bfc RD |
14678 | int i, len=PySequence_Length(obj0); |
14679 | for (i=0; i<len; i++) { | |
14680 | PyObject* item = PySequence_GetItem(obj0, i); | |
71237536 | 14681 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 14682 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
14683 | arg1->Add(*s); |
14684 | delete s; | |
d55e5bfc | 14685 | Py_DECREF(item); |
d55e5bfc RD |
14686 | } |
14687 | } | |
14688 | { | |
14689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14690 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
14691 | ||
14692 | wxPyEndAllowThreads(__tstate); | |
14693 | if (PyErr_Occurred()) SWIG_fail; | |
14694 | } | |
14695 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
14696 | { | |
14697 | if (temp1) delete arg1; | |
14698 | } | |
14699 | return resultobj; | |
14700 | fail: | |
14701 | { | |
14702 | if (temp1) delete arg1; | |
14703 | } | |
14704 | return NULL; | |
14705 | } | |
14706 | ||
14707 | ||
c32bde28 | 14708 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14709 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14710 | wxFileTypeInfo *result; |
14711 | char *kwnames[] = { | |
14712 | NULL | |
14713 | }; | |
14714 | ||
14715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
14716 | { | |
14717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14718 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
14719 | ||
14720 | wxPyEndAllowThreads(__tstate); | |
14721 | if (PyErr_Occurred()) SWIG_fail; | |
14722 | } | |
14723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
14724 | return resultobj; | |
14725 | fail: | |
14726 | return NULL; | |
14727 | } | |
14728 | ||
14729 | ||
c32bde28 | 14730 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14731 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14732 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14733 | bool result; | |
14734 | PyObject * obj0 = 0 ; | |
14735 | char *kwnames[] = { | |
14736 | (char *) "self", NULL | |
14737 | }; | |
14738 | ||
14739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14742 | { |
14743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14744 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
14745 | ||
14746 | wxPyEndAllowThreads(__tstate); | |
14747 | if (PyErr_Occurred()) SWIG_fail; | |
14748 | } | |
14749 | { | |
14750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14751 | } | |
14752 | return resultobj; | |
14753 | fail: | |
14754 | return NULL; | |
14755 | } | |
14756 | ||
14757 | ||
c32bde28 | 14758 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14759 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14760 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14761 | wxString *arg2 = 0 ; | |
14762 | int arg3 = (int) 0 ; | |
ae8162c8 | 14763 | bool temp2 = false ; |
d55e5bfc RD |
14764 | PyObject * obj0 = 0 ; |
14765 | PyObject * obj1 = 0 ; | |
14766 | PyObject * obj2 = 0 ; | |
14767 | char *kwnames[] = { | |
14768 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
14769 | }; | |
14770 | ||
14771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
14772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14774 | { |
14775 | arg2 = wxString_in_helper(obj1); | |
14776 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14777 | temp2 = true; |
d55e5bfc RD |
14778 | } |
14779 | if (obj2) { | |
093d3ff1 | 14780 | { |
7449af73 | 14781 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14782 | if (SWIG_arg_fail(3)) SWIG_fail; |
14783 | } | |
d55e5bfc RD |
14784 | } |
14785 | { | |
14786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14787 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
14788 | ||
14789 | wxPyEndAllowThreads(__tstate); | |
14790 | if (PyErr_Occurred()) SWIG_fail; | |
14791 | } | |
14792 | Py_INCREF(Py_None); resultobj = Py_None; | |
14793 | { | |
14794 | if (temp2) | |
14795 | delete arg2; | |
14796 | } | |
14797 | return resultobj; | |
14798 | fail: | |
14799 | { | |
14800 | if (temp2) | |
14801 | delete arg2; | |
14802 | } | |
14803 | return NULL; | |
14804 | } | |
14805 | ||
14806 | ||
c32bde28 | 14807 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14808 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14809 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14810 | wxString *arg2 = 0 ; | |
ae8162c8 | 14811 | bool temp2 = false ; |
d55e5bfc RD |
14812 | PyObject * obj0 = 0 ; |
14813 | PyObject * obj1 = 0 ; | |
14814 | char *kwnames[] = { | |
14815 | (char *) "self",(char *) "shortDesc", NULL | |
14816 | }; | |
14817 | ||
14818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14821 | { |
14822 | arg2 = wxString_in_helper(obj1); | |
14823 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14824 | temp2 = true; |
d55e5bfc RD |
14825 | } |
14826 | { | |
14827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14828 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
14829 | ||
14830 | wxPyEndAllowThreads(__tstate); | |
14831 | if (PyErr_Occurred()) SWIG_fail; | |
14832 | } | |
14833 | Py_INCREF(Py_None); resultobj = Py_None; | |
14834 | { | |
14835 | if (temp2) | |
14836 | delete arg2; | |
14837 | } | |
14838 | return resultobj; | |
14839 | fail: | |
14840 | { | |
14841 | if (temp2) | |
14842 | delete arg2; | |
14843 | } | |
14844 | return NULL; | |
14845 | } | |
14846 | ||
14847 | ||
c32bde28 | 14848 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14849 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14850 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14851 | wxString *result; | |
14852 | PyObject * obj0 = 0 ; | |
14853 | char *kwnames[] = { | |
14854 | (char *) "self", NULL | |
14855 | }; | |
14856 | ||
14857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14860 | { |
14861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14862 | { | |
14863 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
14864 | result = (wxString *) &_result_ref; | |
14865 | } | |
14866 | ||
14867 | wxPyEndAllowThreads(__tstate); | |
14868 | if (PyErr_Occurred()) SWIG_fail; | |
14869 | } | |
14870 | { | |
14871 | #if wxUSE_UNICODE | |
14872 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14873 | #else | |
14874 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14875 | #endif | |
14876 | } | |
14877 | return resultobj; | |
14878 | fail: | |
14879 | return NULL; | |
14880 | } | |
14881 | ||
14882 | ||
c32bde28 | 14883 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14884 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14885 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14886 | wxString *result; | |
14887 | PyObject * obj0 = 0 ; | |
14888 | char *kwnames[] = { | |
14889 | (char *) "self", NULL | |
14890 | }; | |
14891 | ||
14892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14893 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14894 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14895 | { |
14896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14897 | { | |
14898 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
14899 | result = (wxString *) &_result_ref; | |
14900 | } | |
14901 | ||
14902 | wxPyEndAllowThreads(__tstate); | |
14903 | if (PyErr_Occurred()) SWIG_fail; | |
14904 | } | |
14905 | { | |
14906 | #if wxUSE_UNICODE | |
14907 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14908 | #else | |
14909 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14910 | #endif | |
14911 | } | |
14912 | return resultobj; | |
14913 | fail: | |
14914 | return NULL; | |
14915 | } | |
14916 | ||
14917 | ||
c32bde28 | 14918 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14919 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14920 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14921 | wxString *result; | |
14922 | PyObject * obj0 = 0 ; | |
14923 | char *kwnames[] = { | |
14924 | (char *) "self", NULL | |
14925 | }; | |
14926 | ||
14927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14930 | { |
14931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14932 | { | |
14933 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
14934 | result = (wxString *) &_result_ref; | |
14935 | } | |
14936 | ||
14937 | wxPyEndAllowThreads(__tstate); | |
14938 | if (PyErr_Occurred()) SWIG_fail; | |
14939 | } | |
14940 | { | |
14941 | #if wxUSE_UNICODE | |
14942 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14943 | #else | |
14944 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14945 | #endif | |
14946 | } | |
14947 | return resultobj; | |
14948 | fail: | |
14949 | return NULL; | |
14950 | } | |
14951 | ||
14952 | ||
c32bde28 | 14953 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14954 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14955 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14956 | wxString *result; | |
14957 | PyObject * obj0 = 0 ; | |
14958 | char *kwnames[] = { | |
14959 | (char *) "self", NULL | |
14960 | }; | |
14961 | ||
14962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14965 | { |
14966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14967 | { | |
14968 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
14969 | result = (wxString *) &_result_ref; | |
14970 | } | |
14971 | ||
14972 | wxPyEndAllowThreads(__tstate); | |
14973 | if (PyErr_Occurred()) SWIG_fail; | |
14974 | } | |
14975 | { | |
14976 | #if wxUSE_UNICODE | |
14977 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14978 | #else | |
14979 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14980 | #endif | |
14981 | } | |
14982 | return resultobj; | |
14983 | fail: | |
14984 | return NULL; | |
14985 | } | |
14986 | ||
14987 | ||
c32bde28 | 14988 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 14989 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14990 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14991 | wxString *result; | |
14992 | PyObject * obj0 = 0 ; | |
14993 | char *kwnames[] = { | |
14994 | (char *) "self", NULL | |
14995 | }; | |
14996 | ||
14997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15000 | { |
15001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15002 | { | |
15003 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
15004 | result = (wxString *) &_result_ref; | |
15005 | } | |
15006 | ||
15007 | wxPyEndAllowThreads(__tstate); | |
15008 | if (PyErr_Occurred()) SWIG_fail; | |
15009 | } | |
15010 | { | |
15011 | #if wxUSE_UNICODE | |
15012 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15013 | #else | |
15014 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15015 | #endif | |
15016 | } | |
15017 | return resultobj; | |
15018 | fail: | |
15019 | return NULL; | |
15020 | } | |
15021 | ||
15022 | ||
c32bde28 | 15023 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15024 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15025 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
15026 | wxArrayString *result; | |
15027 | PyObject * obj0 = 0 ; | |
15028 | char *kwnames[] = { | |
15029 | (char *) "self", NULL | |
15030 | }; | |
15031 | ||
15032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
15034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15035 | { |
15036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15037 | { | |
15038 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
15039 | result = (wxArrayString *) &_result_ref; | |
15040 | } | |
15041 | ||
15042 | wxPyEndAllowThreads(__tstate); | |
15043 | if (PyErr_Occurred()) SWIG_fail; | |
15044 | } | |
15045 | { | |
15046 | resultobj = wxArrayString2PyList_helper(*result); | |
15047 | } | |
15048 | return resultobj; | |
15049 | fail: | |
15050 | return NULL; | |
15051 | } | |
15052 | ||
15053 | ||
c32bde28 | 15054 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15055 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15056 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
15057 | int result; | |
15058 | PyObject * obj0 = 0 ; | |
15059 | char *kwnames[] = { | |
15060 | (char *) "self", NULL | |
15061 | }; | |
15062 | ||
15063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
15065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15066 | { |
15067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15068 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
15069 | ||
15070 | wxPyEndAllowThreads(__tstate); | |
15071 | if (PyErr_Occurred()) SWIG_fail; | |
15072 | } | |
093d3ff1 | 15073 | { |
7449af73 | 15074 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15075 | } |
d55e5bfc RD |
15076 | return resultobj; |
15077 | fail: | |
15078 | return NULL; | |
15079 | } | |
15080 | ||
15081 | ||
c32bde28 | 15082 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15083 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15084 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
15085 | wxString *result; | |
15086 | PyObject * obj0 = 0 ; | |
15087 | char *kwnames[] = { | |
15088 | (char *) "self", NULL | |
15089 | }; | |
15090 | ||
15091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15092 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
15093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15094 | { |
15095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15096 | { | |
15097 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
15098 | result = (wxString *) &_result_ref; | |
15099 | } | |
15100 | ||
15101 | wxPyEndAllowThreads(__tstate); | |
15102 | if (PyErr_Occurred()) SWIG_fail; | |
15103 | } | |
15104 | { | |
15105 | #if wxUSE_UNICODE | |
15106 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15107 | #else | |
15108 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15109 | #endif | |
15110 | } | |
15111 | return resultobj; | |
15112 | fail: | |
15113 | return NULL; | |
15114 | } | |
15115 | ||
15116 | ||
c32bde28 | 15117 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15118 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15119 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
15120 | int result; | |
15121 | PyObject * obj0 = 0 ; | |
15122 | char *kwnames[] = { | |
15123 | (char *) "self", NULL | |
15124 | }; | |
15125 | ||
15126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
15128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15129 | { |
15130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15131 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
15132 | ||
15133 | wxPyEndAllowThreads(__tstate); | |
15134 | if (PyErr_Occurred()) SWIG_fail; | |
15135 | } | |
093d3ff1 | 15136 | { |
7449af73 | 15137 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15138 | } |
d55e5bfc RD |
15139 | return resultobj; |
15140 | fail: | |
15141 | return NULL; | |
15142 | } | |
15143 | ||
15144 | ||
c32bde28 | 15145 | static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15146 | PyObject *obj; |
15147 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15148 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
15149 | Py_INCREF(obj); | |
15150 | return Py_BuildValue((char *)""); | |
15151 | } | |
c32bde28 | 15152 | static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15153 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15154 | wxFileTypeInfo *arg1 = 0 ; |
15155 | wxFileType *result; | |
15156 | PyObject * obj0 = 0 ; | |
15157 | char *kwnames[] = { | |
15158 | (char *) "ftInfo", NULL | |
15159 | }; | |
15160 | ||
15161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15162 | { |
15163 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
15164 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15165 | if (arg1 == NULL) { | |
15166 | SWIG_null_ref("wxFileTypeInfo"); | |
15167 | } | |
15168 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15169 | } |
15170 | { | |
15171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15172 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
15173 | ||
15174 | wxPyEndAllowThreads(__tstate); | |
15175 | if (PyErr_Occurred()) SWIG_fail; | |
15176 | } | |
15177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
15178 | return resultobj; | |
15179 | fail: | |
15180 | return NULL; | |
15181 | } | |
15182 | ||
15183 | ||
c32bde28 | 15184 | static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15185 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15186 | wxFileType *arg1 = (wxFileType *) 0 ; |
15187 | PyObject * obj0 = 0 ; | |
15188 | char *kwnames[] = { | |
15189 | (char *) "self", NULL | |
15190 | }; | |
15191 | ||
15192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15195 | { |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | delete arg1; | |
15198 | ||
15199 | wxPyEndAllowThreads(__tstate); | |
15200 | if (PyErr_Occurred()) SWIG_fail; | |
15201 | } | |
15202 | Py_INCREF(Py_None); resultobj = Py_None; | |
15203 | return resultobj; | |
15204 | fail: | |
15205 | return NULL; | |
15206 | } | |
15207 | ||
15208 | ||
c32bde28 | 15209 | static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15210 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15211 | wxFileType *arg1 = (wxFileType *) 0 ; |
15212 | PyObject *result; | |
15213 | PyObject * obj0 = 0 ; | |
15214 | char *kwnames[] = { | |
15215 | (char *) "self", NULL | |
15216 | }; | |
15217 | ||
15218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15219 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15220 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15221 | { |
15222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15223 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
15224 | ||
15225 | wxPyEndAllowThreads(__tstate); | |
15226 | if (PyErr_Occurred()) SWIG_fail; | |
15227 | } | |
15228 | resultobj = result; | |
15229 | return resultobj; | |
15230 | fail: | |
15231 | return NULL; | |
15232 | } | |
15233 | ||
15234 | ||
c32bde28 | 15235 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15236 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15237 | wxFileType *arg1 = (wxFileType *) 0 ; |
15238 | PyObject *result; | |
15239 | PyObject * obj0 = 0 ; | |
15240 | char *kwnames[] = { | |
15241 | (char *) "self", NULL | |
15242 | }; | |
15243 | ||
15244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15247 | { |
15248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15249 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
15250 | ||
15251 | wxPyEndAllowThreads(__tstate); | |
15252 | if (PyErr_Occurred()) SWIG_fail; | |
15253 | } | |
15254 | resultobj = result; | |
15255 | return resultobj; | |
15256 | fail: | |
15257 | return NULL; | |
15258 | } | |
15259 | ||
15260 | ||
c32bde28 | 15261 | static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15262 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15263 | wxFileType *arg1 = (wxFileType *) 0 ; |
15264 | PyObject *result; | |
15265 | PyObject * obj0 = 0 ; | |
15266 | char *kwnames[] = { | |
15267 | (char *) "self", NULL | |
15268 | }; | |
15269 | ||
15270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15271 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15272 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15273 | { |
15274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15275 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
15276 | ||
15277 | wxPyEndAllowThreads(__tstate); | |
15278 | if (PyErr_Occurred()) SWIG_fail; | |
15279 | } | |
15280 | resultobj = result; | |
15281 | return resultobj; | |
15282 | fail: | |
15283 | return NULL; | |
15284 | } | |
15285 | ||
15286 | ||
c32bde28 | 15287 | static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15288 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15289 | wxFileType *arg1 = (wxFileType *) 0 ; |
15290 | wxIcon *result; | |
15291 | PyObject * obj0 = 0 ; | |
15292 | char *kwnames[] = { | |
15293 | (char *) "self", NULL | |
15294 | }; | |
15295 | ||
15296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15297 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15299 | { |
15300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15301 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
15302 | ||
15303 | wxPyEndAllowThreads(__tstate); | |
15304 | if (PyErr_Occurred()) SWIG_fail; | |
15305 | } | |
15306 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
15307 | return resultobj; | |
15308 | fail: | |
15309 | return NULL; | |
15310 | } | |
15311 | ||
15312 | ||
c32bde28 | 15313 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15314 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15315 | wxFileType *arg1 = (wxFileType *) 0 ; |
15316 | PyObject *result; | |
15317 | PyObject * obj0 = 0 ; | |
15318 | char *kwnames[] = { | |
15319 | (char *) "self", NULL | |
15320 | }; | |
15321 | ||
15322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15323 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15324 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15325 | { |
15326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15327 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
15328 | ||
15329 | wxPyEndAllowThreads(__tstate); | |
15330 | if (PyErr_Occurred()) SWIG_fail; | |
15331 | } | |
15332 | resultobj = result; | |
15333 | return resultobj; | |
15334 | fail: | |
15335 | return NULL; | |
15336 | } | |
15337 | ||
15338 | ||
c32bde28 | 15339 | static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15340 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15341 | wxFileType *arg1 = (wxFileType *) 0 ; |
15342 | PyObject *result; | |
15343 | PyObject * obj0 = 0 ; | |
15344 | char *kwnames[] = { | |
15345 | (char *) "self", NULL | |
15346 | }; | |
15347 | ||
15348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15351 | { |
15352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15353 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
15354 | ||
15355 | wxPyEndAllowThreads(__tstate); | |
15356 | if (PyErr_Occurred()) SWIG_fail; | |
15357 | } | |
15358 | resultobj = result; | |
15359 | return resultobj; | |
15360 | fail: | |
15361 | return NULL; | |
15362 | } | |
15363 | ||
15364 | ||
c32bde28 | 15365 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15366 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15367 | wxFileType *arg1 = (wxFileType *) 0 ; |
15368 | wxString *arg2 = 0 ; | |
15369 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15370 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15371 | PyObject *result; | |
ae8162c8 RD |
15372 | bool temp2 = false ; |
15373 | bool temp3 = false ; | |
d55e5bfc RD |
15374 | PyObject * obj0 = 0 ; |
15375 | PyObject * obj1 = 0 ; | |
15376 | PyObject * obj2 = 0 ; | |
15377 | char *kwnames[] = { | |
15378 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
15379 | }; | |
15380 | ||
15381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15384 | { |
15385 | arg2 = wxString_in_helper(obj1); | |
15386 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15387 | temp2 = true; |
d55e5bfc RD |
15388 | } |
15389 | if (obj2) { | |
15390 | { | |
15391 | arg3 = wxString_in_helper(obj2); | |
15392 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15393 | temp3 = true; |
d55e5bfc RD |
15394 | } |
15395 | } | |
15396 | { | |
15397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15398 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
15399 | ||
15400 | wxPyEndAllowThreads(__tstate); | |
15401 | if (PyErr_Occurred()) SWIG_fail; | |
15402 | } | |
15403 | resultobj = result; | |
15404 | { | |
15405 | if (temp2) | |
15406 | delete arg2; | |
15407 | } | |
15408 | { | |
15409 | if (temp3) | |
15410 | delete arg3; | |
15411 | } | |
15412 | return resultobj; | |
15413 | fail: | |
15414 | { | |
15415 | if (temp2) | |
15416 | delete arg2; | |
15417 | } | |
15418 | { | |
15419 | if (temp3) | |
15420 | delete arg3; | |
15421 | } | |
15422 | return NULL; | |
15423 | } | |
15424 | ||
15425 | ||
c32bde28 | 15426 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15427 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15428 | wxFileType *arg1 = (wxFileType *) 0 ; |
15429 | wxString *arg2 = 0 ; | |
15430 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15431 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15432 | PyObject *result; | |
ae8162c8 RD |
15433 | bool temp2 = false ; |
15434 | bool temp3 = false ; | |
d55e5bfc RD |
15435 | PyObject * obj0 = 0 ; |
15436 | PyObject * obj1 = 0 ; | |
15437 | PyObject * obj2 = 0 ; | |
15438 | char *kwnames[] = { | |
15439 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
15440 | }; | |
15441 | ||
15442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15443 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15444 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15445 | { |
15446 | arg2 = wxString_in_helper(obj1); | |
15447 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15448 | temp2 = true; |
d55e5bfc RD |
15449 | } |
15450 | if (obj2) { | |
15451 | { | |
15452 | arg3 = wxString_in_helper(obj2); | |
15453 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15454 | temp3 = true; |
d55e5bfc RD |
15455 | } |
15456 | } | |
15457 | { | |
15458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15459 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
15460 | ||
15461 | wxPyEndAllowThreads(__tstate); | |
15462 | if (PyErr_Occurred()) SWIG_fail; | |
15463 | } | |
15464 | resultobj = result; | |
15465 | { | |
15466 | if (temp2) | |
15467 | delete arg2; | |
15468 | } | |
15469 | { | |
15470 | if (temp3) | |
15471 | delete arg3; | |
15472 | } | |
15473 | return resultobj; | |
15474 | fail: | |
15475 | { | |
15476 | if (temp2) | |
15477 | delete arg2; | |
15478 | } | |
15479 | { | |
15480 | if (temp3) | |
15481 | delete arg3; | |
15482 | } | |
15483 | return NULL; | |
15484 | } | |
15485 | ||
15486 | ||
c32bde28 | 15487 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15488 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15489 | wxFileType *arg1 = (wxFileType *) 0 ; |
15490 | wxString *arg2 = 0 ; | |
15491 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15492 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15493 | PyObject *result; | |
ae8162c8 RD |
15494 | bool temp2 = false ; |
15495 | bool temp3 = false ; | |
d55e5bfc RD |
15496 | PyObject * obj0 = 0 ; |
15497 | PyObject * obj1 = 0 ; | |
15498 | PyObject * obj2 = 0 ; | |
15499 | char *kwnames[] = { | |
15500 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
15501 | }; | |
15502 | ||
15503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15504 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15505 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15506 | { |
15507 | arg2 = wxString_in_helper(obj1); | |
15508 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15509 | temp2 = true; |
d55e5bfc RD |
15510 | } |
15511 | if (obj2) { | |
15512 | { | |
15513 | arg3 = wxString_in_helper(obj2); | |
15514 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15515 | temp3 = true; |
d55e5bfc RD |
15516 | } |
15517 | } | |
15518 | { | |
15519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15520 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
15521 | ||
15522 | wxPyEndAllowThreads(__tstate); | |
15523 | if (PyErr_Occurred()) SWIG_fail; | |
15524 | } | |
15525 | resultobj = result; | |
15526 | { | |
15527 | if (temp2) | |
15528 | delete arg2; | |
15529 | } | |
15530 | { | |
15531 | if (temp3) | |
15532 | delete arg3; | |
15533 | } | |
15534 | return resultobj; | |
15535 | fail: | |
15536 | { | |
15537 | if (temp2) | |
15538 | delete arg2; | |
15539 | } | |
15540 | { | |
15541 | if (temp3) | |
15542 | delete arg3; | |
15543 | } | |
15544 | return NULL; | |
15545 | } | |
15546 | ||
15547 | ||
c32bde28 | 15548 | static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15549 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15550 | wxFileType *arg1 = (wxFileType *) 0 ; |
15551 | wxString *arg2 = 0 ; | |
15552 | wxString *arg3 = 0 ; | |
ae8162c8 | 15553 | bool arg4 = (bool) true ; |
d55e5bfc | 15554 | bool result; |
ae8162c8 RD |
15555 | bool temp2 = false ; |
15556 | bool temp3 = false ; | |
d55e5bfc RD |
15557 | PyObject * obj0 = 0 ; |
15558 | PyObject * obj1 = 0 ; | |
15559 | PyObject * obj2 = 0 ; | |
15560 | PyObject * obj3 = 0 ; | |
15561 | char *kwnames[] = { | |
15562 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
15563 | }; | |
15564 | ||
15565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
15566 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15567 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15568 | { |
15569 | arg2 = wxString_in_helper(obj1); | |
15570 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15571 | temp2 = true; |
d55e5bfc RD |
15572 | } |
15573 | { | |
15574 | arg3 = wxString_in_helper(obj2); | |
15575 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15576 | temp3 = true; |
d55e5bfc RD |
15577 | } |
15578 | if (obj3) { | |
093d3ff1 | 15579 | { |
7449af73 | 15580 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
15581 | if (SWIG_arg_fail(4)) SWIG_fail; |
15582 | } | |
d55e5bfc RD |
15583 | } |
15584 | { | |
15585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15586 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
15587 | ||
15588 | wxPyEndAllowThreads(__tstate); | |
15589 | if (PyErr_Occurred()) SWIG_fail; | |
15590 | } | |
15591 | { | |
15592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15593 | } | |
15594 | { | |
15595 | if (temp2) | |
15596 | delete arg2; | |
15597 | } | |
15598 | { | |
15599 | if (temp3) | |
15600 | delete arg3; | |
15601 | } | |
15602 | return resultobj; | |
15603 | fail: | |
15604 | { | |
15605 | if (temp2) | |
15606 | delete arg2; | |
15607 | } | |
15608 | { | |
15609 | if (temp3) | |
15610 | delete arg3; | |
15611 | } | |
15612 | return NULL; | |
15613 | } | |
15614 | ||
15615 | ||
c32bde28 | 15616 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15617 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15618 | wxFileType *arg1 = (wxFileType *) 0 ; |
15619 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15620 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15621 | int arg3 = (int) 0 ; | |
15622 | bool result; | |
ae8162c8 | 15623 | bool temp2 = false ; |
d55e5bfc RD |
15624 | PyObject * obj0 = 0 ; |
15625 | PyObject * obj1 = 0 ; | |
15626 | PyObject * obj2 = 0 ; | |
15627 | char *kwnames[] = { | |
15628 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
15629 | }; | |
15630 | ||
15631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15634 | if (obj1) { |
15635 | { | |
15636 | arg2 = wxString_in_helper(obj1); | |
15637 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15638 | temp2 = true; |
d55e5bfc RD |
15639 | } |
15640 | } | |
15641 | if (obj2) { | |
093d3ff1 | 15642 | { |
7449af73 | 15643 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
15644 | if (SWIG_arg_fail(3)) SWIG_fail; |
15645 | } | |
d55e5bfc RD |
15646 | } |
15647 | { | |
15648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15649 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
15650 | ||
15651 | wxPyEndAllowThreads(__tstate); | |
15652 | if (PyErr_Occurred()) SWIG_fail; | |
15653 | } | |
15654 | { | |
15655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15656 | } | |
15657 | { | |
15658 | if (temp2) | |
15659 | delete arg2; | |
15660 | } | |
15661 | return resultobj; | |
15662 | fail: | |
15663 | { | |
15664 | if (temp2) | |
15665 | delete arg2; | |
15666 | } | |
15667 | return NULL; | |
15668 | } | |
15669 | ||
15670 | ||
c32bde28 | 15671 | static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15672 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15673 | wxFileType *arg1 = (wxFileType *) 0 ; |
15674 | bool result; | |
15675 | PyObject * obj0 = 0 ; | |
15676 | char *kwnames[] = { | |
15677 | (char *) "self", NULL | |
15678 | }; | |
15679 | ||
15680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15681 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15682 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15683 | { |
15684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15685 | result = (bool)(arg1)->Unassociate(); | |
15686 | ||
15687 | wxPyEndAllowThreads(__tstate); | |
15688 | if (PyErr_Occurred()) SWIG_fail; | |
15689 | } | |
15690 | { | |
15691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15692 | } | |
15693 | return resultobj; | |
15694 | fail: | |
15695 | return NULL; | |
15696 | } | |
15697 | ||
15698 | ||
c32bde28 | 15699 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15700 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15701 | wxString *arg1 = 0 ; |
15702 | wxString *arg2 = 0 ; | |
15703 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15704 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15705 | wxString result; | |
ae8162c8 RD |
15706 | bool temp1 = false ; |
15707 | bool temp2 = false ; | |
15708 | bool temp3 = false ; | |
d55e5bfc RD |
15709 | PyObject * obj0 = 0 ; |
15710 | PyObject * obj1 = 0 ; | |
15711 | PyObject * obj2 = 0 ; | |
15712 | char *kwnames[] = { | |
15713 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
15714 | }; | |
15715 | ||
15716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15717 | { | |
15718 | arg1 = wxString_in_helper(obj0); | |
15719 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 15720 | temp1 = true; |
d55e5bfc RD |
15721 | } |
15722 | { | |
15723 | arg2 = wxString_in_helper(obj1); | |
15724 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15725 | temp2 = true; |
d55e5bfc RD |
15726 | } |
15727 | if (obj2) { | |
15728 | { | |
15729 | arg3 = wxString_in_helper(obj2); | |
15730 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15731 | temp3 = true; |
d55e5bfc RD |
15732 | } |
15733 | } | |
15734 | { | |
15735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 15736 | result = wxFileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); |
d55e5bfc RD |
15737 | |
15738 | wxPyEndAllowThreads(__tstate); | |
15739 | if (PyErr_Occurred()) SWIG_fail; | |
15740 | } | |
15741 | { | |
15742 | #if wxUSE_UNICODE | |
15743 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15744 | #else | |
15745 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15746 | #endif | |
15747 | } | |
15748 | { | |
15749 | if (temp1) | |
15750 | delete arg1; | |
15751 | } | |
15752 | { | |
15753 | if (temp2) | |
15754 | delete arg2; | |
15755 | } | |
15756 | { | |
15757 | if (temp3) | |
15758 | delete arg3; | |
15759 | } | |
15760 | return resultobj; | |
15761 | fail: | |
15762 | { | |
15763 | if (temp1) | |
15764 | delete arg1; | |
15765 | } | |
15766 | { | |
15767 | if (temp2) | |
15768 | delete arg2; | |
15769 | } | |
15770 | { | |
15771 | if (temp3) | |
15772 | delete arg3; | |
15773 | } | |
15774 | return NULL; | |
15775 | } | |
15776 | ||
15777 | ||
c32bde28 | 15778 | static PyObject * FileType_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15779 | PyObject *obj; |
15780 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15781 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
15782 | Py_INCREF(obj); | |
15783 | return Py_BuildValue((char *)""); | |
15784 | } | |
c32bde28 | 15785 | static int _wrap_TheMimeTypesManager_set(PyObject *) { |
d55e5bfc RD |
15786 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); |
15787 | return 1; | |
15788 | } | |
15789 | ||
15790 | ||
093d3ff1 | 15791 | static PyObject *_wrap_TheMimeTypesManager_get(void) { |
7449af73 | 15792 | PyObject *pyobj = NULL; |
d55e5bfc RD |
15793 | |
15794 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
15795 | return pyobj; | |
15796 | } | |
15797 | ||
15798 | ||
c32bde28 | 15799 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15800 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15801 | wxString *arg1 = 0 ; |
15802 | wxString *arg2 = 0 ; | |
15803 | bool result; | |
ae8162c8 RD |
15804 | bool temp1 = false ; |
15805 | bool temp2 = false ; | |
d55e5bfc RD |
15806 | PyObject * obj0 = 0 ; |
15807 | PyObject * obj1 = 0 ; | |
15808 | char *kwnames[] = { | |
15809 | (char *) "mimeType",(char *) "wildcard", NULL | |
15810 | }; | |
15811 | ||
15812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
15813 | { | |
15814 | arg1 = wxString_in_helper(obj0); | |
15815 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 15816 | temp1 = true; |
d55e5bfc RD |
15817 | } |
15818 | { | |
15819 | arg2 = wxString_in_helper(obj1); | |
15820 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15821 | temp2 = true; |
d55e5bfc RD |
15822 | } |
15823 | { | |
15824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15825 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
15826 | ||
15827 | wxPyEndAllowThreads(__tstate); | |
15828 | if (PyErr_Occurred()) SWIG_fail; | |
15829 | } | |
15830 | { | |
15831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15832 | } | |
15833 | { | |
15834 | if (temp1) | |
15835 | delete arg1; | |
15836 | } | |
15837 | { | |
15838 | if (temp2) | |
15839 | delete arg2; | |
15840 | } | |
15841 | return resultobj; | |
15842 | fail: | |
15843 | { | |
15844 | if (temp1) | |
15845 | delete arg1; | |
15846 | } | |
15847 | { | |
15848 | if (temp2) | |
15849 | delete arg2; | |
15850 | } | |
15851 | return NULL; | |
15852 | } | |
15853 | ||
15854 | ||
c32bde28 | 15855 | static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15856 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15857 | wxMimeTypesManager *result; |
15858 | char *kwnames[] = { | |
15859 | NULL | |
15860 | }; | |
15861 | ||
15862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
15863 | { | |
15864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15865 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
15866 | ||
15867 | wxPyEndAllowThreads(__tstate); | |
15868 | if (PyErr_Occurred()) SWIG_fail; | |
15869 | } | |
15870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
15871 | return resultobj; | |
15872 | fail: | |
15873 | return NULL; | |
15874 | } | |
15875 | ||
15876 | ||
c32bde28 | 15877 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15878 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15879 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
15880 | int arg2 = (int) wxMAILCAP_ALL ; | |
15881 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15882 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
ae8162c8 | 15883 | bool temp3 = false ; |
d55e5bfc RD |
15884 | PyObject * obj0 = 0 ; |
15885 | PyObject * obj1 = 0 ; | |
15886 | PyObject * obj2 = 0 ; | |
15887 | char *kwnames[] = { | |
15888 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
15889 | }; | |
15890 | ||
15891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15892 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15893 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 15894 | if (obj1) { |
093d3ff1 | 15895 | { |
7449af73 | 15896 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15897 | if (SWIG_arg_fail(2)) SWIG_fail; |
15898 | } | |
d55e5bfc RD |
15899 | } |
15900 | if (obj2) { | |
15901 | { | |
15902 | arg3 = wxString_in_helper(obj2); | |
15903 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15904 | temp3 = true; |
d55e5bfc RD |
15905 | } |
15906 | } | |
15907 | { | |
15908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15909 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
15910 | ||
15911 | wxPyEndAllowThreads(__tstate); | |
15912 | if (PyErr_Occurred()) SWIG_fail; | |
15913 | } | |
15914 | Py_INCREF(Py_None); resultobj = Py_None; | |
15915 | { | |
15916 | if (temp3) | |
15917 | delete arg3; | |
15918 | } | |
15919 | return resultobj; | |
15920 | fail: | |
15921 | { | |
15922 | if (temp3) | |
15923 | delete arg3; | |
15924 | } | |
15925 | return NULL; | |
15926 | } | |
15927 | ||
15928 | ||
c32bde28 | 15929 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15930 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15931 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
15932 | PyObject * obj0 = 0 ; | |
15933 | char *kwnames[] = { | |
15934 | (char *) "self", NULL | |
15935 | }; | |
15936 | ||
15937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15940 | { |
15941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15942 | (arg1)->ClearData(); | |
15943 | ||
15944 | wxPyEndAllowThreads(__tstate); | |
15945 | if (PyErr_Occurred()) SWIG_fail; | |
15946 | } | |
15947 | Py_INCREF(Py_None); resultobj = Py_None; | |
15948 | return resultobj; | |
15949 | fail: | |
15950 | return NULL; | |
15951 | } | |
15952 | ||
15953 | ||
c32bde28 | 15954 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15955 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15956 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
15957 | wxString *arg2 = 0 ; | |
15958 | wxFileType *result; | |
ae8162c8 | 15959 | bool temp2 = false ; |
d55e5bfc RD |
15960 | PyObject * obj0 = 0 ; |
15961 | PyObject * obj1 = 0 ; | |
15962 | char *kwnames[] = { | |
15963 | (char *) "self",(char *) "ext", NULL | |
15964 | }; | |
15965 | ||
15966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15967 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15968 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15969 | { |
15970 | arg2 = wxString_in_helper(obj1); | |
15971 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15972 | temp2 = true; |
d55e5bfc RD |
15973 | } |
15974 | { | |
15975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15976 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
15977 | ||
15978 | wxPyEndAllowThreads(__tstate); | |
15979 | if (PyErr_Occurred()) SWIG_fail; | |
15980 | } | |
15981 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
15982 | { | |
15983 | if (temp2) | |
15984 | delete arg2; | |
15985 | } | |
15986 | return resultobj; | |
15987 | fail: | |
15988 | { | |
15989 | if (temp2) | |
15990 | delete arg2; | |
15991 | } | |
15992 | return NULL; | |
15993 | } | |
15994 | ||
15995 | ||
c32bde28 | 15996 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 15997 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15998 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
15999 | wxString *arg2 = 0 ; | |
16000 | wxFileType *result; | |
ae8162c8 | 16001 | bool temp2 = false ; |
d55e5bfc RD |
16002 | PyObject * obj0 = 0 ; |
16003 | PyObject * obj1 = 0 ; | |
16004 | char *kwnames[] = { | |
16005 | (char *) "self",(char *) "mimeType", NULL | |
16006 | }; | |
16007 | ||
16008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16011 | { |
16012 | arg2 = wxString_in_helper(obj1); | |
16013 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16014 | temp2 = true; |
d55e5bfc RD |
16015 | } |
16016 | { | |
16017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16018 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
16019 | ||
16020 | wxPyEndAllowThreads(__tstate); | |
16021 | if (PyErr_Occurred()) SWIG_fail; | |
16022 | } | |
16023 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
16024 | { | |
16025 | if (temp2) | |
16026 | delete arg2; | |
16027 | } | |
16028 | return resultobj; | |
16029 | fail: | |
16030 | { | |
16031 | if (temp2) | |
16032 | delete arg2; | |
16033 | } | |
16034 | return NULL; | |
16035 | } | |
16036 | ||
16037 | ||
c32bde28 | 16038 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 16039 | PyObject *resultobj = NULL; |
d55e5bfc RD |
16040 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16041 | wxString *arg2 = 0 ; | |
ae8162c8 | 16042 | bool arg3 = (bool) false ; |
d55e5bfc | 16043 | bool result; |
ae8162c8 | 16044 | bool temp2 = false ; |
d55e5bfc RD |
16045 | PyObject * obj0 = 0 ; |
16046 | PyObject * obj1 = 0 ; | |
16047 | PyObject * obj2 = 0 ; | |
16048 | char *kwnames[] = { | |
16049 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
16050 | }; | |
16051 | ||
16052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
16053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16055 | { |
16056 | arg2 = wxString_in_helper(obj1); | |
16057 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16058 | temp2 = true; |
d55e5bfc RD |
16059 | } |
16060 | if (obj2) { | |
093d3ff1 | 16061 | { |
7449af73 | 16062 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
16063 | if (SWIG_arg_fail(3)) SWIG_fail; |
16064 | } | |
d55e5bfc RD |
16065 | } |
16066 | { | |
16067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16068 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
16069 | ||
16070 | wxPyEndAllowThreads(__tstate); | |
16071 | if (PyErr_Occurred()) SWIG_fail; | |
16072 | } | |
16073 | { | |
16074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16075 | } | |
16076 | { | |
16077 | if (temp2) | |
16078 | delete arg2; | |
16079 | } | |
16080 | return resultobj; | |
16081 | fail: | |
16082 | { | |
16083 | if (temp2) | |
16084 | delete arg2; | |
16085 | } | |
16086 | return NULL; | |
16087 | } | |
16088 | ||
16089 | ||
c32bde28 | 16090 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 16091 | PyObject *resultobj = NULL; |
d55e5bfc RD |
16092 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16093 | wxString *arg2 = 0 ; | |
16094 | bool result; | |
ae8162c8 | 16095 | bool temp2 = false ; |
d55e5bfc RD |
16096 | PyObject * obj0 = 0 ; |
16097 | PyObject * obj1 = 0 ; | |
16098 | char *kwnames[] = { | |
16099 | (char *) "self",(char *) "filename", NULL | |
16100 | }; | |
16101 | ||
16102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16105 | { |
16106 | arg2 = wxString_in_helper(obj1); | |
16107 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16108 | temp2 = true; |
d55e5bfc RD |
16109 | } |
16110 | { | |
16111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16112 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
16113 | ||
16114 | wxPyEndAllowThreads(__tstate); | |
16115 | if (PyErr_Occurred()) SWIG_fail; | |
16116 | } | |
16117 | { | |
16118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16119 | } | |
16120 | { | |
16121 | if (temp2) | |
16122 | delete arg2; | |
16123 | } | |
16124 | return resultobj; | |
16125 | fail: | |
16126 | { | |
16127 | if (temp2) | |
16128 | delete arg2; | |
16129 | } | |
16130 | return NULL; | |
16131 | } | |
16132 | ||
16133 | ||
c32bde28 | 16134 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 16135 | PyObject *resultobj = NULL; |
d55e5bfc RD |
16136 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16137 | PyObject *result; | |
16138 | PyObject * obj0 = 0 ; | |
16139 | char *kwnames[] = { | |
16140 | (char *) "self", NULL | |
16141 | }; | |
16142 | ||
16143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16146 | { |
16147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16148 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
16149 | ||
16150 | wxPyEndAllowThreads(__tstate); | |
16151 | if (PyErr_Occurred()) SWIG_fail; | |
16152 | } | |
16153 | resultobj = result; | |
16154 | return resultobj; | |
16155 | fail: | |
16156 | return NULL; | |
16157 | } | |
16158 | ||
16159 | ||
c32bde28 | 16160 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 16161 | PyObject *resultobj = NULL; |
d55e5bfc RD |
16162 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16163 | wxFileTypeInfo *arg2 = 0 ; | |
16164 | PyObject * obj0 = 0 ; | |
16165 | PyObject * obj1 = 0 ; | |
16166 | char *kwnames[] = { | |
16167 | (char *) "self",(char *) "ft", NULL | |
16168 | }; | |
16169 | ||
16170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16173 | { | |
16174 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
16175 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16176 | if (arg2 == NULL) { | |
16177 | SWIG_null_ref("wxFileTypeInfo"); | |
16178 | } | |
16179 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
16180 | } |
16181 | { | |
16182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16183 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
16184 | ||
16185 | wxPyEndAllowThreads(__tstate); | |
16186 | if (PyErr_Occurred()) SWIG_fail; | |
16187 | } | |
16188 | Py_INCREF(Py_None); resultobj = Py_None; | |
16189 | return resultobj; | |
16190 | fail: | |
16191 | return NULL; | |
16192 | } | |
16193 | ||
16194 | ||
c32bde28 | 16195 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 16196 | PyObject *resultobj = NULL; |
d55e5bfc RD |
16197 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16198 | wxFileTypeInfo *arg2 = 0 ; | |
16199 | wxFileType *result; | |
16200 | PyObject * obj0 = 0 ; | |
16201 | PyObject * obj1 = 0 ; | |
16202 | char *kwnames[] = { | |
16203 | (char *) "self",(char *) "ftInfo", NULL | |
16204 | }; | |
16205 | ||
16206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16209 | { | |
16210 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
16211 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16212 | if (arg2 == NULL) { | |
16213 | SWIG_null_ref("wxFileTypeInfo"); | |
16214 | } | |
16215 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
16216 | } |
16217 | { | |
16218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16219 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
16220 | ||
16221 | wxPyEndAllowThreads(__tstate); | |
16222 | if (PyErr_Occurred()) SWIG_fail; | |
16223 | } | |
16224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
16225 | return resultobj; | |
16226 | fail: | |
16227 | return NULL; | |
16228 | } | |
16229 | ||
16230 | ||
c32bde28 | 16231 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 16232 | PyObject *resultobj = NULL; |
d55e5bfc RD |
16233 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16234 | wxFileType *arg2 = (wxFileType *) 0 ; | |
16235 | bool result; | |
16236 | PyObject * obj0 = 0 ; | |
16237 | PyObject * obj1 = 0 ; | |
16238 | char *kwnames[] = { | |
16239 | (char *) "self",(char *) "ft", NULL | |
16240 | }; | |
16241 | ||
16242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16245 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); | |
16246 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
16247 | { |
16248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16249 | result = (bool)(arg1)->Unassociate(arg2); | |
16250 | ||
16251 | wxPyEndAllowThreads(__tstate); | |
16252 | if (PyErr_Occurred()) SWIG_fail; | |
16253 | } | |
16254 | { | |
16255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16256 | } | |
16257 | return resultobj; | |
16258 | fail: | |
16259 | return NULL; | |
16260 | } | |
16261 | ||
16262 | ||
c32bde28 | 16263 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 16264 | PyObject *resultobj = NULL; |
d55e5bfc RD |
16265 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16266 | PyObject * obj0 = 0 ; | |
16267 | char *kwnames[] = { | |
16268 | (char *) "self", NULL | |
16269 | }; | |
16270 | ||
16271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16274 | { |
16275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16276 | delete arg1; | |
16277 | ||
16278 | wxPyEndAllowThreads(__tstate); | |
16279 | if (PyErr_Occurred()) SWIG_fail; | |
16280 | } | |
16281 | Py_INCREF(Py_None); resultobj = Py_None; | |
16282 | return resultobj; | |
16283 | fail: | |
16284 | return NULL; | |
16285 | } | |
16286 | ||
16287 | ||
c32bde28 | 16288 | static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16289 | PyObject *obj; |
16290 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16291 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
16292 | Py_INCREF(obj); | |
16293 | return Py_BuildValue((char *)""); | |
16294 | } | |
c32bde28 | 16295 | static int _wrap_ART_TOOLBAR_set(PyObject *) { |
d55e5bfc RD |
16296 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); |
16297 | return 1; | |
16298 | } | |
16299 | ||
16300 | ||
093d3ff1 | 16301 | static PyObject *_wrap_ART_TOOLBAR_get(void) { |
7449af73 | 16302 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16303 | |
16304 | { | |
16305 | #if wxUSE_UNICODE | |
16306 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
16307 | #else | |
16308 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
16309 | #endif | |
16310 | } | |
16311 | return pyobj; | |
16312 | } | |
16313 | ||
16314 | ||
c32bde28 | 16315 | static int _wrap_ART_MENU_set(PyObject *) { |
d55e5bfc RD |
16316 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); |
16317 | return 1; | |
16318 | } | |
16319 | ||
16320 | ||
093d3ff1 | 16321 | static PyObject *_wrap_ART_MENU_get(void) { |
7449af73 | 16322 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16323 | |
16324 | { | |
16325 | #if wxUSE_UNICODE | |
16326 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
16327 | #else | |
16328 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
16329 | #endif | |
16330 | } | |
16331 | return pyobj; | |
16332 | } | |
16333 | ||
16334 | ||
c32bde28 | 16335 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { |
d55e5bfc RD |
16336 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); |
16337 | return 1; | |
16338 | } | |
16339 | ||
16340 | ||
093d3ff1 | 16341 | static PyObject *_wrap_ART_FRAME_ICON_get(void) { |
7449af73 | 16342 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16343 | |
16344 | { | |
16345 | #if wxUSE_UNICODE | |
16346 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
16347 | #else | |
16348 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
16349 | #endif | |
16350 | } | |
16351 | return pyobj; | |
16352 | } | |
16353 | ||
16354 | ||
c32bde28 | 16355 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { |
d55e5bfc RD |
16356 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); |
16357 | return 1; | |
16358 | } | |
16359 | ||
16360 | ||
093d3ff1 | 16361 | static PyObject *_wrap_ART_CMN_DIALOG_get(void) { |
7449af73 | 16362 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16363 | |
16364 | { | |
16365 | #if wxUSE_UNICODE | |
16366 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
16367 | #else | |
16368 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
16369 | #endif | |
16370 | } | |
16371 | return pyobj; | |
16372 | } | |
16373 | ||
16374 | ||
c32bde28 | 16375 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { |
d55e5bfc RD |
16376 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); |
16377 | return 1; | |
16378 | } | |
16379 | ||
16380 | ||
093d3ff1 | 16381 | static PyObject *_wrap_ART_HELP_BROWSER_get(void) { |
7449af73 | 16382 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16383 | |
16384 | { | |
16385 | #if wxUSE_UNICODE | |
16386 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
16387 | #else | |
16388 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
16389 | #endif | |
16390 | } | |
16391 | return pyobj; | |
16392 | } | |
16393 | ||
16394 | ||
c32bde28 | 16395 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { |
d55e5bfc RD |
16396 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); |
16397 | return 1; | |
16398 | } | |
16399 | ||
16400 | ||
093d3ff1 | 16401 | static PyObject *_wrap_ART_MESSAGE_BOX_get(void) { |
7449af73 | 16402 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16403 | |
16404 | { | |
16405 | #if wxUSE_UNICODE | |
16406 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
16407 | #else | |
16408 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
16409 | #endif | |
16410 | } | |
16411 | return pyobj; | |
16412 | } | |
16413 | ||
16414 | ||
c32bde28 | 16415 | static int _wrap_ART_BUTTON_set(PyObject *) { |
4cf4100f RD |
16416 | PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only."); |
16417 | return 1; | |
16418 | } | |
16419 | ||
16420 | ||
093d3ff1 | 16421 | static PyObject *_wrap_ART_BUTTON_get(void) { |
7449af73 | 16422 | PyObject *pyobj = NULL; |
4cf4100f RD |
16423 | |
16424 | { | |
16425 | #if wxUSE_UNICODE | |
16426 | pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
16427 | #else | |
16428 | pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
16429 | #endif | |
16430 | } | |
16431 | return pyobj; | |
16432 | } | |
16433 | ||
16434 | ||
c32bde28 | 16435 | static int _wrap_ART_OTHER_set(PyObject *) { |
d55e5bfc RD |
16436 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); |
16437 | return 1; | |
16438 | } | |
16439 | ||
16440 | ||
093d3ff1 | 16441 | static PyObject *_wrap_ART_OTHER_get(void) { |
7449af73 | 16442 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16443 | |
16444 | { | |
16445 | #if wxUSE_UNICODE | |
16446 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
16447 | #else | |
16448 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
16449 | #endif | |
16450 | } | |
16451 | return pyobj; | |
16452 | } | |
16453 | ||
16454 | ||
c32bde28 | 16455 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
16456 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); |
16457 | return 1; | |
16458 | } | |
16459 | ||
16460 | ||
093d3ff1 | 16461 | static PyObject *_wrap_ART_ADD_BOOKMARK_get(void) { |
7449af73 | 16462 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16463 | |
16464 | { | |
16465 | #if wxUSE_UNICODE | |
16466 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
16467 | #else | |
16468 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
16469 | #endif | |
16470 | } | |
16471 | return pyobj; | |
16472 | } | |
16473 | ||
16474 | ||
c32bde28 | 16475 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
16476 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); |
16477 | return 1; | |
16478 | } | |
16479 | ||
16480 | ||
093d3ff1 | 16481 | static PyObject *_wrap_ART_DEL_BOOKMARK_get(void) { |
7449af73 | 16482 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16483 | |
16484 | { | |
16485 | #if wxUSE_UNICODE | |
16486 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
16487 | #else | |
16488 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
16489 | #endif | |
16490 | } | |
16491 | return pyobj; | |
16492 | } | |
16493 | ||
16494 | ||
c32bde28 | 16495 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { |
d55e5bfc RD |
16496 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); |
16497 | return 1; | |
16498 | } | |
16499 | ||
16500 | ||
093d3ff1 | 16501 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get(void) { |
7449af73 | 16502 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16503 | |
16504 | { | |
16505 | #if wxUSE_UNICODE | |
16506 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
16507 | #else | |
16508 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
16509 | #endif | |
16510 | } | |
16511 | return pyobj; | |
16512 | } | |
16513 | ||
16514 | ||
c32bde28 | 16515 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { |
d55e5bfc RD |
16516 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); |
16517 | return 1; | |
16518 | } | |
16519 | ||
16520 | ||
093d3ff1 | 16521 | static PyObject *_wrap_ART_HELP_SETTINGS_get(void) { |
7449af73 | 16522 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16523 | |
16524 | { | |
16525 | #if wxUSE_UNICODE | |
16526 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
16527 | #else | |
16528 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
16529 | #endif | |
16530 | } | |
16531 | return pyobj; | |
16532 | } | |
16533 | ||
16534 | ||
c32bde28 | 16535 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { |
d55e5bfc RD |
16536 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); |
16537 | return 1; | |
16538 | } | |
16539 | ||
16540 | ||
093d3ff1 | 16541 | static PyObject *_wrap_ART_HELP_BOOK_get(void) { |
7449af73 | 16542 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16543 | |
16544 | { | |
16545 | #if wxUSE_UNICODE | |
16546 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
16547 | #else | |
16548 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
16549 | #endif | |
16550 | } | |
16551 | return pyobj; | |
16552 | } | |
16553 | ||
16554 | ||
c32bde28 | 16555 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { |
d55e5bfc RD |
16556 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); |
16557 | return 1; | |
16558 | } | |
16559 | ||
16560 | ||
093d3ff1 | 16561 | static PyObject *_wrap_ART_HELP_FOLDER_get(void) { |
7449af73 | 16562 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16563 | |
16564 | { | |
16565 | #if wxUSE_UNICODE | |
16566 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
16567 | #else | |
16568 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
16569 | #endif | |
16570 | } | |
16571 | return pyobj; | |
16572 | } | |
16573 | ||
16574 | ||
c32bde28 | 16575 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { |
d55e5bfc RD |
16576 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); |
16577 | return 1; | |
16578 | } | |
16579 | ||
16580 | ||
093d3ff1 | 16581 | static PyObject *_wrap_ART_HELP_PAGE_get(void) { |
7449af73 | 16582 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16583 | |
16584 | { | |
16585 | #if wxUSE_UNICODE | |
16586 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
16587 | #else | |
16588 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
16589 | #endif | |
16590 | } | |
16591 | return pyobj; | |
16592 | } | |
16593 | ||
16594 | ||
c32bde28 | 16595 | static int _wrap_ART_GO_BACK_set(PyObject *) { |
d55e5bfc RD |
16596 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); |
16597 | return 1; | |
16598 | } | |
16599 | ||
16600 | ||
093d3ff1 | 16601 | static PyObject *_wrap_ART_GO_BACK_get(void) { |
7449af73 | 16602 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16603 | |
16604 | { | |
16605 | #if wxUSE_UNICODE | |
16606 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
16607 | #else | |
16608 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
16609 | #endif | |
16610 | } | |
16611 | return pyobj; | |
16612 | } | |
16613 | ||
16614 | ||
c32bde28 | 16615 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { |
d55e5bfc RD |
16616 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); |
16617 | return 1; | |
16618 | } | |
16619 | ||
16620 | ||
093d3ff1 | 16621 | static PyObject *_wrap_ART_GO_FORWARD_get(void) { |
7449af73 | 16622 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16623 | |
16624 | { | |
16625 | #if wxUSE_UNICODE | |
16626 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
16627 | #else | |
16628 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
16629 | #endif | |
16630 | } | |
16631 | return pyobj; | |
16632 | } | |
16633 | ||
16634 | ||
c32bde28 | 16635 | static int _wrap_ART_GO_UP_set(PyObject *) { |
d55e5bfc RD |
16636 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); |
16637 | return 1; | |
16638 | } | |
16639 | ||
16640 | ||
093d3ff1 | 16641 | static PyObject *_wrap_ART_GO_UP_get(void) { |
7449af73 | 16642 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16643 | |
16644 | { | |
16645 | #if wxUSE_UNICODE | |
16646 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
16647 | #else | |
16648 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
16649 | #endif | |
16650 | } | |
16651 | return pyobj; | |
16652 | } | |
16653 | ||
16654 | ||
c32bde28 | 16655 | static int _wrap_ART_GO_DOWN_set(PyObject *) { |
d55e5bfc RD |
16656 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); |
16657 | return 1; | |
16658 | } | |
16659 | ||
16660 | ||
093d3ff1 | 16661 | static PyObject *_wrap_ART_GO_DOWN_get(void) { |
7449af73 | 16662 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16663 | |
16664 | { | |
16665 | #if wxUSE_UNICODE | |
16666 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
16667 | #else | |
16668 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
16669 | #endif | |
16670 | } | |
16671 | return pyobj; | |
16672 | } | |
16673 | ||
16674 | ||
c32bde28 | 16675 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { |
d55e5bfc RD |
16676 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); |
16677 | return 1; | |
16678 | } | |
16679 | ||
16680 | ||
093d3ff1 | 16681 | static PyObject *_wrap_ART_GO_TO_PARENT_get(void) { |
7449af73 | 16682 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16683 | |
16684 | { | |
16685 | #if wxUSE_UNICODE | |
16686 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
16687 | #else | |
16688 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
16689 | #endif | |
16690 | } | |
16691 | return pyobj; | |
16692 | } | |
16693 | ||
16694 | ||
c32bde28 | 16695 | static int _wrap_ART_GO_HOME_set(PyObject *) { |
d55e5bfc RD |
16696 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); |
16697 | return 1; | |
16698 | } | |
16699 | ||
16700 | ||
093d3ff1 | 16701 | static PyObject *_wrap_ART_GO_HOME_get(void) { |
7449af73 | 16702 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16703 | |
16704 | { | |
16705 | #if wxUSE_UNICODE | |
16706 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
16707 | #else | |
16708 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
16709 | #endif | |
16710 | } | |
16711 | return pyobj; | |
16712 | } | |
16713 | ||
16714 | ||
c32bde28 | 16715 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { |
d55e5bfc RD |
16716 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); |
16717 | return 1; | |
16718 | } | |
16719 | ||
16720 | ||
093d3ff1 | 16721 | static PyObject *_wrap_ART_FILE_OPEN_get(void) { |
7449af73 | 16722 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16723 | |
16724 | { | |
16725 | #if wxUSE_UNICODE | |
16726 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
16727 | #else | |
16728 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
16729 | #endif | |
16730 | } | |
16731 | return pyobj; | |
16732 | } | |
16733 | ||
16734 | ||
68350608 RD |
16735 | static int _wrap_ART_FILE_SAVE_set(PyObject *) { |
16736 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE is read-only."); | |
16737 | return 1; | |
16738 | } | |
16739 | ||
16740 | ||
16741 | static PyObject *_wrap_ART_FILE_SAVE_get(void) { | |
7449af73 | 16742 | PyObject *pyobj = NULL; |
68350608 RD |
16743 | |
16744 | { | |
16745 | #if wxUSE_UNICODE | |
16746 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len()); | |
16747 | #else | |
16748 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len()); | |
16749 | #endif | |
16750 | } | |
16751 | return pyobj; | |
16752 | } | |
16753 | ||
16754 | ||
16755 | static int _wrap_ART_FILE_SAVE_AS_set(PyObject *) { | |
16756 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE_AS is read-only."); | |
16757 | return 1; | |
16758 | } | |
16759 | ||
16760 | ||
16761 | static PyObject *_wrap_ART_FILE_SAVE_AS_get(void) { | |
7449af73 | 16762 | PyObject *pyobj = NULL; |
68350608 RD |
16763 | |
16764 | { | |
16765 | #if wxUSE_UNICODE | |
16766 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len()); | |
16767 | #else | |
16768 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len()); | |
16769 | #endif | |
16770 | } | |
16771 | return pyobj; | |
16772 | } | |
16773 | ||
16774 | ||
c32bde28 | 16775 | static int _wrap_ART_PRINT_set(PyObject *) { |
d55e5bfc RD |
16776 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); |
16777 | return 1; | |
16778 | } | |
16779 | ||
16780 | ||
093d3ff1 | 16781 | static PyObject *_wrap_ART_PRINT_get(void) { |
7449af73 | 16782 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16783 | |
16784 | { | |
16785 | #if wxUSE_UNICODE | |
16786 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
16787 | #else | |
16788 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
16789 | #endif | |
16790 | } | |
16791 | return pyobj; | |
16792 | } | |
16793 | ||
16794 | ||
c32bde28 | 16795 | static int _wrap_ART_HELP_set(PyObject *) { |
d55e5bfc RD |
16796 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); |
16797 | return 1; | |
16798 | } | |
16799 | ||
16800 | ||
093d3ff1 | 16801 | static PyObject *_wrap_ART_HELP_get(void) { |
7449af73 | 16802 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16803 | |
16804 | { | |
16805 | #if wxUSE_UNICODE | |
16806 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
16807 | #else | |
16808 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
16809 | #endif | |
16810 | } | |
16811 | return pyobj; | |
16812 | } | |
16813 | ||
16814 | ||
c32bde28 | 16815 | static int _wrap_ART_TIP_set(PyObject *) { |
d55e5bfc RD |
16816 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); |
16817 | return 1; | |
16818 | } | |
16819 | ||
16820 | ||
093d3ff1 | 16821 | static PyObject *_wrap_ART_TIP_get(void) { |
7449af73 | 16822 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16823 | |
16824 | { | |
16825 | #if wxUSE_UNICODE | |
16826 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
16827 | #else | |
16828 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
16829 | #endif | |
16830 | } | |
16831 | return pyobj; | |
16832 | } | |
16833 | ||
16834 | ||
c32bde28 | 16835 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { |
d55e5bfc RD |
16836 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); |
16837 | return 1; | |
16838 | } | |
16839 | ||
16840 | ||
093d3ff1 | 16841 | static PyObject *_wrap_ART_REPORT_VIEW_get(void) { |
7449af73 | 16842 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16843 | |
16844 | { | |
16845 | #if wxUSE_UNICODE | |
16846 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
16847 | #else | |
16848 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
16849 | #endif | |
16850 | } | |
16851 | return pyobj; | |
16852 | } | |
16853 | ||
16854 | ||
c32bde28 | 16855 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { |
d55e5bfc RD |
16856 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); |
16857 | return 1; | |
16858 | } | |
16859 | ||
16860 | ||
093d3ff1 | 16861 | static PyObject *_wrap_ART_LIST_VIEW_get(void) { |
7449af73 | 16862 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16863 | |
16864 | { | |
16865 | #if wxUSE_UNICODE | |
16866 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
16867 | #else | |
16868 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
16869 | #endif | |
16870 | } | |
16871 | return pyobj; | |
16872 | } | |
16873 | ||
16874 | ||
c32bde28 | 16875 | static int _wrap_ART_NEW_DIR_set(PyObject *) { |
d55e5bfc RD |
16876 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); |
16877 | return 1; | |
16878 | } | |
16879 | ||
16880 | ||
093d3ff1 | 16881 | static PyObject *_wrap_ART_NEW_DIR_get(void) { |
7449af73 | 16882 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16883 | |
16884 | { | |
16885 | #if wxUSE_UNICODE | |
16886 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
16887 | #else | |
16888 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
16889 | #endif | |
16890 | } | |
16891 | return pyobj; | |
16892 | } | |
16893 | ||
16894 | ||
f78cc896 RD |
16895 | static int _wrap_ART_HARDDISK_set(PyObject *) { |
16896 | PyErr_SetString(PyExc_TypeError,"Variable ART_HARDDISK is read-only."); | |
16897 | return 1; | |
16898 | } | |
16899 | ||
16900 | ||
093d3ff1 | 16901 | static PyObject *_wrap_ART_HARDDISK_get(void) { |
7449af73 | 16902 | PyObject *pyobj = NULL; |
f78cc896 RD |
16903 | |
16904 | { | |
16905 | #if wxUSE_UNICODE | |
16906 | pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
16907 | #else | |
16908 | pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
16909 | #endif | |
16910 | } | |
16911 | return pyobj; | |
16912 | } | |
16913 | ||
16914 | ||
16915 | static int _wrap_ART_FLOPPY_set(PyObject *) { | |
16916 | PyErr_SetString(PyExc_TypeError,"Variable ART_FLOPPY is read-only."); | |
16917 | return 1; | |
16918 | } | |
16919 | ||
16920 | ||
093d3ff1 | 16921 | static PyObject *_wrap_ART_FLOPPY_get(void) { |
7449af73 | 16922 | PyObject *pyobj = NULL; |
f78cc896 RD |
16923 | |
16924 | { | |
16925 | #if wxUSE_UNICODE | |
16926 | pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
16927 | #else | |
16928 | pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
16929 | #endif | |
16930 | } | |
16931 | return pyobj; | |
16932 | } | |
16933 | ||
16934 | ||
16935 | static int _wrap_ART_CDROM_set(PyObject *) { | |
16936 | PyErr_SetString(PyExc_TypeError,"Variable ART_CDROM is read-only."); | |
16937 | return 1; | |
16938 | } | |
16939 | ||
16940 | ||
093d3ff1 | 16941 | static PyObject *_wrap_ART_CDROM_get(void) { |
7449af73 | 16942 | PyObject *pyobj = NULL; |
f78cc896 RD |
16943 | |
16944 | { | |
16945 | #if wxUSE_UNICODE | |
16946 | pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
16947 | #else | |
16948 | pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
16949 | #endif | |
16950 | } | |
16951 | return pyobj; | |
16952 | } | |
16953 | ||
16954 | ||
16955 | static int _wrap_ART_REMOVABLE_set(PyObject *) { | |
16956 | PyErr_SetString(PyExc_TypeError,"Variable ART_REMOVABLE is read-only."); | |
16957 | return 1; | |
16958 | } | |
16959 | ||
16960 | ||
093d3ff1 | 16961 | static PyObject *_wrap_ART_REMOVABLE_get(void) { |
7449af73 | 16962 | PyObject *pyobj = NULL; |
f78cc896 RD |
16963 | |
16964 | { | |
16965 | #if wxUSE_UNICODE | |
16966 | pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
16967 | #else | |
16968 | pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
16969 | #endif | |
16970 | } | |
16971 | return pyobj; | |
16972 | } | |
16973 | ||
16974 | ||
c32bde28 | 16975 | static int _wrap_ART_FOLDER_set(PyObject *) { |
d55e5bfc RD |
16976 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); |
16977 | return 1; | |
16978 | } | |
16979 | ||
16980 | ||
093d3ff1 | 16981 | static PyObject *_wrap_ART_FOLDER_get(void) { |
7449af73 | 16982 | PyObject *pyobj = NULL; |
d55e5bfc RD |
16983 | |
16984 | { | |
16985 | #if wxUSE_UNICODE | |
16986 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
16987 | #else | |
16988 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
16989 | #endif | |
16990 | } | |
16991 | return pyobj; | |
16992 | } | |
16993 | ||
16994 | ||
f78cc896 RD |
16995 | static int _wrap_ART_FOLDER_OPEN_set(PyObject *) { |
16996 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER_OPEN is read-only."); | |
16997 | return 1; | |
16998 | } | |
16999 | ||
17000 | ||
093d3ff1 | 17001 | static PyObject *_wrap_ART_FOLDER_OPEN_get(void) { |
7449af73 | 17002 | PyObject *pyobj = NULL; |
f78cc896 RD |
17003 | |
17004 | { | |
17005 | #if wxUSE_UNICODE | |
17006 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
17007 | #else | |
17008 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
17009 | #endif | |
17010 | } | |
17011 | return pyobj; | |
17012 | } | |
17013 | ||
17014 | ||
c32bde28 | 17015 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { |
d55e5bfc RD |
17016 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); |
17017 | return 1; | |
17018 | } | |
17019 | ||
17020 | ||
093d3ff1 | 17021 | static PyObject *_wrap_ART_GO_DIR_UP_get(void) { |
7449af73 | 17022 | PyObject *pyobj = NULL; |
d55e5bfc RD |
17023 | |
17024 | { | |
17025 | #if wxUSE_UNICODE | |
17026 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
17027 | #else | |
17028 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
17029 | #endif | |
17030 | } | |
17031 | return pyobj; | |
17032 | } | |
17033 | ||
17034 | ||
c32bde28 | 17035 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { |
d55e5bfc RD |
17036 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); |
17037 | return 1; | |
17038 | } | |
17039 | ||
17040 | ||
093d3ff1 | 17041 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get(void) { |
7449af73 | 17042 | PyObject *pyobj = NULL; |
d55e5bfc RD |
17043 | |
17044 | { | |
17045 | #if wxUSE_UNICODE | |
17046 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
17047 | #else | |
17048 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
17049 | #endif | |
17050 | } | |
17051 | return pyobj; | |
17052 | } | |
17053 | ||
17054 | ||
c32bde28 | 17055 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { |
d55e5bfc RD |
17056 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); |
17057 | return 1; | |
17058 | } | |
17059 | ||
17060 | ||
093d3ff1 | 17061 | static PyObject *_wrap_ART_NORMAL_FILE_get(void) { |
7449af73 | 17062 | PyObject *pyobj = NULL; |
d55e5bfc RD |
17063 | |
17064 | { | |
17065 | #if wxUSE_UNICODE | |
17066 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
17067 | #else | |
17068 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
17069 | #endif | |
17070 | } | |
17071 | return pyobj; | |
17072 | } | |
17073 | ||
17074 | ||
c32bde28 | 17075 | static int _wrap_ART_TICK_MARK_set(PyObject *) { |
d55e5bfc RD |
17076 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); |
17077 | return 1; | |
17078 | } | |
17079 | ||
17080 | ||
093d3ff1 | 17081 | static PyObject *_wrap_ART_TICK_MARK_get(void) { |
7449af73 | 17082 | PyObject *pyobj = NULL; |
d55e5bfc RD |
17083 | |
17084 | { | |
17085 | #if wxUSE_UNICODE | |
17086 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
17087 | #else | |
17088 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
17089 | #endif | |
17090 | } | |
17091 | return pyobj; | |
17092 | } | |
17093 | ||
17094 | ||
c32bde28 | 17095 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { |
d55e5bfc RD |
17096 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); |
17097 | return 1; | |
17098 | } | |
17099 | ||
17100 | ||
093d3ff1 | 17101 | static PyObject *_wrap_ART_CROSS_MARK_get(void) { |
7449af73 | 17102 | PyObject *pyobj = NULL; |
d55e5bfc RD |
17103 | |
17104 | { | |
17105 | #if wxUSE_UNICODE | |
17106 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
17107 | #else | |
17108 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
17109 | #endif | |
17110 | } | |
17111 | return pyobj; | |
17112 | } | |
17113 | ||
17114 | ||
c32bde28 | 17115 | static int _wrap_ART_ERROR_set(PyObject *) { |
d55e5bfc RD |
17116 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); |
17117 | return 1; | |
17118 | } | |
17119 | ||
17120 | ||
093d3ff1 | 17121 | static PyObject *_wrap_ART_ERROR_get(void) { |
7449af73 | 17122 | PyObject *pyobj = NULL; |
d55e5bfc RD |
17123 | |
17124 | { | |
17125 | #if wxUSE_UNICODE | |
17126 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
17127 | #else | |
17128 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
17129 | #endif | |
17130 | } | |
17131 | return pyobj; | |
17132 | } | |
17133 | ||
17134 | ||
c32bde28 | 17135 | static int _wrap_ART_QUESTION_set(PyObject *) { |
d55e5bfc RD |
17136 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); |
17137 | return 1; | |
17138 | } | |
17139 | ||
17140 | ||
093d3ff1 | 17141 | static PyObject *_wrap_ART_QUESTION_get(void) { |
7449af73 | 17142 | PyObject *pyobj = NULL; |
d55e5bfc RD |
17143 | |
17144 | { | |
17145 | #if wxUSE_UNICODE | |
17146 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
17147 | #else | |
17148 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
17149 | #endif | |
17150 | } | |
17151 | return pyobj; | |
17152 | } | |
17153 | ||
17154 | ||
c32bde28 | 17155 | static int _wrap_ART_WARNING_set(PyObject *) { |
d55e5bfc RD |
17156 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); |
17157 | return 1; | |
17158 | } | |
17159 | ||
17160 | ||
093d3ff1 | 17161 | static PyObject *_wrap_ART_WARNING_get(void) { |
7449af73 | 17162 | PyObject *pyobj = NULL; |
d55e5bfc RD |
17163 | |
17164 | { | |
17165 | #if wxUSE_UNICODE | |
17166 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
17167 | #else | |
17168 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
17169 | #endif | |
17170 | } | |
17171 | return pyobj; | |
17172 | } | |
17173 | ||
17174 | ||
c32bde28 | 17175 | static int _wrap_ART_INFORMATION_set(PyObject *) { |
d55e5bfc RD |
17176 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); |
17177 | return 1; | |
17178 | } | |
17179 | ||
17180 | ||
093d3ff1 | 17181 | static PyObject *_wrap_ART_INFORMATION_get(void) { |
7449af73 | 17182 | PyObject *pyobj = NULL; |
d55e5bfc RD |
17183 | |
17184 | { | |
17185 | #if wxUSE_UNICODE | |
17186 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
17187 | #else | |
17188 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
17189 | #endif | |
17190 | } | |
17191 | return pyobj; | |
17192 | } | |
17193 | ||
17194 | ||
c32bde28 | 17195 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { |
d55e5bfc RD |
17196 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); |
17197 | return 1; | |
17198 | } | |
17199 | ||
17200 | ||
093d3ff1 | 17201 | static PyObject *_wrap_ART_MISSING_IMAGE_get(void) { |
7449af73 | 17202 | PyObject *pyobj = NULL; |
d55e5bfc RD |
17203 | |
17204 | { | |
17205 | #if wxUSE_UNICODE | |
17206 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
17207 | #else | |
17208 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
17209 | #endif | |
17210 | } | |
17211 | return pyobj; | |
17212 | } | |
17213 | ||
17214 | ||
68350608 RD |
17215 | static int _wrap_ART_COPY_set(PyObject *) { |
17216 | PyErr_SetString(PyExc_TypeError,"Variable ART_COPY is read-only."); | |
17217 | return 1; | |
17218 | } | |
17219 | ||
17220 | ||
17221 | static PyObject *_wrap_ART_COPY_get(void) { | |
7449af73 | 17222 | PyObject *pyobj = NULL; |
68350608 RD |
17223 | |
17224 | { | |
17225 | #if wxUSE_UNICODE | |
17226 | pyobj = PyUnicode_FromWideChar((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len()); | |
17227 | #else | |
17228 | pyobj = PyString_FromStringAndSize((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len()); | |
17229 | #endif | |
17230 | } | |
17231 | return pyobj; | |
17232 | } | |
17233 | ||
17234 | ||
17235 | static int _wrap_ART_CUT_set(PyObject *) { | |
17236 | PyErr_SetString(PyExc_TypeError,"Variable ART_CUT is read-only."); | |
17237 | return 1; | |
17238 | } | |
17239 | ||
17240 | ||
17241 | static PyObject *_wrap_ART_CUT_get(void) { | |
7449af73 | 17242 | PyObject *pyobj = NULL; |
68350608 RD |
17243 | |
17244 | { | |
17245 | #if wxUSE_UNICODE | |
17246 | pyobj = PyUnicode_FromWideChar((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len()); | |
17247 | #else | |
17248 | pyobj = PyString_FromStringAndSize((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len()); | |
17249 | #endif | |
17250 | } | |
17251 | return pyobj; | |
17252 | } | |
17253 | ||
17254 | ||
17255 | static int _wrap_ART_PASTE_set(PyObject *) { | |
17256 | PyErr_SetString(PyExc_TypeError,"Variable ART_PASTE is read-only."); | |
17257 | return 1; | |
17258 | } | |
17259 | ||
17260 | ||
17261 | static PyObject *_wrap_ART_PASTE_get(void) { | |
7449af73 | 17262 | PyObject *pyobj = NULL; |
68350608 RD |
17263 | |
17264 | { | |
17265 | #if wxUSE_UNICODE | |
17266 | pyobj = PyUnicode_FromWideChar((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len()); | |
17267 | #else | |
17268 | pyobj = PyString_FromStringAndSize((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len()); | |
17269 | #endif | |
17270 | } | |
17271 | return pyobj; | |
17272 | } | |
17273 | ||
17274 | ||
17275 | static int _wrap_ART_DELETE_set(PyObject *) { | |
17276 | PyErr_SetString(PyExc_TypeError,"Variable ART_DELETE is read-only."); | |
17277 | return 1; | |
17278 | } | |
17279 | ||
17280 | ||
17281 | static PyObject *_wrap_ART_DELETE_get(void) { | |
7449af73 | 17282 | PyObject *pyobj = NULL; |
68350608 RD |
17283 | |
17284 | { | |
17285 | #if wxUSE_UNICODE | |
17286 | pyobj = PyUnicode_FromWideChar((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len()); | |
17287 | #else | |
17288 | pyobj = PyString_FromStringAndSize((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len()); | |
17289 | #endif | |
17290 | } | |
17291 | return pyobj; | |
17292 | } | |
17293 | ||
17294 | ||
a187dc0b RD |
17295 | static int _wrap_ART_NEW_set(PyObject *) { |
17296 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW is read-only."); | |
17297 | return 1; | |
17298 | } | |
17299 | ||
17300 | ||
17301 | static PyObject *_wrap_ART_NEW_get(void) { | |
7449af73 | 17302 | PyObject *pyobj = NULL; |
a187dc0b RD |
17303 | |
17304 | { | |
17305 | #if wxUSE_UNICODE | |
17306 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len()); | |
17307 | #else | |
17308 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len()); | |
17309 | #endif | |
17310 | } | |
17311 | return pyobj; | |
17312 | } | |
17313 | ||
17314 | ||
68350608 RD |
17315 | static int _wrap_ART_UNDO_set(PyObject *) { |
17316 | PyErr_SetString(PyExc_TypeError,"Variable ART_UNDO is read-only."); | |
17317 | return 1; | |
17318 | } | |
17319 | ||
17320 | ||
17321 | static PyObject *_wrap_ART_UNDO_get(void) { | |
7449af73 | 17322 | PyObject *pyobj = NULL; |
68350608 RD |
17323 | |
17324 | { | |
17325 | #if wxUSE_UNICODE | |
17326 | pyobj = PyUnicode_FromWideChar((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len()); | |
17327 | #else | |
17328 | pyobj = PyString_FromStringAndSize((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len()); | |
17329 | #endif | |
17330 | } | |
17331 | return pyobj; | |
17332 | } | |
17333 | ||
17334 | ||
17335 | static int _wrap_ART_REDO_set(PyObject *) { | |
17336 | PyErr_SetString(PyExc_TypeError,"Variable ART_REDO is read-only."); | |
17337 | return 1; | |
17338 | } | |
17339 | ||
17340 | ||
17341 | static PyObject *_wrap_ART_REDO_get(void) { | |
7449af73 | 17342 | PyObject *pyobj = NULL; |
68350608 RD |
17343 | |
17344 | { | |
17345 | #if wxUSE_UNICODE | |
17346 | pyobj = PyUnicode_FromWideChar((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len()); | |
17347 | #else | |
17348 | pyobj = PyString_FromStringAndSize((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len()); | |
17349 | #endif | |
17350 | } | |
17351 | return pyobj; | |
17352 | } | |
17353 | ||
17354 | ||
17355 | static int _wrap_ART_QUIT_set(PyObject *) { | |
17356 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUIT is read-only."); | |
17357 | return 1; | |
17358 | } | |
17359 | ||
17360 | ||
17361 | static PyObject *_wrap_ART_QUIT_get(void) { | |
7449af73 | 17362 | PyObject *pyobj = NULL; |
68350608 RD |
17363 | |
17364 | { | |
17365 | #if wxUSE_UNICODE | |
17366 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len()); | |
17367 | #else | |
17368 | pyobj = PyString_FromStringAndSize((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len()); | |
17369 | #endif | |
17370 | } | |
17371 | return pyobj; | |
17372 | } | |
17373 | ||
17374 | ||
17375 | static int _wrap_ART_FIND_set(PyObject *) { | |
17376 | PyErr_SetString(PyExc_TypeError,"Variable ART_FIND is read-only."); | |
17377 | return 1; | |
17378 | } | |
17379 | ||
17380 | ||
17381 | static PyObject *_wrap_ART_FIND_get(void) { | |
7449af73 | 17382 | PyObject *pyobj = NULL; |
68350608 RD |
17383 | |
17384 | { | |
17385 | #if wxUSE_UNICODE | |
17386 | pyobj = PyUnicode_FromWideChar((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len()); | |
17387 | #else | |
17388 | pyobj = PyString_FromStringAndSize((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len()); | |
17389 | #endif | |
17390 | } | |
17391 | return pyobj; | |
17392 | } | |
17393 | ||
17394 | ||
17395 | static int _wrap_ART_FIND_AND_REPLACE_set(PyObject *) { | |
17396 | PyErr_SetString(PyExc_TypeError,"Variable ART_FIND_AND_REPLACE is read-only."); | |
17397 | return 1; | |
17398 | } | |
17399 | ||
17400 | ||
17401 | static PyObject *_wrap_ART_FIND_AND_REPLACE_get(void) { | |
7449af73 | 17402 | PyObject *pyobj = NULL; |
68350608 RD |
17403 | |
17404 | { | |
17405 | #if wxUSE_UNICODE | |
17406 | pyobj = PyUnicode_FromWideChar((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len()); | |
17407 | #else | |
17408 | pyobj = PyString_FromStringAndSize((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len()); | |
17409 | #endif | |
17410 | } | |
17411 | return pyobj; | |
17412 | } | |
17413 | ||
17414 | ||
c32bde28 | 17415 | static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17416 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17417 | wxPyArtProvider *result; |
17418 | char *kwnames[] = { | |
17419 | NULL | |
17420 | }; | |
17421 | ||
17422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
17423 | { | |
0439c23b | 17424 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17426 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
17427 | ||
17428 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17429 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17430 | } |
17431 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
17432 | return resultobj; | |
17433 | fail: | |
17434 | return NULL; | |
17435 | } | |
17436 | ||
17437 | ||
c32bde28 | 17438 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17439 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17440 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; |
17441 | PyObject *arg2 = (PyObject *) 0 ; | |
17442 | PyObject *arg3 = (PyObject *) 0 ; | |
17443 | PyObject * obj0 = 0 ; | |
17444 | PyObject * obj1 = 0 ; | |
17445 | PyObject * obj2 = 0 ; | |
17446 | char *kwnames[] = { | |
17447 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17448 | }; | |
17449 | ||
17450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
17451 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
17452 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17453 | arg2 = obj1; |
17454 | arg3 = obj2; | |
17455 | { | |
17456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17457 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17458 | ||
17459 | wxPyEndAllowThreads(__tstate); | |
17460 | if (PyErr_Occurred()) SWIG_fail; | |
17461 | } | |
17462 | Py_INCREF(Py_None); resultobj = Py_None; | |
17463 | return resultobj; | |
17464 | fail: | |
17465 | return NULL; | |
17466 | } | |
17467 | ||
17468 | ||
c32bde28 | 17469 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17470 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17471 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; |
17472 | PyObject * obj0 = 0 ; | |
17473 | char *kwnames[] = { | |
17474 | (char *) "provider", NULL | |
17475 | }; | |
17476 | ||
17477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17478 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
17479 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17480 | { |
17481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17482 | wxPyArtProvider::PushProvider(arg1); | |
17483 | ||
17484 | wxPyEndAllowThreads(__tstate); | |
17485 | if (PyErr_Occurred()) SWIG_fail; | |
17486 | } | |
17487 | Py_INCREF(Py_None); resultobj = Py_None; | |
17488 | return resultobj; | |
17489 | fail: | |
17490 | return NULL; | |
17491 | } | |
17492 | ||
17493 | ||
c32bde28 | 17494 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17495 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17496 | bool result; |
17497 | char *kwnames[] = { | |
17498 | NULL | |
17499 | }; | |
17500 | ||
17501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
17502 | { | |
17503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17504 | result = (bool)wxPyArtProvider::PopProvider(); | |
17505 | ||
17506 | wxPyEndAllowThreads(__tstate); | |
17507 | if (PyErr_Occurred()) SWIG_fail; | |
17508 | } | |
17509 | { | |
17510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17511 | } | |
17512 | return resultobj; | |
17513 | fail: | |
17514 | return NULL; | |
17515 | } | |
17516 | ||
17517 | ||
c32bde28 | 17518 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17519 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17520 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; |
17521 | bool result; | |
17522 | PyObject * obj0 = 0 ; | |
17523 | char *kwnames[] = { | |
17524 | (char *) "provider", NULL | |
17525 | }; | |
17526 | ||
17527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17528 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
17529 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17530 | { |
17531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17532 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
17533 | ||
17534 | wxPyEndAllowThreads(__tstate); | |
17535 | if (PyErr_Occurred()) SWIG_fail; | |
17536 | } | |
17537 | { | |
17538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17539 | } | |
17540 | return resultobj; | |
17541 | fail: | |
17542 | return NULL; | |
17543 | } | |
17544 | ||
17545 | ||
c32bde28 | 17546 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17547 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17548 | wxString *arg1 = 0 ; |
17549 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
17550 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
17551 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
17552 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
17553 | wxBitmap result; | |
ae8162c8 RD |
17554 | bool temp1 = false ; |
17555 | bool temp2 = false ; | |
d55e5bfc RD |
17556 | wxSize temp3 ; |
17557 | PyObject * obj0 = 0 ; | |
17558 | PyObject * obj1 = 0 ; | |
17559 | PyObject * obj2 = 0 ; | |
17560 | char *kwnames[] = { | |
17561 | (char *) "id",(char *) "client",(char *) "size", NULL | |
17562 | }; | |
17563 | ||
17564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17565 | { | |
17566 | arg1 = wxString_in_helper(obj0); | |
17567 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17568 | temp1 = true; |
d55e5bfc RD |
17569 | } |
17570 | if (obj1) { | |
17571 | { | |
17572 | arg2 = wxString_in_helper(obj1); | |
17573 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17574 | temp2 = true; |
d55e5bfc RD |
17575 | } |
17576 | } | |
17577 | if (obj2) { | |
17578 | { | |
17579 | arg3 = &temp3; | |
17580 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
17581 | } | |
17582 | } | |
17583 | { | |
0439c23b | 17584 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17586 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
17587 | ||
17588 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17589 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17590 | } |
17591 | { | |
17592 | wxBitmap * resultptr; | |
7449af73 | 17593 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
d55e5bfc RD |
17594 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
17595 | } | |
17596 | { | |
17597 | if (temp1) | |
17598 | delete arg1; | |
17599 | } | |
17600 | { | |
17601 | if (temp2) | |
17602 | delete arg2; | |
17603 | } | |
17604 | return resultobj; | |
17605 | fail: | |
17606 | { | |
17607 | if (temp1) | |
17608 | delete arg1; | |
17609 | } | |
17610 | { | |
17611 | if (temp2) | |
17612 | delete arg2; | |
17613 | } | |
17614 | return NULL; | |
17615 | } | |
17616 | ||
17617 | ||
c32bde28 | 17618 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17619 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17620 | wxString *arg1 = 0 ; |
17621 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
17622 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
17623 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
17624 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
17625 | wxIcon result; | |
ae8162c8 RD |
17626 | bool temp1 = false ; |
17627 | bool temp2 = false ; | |
d55e5bfc RD |
17628 | wxSize temp3 ; |
17629 | PyObject * obj0 = 0 ; | |
17630 | PyObject * obj1 = 0 ; | |
17631 | PyObject * obj2 = 0 ; | |
17632 | char *kwnames[] = { | |
17633 | (char *) "id",(char *) "client",(char *) "size", NULL | |
17634 | }; | |
17635 | ||
17636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17637 | { | |
17638 | arg1 = wxString_in_helper(obj0); | |
17639 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17640 | temp1 = true; |
d55e5bfc RD |
17641 | } |
17642 | if (obj1) { | |
17643 | { | |
17644 | arg2 = wxString_in_helper(obj1); | |
17645 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17646 | temp2 = true; |
d55e5bfc RD |
17647 | } |
17648 | } | |
17649 | if (obj2) { | |
17650 | { | |
17651 | arg3 = &temp3; | |
17652 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
17653 | } | |
17654 | } | |
17655 | { | |
0439c23b | 17656 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17658 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
17659 | ||
17660 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17661 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17662 | } |
17663 | { | |
17664 | wxIcon * resultptr; | |
7449af73 | 17665 | resultptr = new wxIcon(static_cast<wxIcon & >(result)); |
d55e5bfc RD |
17666 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
17667 | } | |
17668 | { | |
17669 | if (temp1) | |
17670 | delete arg1; | |
17671 | } | |
17672 | { | |
17673 | if (temp2) | |
17674 | delete arg2; | |
17675 | } | |
17676 | return resultobj; | |
17677 | fail: | |
17678 | { | |
17679 | if (temp1) | |
17680 | delete arg1; | |
17681 | } | |
17682 | { | |
17683 | if (temp2) | |
17684 | delete arg2; | |
17685 | } | |
17686 | return NULL; | |
17687 | } | |
17688 | ||
17689 | ||
0c549c5f | 17690 | static PyObject *_wrap_ArtProvider_GetSizeHint(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17691 | PyObject *resultobj = NULL; |
9c874b48 RD |
17692 | wxString *arg1 = 0 ; |
17693 | bool arg2 = (bool) false ; | |
17694 | wxSize result; | |
17695 | bool temp1 = false ; | |
17696 | PyObject * obj0 = 0 ; | |
17697 | PyObject * obj1 = 0 ; | |
17698 | char *kwnames[] = { | |
17699 | (char *) "client",(char *) "platform_dependent", NULL | |
17700 | }; | |
17701 | ||
0c549c5f | 17702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ArtProvider_GetSizeHint",kwnames,&obj0,&obj1)) goto fail; |
9c874b48 RD |
17703 | { |
17704 | arg1 = wxString_in_helper(obj0); | |
17705 | if (arg1 == NULL) SWIG_fail; | |
17706 | temp1 = true; | |
17707 | } | |
17708 | if (obj1) { | |
17709 | { | |
7449af73 | 17710 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
9c874b48 RD |
17711 | if (SWIG_arg_fail(2)) SWIG_fail; |
17712 | } | |
17713 | } | |
17714 | { | |
17715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0c549c5f | 17716 | result = wxPyArtProvider::GetSizeHint((wxString const &)*arg1,arg2); |
9c874b48 RD |
17717 | |
17718 | wxPyEndAllowThreads(__tstate); | |
17719 | if (PyErr_Occurred()) SWIG_fail; | |
17720 | } | |
17721 | { | |
17722 | wxSize * resultptr; | |
7449af73 | 17723 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
9c874b48 RD |
17724 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
17725 | } | |
17726 | { | |
17727 | if (temp1) | |
17728 | delete arg1; | |
17729 | } | |
17730 | return resultobj; | |
17731 | fail: | |
17732 | { | |
17733 | if (temp1) | |
17734 | delete arg1; | |
17735 | } | |
17736 | return NULL; | |
17737 | } | |
17738 | ||
17739 | ||
c32bde28 | 17740 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17741 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17742 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; |
17743 | PyObject * obj0 = 0 ; | |
17744 | char *kwnames[] = { | |
17745 | (char *) "self", NULL | |
17746 | }; | |
17747 | ||
17748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
17750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17751 | { |
17752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17753 | wxPyArtProvider_Destroy(arg1); | |
17754 | ||
17755 | wxPyEndAllowThreads(__tstate); | |
17756 | if (PyErr_Occurred()) SWIG_fail; | |
17757 | } | |
17758 | Py_INCREF(Py_None); resultobj = Py_None; | |
17759 | return resultobj; | |
17760 | fail: | |
17761 | return NULL; | |
17762 | } | |
17763 | ||
17764 | ||
c32bde28 | 17765 | static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17766 | PyObject *obj; |
17767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17768 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
17769 | Py_INCREF(obj); | |
17770 | return Py_BuildValue((char *)""); | |
17771 | } | |
c32bde28 | 17772 | static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17773 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17774 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
17775 | PyObject * obj0 = 0 ; | |
17776 | char *kwnames[] = { | |
17777 | (char *) "self", NULL | |
17778 | }; | |
17779 | ||
17780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17781 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17782 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17783 | { |
17784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17785 | delete arg1; | |
17786 | ||
17787 | wxPyEndAllowThreads(__tstate); | |
17788 | if (PyErr_Occurred()) SWIG_fail; | |
17789 | } | |
17790 | Py_INCREF(Py_None); resultobj = Py_None; | |
17791 | return resultobj; | |
17792 | fail: | |
17793 | return NULL; | |
17794 | } | |
17795 | ||
17796 | ||
c32bde28 | 17797 | static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17798 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17799 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
17800 | wxConfigBase *result; | |
17801 | PyObject * obj0 = 0 ; | |
17802 | char *kwnames[] = { | |
17803 | (char *) "config", NULL | |
17804 | }; | |
17805 | ||
17806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
5ba5649b | 17807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
093d3ff1 | 17808 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc RD |
17809 | { |
17810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17811 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
17812 | ||
17813 | wxPyEndAllowThreads(__tstate); | |
17814 | if (PyErr_Occurred()) SWIG_fail; | |
17815 | } | |
17816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
17817 | return resultobj; | |
17818 | fail: | |
17819 | return NULL; | |
17820 | } | |
17821 | ||
17822 | ||
c32bde28 | 17823 | static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17824 | PyObject *resultobj = NULL; |
ae8162c8 | 17825 | bool arg1 = (bool) true ; |
d55e5bfc RD |
17826 | wxConfigBase *result; |
17827 | PyObject * obj0 = 0 ; | |
17828 | char *kwnames[] = { | |
17829 | (char *) "createOnDemand", NULL | |
17830 | }; | |
17831 | ||
17832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
17833 | if (obj0) { | |
093d3ff1 | 17834 | { |
7449af73 | 17835 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 RD |
17836 | if (SWIG_arg_fail(1)) SWIG_fail; |
17837 | } | |
d55e5bfc RD |
17838 | } |
17839 | { | |
17840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17841 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
17842 | ||
17843 | wxPyEndAllowThreads(__tstate); | |
17844 | if (PyErr_Occurred()) SWIG_fail; | |
17845 | } | |
17846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
17847 | return resultobj; | |
17848 | fail: | |
17849 | return NULL; | |
17850 | } | |
17851 | ||
17852 | ||
c32bde28 | 17853 | static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17854 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17855 | wxConfigBase *result; |
17856 | char *kwnames[] = { | |
17857 | NULL | |
17858 | }; | |
17859 | ||
17860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
17861 | { | |
17862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17863 | result = (wxConfigBase *)wxConfigBase::Create(); | |
17864 | ||
17865 | wxPyEndAllowThreads(__tstate); | |
17866 | if (PyErr_Occurred()) SWIG_fail; | |
17867 | } | |
17868 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
17869 | return resultobj; | |
17870 | fail: | |
17871 | return NULL; | |
17872 | } | |
17873 | ||
17874 | ||
c32bde28 | 17875 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17876 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17877 | char *kwnames[] = { |
17878 | NULL | |
17879 | }; | |
17880 | ||
17881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
17882 | { | |
17883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17884 | wxConfigBase::DontCreateOnDemand(); | |
17885 | ||
17886 | wxPyEndAllowThreads(__tstate); | |
17887 | if (PyErr_Occurred()) SWIG_fail; | |
17888 | } | |
17889 | Py_INCREF(Py_None); resultobj = Py_None; | |
17890 | return resultobj; | |
17891 | fail: | |
17892 | return NULL; | |
17893 | } | |
17894 | ||
17895 | ||
c32bde28 | 17896 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17897 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17898 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
17899 | wxString *arg2 = 0 ; | |
ae8162c8 | 17900 | bool temp2 = false ; |
d55e5bfc RD |
17901 | PyObject * obj0 = 0 ; |
17902 | PyObject * obj1 = 0 ; | |
17903 | char *kwnames[] = { | |
17904 | (char *) "self",(char *) "path", NULL | |
17905 | }; | |
17906 | ||
17907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17908 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17909 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17910 | { |
17911 | arg2 = wxString_in_helper(obj1); | |
17912 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17913 | temp2 = true; |
d55e5bfc RD |
17914 | } |
17915 | { | |
17916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17917 | (arg1)->SetPath((wxString const &)*arg2); | |
17918 | ||
17919 | wxPyEndAllowThreads(__tstate); | |
17920 | if (PyErr_Occurred()) SWIG_fail; | |
17921 | } | |
17922 | Py_INCREF(Py_None); resultobj = Py_None; | |
17923 | { | |
17924 | if (temp2) | |
17925 | delete arg2; | |
17926 | } | |
17927 | return resultobj; | |
17928 | fail: | |
17929 | { | |
17930 | if (temp2) | |
17931 | delete arg2; | |
17932 | } | |
17933 | return NULL; | |
17934 | } | |
17935 | ||
17936 | ||
c32bde28 | 17937 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17938 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17939 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
17940 | wxString *result; | |
17941 | PyObject * obj0 = 0 ; | |
17942 | char *kwnames[] = { | |
17943 | (char *) "self", NULL | |
17944 | }; | |
17945 | ||
17946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17947 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17948 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17949 | { |
17950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17951 | { | |
17952 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
17953 | result = (wxString *) &_result_ref; | |
17954 | } | |
17955 | ||
17956 | wxPyEndAllowThreads(__tstate); | |
17957 | if (PyErr_Occurred()) SWIG_fail; | |
17958 | } | |
17959 | { | |
17960 | #if wxUSE_UNICODE | |
17961 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17962 | #else | |
17963 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17964 | #endif | |
17965 | } | |
17966 | return resultobj; | |
17967 | fail: | |
17968 | return NULL; | |
17969 | } | |
17970 | ||
17971 | ||
c32bde28 | 17972 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17973 | PyObject *resultobj = NULL; |
d55e5bfc RD |
17974 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
17975 | PyObject *result; | |
17976 | PyObject * obj0 = 0 ; | |
17977 | char *kwnames[] = { | |
17978 | (char *) "self", NULL | |
17979 | }; | |
17980 | ||
17981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17982 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17983 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17984 | { |
17985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17986 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
17987 | ||
17988 | wxPyEndAllowThreads(__tstate); | |
17989 | if (PyErr_Occurred()) SWIG_fail; | |
17990 | } | |
17991 | resultobj = result; | |
17992 | return resultobj; | |
17993 | fail: | |
17994 | return NULL; | |
17995 | } | |
17996 | ||
17997 | ||
c32bde28 | 17998 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 17999 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18000 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18001 | long arg2 ; | |
18002 | PyObject *result; | |
18003 | PyObject * obj0 = 0 ; | |
18004 | PyObject * obj1 = 0 ; | |
18005 | char *kwnames[] = { | |
18006 | (char *) "self",(char *) "index", NULL | |
18007 | }; | |
18008 | ||
18009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18010 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18011 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18012 | { | |
7449af73 | 18013 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
18014 | if (SWIG_arg_fail(2)) SWIG_fail; |
18015 | } | |
d55e5bfc RD |
18016 | { |
18017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18018 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
18019 | ||
18020 | wxPyEndAllowThreads(__tstate); | |
18021 | if (PyErr_Occurred()) SWIG_fail; | |
18022 | } | |
18023 | resultobj = result; | |
18024 | return resultobj; | |
18025 | fail: | |
18026 | return NULL; | |
18027 | } | |
18028 | ||
18029 | ||
c32bde28 | 18030 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18031 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18032 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18033 | PyObject *result; | |
18034 | PyObject * obj0 = 0 ; | |
18035 | char *kwnames[] = { | |
18036 | (char *) "self", NULL | |
18037 | }; | |
18038 | ||
18039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18040 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18041 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18042 | { |
18043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18044 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
18045 | ||
18046 | wxPyEndAllowThreads(__tstate); | |
18047 | if (PyErr_Occurred()) SWIG_fail; | |
18048 | } | |
18049 | resultobj = result; | |
18050 | return resultobj; | |
18051 | fail: | |
18052 | return NULL; | |
18053 | } | |
18054 | ||
18055 | ||
c32bde28 | 18056 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18057 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18058 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18059 | long arg2 ; | |
18060 | PyObject *result; | |
18061 | PyObject * obj0 = 0 ; | |
18062 | PyObject * obj1 = 0 ; | |
18063 | char *kwnames[] = { | |
18064 | (char *) "self",(char *) "index", NULL | |
18065 | }; | |
18066 | ||
18067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18070 | { | |
7449af73 | 18071 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
18072 | if (SWIG_arg_fail(2)) SWIG_fail; |
18073 | } | |
d55e5bfc RD |
18074 | { |
18075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18076 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
18077 | ||
18078 | wxPyEndAllowThreads(__tstate); | |
18079 | if (PyErr_Occurred()) SWIG_fail; | |
18080 | } | |
18081 | resultobj = result; | |
18082 | return resultobj; | |
18083 | fail: | |
18084 | return NULL; | |
18085 | } | |
18086 | ||
18087 | ||
c32bde28 | 18088 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18089 | PyObject *resultobj = NULL; |
d55e5bfc | 18090 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
ae8162c8 | 18091 | bool arg2 = (bool) false ; |
d55e5bfc RD |
18092 | size_t result; |
18093 | PyObject * obj0 = 0 ; | |
18094 | PyObject * obj1 = 0 ; | |
18095 | char *kwnames[] = { | |
18096 | (char *) "self",(char *) "recursive", NULL | |
18097 | }; | |
18098 | ||
18099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 18102 | if (obj1) { |
093d3ff1 | 18103 | { |
7449af73 | 18104 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
18105 | if (SWIG_arg_fail(2)) SWIG_fail; |
18106 | } | |
d55e5bfc RD |
18107 | } |
18108 | { | |
18109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18110 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
18111 | ||
18112 | wxPyEndAllowThreads(__tstate); | |
18113 | if (PyErr_Occurred()) SWIG_fail; | |
18114 | } | |
093d3ff1 | 18115 | { |
7449af73 | 18116 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 18117 | } |
d55e5bfc RD |
18118 | return resultobj; |
18119 | fail: | |
18120 | return NULL; | |
18121 | } | |
18122 | ||
18123 | ||
c32bde28 | 18124 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18125 | PyObject *resultobj = NULL; |
d55e5bfc | 18126 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
ae8162c8 | 18127 | bool arg2 = (bool) false ; |
d55e5bfc RD |
18128 | size_t result; |
18129 | PyObject * obj0 = 0 ; | |
18130 | PyObject * obj1 = 0 ; | |
18131 | char *kwnames[] = { | |
18132 | (char *) "self",(char *) "recursive", NULL | |
18133 | }; | |
18134 | ||
18135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18136 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18137 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 18138 | if (obj1) { |
093d3ff1 | 18139 | { |
7449af73 | 18140 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
18141 | if (SWIG_arg_fail(2)) SWIG_fail; |
18142 | } | |
d55e5bfc RD |
18143 | } |
18144 | { | |
18145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18146 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
18147 | ||
18148 | wxPyEndAllowThreads(__tstate); | |
18149 | if (PyErr_Occurred()) SWIG_fail; | |
18150 | } | |
093d3ff1 | 18151 | { |
7449af73 | 18152 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 18153 | } |
d55e5bfc RD |
18154 | return resultobj; |
18155 | fail: | |
18156 | return NULL; | |
18157 | } | |
18158 | ||
18159 | ||
c32bde28 | 18160 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18161 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18162 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18163 | wxString *arg2 = 0 ; | |
18164 | bool result; | |
ae8162c8 | 18165 | bool temp2 = false ; |
d55e5bfc RD |
18166 | PyObject * obj0 = 0 ; |
18167 | PyObject * obj1 = 0 ; | |
18168 | char *kwnames[] = { | |
18169 | (char *) "self",(char *) "name", NULL | |
18170 | }; | |
18171 | ||
18172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18173 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18174 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18175 | { |
18176 | arg2 = wxString_in_helper(obj1); | |
18177 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18178 | temp2 = true; |
d55e5bfc RD |
18179 | } |
18180 | { | |
18181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18182 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
18183 | ||
18184 | wxPyEndAllowThreads(__tstate); | |
18185 | if (PyErr_Occurred()) SWIG_fail; | |
18186 | } | |
18187 | { | |
18188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18189 | } | |
18190 | { | |
18191 | if (temp2) | |
18192 | delete arg2; | |
18193 | } | |
18194 | return resultobj; | |
18195 | fail: | |
18196 | { | |
18197 | if (temp2) | |
18198 | delete arg2; | |
18199 | } | |
18200 | return NULL; | |
18201 | } | |
18202 | ||
18203 | ||
c32bde28 | 18204 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18205 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18206 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18207 | wxString *arg2 = 0 ; | |
18208 | bool result; | |
ae8162c8 | 18209 | bool temp2 = false ; |
d55e5bfc RD |
18210 | PyObject * obj0 = 0 ; |
18211 | PyObject * obj1 = 0 ; | |
18212 | char *kwnames[] = { | |
18213 | (char *) "self",(char *) "name", NULL | |
18214 | }; | |
18215 | ||
18216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18219 | { |
18220 | arg2 = wxString_in_helper(obj1); | |
18221 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18222 | temp2 = true; |
d55e5bfc RD |
18223 | } |
18224 | { | |
18225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18226 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
18227 | ||
18228 | wxPyEndAllowThreads(__tstate); | |
18229 | if (PyErr_Occurred()) SWIG_fail; | |
18230 | } | |
18231 | { | |
18232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18233 | } | |
18234 | { | |
18235 | if (temp2) | |
18236 | delete arg2; | |
18237 | } | |
18238 | return resultobj; | |
18239 | fail: | |
18240 | { | |
18241 | if (temp2) | |
18242 | delete arg2; | |
18243 | } | |
18244 | return NULL; | |
18245 | } | |
18246 | ||
18247 | ||
c32bde28 | 18248 | static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18249 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18250 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18251 | wxString *arg2 = 0 ; | |
18252 | bool result; | |
ae8162c8 | 18253 | bool temp2 = false ; |
d55e5bfc RD |
18254 | PyObject * obj0 = 0 ; |
18255 | PyObject * obj1 = 0 ; | |
18256 | char *kwnames[] = { | |
18257 | (char *) "self",(char *) "name", NULL | |
18258 | }; | |
18259 | ||
18260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18263 | { |
18264 | arg2 = wxString_in_helper(obj1); | |
18265 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18266 | temp2 = true; |
d55e5bfc RD |
18267 | } |
18268 | { | |
18269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18270 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
18271 | ||
18272 | wxPyEndAllowThreads(__tstate); | |
18273 | if (PyErr_Occurred()) SWIG_fail; | |
18274 | } | |
18275 | { | |
18276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18277 | } | |
18278 | { | |
18279 | if (temp2) | |
18280 | delete arg2; | |
18281 | } | |
18282 | return resultobj; | |
18283 | fail: | |
18284 | { | |
18285 | if (temp2) | |
18286 | delete arg2; | |
18287 | } | |
18288 | return NULL; | |
18289 | } | |
18290 | ||
18291 | ||
c32bde28 | 18292 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18293 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18294 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18295 | wxString *arg2 = 0 ; | |
093d3ff1 | 18296 | wxConfigBase::EntryType result; |
ae8162c8 | 18297 | bool temp2 = false ; |
d55e5bfc RD |
18298 | PyObject * obj0 = 0 ; |
18299 | PyObject * obj1 = 0 ; | |
18300 | char *kwnames[] = { | |
18301 | (char *) "self",(char *) "name", NULL | |
18302 | }; | |
18303 | ||
18304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18307 | { |
18308 | arg2 = wxString_in_helper(obj1); | |
18309 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18310 | temp2 = true; |
d55e5bfc RD |
18311 | } |
18312 | { | |
18313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 18314 | result = (wxConfigBase::EntryType)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); |
d55e5bfc RD |
18315 | |
18316 | wxPyEndAllowThreads(__tstate); | |
18317 | if (PyErr_Occurred()) SWIG_fail; | |
18318 | } | |
093d3ff1 | 18319 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
18320 | { |
18321 | if (temp2) | |
18322 | delete arg2; | |
18323 | } | |
18324 | return resultobj; | |
18325 | fail: | |
18326 | { | |
18327 | if (temp2) | |
18328 | delete arg2; | |
18329 | } | |
18330 | return NULL; | |
18331 | } | |
18332 | ||
18333 | ||
c32bde28 | 18334 | static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18335 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18336 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18337 | wxString *arg2 = 0 ; | |
18338 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18339 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18340 | wxString result; | |
ae8162c8 RD |
18341 | bool temp2 = false ; |
18342 | bool temp3 = false ; | |
d55e5bfc RD |
18343 | PyObject * obj0 = 0 ; |
18344 | PyObject * obj1 = 0 ; | |
18345 | PyObject * obj2 = 0 ; | |
18346 | char *kwnames[] = { | |
18347 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
18348 | }; | |
18349 | ||
18350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18353 | { |
18354 | arg2 = wxString_in_helper(obj1); | |
18355 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18356 | temp2 = true; |
d55e5bfc RD |
18357 | } |
18358 | if (obj2) { | |
18359 | { | |
18360 | arg3 = wxString_in_helper(obj2); | |
18361 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18362 | temp3 = true; |
d55e5bfc RD |
18363 | } |
18364 | } | |
18365 | { | |
18366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18367 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
18368 | ||
18369 | wxPyEndAllowThreads(__tstate); | |
18370 | if (PyErr_Occurred()) SWIG_fail; | |
18371 | } | |
18372 | { | |
18373 | #if wxUSE_UNICODE | |
18374 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18375 | #else | |
18376 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18377 | #endif | |
18378 | } | |
18379 | { | |
18380 | if (temp2) | |
18381 | delete arg2; | |
18382 | } | |
18383 | { | |
18384 | if (temp3) | |
18385 | delete arg3; | |
18386 | } | |
18387 | return resultobj; | |
18388 | fail: | |
18389 | { | |
18390 | if (temp2) | |
18391 | delete arg2; | |
18392 | } | |
18393 | { | |
18394 | if (temp3) | |
18395 | delete arg3; | |
18396 | } | |
18397 | return NULL; | |
18398 | } | |
18399 | ||
18400 | ||
c32bde28 | 18401 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18402 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18403 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18404 | wxString *arg2 = 0 ; | |
18405 | long arg3 = (long) 0 ; | |
18406 | long result; | |
ae8162c8 | 18407 | bool temp2 = false ; |
d55e5bfc RD |
18408 | PyObject * obj0 = 0 ; |
18409 | PyObject * obj1 = 0 ; | |
18410 | PyObject * obj2 = 0 ; | |
18411 | char *kwnames[] = { | |
18412 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
18413 | }; | |
18414 | ||
18415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18418 | { |
18419 | arg2 = wxString_in_helper(obj1); | |
18420 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18421 | temp2 = true; |
d55e5bfc RD |
18422 | } |
18423 | if (obj2) { | |
093d3ff1 | 18424 | { |
7449af73 | 18425 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
18426 | if (SWIG_arg_fail(3)) SWIG_fail; |
18427 | } | |
d55e5bfc RD |
18428 | } |
18429 | { | |
18430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18431 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
18432 | ||
18433 | wxPyEndAllowThreads(__tstate); | |
18434 | if (PyErr_Occurred()) SWIG_fail; | |
18435 | } | |
093d3ff1 | 18436 | { |
7449af73 | 18437 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 18438 | } |
d55e5bfc RD |
18439 | { |
18440 | if (temp2) | |
18441 | delete arg2; | |
18442 | } | |
18443 | return resultobj; | |
18444 | fail: | |
18445 | { | |
18446 | if (temp2) | |
18447 | delete arg2; | |
18448 | } | |
18449 | return NULL; | |
18450 | } | |
18451 | ||
18452 | ||
c32bde28 | 18453 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18454 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18455 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18456 | wxString *arg2 = 0 ; | |
18457 | double arg3 = (double) 0.0 ; | |
18458 | double result; | |
ae8162c8 | 18459 | bool temp2 = false ; |
d55e5bfc RD |
18460 | PyObject * obj0 = 0 ; |
18461 | PyObject * obj1 = 0 ; | |
18462 | PyObject * obj2 = 0 ; | |
18463 | char *kwnames[] = { | |
18464 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
18465 | }; | |
18466 | ||
18467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18470 | { |
18471 | arg2 = wxString_in_helper(obj1); | |
18472 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18473 | temp2 = true; |
d55e5bfc RD |
18474 | } |
18475 | if (obj2) { | |
093d3ff1 | 18476 | { |
7449af73 | 18477 | arg3 = static_cast<double >(SWIG_As_double(obj2)); |
093d3ff1 RD |
18478 | if (SWIG_arg_fail(3)) SWIG_fail; |
18479 | } | |
d55e5bfc RD |
18480 | } |
18481 | { | |
18482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18483 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
18484 | ||
18485 | wxPyEndAllowThreads(__tstate); | |
18486 | if (PyErr_Occurred()) SWIG_fail; | |
18487 | } | |
093d3ff1 | 18488 | { |
7449af73 | 18489 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 18490 | } |
d55e5bfc RD |
18491 | { |
18492 | if (temp2) | |
18493 | delete arg2; | |
18494 | } | |
18495 | return resultobj; | |
18496 | fail: | |
18497 | { | |
18498 | if (temp2) | |
18499 | delete arg2; | |
18500 | } | |
18501 | return NULL; | |
18502 | } | |
18503 | ||
18504 | ||
c32bde28 | 18505 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18506 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18507 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18508 | wxString *arg2 = 0 ; | |
ae8162c8 | 18509 | bool arg3 = (bool) false ; |
d55e5bfc | 18510 | bool result; |
ae8162c8 | 18511 | bool temp2 = false ; |
d55e5bfc RD |
18512 | PyObject * obj0 = 0 ; |
18513 | PyObject * obj1 = 0 ; | |
18514 | PyObject * obj2 = 0 ; | |
18515 | char *kwnames[] = { | |
18516 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
18517 | }; | |
18518 | ||
18519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18522 | { |
18523 | arg2 = wxString_in_helper(obj1); | |
18524 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18525 | temp2 = true; |
d55e5bfc RD |
18526 | } |
18527 | if (obj2) { | |
093d3ff1 | 18528 | { |
7449af73 | 18529 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
18530 | if (SWIG_arg_fail(3)) SWIG_fail; |
18531 | } | |
d55e5bfc RD |
18532 | } |
18533 | { | |
18534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18535 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
18536 | ||
18537 | wxPyEndAllowThreads(__tstate); | |
18538 | if (PyErr_Occurred()) SWIG_fail; | |
18539 | } | |
18540 | { | |
18541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18542 | } | |
18543 | { | |
18544 | if (temp2) | |
18545 | delete arg2; | |
18546 | } | |
18547 | return resultobj; | |
18548 | fail: | |
18549 | { | |
18550 | if (temp2) | |
18551 | delete arg2; | |
18552 | } | |
18553 | return NULL; | |
18554 | } | |
18555 | ||
18556 | ||
c32bde28 | 18557 | static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18558 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18559 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18560 | wxString *arg2 = 0 ; | |
18561 | wxString *arg3 = 0 ; | |
18562 | bool result; | |
ae8162c8 RD |
18563 | bool temp2 = false ; |
18564 | bool temp3 = false ; | |
d55e5bfc RD |
18565 | PyObject * obj0 = 0 ; |
18566 | PyObject * obj1 = 0 ; | |
18567 | PyObject * obj2 = 0 ; | |
18568 | char *kwnames[] = { | |
18569 | (char *) "self",(char *) "key",(char *) "value", NULL | |
18570 | }; | |
18571 | ||
18572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18573 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18574 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18575 | { |
18576 | arg2 = wxString_in_helper(obj1); | |
18577 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18578 | temp2 = true; |
d55e5bfc RD |
18579 | } |
18580 | { | |
18581 | arg3 = wxString_in_helper(obj2); | |
18582 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18583 | temp3 = true; |
d55e5bfc RD |
18584 | } |
18585 | { | |
18586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18587 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
18588 | ||
18589 | wxPyEndAllowThreads(__tstate); | |
18590 | if (PyErr_Occurred()) SWIG_fail; | |
18591 | } | |
18592 | { | |
18593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18594 | } | |
18595 | { | |
18596 | if (temp2) | |
18597 | delete arg2; | |
18598 | } | |
18599 | { | |
18600 | if (temp3) | |
18601 | delete arg3; | |
18602 | } | |
18603 | return resultobj; | |
18604 | fail: | |
18605 | { | |
18606 | if (temp2) | |
18607 | delete arg2; | |
18608 | } | |
18609 | { | |
18610 | if (temp3) | |
18611 | delete arg3; | |
18612 | } | |
18613 | return NULL; | |
18614 | } | |
18615 | ||
18616 | ||
c32bde28 | 18617 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18618 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18619 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18620 | wxString *arg2 = 0 ; | |
18621 | long arg3 ; | |
18622 | bool result; | |
ae8162c8 | 18623 | bool temp2 = false ; |
d55e5bfc RD |
18624 | PyObject * obj0 = 0 ; |
18625 | PyObject * obj1 = 0 ; | |
18626 | PyObject * obj2 = 0 ; | |
18627 | char *kwnames[] = { | |
18628 | (char *) "self",(char *) "key",(char *) "value", NULL | |
18629 | }; | |
18630 | ||
18631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18634 | { |
18635 | arg2 = wxString_in_helper(obj1); | |
18636 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18637 | temp2 = true; |
d55e5bfc | 18638 | } |
093d3ff1 | 18639 | { |
7449af73 | 18640 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
18641 | if (SWIG_arg_fail(3)) SWIG_fail; |
18642 | } | |
d55e5bfc RD |
18643 | { |
18644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18645 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
18646 | ||
18647 | wxPyEndAllowThreads(__tstate); | |
18648 | if (PyErr_Occurred()) SWIG_fail; | |
18649 | } | |
18650 | { | |
18651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18652 | } | |
18653 | { | |
18654 | if (temp2) | |
18655 | delete arg2; | |
18656 | } | |
18657 | return resultobj; | |
18658 | fail: | |
18659 | { | |
18660 | if (temp2) | |
18661 | delete arg2; | |
18662 | } | |
18663 | return NULL; | |
18664 | } | |
18665 | ||
18666 | ||
c32bde28 | 18667 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18668 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18669 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18670 | wxString *arg2 = 0 ; | |
18671 | double arg3 ; | |
18672 | bool result; | |
ae8162c8 | 18673 | bool temp2 = false ; |
d55e5bfc RD |
18674 | PyObject * obj0 = 0 ; |
18675 | PyObject * obj1 = 0 ; | |
18676 | PyObject * obj2 = 0 ; | |
18677 | char *kwnames[] = { | |
18678 | (char *) "self",(char *) "key",(char *) "value", NULL | |
18679 | }; | |
18680 | ||
18681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18684 | { |
18685 | arg2 = wxString_in_helper(obj1); | |
18686 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18687 | temp2 = true; |
d55e5bfc | 18688 | } |
093d3ff1 | 18689 | { |
7449af73 | 18690 | arg3 = static_cast<double >(SWIG_As_double(obj2)); |
093d3ff1 RD |
18691 | if (SWIG_arg_fail(3)) SWIG_fail; |
18692 | } | |
d55e5bfc RD |
18693 | { |
18694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18695 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
18696 | ||
18697 | wxPyEndAllowThreads(__tstate); | |
18698 | if (PyErr_Occurred()) SWIG_fail; | |
18699 | } | |
18700 | { | |
18701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18702 | } | |
18703 | { | |
18704 | if (temp2) | |
18705 | delete arg2; | |
18706 | } | |
18707 | return resultobj; | |
18708 | fail: | |
18709 | { | |
18710 | if (temp2) | |
18711 | delete arg2; | |
18712 | } | |
18713 | return NULL; | |
18714 | } | |
18715 | ||
18716 | ||
c32bde28 | 18717 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18718 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18719 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18720 | wxString *arg2 = 0 ; | |
18721 | bool arg3 ; | |
18722 | bool result; | |
ae8162c8 | 18723 | bool temp2 = false ; |
d55e5bfc RD |
18724 | PyObject * obj0 = 0 ; |
18725 | PyObject * obj1 = 0 ; | |
18726 | PyObject * obj2 = 0 ; | |
18727 | char *kwnames[] = { | |
18728 | (char *) "self",(char *) "key",(char *) "value", NULL | |
18729 | }; | |
18730 | ||
18731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18734 | { |
18735 | arg2 = wxString_in_helper(obj1); | |
18736 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18737 | temp2 = true; |
d55e5bfc | 18738 | } |
093d3ff1 | 18739 | { |
7449af73 | 18740 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
18741 | if (SWIG_arg_fail(3)) SWIG_fail; |
18742 | } | |
d55e5bfc RD |
18743 | { |
18744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18745 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
18746 | ||
18747 | wxPyEndAllowThreads(__tstate); | |
18748 | if (PyErr_Occurred()) SWIG_fail; | |
18749 | } | |
18750 | { | |
18751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18752 | } | |
18753 | { | |
18754 | if (temp2) | |
18755 | delete arg2; | |
18756 | } | |
18757 | return resultobj; | |
18758 | fail: | |
18759 | { | |
18760 | if (temp2) | |
18761 | delete arg2; | |
18762 | } | |
18763 | return NULL; | |
18764 | } | |
18765 | ||
18766 | ||
c32bde28 | 18767 | static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18768 | PyObject *resultobj = NULL; |
d55e5bfc | 18769 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
ae8162c8 | 18770 | bool arg2 = (bool) false ; |
d55e5bfc RD |
18771 | bool result; |
18772 | PyObject * obj0 = 0 ; | |
18773 | PyObject * obj1 = 0 ; | |
18774 | char *kwnames[] = { | |
18775 | (char *) "self",(char *) "currentOnly", NULL | |
18776 | }; | |
18777 | ||
18778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 18781 | if (obj1) { |
093d3ff1 | 18782 | { |
7449af73 | 18783 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
18784 | if (SWIG_arg_fail(2)) SWIG_fail; |
18785 | } | |
d55e5bfc RD |
18786 | } |
18787 | { | |
18788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18789 | result = (bool)(arg1)->Flush(arg2); | |
18790 | ||
18791 | wxPyEndAllowThreads(__tstate); | |
18792 | if (PyErr_Occurred()) SWIG_fail; | |
18793 | } | |
18794 | { | |
18795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18796 | } | |
18797 | return resultobj; | |
18798 | fail: | |
18799 | return NULL; | |
18800 | } | |
18801 | ||
18802 | ||
c32bde28 | 18803 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18804 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18805 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18806 | wxString *arg2 = 0 ; | |
18807 | wxString *arg3 = 0 ; | |
18808 | bool result; | |
ae8162c8 RD |
18809 | bool temp2 = false ; |
18810 | bool temp3 = false ; | |
d55e5bfc RD |
18811 | PyObject * obj0 = 0 ; |
18812 | PyObject * obj1 = 0 ; | |
18813 | PyObject * obj2 = 0 ; | |
18814 | char *kwnames[] = { | |
18815 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
18816 | }; | |
18817 | ||
18818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18821 | { |
18822 | arg2 = wxString_in_helper(obj1); | |
18823 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18824 | temp2 = true; |
d55e5bfc RD |
18825 | } |
18826 | { | |
18827 | arg3 = wxString_in_helper(obj2); | |
18828 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18829 | temp3 = true; |
d55e5bfc RD |
18830 | } |
18831 | { | |
18832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18833 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
18834 | ||
18835 | wxPyEndAllowThreads(__tstate); | |
18836 | if (PyErr_Occurred()) SWIG_fail; | |
18837 | } | |
18838 | { | |
18839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18840 | } | |
18841 | { | |
18842 | if (temp2) | |
18843 | delete arg2; | |
18844 | } | |
18845 | { | |
18846 | if (temp3) | |
18847 | delete arg3; | |
18848 | } | |
18849 | return resultobj; | |
18850 | fail: | |
18851 | { | |
18852 | if (temp2) | |
18853 | delete arg2; | |
18854 | } | |
18855 | { | |
18856 | if (temp3) | |
18857 | delete arg3; | |
18858 | } | |
18859 | return NULL; | |
18860 | } | |
18861 | ||
18862 | ||
c32bde28 | 18863 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18864 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18865 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18866 | wxString *arg2 = 0 ; | |
18867 | wxString *arg3 = 0 ; | |
18868 | bool result; | |
ae8162c8 RD |
18869 | bool temp2 = false ; |
18870 | bool temp3 = false ; | |
d55e5bfc RD |
18871 | PyObject * obj0 = 0 ; |
18872 | PyObject * obj1 = 0 ; | |
18873 | PyObject * obj2 = 0 ; | |
18874 | char *kwnames[] = { | |
18875 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
18876 | }; | |
18877 | ||
18878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18881 | { |
18882 | arg2 = wxString_in_helper(obj1); | |
18883 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18884 | temp2 = true; |
d55e5bfc RD |
18885 | } |
18886 | { | |
18887 | arg3 = wxString_in_helper(obj2); | |
18888 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18889 | temp3 = true; |
d55e5bfc RD |
18890 | } |
18891 | { | |
18892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18893 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
18894 | ||
18895 | wxPyEndAllowThreads(__tstate); | |
18896 | if (PyErr_Occurred()) SWIG_fail; | |
18897 | } | |
18898 | { | |
18899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18900 | } | |
18901 | { | |
18902 | if (temp2) | |
18903 | delete arg2; | |
18904 | } | |
18905 | { | |
18906 | if (temp3) | |
18907 | delete arg3; | |
18908 | } | |
18909 | return resultobj; | |
18910 | fail: | |
18911 | { | |
18912 | if (temp2) | |
18913 | delete arg2; | |
18914 | } | |
18915 | { | |
18916 | if (temp3) | |
18917 | delete arg3; | |
18918 | } | |
18919 | return NULL; | |
18920 | } | |
18921 | ||
18922 | ||
c32bde28 | 18923 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18924 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18925 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18926 | wxString *arg2 = 0 ; | |
ae8162c8 | 18927 | bool arg3 = (bool) true ; |
d55e5bfc | 18928 | bool result; |
ae8162c8 | 18929 | bool temp2 = false ; |
d55e5bfc RD |
18930 | PyObject * obj0 = 0 ; |
18931 | PyObject * obj1 = 0 ; | |
18932 | PyObject * obj2 = 0 ; | |
18933 | char *kwnames[] = { | |
18934 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
18935 | }; | |
18936 | ||
18937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18940 | { |
18941 | arg2 = wxString_in_helper(obj1); | |
18942 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18943 | temp2 = true; |
d55e5bfc RD |
18944 | } |
18945 | if (obj2) { | |
093d3ff1 | 18946 | { |
7449af73 | 18947 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
18948 | if (SWIG_arg_fail(3)) SWIG_fail; |
18949 | } | |
d55e5bfc RD |
18950 | } |
18951 | { | |
18952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18953 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
18954 | ||
18955 | wxPyEndAllowThreads(__tstate); | |
18956 | if (PyErr_Occurred()) SWIG_fail; | |
18957 | } | |
18958 | { | |
18959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18960 | } | |
18961 | { | |
18962 | if (temp2) | |
18963 | delete arg2; | |
18964 | } | |
18965 | return resultobj; | |
18966 | fail: | |
18967 | { | |
18968 | if (temp2) | |
18969 | delete arg2; | |
18970 | } | |
18971 | return NULL; | |
18972 | } | |
18973 | ||
18974 | ||
c32bde28 | 18975 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 18976 | PyObject *resultobj = NULL; |
d55e5bfc RD |
18977 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18978 | wxString *arg2 = 0 ; | |
18979 | bool result; | |
ae8162c8 | 18980 | bool temp2 = false ; |
d55e5bfc RD |
18981 | PyObject * obj0 = 0 ; |
18982 | PyObject * obj1 = 0 ; | |
18983 | char *kwnames[] = { | |
18984 | (char *) "self",(char *) "key", NULL | |
18985 | }; | |
18986 | ||
18987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18990 | { |
18991 | arg2 = wxString_in_helper(obj1); | |
18992 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18993 | temp2 = true; |
d55e5bfc RD |
18994 | } |
18995 | { | |
18996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18997 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
18998 | ||
18999 | wxPyEndAllowThreads(__tstate); | |
19000 | if (PyErr_Occurred()) SWIG_fail; | |
19001 | } | |
19002 | { | |
19003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19004 | } | |
19005 | { | |
19006 | if (temp2) | |
19007 | delete arg2; | |
19008 | } | |
19009 | return resultobj; | |
19010 | fail: | |
19011 | { | |
19012 | if (temp2) | |
19013 | delete arg2; | |
19014 | } | |
19015 | return NULL; | |
19016 | } | |
19017 | ||
19018 | ||
c32bde28 | 19019 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19020 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19021 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19022 | bool result; | |
19023 | PyObject * obj0 = 0 ; | |
19024 | char *kwnames[] = { | |
19025 | (char *) "self", NULL | |
19026 | }; | |
19027 | ||
19028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19029 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19031 | { |
19032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19033 | result = (bool)(arg1)->DeleteAll(); | |
19034 | ||
19035 | wxPyEndAllowThreads(__tstate); | |
19036 | if (PyErr_Occurred()) SWIG_fail; | |
19037 | } | |
19038 | { | |
19039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19040 | } | |
19041 | return resultobj; | |
19042 | fail: | |
19043 | return NULL; | |
19044 | } | |
19045 | ||
19046 | ||
c32bde28 | 19047 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19048 | PyObject *resultobj = NULL; |
d55e5bfc | 19049 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
ae8162c8 | 19050 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19051 | PyObject * obj0 = 0 ; |
19052 | PyObject * obj1 = 0 ; | |
19053 | char *kwnames[] = { | |
19054 | (char *) "self",(char *) "doIt", NULL | |
19055 | }; | |
19056 | ||
19057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 19060 | if (obj1) { |
093d3ff1 | 19061 | { |
7449af73 | 19062 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
19063 | if (SWIG_arg_fail(2)) SWIG_fail; |
19064 | } | |
d55e5bfc RD |
19065 | } |
19066 | { | |
19067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19068 | (arg1)->SetExpandEnvVars(arg2); | |
19069 | ||
19070 | wxPyEndAllowThreads(__tstate); | |
19071 | if (PyErr_Occurred()) SWIG_fail; | |
19072 | } | |
19073 | Py_INCREF(Py_None); resultobj = Py_None; | |
19074 | return resultobj; | |
19075 | fail: | |
19076 | return NULL; | |
19077 | } | |
19078 | ||
19079 | ||
c32bde28 | 19080 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19081 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19082 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19083 | bool result; | |
19084 | PyObject * obj0 = 0 ; | |
19085 | char *kwnames[] = { | |
19086 | (char *) "self", NULL | |
19087 | }; | |
19088 | ||
19089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19090 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19091 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19092 | { |
19093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19094 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
19095 | ||
19096 | wxPyEndAllowThreads(__tstate); | |
19097 | if (PyErr_Occurred()) SWIG_fail; | |
19098 | } | |
19099 | { | |
19100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19101 | } | |
19102 | return resultobj; | |
19103 | fail: | |
19104 | return NULL; | |
19105 | } | |
19106 | ||
19107 | ||
c32bde28 | 19108 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19109 | PyObject *resultobj = NULL; |
d55e5bfc | 19110 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
ae8162c8 | 19111 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19112 | PyObject * obj0 = 0 ; |
19113 | PyObject * obj1 = 0 ; | |
19114 | char *kwnames[] = { | |
19115 | (char *) "self",(char *) "doIt", NULL | |
19116 | }; | |
19117 | ||
19118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 19121 | if (obj1) { |
093d3ff1 | 19122 | { |
7449af73 | 19123 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
19124 | if (SWIG_arg_fail(2)) SWIG_fail; |
19125 | } | |
d55e5bfc RD |
19126 | } |
19127 | { | |
19128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19129 | (arg1)->SetRecordDefaults(arg2); | |
19130 | ||
19131 | wxPyEndAllowThreads(__tstate); | |
19132 | if (PyErr_Occurred()) SWIG_fail; | |
19133 | } | |
19134 | Py_INCREF(Py_None); resultobj = Py_None; | |
19135 | return resultobj; | |
19136 | fail: | |
19137 | return NULL; | |
19138 | } | |
19139 | ||
19140 | ||
c32bde28 | 19141 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19142 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19143 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19144 | bool result; | |
19145 | PyObject * obj0 = 0 ; | |
19146 | char *kwnames[] = { | |
19147 | (char *) "self", NULL | |
19148 | }; | |
19149 | ||
19150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19153 | { |
19154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19155 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
19156 | ||
19157 | wxPyEndAllowThreads(__tstate); | |
19158 | if (PyErr_Occurred()) SWIG_fail; | |
19159 | } | |
19160 | { | |
19161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19162 | } | |
19163 | return resultobj; | |
19164 | fail: | |
19165 | return NULL; | |
19166 | } | |
19167 | ||
19168 | ||
c32bde28 | 19169 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19170 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19171 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19172 | wxString *arg2 = 0 ; | |
19173 | wxString result; | |
ae8162c8 | 19174 | bool temp2 = false ; |
d55e5bfc RD |
19175 | PyObject * obj0 = 0 ; |
19176 | PyObject * obj1 = 0 ; | |
19177 | char *kwnames[] = { | |
19178 | (char *) "self",(char *) "str", NULL | |
19179 | }; | |
19180 | ||
19181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19184 | { |
19185 | arg2 = wxString_in_helper(obj1); | |
19186 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19187 | temp2 = true; |
d55e5bfc RD |
19188 | } |
19189 | { | |
19190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19191 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
19192 | ||
19193 | wxPyEndAllowThreads(__tstate); | |
19194 | if (PyErr_Occurred()) SWIG_fail; | |
19195 | } | |
19196 | { | |
19197 | #if wxUSE_UNICODE | |
19198 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19199 | #else | |
19200 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19201 | #endif | |
19202 | } | |
19203 | { | |
19204 | if (temp2) | |
19205 | delete arg2; | |
19206 | } | |
19207 | return resultobj; | |
19208 | fail: | |
19209 | { | |
19210 | if (temp2) | |
19211 | delete arg2; | |
19212 | } | |
19213 | return NULL; | |
19214 | } | |
19215 | ||
19216 | ||
c32bde28 | 19217 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19218 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19219 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19220 | wxString result; | |
19221 | PyObject * obj0 = 0 ; | |
19222 | char *kwnames[] = { | |
19223 | (char *) "self", NULL | |
19224 | }; | |
19225 | ||
19226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19229 | { |
19230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19231 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
19232 | ||
19233 | wxPyEndAllowThreads(__tstate); | |
19234 | if (PyErr_Occurred()) SWIG_fail; | |
19235 | } | |
19236 | { | |
19237 | #if wxUSE_UNICODE | |
19238 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19239 | #else | |
19240 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19241 | #endif | |
19242 | } | |
19243 | return resultobj; | |
19244 | fail: | |
19245 | return NULL; | |
19246 | } | |
19247 | ||
19248 | ||
c32bde28 | 19249 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19250 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19251 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19252 | wxString result; | |
19253 | PyObject * obj0 = 0 ; | |
19254 | char *kwnames[] = { | |
19255 | (char *) "self", NULL | |
19256 | }; | |
19257 | ||
19258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19261 | { |
19262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19263 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
19264 | ||
19265 | wxPyEndAllowThreads(__tstate); | |
19266 | if (PyErr_Occurred()) SWIG_fail; | |
19267 | } | |
19268 | { | |
19269 | #if wxUSE_UNICODE | |
19270 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19271 | #else | |
19272 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19273 | #endif | |
19274 | } | |
19275 | return resultobj; | |
19276 | fail: | |
19277 | return NULL; | |
19278 | } | |
19279 | ||
19280 | ||
c32bde28 | 19281 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19282 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19283 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19284 | wxString *arg2 = 0 ; | |
ae8162c8 | 19285 | bool temp2 = false ; |
d55e5bfc RD |
19286 | PyObject * obj0 = 0 ; |
19287 | PyObject * obj1 = 0 ; | |
19288 | char *kwnames[] = { | |
19289 | (char *) "self",(char *) "appName", NULL | |
19290 | }; | |
19291 | ||
19292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19295 | { |
19296 | arg2 = wxString_in_helper(obj1); | |
19297 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19298 | temp2 = true; |
d55e5bfc RD |
19299 | } |
19300 | { | |
19301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19302 | (arg1)->SetAppName((wxString const &)*arg2); | |
19303 | ||
19304 | wxPyEndAllowThreads(__tstate); | |
19305 | if (PyErr_Occurred()) SWIG_fail; | |
19306 | } | |
19307 | Py_INCREF(Py_None); resultobj = Py_None; | |
19308 | { | |
19309 | if (temp2) | |
19310 | delete arg2; | |
19311 | } | |
19312 | return resultobj; | |
19313 | fail: | |
19314 | { | |
19315 | if (temp2) | |
19316 | delete arg2; | |
19317 | } | |
19318 | return NULL; | |
19319 | } | |
19320 | ||
19321 | ||
c32bde28 | 19322 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19323 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19324 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19325 | wxString *arg2 = 0 ; | |
ae8162c8 | 19326 | bool temp2 = false ; |
d55e5bfc RD |
19327 | PyObject * obj0 = 0 ; |
19328 | PyObject * obj1 = 0 ; | |
19329 | char *kwnames[] = { | |
19330 | (char *) "self",(char *) "vendorName", NULL | |
19331 | }; | |
19332 | ||
19333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19334 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19335 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19336 | { |
19337 | arg2 = wxString_in_helper(obj1); | |
19338 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19339 | temp2 = true; |
d55e5bfc RD |
19340 | } |
19341 | { | |
19342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19343 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19344 | ||
19345 | wxPyEndAllowThreads(__tstate); | |
19346 | if (PyErr_Occurred()) SWIG_fail; | |
19347 | } | |
19348 | Py_INCREF(Py_None); resultobj = Py_None; | |
19349 | { | |
19350 | if (temp2) | |
19351 | delete arg2; | |
19352 | } | |
19353 | return resultobj; | |
19354 | fail: | |
19355 | { | |
19356 | if (temp2) | |
19357 | delete arg2; | |
19358 | } | |
19359 | return NULL; | |
19360 | } | |
19361 | ||
19362 | ||
c32bde28 | 19363 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19364 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19365 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19366 | long arg2 ; | |
19367 | PyObject * obj0 = 0 ; | |
19368 | PyObject * obj1 = 0 ; | |
19369 | char *kwnames[] = { | |
19370 | (char *) "self",(char *) "style", NULL | |
19371 | }; | |
19372 | ||
19373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19376 | { | |
7449af73 | 19377 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
19378 | if (SWIG_arg_fail(2)) SWIG_fail; |
19379 | } | |
d55e5bfc RD |
19380 | { |
19381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19382 | (arg1)->SetStyle(arg2); | |
19383 | ||
19384 | wxPyEndAllowThreads(__tstate); | |
19385 | if (PyErr_Occurred()) SWIG_fail; | |
19386 | } | |
19387 | Py_INCREF(Py_None); resultobj = Py_None; | |
19388 | return resultobj; | |
19389 | fail: | |
19390 | return NULL; | |
19391 | } | |
19392 | ||
19393 | ||
c32bde28 | 19394 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19395 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19396 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19397 | long result; | |
19398 | PyObject * obj0 = 0 ; | |
19399 | char *kwnames[] = { | |
19400 | (char *) "self", NULL | |
19401 | }; | |
19402 | ||
19403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19404 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19405 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19406 | { |
19407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19408 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
19409 | ||
19410 | wxPyEndAllowThreads(__tstate); | |
19411 | if (PyErr_Occurred()) SWIG_fail; | |
19412 | } | |
093d3ff1 | 19413 | { |
7449af73 | 19414 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 19415 | } |
d55e5bfc RD |
19416 | return resultobj; |
19417 | fail: | |
19418 | return NULL; | |
19419 | } | |
19420 | ||
19421 | ||
c32bde28 | 19422 | static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19423 | PyObject *obj; |
19424 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19425 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
19426 | Py_INCREF(obj); | |
19427 | return Py_BuildValue((char *)""); | |
19428 | } | |
c32bde28 | 19429 | static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19430 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19431 | wxString const &arg1_defvalue = wxPyEmptyString ; |
19432 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
19433 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
19434 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
19435 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19436 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19437 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
19438 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
19439 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
19440 | wxConfig *result; | |
ae8162c8 RD |
19441 | bool temp1 = false ; |
19442 | bool temp2 = false ; | |
19443 | bool temp3 = false ; | |
19444 | bool temp4 = false ; | |
d55e5bfc RD |
19445 | PyObject * obj0 = 0 ; |
19446 | PyObject * obj1 = 0 ; | |
19447 | PyObject * obj2 = 0 ; | |
19448 | PyObject * obj3 = 0 ; | |
19449 | PyObject * obj4 = 0 ; | |
19450 | char *kwnames[] = { | |
19451 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
19452 | }; | |
19453 | ||
19454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
19455 | if (obj0) { | |
19456 | { | |
19457 | arg1 = wxString_in_helper(obj0); | |
19458 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 19459 | temp1 = true; |
d55e5bfc RD |
19460 | } |
19461 | } | |
19462 | if (obj1) { | |
19463 | { | |
19464 | arg2 = wxString_in_helper(obj1); | |
19465 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19466 | temp2 = true; |
d55e5bfc RD |
19467 | } |
19468 | } | |
19469 | if (obj2) { | |
19470 | { | |
19471 | arg3 = wxString_in_helper(obj2); | |
19472 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 19473 | temp3 = true; |
d55e5bfc RD |
19474 | } |
19475 | } | |
19476 | if (obj3) { | |
19477 | { | |
19478 | arg4 = wxString_in_helper(obj3); | |
19479 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 19480 | temp4 = true; |
d55e5bfc RD |
19481 | } |
19482 | } | |
19483 | if (obj4) { | |
093d3ff1 | 19484 | { |
7449af73 | 19485 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
19486 | if (SWIG_arg_fail(5)) SWIG_fail; |
19487 | } | |
d55e5bfc RD |
19488 | } |
19489 | { | |
19490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19491 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
19492 | ||
19493 | wxPyEndAllowThreads(__tstate); | |
19494 | if (PyErr_Occurred()) SWIG_fail; | |
19495 | } | |
19496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
19497 | { | |
19498 | if (temp1) | |
19499 | delete arg1; | |
19500 | } | |
19501 | { | |
19502 | if (temp2) | |
19503 | delete arg2; | |
19504 | } | |
19505 | { | |
19506 | if (temp3) | |
19507 | delete arg3; | |
19508 | } | |
19509 | { | |
19510 | if (temp4) | |
19511 | delete arg4; | |
19512 | } | |
19513 | return resultobj; | |
19514 | fail: | |
19515 | { | |
19516 | if (temp1) | |
19517 | delete arg1; | |
19518 | } | |
19519 | { | |
19520 | if (temp2) | |
19521 | delete arg2; | |
19522 | } | |
19523 | { | |
19524 | if (temp3) | |
19525 | delete arg3; | |
19526 | } | |
19527 | { | |
19528 | if (temp4) | |
19529 | delete arg4; | |
19530 | } | |
19531 | return NULL; | |
19532 | } | |
19533 | ||
19534 | ||
c32bde28 | 19535 | static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19536 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19537 | wxConfig *arg1 = (wxConfig *) 0 ; |
19538 | PyObject * obj0 = 0 ; | |
19539 | char *kwnames[] = { | |
19540 | (char *) "self", NULL | |
19541 | }; | |
19542 | ||
19543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfig, SWIG_POINTER_EXCEPTION | 0); |
19545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19546 | { |
19547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19548 | delete arg1; | |
19549 | ||
19550 | wxPyEndAllowThreads(__tstate); | |
19551 | if (PyErr_Occurred()) SWIG_fail; | |
19552 | } | |
19553 | Py_INCREF(Py_None); resultobj = Py_None; | |
19554 | return resultobj; | |
19555 | fail: | |
19556 | return NULL; | |
19557 | } | |
19558 | ||
19559 | ||
c32bde28 | 19560 | static PyObject * Config_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19561 | PyObject *obj; |
19562 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19563 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
19564 | Py_INCREF(obj); | |
19565 | return Py_BuildValue((char *)""); | |
19566 | } | |
c32bde28 | 19567 | static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19568 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19569 | wxString const &arg1_defvalue = wxPyEmptyString ; |
19570 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
19571 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
19572 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
19573 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19574 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19575 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
19576 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
19577 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
19578 | wxFileConfig *result; | |
ae8162c8 RD |
19579 | bool temp1 = false ; |
19580 | bool temp2 = false ; | |
19581 | bool temp3 = false ; | |
19582 | bool temp4 = false ; | |
d55e5bfc RD |
19583 | PyObject * obj0 = 0 ; |
19584 | PyObject * obj1 = 0 ; | |
19585 | PyObject * obj2 = 0 ; | |
19586 | PyObject * obj3 = 0 ; | |
19587 | PyObject * obj4 = 0 ; | |
19588 | char *kwnames[] = { | |
19589 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
19590 | }; | |
19591 | ||
19592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
19593 | if (obj0) { | |
19594 | { | |
19595 | arg1 = wxString_in_helper(obj0); | |
19596 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 19597 | temp1 = true; |
d55e5bfc RD |
19598 | } |
19599 | } | |
19600 | if (obj1) { | |
19601 | { | |
19602 | arg2 = wxString_in_helper(obj1); | |
19603 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19604 | temp2 = true; |
d55e5bfc RD |
19605 | } |
19606 | } | |
19607 | if (obj2) { | |
19608 | { | |
19609 | arg3 = wxString_in_helper(obj2); | |
19610 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 19611 | temp3 = true; |
d55e5bfc RD |
19612 | } |
19613 | } | |
19614 | if (obj3) { | |
19615 | { | |
19616 | arg4 = wxString_in_helper(obj3); | |
19617 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 19618 | temp4 = true; |
d55e5bfc RD |
19619 | } |
19620 | } | |
19621 | if (obj4) { | |
093d3ff1 | 19622 | { |
7449af73 | 19623 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
19624 | if (SWIG_arg_fail(5)) SWIG_fail; |
19625 | } | |
d55e5bfc RD |
19626 | } |
19627 | { | |
19628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19629 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
19630 | ||
19631 | wxPyEndAllowThreads(__tstate); | |
19632 | if (PyErr_Occurred()) SWIG_fail; | |
19633 | } | |
19634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
19635 | { | |
19636 | if (temp1) | |
19637 | delete arg1; | |
19638 | } | |
19639 | { | |
19640 | if (temp2) | |
19641 | delete arg2; | |
19642 | } | |
19643 | { | |
19644 | if (temp3) | |
19645 | delete arg3; | |
19646 | } | |
19647 | { | |
19648 | if (temp4) | |
19649 | delete arg4; | |
19650 | } | |
19651 | return resultobj; | |
19652 | fail: | |
19653 | { | |
19654 | if (temp1) | |
19655 | delete arg1; | |
19656 | } | |
19657 | { | |
19658 | if (temp2) | |
19659 | delete arg2; | |
19660 | } | |
19661 | { | |
19662 | if (temp3) | |
19663 | delete arg3; | |
19664 | } | |
19665 | { | |
19666 | if (temp4) | |
19667 | delete arg4; | |
19668 | } | |
19669 | return NULL; | |
19670 | } | |
19671 | ||
19672 | ||
c32bde28 | 19673 | static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19674 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19675 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; |
19676 | PyObject * obj0 = 0 ; | |
19677 | char *kwnames[] = { | |
19678 | (char *) "self", NULL | |
19679 | }; | |
19680 | ||
19681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileConfig, SWIG_POINTER_EXCEPTION | 0); |
19683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19684 | { |
19685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19686 | delete arg1; | |
19687 | ||
19688 | wxPyEndAllowThreads(__tstate); | |
19689 | if (PyErr_Occurred()) SWIG_fail; | |
19690 | } | |
19691 | Py_INCREF(Py_None); resultobj = Py_None; | |
19692 | return resultobj; | |
19693 | fail: | |
19694 | return NULL; | |
19695 | } | |
19696 | ||
19697 | ||
c32bde28 | 19698 | static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19699 | PyObject *obj; |
19700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19701 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
19702 | Py_INCREF(obj); | |
19703 | return Py_BuildValue((char *)""); | |
19704 | } | |
c32bde28 | 19705 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19706 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19707 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19708 | wxString *arg2 = 0 ; | |
19709 | wxConfigPathChanger *result; | |
ae8162c8 | 19710 | bool temp2 = false ; |
d55e5bfc RD |
19711 | PyObject * obj0 = 0 ; |
19712 | PyObject * obj1 = 0 ; | |
19713 | char *kwnames[] = { | |
19714 | (char *) "config",(char *) "entry", NULL | |
19715 | }; | |
19716 | ||
19717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19720 | { |
19721 | arg2 = wxString_in_helper(obj1); | |
19722 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19723 | temp2 = true; |
d55e5bfc RD |
19724 | } |
19725 | { | |
19726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19727 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
19728 | ||
19729 | wxPyEndAllowThreads(__tstate); | |
19730 | if (PyErr_Occurred()) SWIG_fail; | |
19731 | } | |
19732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
19733 | { | |
19734 | if (temp2) | |
19735 | delete arg2; | |
19736 | } | |
19737 | return resultobj; | |
19738 | fail: | |
19739 | { | |
19740 | if (temp2) | |
19741 | delete arg2; | |
19742 | } | |
19743 | return NULL; | |
19744 | } | |
19745 | ||
19746 | ||
c32bde28 | 19747 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19748 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19749 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; |
19750 | PyObject * obj0 = 0 ; | |
19751 | char *kwnames[] = { | |
19752 | (char *) "self", NULL | |
19753 | }; | |
19754 | ||
19755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0); |
19757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19758 | { |
19759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19760 | delete arg1; | |
19761 | ||
19762 | wxPyEndAllowThreads(__tstate); | |
19763 | if (PyErr_Occurred()) SWIG_fail; | |
19764 | } | |
19765 | Py_INCREF(Py_None); resultobj = Py_None; | |
19766 | return resultobj; | |
19767 | fail: | |
19768 | return NULL; | |
19769 | } | |
19770 | ||
19771 | ||
c32bde28 | 19772 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19773 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19774 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; |
19775 | wxString *result; | |
19776 | PyObject * obj0 = 0 ; | |
19777 | char *kwnames[] = { | |
19778 | (char *) "self", NULL | |
19779 | }; | |
19780 | ||
19781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0); |
19783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19784 | { |
19785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19786 | { | |
19787 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
19788 | result = (wxString *) &_result_ref; | |
19789 | } | |
19790 | ||
19791 | wxPyEndAllowThreads(__tstate); | |
19792 | if (PyErr_Occurred()) SWIG_fail; | |
19793 | } | |
19794 | { | |
19795 | #if wxUSE_UNICODE | |
19796 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19797 | #else | |
19798 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19799 | #endif | |
19800 | } | |
19801 | return resultobj; | |
19802 | fail: | |
19803 | return NULL; | |
19804 | } | |
19805 | ||
19806 | ||
c32bde28 | 19807 | static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19808 | PyObject *obj; |
19809 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19810 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
19811 | Py_INCREF(obj); | |
19812 | return Py_BuildValue((char *)""); | |
19813 | } | |
c32bde28 | 19814 | static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19815 | PyObject *resultobj = NULL; |
d55e5bfc RD |
19816 | wxString *arg1 = 0 ; |
19817 | wxString result; | |
ae8162c8 | 19818 | bool temp1 = false ; |
d55e5bfc RD |
19819 | PyObject * obj0 = 0 ; |
19820 | char *kwnames[] = { | |
19821 | (char *) "sz", NULL | |
19822 | }; | |
19823 | ||
19824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
19825 | { | |
19826 | arg1 = wxString_in_helper(obj0); | |
19827 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 19828 | temp1 = true; |
d55e5bfc RD |
19829 | } |
19830 | { | |
19831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19832 | result = wxExpandEnvVars((wxString const &)*arg1); | |
19833 | ||
19834 | wxPyEndAllowThreads(__tstate); | |
19835 | if (PyErr_Occurred()) SWIG_fail; | |
19836 | } | |
19837 | { | |
19838 | #if wxUSE_UNICODE | |
19839 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19840 | #else | |
19841 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19842 | #endif | |
19843 | } | |
19844 | { | |
19845 | if (temp1) | |
19846 | delete arg1; | |
19847 | } | |
19848 | return resultobj; | |
19849 | fail: | |
19850 | { | |
19851 | if (temp1) | |
19852 | delete arg1; | |
19853 | } | |
19854 | return NULL; | |
19855 | } | |
19856 | ||
19857 | ||
fef4c27a RD |
19858 | static int _wrap_DefaultDateTimeFormat_set(PyObject *) { |
19859 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTimeFormat is read-only."); | |
d55e5bfc RD |
19860 | return 1; |
19861 | } | |
19862 | ||
19863 | ||
fef4c27a | 19864 | static PyObject *_wrap_DefaultDateTimeFormat_get(void) { |
7449af73 | 19865 | PyObject *pyobj = NULL; |
d55e5bfc RD |
19866 | |
19867 | { | |
19868 | #if wxUSE_UNICODE | |
fef4c27a | 19869 | pyobj = PyUnicode_FromWideChar((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len()); |
d55e5bfc | 19870 | #else |
fef4c27a | 19871 | pyobj = PyString_FromStringAndSize((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len()); |
d55e5bfc RD |
19872 | #endif |
19873 | } | |
19874 | return pyobj; | |
19875 | } | |
19876 | ||
19877 | ||
fef4c27a RD |
19878 | static int _wrap_DefaultTimeSpanFormat_set(PyObject *) { |
19879 | PyErr_SetString(PyExc_TypeError,"Variable DefaultTimeSpanFormat is read-only."); | |
d55e5bfc RD |
19880 | return 1; |
19881 | } | |
19882 | ||
19883 | ||
fef4c27a | 19884 | static PyObject *_wrap_DefaultTimeSpanFormat_get(void) { |
7449af73 | 19885 | PyObject *pyobj = NULL; |
d55e5bfc RD |
19886 | |
19887 | { | |
19888 | #if wxUSE_UNICODE | |
fef4c27a | 19889 | pyobj = PyUnicode_FromWideChar((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len()); |
d55e5bfc | 19890 | #else |
fef4c27a | 19891 | pyobj = PyString_FromStringAndSize((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len()); |
d55e5bfc RD |
19892 | #endif |
19893 | } | |
19894 | return pyobj; | |
19895 | } | |
19896 | ||
19897 | ||
c32bde28 | 19898 | static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19899 | PyObject *resultobj = NULL; |
093d3ff1 | 19900 | wxDateTime::Country arg1 ; |
d55e5bfc RD |
19901 | PyObject * obj0 = 0 ; |
19902 | char *kwnames[] = { | |
19903 | (char *) "country", NULL | |
19904 | }; | |
19905 | ||
19906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
093d3ff1 | 19907 | { |
7449af73 | 19908 | arg1 = static_cast<wxDateTime::Country >(SWIG_As_int(obj0)); |
093d3ff1 RD |
19909 | if (SWIG_arg_fail(1)) SWIG_fail; |
19910 | } | |
d55e5bfc RD |
19911 | { |
19912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 19913 | wxDateTime::SetCountry(arg1); |
d55e5bfc RD |
19914 | |
19915 | wxPyEndAllowThreads(__tstate); | |
19916 | if (PyErr_Occurred()) SWIG_fail; | |
19917 | } | |
19918 | Py_INCREF(Py_None); resultobj = Py_None; | |
19919 | return resultobj; | |
19920 | fail: | |
19921 | return NULL; | |
19922 | } | |
19923 | ||
19924 | ||
c32bde28 | 19925 | static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19926 | PyObject *resultobj = NULL; |
093d3ff1 | 19927 | wxDateTime::Country result; |
d55e5bfc RD |
19928 | char *kwnames[] = { |
19929 | NULL | |
19930 | }; | |
19931 | ||
19932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
19933 | { | |
19934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19935 | result = (wxDateTime::Country)wxDateTime::GetCountry(); |
d55e5bfc RD |
19936 | |
19937 | wxPyEndAllowThreads(__tstate); | |
19938 | if (PyErr_Occurred()) SWIG_fail; | |
19939 | } | |
093d3ff1 | 19940 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
19941 | return resultobj; |
19942 | fail: | |
19943 | return NULL; | |
19944 | } | |
19945 | ||
19946 | ||
c32bde28 | 19947 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19948 | PyObject *resultobj = NULL; |
093d3ff1 | 19949 | wxDateTime::Country arg1 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
19950 | bool result; |
19951 | PyObject * obj0 = 0 ; | |
19952 | char *kwnames[] = { | |
19953 | (char *) "country", NULL | |
19954 | }; | |
19955 | ||
19956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
19957 | if (obj0) { | |
093d3ff1 | 19958 | { |
7449af73 | 19959 | arg1 = static_cast<wxDateTime::Country >(SWIG_As_int(obj0)); |
093d3ff1 RD |
19960 | if (SWIG_arg_fail(1)) SWIG_fail; |
19961 | } | |
d55e5bfc RD |
19962 | } |
19963 | { | |
19964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 19965 | result = (bool)wxDateTime::IsWestEuropeanCountry(arg1); |
d55e5bfc RD |
19966 | |
19967 | wxPyEndAllowThreads(__tstate); | |
19968 | if (PyErr_Occurred()) SWIG_fail; | |
19969 | } | |
19970 | { | |
19971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19972 | } | |
19973 | return resultobj; | |
19974 | fail: | |
19975 | return NULL; | |
19976 | } | |
19977 | ||
19978 | ||
c32bde28 | 19979 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 19980 | PyObject *resultobj = NULL; |
093d3ff1 | 19981 | wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d55e5bfc RD |
19982 | int result; |
19983 | PyObject * obj0 = 0 ; | |
19984 | char *kwnames[] = { | |
19985 | (char *) "cal", NULL | |
19986 | }; | |
19987 | ||
19988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
19989 | if (obj0) { | |
093d3ff1 | 19990 | { |
7449af73 | 19991 | arg1 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj0)); |
093d3ff1 RD |
19992 | if (SWIG_arg_fail(1)) SWIG_fail; |
19993 | } | |
d55e5bfc RD |
19994 | } |
19995 | { | |
19996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 19997 | result = (int)wxDateTime::GetCurrentYear(arg1); |
d55e5bfc RD |
19998 | |
19999 | wxPyEndAllowThreads(__tstate); | |
20000 | if (PyErr_Occurred()) SWIG_fail; | |
20001 | } | |
093d3ff1 | 20002 | { |
7449af73 | 20003 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20004 | } |
d55e5bfc RD |
20005 | return resultobj; |
20006 | fail: | |
20007 | return NULL; | |
20008 | } | |
20009 | ||
20010 | ||
c32bde28 | 20011 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20012 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20013 | int arg1 ; |
20014 | int result; | |
20015 | PyObject * obj0 = 0 ; | |
20016 | char *kwnames[] = { | |
20017 | (char *) "year", NULL | |
20018 | }; | |
20019 | ||
20020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
093d3ff1 | 20021 | { |
7449af73 | 20022 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20023 | if (SWIG_arg_fail(1)) SWIG_fail; |
20024 | } | |
d55e5bfc RD |
20025 | { |
20026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20027 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
20028 | ||
20029 | wxPyEndAllowThreads(__tstate); | |
20030 | if (PyErr_Occurred()) SWIG_fail; | |
20031 | } | |
093d3ff1 | 20032 | { |
7449af73 | 20033 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20034 | } |
d55e5bfc RD |
20035 | return resultobj; |
20036 | fail: | |
20037 | return NULL; | |
20038 | } | |
20039 | ||
20040 | ||
c32bde28 | 20041 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20042 | PyObject *resultobj = NULL; |
093d3ff1 RD |
20043 | wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
20044 | wxDateTime::Month result; | |
d55e5bfc RD |
20045 | PyObject * obj0 = 0 ; |
20046 | char *kwnames[] = { | |
20047 | (char *) "cal", NULL | |
20048 | }; | |
20049 | ||
20050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
20051 | if (obj0) { | |
093d3ff1 | 20052 | { |
7449af73 | 20053 | arg1 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20054 | if (SWIG_arg_fail(1)) SWIG_fail; |
20055 | } | |
d55e5bfc RD |
20056 | } |
20057 | { | |
20058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 20059 | result = (wxDateTime::Month)wxDateTime::GetCurrentMonth(arg1); |
d55e5bfc RD |
20060 | |
20061 | wxPyEndAllowThreads(__tstate); | |
20062 | if (PyErr_Occurred()) SWIG_fail; | |
20063 | } | |
093d3ff1 | 20064 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
20065 | return resultobj; |
20066 | fail: | |
20067 | return NULL; | |
20068 | } | |
20069 | ||
20070 | ||
c32bde28 | 20071 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20072 | PyObject *resultobj = NULL; |
d55e5bfc | 20073 | int arg1 = (int) wxDateTime::Inv_Year ; |
093d3ff1 | 20074 | wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d55e5bfc RD |
20075 | bool result; |
20076 | PyObject * obj0 = 0 ; | |
20077 | PyObject * obj1 = 0 ; | |
20078 | char *kwnames[] = { | |
20079 | (char *) "year",(char *) "cal", NULL | |
20080 | }; | |
20081 | ||
20082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
20083 | if (obj0) { | |
093d3ff1 | 20084 | { |
7449af73 | 20085 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20086 | if (SWIG_arg_fail(1)) SWIG_fail; |
20087 | } | |
d55e5bfc RD |
20088 | } |
20089 | if (obj1) { | |
093d3ff1 | 20090 | { |
7449af73 | 20091 | arg2 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20092 | if (SWIG_arg_fail(2)) SWIG_fail; |
20093 | } | |
d55e5bfc RD |
20094 | } |
20095 | { | |
20096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 20097 | result = (bool)wxDateTime::IsLeapYear(arg1,arg2); |
d55e5bfc RD |
20098 | |
20099 | wxPyEndAllowThreads(__tstate); | |
20100 | if (PyErr_Occurred()) SWIG_fail; | |
20101 | } | |
20102 | { | |
20103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20104 | } | |
20105 | return resultobj; | |
20106 | fail: | |
20107 | return NULL; | |
20108 | } | |
20109 | ||
20110 | ||
c32bde28 | 20111 | static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20112 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20113 | int arg1 = (int) wxDateTime::Inv_Year ; |
20114 | int result; | |
20115 | PyObject * obj0 = 0 ; | |
20116 | char *kwnames[] = { | |
20117 | (char *) "year", NULL | |
20118 | }; | |
20119 | ||
20120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
20121 | if (obj0) { | |
093d3ff1 | 20122 | { |
7449af73 | 20123 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20124 | if (SWIG_arg_fail(1)) SWIG_fail; |
20125 | } | |
d55e5bfc RD |
20126 | } |
20127 | { | |
20128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20129 | result = (int)wxDateTime::GetCentury(arg1); | |
20130 | ||
20131 | wxPyEndAllowThreads(__tstate); | |
20132 | if (PyErr_Occurred()) SWIG_fail; | |
20133 | } | |
093d3ff1 | 20134 | { |
7449af73 | 20135 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20136 | } |
d55e5bfc RD |
20137 | return resultobj; |
20138 | fail: | |
20139 | return NULL; | |
20140 | } | |
20141 | ||
20142 | ||
c32bde28 | 20143 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20144 | PyObject *resultobj = NULL; |
d55e5bfc | 20145 | int arg1 ; |
093d3ff1 | 20146 | wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d55e5bfc RD |
20147 | int result; |
20148 | PyObject * obj0 = 0 ; | |
20149 | PyObject * obj1 = 0 ; | |
20150 | char *kwnames[] = { | |
20151 | (char *) "year",(char *) "cal", NULL | |
20152 | }; | |
20153 | ||
20154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 | 20155 | { |
7449af73 | 20156 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20157 | if (SWIG_arg_fail(1)) SWIG_fail; |
20158 | } | |
d55e5bfc | 20159 | if (obj1) { |
093d3ff1 | 20160 | { |
7449af73 | 20161 | arg2 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20162 | if (SWIG_arg_fail(2)) SWIG_fail; |
20163 | } | |
d55e5bfc RD |
20164 | } |
20165 | { | |
20166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 20167 | result = (int)wxDateTime::GetNumberOfDays(arg1,arg2); |
d55e5bfc RD |
20168 | |
20169 | wxPyEndAllowThreads(__tstate); | |
20170 | if (PyErr_Occurred()) SWIG_fail; | |
20171 | } | |
093d3ff1 | 20172 | { |
7449af73 | 20173 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20174 | } |
d55e5bfc RD |
20175 | return resultobj; |
20176 | fail: | |
20177 | return NULL; | |
20178 | } | |
20179 | ||
20180 | ||
c32bde28 | 20181 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20182 | PyObject *resultobj = NULL; |
093d3ff1 | 20183 | wxDateTime::Month arg1 ; |
d55e5bfc | 20184 | int arg2 = (int) wxDateTime::Inv_Year ; |
093d3ff1 | 20185 | wxDateTime::Calendar arg3 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d55e5bfc RD |
20186 | int result; |
20187 | PyObject * obj0 = 0 ; | |
20188 | PyObject * obj1 = 0 ; | |
20189 | PyObject * obj2 = 0 ; | |
20190 | char *kwnames[] = { | |
20191 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
20192 | }; | |
20193 | ||
20194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 | 20195 | { |
7449af73 | 20196 | arg1 = static_cast<wxDateTime::Month >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20197 | if (SWIG_arg_fail(1)) SWIG_fail; |
20198 | } | |
d55e5bfc | 20199 | if (obj1) { |
093d3ff1 | 20200 | { |
7449af73 | 20201 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20202 | if (SWIG_arg_fail(2)) SWIG_fail; |
20203 | } | |
d55e5bfc RD |
20204 | } |
20205 | if (obj2) { | |
093d3ff1 | 20206 | { |
7449af73 | 20207 | arg3 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20208 | if (SWIG_arg_fail(3)) SWIG_fail; |
20209 | } | |
d55e5bfc RD |
20210 | } |
20211 | { | |
20212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 20213 | result = (int)wxDateTime::GetNumberOfDays(arg1,arg2,arg3); |
d55e5bfc RD |
20214 | |
20215 | wxPyEndAllowThreads(__tstate); | |
20216 | if (PyErr_Occurred()) SWIG_fail; | |
20217 | } | |
093d3ff1 | 20218 | { |
7449af73 | 20219 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20220 | } |
d55e5bfc RD |
20221 | return resultobj; |
20222 | fail: | |
20223 | return NULL; | |
20224 | } | |
20225 | ||
20226 | ||
c32bde28 | 20227 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20228 | PyObject *resultobj = NULL; |
093d3ff1 RD |
20229 | wxDateTime::Month arg1 ; |
20230 | wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ; | |
d55e5bfc RD |
20231 | wxString result; |
20232 | PyObject * obj0 = 0 ; | |
20233 | PyObject * obj1 = 0 ; | |
20234 | char *kwnames[] = { | |
20235 | (char *) "month",(char *) "flags", NULL | |
20236 | }; | |
20237 | ||
20238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 | 20239 | { |
7449af73 | 20240 | arg1 = static_cast<wxDateTime::Month >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20241 | if (SWIG_arg_fail(1)) SWIG_fail; |
20242 | } | |
d55e5bfc | 20243 | if (obj1) { |
093d3ff1 | 20244 | { |
7449af73 | 20245 | arg2 = static_cast<wxDateTime::NameFlags >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20246 | if (SWIG_arg_fail(2)) SWIG_fail; |
20247 | } | |
d55e5bfc RD |
20248 | } |
20249 | { | |
20250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 20251 | result = wxDateTime::GetMonthName(arg1,arg2); |
d55e5bfc RD |
20252 | |
20253 | wxPyEndAllowThreads(__tstate); | |
20254 | if (PyErr_Occurred()) SWIG_fail; | |
20255 | } | |
20256 | { | |
20257 | #if wxUSE_UNICODE | |
20258 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20259 | #else | |
20260 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20261 | #endif | |
20262 | } | |
20263 | return resultobj; | |
20264 | fail: | |
20265 | return NULL; | |
20266 | } | |
20267 | ||
20268 | ||
c32bde28 | 20269 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20270 | PyObject *resultobj = NULL; |
093d3ff1 RD |
20271 | wxDateTime::WeekDay arg1 ; |
20272 | wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ; | |
d55e5bfc RD |
20273 | wxString result; |
20274 | PyObject * obj0 = 0 ; | |
20275 | PyObject * obj1 = 0 ; | |
20276 | char *kwnames[] = { | |
20277 | (char *) "weekday",(char *) "flags", NULL | |
20278 | }; | |
20279 | ||
20280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 | 20281 | { |
7449af73 | 20282 | arg1 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20283 | if (SWIG_arg_fail(1)) SWIG_fail; |
20284 | } | |
d55e5bfc | 20285 | if (obj1) { |
093d3ff1 | 20286 | { |
7449af73 | 20287 | arg2 = static_cast<wxDateTime::NameFlags >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20288 | if (SWIG_arg_fail(2)) SWIG_fail; |
20289 | } | |
d55e5bfc RD |
20290 | } |
20291 | { | |
20292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 20293 | result = wxDateTime::GetWeekDayName(arg1,arg2); |
d55e5bfc RD |
20294 | |
20295 | wxPyEndAllowThreads(__tstate); | |
20296 | if (PyErr_Occurred()) SWIG_fail; | |
20297 | } | |
20298 | { | |
20299 | #if wxUSE_UNICODE | |
20300 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20301 | #else | |
20302 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20303 | #endif | |
20304 | } | |
20305 | return resultobj; | |
20306 | fail: | |
20307 | return NULL; | |
20308 | } | |
20309 | ||
20310 | ||
c32bde28 | 20311 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20312 | PyObject *resultobj = NULL; |
b9d6a5f3 | 20313 | PyObject *result; |
d55e5bfc | 20314 | char *kwnames[] = { |
b9d6a5f3 | 20315 | NULL |
d55e5bfc RD |
20316 | }; |
20317 | ||
b9d6a5f3 | 20318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetAmPmStrings",kwnames)) goto fail; |
d55e5bfc RD |
20319 | { |
20320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 20321 | result = (PyObject *)wxDateTime_GetAmPmStrings(); |
d55e5bfc RD |
20322 | |
20323 | wxPyEndAllowThreads(__tstate); | |
20324 | if (PyErr_Occurred()) SWIG_fail; | |
20325 | } | |
b9d6a5f3 | 20326 | resultobj = result; |
d55e5bfc RD |
20327 | return resultobj; |
20328 | fail: | |
d55e5bfc RD |
20329 | return NULL; |
20330 | } | |
20331 | ||
20332 | ||
c32bde28 | 20333 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20334 | PyObject *resultobj = NULL; |
d55e5bfc | 20335 | int arg1 = (int) wxDateTime::Inv_Year ; |
093d3ff1 | 20336 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
20337 | bool result; |
20338 | PyObject * obj0 = 0 ; | |
20339 | PyObject * obj1 = 0 ; | |
20340 | char *kwnames[] = { | |
20341 | (char *) "year",(char *) "country", NULL | |
20342 | }; | |
20343 | ||
20344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
20345 | if (obj0) { | |
093d3ff1 | 20346 | { |
7449af73 | 20347 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20348 | if (SWIG_arg_fail(1)) SWIG_fail; |
20349 | } | |
d55e5bfc RD |
20350 | } |
20351 | if (obj1) { | |
093d3ff1 | 20352 | { |
7449af73 | 20353 | arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20354 | if (SWIG_arg_fail(2)) SWIG_fail; |
20355 | } | |
d55e5bfc RD |
20356 | } |
20357 | { | |
20358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 20359 | result = (bool)wxDateTime::IsDSTApplicable(arg1,arg2); |
d55e5bfc RD |
20360 | |
20361 | wxPyEndAllowThreads(__tstate); | |
20362 | if (PyErr_Occurred()) SWIG_fail; | |
20363 | } | |
20364 | { | |
20365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20366 | } | |
20367 | return resultobj; | |
20368 | fail: | |
20369 | return NULL; | |
20370 | } | |
20371 | ||
20372 | ||
c32bde28 | 20373 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20374 | PyObject *resultobj = NULL; |
d55e5bfc | 20375 | int arg1 = (int) wxDateTime::Inv_Year ; |
093d3ff1 | 20376 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
20377 | wxDateTime result; |
20378 | PyObject * obj0 = 0 ; | |
20379 | PyObject * obj1 = 0 ; | |
20380 | char *kwnames[] = { | |
20381 | (char *) "year",(char *) "country", NULL | |
20382 | }; | |
20383 | ||
20384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
20385 | if (obj0) { | |
093d3ff1 | 20386 | { |
7449af73 | 20387 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20388 | if (SWIG_arg_fail(1)) SWIG_fail; |
20389 | } | |
d55e5bfc RD |
20390 | } |
20391 | if (obj1) { | |
093d3ff1 | 20392 | { |
7449af73 | 20393 | arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20394 | if (SWIG_arg_fail(2)) SWIG_fail; |
20395 | } | |
d55e5bfc RD |
20396 | } |
20397 | { | |
20398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 20399 | result = wxDateTime::GetBeginDST(arg1,arg2); |
d55e5bfc RD |
20400 | |
20401 | wxPyEndAllowThreads(__tstate); | |
20402 | if (PyErr_Occurred()) SWIG_fail; | |
20403 | } | |
20404 | { | |
20405 | wxDateTime * resultptr; | |
7449af73 | 20406 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
20407 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20408 | } | |
20409 | return resultobj; | |
20410 | fail: | |
20411 | return NULL; | |
20412 | } | |
20413 | ||
20414 | ||
c32bde28 | 20415 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20416 | PyObject *resultobj = NULL; |
d55e5bfc | 20417 | int arg1 = (int) wxDateTime::Inv_Year ; |
093d3ff1 | 20418 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
20419 | wxDateTime result; |
20420 | PyObject * obj0 = 0 ; | |
20421 | PyObject * obj1 = 0 ; | |
20422 | char *kwnames[] = { | |
20423 | (char *) "year",(char *) "country", NULL | |
20424 | }; | |
20425 | ||
20426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
20427 | if (obj0) { | |
093d3ff1 | 20428 | { |
7449af73 | 20429 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20430 | if (SWIG_arg_fail(1)) SWIG_fail; |
20431 | } | |
d55e5bfc RD |
20432 | } |
20433 | if (obj1) { | |
093d3ff1 | 20434 | { |
7449af73 | 20435 | arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20436 | if (SWIG_arg_fail(2)) SWIG_fail; |
20437 | } | |
d55e5bfc RD |
20438 | } |
20439 | { | |
20440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 20441 | result = wxDateTime::GetEndDST(arg1,arg2); |
d55e5bfc RD |
20442 | |
20443 | wxPyEndAllowThreads(__tstate); | |
20444 | if (PyErr_Occurred()) SWIG_fail; | |
20445 | } | |
20446 | { | |
20447 | wxDateTime * resultptr; | |
7449af73 | 20448 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
20449 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20450 | } | |
20451 | return resultobj; | |
20452 | fail: | |
20453 | return NULL; | |
20454 | } | |
20455 | ||
20456 | ||
c32bde28 | 20457 | static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20458 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20459 | wxDateTime result; |
20460 | char *kwnames[] = { | |
20461 | NULL | |
20462 | }; | |
20463 | ||
20464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
20465 | { | |
20466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20467 | result = wxDateTime::Now(); | |
20468 | ||
20469 | wxPyEndAllowThreads(__tstate); | |
20470 | if (PyErr_Occurred()) SWIG_fail; | |
20471 | } | |
20472 | { | |
20473 | wxDateTime * resultptr; | |
7449af73 | 20474 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
20475 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20476 | } | |
20477 | return resultobj; | |
20478 | fail: | |
20479 | return NULL; | |
20480 | } | |
20481 | ||
20482 | ||
c32bde28 | 20483 | static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20484 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20485 | wxDateTime result; |
20486 | char *kwnames[] = { | |
20487 | NULL | |
20488 | }; | |
20489 | ||
20490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
20491 | { | |
20492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20493 | result = wxDateTime::UNow(); | |
20494 | ||
20495 | wxPyEndAllowThreads(__tstate); | |
20496 | if (PyErr_Occurred()) SWIG_fail; | |
20497 | } | |
20498 | { | |
20499 | wxDateTime * resultptr; | |
7449af73 | 20500 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
20501 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20502 | } | |
20503 | return resultobj; | |
20504 | fail: | |
20505 | return NULL; | |
20506 | } | |
20507 | ||
20508 | ||
c32bde28 | 20509 | static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20510 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20511 | wxDateTime result; |
20512 | char *kwnames[] = { | |
20513 | NULL | |
20514 | }; | |
20515 | ||
20516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
20517 | { | |
20518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20519 | result = wxDateTime::Today(); | |
20520 | ||
20521 | wxPyEndAllowThreads(__tstate); | |
20522 | if (PyErr_Occurred()) SWIG_fail; | |
20523 | } | |
20524 | { | |
20525 | wxDateTime * resultptr; | |
7449af73 | 20526 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
20527 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20528 | } | |
20529 | return resultobj; | |
20530 | fail: | |
20531 | return NULL; | |
20532 | } | |
20533 | ||
20534 | ||
c32bde28 | 20535 | static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20536 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20537 | wxDateTime *result; |
20538 | char *kwnames[] = { | |
20539 | NULL | |
20540 | }; | |
20541 | ||
20542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
20543 | { | |
20544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20545 | result = (wxDateTime *)new wxDateTime(); | |
20546 | ||
20547 | wxPyEndAllowThreads(__tstate); | |
20548 | if (PyErr_Occurred()) SWIG_fail; | |
20549 | } | |
20550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
20551 | return resultobj; | |
20552 | fail: | |
20553 | return NULL; | |
20554 | } | |
20555 | ||
20556 | ||
c32bde28 | 20557 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20558 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20559 | time_t arg1 ; |
20560 | wxDateTime *result; | |
20561 | PyObject * obj0 = 0 ; | |
20562 | char *kwnames[] = { | |
20563 | (char *) "timet", NULL | |
20564 | }; | |
20565 | ||
20566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
093d3ff1 | 20567 | { |
7449af73 | 20568 | arg1 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj0)); |
093d3ff1 RD |
20569 | if (SWIG_arg_fail(1)) SWIG_fail; |
20570 | } | |
d55e5bfc RD |
20571 | { |
20572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20573 | result = (wxDateTime *)new wxDateTime(arg1); | |
20574 | ||
20575 | wxPyEndAllowThreads(__tstate); | |
20576 | if (PyErr_Occurred()) SWIG_fail; | |
20577 | } | |
20578 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
20579 | return resultobj; | |
20580 | fail: | |
20581 | return NULL; | |
20582 | } | |
20583 | ||
20584 | ||
c32bde28 | 20585 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20586 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20587 | double arg1 ; |
20588 | wxDateTime *result; | |
20589 | PyObject * obj0 = 0 ; | |
20590 | char *kwnames[] = { | |
20591 | (char *) "jdn", NULL | |
20592 | }; | |
20593 | ||
20594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
093d3ff1 | 20595 | { |
7449af73 | 20596 | arg1 = static_cast<double >(SWIG_As_double(obj0)); |
093d3ff1 RD |
20597 | if (SWIG_arg_fail(1)) SWIG_fail; |
20598 | } | |
d55e5bfc RD |
20599 | { |
20600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20601 | result = (wxDateTime *)new wxDateTime(arg1); | |
20602 | ||
20603 | wxPyEndAllowThreads(__tstate); | |
20604 | if (PyErr_Occurred()) SWIG_fail; | |
20605 | } | |
20606 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
20607 | return resultobj; | |
20608 | fail: | |
20609 | return NULL; | |
20610 | } | |
20611 | ||
20612 | ||
c32bde28 | 20613 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20614 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20615 | int arg1 ; |
20616 | int arg2 = (int) 0 ; | |
20617 | int arg3 = (int) 0 ; | |
20618 | int arg4 = (int) 0 ; | |
20619 | wxDateTime *result; | |
20620 | PyObject * obj0 = 0 ; | |
20621 | PyObject * obj1 = 0 ; | |
20622 | PyObject * obj2 = 0 ; | |
20623 | PyObject * obj3 = 0 ; | |
20624 | char *kwnames[] = { | |
20625 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
20626 | }; | |
20627 | ||
20628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 | 20629 | { |
7449af73 | 20630 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20631 | if (SWIG_arg_fail(1)) SWIG_fail; |
20632 | } | |
d55e5bfc | 20633 | if (obj1) { |
093d3ff1 | 20634 | { |
7449af73 | 20635 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20636 | if (SWIG_arg_fail(2)) SWIG_fail; |
20637 | } | |
d55e5bfc RD |
20638 | } |
20639 | if (obj2) { | |
093d3ff1 | 20640 | { |
7449af73 | 20641 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20642 | if (SWIG_arg_fail(3)) SWIG_fail; |
20643 | } | |
d55e5bfc RD |
20644 | } |
20645 | if (obj3) { | |
093d3ff1 | 20646 | { |
7449af73 | 20647 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
20648 | if (SWIG_arg_fail(4)) SWIG_fail; |
20649 | } | |
d55e5bfc RD |
20650 | } |
20651 | { | |
20652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20653 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
20654 | ||
20655 | wxPyEndAllowThreads(__tstate); | |
20656 | if (PyErr_Occurred()) SWIG_fail; | |
20657 | } | |
20658 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
20659 | return resultobj; | |
20660 | fail: | |
20661 | return NULL; | |
20662 | } | |
20663 | ||
20664 | ||
c32bde28 | 20665 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20666 | PyObject *resultobj = NULL; |
d55e5bfc | 20667 | int arg1 ; |
093d3ff1 | 20668 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d55e5bfc RD |
20669 | int arg3 = (int) wxDateTime::Inv_Year ; |
20670 | int arg4 = (int) 0 ; | |
20671 | int arg5 = (int) 0 ; | |
20672 | int arg6 = (int) 0 ; | |
20673 | int arg7 = (int) 0 ; | |
20674 | wxDateTime *result; | |
20675 | PyObject * obj0 = 0 ; | |
20676 | PyObject * obj1 = 0 ; | |
20677 | PyObject * obj2 = 0 ; | |
20678 | PyObject * obj3 = 0 ; | |
20679 | PyObject * obj4 = 0 ; | |
20680 | PyObject * obj5 = 0 ; | |
20681 | PyObject * obj6 = 0 ; | |
20682 | char *kwnames[] = { | |
20683 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
20684 | }; | |
20685 | ||
20686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 | 20687 | { |
7449af73 | 20688 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20689 | if (SWIG_arg_fail(1)) SWIG_fail; |
20690 | } | |
d55e5bfc | 20691 | if (obj1) { |
093d3ff1 | 20692 | { |
7449af73 | 20693 | arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20694 | if (SWIG_arg_fail(2)) SWIG_fail; |
20695 | } | |
d55e5bfc RD |
20696 | } |
20697 | if (obj2) { | |
093d3ff1 | 20698 | { |
7449af73 | 20699 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20700 | if (SWIG_arg_fail(3)) SWIG_fail; |
20701 | } | |
d55e5bfc RD |
20702 | } |
20703 | if (obj3) { | |
093d3ff1 | 20704 | { |
7449af73 | 20705 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
20706 | if (SWIG_arg_fail(4)) SWIG_fail; |
20707 | } | |
d55e5bfc RD |
20708 | } |
20709 | if (obj4) { | |
093d3ff1 | 20710 | { |
7449af73 | 20711 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
20712 | if (SWIG_arg_fail(5)) SWIG_fail; |
20713 | } | |
d55e5bfc RD |
20714 | } |
20715 | if (obj5) { | |
093d3ff1 | 20716 | { |
7449af73 | 20717 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
20718 | if (SWIG_arg_fail(6)) SWIG_fail; |
20719 | } | |
d55e5bfc RD |
20720 | } |
20721 | if (obj6) { | |
093d3ff1 | 20722 | { |
7449af73 | 20723 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
093d3ff1 RD |
20724 | if (SWIG_arg_fail(7)) SWIG_fail; |
20725 | } | |
d55e5bfc RD |
20726 | } |
20727 | { | |
20728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 20729 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
20730 | |
20731 | wxPyEndAllowThreads(__tstate); | |
20732 | if (PyErr_Occurred()) SWIG_fail; | |
20733 | } | |
20734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
20735 | return resultobj; | |
20736 | fail: | |
20737 | return NULL; | |
20738 | } | |
20739 | ||
20740 | ||
c32bde28 | 20741 | static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20742 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20743 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
20744 | PyObject * obj0 = 0 ; | |
20745 | char *kwnames[] = { | |
20746 | (char *) "self", NULL | |
20747 | }; | |
20748 | ||
20749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20750 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20751 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20752 | { |
20753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20754 | delete arg1; | |
20755 | ||
20756 | wxPyEndAllowThreads(__tstate); | |
20757 | if (PyErr_Occurred()) SWIG_fail; | |
20758 | } | |
20759 | Py_INCREF(Py_None); resultobj = Py_None; | |
20760 | return resultobj; | |
20761 | fail: | |
20762 | return NULL; | |
20763 | } | |
20764 | ||
20765 | ||
c32bde28 | 20766 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20767 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20768 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
20769 | wxDateTime *result; | |
20770 | PyObject * obj0 = 0 ; | |
20771 | char *kwnames[] = { | |
20772 | (char *) "self", NULL | |
20773 | }; | |
20774 | ||
20775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20778 | { |
20779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20780 | { | |
20781 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
20782 | result = (wxDateTime *) &_result_ref; | |
20783 | } | |
20784 | ||
20785 | wxPyEndAllowThreads(__tstate); | |
20786 | if (PyErr_Occurred()) SWIG_fail; | |
20787 | } | |
20788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20789 | return resultobj; | |
20790 | fail: | |
20791 | return NULL; | |
20792 | } | |
20793 | ||
20794 | ||
c32bde28 | 20795 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20796 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20797 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
20798 | time_t arg2 ; | |
20799 | wxDateTime *result; | |
20800 | PyObject * obj0 = 0 ; | |
20801 | PyObject * obj1 = 0 ; | |
20802 | char *kwnames[] = { | |
20803 | (char *) "self",(char *) "timet", NULL | |
20804 | }; | |
20805 | ||
20806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20809 | { | |
7449af73 | 20810 | arg2 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj1)); |
093d3ff1 RD |
20811 | if (SWIG_arg_fail(2)) SWIG_fail; |
20812 | } | |
d55e5bfc RD |
20813 | { |
20814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20815 | { | |
20816 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
20817 | result = (wxDateTime *) &_result_ref; | |
20818 | } | |
20819 | ||
20820 | wxPyEndAllowThreads(__tstate); | |
20821 | if (PyErr_Occurred()) SWIG_fail; | |
20822 | } | |
20823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20824 | return resultobj; | |
20825 | fail: | |
20826 | return NULL; | |
20827 | } | |
20828 | ||
20829 | ||
c32bde28 | 20830 | static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20831 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20832 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
20833 | double arg2 ; | |
20834 | wxDateTime *result; | |
20835 | PyObject * obj0 = 0 ; | |
20836 | PyObject * obj1 = 0 ; | |
20837 | char *kwnames[] = { | |
20838 | (char *) "self",(char *) "jdn", NULL | |
20839 | }; | |
20840 | ||
20841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20844 | { | |
7449af73 | 20845 | arg2 = static_cast<double >(SWIG_As_double(obj1)); |
093d3ff1 RD |
20846 | if (SWIG_arg_fail(2)) SWIG_fail; |
20847 | } | |
d55e5bfc RD |
20848 | { |
20849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20850 | { | |
20851 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
20852 | result = (wxDateTime *) &_result_ref; | |
20853 | } | |
20854 | ||
20855 | wxPyEndAllowThreads(__tstate); | |
20856 | if (PyErr_Occurred()) SWIG_fail; | |
20857 | } | |
20858 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20859 | return resultobj; | |
20860 | fail: | |
20861 | return NULL; | |
20862 | } | |
20863 | ||
20864 | ||
c32bde28 | 20865 | static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20866 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20867 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
20868 | int arg2 ; | |
20869 | int arg3 = (int) 0 ; | |
20870 | int arg4 = (int) 0 ; | |
20871 | int arg5 = (int) 0 ; | |
20872 | wxDateTime *result; | |
20873 | PyObject * obj0 = 0 ; | |
20874 | PyObject * obj1 = 0 ; | |
20875 | PyObject * obj2 = 0 ; | |
20876 | PyObject * obj3 = 0 ; | |
20877 | PyObject * obj4 = 0 ; | |
20878 | char *kwnames[] = { | |
20879 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
20880 | }; | |
20881 | ||
20882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
20883 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20884 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20885 | { | |
7449af73 | 20886 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 20887 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc | 20888 | } |
093d3ff1 RD |
20889 | if (obj2) { |
20890 | { | |
7449af73 | 20891 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20892 | if (SWIG_arg_fail(3)) SWIG_fail; |
20893 | } | |
20894 | } | |
20895 | if (obj3) { | |
20896 | { | |
7449af73 | 20897 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
20898 | if (SWIG_arg_fail(4)) SWIG_fail; |
20899 | } | |
d55e5bfc RD |
20900 | } |
20901 | if (obj4) { | |
093d3ff1 | 20902 | { |
7449af73 | 20903 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
20904 | if (SWIG_arg_fail(5)) SWIG_fail; |
20905 | } | |
d55e5bfc RD |
20906 | } |
20907 | { | |
20908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20909 | { | |
20910 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
20911 | result = (wxDateTime *) &_result_ref; | |
20912 | } | |
20913 | ||
20914 | wxPyEndAllowThreads(__tstate); | |
20915 | if (PyErr_Occurred()) SWIG_fail; | |
20916 | } | |
20917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20918 | return resultobj; | |
20919 | fail: | |
20920 | return NULL; | |
20921 | } | |
20922 | ||
20923 | ||
c32bde28 | 20924 | static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 20925 | PyObject *resultobj = NULL; |
d55e5bfc RD |
20926 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
20927 | int arg2 ; | |
093d3ff1 | 20928 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d55e5bfc RD |
20929 | int arg4 = (int) wxDateTime::Inv_Year ; |
20930 | int arg5 = (int) 0 ; | |
20931 | int arg6 = (int) 0 ; | |
20932 | int arg7 = (int) 0 ; | |
20933 | int arg8 = (int) 0 ; | |
20934 | wxDateTime *result; | |
20935 | PyObject * obj0 = 0 ; | |
20936 | PyObject * obj1 = 0 ; | |
20937 | PyObject * obj2 = 0 ; | |
20938 | PyObject * obj3 = 0 ; | |
20939 | PyObject * obj4 = 0 ; | |
20940 | PyObject * obj5 = 0 ; | |
20941 | PyObject * obj6 = 0 ; | |
20942 | PyObject * obj7 = 0 ; | |
20943 | char *kwnames[] = { | |
20944 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
20945 | }; | |
20946 | ||
20947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
093d3ff1 RD |
20948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20950 | { | |
7449af73 | 20951 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20952 | if (SWIG_arg_fail(2)) SWIG_fail; |
20953 | } | |
d55e5bfc | 20954 | if (obj2) { |
093d3ff1 | 20955 | { |
7449af73 | 20956 | arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20957 | if (SWIG_arg_fail(3)) SWIG_fail; |
20958 | } | |
d55e5bfc RD |
20959 | } |
20960 | if (obj3) { | |
093d3ff1 | 20961 | { |
7449af73 | 20962 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
20963 | if (SWIG_arg_fail(4)) SWIG_fail; |
20964 | } | |
d55e5bfc RD |
20965 | } |
20966 | if (obj4) { | |
093d3ff1 | 20967 | { |
7449af73 | 20968 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
20969 | if (SWIG_arg_fail(5)) SWIG_fail; |
20970 | } | |
d55e5bfc RD |
20971 | } |
20972 | if (obj5) { | |
093d3ff1 | 20973 | { |
7449af73 | 20974 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
20975 | if (SWIG_arg_fail(6)) SWIG_fail; |
20976 | } | |
d55e5bfc RD |
20977 | } |
20978 | if (obj6) { | |
093d3ff1 | 20979 | { |
7449af73 | 20980 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
093d3ff1 RD |
20981 | if (SWIG_arg_fail(7)) SWIG_fail; |
20982 | } | |
d55e5bfc RD |
20983 | } |
20984 | if (obj7) { | |
093d3ff1 | 20985 | { |
7449af73 | 20986 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
20987 | if (SWIG_arg_fail(8)) SWIG_fail; |
20988 | } | |
d55e5bfc RD |
20989 | } |
20990 | { | |
20991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20992 | { | |
7449af73 | 20993 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7,arg8); |
d55e5bfc RD |
20994 | result = (wxDateTime *) &_result_ref; |
20995 | } | |
20996 | ||
20997 | wxPyEndAllowThreads(__tstate); | |
20998 | if (PyErr_Occurred()) SWIG_fail; | |
20999 | } | |
21000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21001 | return resultobj; | |
21002 | fail: | |
21003 | return NULL; | |
21004 | } | |
21005 | ||
21006 | ||
c32bde28 | 21007 | static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21008 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21009 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21010 | wxDateTime *result; | |
21011 | PyObject * obj0 = 0 ; | |
21012 | char *kwnames[] = { | |
21013 | (char *) "self", NULL | |
21014 | }; | |
21015 | ||
21016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21019 | { |
21020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21021 | { | |
21022 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
21023 | result = (wxDateTime *) &_result_ref; | |
21024 | } | |
21025 | ||
21026 | wxPyEndAllowThreads(__tstate); | |
21027 | if (PyErr_Occurred()) SWIG_fail; | |
21028 | } | |
21029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21030 | return resultobj; | |
21031 | fail: | |
21032 | return NULL; | |
21033 | } | |
21034 | ||
21035 | ||
c32bde28 | 21036 | static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21037 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21038 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21039 | int arg2 ; | |
21040 | wxDateTime *result; | |
21041 | PyObject * obj0 = 0 ; | |
21042 | PyObject * obj1 = 0 ; | |
21043 | char *kwnames[] = { | |
21044 | (char *) "self",(char *) "year", NULL | |
21045 | }; | |
21046 | ||
21047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21050 | { | |
7449af73 | 21051 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21052 | if (SWIG_arg_fail(2)) SWIG_fail; |
21053 | } | |
d55e5bfc RD |
21054 | { |
21055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21056 | { | |
21057 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
21058 | result = (wxDateTime *) &_result_ref; | |
21059 | } | |
21060 | ||
21061 | wxPyEndAllowThreads(__tstate); | |
21062 | if (PyErr_Occurred()) SWIG_fail; | |
21063 | } | |
21064 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21065 | return resultobj; | |
21066 | fail: | |
21067 | return NULL; | |
21068 | } | |
21069 | ||
21070 | ||
c32bde28 | 21071 | static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21072 | PyObject *resultobj = NULL; |
d55e5bfc | 21073 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21074 | wxDateTime::Month arg2 ; |
d55e5bfc RD |
21075 | wxDateTime *result; |
21076 | PyObject * obj0 = 0 ; | |
21077 | PyObject * obj1 = 0 ; | |
21078 | char *kwnames[] = { | |
21079 | (char *) "self",(char *) "month", NULL | |
21080 | }; | |
21081 | ||
21082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21085 | { | |
7449af73 | 21086 | arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21087 | if (SWIG_arg_fail(2)) SWIG_fail; |
21088 | } | |
d55e5bfc RD |
21089 | { |
21090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21091 | { | |
7449af73 | 21092 | wxDateTime &_result_ref = (arg1)->SetMonth(arg2); |
d55e5bfc RD |
21093 | result = (wxDateTime *) &_result_ref; |
21094 | } | |
21095 | ||
21096 | wxPyEndAllowThreads(__tstate); | |
21097 | if (PyErr_Occurred()) SWIG_fail; | |
21098 | } | |
21099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21100 | return resultobj; | |
21101 | fail: | |
21102 | return NULL; | |
21103 | } | |
21104 | ||
21105 | ||
c32bde28 | 21106 | static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21107 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21108 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21109 | int arg2 ; | |
21110 | wxDateTime *result; | |
21111 | PyObject * obj0 = 0 ; | |
21112 | PyObject * obj1 = 0 ; | |
21113 | char *kwnames[] = { | |
21114 | (char *) "self",(char *) "day", NULL | |
21115 | }; | |
21116 | ||
21117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21120 | { | |
7449af73 | 21121 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21122 | if (SWIG_arg_fail(2)) SWIG_fail; |
21123 | } | |
d55e5bfc RD |
21124 | { |
21125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21126 | { | |
21127 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
21128 | result = (wxDateTime *) &_result_ref; | |
21129 | } | |
21130 | ||
21131 | wxPyEndAllowThreads(__tstate); | |
21132 | if (PyErr_Occurred()) SWIG_fail; | |
21133 | } | |
21134 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21135 | return resultobj; | |
21136 | fail: | |
21137 | return NULL; | |
21138 | } | |
21139 | ||
21140 | ||
c32bde28 | 21141 | static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21142 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21143 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21144 | int arg2 ; | |
21145 | wxDateTime *result; | |
21146 | PyObject * obj0 = 0 ; | |
21147 | PyObject * obj1 = 0 ; | |
21148 | char *kwnames[] = { | |
21149 | (char *) "self",(char *) "hour", NULL | |
21150 | }; | |
21151 | ||
21152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21155 | { | |
7449af73 | 21156 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21157 | if (SWIG_arg_fail(2)) SWIG_fail; |
21158 | } | |
d55e5bfc RD |
21159 | { |
21160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21161 | { | |
21162 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
21163 | result = (wxDateTime *) &_result_ref; | |
21164 | } | |
21165 | ||
21166 | wxPyEndAllowThreads(__tstate); | |
21167 | if (PyErr_Occurred()) SWIG_fail; | |
21168 | } | |
21169 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21170 | return resultobj; | |
21171 | fail: | |
21172 | return NULL; | |
21173 | } | |
21174 | ||
21175 | ||
c32bde28 | 21176 | static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21177 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21178 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21179 | int arg2 ; | |
21180 | wxDateTime *result; | |
21181 | PyObject * obj0 = 0 ; | |
21182 | PyObject * obj1 = 0 ; | |
21183 | char *kwnames[] = { | |
21184 | (char *) "self",(char *) "minute", NULL | |
21185 | }; | |
21186 | ||
21187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21190 | { | |
7449af73 | 21191 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21192 | if (SWIG_arg_fail(2)) SWIG_fail; |
21193 | } | |
d55e5bfc RD |
21194 | { |
21195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21196 | { | |
21197 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
21198 | result = (wxDateTime *) &_result_ref; | |
21199 | } | |
21200 | ||
21201 | wxPyEndAllowThreads(__tstate); | |
21202 | if (PyErr_Occurred()) SWIG_fail; | |
21203 | } | |
21204 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21205 | return resultobj; | |
21206 | fail: | |
21207 | return NULL; | |
21208 | } | |
21209 | ||
21210 | ||
c32bde28 | 21211 | static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21212 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21213 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21214 | int arg2 ; | |
21215 | wxDateTime *result; | |
21216 | PyObject * obj0 = 0 ; | |
21217 | PyObject * obj1 = 0 ; | |
21218 | char *kwnames[] = { | |
21219 | (char *) "self",(char *) "second", NULL | |
21220 | }; | |
21221 | ||
21222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21225 | { | |
7449af73 | 21226 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21227 | if (SWIG_arg_fail(2)) SWIG_fail; |
21228 | } | |
d55e5bfc RD |
21229 | { |
21230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21231 | { | |
21232 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
21233 | result = (wxDateTime *) &_result_ref; | |
21234 | } | |
21235 | ||
21236 | wxPyEndAllowThreads(__tstate); | |
21237 | if (PyErr_Occurred()) SWIG_fail; | |
21238 | } | |
21239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21240 | return resultobj; | |
21241 | fail: | |
21242 | return NULL; | |
21243 | } | |
21244 | ||
21245 | ||
c32bde28 | 21246 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21247 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21248 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21249 | int arg2 ; | |
21250 | wxDateTime *result; | |
21251 | PyObject * obj0 = 0 ; | |
21252 | PyObject * obj1 = 0 ; | |
21253 | char *kwnames[] = { | |
21254 | (char *) "self",(char *) "millisecond", NULL | |
21255 | }; | |
21256 | ||
21257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21260 | { | |
7449af73 | 21261 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21262 | if (SWIG_arg_fail(2)) SWIG_fail; |
21263 | } | |
d55e5bfc RD |
21264 | { |
21265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21266 | { | |
21267 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
21268 | result = (wxDateTime *) &_result_ref; | |
21269 | } | |
21270 | ||
21271 | wxPyEndAllowThreads(__tstate); | |
21272 | if (PyErr_Occurred()) SWIG_fail; | |
21273 | } | |
21274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21275 | return resultobj; | |
21276 | fail: | |
21277 | return NULL; | |
21278 | } | |
21279 | ||
21280 | ||
c32bde28 | 21281 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21282 | PyObject *resultobj = NULL; |
d55e5bfc | 21283 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 RD |
21284 | wxDateTime::WeekDay arg2 ; |
21285 | wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d55e5bfc RD |
21286 | wxDateTime *result; |
21287 | PyObject * obj0 = 0 ; | |
21288 | PyObject * obj1 = 0 ; | |
21289 | PyObject * obj2 = 0 ; | |
21290 | char *kwnames[] = { | |
21291 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
21292 | }; | |
21293 | ||
21294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
21295 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21296 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21297 | { | |
7449af73 | 21298 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21299 | if (SWIG_arg_fail(2)) SWIG_fail; |
21300 | } | |
d55e5bfc | 21301 | if (obj2) { |
093d3ff1 | 21302 | { |
7449af73 | 21303 | arg3 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21304 | if (SWIG_arg_fail(3)) SWIG_fail; |
21305 | } | |
d55e5bfc RD |
21306 | } |
21307 | { | |
21308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21309 | { | |
7449af73 | 21310 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek(arg2,arg3); |
d55e5bfc RD |
21311 | result = (wxDateTime *) &_result_ref; |
21312 | } | |
21313 | ||
21314 | wxPyEndAllowThreads(__tstate); | |
21315 | if (PyErr_Occurred()) SWIG_fail; | |
21316 | } | |
21317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21318 | return resultobj; | |
21319 | fail: | |
21320 | return NULL; | |
21321 | } | |
21322 | ||
21323 | ||
c32bde28 | 21324 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21325 | PyObject *resultobj = NULL; |
d55e5bfc | 21326 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 RD |
21327 | wxDateTime::WeekDay arg2 ; |
21328 | wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d55e5bfc RD |
21329 | wxDateTime result; |
21330 | PyObject * obj0 = 0 ; | |
21331 | PyObject * obj1 = 0 ; | |
21332 | PyObject * obj2 = 0 ; | |
21333 | char *kwnames[] = { | |
21334 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
21335 | }; | |
21336 | ||
21337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
21338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21340 | { | |
7449af73 | 21341 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21342 | if (SWIG_arg_fail(2)) SWIG_fail; |
21343 | } | |
d55e5bfc | 21344 | if (obj2) { |
093d3ff1 | 21345 | { |
7449af73 | 21346 | arg3 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21347 | if (SWIG_arg_fail(3)) SWIG_fail; |
21348 | } | |
d55e5bfc RD |
21349 | } |
21350 | { | |
21351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 21352 | result = (arg1)->GetWeekDayInSameWeek(arg2,arg3); |
d55e5bfc RD |
21353 | |
21354 | wxPyEndAllowThreads(__tstate); | |
21355 | if (PyErr_Occurred()) SWIG_fail; | |
21356 | } | |
21357 | { | |
21358 | wxDateTime * resultptr; | |
7449af73 | 21359 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
21360 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21361 | } | |
21362 | return resultobj; | |
21363 | fail: | |
21364 | return NULL; | |
21365 | } | |
21366 | ||
21367 | ||
c32bde28 | 21368 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21369 | PyObject *resultobj = NULL; |
d55e5bfc | 21370 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21371 | wxDateTime::WeekDay arg2 ; |
d55e5bfc RD |
21372 | wxDateTime *result; |
21373 | PyObject * obj0 = 0 ; | |
21374 | PyObject * obj1 = 0 ; | |
21375 | char *kwnames[] = { | |
21376 | (char *) "self",(char *) "weekday", NULL | |
21377 | }; | |
21378 | ||
21379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21380 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21381 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21382 | { | |
7449af73 | 21383 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21384 | if (SWIG_arg_fail(2)) SWIG_fail; |
21385 | } | |
d55e5bfc RD |
21386 | { |
21387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21388 | { | |
7449af73 | 21389 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay(arg2); |
d55e5bfc RD |
21390 | result = (wxDateTime *) &_result_ref; |
21391 | } | |
21392 | ||
21393 | wxPyEndAllowThreads(__tstate); | |
21394 | if (PyErr_Occurred()) SWIG_fail; | |
21395 | } | |
21396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21397 | return resultobj; | |
21398 | fail: | |
21399 | return NULL; | |
21400 | } | |
21401 | ||
21402 | ||
c32bde28 | 21403 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21404 | PyObject *resultobj = NULL; |
d55e5bfc | 21405 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21406 | wxDateTime::WeekDay arg2 ; |
d55e5bfc RD |
21407 | wxDateTime result; |
21408 | PyObject * obj0 = 0 ; | |
21409 | PyObject * obj1 = 0 ; | |
21410 | char *kwnames[] = { | |
21411 | (char *) "self",(char *) "weekday", NULL | |
21412 | }; | |
21413 | ||
21414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21417 | { | |
7449af73 | 21418 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21419 | if (SWIG_arg_fail(2)) SWIG_fail; |
21420 | } | |
d55e5bfc RD |
21421 | { |
21422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 21423 | result = (arg1)->GetNextWeekDay(arg2); |
d55e5bfc RD |
21424 | |
21425 | wxPyEndAllowThreads(__tstate); | |
21426 | if (PyErr_Occurred()) SWIG_fail; | |
21427 | } | |
21428 | { | |
21429 | wxDateTime * resultptr; | |
7449af73 | 21430 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
21431 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21432 | } | |
21433 | return resultobj; | |
21434 | fail: | |
21435 | return NULL; | |
21436 | } | |
21437 | ||
21438 | ||
c32bde28 | 21439 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21440 | PyObject *resultobj = NULL; |
d55e5bfc | 21441 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21442 | wxDateTime::WeekDay arg2 ; |
d55e5bfc RD |
21443 | wxDateTime *result; |
21444 | PyObject * obj0 = 0 ; | |
21445 | PyObject * obj1 = 0 ; | |
21446 | char *kwnames[] = { | |
21447 | (char *) "self",(char *) "weekday", NULL | |
21448 | }; | |
21449 | ||
21450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21451 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21452 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21453 | { | |
7449af73 | 21454 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21455 | if (SWIG_arg_fail(2)) SWIG_fail; |
21456 | } | |
d55e5bfc RD |
21457 | { |
21458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21459 | { | |
7449af73 | 21460 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay(arg2); |
d55e5bfc RD |
21461 | result = (wxDateTime *) &_result_ref; |
21462 | } | |
21463 | ||
21464 | wxPyEndAllowThreads(__tstate); | |
21465 | if (PyErr_Occurred()) SWIG_fail; | |
21466 | } | |
21467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21468 | return resultobj; | |
21469 | fail: | |
21470 | return NULL; | |
21471 | } | |
21472 | ||
21473 | ||
c32bde28 | 21474 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21475 | PyObject *resultobj = NULL; |
d55e5bfc | 21476 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21477 | wxDateTime::WeekDay arg2 ; |
d55e5bfc RD |
21478 | wxDateTime result; |
21479 | PyObject * obj0 = 0 ; | |
21480 | PyObject * obj1 = 0 ; | |
21481 | char *kwnames[] = { | |
21482 | (char *) "self",(char *) "weekday", NULL | |
21483 | }; | |
21484 | ||
21485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21488 | { | |
7449af73 | 21489 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21490 | if (SWIG_arg_fail(2)) SWIG_fail; |
21491 | } | |
d55e5bfc RD |
21492 | { |
21493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 21494 | result = (arg1)->GetPrevWeekDay(arg2); |
d55e5bfc RD |
21495 | |
21496 | wxPyEndAllowThreads(__tstate); | |
21497 | if (PyErr_Occurred()) SWIG_fail; | |
21498 | } | |
21499 | { | |
21500 | wxDateTime * resultptr; | |
7449af73 | 21501 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
21502 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21503 | } | |
21504 | return resultobj; | |
21505 | fail: | |
21506 | return NULL; | |
21507 | } | |
21508 | ||
21509 | ||
c32bde28 | 21510 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21511 | PyObject *resultobj = NULL; |
d55e5bfc | 21512 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21513 | wxDateTime::WeekDay arg2 ; |
d55e5bfc | 21514 | int arg3 = (int) 1 ; |
093d3ff1 | 21515 | wxDateTime::Month arg4 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d55e5bfc RD |
21516 | int arg5 = (int) wxDateTime::Inv_Year ; |
21517 | bool result; | |
21518 | PyObject * obj0 = 0 ; | |
21519 | PyObject * obj1 = 0 ; | |
21520 | PyObject * obj2 = 0 ; | |
21521 | PyObject * obj3 = 0 ; | |
21522 | PyObject * obj4 = 0 ; | |
21523 | char *kwnames[] = { | |
21524 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
21525 | }; | |
21526 | ||
21527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
21528 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21529 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21530 | { | |
7449af73 | 21531 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21532 | if (SWIG_arg_fail(2)) SWIG_fail; |
21533 | } | |
d55e5bfc | 21534 | if (obj2) { |
093d3ff1 | 21535 | { |
7449af73 | 21536 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21537 | if (SWIG_arg_fail(3)) SWIG_fail; |
21538 | } | |
d55e5bfc RD |
21539 | } |
21540 | if (obj3) { | |
093d3ff1 | 21541 | { |
7449af73 | 21542 | arg4 = static_cast<wxDateTime::Month >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21543 | if (SWIG_arg_fail(4)) SWIG_fail; |
21544 | } | |
d55e5bfc RD |
21545 | } |
21546 | if (obj4) { | |
093d3ff1 | 21547 | { |
7449af73 | 21548 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
21549 | if (SWIG_arg_fail(5)) SWIG_fail; |
21550 | } | |
d55e5bfc RD |
21551 | } |
21552 | { | |
21553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 21554 | result = (bool)(arg1)->SetToWeekDay(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
21555 | |
21556 | wxPyEndAllowThreads(__tstate); | |
21557 | if (PyErr_Occurred()) SWIG_fail; | |
21558 | } | |
21559 | { | |
21560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21561 | } | |
21562 | return resultobj; | |
21563 | fail: | |
21564 | return NULL; | |
21565 | } | |
21566 | ||
21567 | ||
c32bde28 | 21568 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21569 | PyObject *resultobj = NULL; |
d55e5bfc | 21570 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 RD |
21571 | wxDateTime::WeekDay arg2 ; |
21572 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; | |
d55e5bfc RD |
21573 | int arg4 = (int) wxDateTime::Inv_Year ; |
21574 | bool result; | |
21575 | PyObject * obj0 = 0 ; | |
21576 | PyObject * obj1 = 0 ; | |
21577 | PyObject * obj2 = 0 ; | |
21578 | PyObject * obj3 = 0 ; | |
21579 | char *kwnames[] = { | |
21580 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
21581 | }; | |
21582 | ||
21583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
21584 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21585 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21586 | { | |
7449af73 | 21587 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21588 | if (SWIG_arg_fail(2)) SWIG_fail; |
21589 | } | |
d55e5bfc | 21590 | if (obj2) { |
093d3ff1 | 21591 | { |
7449af73 | 21592 | arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21593 | if (SWIG_arg_fail(3)) SWIG_fail; |
21594 | } | |
d55e5bfc RD |
21595 | } |
21596 | if (obj3) { | |
093d3ff1 | 21597 | { |
7449af73 | 21598 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21599 | if (SWIG_arg_fail(4)) SWIG_fail; |
21600 | } | |
d55e5bfc RD |
21601 | } |
21602 | { | |
21603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 21604 | result = (bool)(arg1)->SetToLastWeekDay(arg2,arg3,arg4); |
d55e5bfc RD |
21605 | |
21606 | wxPyEndAllowThreads(__tstate); | |
21607 | if (PyErr_Occurred()) SWIG_fail; | |
21608 | } | |
21609 | { | |
21610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21611 | } | |
21612 | return resultobj; | |
21613 | fail: | |
21614 | return NULL; | |
21615 | } | |
21616 | ||
21617 | ||
c32bde28 | 21618 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21619 | PyObject *resultobj = NULL; |
d55e5bfc | 21620 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 RD |
21621 | wxDateTime::WeekDay arg2 ; |
21622 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; | |
d55e5bfc RD |
21623 | int arg4 = (int) wxDateTime::Inv_Year ; |
21624 | wxDateTime result; | |
21625 | PyObject * obj0 = 0 ; | |
21626 | PyObject * obj1 = 0 ; | |
21627 | PyObject * obj2 = 0 ; | |
21628 | PyObject * obj3 = 0 ; | |
21629 | char *kwnames[] = { | |
21630 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
21631 | }; | |
21632 | ||
21633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
21634 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21636 | { | |
7449af73 | 21637 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21638 | if (SWIG_arg_fail(2)) SWIG_fail; |
21639 | } | |
d55e5bfc | 21640 | if (obj2) { |
093d3ff1 | 21641 | { |
7449af73 | 21642 | arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21643 | if (SWIG_arg_fail(3)) SWIG_fail; |
21644 | } | |
d55e5bfc RD |
21645 | } |
21646 | if (obj3) { | |
093d3ff1 | 21647 | { |
7449af73 | 21648 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21649 | if (SWIG_arg_fail(4)) SWIG_fail; |
21650 | } | |
d55e5bfc RD |
21651 | } |
21652 | { | |
21653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 21654 | result = (arg1)->GetLastWeekDay(arg2,arg3,arg4); |
d55e5bfc RD |
21655 | |
21656 | wxPyEndAllowThreads(__tstate); | |
21657 | if (PyErr_Occurred()) SWIG_fail; | |
21658 | } | |
21659 | { | |
21660 | wxDateTime * resultptr; | |
7449af73 | 21661 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
21662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21663 | } | |
21664 | return resultobj; | |
21665 | fail: | |
21666 | return NULL; | |
21667 | } | |
21668 | ||
21669 | ||
c32bde28 | 21670 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21671 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21672 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21673 | int arg2 ; | |
093d3ff1 RD |
21674 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
21675 | wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d55e5bfc RD |
21676 | bool result; |
21677 | PyObject * obj0 = 0 ; | |
21678 | PyObject * obj1 = 0 ; | |
21679 | PyObject * obj2 = 0 ; | |
21680 | PyObject * obj3 = 0 ; | |
21681 | char *kwnames[] = { | |
21682 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
21683 | }; | |
21684 | ||
21685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
21686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21688 | { | |
7449af73 | 21689 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21690 | if (SWIG_arg_fail(2)) SWIG_fail; |
21691 | } | |
d55e5bfc | 21692 | if (obj2) { |
093d3ff1 | 21693 | { |
7449af73 | 21694 | arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21695 | if (SWIG_arg_fail(3)) SWIG_fail; |
21696 | } | |
d55e5bfc RD |
21697 | } |
21698 | if (obj3) { | |
093d3ff1 | 21699 | { |
7449af73 | 21700 | arg4 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21701 | if (SWIG_arg_fail(4)) SWIG_fail; |
21702 | } | |
d55e5bfc RD |
21703 | } |
21704 | { | |
21705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 21706 | result = (bool)(arg1)->SetToTheWeek(arg2,arg3,arg4); |
d55e5bfc RD |
21707 | |
21708 | wxPyEndAllowThreads(__tstate); | |
21709 | if (PyErr_Occurred()) SWIG_fail; | |
21710 | } | |
21711 | { | |
21712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21713 | } | |
21714 | return resultobj; | |
21715 | fail: | |
21716 | return NULL; | |
21717 | } | |
21718 | ||
21719 | ||
c32bde28 | 21720 | static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21721 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21722 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21723 | int arg2 ; | |
093d3ff1 RD |
21724 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
21725 | wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d55e5bfc RD |
21726 | wxDateTime result; |
21727 | PyObject * obj0 = 0 ; | |
21728 | PyObject * obj1 = 0 ; | |
21729 | PyObject * obj2 = 0 ; | |
21730 | PyObject * obj3 = 0 ; | |
21731 | char *kwnames[] = { | |
21732 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
21733 | }; | |
21734 | ||
21735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
21736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21738 | { | |
7449af73 | 21739 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21740 | if (SWIG_arg_fail(2)) SWIG_fail; |
21741 | } | |
d55e5bfc | 21742 | if (obj2) { |
093d3ff1 | 21743 | { |
7449af73 | 21744 | arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21745 | if (SWIG_arg_fail(3)) SWIG_fail; |
21746 | } | |
d55e5bfc RD |
21747 | } |
21748 | if (obj3) { | |
093d3ff1 | 21749 | { |
7449af73 | 21750 | arg4 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21751 | if (SWIG_arg_fail(4)) SWIG_fail; |
21752 | } | |
d55e5bfc RD |
21753 | } |
21754 | { | |
21755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 21756 | result = (arg1)->GetWeek(arg2,arg3,arg4); |
d55e5bfc RD |
21757 | |
21758 | wxPyEndAllowThreads(__tstate); | |
21759 | if (PyErr_Occurred()) SWIG_fail; | |
21760 | } | |
21761 | { | |
21762 | wxDateTime * resultptr; | |
7449af73 | 21763 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
21764 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21765 | } | |
21766 | return resultobj; | |
21767 | fail: | |
21768 | return NULL; | |
21769 | } | |
21770 | ||
21771 | ||
7e63a440 | 21772 | static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21773 | PyObject *resultobj = NULL; |
7e63a440 RD |
21774 | int arg1 ; |
21775 | int arg2 ; | |
093d3ff1 | 21776 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
7e63a440 RD |
21777 | wxDateTime result; |
21778 | PyObject * obj0 = 0 ; | |
21779 | PyObject * obj1 = 0 ; | |
21780 | PyObject * obj2 = 0 ; | |
21781 | char *kwnames[] = { | |
21782 | (char *) "year",(char *) "numWeek",(char *) "weekday", NULL | |
21783 | }; | |
21784 | ||
21785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 | 21786 | { |
7449af73 | 21787 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
21788 | if (SWIG_arg_fail(1)) SWIG_fail; |
21789 | } | |
21790 | { | |
7449af73 | 21791 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21792 | if (SWIG_arg_fail(2)) SWIG_fail; |
21793 | } | |
7e63a440 | 21794 | if (obj2) { |
093d3ff1 | 21795 | { |
7449af73 | 21796 | arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21797 | if (SWIG_arg_fail(3)) SWIG_fail; |
21798 | } | |
7e63a440 RD |
21799 | } |
21800 | { | |
21801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 21802 | result = wxDateTime::SetToWeekOfYear(arg1,arg2,arg3); |
7e63a440 RD |
21803 | |
21804 | wxPyEndAllowThreads(__tstate); | |
21805 | if (PyErr_Occurred()) SWIG_fail; | |
21806 | } | |
21807 | { | |
21808 | wxDateTime * resultptr; | |
7449af73 | 21809 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
7e63a440 RD |
21810 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21811 | } | |
21812 | return resultobj; | |
21813 | fail: | |
21814 | return NULL; | |
21815 | } | |
21816 | ||
21817 | ||
c32bde28 | 21818 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21819 | PyObject *resultobj = NULL; |
d55e5bfc | 21820 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21821 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d55e5bfc RD |
21822 | int arg3 = (int) wxDateTime::Inv_Year ; |
21823 | wxDateTime *result; | |
21824 | PyObject * obj0 = 0 ; | |
21825 | PyObject * obj1 = 0 ; | |
21826 | PyObject * obj2 = 0 ; | |
21827 | char *kwnames[] = { | |
21828 | (char *) "self",(char *) "month",(char *) "year", NULL | |
21829 | }; | |
21830 | ||
21831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
21832 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21833 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 21834 | if (obj1) { |
093d3ff1 | 21835 | { |
7449af73 | 21836 | arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21837 | if (SWIG_arg_fail(2)) SWIG_fail; |
21838 | } | |
d55e5bfc RD |
21839 | } |
21840 | if (obj2) { | |
093d3ff1 | 21841 | { |
7449af73 | 21842 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21843 | if (SWIG_arg_fail(3)) SWIG_fail; |
21844 | } | |
d55e5bfc RD |
21845 | } |
21846 | { | |
21847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21848 | { | |
7449af73 | 21849 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay(arg2,arg3); |
d55e5bfc RD |
21850 | result = (wxDateTime *) &_result_ref; |
21851 | } | |
21852 | ||
21853 | wxPyEndAllowThreads(__tstate); | |
21854 | if (PyErr_Occurred()) SWIG_fail; | |
21855 | } | |
21856 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21857 | return resultobj; | |
21858 | fail: | |
21859 | return NULL; | |
21860 | } | |
21861 | ||
21862 | ||
c32bde28 | 21863 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21864 | PyObject *resultobj = NULL; |
d55e5bfc | 21865 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21866 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d55e5bfc RD |
21867 | int arg3 = (int) wxDateTime::Inv_Year ; |
21868 | wxDateTime result; | |
21869 | PyObject * obj0 = 0 ; | |
21870 | PyObject * obj1 = 0 ; | |
21871 | PyObject * obj2 = 0 ; | |
21872 | char *kwnames[] = { | |
21873 | (char *) "self",(char *) "month",(char *) "year", NULL | |
21874 | }; | |
21875 | ||
21876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
21877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 21879 | if (obj1) { |
093d3ff1 | 21880 | { |
7449af73 | 21881 | arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21882 | if (SWIG_arg_fail(2)) SWIG_fail; |
21883 | } | |
d55e5bfc RD |
21884 | } |
21885 | if (obj2) { | |
093d3ff1 | 21886 | { |
7449af73 | 21887 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21888 | if (SWIG_arg_fail(3)) SWIG_fail; |
21889 | } | |
d55e5bfc RD |
21890 | } |
21891 | { | |
21892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 21893 | result = (arg1)->GetLastMonthDay(arg2,arg3); |
d55e5bfc RD |
21894 | |
21895 | wxPyEndAllowThreads(__tstate); | |
21896 | if (PyErr_Occurred()) SWIG_fail; | |
21897 | } | |
21898 | { | |
21899 | wxDateTime * resultptr; | |
7449af73 | 21900 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
21901 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21902 | } | |
21903 | return resultobj; | |
21904 | fail: | |
21905 | return NULL; | |
21906 | } | |
21907 | ||
21908 | ||
c32bde28 | 21909 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21910 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21911 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21912 | int arg2 ; | |
21913 | wxDateTime *result; | |
21914 | PyObject * obj0 = 0 ; | |
21915 | PyObject * obj1 = 0 ; | |
21916 | char *kwnames[] = { | |
21917 | (char *) "self",(char *) "yday", NULL | |
21918 | }; | |
21919 | ||
21920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21921 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21922 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21923 | { | |
7449af73 | 21924 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21925 | if (SWIG_arg_fail(2)) SWIG_fail; |
21926 | } | |
d55e5bfc RD |
21927 | { |
21928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21929 | { | |
21930 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
21931 | result = (wxDateTime *) &_result_ref; | |
21932 | } | |
21933 | ||
21934 | wxPyEndAllowThreads(__tstate); | |
21935 | if (PyErr_Occurred()) SWIG_fail; | |
21936 | } | |
21937 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21938 | return resultobj; | |
21939 | fail: | |
21940 | return NULL; | |
21941 | } | |
21942 | ||
21943 | ||
c32bde28 | 21944 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21945 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21946 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21947 | int arg2 ; | |
21948 | wxDateTime result; | |
21949 | PyObject * obj0 = 0 ; | |
21950 | PyObject * obj1 = 0 ; | |
21951 | char *kwnames[] = { | |
21952 | (char *) "self",(char *) "yday", NULL | |
21953 | }; | |
21954 | ||
21955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21958 | { | |
7449af73 | 21959 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21960 | if (SWIG_arg_fail(2)) SWIG_fail; |
21961 | } | |
d55e5bfc RD |
21962 | { |
21963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21964 | result = (arg1)->GetYearDay(arg2); | |
21965 | ||
21966 | wxPyEndAllowThreads(__tstate); | |
21967 | if (PyErr_Occurred()) SWIG_fail; | |
21968 | } | |
21969 | { | |
21970 | wxDateTime * resultptr; | |
7449af73 | 21971 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
21972 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21973 | } | |
21974 | return resultobj; | |
21975 | fail: | |
21976 | return NULL; | |
21977 | } | |
21978 | ||
21979 | ||
c32bde28 | 21980 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 21981 | PyObject *resultobj = NULL; |
d55e5bfc RD |
21982 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21983 | double result; | |
21984 | PyObject * obj0 = 0 ; | |
21985 | char *kwnames[] = { | |
21986 | (char *) "self", NULL | |
21987 | }; | |
21988 | ||
21989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21992 | { |
21993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21994 | result = (double)(arg1)->GetJulianDayNumber(); | |
21995 | ||
21996 | wxPyEndAllowThreads(__tstate); | |
21997 | if (PyErr_Occurred()) SWIG_fail; | |
21998 | } | |
093d3ff1 | 21999 | { |
7449af73 | 22000 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 22001 | } |
d55e5bfc RD |
22002 | return resultobj; |
22003 | fail: | |
22004 | return NULL; | |
22005 | } | |
22006 | ||
22007 | ||
c32bde28 | 22008 | static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22009 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22010 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22011 | double result; | |
22012 | PyObject * obj0 = 0 ; | |
22013 | char *kwnames[] = { | |
22014 | (char *) "self", NULL | |
22015 | }; | |
22016 | ||
22017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22018 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22019 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22020 | { |
22021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22022 | result = (double)(arg1)->GetJDN(); | |
22023 | ||
22024 | wxPyEndAllowThreads(__tstate); | |
22025 | if (PyErr_Occurred()) SWIG_fail; | |
22026 | } | |
093d3ff1 | 22027 | { |
7449af73 | 22028 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 22029 | } |
d55e5bfc RD |
22030 | return resultobj; |
22031 | fail: | |
22032 | return NULL; | |
22033 | } | |
22034 | ||
22035 | ||
c32bde28 | 22036 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22037 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22038 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22039 | double result; | |
22040 | PyObject * obj0 = 0 ; | |
22041 | char *kwnames[] = { | |
22042 | (char *) "self", NULL | |
22043 | }; | |
22044 | ||
22045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22046 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22047 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22048 | { |
22049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22050 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
22051 | ||
22052 | wxPyEndAllowThreads(__tstate); | |
22053 | if (PyErr_Occurred()) SWIG_fail; | |
22054 | } | |
093d3ff1 | 22055 | { |
7449af73 | 22056 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 22057 | } |
d55e5bfc RD |
22058 | return resultobj; |
22059 | fail: | |
22060 | return NULL; | |
22061 | } | |
22062 | ||
22063 | ||
c32bde28 | 22064 | static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22065 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22066 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22067 | double result; | |
22068 | PyObject * obj0 = 0 ; | |
22069 | char *kwnames[] = { | |
22070 | (char *) "self", NULL | |
22071 | }; | |
22072 | ||
22073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22076 | { |
22077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22078 | result = (double)(arg1)->GetMJD(); | |
22079 | ||
22080 | wxPyEndAllowThreads(__tstate); | |
22081 | if (PyErr_Occurred()) SWIG_fail; | |
22082 | } | |
093d3ff1 | 22083 | { |
7449af73 | 22084 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 22085 | } |
d55e5bfc RD |
22086 | return resultobj; |
22087 | fail: | |
22088 | return NULL; | |
22089 | } | |
22090 | ||
22091 | ||
c32bde28 | 22092 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22093 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22094 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22095 | double result; | |
22096 | PyObject * obj0 = 0 ; | |
22097 | char *kwnames[] = { | |
22098 | (char *) "self", NULL | |
22099 | }; | |
22100 | ||
22101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22104 | { |
22105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22106 | result = (double)(arg1)->GetRataDie(); | |
22107 | ||
22108 | wxPyEndAllowThreads(__tstate); | |
22109 | if (PyErr_Occurred()) SWIG_fail; | |
22110 | } | |
093d3ff1 | 22111 | { |
7449af73 | 22112 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 22113 | } |
d55e5bfc RD |
22114 | return resultobj; |
22115 | fail: | |
22116 | return NULL; | |
22117 | } | |
22118 | ||
22119 | ||
c32bde28 | 22120 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22121 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22122 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22123 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 22124 | bool arg3 = (bool) false ; |
d55e5bfc | 22125 | wxDateTime result; |
ae8162c8 | 22126 | bool temp2 = false ; |
d55e5bfc RD |
22127 | PyObject * obj0 = 0 ; |
22128 | PyObject * obj1 = 0 ; | |
22129 | PyObject * obj2 = 0 ; | |
22130 | char *kwnames[] = { | |
22131 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
22132 | }; | |
22133 | ||
22134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
22135 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22136 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22137 | { |
22138 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22139 | temp2 = true; |
d55e5bfc RD |
22140 | } |
22141 | if (obj2) { | |
093d3ff1 | 22142 | { |
7449af73 | 22143 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
22144 | if (SWIG_arg_fail(3)) SWIG_fail; |
22145 | } | |
d55e5bfc RD |
22146 | } |
22147 | { | |
22148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22149 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
22150 | ||
22151 | wxPyEndAllowThreads(__tstate); | |
22152 | if (PyErr_Occurred()) SWIG_fail; | |
22153 | } | |
22154 | { | |
22155 | wxDateTime * resultptr; | |
7449af73 | 22156 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
22157 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
22158 | } | |
22159 | { | |
22160 | if (temp2) delete arg2; | |
22161 | } | |
22162 | return resultobj; | |
22163 | fail: | |
22164 | { | |
22165 | if (temp2) delete arg2; | |
22166 | } | |
22167 | return NULL; | |
22168 | } | |
22169 | ||
22170 | ||
c32bde28 | 22171 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22172 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22173 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22174 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 22175 | bool arg3 = (bool) false ; |
d55e5bfc | 22176 | wxDateTime *result; |
ae8162c8 | 22177 | bool temp2 = false ; |
d55e5bfc RD |
22178 | PyObject * obj0 = 0 ; |
22179 | PyObject * obj1 = 0 ; | |
22180 | PyObject * obj2 = 0 ; | |
22181 | char *kwnames[] = { | |
22182 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
22183 | }; | |
22184 | ||
22185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
22186 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22187 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22188 | { |
22189 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22190 | temp2 = true; |
d55e5bfc RD |
22191 | } |
22192 | if (obj2) { | |
093d3ff1 | 22193 | { |
7449af73 | 22194 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
22195 | if (SWIG_arg_fail(3)) SWIG_fail; |
22196 | } | |
d55e5bfc RD |
22197 | } |
22198 | { | |
22199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22200 | { | |
22201 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
22202 | result = (wxDateTime *) &_result_ref; | |
22203 | } | |
22204 | ||
22205 | wxPyEndAllowThreads(__tstate); | |
22206 | if (PyErr_Occurred()) SWIG_fail; | |
22207 | } | |
22208 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22209 | { | |
22210 | if (temp2) delete arg2; | |
22211 | } | |
22212 | return resultobj; | |
22213 | fail: | |
22214 | { | |
22215 | if (temp2) delete arg2; | |
22216 | } | |
22217 | return NULL; | |
22218 | } | |
22219 | ||
22220 | ||
9d7dfdff | 22221 | static PyObject *_wrap_DateTime_FromTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22222 | PyObject *resultobj = NULL; |
9d7dfdff RD |
22223 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22224 | wxDateTime::TimeZone *arg2 = 0 ; | |
22225 | bool arg3 = (bool) false ; | |
22226 | wxDateTime result; | |
22227 | bool temp2 = false ; | |
22228 | PyObject * obj0 = 0 ; | |
22229 | PyObject * obj1 = 0 ; | |
22230 | PyObject * obj2 = 0 ; | |
22231 | char *kwnames[] = { | |
22232 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
22233 | }; | |
22234 | ||
22235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_FromTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22236 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22237 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22238 | { | |
22239 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
22240 | temp2 = true; | |
22241 | } | |
22242 | if (obj2) { | |
22243 | { | |
7449af73 | 22244 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
9d7dfdff RD |
22245 | if (SWIG_arg_fail(3)) SWIG_fail; |
22246 | } | |
22247 | } | |
22248 | { | |
22249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22250 | result = ((wxDateTime const *)arg1)->FromTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
22251 | ||
22252 | wxPyEndAllowThreads(__tstate); | |
22253 | if (PyErr_Occurred()) SWIG_fail; | |
22254 | } | |
22255 | { | |
22256 | wxDateTime * resultptr; | |
7449af73 | 22257 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
9d7dfdff RD |
22258 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
22259 | } | |
22260 | { | |
22261 | if (temp2) delete arg2; | |
22262 | } | |
22263 | return resultobj; | |
22264 | fail: | |
22265 | { | |
22266 | if (temp2) delete arg2; | |
22267 | } | |
22268 | return NULL; | |
22269 | } | |
22270 | ||
22271 | ||
22272 | static PyObject *_wrap_DateTime_MakeFromTimezone(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 22273 | PyObject *resultobj = NULL; |
9d7dfdff RD |
22274 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22275 | wxDateTime::TimeZone *arg2 = 0 ; | |
22276 | bool arg3 = (bool) false ; | |
22277 | wxDateTime *result; | |
22278 | bool temp2 = false ; | |
22279 | PyObject * obj0 = 0 ; | |
22280 | PyObject * obj1 = 0 ; | |
22281 | PyObject * obj2 = 0 ; | |
22282 | char *kwnames[] = { | |
22283 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
22284 | }; | |
22285 | ||
22286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeFromTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22287 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22288 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22289 | { | |
22290 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
22291 | temp2 = true; | |
22292 | } | |
22293 | if (obj2) { | |
22294 | { | |
7449af73 | 22295 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
9d7dfdff RD |
22296 | if (SWIG_arg_fail(3)) SWIG_fail; |
22297 | } | |
22298 | } | |
22299 | { | |
22300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22301 | { | |
22302 | wxDateTime &_result_ref = (arg1)->MakeFromTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
22303 | result = (wxDateTime *) &_result_ref; | |
22304 | } | |
22305 | ||
22306 | wxPyEndAllowThreads(__tstate); | |
22307 | if (PyErr_Occurred()) SWIG_fail; | |
22308 | } | |
22309 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22310 | { | |
22311 | if (temp2) delete arg2; | |
22312 | } | |
22313 | return resultobj; | |
22314 | fail: | |
22315 | { | |
22316 | if (temp2) delete arg2; | |
22317 | } | |
22318 | return NULL; | |
22319 | } | |
22320 | ||
22321 | ||
22322 | static PyObject *_wrap_DateTime_ToUTC(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 22323 | PyObject *resultobj = NULL; |
9d7dfdff RD |
22324 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22325 | bool arg2 = (bool) false ; | |
22326 | wxDateTime result; | |
22327 | PyObject * obj0 = 0 ; | |
22328 | PyObject * obj1 = 0 ; | |
22329 | char *kwnames[] = { | |
22330 | (char *) "self",(char *) "noDST", NULL | |
22331 | }; | |
22332 | ||
22333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToUTC",kwnames,&obj0,&obj1)) goto fail; | |
22334 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22335 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22336 | if (obj1) { | |
22337 | { | |
7449af73 | 22338 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
9d7dfdff RD |
22339 | if (SWIG_arg_fail(2)) SWIG_fail; |
22340 | } | |
22341 | } | |
22342 | { | |
22343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22344 | result = ((wxDateTime const *)arg1)->ToUTC(arg2); | |
22345 | ||
22346 | wxPyEndAllowThreads(__tstate); | |
22347 | if (PyErr_Occurred()) SWIG_fail; | |
22348 | } | |
22349 | { | |
22350 | wxDateTime * resultptr; | |
7449af73 | 22351 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
9d7dfdff RD |
22352 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
22353 | } | |
22354 | return resultobj; | |
22355 | fail: | |
22356 | return NULL; | |
22357 | } | |
22358 | ||
22359 | ||
22360 | static PyObject *_wrap_DateTime_MakeUTC(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 22361 | PyObject *resultobj = NULL; |
9d7dfdff RD |
22362 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22363 | bool arg2 = (bool) false ; | |
22364 | wxDateTime *result; | |
22365 | PyObject * obj0 = 0 ; | |
22366 | PyObject * obj1 = 0 ; | |
22367 | char *kwnames[] = { | |
22368 | (char *) "self",(char *) "noDST", NULL | |
22369 | }; | |
22370 | ||
22371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeUTC",kwnames,&obj0,&obj1)) goto fail; | |
22372 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22373 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22374 | if (obj1) { | |
22375 | { | |
7449af73 | 22376 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
9d7dfdff RD |
22377 | if (SWIG_arg_fail(2)) SWIG_fail; |
22378 | } | |
22379 | } | |
22380 | { | |
22381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22382 | { | |
22383 | wxDateTime &_result_ref = (arg1)->MakeUTC(arg2); | |
22384 | result = (wxDateTime *) &_result_ref; | |
22385 | } | |
22386 | ||
22387 | wxPyEndAllowThreads(__tstate); | |
22388 | if (PyErr_Occurred()) SWIG_fail; | |
22389 | } | |
22390 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22391 | return resultobj; | |
22392 | fail: | |
22393 | return NULL; | |
22394 | } | |
22395 | ||
22396 | ||
c32bde28 | 22397 | static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22398 | PyObject *resultobj = NULL; |
d55e5bfc | 22399 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
ae8162c8 | 22400 | bool arg2 = (bool) false ; |
d55e5bfc RD |
22401 | wxDateTime result; |
22402 | PyObject * obj0 = 0 ; | |
22403 | PyObject * obj1 = 0 ; | |
22404 | char *kwnames[] = { | |
22405 | (char *) "self",(char *) "noDST", NULL | |
22406 | }; | |
22407 | ||
22408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 22411 | if (obj1) { |
093d3ff1 | 22412 | { |
7449af73 | 22413 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
22414 | if (SWIG_arg_fail(2)) SWIG_fail; |
22415 | } | |
d55e5bfc RD |
22416 | } |
22417 | { | |
22418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9d7dfdff | 22419 | result = ((wxDateTime const *)arg1)->ToGMT(arg2); |
d55e5bfc RD |
22420 | |
22421 | wxPyEndAllowThreads(__tstate); | |
22422 | if (PyErr_Occurred()) SWIG_fail; | |
22423 | } | |
22424 | { | |
22425 | wxDateTime * resultptr; | |
7449af73 | 22426 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
22427 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
22428 | } | |
22429 | return resultobj; | |
22430 | fail: | |
22431 | return NULL; | |
22432 | } | |
22433 | ||
22434 | ||
c32bde28 | 22435 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22436 | PyObject *resultobj = NULL; |
d55e5bfc | 22437 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
ae8162c8 | 22438 | bool arg2 = (bool) false ; |
d55e5bfc RD |
22439 | wxDateTime *result; |
22440 | PyObject * obj0 = 0 ; | |
22441 | PyObject * obj1 = 0 ; | |
22442 | char *kwnames[] = { | |
22443 | (char *) "self",(char *) "noDST", NULL | |
22444 | }; | |
22445 | ||
22446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22447 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 22449 | if (obj1) { |
093d3ff1 | 22450 | { |
7449af73 | 22451 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
22452 | if (SWIG_arg_fail(2)) SWIG_fail; |
22453 | } | |
d55e5bfc RD |
22454 | } |
22455 | { | |
22456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22457 | { | |
22458 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
22459 | result = (wxDateTime *) &_result_ref; | |
22460 | } | |
22461 | ||
22462 | wxPyEndAllowThreads(__tstate); | |
22463 | if (PyErr_Occurred()) SWIG_fail; | |
22464 | } | |
22465 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22466 | return resultobj; | |
22467 | fail: | |
22468 | return NULL; | |
22469 | } | |
22470 | ||
22471 | ||
9d7dfdff | 22472 | static PyObject *_wrap_DateTime_FromUTC(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22473 | PyObject *resultobj = NULL; |
9d7dfdff RD |
22474 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22475 | bool arg2 = (bool) false ; | |
22476 | wxDateTime result; | |
22477 | PyObject * obj0 = 0 ; | |
22478 | PyObject * obj1 = 0 ; | |
22479 | char *kwnames[] = { | |
22480 | (char *) "self",(char *) "noDST", NULL | |
22481 | }; | |
22482 | ||
22483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_FromUTC",kwnames,&obj0,&obj1)) goto fail; | |
22484 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22485 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22486 | if (obj1) { | |
22487 | { | |
7449af73 | 22488 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
9d7dfdff RD |
22489 | if (SWIG_arg_fail(2)) SWIG_fail; |
22490 | } | |
22491 | } | |
22492 | { | |
22493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22494 | result = ((wxDateTime const *)arg1)->FromUTC(arg2); | |
22495 | ||
22496 | wxPyEndAllowThreads(__tstate); | |
22497 | if (PyErr_Occurred()) SWIG_fail; | |
22498 | } | |
22499 | { | |
22500 | wxDateTime * resultptr; | |
7449af73 | 22501 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
9d7dfdff RD |
22502 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
22503 | } | |
22504 | return resultobj; | |
22505 | fail: | |
22506 | return NULL; | |
22507 | } | |
22508 | ||
22509 | ||
22510 | static PyObject *_wrap_DateTime_MakeFromUTC(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 22511 | PyObject *resultobj = NULL; |
9d7dfdff RD |
22512 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22513 | bool arg2 = (bool) false ; | |
22514 | wxDateTime *result; | |
22515 | PyObject * obj0 = 0 ; | |
22516 | PyObject * obj1 = 0 ; | |
22517 | char *kwnames[] = { | |
22518 | (char *) "self",(char *) "noDST", NULL | |
22519 | }; | |
22520 | ||
22521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeFromUTC",kwnames,&obj0,&obj1)) goto fail; | |
22522 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22523 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22524 | if (obj1) { | |
22525 | { | |
7449af73 | 22526 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
9d7dfdff RD |
22527 | if (SWIG_arg_fail(2)) SWIG_fail; |
22528 | } | |
22529 | } | |
22530 | { | |
22531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22532 | { | |
22533 | wxDateTime &_result_ref = (arg1)->MakeFromUTC(arg2); | |
22534 | result = (wxDateTime *) &_result_ref; | |
22535 | } | |
22536 | ||
22537 | wxPyEndAllowThreads(__tstate); | |
22538 | if (PyErr_Occurred()) SWIG_fail; | |
22539 | } | |
22540 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22541 | return resultobj; | |
22542 | fail: | |
22543 | return NULL; | |
22544 | } | |
22545 | ||
22546 | ||
c32bde28 | 22547 | static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22548 | PyObject *resultobj = NULL; |
d55e5bfc | 22549 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 22550 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
22551 | int result; |
22552 | PyObject * obj0 = 0 ; | |
22553 | PyObject * obj1 = 0 ; | |
22554 | char *kwnames[] = { | |
22555 | (char *) "self",(char *) "country", NULL | |
22556 | }; | |
22557 | ||
22558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 22561 | if (obj1) { |
093d3ff1 | 22562 | { |
7449af73 | 22563 | arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22564 | if (SWIG_arg_fail(2)) SWIG_fail; |
22565 | } | |
d55e5bfc RD |
22566 | } |
22567 | { | |
22568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 22569 | result = (int)(arg1)->IsDST(arg2); |
d55e5bfc RD |
22570 | |
22571 | wxPyEndAllowThreads(__tstate); | |
22572 | if (PyErr_Occurred()) SWIG_fail; | |
22573 | } | |
093d3ff1 | 22574 | { |
7449af73 | 22575 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22576 | } |
d55e5bfc RD |
22577 | return resultobj; |
22578 | fail: | |
22579 | return NULL; | |
22580 | } | |
22581 | ||
22582 | ||
c32bde28 | 22583 | static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22584 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22585 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22586 | bool result; | |
22587 | PyObject * obj0 = 0 ; | |
22588 | char *kwnames[] = { | |
22589 | (char *) "self", NULL | |
22590 | }; | |
22591 | ||
22592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22595 | { |
22596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22597 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
22598 | ||
22599 | wxPyEndAllowThreads(__tstate); | |
22600 | if (PyErr_Occurred()) SWIG_fail; | |
22601 | } | |
22602 | { | |
22603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22604 | } | |
22605 | return resultobj; | |
22606 | fail: | |
22607 | return NULL; | |
22608 | } | |
22609 | ||
22610 | ||
c32bde28 | 22611 | static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22612 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22613 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22614 | time_t result; | |
22615 | PyObject * obj0 = 0 ; | |
22616 | char *kwnames[] = { | |
22617 | (char *) "self", NULL | |
22618 | }; | |
22619 | ||
22620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22623 | { |
22624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22625 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
22626 | ||
22627 | wxPyEndAllowThreads(__tstate); | |
22628 | if (PyErr_Occurred()) SWIG_fail; | |
22629 | } | |
093d3ff1 | 22630 | { |
7449af73 | 22631 | resultobj = SWIG_From_unsigned_SS_int(static_cast<unsigned int >(result)); |
093d3ff1 | 22632 | } |
d55e5bfc RD |
22633 | return resultobj; |
22634 | fail: | |
22635 | return NULL; | |
22636 | } | |
22637 | ||
22638 | ||
c32bde28 | 22639 | static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22640 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22641 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22642 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22643 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
22644 | int result; | |
ae8162c8 | 22645 | bool temp2 = false ; |
d55e5bfc RD |
22646 | PyObject * obj0 = 0 ; |
22647 | PyObject * obj1 = 0 ; | |
22648 | char *kwnames[] = { | |
22649 | (char *) "self",(char *) "tz", NULL | |
22650 | }; | |
22651 | ||
22652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22653 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22655 | if (obj1) { |
22656 | { | |
22657 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22658 | temp2 = true; |
d55e5bfc RD |
22659 | } |
22660 | } | |
22661 | { | |
22662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22663 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
22664 | ||
22665 | wxPyEndAllowThreads(__tstate); | |
22666 | if (PyErr_Occurred()) SWIG_fail; | |
22667 | } | |
093d3ff1 | 22668 | { |
7449af73 | 22669 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22670 | } |
d55e5bfc RD |
22671 | { |
22672 | if (temp2) delete arg2; | |
22673 | } | |
22674 | return resultobj; | |
22675 | fail: | |
22676 | { | |
22677 | if (temp2) delete arg2; | |
22678 | } | |
22679 | return NULL; | |
22680 | } | |
22681 | ||
22682 | ||
c32bde28 | 22683 | static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22684 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22685 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22686 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22687 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
093d3ff1 | 22688 | wxDateTime::Month result; |
ae8162c8 | 22689 | bool temp2 = false ; |
d55e5bfc RD |
22690 | PyObject * obj0 = 0 ; |
22691 | PyObject * obj1 = 0 ; | |
22692 | char *kwnames[] = { | |
22693 | (char *) "self",(char *) "tz", NULL | |
22694 | }; | |
22695 | ||
22696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22699 | if (obj1) { |
22700 | { | |
22701 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22702 | temp2 = true; |
d55e5bfc RD |
22703 | } |
22704 | } | |
22705 | { | |
22706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22707 | result = (wxDateTime::Month)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); |
d55e5bfc RD |
22708 | |
22709 | wxPyEndAllowThreads(__tstate); | |
22710 | if (PyErr_Occurred()) SWIG_fail; | |
22711 | } | |
093d3ff1 | 22712 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
22713 | { |
22714 | if (temp2) delete arg2; | |
22715 | } | |
22716 | return resultobj; | |
22717 | fail: | |
22718 | { | |
22719 | if (temp2) delete arg2; | |
22720 | } | |
22721 | return NULL; | |
22722 | } | |
22723 | ||
22724 | ||
c32bde28 | 22725 | static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22726 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22727 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22728 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22729 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
22730 | int result; | |
ae8162c8 | 22731 | bool temp2 = false ; |
d55e5bfc RD |
22732 | PyObject * obj0 = 0 ; |
22733 | PyObject * obj1 = 0 ; | |
22734 | char *kwnames[] = { | |
22735 | (char *) "self",(char *) "tz", NULL | |
22736 | }; | |
22737 | ||
22738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22741 | if (obj1) { |
22742 | { | |
22743 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22744 | temp2 = true; |
d55e5bfc RD |
22745 | } |
22746 | } | |
22747 | { | |
22748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22749 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
22750 | ||
22751 | wxPyEndAllowThreads(__tstate); | |
22752 | if (PyErr_Occurred()) SWIG_fail; | |
22753 | } | |
093d3ff1 | 22754 | { |
7449af73 | 22755 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22756 | } |
d55e5bfc RD |
22757 | { |
22758 | if (temp2) delete arg2; | |
22759 | } | |
22760 | return resultobj; | |
22761 | fail: | |
22762 | { | |
22763 | if (temp2) delete arg2; | |
22764 | } | |
22765 | return NULL; | |
22766 | } | |
22767 | ||
22768 | ||
c32bde28 | 22769 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22770 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22771 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22772 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22773 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
093d3ff1 | 22774 | wxDateTime::WeekDay result; |
ae8162c8 | 22775 | bool temp2 = false ; |
d55e5bfc RD |
22776 | PyObject * obj0 = 0 ; |
22777 | PyObject * obj1 = 0 ; | |
22778 | char *kwnames[] = { | |
22779 | (char *) "self",(char *) "tz", NULL | |
22780 | }; | |
22781 | ||
22782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22785 | if (obj1) { |
22786 | { | |
22787 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22788 | temp2 = true; |
d55e5bfc RD |
22789 | } |
22790 | } | |
22791 | { | |
22792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22793 | result = (wxDateTime::WeekDay)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); |
d55e5bfc RD |
22794 | |
22795 | wxPyEndAllowThreads(__tstate); | |
22796 | if (PyErr_Occurred()) SWIG_fail; | |
22797 | } | |
093d3ff1 | 22798 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
22799 | { |
22800 | if (temp2) delete arg2; | |
22801 | } | |
22802 | return resultobj; | |
22803 | fail: | |
22804 | { | |
22805 | if (temp2) delete arg2; | |
22806 | } | |
22807 | return NULL; | |
22808 | } | |
22809 | ||
22810 | ||
c32bde28 | 22811 | static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22812 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22813 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22814 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22815 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
22816 | int result; | |
ae8162c8 | 22817 | bool temp2 = false ; |
d55e5bfc RD |
22818 | PyObject * obj0 = 0 ; |
22819 | PyObject * obj1 = 0 ; | |
22820 | char *kwnames[] = { | |
22821 | (char *) "self",(char *) "tz", NULL | |
22822 | }; | |
22823 | ||
22824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22827 | if (obj1) { |
22828 | { | |
22829 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22830 | temp2 = true; |
d55e5bfc RD |
22831 | } |
22832 | } | |
22833 | { | |
22834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22835 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
22836 | ||
22837 | wxPyEndAllowThreads(__tstate); | |
22838 | if (PyErr_Occurred()) SWIG_fail; | |
22839 | } | |
093d3ff1 | 22840 | { |
7449af73 | 22841 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22842 | } |
d55e5bfc RD |
22843 | { |
22844 | if (temp2) delete arg2; | |
22845 | } | |
22846 | return resultobj; | |
22847 | fail: | |
22848 | { | |
22849 | if (temp2) delete arg2; | |
22850 | } | |
22851 | return NULL; | |
22852 | } | |
22853 | ||
22854 | ||
c32bde28 | 22855 | static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22856 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22857 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22858 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22859 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
22860 | int result; | |
ae8162c8 | 22861 | bool temp2 = false ; |
d55e5bfc RD |
22862 | PyObject * obj0 = 0 ; |
22863 | PyObject * obj1 = 0 ; | |
22864 | char *kwnames[] = { | |
22865 | (char *) "self",(char *) "tz", NULL | |
22866 | }; | |
22867 | ||
22868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22869 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22870 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22871 | if (obj1) { |
22872 | { | |
22873 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22874 | temp2 = true; |
d55e5bfc RD |
22875 | } |
22876 | } | |
22877 | { | |
22878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22879 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
22880 | ||
22881 | wxPyEndAllowThreads(__tstate); | |
22882 | if (PyErr_Occurred()) SWIG_fail; | |
22883 | } | |
093d3ff1 | 22884 | { |
7449af73 | 22885 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22886 | } |
d55e5bfc RD |
22887 | { |
22888 | if (temp2) delete arg2; | |
22889 | } | |
22890 | return resultobj; | |
22891 | fail: | |
22892 | { | |
22893 | if (temp2) delete arg2; | |
22894 | } | |
22895 | return NULL; | |
22896 | } | |
22897 | ||
22898 | ||
c32bde28 | 22899 | static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22900 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22901 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22902 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22903 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
22904 | int result; | |
ae8162c8 | 22905 | bool temp2 = false ; |
d55e5bfc RD |
22906 | PyObject * obj0 = 0 ; |
22907 | PyObject * obj1 = 0 ; | |
22908 | char *kwnames[] = { | |
22909 | (char *) "self",(char *) "tz", NULL | |
22910 | }; | |
22911 | ||
22912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22915 | if (obj1) { |
22916 | { | |
22917 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22918 | temp2 = true; |
d55e5bfc RD |
22919 | } |
22920 | } | |
22921 | { | |
22922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22923 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
22924 | ||
22925 | wxPyEndAllowThreads(__tstate); | |
22926 | if (PyErr_Occurred()) SWIG_fail; | |
22927 | } | |
093d3ff1 | 22928 | { |
7449af73 | 22929 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22930 | } |
d55e5bfc RD |
22931 | { |
22932 | if (temp2) delete arg2; | |
22933 | } | |
22934 | return resultobj; | |
22935 | fail: | |
22936 | { | |
22937 | if (temp2) delete arg2; | |
22938 | } | |
22939 | return NULL; | |
22940 | } | |
22941 | ||
22942 | ||
c32bde28 | 22943 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22944 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22945 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22946 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22947 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
22948 | int result; | |
ae8162c8 | 22949 | bool temp2 = false ; |
d55e5bfc RD |
22950 | PyObject * obj0 = 0 ; |
22951 | PyObject * obj1 = 0 ; | |
22952 | char *kwnames[] = { | |
22953 | (char *) "self",(char *) "tz", NULL | |
22954 | }; | |
22955 | ||
22956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22959 | if (obj1) { |
22960 | { | |
22961 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22962 | temp2 = true; |
d55e5bfc RD |
22963 | } |
22964 | } | |
22965 | { | |
22966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22967 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
22968 | ||
22969 | wxPyEndAllowThreads(__tstate); | |
22970 | if (PyErr_Occurred()) SWIG_fail; | |
22971 | } | |
093d3ff1 | 22972 | { |
7449af73 | 22973 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22974 | } |
d55e5bfc RD |
22975 | { |
22976 | if (temp2) delete arg2; | |
22977 | } | |
22978 | return resultobj; | |
22979 | fail: | |
22980 | { | |
22981 | if (temp2) delete arg2; | |
22982 | } | |
22983 | return NULL; | |
22984 | } | |
22985 | ||
22986 | ||
c32bde28 | 22987 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 22988 | PyObject *resultobj = NULL; |
d55e5bfc RD |
22989 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22990 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22991 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
22992 | int result; | |
ae8162c8 | 22993 | bool temp2 = false ; |
d55e5bfc RD |
22994 | PyObject * obj0 = 0 ; |
22995 | PyObject * obj1 = 0 ; | |
22996 | char *kwnames[] = { | |
22997 | (char *) "self",(char *) "tz", NULL | |
22998 | }; | |
22999 | ||
23000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23003 | if (obj1) { |
23004 | { | |
23005 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 23006 | temp2 = true; |
d55e5bfc RD |
23007 | } |
23008 | } | |
23009 | { | |
23010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23011 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
23012 | ||
23013 | wxPyEndAllowThreads(__tstate); | |
23014 | if (PyErr_Occurred()) SWIG_fail; | |
23015 | } | |
093d3ff1 | 23016 | { |
7449af73 | 23017 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23018 | } |
d55e5bfc RD |
23019 | { |
23020 | if (temp2) delete arg2; | |
23021 | } | |
23022 | return resultobj; | |
23023 | fail: | |
23024 | { | |
23025 | if (temp2) delete arg2; | |
23026 | } | |
23027 | return NULL; | |
23028 | } | |
23029 | ||
23030 | ||
c32bde28 | 23031 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23032 | PyObject *resultobj = NULL; |
d55e5bfc | 23033 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 23034 | wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; |
d55e5bfc RD |
23035 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; |
23036 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
23037 | int result; | |
ae8162c8 | 23038 | bool temp3 = false ; |
d55e5bfc RD |
23039 | PyObject * obj0 = 0 ; |
23040 | PyObject * obj1 = 0 ; | |
23041 | PyObject * obj2 = 0 ; | |
23042 | char *kwnames[] = { | |
23043 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
23044 | }; | |
23045 | ||
23046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23047 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23048 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 23049 | if (obj1) { |
093d3ff1 | 23050 | { |
7449af73 | 23051 | arg2 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23052 | if (SWIG_arg_fail(2)) SWIG_fail; |
23053 | } | |
d55e5bfc RD |
23054 | } |
23055 | if (obj2) { | |
23056 | { | |
23057 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 23058 | temp3 = true; |
d55e5bfc RD |
23059 | } |
23060 | } | |
23061 | { | |
23062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 23063 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear(arg2,(wxDateTime::TimeZone const &)*arg3); |
d55e5bfc RD |
23064 | |
23065 | wxPyEndAllowThreads(__tstate); | |
23066 | if (PyErr_Occurred()) SWIG_fail; | |
23067 | } | |
093d3ff1 | 23068 | { |
7449af73 | 23069 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23070 | } |
d55e5bfc RD |
23071 | { |
23072 | if (temp3) delete arg3; | |
23073 | } | |
23074 | return resultobj; | |
23075 | fail: | |
23076 | { | |
23077 | if (temp3) delete arg3; | |
23078 | } | |
23079 | return NULL; | |
23080 | } | |
23081 | ||
23082 | ||
c32bde28 | 23083 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23084 | PyObject *resultobj = NULL; |
d55e5bfc | 23085 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 23086 | wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; |
d55e5bfc RD |
23087 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; |
23088 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
23089 | int result; | |
ae8162c8 | 23090 | bool temp3 = false ; |
d55e5bfc RD |
23091 | PyObject * obj0 = 0 ; |
23092 | PyObject * obj1 = 0 ; | |
23093 | PyObject * obj2 = 0 ; | |
23094 | char *kwnames[] = { | |
23095 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
23096 | }; | |
23097 | ||
23098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 23101 | if (obj1) { |
093d3ff1 | 23102 | { |
7449af73 | 23103 | arg2 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23104 | if (SWIG_arg_fail(2)) SWIG_fail; |
23105 | } | |
d55e5bfc RD |
23106 | } |
23107 | if (obj2) { | |
23108 | { | |
23109 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 23110 | temp3 = true; |
d55e5bfc RD |
23111 | } |
23112 | } | |
23113 | { | |
23114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 23115 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth(arg2,(wxDateTime::TimeZone const &)*arg3); |
d55e5bfc RD |
23116 | |
23117 | wxPyEndAllowThreads(__tstate); | |
23118 | if (PyErr_Occurred()) SWIG_fail; | |
23119 | } | |
093d3ff1 | 23120 | { |
7449af73 | 23121 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23122 | } |
d55e5bfc RD |
23123 | { |
23124 | if (temp3) delete arg3; | |
23125 | } | |
23126 | return resultobj; | |
23127 | fail: | |
23128 | { | |
23129 | if (temp3) delete arg3; | |
23130 | } | |
23131 | return NULL; | |
23132 | } | |
23133 | ||
23134 | ||
c32bde28 | 23135 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23136 | PyObject *resultobj = NULL; |
d55e5bfc | 23137 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 23138 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
23139 | bool result; |
23140 | PyObject * obj0 = 0 ; | |
23141 | PyObject * obj1 = 0 ; | |
23142 | char *kwnames[] = { | |
23143 | (char *) "self",(char *) "country", NULL | |
23144 | }; | |
23145 | ||
23146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 23149 | if (obj1) { |
093d3ff1 | 23150 | { |
7449af73 | 23151 | arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23152 | if (SWIG_arg_fail(2)) SWIG_fail; |
23153 | } | |
d55e5bfc RD |
23154 | } |
23155 | { | |
23156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 23157 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay(arg2); |
d55e5bfc RD |
23158 | |
23159 | wxPyEndAllowThreads(__tstate); | |
23160 | if (PyErr_Occurred()) SWIG_fail; | |
23161 | } | |
23162 | { | |
23163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23164 | } | |
23165 | return resultobj; | |
23166 | fail: | |
23167 | return NULL; | |
23168 | } | |
23169 | ||
23170 | ||
c32bde28 | 23171 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23172 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23173 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23174 | wxDateTime *arg2 = 0 ; | |
23175 | bool result; | |
23176 | PyObject * obj0 = 0 ; | |
23177 | PyObject * obj1 = 0 ; | |
23178 | char *kwnames[] = { | |
23179 | (char *) "self",(char *) "datetime", NULL | |
23180 | }; | |
23181 | ||
23182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23183 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23184 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23185 | { | |
23186 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23187 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23188 | if (arg2 == NULL) { | |
23189 | SWIG_null_ref("wxDateTime"); | |
23190 | } | |
23191 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23192 | } |
23193 | { | |
23194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23195 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
23196 | ||
23197 | wxPyEndAllowThreads(__tstate); | |
23198 | if (PyErr_Occurred()) SWIG_fail; | |
23199 | } | |
23200 | { | |
23201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23202 | } | |
23203 | return resultobj; | |
23204 | fail: | |
23205 | return NULL; | |
23206 | } | |
23207 | ||
23208 | ||
c32bde28 | 23209 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23210 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23211 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23212 | wxDateTime *arg2 = 0 ; | |
23213 | bool result; | |
23214 | PyObject * obj0 = 0 ; | |
23215 | PyObject * obj1 = 0 ; | |
23216 | char *kwnames[] = { | |
23217 | (char *) "self",(char *) "datetime", NULL | |
23218 | }; | |
23219 | ||
23220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23223 | { | |
23224 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23225 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23226 | if (arg2 == NULL) { | |
23227 | SWIG_null_ref("wxDateTime"); | |
23228 | } | |
23229 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23230 | } |
23231 | { | |
23232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23233 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
23234 | ||
23235 | wxPyEndAllowThreads(__tstate); | |
23236 | if (PyErr_Occurred()) SWIG_fail; | |
23237 | } | |
23238 | { | |
23239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23240 | } | |
23241 | return resultobj; | |
23242 | fail: | |
23243 | return NULL; | |
23244 | } | |
23245 | ||
23246 | ||
c32bde28 | 23247 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23248 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23249 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23250 | wxDateTime *arg2 = 0 ; | |
23251 | bool result; | |
23252 | PyObject * obj0 = 0 ; | |
23253 | PyObject * obj1 = 0 ; | |
23254 | char *kwnames[] = { | |
23255 | (char *) "self",(char *) "datetime", NULL | |
23256 | }; | |
23257 | ||
23258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23261 | { | |
23262 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23263 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23264 | if (arg2 == NULL) { | |
23265 | SWIG_null_ref("wxDateTime"); | |
23266 | } | |
23267 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23268 | } |
23269 | { | |
23270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23271 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
23272 | ||
23273 | wxPyEndAllowThreads(__tstate); | |
23274 | if (PyErr_Occurred()) SWIG_fail; | |
23275 | } | |
23276 | { | |
23277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23278 | } | |
23279 | return resultobj; | |
23280 | fail: | |
23281 | return NULL; | |
23282 | } | |
23283 | ||
23284 | ||
c32bde28 | 23285 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23286 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23287 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23288 | wxDateTime *arg2 = 0 ; | |
23289 | wxDateTime *arg3 = 0 ; | |
23290 | bool result; | |
23291 | PyObject * obj0 = 0 ; | |
23292 | PyObject * obj1 = 0 ; | |
23293 | PyObject * obj2 = 0 ; | |
23294 | char *kwnames[] = { | |
23295 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
23296 | }; | |
23297 | ||
23298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23299 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23300 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23301 | { | |
23302 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23303 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23304 | if (arg2 == NULL) { | |
23305 | SWIG_null_ref("wxDateTime"); | |
23306 | } | |
23307 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 23308 | } |
093d3ff1 RD |
23309 | { |
23310 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23311 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23312 | if (arg3 == NULL) { | |
23313 | SWIG_null_ref("wxDateTime"); | |
23314 | } | |
23315 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
23316 | } |
23317 | { | |
23318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23319 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
23320 | ||
23321 | wxPyEndAllowThreads(__tstate); | |
23322 | if (PyErr_Occurred()) SWIG_fail; | |
23323 | } | |
23324 | { | |
23325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23326 | } | |
23327 | return resultobj; | |
23328 | fail: | |
23329 | return NULL; | |
23330 | } | |
23331 | ||
23332 | ||
c32bde28 | 23333 | static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23334 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23335 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23336 | wxDateTime *arg2 = 0 ; | |
23337 | wxDateTime *arg3 = 0 ; | |
23338 | bool result; | |
23339 | PyObject * obj0 = 0 ; | |
23340 | PyObject * obj1 = 0 ; | |
23341 | PyObject * obj2 = 0 ; | |
23342 | char *kwnames[] = { | |
23343 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
23344 | }; | |
23345 | ||
23346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23349 | { | |
23350 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23351 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23352 | if (arg2 == NULL) { | |
23353 | SWIG_null_ref("wxDateTime"); | |
23354 | } | |
23355 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 23356 | } |
093d3ff1 RD |
23357 | { |
23358 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23359 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23360 | if (arg3 == NULL) { | |
23361 | SWIG_null_ref("wxDateTime"); | |
23362 | } | |
23363 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
23364 | } |
23365 | { | |
23366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23367 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
23368 | ||
23369 | wxPyEndAllowThreads(__tstate); | |
23370 | if (PyErr_Occurred()) SWIG_fail; | |
23371 | } | |
23372 | { | |
23373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23374 | } | |
23375 | return resultobj; | |
23376 | fail: | |
23377 | return NULL; | |
23378 | } | |
23379 | ||
23380 | ||
c32bde28 | 23381 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23382 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23383 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23384 | wxDateTime *arg2 = 0 ; | |
23385 | bool result; | |
23386 | PyObject * obj0 = 0 ; | |
23387 | PyObject * obj1 = 0 ; | |
23388 | char *kwnames[] = { | |
23389 | (char *) "self",(char *) "dt", NULL | |
23390 | }; | |
23391 | ||
23392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23395 | { | |
23396 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23397 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23398 | if (arg2 == NULL) { | |
23399 | SWIG_null_ref("wxDateTime"); | |
23400 | } | |
23401 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23402 | } |
23403 | { | |
23404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23405 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
23406 | ||
23407 | wxPyEndAllowThreads(__tstate); | |
23408 | if (PyErr_Occurred()) SWIG_fail; | |
23409 | } | |
23410 | { | |
23411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23412 | } | |
23413 | return resultobj; | |
23414 | fail: | |
23415 | return NULL; | |
23416 | } | |
23417 | ||
23418 | ||
c32bde28 | 23419 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23420 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23421 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23422 | wxDateTime *arg2 = 0 ; | |
23423 | bool result; | |
23424 | PyObject * obj0 = 0 ; | |
23425 | PyObject * obj1 = 0 ; | |
23426 | char *kwnames[] = { | |
23427 | (char *) "self",(char *) "dt", NULL | |
23428 | }; | |
23429 | ||
23430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23431 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23433 | { | |
23434 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23435 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23436 | if (arg2 == NULL) { | |
23437 | SWIG_null_ref("wxDateTime"); | |
23438 | } | |
23439 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23440 | } |
23441 | { | |
23442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23443 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
23444 | ||
23445 | wxPyEndAllowThreads(__tstate); | |
23446 | if (PyErr_Occurred()) SWIG_fail; | |
23447 | } | |
23448 | { | |
23449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23450 | } | |
23451 | return resultobj; | |
23452 | fail: | |
23453 | return NULL; | |
23454 | } | |
23455 | ||
23456 | ||
c32bde28 | 23457 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23458 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23459 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23460 | wxDateTime *arg2 = 0 ; | |
23461 | wxTimeSpan *arg3 = 0 ; | |
23462 | bool result; | |
23463 | PyObject * obj0 = 0 ; | |
23464 | PyObject * obj1 = 0 ; | |
23465 | PyObject * obj2 = 0 ; | |
23466 | char *kwnames[] = { | |
23467 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
23468 | }; | |
23469 | ||
23470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23473 | { | |
23474 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23475 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23476 | if (arg2 == NULL) { | |
23477 | SWIG_null_ref("wxDateTime"); | |
23478 | } | |
23479 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 23480 | } |
093d3ff1 RD |
23481 | { |
23482 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
23483 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23484 | if (arg3 == NULL) { | |
23485 | SWIG_null_ref("wxTimeSpan"); | |
23486 | } | |
23487 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
23488 | } |
23489 | { | |
23490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23491 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
23492 | ||
23493 | wxPyEndAllowThreads(__tstate); | |
23494 | if (PyErr_Occurred()) SWIG_fail; | |
23495 | } | |
23496 | { | |
23497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23498 | } | |
23499 | return resultobj; | |
23500 | fail: | |
23501 | return NULL; | |
23502 | } | |
23503 | ||
23504 | ||
c32bde28 | 23505 | static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23506 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23507 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23508 | wxTimeSpan *arg2 = 0 ; | |
23509 | wxDateTime *result; | |
23510 | PyObject * obj0 = 0 ; | |
23511 | PyObject * obj1 = 0 ; | |
23512 | char *kwnames[] = { | |
23513 | (char *) "self",(char *) "diff", NULL | |
23514 | }; | |
23515 | ||
23516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23519 | { | |
23520 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
23521 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23522 | if (arg2 == NULL) { | |
23523 | SWIG_null_ref("wxTimeSpan"); | |
23524 | } | |
23525 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23526 | } |
23527 | { | |
23528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23529 | { | |
23530 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
23531 | result = (wxDateTime *) &_result_ref; | |
23532 | } | |
23533 | ||
23534 | wxPyEndAllowThreads(__tstate); | |
23535 | if (PyErr_Occurred()) SWIG_fail; | |
23536 | } | |
23537 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
23538 | return resultobj; | |
23539 | fail: | |
23540 | return NULL; | |
23541 | } | |
23542 | ||
23543 | ||
c32bde28 | 23544 | static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23545 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23546 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23547 | wxDateSpan *arg2 = 0 ; | |
23548 | wxDateTime *result; | |
23549 | PyObject * obj0 = 0 ; | |
23550 | PyObject * obj1 = 0 ; | |
23551 | char *kwnames[] = { | |
23552 | (char *) "self",(char *) "diff", NULL | |
23553 | }; | |
23554 | ||
23555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23556 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23557 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23558 | { | |
23559 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
23560 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23561 | if (arg2 == NULL) { | |
23562 | SWIG_null_ref("wxDateSpan"); | |
23563 | } | |
23564 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23565 | } |
23566 | { | |
23567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23568 | { | |
23569 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23570 | result = (wxDateTime *) &_result_ref; | |
23571 | } | |
23572 | ||
23573 | wxPyEndAllowThreads(__tstate); | |
23574 | if (PyErr_Occurred()) SWIG_fail; | |
23575 | } | |
23576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
23577 | return resultobj; | |
23578 | fail: | |
23579 | return NULL; | |
23580 | } | |
23581 | ||
23582 | ||
c32bde28 | 23583 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23584 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23585 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23586 | wxTimeSpan *arg2 = 0 ; | |
23587 | wxDateTime *result; | |
23588 | PyObject * obj0 = 0 ; | |
23589 | PyObject * obj1 = 0 ; | |
23590 | char *kwnames[] = { | |
23591 | (char *) "self",(char *) "diff", NULL | |
23592 | }; | |
23593 | ||
23594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23597 | { | |
23598 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
23599 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23600 | if (arg2 == NULL) { | |
23601 | SWIG_null_ref("wxTimeSpan"); | |
23602 | } | |
23603 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23604 | } |
23605 | { | |
23606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23607 | { | |
23608 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
23609 | result = (wxDateTime *) &_result_ref; | |
23610 | } | |
23611 | ||
23612 | wxPyEndAllowThreads(__tstate); | |
23613 | if (PyErr_Occurred()) SWIG_fail; | |
23614 | } | |
23615 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
23616 | return resultobj; | |
23617 | fail: | |
23618 | return NULL; | |
23619 | } | |
23620 | ||
23621 | ||
c32bde28 | 23622 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23623 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23624 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23625 | wxDateSpan *arg2 = 0 ; | |
23626 | wxDateTime *result; | |
23627 | PyObject * obj0 = 0 ; | |
23628 | PyObject * obj1 = 0 ; | |
23629 | char *kwnames[] = { | |
23630 | (char *) "self",(char *) "diff", NULL | |
23631 | }; | |
23632 | ||
23633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23634 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23636 | { | |
23637 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
23638 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23639 | if (arg2 == NULL) { | |
23640 | SWIG_null_ref("wxDateSpan"); | |
23641 | } | |
23642 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23643 | } |
23644 | { | |
23645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23646 | { | |
23647 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23648 | result = (wxDateTime *) &_result_ref; | |
23649 | } | |
23650 | ||
23651 | wxPyEndAllowThreads(__tstate); | |
23652 | if (PyErr_Occurred()) SWIG_fail; | |
23653 | } | |
23654 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
23655 | return resultobj; | |
23656 | fail: | |
23657 | return NULL; | |
23658 | } | |
23659 | ||
23660 | ||
c32bde28 | 23661 | static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 23662 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23663 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23664 | wxDateTime *arg2 = 0 ; | |
23665 | wxTimeSpan result; | |
23666 | PyObject * obj0 = 0 ; | |
23667 | PyObject * obj1 = 0 ; | |
23668 | char *kwnames[] = { | |
23669 | (char *) "self",(char *) "dt", NULL | |
23670 | }; | |
23671 | ||
23672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23675 | { | |
23676 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23677 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23678 | if (arg2 == NULL) { | |
23679 | SWIG_null_ref("wxDateTime"); | |
23680 | } | |
23681 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23682 | } |
23683 | { | |
23684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23685 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
23686 | ||
23687 | wxPyEndAllowThreads(__tstate); | |
23688 | if (PyErr_Occurred()) SWIG_fail; | |
23689 | } | |
23690 | { | |
23691 | wxTimeSpan * resultptr; | |
7449af73 | 23692 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
23693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
23694 | } | |
23695 | return resultobj; | |
23696 | fail: | |
23697 | return NULL; | |
23698 | } | |
23699 | ||
23700 | ||
c32bde28 | 23701 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) { |
7449af73 | 23702 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23703 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23704 | wxTimeSpan *arg2 = 0 ; | |
23705 | wxDateTime *result; | |
23706 | PyObject * obj0 = 0 ; | |
23707 | PyObject * obj1 = 0 ; | |
23708 | ||
23709 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23710 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
23711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23712 | { | |
23713 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
23714 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23715 | if (arg2 == NULL) { | |
23716 | SWIG_null_ref("wxTimeSpan"); | |
23717 | } | |
23718 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23719 | } |
23720 | { | |
23721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23722 | { | |
23723 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
23724 | result = (wxDateTime *) &_result_ref; | |
23725 | } | |
23726 | ||
23727 | wxPyEndAllowThreads(__tstate); | |
23728 | if (PyErr_Occurred()) SWIG_fail; | |
23729 | } | |
c32bde28 | 23730 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
23731 | return resultobj; |
23732 | fail: | |
23733 | return NULL; | |
23734 | } | |
23735 | ||
23736 | ||
c32bde28 | 23737 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) { |
7449af73 | 23738 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23739 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23740 | wxDateSpan *arg2 = 0 ; | |
23741 | wxDateTime *result; | |
23742 | PyObject * obj0 = 0 ; | |
23743 | PyObject * obj1 = 0 ; | |
23744 | ||
23745 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
23747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23748 | { | |
23749 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
23750 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23751 | if (arg2 == NULL) { | |
23752 | SWIG_null_ref("wxDateSpan"); | |
23753 | } | |
23754 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23755 | } |
23756 | { | |
23757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23758 | { | |
23759 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23760 | result = (wxDateTime *) &_result_ref; | |
23761 | } | |
23762 | ||
23763 | wxPyEndAllowThreads(__tstate); | |
23764 | if (PyErr_Occurred()) SWIG_fail; | |
23765 | } | |
c32bde28 | 23766 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
23767 | return resultobj; |
23768 | fail: | |
23769 | return NULL; | |
23770 | } | |
23771 | ||
23772 | ||
23773 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
23774 | int argc; | |
23775 | PyObject *argv[3]; | |
23776 | int ii; | |
23777 | ||
23778 | argc = PyObject_Length(args); | |
23779 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23780 | argv[ii] = PyTuple_GetItem(args,ii); | |
23781 | } | |
23782 | if (argc == 2) { | |
23783 | int _v; | |
23784 | { | |
23785 | void *ptr; | |
23786 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
23787 | _v = 0; | |
23788 | PyErr_Clear(); | |
23789 | } else { | |
23790 | _v = 1; | |
23791 | } | |
23792 | } | |
23793 | if (_v) { | |
23794 | { | |
093d3ff1 | 23795 | void *ptr = 0; |
d55e5bfc RD |
23796 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
23797 | _v = 0; | |
23798 | PyErr_Clear(); | |
23799 | } else { | |
093d3ff1 | 23800 | _v = (ptr != 0); |
d55e5bfc RD |
23801 | } |
23802 | } | |
23803 | if (_v) { | |
23804 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
23805 | } | |
23806 | } | |
23807 | } | |
23808 | if (argc == 2) { | |
23809 | int _v; | |
23810 | { | |
23811 | void *ptr; | |
23812 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
23813 | _v = 0; | |
23814 | PyErr_Clear(); | |
23815 | } else { | |
23816 | _v = 1; | |
23817 | } | |
23818 | } | |
23819 | if (_v) { | |
23820 | { | |
093d3ff1 | 23821 | void *ptr = 0; |
d55e5bfc RD |
23822 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
23823 | _v = 0; | |
23824 | PyErr_Clear(); | |
23825 | } else { | |
093d3ff1 | 23826 | _v = (ptr != 0); |
d55e5bfc RD |
23827 | } |
23828 | } | |
23829 | if (_v) { | |
23830 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
23831 | } | |
23832 | } | |
23833 | } | |
23834 | ||
093d3ff1 | 23835 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___iadd__'"); |
d55e5bfc RD |
23836 | return NULL; |
23837 | } | |
23838 | ||
23839 | ||
c32bde28 | 23840 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) { |
7449af73 | 23841 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23842 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23843 | wxTimeSpan *arg2 = 0 ; | |
23844 | wxDateTime *result; | |
23845 | PyObject * obj0 = 0 ; | |
23846 | PyObject * obj1 = 0 ; | |
23847 | ||
23848 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
23850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23851 | { | |
23852 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
23853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23854 | if (arg2 == NULL) { | |
23855 | SWIG_null_ref("wxTimeSpan"); | |
23856 | } | |
23857 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23858 | } |
23859 | { | |
23860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23861 | { | |
23862 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
23863 | result = (wxDateTime *) &_result_ref; | |
23864 | } | |
23865 | ||
23866 | wxPyEndAllowThreads(__tstate); | |
23867 | if (PyErr_Occurred()) SWIG_fail; | |
23868 | } | |
c32bde28 | 23869 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
23870 | return resultobj; |
23871 | fail: | |
23872 | return NULL; | |
23873 | } | |
23874 | ||
23875 | ||
c32bde28 | 23876 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) { |
7449af73 | 23877 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23878 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23879 | wxDateSpan *arg2 = 0 ; | |
23880 | wxDateTime *result; | |
23881 | PyObject * obj0 = 0 ; | |
23882 | PyObject * obj1 = 0 ; | |
23883 | ||
23884 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
23886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 23887 | { |
093d3ff1 RD |
23888 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
23889 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23890 | if (arg2 == NULL) { | |
23891 | SWIG_null_ref("wxDateSpan"); | |
23892 | } | |
23893 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23894 | } | |
23895 | { | |
23896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc RD |
23897 | { |
23898 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23899 | result = (wxDateTime *) &_result_ref; | |
23900 | } | |
23901 | ||
23902 | wxPyEndAllowThreads(__tstate); | |
23903 | if (PyErr_Occurred()) SWIG_fail; | |
23904 | } | |
c32bde28 | 23905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
23906 | return resultobj; |
23907 | fail: | |
23908 | return NULL; | |
23909 | } | |
23910 | ||
23911 | ||
23912 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
23913 | int argc; | |
23914 | PyObject *argv[3]; | |
23915 | int ii; | |
23916 | ||
23917 | argc = PyObject_Length(args); | |
23918 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23919 | argv[ii] = PyTuple_GetItem(args,ii); | |
23920 | } | |
23921 | if (argc == 2) { | |
23922 | int _v; | |
23923 | { | |
23924 | void *ptr; | |
23925 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
23926 | _v = 0; | |
23927 | PyErr_Clear(); | |
23928 | } else { | |
23929 | _v = 1; | |
23930 | } | |
23931 | } | |
23932 | if (_v) { | |
23933 | { | |
093d3ff1 | 23934 | void *ptr = 0; |
d55e5bfc RD |
23935 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
23936 | _v = 0; | |
23937 | PyErr_Clear(); | |
23938 | } else { | |
093d3ff1 | 23939 | _v = (ptr != 0); |
d55e5bfc RD |
23940 | } |
23941 | } | |
23942 | if (_v) { | |
23943 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
23944 | } | |
23945 | } | |
23946 | } | |
23947 | if (argc == 2) { | |
23948 | int _v; | |
23949 | { | |
23950 | void *ptr; | |
23951 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
23952 | _v = 0; | |
23953 | PyErr_Clear(); | |
23954 | } else { | |
23955 | _v = 1; | |
23956 | } | |
23957 | } | |
23958 | if (_v) { | |
23959 | { | |
093d3ff1 | 23960 | void *ptr = 0; |
d55e5bfc RD |
23961 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
23962 | _v = 0; | |
23963 | PyErr_Clear(); | |
23964 | } else { | |
093d3ff1 | 23965 | _v = (ptr != 0); |
d55e5bfc RD |
23966 | } |
23967 | } | |
23968 | if (_v) { | |
23969 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
23970 | } | |
23971 | } | |
23972 | } | |
23973 | ||
093d3ff1 | 23974 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___isub__'"); |
d55e5bfc RD |
23975 | return NULL; |
23976 | } | |
23977 | ||
23978 | ||
c32bde28 | 23979 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) { |
7449af73 | 23980 | PyObject *resultobj = NULL; |
d55e5bfc RD |
23981 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23982 | wxTimeSpan *arg2 = 0 ; | |
23983 | wxDateTime result; | |
23984 | PyObject * obj0 = 0 ; | |
23985 | PyObject * obj1 = 0 ; | |
23986 | ||
23987 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23990 | { | |
23991 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
23992 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23993 | if (arg2 == NULL) { | |
23994 | SWIG_null_ref("wxTimeSpan"); | |
23995 | } | |
23996 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23997 | } |
23998 | { | |
23999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24000 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
24001 | ||
24002 | wxPyEndAllowThreads(__tstate); | |
24003 | if (PyErr_Occurred()) SWIG_fail; | |
24004 | } | |
24005 | { | |
24006 | wxDateTime * resultptr; | |
7449af73 | 24007 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
24008 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
24009 | } | |
24010 | return resultobj; | |
24011 | fail: | |
24012 | return NULL; | |
24013 | } | |
24014 | ||
24015 | ||
c32bde28 | 24016 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) { |
7449af73 | 24017 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24018 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24019 | wxDateSpan *arg2 = 0 ; | |
24020 | wxDateTime result; | |
24021 | PyObject * obj0 = 0 ; | |
24022 | PyObject * obj1 = 0 ; | |
24023 | ||
24024 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24025 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24027 | { | |
24028 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
24029 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24030 | if (arg2 == NULL) { | |
24031 | SWIG_null_ref("wxDateSpan"); | |
24032 | } | |
24033 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24034 | } |
24035 | { | |
24036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24037 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
24038 | ||
24039 | wxPyEndAllowThreads(__tstate); | |
24040 | if (PyErr_Occurred()) SWIG_fail; | |
24041 | } | |
24042 | { | |
24043 | wxDateTime * resultptr; | |
7449af73 | 24044 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
24045 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
24046 | } | |
24047 | return resultobj; | |
24048 | fail: | |
24049 | return NULL; | |
24050 | } | |
24051 | ||
24052 | ||
24053 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
24054 | int argc; | |
24055 | PyObject *argv[3]; | |
24056 | int ii; | |
24057 | ||
24058 | argc = PyObject_Length(args); | |
24059 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24060 | argv[ii] = PyTuple_GetItem(args,ii); | |
24061 | } | |
24062 | if (argc == 2) { | |
24063 | int _v; | |
24064 | { | |
24065 | void *ptr; | |
24066 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
24067 | _v = 0; | |
24068 | PyErr_Clear(); | |
24069 | } else { | |
24070 | _v = 1; | |
24071 | } | |
24072 | } | |
24073 | if (_v) { | |
24074 | { | |
093d3ff1 | 24075 | void *ptr = 0; |
d55e5bfc RD |
24076 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
24077 | _v = 0; | |
24078 | PyErr_Clear(); | |
24079 | } else { | |
093d3ff1 | 24080 | _v = (ptr != 0); |
d55e5bfc RD |
24081 | } |
24082 | } | |
24083 | if (_v) { | |
24084 | return _wrap_DateTime___add____SWIG_0(self,args); | |
24085 | } | |
24086 | } | |
24087 | } | |
24088 | if (argc == 2) { | |
24089 | int _v; | |
24090 | { | |
24091 | void *ptr; | |
24092 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
24093 | _v = 0; | |
24094 | PyErr_Clear(); | |
24095 | } else { | |
24096 | _v = 1; | |
24097 | } | |
24098 | } | |
24099 | if (_v) { | |
24100 | { | |
093d3ff1 | 24101 | void *ptr = 0; |
d55e5bfc RD |
24102 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
24103 | _v = 0; | |
24104 | PyErr_Clear(); | |
24105 | } else { | |
093d3ff1 | 24106 | _v = (ptr != 0); |
d55e5bfc RD |
24107 | } |
24108 | } | |
24109 | if (_v) { | |
24110 | return _wrap_DateTime___add____SWIG_1(self,args); | |
24111 | } | |
24112 | } | |
24113 | } | |
24114 | ||
093d3ff1 RD |
24115 | Py_INCREF(Py_NotImplemented); |
24116 | return Py_NotImplemented; | |
d55e5bfc RD |
24117 | } |
24118 | ||
24119 | ||
c32bde28 | 24120 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) { |
7449af73 | 24121 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24122 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24123 | wxDateTime *arg2 = 0 ; | |
24124 | wxTimeSpan result; | |
24125 | PyObject * obj0 = 0 ; | |
24126 | PyObject * obj1 = 0 ; | |
24127 | ||
24128 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24129 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24131 | { | |
24132 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24133 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24134 | if (arg2 == NULL) { | |
24135 | SWIG_null_ref("wxDateTime"); | |
24136 | } | |
24137 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24138 | } |
24139 | { | |
24140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24141 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
24142 | ||
24143 | wxPyEndAllowThreads(__tstate); | |
24144 | if (PyErr_Occurred()) SWIG_fail; | |
24145 | } | |
24146 | { | |
24147 | wxTimeSpan * resultptr; | |
7449af73 | 24148 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
24149 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
24150 | } | |
24151 | return resultobj; | |
24152 | fail: | |
24153 | return NULL; | |
24154 | } | |
24155 | ||
24156 | ||
c32bde28 | 24157 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) { |
7449af73 | 24158 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24159 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24160 | wxTimeSpan *arg2 = 0 ; | |
24161 | wxDateTime result; | |
24162 | PyObject * obj0 = 0 ; | |
24163 | PyObject * obj1 = 0 ; | |
24164 | ||
24165 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24166 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24167 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24168 | { | |
24169 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24170 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24171 | if (arg2 == NULL) { | |
24172 | SWIG_null_ref("wxTimeSpan"); | |
24173 | } | |
24174 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24175 | } |
24176 | { | |
24177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24178 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
24179 | ||
24180 | wxPyEndAllowThreads(__tstate); | |
24181 | if (PyErr_Occurred()) SWIG_fail; | |
24182 | } | |
24183 | { | |
24184 | wxDateTime * resultptr; | |
7449af73 | 24185 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
24186 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
24187 | } | |
24188 | return resultobj; | |
24189 | fail: | |
24190 | return NULL; | |
24191 | } | |
24192 | ||
24193 | ||
c32bde28 | 24194 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) { |
7449af73 | 24195 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24196 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24197 | wxDateSpan *arg2 = 0 ; | |
24198 | wxDateTime result; | |
24199 | PyObject * obj0 = 0 ; | |
24200 | PyObject * obj1 = 0 ; | |
24201 | ||
24202 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24203 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24204 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24205 | { | |
24206 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
24207 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24208 | if (arg2 == NULL) { | |
24209 | SWIG_null_ref("wxDateSpan"); | |
24210 | } | |
24211 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24212 | } |
24213 | { | |
24214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24215 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
24216 | ||
24217 | wxPyEndAllowThreads(__tstate); | |
24218 | if (PyErr_Occurred()) SWIG_fail; | |
24219 | } | |
24220 | { | |
24221 | wxDateTime * resultptr; | |
7449af73 | 24222 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
d55e5bfc RD |
24223 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
24224 | } | |
24225 | return resultobj; | |
24226 | fail: | |
24227 | return NULL; | |
24228 | } | |
24229 | ||
24230 | ||
24231 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
24232 | int argc; | |
24233 | PyObject *argv[3]; | |
24234 | int ii; | |
24235 | ||
24236 | argc = PyObject_Length(args); | |
24237 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24238 | argv[ii] = PyTuple_GetItem(args,ii); | |
24239 | } | |
24240 | if (argc == 2) { | |
24241 | int _v; | |
24242 | { | |
24243 | void *ptr; | |
24244 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
24245 | _v = 0; | |
24246 | PyErr_Clear(); | |
24247 | } else { | |
24248 | _v = 1; | |
24249 | } | |
24250 | } | |
24251 | if (_v) { | |
24252 | { | |
093d3ff1 | 24253 | void *ptr = 0; |
d55e5bfc RD |
24254 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
24255 | _v = 0; | |
24256 | PyErr_Clear(); | |
24257 | } else { | |
093d3ff1 | 24258 | _v = (ptr != 0); |
d55e5bfc RD |
24259 | } |
24260 | } | |
24261 | if (_v) { | |
24262 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
24263 | } | |
24264 | } | |
24265 | } | |
24266 | if (argc == 2) { | |
24267 | int _v; | |
24268 | { | |
24269 | void *ptr; | |
24270 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
24271 | _v = 0; | |
24272 | PyErr_Clear(); | |
24273 | } else { | |
24274 | _v = 1; | |
24275 | } | |
24276 | } | |
24277 | if (_v) { | |
24278 | { | |
093d3ff1 | 24279 | void *ptr = 0; |
d55e5bfc RD |
24280 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
24281 | _v = 0; | |
24282 | PyErr_Clear(); | |
24283 | } else { | |
093d3ff1 | 24284 | _v = (ptr != 0); |
d55e5bfc RD |
24285 | } |
24286 | } | |
24287 | if (_v) { | |
24288 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
24289 | } | |
24290 | } | |
24291 | } | |
24292 | if (argc == 2) { | |
24293 | int _v; | |
24294 | { | |
24295 | void *ptr; | |
24296 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
24297 | _v = 0; | |
24298 | PyErr_Clear(); | |
24299 | } else { | |
24300 | _v = 1; | |
24301 | } | |
24302 | } | |
24303 | if (_v) { | |
24304 | { | |
093d3ff1 | 24305 | void *ptr = 0; |
d55e5bfc RD |
24306 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
24307 | _v = 0; | |
24308 | PyErr_Clear(); | |
24309 | } else { | |
093d3ff1 | 24310 | _v = (ptr != 0); |
d55e5bfc RD |
24311 | } |
24312 | } | |
24313 | if (_v) { | |
24314 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
24315 | } | |
24316 | } | |
24317 | } | |
24318 | ||
093d3ff1 RD |
24319 | Py_INCREF(Py_NotImplemented); |
24320 | return Py_NotImplemented; | |
d55e5bfc RD |
24321 | } |
24322 | ||
24323 | ||
fef4c27a | 24324 | static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24325 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24326 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24327 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
24328 | bool result; | |
24329 | PyObject * obj0 = 0 ; | |
24330 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24331 | char *kwnames[] = { |
24332 | (char *) "self",(char *) "other", NULL | |
24333 | }; | |
d55e5bfc | 24334 | |
fef4c27a | 24335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___lt__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24338 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24339 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24340 | { |
24341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24342 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
24343 | ||
24344 | wxPyEndAllowThreads(__tstate); | |
24345 | if (PyErr_Occurred()) SWIG_fail; | |
24346 | } | |
24347 | { | |
24348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24349 | } | |
24350 | return resultobj; | |
24351 | fail: | |
24352 | return NULL; | |
24353 | } | |
24354 | ||
24355 | ||
fef4c27a | 24356 | static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24357 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24358 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24359 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
24360 | bool result; | |
24361 | PyObject * obj0 = 0 ; | |
24362 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24363 | char *kwnames[] = { |
24364 | (char *) "self",(char *) "other", NULL | |
24365 | }; | |
d55e5bfc | 24366 | |
fef4c27a | 24367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___le__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24370 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24371 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24372 | { |
24373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24374 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
24375 | ||
24376 | wxPyEndAllowThreads(__tstate); | |
24377 | if (PyErr_Occurred()) SWIG_fail; | |
24378 | } | |
24379 | { | |
24380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24381 | } | |
24382 | return resultobj; | |
24383 | fail: | |
24384 | return NULL; | |
24385 | } | |
24386 | ||
24387 | ||
fef4c27a | 24388 | static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24389 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24390 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24391 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
24392 | bool result; | |
24393 | PyObject * obj0 = 0 ; | |
24394 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24395 | char *kwnames[] = { |
24396 | (char *) "self",(char *) "other", NULL | |
24397 | }; | |
d55e5bfc | 24398 | |
fef4c27a | 24399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___gt__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24402 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24403 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24404 | { |
24405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24406 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
24407 | ||
24408 | wxPyEndAllowThreads(__tstate); | |
24409 | if (PyErr_Occurred()) SWIG_fail; | |
24410 | } | |
24411 | { | |
24412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24413 | } | |
24414 | return resultobj; | |
24415 | fail: | |
24416 | return NULL; | |
24417 | } | |
24418 | ||
24419 | ||
fef4c27a | 24420 | static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24421 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24422 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24423 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
24424 | bool result; | |
24425 | PyObject * obj0 = 0 ; | |
24426 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24427 | char *kwnames[] = { |
24428 | (char *) "self",(char *) "other", NULL | |
24429 | }; | |
d55e5bfc | 24430 | |
fef4c27a | 24431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ge__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24434 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24435 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24436 | { |
24437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24438 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
24439 | ||
24440 | wxPyEndAllowThreads(__tstate); | |
24441 | if (PyErr_Occurred()) SWIG_fail; | |
24442 | } | |
24443 | { | |
24444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24445 | } | |
24446 | return resultobj; | |
24447 | fail: | |
24448 | return NULL; | |
24449 | } | |
24450 | ||
24451 | ||
fef4c27a | 24452 | static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24453 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24454 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24455 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
24456 | bool result; | |
24457 | PyObject * obj0 = 0 ; | |
24458 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24459 | char *kwnames[] = { |
24460 | (char *) "self",(char *) "other", NULL | |
24461 | }; | |
d55e5bfc | 24462 | |
fef4c27a | 24463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___eq__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24466 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24467 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24468 | { |
24469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24470 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
24471 | ||
24472 | wxPyEndAllowThreads(__tstate); | |
24473 | if (PyErr_Occurred()) SWIG_fail; | |
24474 | } | |
24475 | { | |
24476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24477 | } | |
24478 | return resultobj; | |
24479 | fail: | |
24480 | return NULL; | |
24481 | } | |
24482 | ||
24483 | ||
fef4c27a | 24484 | static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24485 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24486 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24487 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
24488 | bool result; | |
24489 | PyObject * obj0 = 0 ; | |
24490 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24491 | char *kwnames[] = { |
24492 | (char *) "self",(char *) "other", NULL | |
24493 | }; | |
d55e5bfc | 24494 | |
fef4c27a | 24495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ne__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24498 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24499 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24500 | { |
24501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24502 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
24503 | ||
24504 | wxPyEndAllowThreads(__tstate); | |
24505 | if (PyErr_Occurred()) SWIG_fail; | |
24506 | } | |
24507 | { | |
24508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24509 | } | |
24510 | return resultobj; | |
24511 | fail: | |
24512 | return NULL; | |
24513 | } | |
24514 | ||
24515 | ||
c32bde28 | 24516 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24517 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24518 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24519 | wxString *arg2 = 0 ; | |
24520 | int result; | |
ae8162c8 | 24521 | bool temp2 = false ; |
d55e5bfc RD |
24522 | PyObject * obj0 = 0 ; |
24523 | PyObject * obj1 = 0 ; | |
24524 | char *kwnames[] = { | |
24525 | (char *) "self",(char *) "date", NULL | |
24526 | }; | |
24527 | ||
24528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24531 | { |
24532 | arg2 = wxString_in_helper(obj1); | |
24533 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24534 | temp2 = true; |
d55e5bfc RD |
24535 | } |
24536 | { | |
24537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24538 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
24539 | ||
24540 | wxPyEndAllowThreads(__tstate); | |
24541 | if (PyErr_Occurred()) SWIG_fail; | |
24542 | } | |
093d3ff1 | 24543 | { |
7449af73 | 24544 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24545 | } |
d55e5bfc RD |
24546 | { |
24547 | if (temp2) | |
24548 | delete arg2; | |
24549 | } | |
24550 | return resultobj; | |
24551 | fail: | |
24552 | { | |
24553 | if (temp2) | |
24554 | delete arg2; | |
24555 | } | |
24556 | return NULL; | |
24557 | } | |
24558 | ||
24559 | ||
c32bde28 | 24560 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24561 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24562 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24563 | wxString *arg2 = 0 ; | |
fef4c27a | 24564 | wxString const &arg3_defvalue = wxPyDefaultDateTimeFormat ; |
d55e5bfc RD |
24565 | wxString *arg3 = (wxString *) &arg3_defvalue ; |
24566 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
24567 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
24568 | int result; | |
ae8162c8 RD |
24569 | bool temp2 = false ; |
24570 | bool temp3 = false ; | |
d55e5bfc RD |
24571 | PyObject * obj0 = 0 ; |
24572 | PyObject * obj1 = 0 ; | |
24573 | PyObject * obj2 = 0 ; | |
24574 | PyObject * obj3 = 0 ; | |
24575 | char *kwnames[] = { | |
24576 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
24577 | }; | |
24578 | ||
24579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
24580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24582 | { |
24583 | arg2 = wxString_in_helper(obj1); | |
24584 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24585 | temp2 = true; |
d55e5bfc RD |
24586 | } |
24587 | if (obj2) { | |
24588 | { | |
24589 | arg3 = wxString_in_helper(obj2); | |
24590 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 24591 | temp3 = true; |
d55e5bfc RD |
24592 | } |
24593 | } | |
24594 | if (obj3) { | |
093d3ff1 RD |
24595 | { |
24596 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24597 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24598 | if (arg4 == NULL) { | |
24599 | SWIG_null_ref("wxDateTime"); | |
24600 | } | |
24601 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
24602 | } |
24603 | } | |
24604 | { | |
24605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24606 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
24607 | ||
24608 | wxPyEndAllowThreads(__tstate); | |
24609 | if (PyErr_Occurred()) SWIG_fail; | |
24610 | } | |
093d3ff1 | 24611 | { |
7449af73 | 24612 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24613 | } |
d55e5bfc RD |
24614 | { |
24615 | if (temp2) | |
24616 | delete arg2; | |
24617 | } | |
24618 | { | |
24619 | if (temp3) | |
24620 | delete arg3; | |
24621 | } | |
24622 | return resultobj; | |
24623 | fail: | |
24624 | { | |
24625 | if (temp2) | |
24626 | delete arg2; | |
24627 | } | |
24628 | { | |
24629 | if (temp3) | |
24630 | delete arg3; | |
24631 | } | |
24632 | return NULL; | |
24633 | } | |
24634 | ||
24635 | ||
c32bde28 | 24636 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24637 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24638 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24639 | wxString *arg2 = 0 ; | |
24640 | int result; | |
ae8162c8 | 24641 | bool temp2 = false ; |
d55e5bfc RD |
24642 | PyObject * obj0 = 0 ; |
24643 | PyObject * obj1 = 0 ; | |
24644 | char *kwnames[] = { | |
24645 | (char *) "self",(char *) "datetime", NULL | |
24646 | }; | |
24647 | ||
24648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24651 | { |
24652 | arg2 = wxString_in_helper(obj1); | |
24653 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24654 | temp2 = true; |
d55e5bfc RD |
24655 | } |
24656 | { | |
24657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24658 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
24659 | ||
24660 | wxPyEndAllowThreads(__tstate); | |
24661 | if (PyErr_Occurred()) SWIG_fail; | |
24662 | } | |
093d3ff1 | 24663 | { |
7449af73 | 24664 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24665 | } |
d55e5bfc RD |
24666 | { |
24667 | if (temp2) | |
24668 | delete arg2; | |
24669 | } | |
24670 | return resultobj; | |
24671 | fail: | |
24672 | { | |
24673 | if (temp2) | |
24674 | delete arg2; | |
24675 | } | |
24676 | return NULL; | |
24677 | } | |
24678 | ||
24679 | ||
c32bde28 | 24680 | static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24681 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24682 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24683 | wxString *arg2 = 0 ; | |
24684 | int result; | |
ae8162c8 | 24685 | bool temp2 = false ; |
d55e5bfc RD |
24686 | PyObject * obj0 = 0 ; |
24687 | PyObject * obj1 = 0 ; | |
24688 | char *kwnames[] = { | |
24689 | (char *) "self",(char *) "date", NULL | |
24690 | }; | |
24691 | ||
24692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24695 | { |
24696 | arg2 = wxString_in_helper(obj1); | |
24697 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24698 | temp2 = true; |
d55e5bfc RD |
24699 | } |
24700 | { | |
24701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24702 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
24703 | ||
24704 | wxPyEndAllowThreads(__tstate); | |
24705 | if (PyErr_Occurred()) SWIG_fail; | |
24706 | } | |
093d3ff1 | 24707 | { |
7449af73 | 24708 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24709 | } |
d55e5bfc RD |
24710 | { |
24711 | if (temp2) | |
24712 | delete arg2; | |
24713 | } | |
24714 | return resultobj; | |
24715 | fail: | |
24716 | { | |
24717 | if (temp2) | |
24718 | delete arg2; | |
24719 | } | |
24720 | return NULL; | |
24721 | } | |
24722 | ||
24723 | ||
c32bde28 | 24724 | static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24725 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24726 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24727 | wxString *arg2 = 0 ; | |
24728 | int result; | |
ae8162c8 | 24729 | bool temp2 = false ; |
d55e5bfc RD |
24730 | PyObject * obj0 = 0 ; |
24731 | PyObject * obj1 = 0 ; | |
24732 | char *kwnames[] = { | |
24733 | (char *) "self",(char *) "time", NULL | |
24734 | }; | |
24735 | ||
24736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24739 | { |
24740 | arg2 = wxString_in_helper(obj1); | |
24741 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24742 | temp2 = true; |
d55e5bfc RD |
24743 | } |
24744 | { | |
24745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24746 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
24747 | ||
24748 | wxPyEndAllowThreads(__tstate); | |
24749 | if (PyErr_Occurred()) SWIG_fail; | |
24750 | } | |
093d3ff1 | 24751 | { |
7449af73 | 24752 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24753 | } |
d55e5bfc RD |
24754 | { |
24755 | if (temp2) | |
24756 | delete arg2; | |
24757 | } | |
24758 | return resultobj; | |
24759 | fail: | |
24760 | { | |
24761 | if (temp2) | |
24762 | delete arg2; | |
24763 | } | |
24764 | return NULL; | |
24765 | } | |
24766 | ||
24767 | ||
c32bde28 | 24768 | static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24769 | PyObject *resultobj = NULL; |
d55e5bfc | 24770 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
fef4c27a | 24771 | wxString const &arg2_defvalue = wxPyDefaultDateTimeFormat ; |
d55e5bfc RD |
24772 | wxString *arg2 = (wxString *) &arg2_defvalue ; |
24773 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
24774 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
24775 | wxString result; | |
ae8162c8 RD |
24776 | bool temp2 = false ; |
24777 | bool temp3 = false ; | |
d55e5bfc RD |
24778 | PyObject * obj0 = 0 ; |
24779 | PyObject * obj1 = 0 ; | |
24780 | PyObject * obj2 = 0 ; | |
24781 | char *kwnames[] = { | |
24782 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
24783 | }; | |
24784 | ||
24785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24788 | if (obj1) { |
24789 | { | |
24790 | arg2 = wxString_in_helper(obj1); | |
24791 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24792 | temp2 = true; |
d55e5bfc RD |
24793 | } |
24794 | } | |
24795 | if (obj2) { | |
24796 | { | |
24797 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 24798 | temp3 = true; |
d55e5bfc RD |
24799 | } |
24800 | } | |
24801 | { | |
24802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24803 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
24804 | ||
24805 | wxPyEndAllowThreads(__tstate); | |
24806 | if (PyErr_Occurred()) SWIG_fail; | |
24807 | } | |
24808 | { | |
24809 | #if wxUSE_UNICODE | |
24810 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24811 | #else | |
24812 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24813 | #endif | |
24814 | } | |
24815 | { | |
24816 | if (temp2) | |
24817 | delete arg2; | |
24818 | } | |
24819 | { | |
24820 | if (temp3) delete arg3; | |
24821 | } | |
24822 | return resultobj; | |
24823 | fail: | |
24824 | { | |
24825 | if (temp2) | |
24826 | delete arg2; | |
24827 | } | |
24828 | { | |
24829 | if (temp3) delete arg3; | |
24830 | } | |
24831 | return NULL; | |
24832 | } | |
24833 | ||
24834 | ||
c32bde28 | 24835 | static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24836 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24837 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24838 | wxString result; | |
24839 | PyObject * obj0 = 0 ; | |
24840 | char *kwnames[] = { | |
24841 | (char *) "self", NULL | |
24842 | }; | |
24843 | ||
24844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24847 | { |
24848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24849 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
24850 | ||
24851 | wxPyEndAllowThreads(__tstate); | |
24852 | if (PyErr_Occurred()) SWIG_fail; | |
24853 | } | |
24854 | { | |
24855 | #if wxUSE_UNICODE | |
24856 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24857 | #else | |
24858 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24859 | #endif | |
24860 | } | |
24861 | return resultobj; | |
24862 | fail: | |
24863 | return NULL; | |
24864 | } | |
24865 | ||
24866 | ||
c32bde28 | 24867 | static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24868 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24869 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24870 | wxString result; | |
24871 | PyObject * obj0 = 0 ; | |
24872 | char *kwnames[] = { | |
24873 | (char *) "self", NULL | |
24874 | }; | |
24875 | ||
24876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24879 | { |
24880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24881 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
24882 | ||
24883 | wxPyEndAllowThreads(__tstate); | |
24884 | if (PyErr_Occurred()) SWIG_fail; | |
24885 | } | |
24886 | { | |
24887 | #if wxUSE_UNICODE | |
24888 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24889 | #else | |
24890 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24891 | #endif | |
24892 | } | |
24893 | return resultobj; | |
24894 | fail: | |
24895 | return NULL; | |
24896 | } | |
24897 | ||
24898 | ||
c32bde28 | 24899 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24900 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24901 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24902 | wxString result; | |
24903 | PyObject * obj0 = 0 ; | |
24904 | char *kwnames[] = { | |
24905 | (char *) "self", NULL | |
24906 | }; | |
24907 | ||
24908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24909 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24910 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24911 | { |
24912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24913 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
24914 | ||
24915 | wxPyEndAllowThreads(__tstate); | |
24916 | if (PyErr_Occurred()) SWIG_fail; | |
24917 | } | |
24918 | { | |
24919 | #if wxUSE_UNICODE | |
24920 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24921 | #else | |
24922 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24923 | #endif | |
24924 | } | |
24925 | return resultobj; | |
24926 | fail: | |
24927 | return NULL; | |
24928 | } | |
24929 | ||
24930 | ||
c32bde28 | 24931 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24932 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24933 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24934 | wxString result; | |
24935 | PyObject * obj0 = 0 ; | |
24936 | char *kwnames[] = { | |
24937 | (char *) "self", NULL | |
24938 | }; | |
24939 | ||
24940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24943 | { |
24944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24945 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
24946 | ||
24947 | wxPyEndAllowThreads(__tstate); | |
24948 | if (PyErr_Occurred()) SWIG_fail; | |
24949 | } | |
24950 | { | |
24951 | #if wxUSE_UNICODE | |
24952 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24953 | #else | |
24954 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24955 | #endif | |
24956 | } | |
24957 | return resultobj; | |
24958 | fail: | |
24959 | return NULL; | |
24960 | } | |
24961 | ||
24962 | ||
c32bde28 | 24963 | static PyObject * DateTime_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24964 | PyObject *obj; |
24965 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24966 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
24967 | Py_INCREF(obj); | |
24968 | return Py_BuildValue((char *)""); | |
24969 | } | |
c32bde28 | 24970 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 24971 | PyObject *resultobj = NULL; |
d55e5bfc RD |
24972 | long arg1 ; |
24973 | wxTimeSpan result; | |
24974 | PyObject * obj0 = 0 ; | |
24975 | char *kwnames[] = { | |
24976 | (char *) "sec", NULL | |
24977 | }; | |
24978 | ||
24979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
093d3ff1 | 24980 | { |
7449af73 | 24981 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
24982 | if (SWIG_arg_fail(1)) SWIG_fail; |
24983 | } | |
d55e5bfc RD |
24984 | { |
24985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24986 | result = wxTimeSpan::Seconds(arg1); | |
24987 | ||
24988 | wxPyEndAllowThreads(__tstate); | |
24989 | if (PyErr_Occurred()) SWIG_fail; | |
24990 | } | |
24991 | { | |
24992 | wxTimeSpan * resultptr; | |
7449af73 | 24993 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
24994 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
24995 | } | |
24996 | return resultobj; | |
24997 | fail: | |
24998 | return NULL; | |
24999 | } | |
25000 | ||
25001 | ||
c32bde28 | 25002 | static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25003 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25004 | wxTimeSpan result; |
25005 | char *kwnames[] = { | |
25006 | NULL | |
25007 | }; | |
25008 | ||
25009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
25010 | { | |
25011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25012 | result = wxTimeSpan::Second(); | |
25013 | ||
25014 | wxPyEndAllowThreads(__tstate); | |
25015 | if (PyErr_Occurred()) SWIG_fail; | |
25016 | } | |
25017 | { | |
25018 | wxTimeSpan * resultptr; | |
7449af73 | 25019 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25020 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25021 | } | |
25022 | return resultobj; | |
25023 | fail: | |
25024 | return NULL; | |
25025 | } | |
25026 | ||
25027 | ||
c32bde28 | 25028 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25029 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25030 | long arg1 ; |
25031 | wxTimeSpan result; | |
25032 | PyObject * obj0 = 0 ; | |
25033 | char *kwnames[] = { | |
25034 | (char *) "min", NULL | |
25035 | }; | |
25036 | ||
25037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
093d3ff1 | 25038 | { |
7449af73 | 25039 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
25040 | if (SWIG_arg_fail(1)) SWIG_fail; |
25041 | } | |
d55e5bfc RD |
25042 | { |
25043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25044 | result = wxTimeSpan::Minutes(arg1); | |
25045 | ||
25046 | wxPyEndAllowThreads(__tstate); | |
25047 | if (PyErr_Occurred()) SWIG_fail; | |
25048 | } | |
25049 | { | |
25050 | wxTimeSpan * resultptr; | |
7449af73 | 25051 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25052 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25053 | } | |
25054 | return resultobj; | |
25055 | fail: | |
25056 | return NULL; | |
25057 | } | |
25058 | ||
25059 | ||
c32bde28 | 25060 | static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25061 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25062 | wxTimeSpan result; |
25063 | char *kwnames[] = { | |
25064 | NULL | |
25065 | }; | |
25066 | ||
25067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
25068 | { | |
25069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25070 | result = wxTimeSpan::Minute(); | |
25071 | ||
25072 | wxPyEndAllowThreads(__tstate); | |
25073 | if (PyErr_Occurred()) SWIG_fail; | |
25074 | } | |
25075 | { | |
25076 | wxTimeSpan * resultptr; | |
7449af73 | 25077 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25078 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25079 | } | |
25080 | return resultobj; | |
25081 | fail: | |
25082 | return NULL; | |
25083 | } | |
25084 | ||
25085 | ||
c32bde28 | 25086 | static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25087 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25088 | long arg1 ; |
25089 | wxTimeSpan result; | |
25090 | PyObject * obj0 = 0 ; | |
25091 | char *kwnames[] = { | |
25092 | (char *) "hours", NULL | |
25093 | }; | |
25094 | ||
25095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
093d3ff1 | 25096 | { |
7449af73 | 25097 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
25098 | if (SWIG_arg_fail(1)) SWIG_fail; |
25099 | } | |
d55e5bfc RD |
25100 | { |
25101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25102 | result = wxTimeSpan::Hours(arg1); | |
25103 | ||
25104 | wxPyEndAllowThreads(__tstate); | |
25105 | if (PyErr_Occurred()) SWIG_fail; | |
25106 | } | |
25107 | { | |
25108 | wxTimeSpan * resultptr; | |
7449af73 | 25109 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25110 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25111 | } | |
25112 | return resultobj; | |
25113 | fail: | |
25114 | return NULL; | |
25115 | } | |
25116 | ||
25117 | ||
c32bde28 | 25118 | static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25119 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25120 | wxTimeSpan result; |
25121 | char *kwnames[] = { | |
25122 | NULL | |
25123 | }; | |
25124 | ||
25125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
25126 | { | |
25127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25128 | result = wxTimeSpan::Hour(); | |
25129 | ||
25130 | wxPyEndAllowThreads(__tstate); | |
25131 | if (PyErr_Occurred()) SWIG_fail; | |
25132 | } | |
25133 | { | |
25134 | wxTimeSpan * resultptr; | |
7449af73 | 25135 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25136 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25137 | } | |
25138 | return resultobj; | |
25139 | fail: | |
25140 | return NULL; | |
25141 | } | |
25142 | ||
25143 | ||
c32bde28 | 25144 | static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25145 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25146 | long arg1 ; |
25147 | wxTimeSpan result; | |
25148 | PyObject * obj0 = 0 ; | |
25149 | char *kwnames[] = { | |
25150 | (char *) "days", NULL | |
25151 | }; | |
25152 | ||
25153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
093d3ff1 | 25154 | { |
7449af73 | 25155 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
25156 | if (SWIG_arg_fail(1)) SWIG_fail; |
25157 | } | |
d55e5bfc RD |
25158 | { |
25159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25160 | result = wxTimeSpan::Days(arg1); | |
25161 | ||
25162 | wxPyEndAllowThreads(__tstate); | |
25163 | if (PyErr_Occurred()) SWIG_fail; | |
25164 | } | |
25165 | { | |
25166 | wxTimeSpan * resultptr; | |
7449af73 | 25167 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25168 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25169 | } | |
25170 | return resultobj; | |
25171 | fail: | |
25172 | return NULL; | |
25173 | } | |
25174 | ||
25175 | ||
c32bde28 | 25176 | static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25177 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25178 | wxTimeSpan result; |
25179 | char *kwnames[] = { | |
25180 | NULL | |
25181 | }; | |
25182 | ||
25183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
25184 | { | |
25185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25186 | result = wxTimeSpan::Day(); | |
25187 | ||
25188 | wxPyEndAllowThreads(__tstate); | |
25189 | if (PyErr_Occurred()) SWIG_fail; | |
25190 | } | |
25191 | { | |
25192 | wxTimeSpan * resultptr; | |
7449af73 | 25193 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25194 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25195 | } | |
25196 | return resultobj; | |
25197 | fail: | |
25198 | return NULL; | |
25199 | } | |
25200 | ||
25201 | ||
c32bde28 | 25202 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25203 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25204 | long arg1 ; |
25205 | wxTimeSpan result; | |
25206 | PyObject * obj0 = 0 ; | |
25207 | char *kwnames[] = { | |
25208 | (char *) "days", NULL | |
25209 | }; | |
25210 | ||
25211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
093d3ff1 | 25212 | { |
7449af73 | 25213 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
25214 | if (SWIG_arg_fail(1)) SWIG_fail; |
25215 | } | |
d55e5bfc RD |
25216 | { |
25217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25218 | result = wxTimeSpan::Weeks(arg1); | |
25219 | ||
25220 | wxPyEndAllowThreads(__tstate); | |
25221 | if (PyErr_Occurred()) SWIG_fail; | |
25222 | } | |
25223 | { | |
25224 | wxTimeSpan * resultptr; | |
7449af73 | 25225 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25226 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25227 | } | |
25228 | return resultobj; | |
25229 | fail: | |
25230 | return NULL; | |
25231 | } | |
25232 | ||
25233 | ||
c32bde28 | 25234 | static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25235 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25236 | wxTimeSpan result; |
25237 | char *kwnames[] = { | |
25238 | NULL | |
25239 | }; | |
25240 | ||
25241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
25242 | { | |
25243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25244 | result = wxTimeSpan::Week(); | |
25245 | ||
25246 | wxPyEndAllowThreads(__tstate); | |
25247 | if (PyErr_Occurred()) SWIG_fail; | |
25248 | } | |
25249 | { | |
25250 | wxTimeSpan * resultptr; | |
7449af73 | 25251 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25252 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25253 | } | |
25254 | return resultobj; | |
25255 | fail: | |
25256 | return NULL; | |
25257 | } | |
25258 | ||
25259 | ||
c32bde28 | 25260 | static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25261 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25262 | long arg1 = (long) 0 ; |
25263 | long arg2 = (long) 0 ; | |
25264 | long arg3 = (long) 0 ; | |
25265 | long arg4 = (long) 0 ; | |
25266 | wxTimeSpan *result; | |
25267 | PyObject * obj0 = 0 ; | |
25268 | PyObject * obj1 = 0 ; | |
25269 | PyObject * obj2 = 0 ; | |
25270 | PyObject * obj3 = 0 ; | |
25271 | char *kwnames[] = { | |
25272 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
25273 | }; | |
25274 | ||
25275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25276 | if (obj0) { | |
093d3ff1 | 25277 | { |
7449af73 | 25278 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
25279 | if (SWIG_arg_fail(1)) SWIG_fail; |
25280 | } | |
d55e5bfc RD |
25281 | } |
25282 | if (obj1) { | |
093d3ff1 | 25283 | { |
7449af73 | 25284 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25285 | if (SWIG_arg_fail(2)) SWIG_fail; |
25286 | } | |
d55e5bfc RD |
25287 | } |
25288 | if (obj2) { | |
093d3ff1 | 25289 | { |
7449af73 | 25290 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
25291 | if (SWIG_arg_fail(3)) SWIG_fail; |
25292 | } | |
d55e5bfc RD |
25293 | } |
25294 | if (obj3) { | |
093d3ff1 | 25295 | { |
7449af73 | 25296 | arg4 = static_cast<long >(SWIG_As_long(obj3)); |
093d3ff1 RD |
25297 | if (SWIG_arg_fail(4)) SWIG_fail; |
25298 | } | |
d55e5bfc RD |
25299 | } |
25300 | { | |
25301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25302 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
25303 | ||
25304 | wxPyEndAllowThreads(__tstate); | |
25305 | if (PyErr_Occurred()) SWIG_fail; | |
25306 | } | |
25307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
25308 | return resultobj; | |
25309 | fail: | |
25310 | return NULL; | |
25311 | } | |
25312 | ||
25313 | ||
c32bde28 | 25314 | static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25315 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25316 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25317 | PyObject * obj0 = 0 ; | |
25318 | char *kwnames[] = { | |
25319 | (char *) "self", NULL | |
25320 | }; | |
25321 | ||
25322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25323 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25324 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25325 | { |
25326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25327 | delete arg1; | |
25328 | ||
25329 | wxPyEndAllowThreads(__tstate); | |
25330 | if (PyErr_Occurred()) SWIG_fail; | |
25331 | } | |
25332 | Py_INCREF(Py_None); resultobj = Py_None; | |
25333 | return resultobj; | |
25334 | fail: | |
25335 | return NULL; | |
25336 | } | |
25337 | ||
25338 | ||
c32bde28 | 25339 | static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25340 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25341 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25342 | wxTimeSpan *arg2 = 0 ; | |
25343 | wxTimeSpan *result; | |
25344 | PyObject * obj0 = 0 ; | |
25345 | PyObject * obj1 = 0 ; | |
25346 | char *kwnames[] = { | |
25347 | (char *) "self",(char *) "diff", NULL | |
25348 | }; | |
25349 | ||
25350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25353 | { | |
25354 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25355 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25356 | if (arg2 == NULL) { | |
25357 | SWIG_null_ref("wxTimeSpan"); | |
25358 | } | |
25359 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25360 | } |
25361 | { | |
25362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25363 | { | |
25364 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
25365 | result = (wxTimeSpan *) &_result_ref; | |
25366 | } | |
25367 | ||
25368 | wxPyEndAllowThreads(__tstate); | |
25369 | if (PyErr_Occurred()) SWIG_fail; | |
25370 | } | |
25371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
25372 | return resultobj; | |
25373 | fail: | |
25374 | return NULL; | |
25375 | } | |
25376 | ||
25377 | ||
c32bde28 | 25378 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25379 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25380 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25381 | wxTimeSpan *arg2 = 0 ; | |
25382 | wxTimeSpan *result; | |
25383 | PyObject * obj0 = 0 ; | |
25384 | PyObject * obj1 = 0 ; | |
25385 | char *kwnames[] = { | |
25386 | (char *) "self",(char *) "diff", NULL | |
25387 | }; | |
25388 | ||
25389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25392 | { | |
25393 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25394 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25395 | if (arg2 == NULL) { | |
25396 | SWIG_null_ref("wxTimeSpan"); | |
25397 | } | |
25398 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25399 | } |
25400 | { | |
25401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25402 | { | |
25403 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
25404 | result = (wxTimeSpan *) &_result_ref; | |
25405 | } | |
25406 | ||
25407 | wxPyEndAllowThreads(__tstate); | |
25408 | if (PyErr_Occurred()) SWIG_fail; | |
25409 | } | |
25410 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
25411 | return resultobj; | |
25412 | fail: | |
25413 | return NULL; | |
25414 | } | |
25415 | ||
25416 | ||
c32bde28 | 25417 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25418 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25419 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25420 | int arg2 ; | |
25421 | wxTimeSpan *result; | |
25422 | PyObject * obj0 = 0 ; | |
25423 | PyObject * obj1 = 0 ; | |
25424 | char *kwnames[] = { | |
25425 | (char *) "self",(char *) "n", NULL | |
25426 | }; | |
25427 | ||
25428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25431 | { | |
7449af73 | 25432 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25433 | if (SWIG_arg_fail(2)) SWIG_fail; |
25434 | } | |
d55e5bfc RD |
25435 | { |
25436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25437 | { | |
25438 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
25439 | result = (wxTimeSpan *) &_result_ref; | |
25440 | } | |
25441 | ||
25442 | wxPyEndAllowThreads(__tstate); | |
25443 | if (PyErr_Occurred()) SWIG_fail; | |
25444 | } | |
25445 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
25446 | return resultobj; | |
25447 | fail: | |
25448 | return NULL; | |
25449 | } | |
25450 | ||
25451 | ||
c32bde28 | 25452 | static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25453 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25454 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25455 | wxTimeSpan *result; | |
25456 | PyObject * obj0 = 0 ; | |
25457 | char *kwnames[] = { | |
25458 | (char *) "self", NULL | |
25459 | }; | |
25460 | ||
25461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25464 | { |
25465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25466 | { | |
25467 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
25468 | result = (wxTimeSpan *) &_result_ref; | |
25469 | } | |
25470 | ||
25471 | wxPyEndAllowThreads(__tstate); | |
25472 | if (PyErr_Occurred()) SWIG_fail; | |
25473 | } | |
25474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
25475 | return resultobj; | |
25476 | fail: | |
25477 | return NULL; | |
25478 | } | |
25479 | ||
25480 | ||
c32bde28 | 25481 | static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25482 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25483 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25484 | wxTimeSpan result; | |
25485 | PyObject * obj0 = 0 ; | |
25486 | char *kwnames[] = { | |
25487 | (char *) "self", NULL | |
25488 | }; | |
25489 | ||
25490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25491 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25493 | { |
25494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25495 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
25496 | ||
25497 | wxPyEndAllowThreads(__tstate); | |
25498 | if (PyErr_Occurred()) SWIG_fail; | |
25499 | } | |
25500 | { | |
25501 | wxTimeSpan * resultptr; | |
7449af73 | 25502 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25503 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25504 | } | |
25505 | return resultobj; | |
25506 | fail: | |
25507 | return NULL; | |
25508 | } | |
25509 | ||
25510 | ||
c32bde28 | 25511 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25512 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25513 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25514 | wxTimeSpan *arg2 = 0 ; | |
25515 | wxTimeSpan *result; | |
25516 | PyObject * obj0 = 0 ; | |
25517 | PyObject * obj1 = 0 ; | |
25518 | char *kwnames[] = { | |
25519 | (char *) "self",(char *) "diff", NULL | |
25520 | }; | |
25521 | ||
25522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25523 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
25524 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25525 | { | |
25526 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25527 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25528 | if (arg2 == NULL) { | |
25529 | SWIG_null_ref("wxTimeSpan"); | |
25530 | } | |
25531 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25532 | } |
25533 | { | |
25534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25535 | { | |
25536 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
25537 | result = (wxTimeSpan *) &_result_ref; | |
25538 | } | |
25539 | ||
25540 | wxPyEndAllowThreads(__tstate); | |
25541 | if (PyErr_Occurred()) SWIG_fail; | |
25542 | } | |
c32bde28 | 25543 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
25544 | return resultobj; |
25545 | fail: | |
25546 | return NULL; | |
25547 | } | |
25548 | ||
25549 | ||
c32bde28 | 25550 | static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25551 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25552 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25553 | wxTimeSpan *arg2 = 0 ; | |
25554 | wxTimeSpan *result; | |
25555 | PyObject * obj0 = 0 ; | |
25556 | PyObject * obj1 = 0 ; | |
25557 | char *kwnames[] = { | |
25558 | (char *) "self",(char *) "diff", NULL | |
25559 | }; | |
25560 | ||
25561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25562 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
25563 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25564 | { | |
25565 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25566 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25567 | if (arg2 == NULL) { | |
25568 | SWIG_null_ref("wxTimeSpan"); | |
25569 | } | |
25570 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25571 | } |
25572 | { | |
25573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25574 | { | |
25575 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
25576 | result = (wxTimeSpan *) &_result_ref; | |
25577 | } | |
25578 | ||
25579 | wxPyEndAllowThreads(__tstate); | |
25580 | if (PyErr_Occurred()) SWIG_fail; | |
25581 | } | |
c32bde28 | 25582 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
25583 | return resultobj; |
25584 | fail: | |
25585 | return NULL; | |
25586 | } | |
25587 | ||
25588 | ||
c32bde28 | 25589 | static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25590 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25591 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25592 | int arg2 ; | |
25593 | wxTimeSpan *result; | |
25594 | PyObject * obj0 = 0 ; | |
25595 | PyObject * obj1 = 0 ; | |
25596 | char *kwnames[] = { | |
25597 | (char *) "self",(char *) "n", NULL | |
25598 | }; | |
25599 | ||
25600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
25602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25603 | { | |
7449af73 | 25604 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25605 | if (SWIG_arg_fail(2)) SWIG_fail; |
25606 | } | |
d55e5bfc RD |
25607 | { |
25608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25609 | { | |
25610 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
25611 | result = (wxTimeSpan *) &_result_ref; | |
25612 | } | |
25613 | ||
25614 | wxPyEndAllowThreads(__tstate); | |
25615 | if (PyErr_Occurred()) SWIG_fail; | |
25616 | } | |
c32bde28 | 25617 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
25618 | return resultobj; |
25619 | fail: | |
25620 | return NULL; | |
25621 | } | |
25622 | ||
25623 | ||
c32bde28 | 25624 | static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25625 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25626 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25627 | wxTimeSpan *result; | |
25628 | PyObject * obj0 = 0 ; | |
25629 | char *kwnames[] = { | |
25630 | (char *) "self", NULL | |
25631 | }; | |
25632 | ||
25633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25634 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25636 | { |
25637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25638 | { | |
25639 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
25640 | result = (wxTimeSpan *) &_result_ref; | |
25641 | } | |
25642 | ||
25643 | wxPyEndAllowThreads(__tstate); | |
25644 | if (PyErr_Occurred()) SWIG_fail; | |
25645 | } | |
25646 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
25647 | return resultobj; | |
25648 | fail: | |
25649 | return NULL; | |
25650 | } | |
25651 | ||
25652 | ||
c32bde28 | 25653 | static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25654 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25655 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25656 | wxTimeSpan *arg2 = 0 ; | |
25657 | wxTimeSpan result; | |
25658 | PyObject * obj0 = 0 ; | |
25659 | PyObject * obj1 = 0 ; | |
25660 | char *kwnames[] = { | |
25661 | (char *) "self",(char *) "other", NULL | |
25662 | }; | |
25663 | ||
25664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25665 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25666 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25667 | { | |
25668 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25669 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25670 | if (arg2 == NULL) { | |
25671 | SWIG_null_ref("wxTimeSpan"); | |
25672 | } | |
25673 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25674 | } |
25675 | { | |
25676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25677 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
25678 | ||
25679 | wxPyEndAllowThreads(__tstate); | |
25680 | if (PyErr_Occurred()) SWIG_fail; | |
25681 | } | |
25682 | { | |
25683 | wxTimeSpan * resultptr; | |
7449af73 | 25684 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25685 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25686 | } | |
25687 | return resultobj; | |
25688 | fail: | |
25689 | return NULL; | |
25690 | } | |
25691 | ||
25692 | ||
c32bde28 | 25693 | static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25694 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25695 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25696 | wxTimeSpan *arg2 = 0 ; | |
25697 | wxTimeSpan result; | |
25698 | PyObject * obj0 = 0 ; | |
25699 | PyObject * obj1 = 0 ; | |
25700 | char *kwnames[] = { | |
25701 | (char *) "self",(char *) "other", NULL | |
25702 | }; | |
25703 | ||
25704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25707 | { | |
25708 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25709 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25710 | if (arg2 == NULL) { | |
25711 | SWIG_null_ref("wxTimeSpan"); | |
25712 | } | |
25713 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25714 | } |
25715 | { | |
25716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25717 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
25718 | ||
25719 | wxPyEndAllowThreads(__tstate); | |
25720 | if (PyErr_Occurred()) SWIG_fail; | |
25721 | } | |
25722 | { | |
25723 | wxTimeSpan * resultptr; | |
7449af73 | 25724 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25725 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25726 | } | |
25727 | return resultobj; | |
25728 | fail: | |
25729 | return NULL; | |
25730 | } | |
25731 | ||
25732 | ||
c32bde28 | 25733 | static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25734 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25735 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25736 | int arg2 ; | |
25737 | wxTimeSpan result; | |
25738 | PyObject * obj0 = 0 ; | |
25739 | PyObject * obj1 = 0 ; | |
25740 | char *kwnames[] = { | |
25741 | (char *) "self",(char *) "n", NULL | |
25742 | }; | |
25743 | ||
25744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25745 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25746 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25747 | { | |
7449af73 | 25748 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25749 | if (SWIG_arg_fail(2)) SWIG_fail; |
25750 | } | |
d55e5bfc RD |
25751 | { |
25752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25753 | result = wxTimeSpan___mul__(arg1,arg2); | |
25754 | ||
25755 | wxPyEndAllowThreads(__tstate); | |
25756 | if (PyErr_Occurred()) SWIG_fail; | |
25757 | } | |
25758 | { | |
25759 | wxTimeSpan * resultptr; | |
7449af73 | 25760 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25761 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25762 | } | |
25763 | return resultobj; | |
25764 | fail: | |
25765 | return NULL; | |
25766 | } | |
25767 | ||
25768 | ||
c32bde28 | 25769 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25770 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25771 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25772 | int arg2 ; | |
25773 | wxTimeSpan result; | |
25774 | PyObject * obj0 = 0 ; | |
25775 | PyObject * obj1 = 0 ; | |
25776 | char *kwnames[] = { | |
25777 | (char *) "self",(char *) "n", NULL | |
25778 | }; | |
25779 | ||
25780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25781 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25782 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25783 | { | |
7449af73 | 25784 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25785 | if (SWIG_arg_fail(2)) SWIG_fail; |
25786 | } | |
d55e5bfc RD |
25787 | { |
25788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25789 | result = wxTimeSpan___rmul__(arg1,arg2); | |
25790 | ||
25791 | wxPyEndAllowThreads(__tstate); | |
25792 | if (PyErr_Occurred()) SWIG_fail; | |
25793 | } | |
25794 | { | |
25795 | wxTimeSpan * resultptr; | |
7449af73 | 25796 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
d55e5bfc RD |
25797 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
25798 | } | |
25799 | return resultobj; | |
25800 | fail: | |
25801 | return NULL; | |
25802 | } | |
25803 | ||
25804 | ||
c32bde28 | 25805 | static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25806 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25807 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25808 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
25809 | bool result; | |
25810 | PyObject * obj0 = 0 ; | |
25811 | PyObject * obj1 = 0 ; | |
25812 | char *kwnames[] = { | |
25813 | (char *) "self",(char *) "other", NULL | |
25814 | }; | |
25815 | ||
25816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25819 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25820 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25821 | { |
25822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25823 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
25824 | ||
25825 | wxPyEndAllowThreads(__tstate); | |
25826 | if (PyErr_Occurred()) SWIG_fail; | |
25827 | } | |
25828 | { | |
25829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25830 | } | |
25831 | return resultobj; | |
25832 | fail: | |
25833 | return NULL; | |
25834 | } | |
25835 | ||
25836 | ||
c32bde28 | 25837 | static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25838 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25839 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25840 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
25841 | bool result; | |
25842 | PyObject * obj0 = 0 ; | |
25843 | PyObject * obj1 = 0 ; | |
25844 | char *kwnames[] = { | |
25845 | (char *) "self",(char *) "other", NULL | |
25846 | }; | |
25847 | ||
25848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25851 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25852 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25853 | { |
25854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25855 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
25856 | ||
25857 | wxPyEndAllowThreads(__tstate); | |
25858 | if (PyErr_Occurred()) SWIG_fail; | |
25859 | } | |
25860 | { | |
25861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25862 | } | |
25863 | return resultobj; | |
25864 | fail: | |
25865 | return NULL; | |
25866 | } | |
25867 | ||
25868 | ||
c32bde28 | 25869 | static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25870 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25871 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25872 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
25873 | bool result; | |
25874 | PyObject * obj0 = 0 ; | |
25875 | PyObject * obj1 = 0 ; | |
25876 | char *kwnames[] = { | |
25877 | (char *) "self",(char *) "other", NULL | |
25878 | }; | |
25879 | ||
25880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25883 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25884 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25885 | { |
25886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25887 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
25888 | ||
25889 | wxPyEndAllowThreads(__tstate); | |
25890 | if (PyErr_Occurred()) SWIG_fail; | |
25891 | } | |
25892 | { | |
25893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25894 | } | |
25895 | return resultobj; | |
25896 | fail: | |
25897 | return NULL; | |
25898 | } | |
25899 | ||
25900 | ||
c32bde28 | 25901 | static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25902 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25903 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25904 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
25905 | bool result; | |
25906 | PyObject * obj0 = 0 ; | |
25907 | PyObject * obj1 = 0 ; | |
25908 | char *kwnames[] = { | |
25909 | (char *) "self",(char *) "other", NULL | |
25910 | }; | |
25911 | ||
25912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25915 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25916 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25917 | { |
25918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25919 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
25920 | ||
25921 | wxPyEndAllowThreads(__tstate); | |
25922 | if (PyErr_Occurred()) SWIG_fail; | |
25923 | } | |
25924 | { | |
25925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25926 | } | |
25927 | return resultobj; | |
25928 | fail: | |
25929 | return NULL; | |
25930 | } | |
25931 | ||
25932 | ||
c32bde28 | 25933 | static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25934 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25935 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25936 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
25937 | bool result; | |
25938 | PyObject * obj0 = 0 ; | |
25939 | PyObject * obj1 = 0 ; | |
25940 | char *kwnames[] = { | |
25941 | (char *) "self",(char *) "other", NULL | |
25942 | }; | |
25943 | ||
25944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25947 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25948 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25949 | { |
25950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25951 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
25952 | ||
25953 | wxPyEndAllowThreads(__tstate); | |
25954 | if (PyErr_Occurred()) SWIG_fail; | |
25955 | } | |
25956 | { | |
25957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25958 | } | |
25959 | return resultobj; | |
25960 | fail: | |
25961 | return NULL; | |
25962 | } | |
25963 | ||
25964 | ||
c32bde28 | 25965 | static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25966 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25967 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25968 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
25969 | bool result; | |
25970 | PyObject * obj0 = 0 ; | |
25971 | PyObject * obj1 = 0 ; | |
25972 | char *kwnames[] = { | |
25973 | (char *) "self",(char *) "other", NULL | |
25974 | }; | |
25975 | ||
25976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25979 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25980 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25981 | { |
25982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25983 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
25984 | ||
25985 | wxPyEndAllowThreads(__tstate); | |
25986 | if (PyErr_Occurred()) SWIG_fail; | |
25987 | } | |
25988 | { | |
25989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25990 | } | |
25991 | return resultobj; | |
25992 | fail: | |
25993 | return NULL; | |
25994 | } | |
25995 | ||
25996 | ||
c32bde28 | 25997 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 25998 | PyObject *resultobj = NULL; |
d55e5bfc RD |
25999 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26000 | bool result; | |
26001 | PyObject * obj0 = 0 ; | |
26002 | char *kwnames[] = { | |
26003 | (char *) "self", NULL | |
26004 | }; | |
26005 | ||
26006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26009 | { |
26010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26011 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
26012 | ||
26013 | wxPyEndAllowThreads(__tstate); | |
26014 | if (PyErr_Occurred()) SWIG_fail; | |
26015 | } | |
26016 | { | |
26017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26018 | } | |
26019 | return resultobj; | |
26020 | fail: | |
26021 | return NULL; | |
26022 | } | |
26023 | ||
26024 | ||
c32bde28 | 26025 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26026 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26027 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26028 | bool result; | |
26029 | PyObject * obj0 = 0 ; | |
26030 | char *kwnames[] = { | |
26031 | (char *) "self", NULL | |
26032 | }; | |
26033 | ||
26034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26035 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26037 | { |
26038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26039 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
26040 | ||
26041 | wxPyEndAllowThreads(__tstate); | |
26042 | if (PyErr_Occurred()) SWIG_fail; | |
26043 | } | |
26044 | { | |
26045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26046 | } | |
26047 | return resultobj; | |
26048 | fail: | |
26049 | return NULL; | |
26050 | } | |
26051 | ||
26052 | ||
c32bde28 | 26053 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26054 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26055 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26056 | bool result; | |
26057 | PyObject * obj0 = 0 ; | |
26058 | char *kwnames[] = { | |
26059 | (char *) "self", NULL | |
26060 | }; | |
26061 | ||
26062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26063 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26064 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26065 | { |
26066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26067 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
26068 | ||
26069 | wxPyEndAllowThreads(__tstate); | |
26070 | if (PyErr_Occurred()) SWIG_fail; | |
26071 | } | |
26072 | { | |
26073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26074 | } | |
26075 | return resultobj; | |
26076 | fail: | |
26077 | return NULL; | |
26078 | } | |
26079 | ||
26080 | ||
c32bde28 | 26081 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26082 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26083 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26084 | wxTimeSpan *arg2 = 0 ; | |
26085 | bool result; | |
26086 | PyObject * obj0 = 0 ; | |
26087 | PyObject * obj1 = 0 ; | |
26088 | char *kwnames[] = { | |
26089 | (char *) "self",(char *) "ts", NULL | |
26090 | }; | |
26091 | ||
26092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26095 | { | |
26096 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
26097 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26098 | if (arg2 == NULL) { | |
26099 | SWIG_null_ref("wxTimeSpan"); | |
26100 | } | |
26101 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26102 | } |
26103 | { | |
26104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26105 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
26106 | ||
26107 | wxPyEndAllowThreads(__tstate); | |
26108 | if (PyErr_Occurred()) SWIG_fail; | |
26109 | } | |
26110 | { | |
26111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26112 | } | |
26113 | return resultobj; | |
26114 | fail: | |
26115 | return NULL; | |
26116 | } | |
26117 | ||
26118 | ||
c32bde28 | 26119 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26120 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26121 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26122 | wxTimeSpan *arg2 = 0 ; | |
26123 | bool result; | |
26124 | PyObject * obj0 = 0 ; | |
26125 | PyObject * obj1 = 0 ; | |
26126 | char *kwnames[] = { | |
26127 | (char *) "self",(char *) "ts", NULL | |
26128 | }; | |
26129 | ||
26130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26133 | { | |
26134 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
26135 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26136 | if (arg2 == NULL) { | |
26137 | SWIG_null_ref("wxTimeSpan"); | |
26138 | } | |
26139 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26140 | } |
26141 | { | |
26142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26143 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
26144 | ||
26145 | wxPyEndAllowThreads(__tstate); | |
26146 | if (PyErr_Occurred()) SWIG_fail; | |
26147 | } | |
26148 | { | |
26149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26150 | } | |
26151 | return resultobj; | |
26152 | fail: | |
26153 | return NULL; | |
26154 | } | |
26155 | ||
26156 | ||
c32bde28 | 26157 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26158 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26159 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26160 | wxTimeSpan *arg2 = 0 ; | |
26161 | bool result; | |
26162 | PyObject * obj0 = 0 ; | |
26163 | PyObject * obj1 = 0 ; | |
26164 | char *kwnames[] = { | |
26165 | (char *) "self",(char *) "t", NULL | |
26166 | }; | |
26167 | ||
26168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26171 | { | |
26172 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
26173 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26174 | if (arg2 == NULL) { | |
26175 | SWIG_null_ref("wxTimeSpan"); | |
26176 | } | |
26177 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26178 | } |
26179 | { | |
26180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26181 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
26182 | ||
26183 | wxPyEndAllowThreads(__tstate); | |
26184 | if (PyErr_Occurred()) SWIG_fail; | |
26185 | } | |
26186 | { | |
26187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26188 | } | |
26189 | return resultobj; | |
26190 | fail: | |
26191 | return NULL; | |
26192 | } | |
26193 | ||
26194 | ||
c32bde28 | 26195 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26196 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26197 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26198 | int result; | |
26199 | PyObject * obj0 = 0 ; | |
26200 | char *kwnames[] = { | |
26201 | (char *) "self", NULL | |
26202 | }; | |
26203 | ||
26204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26205 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26206 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26207 | { |
26208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26209 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
26210 | ||
26211 | wxPyEndAllowThreads(__tstate); | |
26212 | if (PyErr_Occurred()) SWIG_fail; | |
26213 | } | |
093d3ff1 | 26214 | { |
7449af73 | 26215 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26216 | } |
d55e5bfc RD |
26217 | return resultobj; |
26218 | fail: | |
26219 | return NULL; | |
26220 | } | |
26221 | ||
26222 | ||
c32bde28 | 26223 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26224 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26225 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26226 | int result; | |
26227 | PyObject * obj0 = 0 ; | |
26228 | char *kwnames[] = { | |
26229 | (char *) "self", NULL | |
26230 | }; | |
26231 | ||
26232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26235 | { |
26236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26237 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
26238 | ||
26239 | wxPyEndAllowThreads(__tstate); | |
26240 | if (PyErr_Occurred()) SWIG_fail; | |
26241 | } | |
093d3ff1 | 26242 | { |
7449af73 | 26243 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26244 | } |
d55e5bfc RD |
26245 | return resultobj; |
26246 | fail: | |
26247 | return NULL; | |
26248 | } | |
26249 | ||
26250 | ||
c32bde28 | 26251 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26252 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26253 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26254 | int result; | |
26255 | PyObject * obj0 = 0 ; | |
26256 | char *kwnames[] = { | |
26257 | (char *) "self", NULL | |
26258 | }; | |
26259 | ||
26260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26263 | { |
26264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26265 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
26266 | ||
26267 | wxPyEndAllowThreads(__tstate); | |
26268 | if (PyErr_Occurred()) SWIG_fail; | |
26269 | } | |
093d3ff1 | 26270 | { |
7449af73 | 26271 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26272 | } |
d55e5bfc RD |
26273 | return resultobj; |
26274 | fail: | |
26275 | return NULL; | |
26276 | } | |
26277 | ||
26278 | ||
c32bde28 | 26279 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26280 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26281 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26282 | int result; | |
26283 | PyObject * obj0 = 0 ; | |
26284 | char *kwnames[] = { | |
26285 | (char *) "self", NULL | |
26286 | }; | |
26287 | ||
26288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26291 | { |
26292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26293 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
26294 | ||
26295 | wxPyEndAllowThreads(__tstate); | |
26296 | if (PyErr_Occurred()) SWIG_fail; | |
26297 | } | |
093d3ff1 | 26298 | { |
7449af73 | 26299 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26300 | } |
d55e5bfc RD |
26301 | return resultobj; |
26302 | fail: | |
26303 | return NULL; | |
26304 | } | |
26305 | ||
26306 | ||
c32bde28 | 26307 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26308 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26309 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26310 | wxLongLong result; | |
26311 | PyObject * obj0 = 0 ; | |
26312 | char *kwnames[] = { | |
26313 | (char *) "self", NULL | |
26314 | }; | |
26315 | ||
26316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26317 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26318 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26319 | { |
26320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26321 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
26322 | ||
26323 | wxPyEndAllowThreads(__tstate); | |
26324 | if (PyErr_Occurred()) SWIG_fail; | |
26325 | } | |
26326 | { | |
26327 | PyObject *hi, *lo, *shifter, *shifted; | |
26328 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
26329 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
26330 | shifter = PyLong_FromLong(32); | |
26331 | shifted = PyNumber_Lshift(hi, shifter); | |
26332 | resultobj = PyNumber_Or(shifted, lo); | |
26333 | Py_DECREF(hi); | |
26334 | Py_DECREF(lo); | |
26335 | Py_DECREF(shifter); | |
26336 | Py_DECREF(shifted); | |
26337 | } | |
26338 | return resultobj; | |
26339 | fail: | |
26340 | return NULL; | |
26341 | } | |
26342 | ||
26343 | ||
c32bde28 | 26344 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26345 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26346 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26347 | wxLongLong result; | |
26348 | PyObject * obj0 = 0 ; | |
26349 | char *kwnames[] = { | |
26350 | (char *) "self", NULL | |
26351 | }; | |
26352 | ||
26353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26354 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26355 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26356 | { |
26357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26358 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
26359 | ||
26360 | wxPyEndAllowThreads(__tstate); | |
26361 | if (PyErr_Occurred()) SWIG_fail; | |
26362 | } | |
26363 | { | |
26364 | PyObject *hi, *lo, *shifter, *shifted; | |
26365 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
26366 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
26367 | shifter = PyLong_FromLong(32); | |
26368 | shifted = PyNumber_Lshift(hi, shifter); | |
26369 | resultobj = PyNumber_Or(shifted, lo); | |
26370 | Py_DECREF(hi); | |
26371 | Py_DECREF(lo); | |
26372 | Py_DECREF(shifter); | |
26373 | Py_DECREF(shifted); | |
26374 | } | |
26375 | return resultobj; | |
26376 | fail: | |
26377 | return NULL; | |
26378 | } | |
26379 | ||
26380 | ||
c32bde28 | 26381 | static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26382 | PyObject *resultobj = NULL; |
d55e5bfc | 26383 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
fef4c27a | 26384 | wxString const &arg2_defvalue = wxPyDefaultTimeSpanFormat ; |
d55e5bfc RD |
26385 | wxString *arg2 = (wxString *) &arg2_defvalue ; |
26386 | wxString result; | |
ae8162c8 | 26387 | bool temp2 = false ; |
d55e5bfc RD |
26388 | PyObject * obj0 = 0 ; |
26389 | PyObject * obj1 = 0 ; | |
26390 | char *kwnames[] = { | |
26391 | (char *) "self",(char *) "format", NULL | |
26392 | }; | |
26393 | ||
26394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26397 | if (obj1) { |
26398 | { | |
26399 | arg2 = wxString_in_helper(obj1); | |
26400 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 26401 | temp2 = true; |
d55e5bfc RD |
26402 | } |
26403 | } | |
26404 | { | |
26405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26406 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
26407 | ||
26408 | wxPyEndAllowThreads(__tstate); | |
26409 | if (PyErr_Occurred()) SWIG_fail; | |
26410 | } | |
26411 | { | |
26412 | #if wxUSE_UNICODE | |
26413 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26414 | #else | |
26415 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26416 | #endif | |
26417 | } | |
26418 | { | |
26419 | if (temp2) | |
26420 | delete arg2; | |
26421 | } | |
26422 | return resultobj; | |
26423 | fail: | |
26424 | { | |
26425 | if (temp2) | |
26426 | delete arg2; | |
26427 | } | |
26428 | return NULL; | |
26429 | } | |
26430 | ||
26431 | ||
c32bde28 | 26432 | static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26433 | PyObject *obj; |
26434 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26435 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
26436 | Py_INCREF(obj); | |
26437 | return Py_BuildValue((char *)""); | |
26438 | } | |
c32bde28 | 26439 | static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26440 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26441 | int arg1 = (int) 0 ; |
26442 | int arg2 = (int) 0 ; | |
26443 | int arg3 = (int) 0 ; | |
26444 | int arg4 = (int) 0 ; | |
26445 | wxDateSpan *result; | |
26446 | PyObject * obj0 = 0 ; | |
26447 | PyObject * obj1 = 0 ; | |
26448 | PyObject * obj2 = 0 ; | |
26449 | PyObject * obj3 = 0 ; | |
26450 | char *kwnames[] = { | |
26451 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
26452 | }; | |
26453 | ||
26454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26455 | if (obj0) { | |
093d3ff1 | 26456 | { |
7449af73 | 26457 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
26458 | if (SWIG_arg_fail(1)) SWIG_fail; |
26459 | } | |
d55e5bfc RD |
26460 | } |
26461 | if (obj1) { | |
093d3ff1 | 26462 | { |
7449af73 | 26463 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26464 | if (SWIG_arg_fail(2)) SWIG_fail; |
26465 | } | |
d55e5bfc RD |
26466 | } |
26467 | if (obj2) { | |
093d3ff1 | 26468 | { |
7449af73 | 26469 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
26470 | if (SWIG_arg_fail(3)) SWIG_fail; |
26471 | } | |
d55e5bfc RD |
26472 | } |
26473 | if (obj3) { | |
093d3ff1 | 26474 | { |
7449af73 | 26475 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
26476 | if (SWIG_arg_fail(4)) SWIG_fail; |
26477 | } | |
d55e5bfc RD |
26478 | } |
26479 | { | |
26480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26481 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
26482 | ||
26483 | wxPyEndAllowThreads(__tstate); | |
26484 | if (PyErr_Occurred()) SWIG_fail; | |
26485 | } | |
26486 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
26487 | return resultobj; | |
26488 | fail: | |
26489 | return NULL; | |
26490 | } | |
26491 | ||
26492 | ||
c32bde28 | 26493 | static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26494 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26495 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26496 | PyObject * obj0 = 0 ; | |
26497 | char *kwnames[] = { | |
26498 | (char *) "self", NULL | |
26499 | }; | |
26500 | ||
26501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26502 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26503 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26504 | { |
26505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26506 | delete arg1; | |
26507 | ||
26508 | wxPyEndAllowThreads(__tstate); | |
26509 | if (PyErr_Occurred()) SWIG_fail; | |
26510 | } | |
26511 | Py_INCREF(Py_None); resultobj = Py_None; | |
26512 | return resultobj; | |
26513 | fail: | |
26514 | return NULL; | |
26515 | } | |
26516 | ||
26517 | ||
c32bde28 | 26518 | static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26519 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26520 | int arg1 ; |
26521 | wxDateSpan result; | |
26522 | PyObject * obj0 = 0 ; | |
26523 | char *kwnames[] = { | |
26524 | (char *) "days", NULL | |
26525 | }; | |
26526 | ||
26527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
093d3ff1 | 26528 | { |
7449af73 | 26529 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
26530 | if (SWIG_arg_fail(1)) SWIG_fail; |
26531 | } | |
d55e5bfc RD |
26532 | { |
26533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26534 | result = wxDateSpan::Days(arg1); | |
26535 | ||
26536 | wxPyEndAllowThreads(__tstate); | |
26537 | if (PyErr_Occurred()) SWIG_fail; | |
26538 | } | |
26539 | { | |
26540 | wxDateSpan * resultptr; | |
7449af73 | 26541 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
26542 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26543 | } | |
26544 | return resultobj; | |
26545 | fail: | |
26546 | return NULL; | |
26547 | } | |
26548 | ||
26549 | ||
c32bde28 | 26550 | static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26551 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26552 | wxDateSpan result; |
26553 | char *kwnames[] = { | |
26554 | NULL | |
26555 | }; | |
26556 | ||
26557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
26558 | { | |
26559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26560 | result = wxDateSpan::Day(); | |
26561 | ||
26562 | wxPyEndAllowThreads(__tstate); | |
26563 | if (PyErr_Occurred()) SWIG_fail; | |
26564 | } | |
26565 | { | |
26566 | wxDateSpan * resultptr; | |
7449af73 | 26567 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
26568 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26569 | } | |
26570 | return resultobj; | |
26571 | fail: | |
26572 | return NULL; | |
26573 | } | |
26574 | ||
26575 | ||
c32bde28 | 26576 | static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26577 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26578 | int arg1 ; |
26579 | wxDateSpan result; | |
26580 | PyObject * obj0 = 0 ; | |
26581 | char *kwnames[] = { | |
26582 | (char *) "weeks", NULL | |
26583 | }; | |
26584 | ||
26585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
093d3ff1 | 26586 | { |
7449af73 | 26587 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
26588 | if (SWIG_arg_fail(1)) SWIG_fail; |
26589 | } | |
d55e5bfc RD |
26590 | { |
26591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26592 | result = wxDateSpan::Weeks(arg1); | |
26593 | ||
26594 | wxPyEndAllowThreads(__tstate); | |
26595 | if (PyErr_Occurred()) SWIG_fail; | |
26596 | } | |
26597 | { | |
26598 | wxDateSpan * resultptr; | |
7449af73 | 26599 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
26600 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26601 | } | |
26602 | return resultobj; | |
26603 | fail: | |
26604 | return NULL; | |
26605 | } | |
26606 | ||
26607 | ||
c32bde28 | 26608 | static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26609 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26610 | wxDateSpan result; |
26611 | char *kwnames[] = { | |
26612 | NULL | |
26613 | }; | |
26614 | ||
26615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
26616 | { | |
26617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26618 | result = wxDateSpan::Week(); | |
26619 | ||
26620 | wxPyEndAllowThreads(__tstate); | |
26621 | if (PyErr_Occurred()) SWIG_fail; | |
26622 | } | |
26623 | { | |
26624 | wxDateSpan * resultptr; | |
7449af73 | 26625 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
26626 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26627 | } | |
26628 | return resultobj; | |
26629 | fail: | |
26630 | return NULL; | |
26631 | } | |
26632 | ||
26633 | ||
c32bde28 | 26634 | static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26635 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26636 | int arg1 ; |
26637 | wxDateSpan result; | |
26638 | PyObject * obj0 = 0 ; | |
26639 | char *kwnames[] = { | |
26640 | (char *) "mon", NULL | |
26641 | }; | |
26642 | ||
26643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
093d3ff1 | 26644 | { |
7449af73 | 26645 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
26646 | if (SWIG_arg_fail(1)) SWIG_fail; |
26647 | } | |
d55e5bfc RD |
26648 | { |
26649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26650 | result = wxDateSpan::Months(arg1); | |
26651 | ||
26652 | wxPyEndAllowThreads(__tstate); | |
26653 | if (PyErr_Occurred()) SWIG_fail; | |
26654 | } | |
26655 | { | |
26656 | wxDateSpan * resultptr; | |
7449af73 | 26657 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
26658 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26659 | } | |
26660 | return resultobj; | |
26661 | fail: | |
26662 | return NULL; | |
26663 | } | |
26664 | ||
26665 | ||
c32bde28 | 26666 | static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26667 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26668 | wxDateSpan result; |
26669 | char *kwnames[] = { | |
26670 | NULL | |
26671 | }; | |
26672 | ||
26673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
26674 | { | |
26675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26676 | result = wxDateSpan::Month(); | |
26677 | ||
26678 | wxPyEndAllowThreads(__tstate); | |
26679 | if (PyErr_Occurred()) SWIG_fail; | |
26680 | } | |
26681 | { | |
26682 | wxDateSpan * resultptr; | |
7449af73 | 26683 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
26684 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26685 | } | |
26686 | return resultobj; | |
26687 | fail: | |
26688 | return NULL; | |
26689 | } | |
26690 | ||
26691 | ||
c32bde28 | 26692 | static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26693 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26694 | int arg1 ; |
26695 | wxDateSpan result; | |
26696 | PyObject * obj0 = 0 ; | |
26697 | char *kwnames[] = { | |
26698 | (char *) "years", NULL | |
26699 | }; | |
26700 | ||
26701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
093d3ff1 | 26702 | { |
7449af73 | 26703 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
26704 | if (SWIG_arg_fail(1)) SWIG_fail; |
26705 | } | |
d55e5bfc RD |
26706 | { |
26707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26708 | result = wxDateSpan::Years(arg1); | |
26709 | ||
26710 | wxPyEndAllowThreads(__tstate); | |
26711 | if (PyErr_Occurred()) SWIG_fail; | |
26712 | } | |
26713 | { | |
26714 | wxDateSpan * resultptr; | |
7449af73 | 26715 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
26716 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26717 | } | |
26718 | return resultobj; | |
26719 | fail: | |
26720 | return NULL; | |
26721 | } | |
26722 | ||
26723 | ||
c32bde28 | 26724 | static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26725 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26726 | wxDateSpan result; |
26727 | char *kwnames[] = { | |
26728 | NULL | |
26729 | }; | |
26730 | ||
26731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
26732 | { | |
26733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26734 | result = wxDateSpan::Year(); | |
26735 | ||
26736 | wxPyEndAllowThreads(__tstate); | |
26737 | if (PyErr_Occurred()) SWIG_fail; | |
26738 | } | |
26739 | { | |
26740 | wxDateSpan * resultptr; | |
7449af73 | 26741 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
26742 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26743 | } | |
26744 | return resultobj; | |
26745 | fail: | |
26746 | return NULL; | |
26747 | } | |
26748 | ||
26749 | ||
c32bde28 | 26750 | static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26751 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26752 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26753 | int arg2 ; | |
26754 | wxDateSpan *result; | |
26755 | PyObject * obj0 = 0 ; | |
26756 | PyObject * obj1 = 0 ; | |
26757 | char *kwnames[] = { | |
26758 | (char *) "self",(char *) "n", NULL | |
26759 | }; | |
26760 | ||
26761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26764 | { | |
7449af73 | 26765 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26766 | if (SWIG_arg_fail(2)) SWIG_fail; |
26767 | } | |
d55e5bfc RD |
26768 | { |
26769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26770 | { | |
26771 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
26772 | result = (wxDateSpan *) &_result_ref; | |
26773 | } | |
26774 | ||
26775 | wxPyEndAllowThreads(__tstate); | |
26776 | if (PyErr_Occurred()) SWIG_fail; | |
26777 | } | |
26778 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
26779 | return resultobj; | |
26780 | fail: | |
26781 | return NULL; | |
26782 | } | |
26783 | ||
26784 | ||
c32bde28 | 26785 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26786 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26787 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26788 | int arg2 ; | |
26789 | wxDateSpan *result; | |
26790 | PyObject * obj0 = 0 ; | |
26791 | PyObject * obj1 = 0 ; | |
26792 | char *kwnames[] = { | |
26793 | (char *) "self",(char *) "n", NULL | |
26794 | }; | |
26795 | ||
26796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26799 | { | |
7449af73 | 26800 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26801 | if (SWIG_arg_fail(2)) SWIG_fail; |
26802 | } | |
d55e5bfc RD |
26803 | { |
26804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26805 | { | |
26806 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
26807 | result = (wxDateSpan *) &_result_ref; | |
26808 | } | |
26809 | ||
26810 | wxPyEndAllowThreads(__tstate); | |
26811 | if (PyErr_Occurred()) SWIG_fail; | |
26812 | } | |
26813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
26814 | return resultobj; | |
26815 | fail: | |
26816 | return NULL; | |
26817 | } | |
26818 | ||
26819 | ||
c32bde28 | 26820 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26821 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26822 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26823 | int arg2 ; | |
26824 | wxDateSpan *result; | |
26825 | PyObject * obj0 = 0 ; | |
26826 | PyObject * obj1 = 0 ; | |
26827 | char *kwnames[] = { | |
26828 | (char *) "self",(char *) "n", NULL | |
26829 | }; | |
26830 | ||
26831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26832 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26833 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26834 | { | |
7449af73 | 26835 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26836 | if (SWIG_arg_fail(2)) SWIG_fail; |
26837 | } | |
d55e5bfc RD |
26838 | { |
26839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26840 | { | |
26841 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
26842 | result = (wxDateSpan *) &_result_ref; | |
26843 | } | |
26844 | ||
26845 | wxPyEndAllowThreads(__tstate); | |
26846 | if (PyErr_Occurred()) SWIG_fail; | |
26847 | } | |
26848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
26849 | return resultobj; | |
26850 | fail: | |
26851 | return NULL; | |
26852 | } | |
26853 | ||
26854 | ||
c32bde28 | 26855 | static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26856 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26857 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26858 | int arg2 ; | |
26859 | wxDateSpan *result; | |
26860 | PyObject * obj0 = 0 ; | |
26861 | PyObject * obj1 = 0 ; | |
26862 | char *kwnames[] = { | |
26863 | (char *) "self",(char *) "n", NULL | |
26864 | }; | |
26865 | ||
26866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26867 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26869 | { | |
7449af73 | 26870 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26871 | if (SWIG_arg_fail(2)) SWIG_fail; |
26872 | } | |
d55e5bfc RD |
26873 | { |
26874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26875 | { | |
26876 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
26877 | result = (wxDateSpan *) &_result_ref; | |
26878 | } | |
26879 | ||
26880 | wxPyEndAllowThreads(__tstate); | |
26881 | if (PyErr_Occurred()) SWIG_fail; | |
26882 | } | |
26883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
26884 | return resultobj; | |
26885 | fail: | |
26886 | return NULL; | |
26887 | } | |
26888 | ||
26889 | ||
c32bde28 | 26890 | static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26891 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26892 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26893 | int result; | |
26894 | PyObject * obj0 = 0 ; | |
26895 | char *kwnames[] = { | |
26896 | (char *) "self", NULL | |
26897 | }; | |
26898 | ||
26899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26900 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26901 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26902 | { |
26903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26904 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
26905 | ||
26906 | wxPyEndAllowThreads(__tstate); | |
26907 | if (PyErr_Occurred()) SWIG_fail; | |
26908 | } | |
093d3ff1 | 26909 | { |
7449af73 | 26910 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26911 | } |
d55e5bfc RD |
26912 | return resultobj; |
26913 | fail: | |
26914 | return NULL; | |
26915 | } | |
26916 | ||
26917 | ||
c32bde28 | 26918 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26919 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26920 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26921 | int result; | |
26922 | PyObject * obj0 = 0 ; | |
26923 | char *kwnames[] = { | |
26924 | (char *) "self", NULL | |
26925 | }; | |
26926 | ||
26927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26930 | { |
26931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26932 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
26933 | ||
26934 | wxPyEndAllowThreads(__tstate); | |
26935 | if (PyErr_Occurred()) SWIG_fail; | |
26936 | } | |
093d3ff1 | 26937 | { |
7449af73 | 26938 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26939 | } |
d55e5bfc RD |
26940 | return resultobj; |
26941 | fail: | |
26942 | return NULL; | |
26943 | } | |
26944 | ||
26945 | ||
c32bde28 | 26946 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26947 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26948 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26949 | int result; | |
26950 | PyObject * obj0 = 0 ; | |
26951 | char *kwnames[] = { | |
26952 | (char *) "self", NULL | |
26953 | }; | |
26954 | ||
26955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26958 | { |
26959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26960 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
26961 | ||
26962 | wxPyEndAllowThreads(__tstate); | |
26963 | if (PyErr_Occurred()) SWIG_fail; | |
26964 | } | |
093d3ff1 | 26965 | { |
7449af73 | 26966 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26967 | } |
d55e5bfc RD |
26968 | return resultobj; |
26969 | fail: | |
26970 | return NULL; | |
26971 | } | |
26972 | ||
26973 | ||
c32bde28 | 26974 | static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 26975 | PyObject *resultobj = NULL; |
d55e5bfc RD |
26976 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26977 | int result; | |
26978 | PyObject * obj0 = 0 ; | |
26979 | char *kwnames[] = { | |
26980 | (char *) "self", NULL | |
26981 | }; | |
26982 | ||
26983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26986 | { |
26987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26988 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
26989 | ||
26990 | wxPyEndAllowThreads(__tstate); | |
26991 | if (PyErr_Occurred()) SWIG_fail; | |
26992 | } | |
093d3ff1 | 26993 | { |
7449af73 | 26994 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26995 | } |
d55e5bfc RD |
26996 | return resultobj; |
26997 | fail: | |
26998 | return NULL; | |
26999 | } | |
27000 | ||
27001 | ||
c32bde28 | 27002 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27003 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27004 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27005 | int result; | |
27006 | PyObject * obj0 = 0 ; | |
27007 | char *kwnames[] = { | |
27008 | (char *) "self", NULL | |
27009 | }; | |
27010 | ||
27011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27012 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27013 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27014 | { |
27015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27016 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
27017 | ||
27018 | wxPyEndAllowThreads(__tstate); | |
27019 | if (PyErr_Occurred()) SWIG_fail; | |
27020 | } | |
093d3ff1 | 27021 | { |
7449af73 | 27022 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 27023 | } |
d55e5bfc RD |
27024 | return resultobj; |
27025 | fail: | |
27026 | return NULL; | |
27027 | } | |
27028 | ||
27029 | ||
c32bde28 | 27030 | static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27031 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27032 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27033 | wxDateSpan *arg2 = 0 ; | |
27034 | wxDateSpan *result; | |
27035 | PyObject * obj0 = 0 ; | |
27036 | PyObject * obj1 = 0 ; | |
27037 | char *kwnames[] = { | |
27038 | (char *) "self",(char *) "other", NULL | |
27039 | }; | |
27040 | ||
27041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27042 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27043 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27044 | { | |
27045 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27046 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27047 | if (arg2 == NULL) { | |
27048 | SWIG_null_ref("wxDateSpan"); | |
27049 | } | |
27050 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27051 | } |
27052 | { | |
27053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27054 | { | |
27055 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
27056 | result = (wxDateSpan *) &_result_ref; | |
27057 | } | |
27058 | ||
27059 | wxPyEndAllowThreads(__tstate); | |
27060 | if (PyErr_Occurred()) SWIG_fail; | |
27061 | } | |
27062 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
27063 | return resultobj; | |
27064 | fail: | |
27065 | return NULL; | |
27066 | } | |
27067 | ||
27068 | ||
c32bde28 | 27069 | static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27070 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27071 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27072 | wxDateSpan *arg2 = 0 ; | |
27073 | wxDateSpan *result; | |
27074 | PyObject * obj0 = 0 ; | |
27075 | PyObject * obj1 = 0 ; | |
27076 | char *kwnames[] = { | |
27077 | (char *) "self",(char *) "other", NULL | |
27078 | }; | |
27079 | ||
27080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27083 | { | |
27084 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27085 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27086 | if (arg2 == NULL) { | |
27087 | SWIG_null_ref("wxDateSpan"); | |
27088 | } | |
27089 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27090 | } |
27091 | { | |
27092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27093 | { | |
27094 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
27095 | result = (wxDateSpan *) &_result_ref; | |
27096 | } | |
27097 | ||
27098 | wxPyEndAllowThreads(__tstate); | |
27099 | if (PyErr_Occurred()) SWIG_fail; | |
27100 | } | |
27101 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
27102 | return resultobj; | |
27103 | fail: | |
27104 | return NULL; | |
27105 | } | |
27106 | ||
27107 | ||
c32bde28 | 27108 | static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27109 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27110 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27111 | wxDateSpan *result; | |
27112 | PyObject * obj0 = 0 ; | |
27113 | char *kwnames[] = { | |
27114 | (char *) "self", NULL | |
27115 | }; | |
27116 | ||
27117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27120 | { |
27121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27122 | { | |
27123 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
27124 | result = (wxDateSpan *) &_result_ref; | |
27125 | } | |
27126 | ||
27127 | wxPyEndAllowThreads(__tstate); | |
27128 | if (PyErr_Occurred()) SWIG_fail; | |
27129 | } | |
27130 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
27131 | return resultobj; | |
27132 | fail: | |
27133 | return NULL; | |
27134 | } | |
27135 | ||
27136 | ||
c32bde28 | 27137 | static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27138 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27139 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27140 | int arg2 ; | |
27141 | wxDateSpan *result; | |
27142 | PyObject * obj0 = 0 ; | |
27143 | PyObject * obj1 = 0 ; | |
27144 | char *kwnames[] = { | |
27145 | (char *) "self",(char *) "factor", NULL | |
27146 | }; | |
27147 | ||
27148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27151 | { | |
7449af73 | 27152 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27153 | if (SWIG_arg_fail(2)) SWIG_fail; |
27154 | } | |
d55e5bfc RD |
27155 | { |
27156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27157 | { | |
27158 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
27159 | result = (wxDateSpan *) &_result_ref; | |
27160 | } | |
27161 | ||
27162 | wxPyEndAllowThreads(__tstate); | |
27163 | if (PyErr_Occurred()) SWIG_fail; | |
27164 | } | |
27165 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
27166 | return resultobj; | |
27167 | fail: | |
27168 | return NULL; | |
27169 | } | |
27170 | ||
27171 | ||
c32bde28 | 27172 | static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27173 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27174 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27175 | wxDateSpan *arg2 = 0 ; | |
27176 | wxDateSpan *result; | |
27177 | PyObject * obj0 = 0 ; | |
27178 | PyObject * obj1 = 0 ; | |
27179 | char *kwnames[] = { | |
27180 | (char *) "self",(char *) "other", NULL | |
27181 | }; | |
27182 | ||
27183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27184 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
27185 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27186 | { | |
27187 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27188 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27189 | if (arg2 == NULL) { | |
27190 | SWIG_null_ref("wxDateSpan"); | |
27191 | } | |
27192 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27193 | } |
27194 | { | |
27195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27196 | { | |
27197 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
27198 | result = (wxDateSpan *) &_result_ref; | |
27199 | } | |
27200 | ||
27201 | wxPyEndAllowThreads(__tstate); | |
27202 | if (PyErr_Occurred()) SWIG_fail; | |
27203 | } | |
c32bde28 | 27204 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
27205 | return resultobj; |
27206 | fail: | |
27207 | return NULL; | |
27208 | } | |
27209 | ||
27210 | ||
c32bde28 | 27211 | static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27212 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27213 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27214 | wxDateSpan *arg2 = 0 ; | |
27215 | wxDateSpan *result; | |
27216 | PyObject * obj0 = 0 ; | |
27217 | PyObject * obj1 = 0 ; | |
27218 | char *kwnames[] = { | |
27219 | (char *) "self",(char *) "other", NULL | |
27220 | }; | |
27221 | ||
27222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
27224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27225 | { | |
27226 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27227 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27228 | if (arg2 == NULL) { | |
27229 | SWIG_null_ref("wxDateSpan"); | |
27230 | } | |
27231 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27232 | } |
27233 | { | |
27234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27235 | { | |
27236 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
27237 | result = (wxDateSpan *) &_result_ref; | |
27238 | } | |
27239 | ||
27240 | wxPyEndAllowThreads(__tstate); | |
27241 | if (PyErr_Occurred()) SWIG_fail; | |
27242 | } | |
c32bde28 | 27243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
27244 | return resultobj; |
27245 | fail: | |
27246 | return NULL; | |
27247 | } | |
27248 | ||
27249 | ||
c32bde28 | 27250 | static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27251 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27252 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27253 | wxDateSpan *result; | |
27254 | PyObject * obj0 = 0 ; | |
27255 | char *kwnames[] = { | |
27256 | (char *) "self", NULL | |
27257 | }; | |
27258 | ||
27259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27260 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27262 | { |
27263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27264 | { | |
27265 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
27266 | result = (wxDateSpan *) &_result_ref; | |
27267 | } | |
27268 | ||
27269 | wxPyEndAllowThreads(__tstate); | |
27270 | if (PyErr_Occurred()) SWIG_fail; | |
27271 | } | |
27272 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
27273 | return resultobj; | |
27274 | fail: | |
27275 | return NULL; | |
27276 | } | |
27277 | ||
27278 | ||
c32bde28 | 27279 | static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27280 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27281 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27282 | int arg2 ; | |
27283 | wxDateSpan *result; | |
27284 | PyObject * obj0 = 0 ; | |
27285 | PyObject * obj1 = 0 ; | |
27286 | char *kwnames[] = { | |
27287 | (char *) "self",(char *) "factor", NULL | |
27288 | }; | |
27289 | ||
27290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
27292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27293 | { | |
7449af73 | 27294 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27295 | if (SWIG_arg_fail(2)) SWIG_fail; |
27296 | } | |
d55e5bfc RD |
27297 | { |
27298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27299 | { | |
27300 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
27301 | result = (wxDateSpan *) &_result_ref; | |
27302 | } | |
27303 | ||
27304 | wxPyEndAllowThreads(__tstate); | |
27305 | if (PyErr_Occurred()) SWIG_fail; | |
27306 | } | |
c32bde28 | 27307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
27308 | return resultobj; |
27309 | fail: | |
27310 | return NULL; | |
27311 | } | |
27312 | ||
27313 | ||
c32bde28 | 27314 | static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27315 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27316 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27317 | wxDateSpan *arg2 = 0 ; | |
27318 | wxDateSpan result; | |
27319 | PyObject * obj0 = 0 ; | |
27320 | PyObject * obj1 = 0 ; | |
27321 | char *kwnames[] = { | |
27322 | (char *) "self",(char *) "other", NULL | |
27323 | }; | |
27324 | ||
27325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27326 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27328 | { | |
27329 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27330 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27331 | if (arg2 == NULL) { | |
27332 | SWIG_null_ref("wxDateSpan"); | |
27333 | } | |
27334 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27335 | } |
27336 | { | |
27337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27338 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
27339 | ||
27340 | wxPyEndAllowThreads(__tstate); | |
27341 | if (PyErr_Occurred()) SWIG_fail; | |
27342 | } | |
27343 | { | |
27344 | wxDateSpan * resultptr; | |
7449af73 | 27345 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
27346 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
27347 | } | |
27348 | return resultobj; | |
27349 | fail: | |
27350 | return NULL; | |
27351 | } | |
27352 | ||
27353 | ||
c32bde28 | 27354 | static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27355 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27356 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27357 | wxDateSpan *arg2 = 0 ; | |
27358 | wxDateSpan result; | |
27359 | PyObject * obj0 = 0 ; | |
27360 | PyObject * obj1 = 0 ; | |
27361 | char *kwnames[] = { | |
27362 | (char *) "self",(char *) "other", NULL | |
27363 | }; | |
27364 | ||
27365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27366 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27367 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27368 | { | |
27369 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27370 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27371 | if (arg2 == NULL) { | |
27372 | SWIG_null_ref("wxDateSpan"); | |
27373 | } | |
27374 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27375 | } |
27376 | { | |
27377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27378 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
27379 | ||
27380 | wxPyEndAllowThreads(__tstate); | |
27381 | if (PyErr_Occurred()) SWIG_fail; | |
27382 | } | |
27383 | { | |
27384 | wxDateSpan * resultptr; | |
7449af73 | 27385 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
27386 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
27387 | } | |
27388 | return resultobj; | |
27389 | fail: | |
27390 | return NULL; | |
27391 | } | |
27392 | ||
27393 | ||
c32bde28 | 27394 | static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27395 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27396 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27397 | int arg2 ; | |
27398 | wxDateSpan result; | |
27399 | PyObject * obj0 = 0 ; | |
27400 | PyObject * obj1 = 0 ; | |
27401 | char *kwnames[] = { | |
27402 | (char *) "self",(char *) "n", NULL | |
27403 | }; | |
27404 | ||
27405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27406 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27407 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27408 | { | |
7449af73 | 27409 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27410 | if (SWIG_arg_fail(2)) SWIG_fail; |
27411 | } | |
d55e5bfc RD |
27412 | { |
27413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27414 | result = wxDateSpan___mul__(arg1,arg2); | |
27415 | ||
27416 | wxPyEndAllowThreads(__tstate); | |
27417 | if (PyErr_Occurred()) SWIG_fail; | |
27418 | } | |
27419 | { | |
27420 | wxDateSpan * resultptr; | |
7449af73 | 27421 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
27422 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
27423 | } | |
27424 | return resultobj; | |
27425 | fail: | |
27426 | return NULL; | |
27427 | } | |
27428 | ||
27429 | ||
c32bde28 | 27430 | static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27431 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27432 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27433 | int arg2 ; | |
27434 | wxDateSpan result; | |
27435 | PyObject * obj0 = 0 ; | |
27436 | PyObject * obj1 = 0 ; | |
27437 | char *kwnames[] = { | |
27438 | (char *) "self",(char *) "n", NULL | |
27439 | }; | |
27440 | ||
27441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27442 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27443 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27444 | { | |
7449af73 | 27445 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27446 | if (SWIG_arg_fail(2)) SWIG_fail; |
27447 | } | |
d55e5bfc RD |
27448 | { |
27449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27450 | result = wxDateSpan___rmul__(arg1,arg2); | |
27451 | ||
27452 | wxPyEndAllowThreads(__tstate); | |
27453 | if (PyErr_Occurred()) SWIG_fail; | |
27454 | } | |
27455 | { | |
27456 | wxDateSpan * resultptr; | |
7449af73 | 27457 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
d55e5bfc RD |
27458 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
27459 | } | |
27460 | return resultobj; | |
27461 | fail: | |
27462 | return NULL; | |
27463 | } | |
27464 | ||
27465 | ||
c32bde28 | 27466 | static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27467 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27468 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27469 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
27470 | bool result; | |
27471 | PyObject * obj0 = 0 ; | |
27472 | PyObject * obj1 = 0 ; | |
27473 | char *kwnames[] = { | |
27474 | (char *) "self",(char *) "other", NULL | |
27475 | }; | |
27476 | ||
27477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27478 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27479 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27480 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27481 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27482 | { |
27483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27484 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
27485 | ||
27486 | wxPyEndAllowThreads(__tstate); | |
27487 | if (PyErr_Occurred()) SWIG_fail; | |
27488 | } | |
27489 | { | |
27490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27491 | } | |
27492 | return resultobj; | |
27493 | fail: | |
27494 | return NULL; | |
27495 | } | |
27496 | ||
27497 | ||
c32bde28 | 27498 | static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27499 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27500 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27501 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
27502 | bool result; | |
27503 | PyObject * obj0 = 0 ; | |
27504 | PyObject * obj1 = 0 ; | |
27505 | char *kwnames[] = { | |
27506 | (char *) "self",(char *) "other", NULL | |
27507 | }; | |
27508 | ||
27509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27512 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27513 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27514 | { |
27515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27516 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
27517 | ||
27518 | wxPyEndAllowThreads(__tstate); | |
27519 | if (PyErr_Occurred()) SWIG_fail; | |
27520 | } | |
27521 | { | |
27522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27523 | } | |
27524 | return resultobj; | |
27525 | fail: | |
27526 | return NULL; | |
27527 | } | |
27528 | ||
27529 | ||
c32bde28 | 27530 | static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27531 | PyObject *obj; |
27532 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27533 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
27534 | Py_INCREF(obj); | |
27535 | return Py_BuildValue((char *)""); | |
27536 | } | |
c32bde28 | 27537 | static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27538 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27539 | long result; |
27540 | char *kwnames[] = { | |
27541 | NULL | |
27542 | }; | |
27543 | ||
27544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
27545 | { | |
27546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27547 | result = (long)wxGetLocalTime(); | |
27548 | ||
27549 | wxPyEndAllowThreads(__tstate); | |
27550 | if (PyErr_Occurred()) SWIG_fail; | |
27551 | } | |
093d3ff1 | 27552 | { |
7449af73 | 27553 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27554 | } |
d55e5bfc RD |
27555 | return resultobj; |
27556 | fail: | |
27557 | return NULL; | |
27558 | } | |
27559 | ||
27560 | ||
c32bde28 | 27561 | static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27562 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27563 | long result; |
27564 | char *kwnames[] = { | |
27565 | NULL | |
27566 | }; | |
27567 | ||
27568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
27569 | { | |
27570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27571 | result = (long)wxGetUTCTime(); | |
27572 | ||
27573 | wxPyEndAllowThreads(__tstate); | |
27574 | if (PyErr_Occurred()) SWIG_fail; | |
27575 | } | |
093d3ff1 | 27576 | { |
7449af73 | 27577 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27578 | } |
d55e5bfc RD |
27579 | return resultobj; |
27580 | fail: | |
27581 | return NULL; | |
27582 | } | |
27583 | ||
27584 | ||
c32bde28 | 27585 | static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27586 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27587 | long result; |
27588 | char *kwnames[] = { | |
27589 | NULL | |
27590 | }; | |
27591 | ||
27592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
27593 | { | |
27594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27595 | result = (long)wxGetCurrentTime(); | |
27596 | ||
27597 | wxPyEndAllowThreads(__tstate); | |
27598 | if (PyErr_Occurred()) SWIG_fail; | |
27599 | } | |
093d3ff1 | 27600 | { |
7449af73 | 27601 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27602 | } |
d55e5bfc RD |
27603 | return resultobj; |
27604 | fail: | |
27605 | return NULL; | |
27606 | } | |
27607 | ||
27608 | ||
c32bde28 | 27609 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27610 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27611 | wxLongLong result; |
27612 | char *kwnames[] = { | |
27613 | NULL | |
27614 | }; | |
27615 | ||
27616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
27617 | { | |
27618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27619 | result = wxGetLocalTimeMillis(); | |
27620 | ||
27621 | wxPyEndAllowThreads(__tstate); | |
27622 | if (PyErr_Occurred()) SWIG_fail; | |
27623 | } | |
27624 | { | |
27625 | PyObject *hi, *lo, *shifter, *shifted; | |
27626 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
27627 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
27628 | shifter = PyLong_FromLong(32); | |
27629 | shifted = PyNumber_Lshift(hi, shifter); | |
27630 | resultobj = PyNumber_Or(shifted, lo); | |
27631 | Py_DECREF(hi); | |
27632 | Py_DECREF(lo); | |
27633 | Py_DECREF(shifter); | |
27634 | Py_DECREF(shifted); | |
27635 | } | |
27636 | return resultobj; | |
27637 | fail: | |
27638 | return NULL; | |
27639 | } | |
27640 | ||
27641 | ||
c32bde28 | 27642 | static int _wrap_DefaultDateTime_set(PyObject *) { |
d55e5bfc RD |
27643 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); |
27644 | return 1; | |
27645 | } | |
27646 | ||
27647 | ||
093d3ff1 | 27648 | static PyObject *_wrap_DefaultDateTime_get(void) { |
7449af73 | 27649 | PyObject *pyobj = NULL; |
d55e5bfc RD |
27650 | |
27651 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
27652 | return pyobj; | |
27653 | } | |
27654 | ||
27655 | ||
c32bde28 | 27656 | static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27657 | PyObject *resultobj = NULL; |
093d3ff1 | 27658 | wxDataFormatId arg1 ; |
d55e5bfc RD |
27659 | wxDataFormat *result; |
27660 | PyObject * obj0 = 0 ; | |
27661 | char *kwnames[] = { | |
27662 | (char *) "type", NULL | |
27663 | }; | |
27664 | ||
27665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
093d3ff1 | 27666 | { |
7449af73 | 27667 | arg1 = static_cast<wxDataFormatId >(SWIG_As_int(obj0)); |
093d3ff1 RD |
27668 | if (SWIG_arg_fail(1)) SWIG_fail; |
27669 | } | |
d55e5bfc RD |
27670 | { |
27671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 27672 | result = (wxDataFormat *)new wxDataFormat(arg1); |
d55e5bfc RD |
27673 | |
27674 | wxPyEndAllowThreads(__tstate); | |
27675 | if (PyErr_Occurred()) SWIG_fail; | |
27676 | } | |
27677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
27678 | return resultobj; | |
27679 | fail: | |
27680 | return NULL; | |
27681 | } | |
27682 | ||
27683 | ||
c32bde28 | 27684 | static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27685 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27686 | wxString *arg1 = 0 ; |
27687 | wxDataFormat *result; | |
ae8162c8 | 27688 | bool temp1 = false ; |
d55e5bfc RD |
27689 | PyObject * obj0 = 0 ; |
27690 | char *kwnames[] = { | |
27691 | (char *) "format", NULL | |
27692 | }; | |
27693 | ||
27694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
27695 | { | |
27696 | arg1 = wxString_in_helper(obj0); | |
27697 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 27698 | temp1 = true; |
d55e5bfc RD |
27699 | } |
27700 | { | |
27701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27702 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
27703 | ||
27704 | wxPyEndAllowThreads(__tstate); | |
27705 | if (PyErr_Occurred()) SWIG_fail; | |
27706 | } | |
27707 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
27708 | { | |
27709 | if (temp1) | |
27710 | delete arg1; | |
27711 | } | |
27712 | return resultobj; | |
27713 | fail: | |
27714 | { | |
27715 | if (temp1) | |
27716 | delete arg1; | |
27717 | } | |
27718 | return NULL; | |
27719 | } | |
27720 | ||
27721 | ||
c32bde28 | 27722 | static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27723 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27724 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
27725 | PyObject * obj0 = 0 ; | |
27726 | char *kwnames[] = { | |
27727 | (char *) "self", NULL | |
27728 | }; | |
27729 | ||
27730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27731 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
27732 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27733 | { |
27734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27735 | delete arg1; | |
27736 | ||
27737 | wxPyEndAllowThreads(__tstate); | |
27738 | if (PyErr_Occurred()) SWIG_fail; | |
27739 | } | |
27740 | Py_INCREF(Py_None); resultobj = Py_None; | |
27741 | return resultobj; | |
27742 | fail: | |
27743 | return NULL; | |
27744 | } | |
27745 | ||
27746 | ||
c32bde28 | 27747 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) { |
7449af73 | 27748 | PyObject *resultobj = NULL; |
d55e5bfc | 27749 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
093d3ff1 | 27750 | wxDataFormatId arg2 ; |
d55e5bfc RD |
27751 | bool result; |
27752 | PyObject * obj0 = 0 ; | |
27753 | PyObject * obj1 = 0 ; | |
27754 | ||
27755 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
27757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27758 | { | |
7449af73 | 27759 | arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27760 | if (SWIG_arg_fail(2)) SWIG_fail; |
27761 | } | |
d55e5bfc RD |
27762 | { |
27763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 27764 | result = (bool)((wxDataFormat const *)arg1)->operator ==(arg2); |
d55e5bfc RD |
27765 | |
27766 | wxPyEndAllowThreads(__tstate); | |
27767 | if (PyErr_Occurred()) SWIG_fail; | |
27768 | } | |
27769 | { | |
27770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27771 | } | |
27772 | return resultobj; | |
27773 | fail: | |
27774 | return NULL; | |
27775 | } | |
27776 | ||
27777 | ||
c32bde28 | 27778 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) { |
7449af73 | 27779 | PyObject *resultobj = NULL; |
d55e5bfc | 27780 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
093d3ff1 | 27781 | wxDataFormatId arg2 ; |
d55e5bfc RD |
27782 | bool result; |
27783 | PyObject * obj0 = 0 ; | |
27784 | PyObject * obj1 = 0 ; | |
27785 | ||
27786 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27787 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
27788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27789 | { | |
7449af73 | 27790 | arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27791 | if (SWIG_arg_fail(2)) SWIG_fail; |
27792 | } | |
d55e5bfc RD |
27793 | { |
27794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 27795 | result = (bool)((wxDataFormat const *)arg1)->operator !=(arg2); |
d55e5bfc RD |
27796 | |
27797 | wxPyEndAllowThreads(__tstate); | |
27798 | if (PyErr_Occurred()) SWIG_fail; | |
27799 | } | |
27800 | { | |
27801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27802 | } | |
27803 | return resultobj; | |
27804 | fail: | |
27805 | return NULL; | |
27806 | } | |
27807 | ||
27808 | ||
c32bde28 | 27809 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) { |
7449af73 | 27810 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27811 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
27812 | wxDataFormat *arg2 = 0 ; | |
27813 | bool result; | |
27814 | PyObject * obj0 = 0 ; | |
27815 | PyObject * obj1 = 0 ; | |
27816 | ||
27817 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
27819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27820 | { | |
27821 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27822 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27823 | if (arg2 == NULL) { | |
27824 | SWIG_null_ref("wxDataFormat"); | |
27825 | } | |
27826 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27827 | } |
27828 | { | |
27829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27830 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
27831 | ||
27832 | wxPyEndAllowThreads(__tstate); | |
27833 | if (PyErr_Occurred()) SWIG_fail; | |
27834 | } | |
27835 | { | |
27836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27837 | } | |
27838 | return resultobj; | |
27839 | fail: | |
27840 | return NULL; | |
27841 | } | |
27842 | ||
27843 | ||
27844 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
27845 | int argc; | |
27846 | PyObject *argv[3]; | |
27847 | int ii; | |
27848 | ||
27849 | argc = PyObject_Length(args); | |
27850 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27851 | argv[ii] = PyTuple_GetItem(args,ii); | |
27852 | } | |
27853 | if (argc == 2) { | |
27854 | int _v; | |
27855 | { | |
27856 | void *ptr; | |
27857 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
27858 | _v = 0; | |
27859 | PyErr_Clear(); | |
27860 | } else { | |
27861 | _v = 1; | |
27862 | } | |
27863 | } | |
27864 | if (_v) { | |
27865 | { | |
093d3ff1 | 27866 | void *ptr = 0; |
d55e5bfc RD |
27867 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
27868 | _v = 0; | |
27869 | PyErr_Clear(); | |
27870 | } else { | |
093d3ff1 | 27871 | _v = (ptr != 0); |
d55e5bfc RD |
27872 | } |
27873 | } | |
27874 | if (_v) { | |
27875 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
27876 | } | |
27877 | } | |
27878 | } | |
27879 | if (argc == 2) { | |
27880 | int _v; | |
27881 | { | |
27882 | void *ptr; | |
27883 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
27884 | _v = 0; | |
27885 | PyErr_Clear(); | |
27886 | } else { | |
27887 | _v = 1; | |
27888 | } | |
27889 | } | |
27890 | if (_v) { | |
c32bde28 | 27891 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
27892 | if (_v) { |
27893 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
27894 | } | |
27895 | } | |
27896 | } | |
27897 | ||
093d3ff1 RD |
27898 | Py_INCREF(Py_NotImplemented); |
27899 | return Py_NotImplemented; | |
d55e5bfc RD |
27900 | } |
27901 | ||
27902 | ||
c32bde28 | 27903 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) { |
7449af73 | 27904 | PyObject *resultobj = NULL; |
d55e5bfc RD |
27905 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
27906 | wxDataFormat *arg2 = 0 ; | |
27907 | bool result; | |
27908 | PyObject * obj0 = 0 ; | |
27909 | PyObject * obj1 = 0 ; | |
27910 | ||
27911 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
27913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27914 | { | |
27915 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27916 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27917 | if (arg2 == NULL) { | |
27918 | SWIG_null_ref("wxDataFormat"); | |
27919 | } | |
27920 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27921 | } |
27922 | { | |
27923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27924 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
27925 | ||
27926 | wxPyEndAllowThreads(__tstate); | |
27927 | if (PyErr_Occurred()) SWIG_fail; | |
27928 | } | |
27929 | { | |
27930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27931 | } | |
27932 | return resultobj; | |
27933 | fail: | |
27934 | return NULL; | |
27935 | } | |
27936 | ||
27937 | ||
27938 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
27939 | int argc; | |
27940 | PyObject *argv[3]; | |
27941 | int ii; | |
27942 | ||
27943 | argc = PyObject_Length(args); | |
27944 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27945 | argv[ii] = PyTuple_GetItem(args,ii); | |
27946 | } | |
27947 | if (argc == 2) { | |
27948 | int _v; | |
27949 | { | |
27950 | void *ptr; | |
27951 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
27952 | _v = 0; | |
27953 | PyErr_Clear(); | |
27954 | } else { | |
27955 | _v = 1; | |
27956 | } | |
27957 | } | |
27958 | if (_v) { | |
27959 | { | |
093d3ff1 | 27960 | void *ptr = 0; |
d55e5bfc RD |
27961 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
27962 | _v = 0; | |
27963 | PyErr_Clear(); | |
27964 | } else { | |
093d3ff1 | 27965 | _v = (ptr != 0); |
d55e5bfc RD |
27966 | } |
27967 | } | |
27968 | if (_v) { | |
27969 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
27970 | } | |
27971 | } | |
27972 | } | |
27973 | if (argc == 2) { | |
27974 | int _v; | |
27975 | { | |
27976 | void *ptr; | |
27977 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
27978 | _v = 0; | |
27979 | PyErr_Clear(); | |
27980 | } else { | |
27981 | _v = 1; | |
27982 | } | |
27983 | } | |
27984 | if (_v) { | |
c32bde28 | 27985 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
27986 | if (_v) { |
27987 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
27988 | } | |
27989 | } | |
27990 | } | |
27991 | ||
093d3ff1 RD |
27992 | Py_INCREF(Py_NotImplemented); |
27993 | return Py_NotImplemented; | |
d55e5bfc RD |
27994 | } |
27995 | ||
27996 | ||
c32bde28 | 27997 | static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 27998 | PyObject *resultobj = NULL; |
d55e5bfc | 27999 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
093d3ff1 | 28000 | wxDataFormatId arg2 ; |
d55e5bfc RD |
28001 | PyObject * obj0 = 0 ; |
28002 | PyObject * obj1 = 0 ; | |
28003 | char *kwnames[] = { | |
28004 | (char *) "self",(char *) "format", NULL | |
28005 | }; | |
28006 | ||
28007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
28009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28010 | { | |
7449af73 | 28011 | arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28012 | if (SWIG_arg_fail(2)) SWIG_fail; |
28013 | } | |
d55e5bfc RD |
28014 | { |
28015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 28016 | (arg1)->SetType(arg2); |
d55e5bfc RD |
28017 | |
28018 | wxPyEndAllowThreads(__tstate); | |
28019 | if (PyErr_Occurred()) SWIG_fail; | |
28020 | } | |
28021 | Py_INCREF(Py_None); resultobj = Py_None; | |
28022 | return resultobj; | |
28023 | fail: | |
28024 | return NULL; | |
28025 | } | |
28026 | ||
28027 | ||
c32bde28 | 28028 | static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28029 | PyObject *resultobj = NULL; |
d55e5bfc | 28030 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
093d3ff1 | 28031 | wxDataFormatId result; |
d55e5bfc RD |
28032 | PyObject * obj0 = 0 ; |
28033 | char *kwnames[] = { | |
28034 | (char *) "self", NULL | |
28035 | }; | |
28036 | ||
28037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28038 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
28039 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28040 | { |
28041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 28042 | result = (wxDataFormatId)((wxDataFormat const *)arg1)->GetType(); |
d55e5bfc RD |
28043 | |
28044 | wxPyEndAllowThreads(__tstate); | |
28045 | if (PyErr_Occurred()) SWIG_fail; | |
28046 | } | |
093d3ff1 | 28047 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
28048 | return resultobj; |
28049 | fail: | |
28050 | return NULL; | |
28051 | } | |
28052 | ||
28053 | ||
c32bde28 | 28054 | static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28055 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28056 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
28057 | wxString result; | |
28058 | PyObject * obj0 = 0 ; | |
28059 | char *kwnames[] = { | |
28060 | (char *) "self", NULL | |
28061 | }; | |
28062 | ||
28063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
28065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28066 | { |
28067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28068 | result = ((wxDataFormat const *)arg1)->GetId(); | |
28069 | ||
28070 | wxPyEndAllowThreads(__tstate); | |
28071 | if (PyErr_Occurred()) SWIG_fail; | |
28072 | } | |
28073 | { | |
28074 | #if wxUSE_UNICODE | |
28075 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28076 | #else | |
28077 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28078 | #endif | |
28079 | } | |
28080 | return resultobj; | |
28081 | fail: | |
28082 | return NULL; | |
28083 | } | |
28084 | ||
28085 | ||
c32bde28 | 28086 | static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28087 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28088 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
28089 | wxString *arg2 = 0 ; | |
ae8162c8 | 28090 | bool temp2 = false ; |
d55e5bfc RD |
28091 | PyObject * obj0 = 0 ; |
28092 | PyObject * obj1 = 0 ; | |
28093 | char *kwnames[] = { | |
28094 | (char *) "self",(char *) "format", NULL | |
28095 | }; | |
28096 | ||
28097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28098 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
28099 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28100 | { |
28101 | arg2 = wxString_in_helper(obj1); | |
28102 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28103 | temp2 = true; |
d55e5bfc RD |
28104 | } |
28105 | { | |
28106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28107 | (arg1)->SetId((wxString const &)*arg2); | |
28108 | ||
28109 | wxPyEndAllowThreads(__tstate); | |
28110 | if (PyErr_Occurred()) SWIG_fail; | |
28111 | } | |
28112 | Py_INCREF(Py_None); resultobj = Py_None; | |
28113 | { | |
28114 | if (temp2) | |
28115 | delete arg2; | |
28116 | } | |
28117 | return resultobj; | |
28118 | fail: | |
28119 | { | |
28120 | if (temp2) | |
28121 | delete arg2; | |
28122 | } | |
28123 | return NULL; | |
28124 | } | |
28125 | ||
28126 | ||
c32bde28 | 28127 | static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28128 | PyObject *obj; |
28129 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28130 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
28131 | Py_INCREF(obj); | |
28132 | return Py_BuildValue((char *)""); | |
28133 | } | |
c32bde28 | 28134 | static int _wrap_FormatInvalid_set(PyObject *) { |
d55e5bfc RD |
28135 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); |
28136 | return 1; | |
28137 | } | |
28138 | ||
28139 | ||
093d3ff1 | 28140 | static PyObject *_wrap_FormatInvalid_get(void) { |
7449af73 | 28141 | PyObject *pyobj = NULL; |
d55e5bfc RD |
28142 | |
28143 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
28144 | return pyobj; | |
28145 | } | |
28146 | ||
28147 | ||
c32bde28 | 28148 | static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28149 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28150 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
28151 | PyObject * obj0 = 0 ; | |
28152 | char *kwnames[] = { | |
28153 | (char *) "self", NULL | |
28154 | }; | |
28155 | ||
28156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28159 | { |
28160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28161 | delete arg1; | |
28162 | ||
28163 | wxPyEndAllowThreads(__tstate); | |
28164 | if (PyErr_Occurred()) SWIG_fail; | |
28165 | } | |
28166 | Py_INCREF(Py_None); resultobj = Py_None; | |
28167 | return resultobj; | |
28168 | fail: | |
28169 | return NULL; | |
28170 | } | |
28171 | ||
28172 | ||
c32bde28 | 28173 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28174 | PyObject *resultobj = NULL; |
d55e5bfc | 28175 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
093d3ff1 RD |
28176 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
28177 | SwigValueWrapper<wxDataFormat > result; | |
d55e5bfc RD |
28178 | PyObject * obj0 = 0 ; |
28179 | PyObject * obj1 = 0 ; | |
28180 | char *kwnames[] = { | |
28181 | (char *) "self",(char *) "dir", NULL | |
28182 | }; | |
28183 | ||
28184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 28187 | if (obj1) { |
093d3ff1 | 28188 | { |
7449af73 | 28189 | arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28190 | if (SWIG_arg_fail(2)) SWIG_fail; |
28191 | } | |
d55e5bfc RD |
28192 | } |
28193 | { | |
28194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 28195 | result = ((wxDataObject const *)arg1)->GetPreferredFormat(arg2); |
d55e5bfc RD |
28196 | |
28197 | wxPyEndAllowThreads(__tstate); | |
28198 | if (PyErr_Occurred()) SWIG_fail; | |
28199 | } | |
28200 | { | |
28201 | wxDataFormat * resultptr; | |
7449af73 | 28202 | resultptr = new wxDataFormat(static_cast<wxDataFormat & >(result)); |
d55e5bfc RD |
28203 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); |
28204 | } | |
28205 | return resultobj; | |
28206 | fail: | |
28207 | return NULL; | |
28208 | } | |
28209 | ||
28210 | ||
c32bde28 | 28211 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28212 | PyObject *resultobj = NULL; |
d55e5bfc | 28213 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
093d3ff1 | 28214 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
d55e5bfc RD |
28215 | size_t result; |
28216 | PyObject * obj0 = 0 ; | |
28217 | PyObject * obj1 = 0 ; | |
28218 | char *kwnames[] = { | |
28219 | (char *) "self",(char *) "dir", NULL | |
28220 | }; | |
28221 | ||
28222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 28225 | if (obj1) { |
093d3ff1 | 28226 | { |
7449af73 | 28227 | arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28228 | if (SWIG_arg_fail(2)) SWIG_fail; |
28229 | } | |
d55e5bfc RD |
28230 | } |
28231 | { | |
28232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 28233 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount(arg2); |
d55e5bfc RD |
28234 | |
28235 | wxPyEndAllowThreads(__tstate); | |
28236 | if (PyErr_Occurred()) SWIG_fail; | |
28237 | } | |
093d3ff1 | 28238 | { |
7449af73 | 28239 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 28240 | } |
d55e5bfc RD |
28241 | return resultobj; |
28242 | fail: | |
28243 | return NULL; | |
28244 | } | |
28245 | ||
28246 | ||
c32bde28 | 28247 | static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28248 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28249 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
28250 | wxDataFormat *arg2 = 0 ; | |
093d3ff1 | 28251 | wxDataObject::Direction arg3 = (wxDataObject::Direction) wxDataObject::Get ; |
d55e5bfc RD |
28252 | bool result; |
28253 | PyObject * obj0 = 0 ; | |
28254 | PyObject * obj1 = 0 ; | |
28255 | PyObject * obj2 = 0 ; | |
28256 | char *kwnames[] = { | |
28257 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
28258 | }; | |
28259 | ||
28260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28263 | { | |
28264 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28265 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28266 | if (arg2 == NULL) { | |
28267 | SWIG_null_ref("wxDataFormat"); | |
28268 | } | |
28269 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28270 | } |
28271 | if (obj2) { | |
093d3ff1 | 28272 | { |
7449af73 | 28273 | arg3 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj2)); |
093d3ff1 RD |
28274 | if (SWIG_arg_fail(3)) SWIG_fail; |
28275 | } | |
d55e5bfc RD |
28276 | } |
28277 | { | |
28278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 28279 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,arg3); |
d55e5bfc RD |
28280 | |
28281 | wxPyEndAllowThreads(__tstate); | |
28282 | if (PyErr_Occurred()) SWIG_fail; | |
28283 | } | |
28284 | { | |
28285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28286 | } | |
28287 | return resultobj; | |
28288 | fail: | |
28289 | return NULL; | |
28290 | } | |
28291 | ||
28292 | ||
c32bde28 | 28293 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28294 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28295 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
28296 | wxDataFormat *arg2 = 0 ; | |
28297 | size_t result; | |
28298 | PyObject * obj0 = 0 ; | |
28299 | PyObject * obj1 = 0 ; | |
28300 | char *kwnames[] = { | |
28301 | (char *) "self",(char *) "format", NULL | |
28302 | }; | |
28303 | ||
28304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28307 | { | |
28308 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28309 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28310 | if (arg2 == NULL) { | |
28311 | SWIG_null_ref("wxDataFormat"); | |
28312 | } | |
28313 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28314 | } |
28315 | { | |
28316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28317 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
28318 | ||
28319 | wxPyEndAllowThreads(__tstate); | |
28320 | if (PyErr_Occurred()) SWIG_fail; | |
28321 | } | |
093d3ff1 | 28322 | { |
7449af73 | 28323 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 28324 | } |
d55e5bfc RD |
28325 | return resultobj; |
28326 | fail: | |
28327 | return NULL; | |
28328 | } | |
28329 | ||
28330 | ||
c32bde28 | 28331 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28332 | PyObject *resultobj = NULL; |
d55e5bfc | 28333 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
093d3ff1 | 28334 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
a07a67e6 | 28335 | PyObject *result; |
d55e5bfc RD |
28336 | PyObject * obj0 = 0 ; |
28337 | PyObject * obj1 = 0 ; | |
d55e5bfc | 28338 | char *kwnames[] = { |
a07a67e6 | 28339 | (char *) "self",(char *) "dir", NULL |
d55e5bfc RD |
28340 | }; |
28341 | ||
a07a67e6 | 28342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a07a67e6 | 28345 | if (obj1) { |
093d3ff1 | 28346 | { |
7449af73 | 28347 | arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28348 | if (SWIG_arg_fail(2)) SWIG_fail; |
28349 | } | |
d55e5bfc RD |
28350 | } |
28351 | { | |
28352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 28353 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,arg2); |
d55e5bfc RD |
28354 | |
28355 | wxPyEndAllowThreads(__tstate); | |
28356 | if (PyErr_Occurred()) SWIG_fail; | |
28357 | } | |
a07a67e6 | 28358 | resultobj = result; |
d55e5bfc RD |
28359 | return resultobj; |
28360 | fail: | |
28361 | return NULL; | |
28362 | } | |
28363 | ||
28364 | ||
c32bde28 | 28365 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28366 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28367 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
28368 | wxDataFormat *arg2 = 0 ; | |
a07a67e6 | 28369 | PyObject *result; |
d55e5bfc RD |
28370 | PyObject * obj0 = 0 ; |
28371 | PyObject * obj1 = 0 ; | |
d55e5bfc | 28372 | char *kwnames[] = { |
a07a67e6 | 28373 | (char *) "self",(char *) "format", NULL |
d55e5bfc RD |
28374 | }; |
28375 | ||
a07a67e6 | 28376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28379 | { | |
28380 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28381 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28382 | if (arg2 == NULL) { | |
28383 | SWIG_null_ref("wxDataFormat"); | |
28384 | } | |
28385 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 28386 | } |
d55e5bfc RD |
28387 | { |
28388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 28389 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d55e5bfc RD |
28390 | |
28391 | wxPyEndAllowThreads(__tstate); | |
28392 | if (PyErr_Occurred()) SWIG_fail; | |
28393 | } | |
a07a67e6 | 28394 | resultobj = result; |
d55e5bfc RD |
28395 | return resultobj; |
28396 | fail: | |
28397 | return NULL; | |
28398 | } | |
28399 | ||
28400 | ||
c32bde28 | 28401 | static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28402 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28403 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
28404 | wxDataFormat *arg2 = 0 ; | |
a07a67e6 | 28405 | PyObject *arg3 = (PyObject *) 0 ; |
d55e5bfc RD |
28406 | bool result; |
28407 | PyObject * obj0 = 0 ; | |
28408 | PyObject * obj1 = 0 ; | |
28409 | PyObject * obj2 = 0 ; | |
d55e5bfc | 28410 | char *kwnames[] = { |
a07a67e6 | 28411 | (char *) "self",(char *) "format",(char *) "data", NULL |
d55e5bfc RD |
28412 | }; |
28413 | ||
a07a67e6 | 28414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
28415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28417 | { | |
28418 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28419 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28420 | if (arg2 == NULL) { | |
28421 | SWIG_null_ref("wxDataFormat"); | |
28422 | } | |
28423 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 28424 | } |
a07a67e6 | 28425 | arg3 = obj2; |
d55e5bfc RD |
28426 | { |
28427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 28428 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d55e5bfc RD |
28429 | |
28430 | wxPyEndAllowThreads(__tstate); | |
28431 | if (PyErr_Occurred()) SWIG_fail; | |
28432 | } | |
28433 | { | |
28434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28435 | } | |
28436 | return resultobj; | |
28437 | fail: | |
28438 | return NULL; | |
28439 | } | |
28440 | ||
28441 | ||
c32bde28 | 28442 | static PyObject * DataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28443 | PyObject *obj; |
28444 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28445 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
28446 | Py_INCREF(obj); | |
28447 | return Py_BuildValue((char *)""); | |
28448 | } | |
c32bde28 | 28449 | static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28450 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28451 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; |
28452 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
28453 | wxDataObjectSimple *result; | |
28454 | PyObject * obj0 = 0 ; | |
28455 | char *kwnames[] = { | |
28456 | (char *) "format", NULL | |
28457 | }; | |
28458 | ||
28459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
28460 | if (obj0) { | |
093d3ff1 RD |
28461 | { |
28462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28464 | if (arg1 == NULL) { | |
28465 | SWIG_null_ref("wxDataFormat"); | |
28466 | } | |
28467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28468 | } |
28469 | } | |
28470 | { | |
28471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28472 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
28473 | ||
28474 | wxPyEndAllowThreads(__tstate); | |
28475 | if (PyErr_Occurred()) SWIG_fail; | |
28476 | } | |
28477 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
28478 | return resultobj; | |
28479 | fail: | |
28480 | return NULL; | |
28481 | } | |
28482 | ||
28483 | ||
c32bde28 | 28484 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28485 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28486 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; |
28487 | wxDataFormat *result; | |
28488 | PyObject * obj0 = 0 ; | |
28489 | char *kwnames[] = { | |
28490 | (char *) "self", NULL | |
28491 | }; | |
28492 | ||
28493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28494 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28495 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28496 | { |
28497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28498 | { | |
28499 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
28500 | result = (wxDataFormat *) &_result_ref; | |
28501 | } | |
28502 | ||
28503 | wxPyEndAllowThreads(__tstate); | |
28504 | if (PyErr_Occurred()) SWIG_fail; | |
28505 | } | |
28506 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
28507 | return resultobj; | |
28508 | fail: | |
28509 | return NULL; | |
28510 | } | |
28511 | ||
28512 | ||
c32bde28 | 28513 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28514 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28515 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; |
28516 | wxDataFormat *arg2 = 0 ; | |
28517 | PyObject * obj0 = 0 ; | |
28518 | PyObject * obj1 = 0 ; | |
28519 | char *kwnames[] = { | |
28520 | (char *) "self",(char *) "format", NULL | |
28521 | }; | |
28522 | ||
28523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28526 | { | |
28527 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28528 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28529 | if (arg2 == NULL) { | |
28530 | SWIG_null_ref("wxDataFormat"); | |
28531 | } | |
28532 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28533 | } |
28534 | { | |
28535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28536 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
28537 | ||
28538 | wxPyEndAllowThreads(__tstate); | |
28539 | if (PyErr_Occurred()) SWIG_fail; | |
28540 | } | |
28541 | Py_INCREF(Py_None); resultobj = Py_None; | |
28542 | return resultobj; | |
28543 | fail: | |
28544 | return NULL; | |
28545 | } | |
28546 | ||
28547 | ||
c32bde28 | 28548 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28549 | PyObject *resultobj = NULL; |
a07a67e6 RD |
28550 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; |
28551 | size_t result; | |
28552 | PyObject * obj0 = 0 ; | |
28553 | char *kwnames[] = { | |
28554 | (char *) "self", NULL | |
28555 | }; | |
28556 | ||
28557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a07a67e6 RD |
28560 | { |
28561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28562 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
28563 | ||
28564 | wxPyEndAllowThreads(__tstate); | |
28565 | if (PyErr_Occurred()) SWIG_fail; | |
28566 | } | |
093d3ff1 | 28567 | { |
7449af73 | 28568 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 28569 | } |
a07a67e6 RD |
28570 | return resultobj; |
28571 | fail: | |
28572 | return NULL; | |
28573 | } | |
28574 | ||
28575 | ||
c32bde28 | 28576 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28577 | PyObject *resultobj = NULL; |
a07a67e6 RD |
28578 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; |
28579 | PyObject *result; | |
28580 | PyObject * obj0 = 0 ; | |
28581 | char *kwnames[] = { | |
28582 | (char *) "self", NULL | |
28583 | }; | |
28584 | ||
28585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28586 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28587 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a07a67e6 RD |
28588 | { |
28589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28590 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
28591 | ||
28592 | wxPyEndAllowThreads(__tstate); | |
28593 | if (PyErr_Occurred()) SWIG_fail; | |
28594 | } | |
28595 | resultobj = result; | |
28596 | return resultobj; | |
28597 | fail: | |
28598 | return NULL; | |
28599 | } | |
28600 | ||
28601 | ||
c32bde28 | 28602 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28603 | PyObject *resultobj = NULL; |
a07a67e6 RD |
28604 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; |
28605 | PyObject *arg2 = (PyObject *) 0 ; | |
28606 | bool result; | |
28607 | PyObject * obj0 = 0 ; | |
28608 | PyObject * obj1 = 0 ; | |
28609 | char *kwnames[] = { | |
28610 | (char *) "self",(char *) "data", NULL | |
28611 | }; | |
28612 | ||
28613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28614 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28615 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a07a67e6 RD |
28616 | arg2 = obj1; |
28617 | { | |
28618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28619 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
28620 | ||
28621 | wxPyEndAllowThreads(__tstate); | |
28622 | if (PyErr_Occurred()) SWIG_fail; | |
28623 | } | |
28624 | { | |
28625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28626 | } | |
28627 | return resultobj; | |
28628 | fail: | |
28629 | return NULL; | |
28630 | } | |
28631 | ||
28632 | ||
c32bde28 | 28633 | static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28634 | PyObject *obj; |
28635 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28636 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
28637 | Py_INCREF(obj); | |
28638 | return Py_BuildValue((char *)""); | |
28639 | } | |
c32bde28 | 28640 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28641 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28642 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; |
28643 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
28644 | wxPyDataObjectSimple *result; | |
28645 | PyObject * obj0 = 0 ; | |
28646 | char *kwnames[] = { | |
28647 | (char *) "format", NULL | |
28648 | }; | |
28649 | ||
28650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
28651 | if (obj0) { | |
093d3ff1 RD |
28652 | { |
28653 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28655 | if (arg1 == NULL) { | |
28656 | SWIG_null_ref("wxDataFormat"); | |
28657 | } | |
28658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28659 | } |
28660 | } | |
28661 | { | |
28662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28663 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
28664 | ||
28665 | wxPyEndAllowThreads(__tstate); | |
28666 | if (PyErr_Occurred()) SWIG_fail; | |
28667 | } | |
28668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
28669 | return resultobj; | |
28670 | fail: | |
28671 | return NULL; | |
28672 | } | |
28673 | ||
28674 | ||
c32bde28 | 28675 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28676 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28677 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; |
28678 | PyObject *arg2 = (PyObject *) 0 ; | |
28679 | PyObject *arg3 = (PyObject *) 0 ; | |
28680 | PyObject * obj0 = 0 ; | |
28681 | PyObject * obj1 = 0 ; | |
28682 | PyObject * obj2 = 0 ; | |
28683 | char *kwnames[] = { | |
28684 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28685 | }; | |
28686 | ||
28687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28690 | arg2 = obj1; |
28691 | arg3 = obj2; | |
28692 | { | |
28693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28694 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28695 | ||
28696 | wxPyEndAllowThreads(__tstate); | |
28697 | if (PyErr_Occurred()) SWIG_fail; | |
28698 | } | |
28699 | Py_INCREF(Py_None); resultobj = Py_None; | |
28700 | return resultobj; | |
28701 | fail: | |
28702 | return NULL; | |
28703 | } | |
28704 | ||
28705 | ||
c32bde28 | 28706 | static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28707 | PyObject *obj; |
28708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28709 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
28710 | Py_INCREF(obj); | |
28711 | return Py_BuildValue((char *)""); | |
28712 | } | |
c32bde28 | 28713 | static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28714 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28715 | wxDataObjectComposite *result; |
28716 | char *kwnames[] = { | |
28717 | NULL | |
28718 | }; | |
28719 | ||
28720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
28721 | { | |
28722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28723 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
28724 | ||
28725 | wxPyEndAllowThreads(__tstate); | |
28726 | if (PyErr_Occurred()) SWIG_fail; | |
28727 | } | |
28728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
28729 | return resultobj; | |
28730 | fail: | |
28731 | return NULL; | |
28732 | } | |
28733 | ||
28734 | ||
c32bde28 | 28735 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28736 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28737 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; |
28738 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
ae8162c8 | 28739 | bool arg3 = (bool) false ; |
d55e5bfc RD |
28740 | PyObject * obj0 = 0 ; |
28741 | PyObject * obj1 = 0 ; | |
28742 | PyObject * obj2 = 0 ; | |
28743 | char *kwnames[] = { | |
28744 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
28745 | }; | |
28746 | ||
28747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectComposite, SWIG_POINTER_EXCEPTION | 0); |
28749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28750 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28751 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 28752 | if (obj2) { |
093d3ff1 | 28753 | { |
7449af73 | 28754 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
28755 | if (SWIG_arg_fail(3)) SWIG_fail; |
28756 | } | |
d55e5bfc RD |
28757 | } |
28758 | { | |
28759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28760 | (arg1)->Add(arg2,arg3); | |
28761 | ||
28762 | wxPyEndAllowThreads(__tstate); | |
28763 | if (PyErr_Occurred()) SWIG_fail; | |
28764 | } | |
28765 | Py_INCREF(Py_None); resultobj = Py_None; | |
28766 | return resultobj; | |
28767 | fail: | |
28768 | return NULL; | |
28769 | } | |
28770 | ||
28771 | ||
c32bde28 | 28772 | static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28773 | PyObject *obj; |
28774 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28775 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
28776 | Py_INCREF(obj); | |
28777 | return Py_BuildValue((char *)""); | |
28778 | } | |
c32bde28 | 28779 | static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28780 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28781 | wxString const &arg1_defvalue = wxPyEmptyString ; |
28782 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28783 | wxTextDataObject *result; | |
ae8162c8 | 28784 | bool temp1 = false ; |
d55e5bfc RD |
28785 | PyObject * obj0 = 0 ; |
28786 | char *kwnames[] = { | |
28787 | (char *) "text", NULL | |
28788 | }; | |
28789 | ||
28790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
28791 | if (obj0) { | |
28792 | { | |
28793 | arg1 = wxString_in_helper(obj0); | |
28794 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 28795 | temp1 = true; |
d55e5bfc RD |
28796 | } |
28797 | } | |
28798 | { | |
28799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28800 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
28801 | ||
28802 | wxPyEndAllowThreads(__tstate); | |
28803 | if (PyErr_Occurred()) SWIG_fail; | |
28804 | } | |
28805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
28806 | { | |
28807 | if (temp1) | |
28808 | delete arg1; | |
28809 | } | |
28810 | return resultobj; | |
28811 | fail: | |
28812 | { | |
28813 | if (temp1) | |
28814 | delete arg1; | |
28815 | } | |
28816 | return NULL; | |
28817 | } | |
28818 | ||
28819 | ||
c32bde28 | 28820 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28821 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28822 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; |
28823 | size_t result; | |
28824 | PyObject * obj0 = 0 ; | |
28825 | char *kwnames[] = { | |
28826 | (char *) "self", NULL | |
28827 | }; | |
28828 | ||
28829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
28831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28832 | { |
28833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28834 | result = (size_t)(arg1)->GetTextLength(); | |
28835 | ||
28836 | wxPyEndAllowThreads(__tstate); | |
28837 | if (PyErr_Occurred()) SWIG_fail; | |
28838 | } | |
093d3ff1 | 28839 | { |
7449af73 | 28840 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 28841 | } |
d55e5bfc RD |
28842 | return resultobj; |
28843 | fail: | |
28844 | return NULL; | |
28845 | } | |
28846 | ||
28847 | ||
c32bde28 | 28848 | static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28849 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28850 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; |
28851 | wxString result; | |
28852 | PyObject * obj0 = 0 ; | |
28853 | char *kwnames[] = { | |
28854 | (char *) "self", NULL | |
28855 | }; | |
28856 | ||
28857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
28859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28860 | { |
28861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28862 | result = (arg1)->GetText(); | |
28863 | ||
28864 | wxPyEndAllowThreads(__tstate); | |
28865 | if (PyErr_Occurred()) SWIG_fail; | |
28866 | } | |
28867 | { | |
28868 | #if wxUSE_UNICODE | |
28869 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28870 | #else | |
28871 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28872 | #endif | |
28873 | } | |
28874 | return resultobj; | |
28875 | fail: | |
28876 | return NULL; | |
28877 | } | |
28878 | ||
28879 | ||
c32bde28 | 28880 | static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28881 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28882 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; |
28883 | wxString *arg2 = 0 ; | |
ae8162c8 | 28884 | bool temp2 = false ; |
d55e5bfc RD |
28885 | PyObject * obj0 = 0 ; |
28886 | PyObject * obj1 = 0 ; | |
28887 | char *kwnames[] = { | |
28888 | (char *) "self",(char *) "text", NULL | |
28889 | }; | |
28890 | ||
28891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28892 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
28893 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28894 | { |
28895 | arg2 = wxString_in_helper(obj1); | |
28896 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28897 | temp2 = true; |
d55e5bfc RD |
28898 | } |
28899 | { | |
28900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28901 | (arg1)->SetText((wxString const &)*arg2); | |
28902 | ||
28903 | wxPyEndAllowThreads(__tstate); | |
28904 | if (PyErr_Occurred()) SWIG_fail; | |
28905 | } | |
28906 | Py_INCREF(Py_None); resultobj = Py_None; | |
28907 | { | |
28908 | if (temp2) | |
28909 | delete arg2; | |
28910 | } | |
28911 | return resultobj; | |
28912 | fail: | |
28913 | { | |
28914 | if (temp2) | |
28915 | delete arg2; | |
28916 | } | |
28917 | return NULL; | |
28918 | } | |
28919 | ||
28920 | ||
c32bde28 | 28921 | static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28922 | PyObject *obj; |
28923 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28924 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
28925 | Py_INCREF(obj); | |
28926 | return Py_BuildValue((char *)""); | |
28927 | } | |
c32bde28 | 28928 | static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28929 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28930 | wxString const &arg1_defvalue = wxPyEmptyString ; |
28931 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28932 | wxPyTextDataObject *result; | |
ae8162c8 | 28933 | bool temp1 = false ; |
d55e5bfc RD |
28934 | PyObject * obj0 = 0 ; |
28935 | char *kwnames[] = { | |
28936 | (char *) "text", NULL | |
28937 | }; | |
28938 | ||
28939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
28940 | if (obj0) { | |
28941 | { | |
28942 | arg1 = wxString_in_helper(obj0); | |
28943 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 28944 | temp1 = true; |
d55e5bfc RD |
28945 | } |
28946 | } | |
28947 | { | |
28948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28949 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
28950 | ||
28951 | wxPyEndAllowThreads(__tstate); | |
28952 | if (PyErr_Occurred()) SWIG_fail; | |
28953 | } | |
28954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
28955 | { | |
28956 | if (temp1) | |
28957 | delete arg1; | |
28958 | } | |
28959 | return resultobj; | |
28960 | fail: | |
28961 | { | |
28962 | if (temp1) | |
28963 | delete arg1; | |
28964 | } | |
28965 | return NULL; | |
28966 | } | |
28967 | ||
28968 | ||
c32bde28 | 28969 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 28970 | PyObject *resultobj = NULL; |
d55e5bfc RD |
28971 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; |
28972 | PyObject *arg2 = (PyObject *) 0 ; | |
28973 | PyObject *arg3 = (PyObject *) 0 ; | |
28974 | PyObject * obj0 = 0 ; | |
28975 | PyObject * obj1 = 0 ; | |
28976 | PyObject * obj2 = 0 ; | |
28977 | char *kwnames[] = { | |
28978 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28979 | }; | |
28980 | ||
28981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28982 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
28983 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28984 | arg2 = obj1; |
28985 | arg3 = obj2; | |
28986 | { | |
28987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28988 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28989 | ||
28990 | wxPyEndAllowThreads(__tstate); | |
28991 | if (PyErr_Occurred()) SWIG_fail; | |
28992 | } | |
28993 | Py_INCREF(Py_None); resultobj = Py_None; | |
28994 | return resultobj; | |
28995 | fail: | |
28996 | return NULL; | |
28997 | } | |
28998 | ||
28999 | ||
c32bde28 | 29000 | static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29001 | PyObject *obj; |
29002 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29003 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
29004 | Py_INCREF(obj); | |
29005 | return Py_BuildValue((char *)""); | |
29006 | } | |
c32bde28 | 29007 | static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29008 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29009 | wxBitmap const &arg1_defvalue = wxNullBitmap ; |
29010 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
29011 | wxBitmapDataObject *result; | |
29012 | PyObject * obj0 = 0 ; | |
29013 | char *kwnames[] = { | |
29014 | (char *) "bitmap", NULL | |
29015 | }; | |
29016 | ||
29017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
29018 | if (obj0) { | |
093d3ff1 RD |
29019 | { |
29020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
29021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29022 | if (arg1 == NULL) { | |
29023 | SWIG_null_ref("wxBitmap"); | |
29024 | } | |
29025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29026 | } |
29027 | } | |
29028 | { | |
29029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29030 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
29031 | ||
29032 | wxPyEndAllowThreads(__tstate); | |
29033 | if (PyErr_Occurred()) SWIG_fail; | |
29034 | } | |
29035 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
29036 | return resultobj; | |
29037 | fail: | |
29038 | return NULL; | |
29039 | } | |
29040 | ||
29041 | ||
c32bde28 | 29042 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29043 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29044 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; |
29045 | wxBitmap result; | |
29046 | PyObject * obj0 = 0 ; | |
29047 | char *kwnames[] = { | |
29048 | (char *) "self", NULL | |
29049 | }; | |
29050 | ||
29051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
29053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29054 | { |
29055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29056 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
29057 | ||
29058 | wxPyEndAllowThreads(__tstate); | |
29059 | if (PyErr_Occurred()) SWIG_fail; | |
29060 | } | |
29061 | { | |
29062 | wxBitmap * resultptr; | |
7449af73 | 29063 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
d55e5bfc RD |
29064 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
29065 | } | |
29066 | return resultobj; | |
29067 | fail: | |
29068 | return NULL; | |
29069 | } | |
29070 | ||
29071 | ||
c32bde28 | 29072 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29073 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29074 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; |
29075 | wxBitmap *arg2 = 0 ; | |
29076 | PyObject * obj0 = 0 ; | |
29077 | PyObject * obj1 = 0 ; | |
29078 | char *kwnames[] = { | |
29079 | (char *) "self",(char *) "bitmap", NULL | |
29080 | }; | |
29081 | ||
29082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
29084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29085 | { | |
29086 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
29087 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29088 | if (arg2 == NULL) { | |
29089 | SWIG_null_ref("wxBitmap"); | |
29090 | } | |
29091 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29092 | } |
29093 | { | |
29094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29095 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
29096 | ||
29097 | wxPyEndAllowThreads(__tstate); | |
29098 | if (PyErr_Occurred()) SWIG_fail; | |
29099 | } | |
29100 | Py_INCREF(Py_None); resultobj = Py_None; | |
29101 | return resultobj; | |
29102 | fail: | |
29103 | return NULL; | |
29104 | } | |
29105 | ||
29106 | ||
c32bde28 | 29107 | static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29108 | PyObject *obj; |
29109 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29110 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
29111 | Py_INCREF(obj); | |
29112 | return Py_BuildValue((char *)""); | |
29113 | } | |
c32bde28 | 29114 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29115 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29116 | wxBitmap const &arg1_defvalue = wxNullBitmap ; |
29117 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
29118 | wxPyBitmapDataObject *result; | |
29119 | PyObject * obj0 = 0 ; | |
29120 | char *kwnames[] = { | |
29121 | (char *) "bitmap", NULL | |
29122 | }; | |
29123 | ||
29124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
29125 | if (obj0) { | |
093d3ff1 RD |
29126 | { |
29127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
29128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29129 | if (arg1 == NULL) { | |
29130 | SWIG_null_ref("wxBitmap"); | |
29131 | } | |
29132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29133 | } |
29134 | } | |
29135 | { | |
29136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29137 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
29138 | ||
29139 | wxPyEndAllowThreads(__tstate); | |
29140 | if (PyErr_Occurred()) SWIG_fail; | |
29141 | } | |
29142 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
29143 | return resultobj; | |
29144 | fail: | |
29145 | return NULL; | |
29146 | } | |
29147 | ||
29148 | ||
c32bde28 | 29149 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29150 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29151 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; |
29152 | PyObject *arg2 = (PyObject *) 0 ; | |
29153 | PyObject *arg3 = (PyObject *) 0 ; | |
29154 | PyObject * obj0 = 0 ; | |
29155 | PyObject * obj1 = 0 ; | |
29156 | PyObject * obj2 = 0 ; | |
29157 | char *kwnames[] = { | |
29158 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29159 | }; | |
29160 | ||
29161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29162 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
29163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29164 | arg2 = obj1; |
29165 | arg3 = obj2; | |
29166 | { | |
29167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29168 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29169 | ||
29170 | wxPyEndAllowThreads(__tstate); | |
29171 | if (PyErr_Occurred()) SWIG_fail; | |
29172 | } | |
29173 | Py_INCREF(Py_None); resultobj = Py_None; | |
29174 | return resultobj; | |
29175 | fail: | |
29176 | return NULL; | |
29177 | } | |
29178 | ||
29179 | ||
c32bde28 | 29180 | static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29181 | PyObject *obj; |
29182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29183 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
29184 | Py_INCREF(obj); | |
29185 | return Py_BuildValue((char *)""); | |
29186 | } | |
c32bde28 | 29187 | static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29188 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29189 | wxFileDataObject *result; |
29190 | char *kwnames[] = { | |
29191 | NULL | |
29192 | }; | |
29193 | ||
29194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
29195 | { | |
29196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29197 | result = (wxFileDataObject *)new wxFileDataObject(); | |
29198 | ||
29199 | wxPyEndAllowThreads(__tstate); | |
29200 | if (PyErr_Occurred()) SWIG_fail; | |
29201 | } | |
29202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
29203 | return resultobj; | |
29204 | fail: | |
29205 | return NULL; | |
29206 | } | |
29207 | ||
29208 | ||
c32bde28 | 29209 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29210 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29211 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; |
29212 | wxArrayString *result; | |
29213 | PyObject * obj0 = 0 ; | |
29214 | char *kwnames[] = { | |
29215 | (char *) "self", NULL | |
29216 | }; | |
29217 | ||
29218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29219 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0); |
29220 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29221 | { |
29222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29223 | { | |
29224 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
29225 | result = (wxArrayString *) &_result_ref; | |
29226 | } | |
29227 | ||
29228 | wxPyEndAllowThreads(__tstate); | |
29229 | if (PyErr_Occurred()) SWIG_fail; | |
29230 | } | |
29231 | { | |
29232 | resultobj = wxArrayString2PyList_helper(*result); | |
29233 | } | |
29234 | return resultobj; | |
29235 | fail: | |
29236 | return NULL; | |
29237 | } | |
29238 | ||
29239 | ||
c32bde28 | 29240 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29241 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29242 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; |
29243 | wxString *arg2 = 0 ; | |
ae8162c8 | 29244 | bool temp2 = false ; |
d55e5bfc RD |
29245 | PyObject * obj0 = 0 ; |
29246 | PyObject * obj1 = 0 ; | |
29247 | char *kwnames[] = { | |
29248 | (char *) "self",(char *) "filename", NULL | |
29249 | }; | |
29250 | ||
29251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29252 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0); |
29253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29254 | { |
29255 | arg2 = wxString_in_helper(obj1); | |
29256 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29257 | temp2 = true; |
d55e5bfc RD |
29258 | } |
29259 | { | |
29260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29261 | (arg1)->AddFile((wxString const &)*arg2); | |
29262 | ||
29263 | wxPyEndAllowThreads(__tstate); | |
29264 | if (PyErr_Occurred()) SWIG_fail; | |
29265 | } | |
29266 | Py_INCREF(Py_None); resultobj = Py_None; | |
29267 | { | |
29268 | if (temp2) | |
29269 | delete arg2; | |
29270 | } | |
29271 | return resultobj; | |
29272 | fail: | |
29273 | { | |
29274 | if (temp2) | |
29275 | delete arg2; | |
29276 | } | |
29277 | return NULL; | |
29278 | } | |
29279 | ||
29280 | ||
c32bde28 | 29281 | static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29282 | PyObject *obj; |
29283 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29284 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
29285 | Py_INCREF(obj); | |
29286 | return Py_BuildValue((char *)""); | |
29287 | } | |
fef4c27a | 29288 | static PyObject *_wrap_new_CustomDataObject__SWIG_0(PyObject *, PyObject *args) { |
7449af73 | 29289 | PyObject *resultobj = NULL; |
fef4c27a | 29290 | wxDataFormat *arg1 = 0 ; |
d55e5bfc RD |
29291 | wxCustomDataObject *result; |
29292 | PyObject * obj0 = 0 ; | |
d55e5bfc | 29293 | |
fef4c27a RD |
29294 | if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail; |
29295 | { | |
29296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
29297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29298 | if (arg1 == NULL) { | |
29299 | SWIG_null_ref("wxDataFormat"); | |
d55e5bfc | 29300 | } |
fef4c27a | 29301 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc RD |
29302 | } |
29303 | { | |
29304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29305 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
29306 | ||
29307 | wxPyEndAllowThreads(__tstate); | |
29308 | if (PyErr_Occurred()) SWIG_fail; | |
29309 | } | |
29310 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
29311 | return resultobj; | |
29312 | fail: | |
29313 | return NULL; | |
29314 | } | |
29315 | ||
29316 | ||
fef4c27a | 29317 | static PyObject *_wrap_new_CustomDataObject__SWIG_1(PyObject *, PyObject *args) { |
7449af73 | 29318 | PyObject *resultobj = NULL; |
fef4c27a RD |
29319 | wxString *arg1 = 0 ; |
29320 | wxCustomDataObject *result; | |
29321 | bool temp1 = false ; | |
29322 | PyObject * obj0 = 0 ; | |
29323 | ||
29324 | if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail; | |
29325 | { | |
29326 | arg1 = wxString_in_helper(obj0); | |
29327 | if (arg1 == NULL) SWIG_fail; | |
29328 | temp1 = true; | |
29329 | } | |
29330 | { | |
29331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29332 | result = (wxCustomDataObject *)new_wxCustomDataObject__SWIG_1((wxString const &)*arg1); | |
29333 | ||
29334 | wxPyEndAllowThreads(__tstate); | |
29335 | if (PyErr_Occurred()) SWIG_fail; | |
29336 | } | |
29337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
29338 | { | |
29339 | if (temp1) | |
29340 | delete arg1; | |
29341 | } | |
29342 | return resultobj; | |
29343 | fail: | |
29344 | { | |
29345 | if (temp1) | |
29346 | delete arg1; | |
29347 | } | |
29348 | return NULL; | |
29349 | } | |
29350 | ||
29351 | ||
29352 | static PyObject *_wrap_new_CustomDataObject__SWIG_2(PyObject *, PyObject *args) { | |
7449af73 | 29353 | PyObject *resultobj = NULL; |
fef4c27a RD |
29354 | wxCustomDataObject *result; |
29355 | ||
29356 | if(!PyArg_ParseTuple(args,(char *)":new_CustomDataObject")) goto fail; | |
29357 | { | |
29358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29359 | result = (wxCustomDataObject *)new wxCustomDataObject(); | |
29360 | ||
29361 | wxPyEndAllowThreads(__tstate); | |
29362 | if (PyErr_Occurred()) SWIG_fail; | |
29363 | } | |
29364 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
29365 | return resultobj; | |
29366 | fail: | |
29367 | return NULL; | |
29368 | } | |
29369 | ||
29370 | ||
29371 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args) { | |
29372 | int argc; | |
29373 | PyObject *argv[2]; | |
29374 | int ii; | |
29375 | ||
29376 | argc = PyObject_Length(args); | |
29377 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
29378 | argv[ii] = PyTuple_GetItem(args,ii); | |
29379 | } | |
29380 | if (argc == 0) { | |
29381 | return _wrap_new_CustomDataObject__SWIG_2(self,args); | |
29382 | } | |
29383 | if (argc == 1) { | |
29384 | int _v; | |
29385 | { | |
29386 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
29387 | } | |
29388 | if (_v) { | |
29389 | return _wrap_new_CustomDataObject__SWIG_1(self,args); | |
29390 | } | |
29391 | } | |
29392 | if (argc == 1) { | |
29393 | int _v; | |
29394 | { | |
29395 | void *ptr = 0; | |
29396 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
29397 | _v = 0; | |
29398 | PyErr_Clear(); | |
29399 | } else { | |
29400 | _v = (ptr != 0); | |
29401 | } | |
29402 | } | |
29403 | if (_v) { | |
29404 | return _wrap_new_CustomDataObject__SWIG_0(self,args); | |
29405 | } | |
29406 | } | |
29407 | ||
29408 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_CustomDataObject'"); | |
29409 | return NULL; | |
29410 | } | |
29411 | ||
29412 | ||
c32bde28 | 29413 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29414 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29415 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; |
29416 | PyObject *arg2 = (PyObject *) 0 ; | |
29417 | bool result; | |
29418 | PyObject * obj0 = 0 ; | |
29419 | PyObject * obj1 = 0 ; | |
29420 | char *kwnames[] = { | |
29421 | (char *) "self",(char *) "data", NULL | |
29422 | }; | |
29423 | ||
29424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
29426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29427 | arg2 = obj1; |
29428 | { | |
29429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29430 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
29431 | ||
29432 | wxPyEndAllowThreads(__tstate); | |
29433 | if (PyErr_Occurred()) SWIG_fail; | |
29434 | } | |
29435 | { | |
29436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29437 | } | |
29438 | return resultobj; | |
29439 | fail: | |
29440 | return NULL; | |
29441 | } | |
29442 | ||
29443 | ||
c32bde28 | 29444 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29445 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29446 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; |
29447 | size_t result; | |
29448 | PyObject * obj0 = 0 ; | |
29449 | char *kwnames[] = { | |
29450 | (char *) "self", NULL | |
29451 | }; | |
29452 | ||
29453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
29455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29456 | { |
29457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29458 | result = (size_t)(arg1)->GetSize(); | |
29459 | ||
29460 | wxPyEndAllowThreads(__tstate); | |
29461 | if (PyErr_Occurred()) SWIG_fail; | |
29462 | } | |
093d3ff1 | 29463 | { |
7449af73 | 29464 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 29465 | } |
d55e5bfc RD |
29466 | return resultobj; |
29467 | fail: | |
29468 | return NULL; | |
29469 | } | |
29470 | ||
29471 | ||
c32bde28 | 29472 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29473 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29474 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; |
29475 | PyObject *result; | |
29476 | PyObject * obj0 = 0 ; | |
29477 | char *kwnames[] = { | |
29478 | (char *) "self", NULL | |
29479 | }; | |
29480 | ||
29481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
29483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29484 | { |
29485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29486 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
29487 | ||
29488 | wxPyEndAllowThreads(__tstate); | |
29489 | if (PyErr_Occurred()) SWIG_fail; | |
29490 | } | |
29491 | resultobj = result; | |
29492 | return resultobj; | |
29493 | fail: | |
29494 | return NULL; | |
29495 | } | |
29496 | ||
29497 | ||
c32bde28 | 29498 | static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29499 | PyObject *obj; |
29500 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29501 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
29502 | Py_INCREF(obj); | |
29503 | return Py_BuildValue((char *)""); | |
29504 | } | |
c32bde28 | 29505 | static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29506 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29507 | wxURLDataObject *result; |
29508 | char *kwnames[] = { | |
29509 | NULL | |
29510 | }; | |
29511 | ||
29512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
29513 | { | |
29514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29515 | result = (wxURLDataObject *)new wxURLDataObject(); | |
29516 | ||
29517 | wxPyEndAllowThreads(__tstate); | |
29518 | if (PyErr_Occurred()) SWIG_fail; | |
29519 | } | |
29520 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
29521 | return resultobj; | |
29522 | fail: | |
29523 | return NULL; | |
29524 | } | |
29525 | ||
29526 | ||
c32bde28 | 29527 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29528 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29529 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; |
29530 | wxString result; | |
29531 | PyObject * obj0 = 0 ; | |
29532 | char *kwnames[] = { | |
29533 | (char *) "self", NULL | |
29534 | }; | |
29535 | ||
29536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0); |
29538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29539 | { |
29540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29541 | result = (arg1)->GetURL(); | |
29542 | ||
29543 | wxPyEndAllowThreads(__tstate); | |
29544 | if (PyErr_Occurred()) SWIG_fail; | |
29545 | } | |
29546 | { | |
29547 | #if wxUSE_UNICODE | |
29548 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29549 | #else | |
29550 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29551 | #endif | |
29552 | } | |
29553 | return resultobj; | |
29554 | fail: | |
29555 | return NULL; | |
29556 | } | |
29557 | ||
29558 | ||
c32bde28 | 29559 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29560 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29561 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; |
29562 | wxString *arg2 = 0 ; | |
ae8162c8 | 29563 | bool temp2 = false ; |
d55e5bfc RD |
29564 | PyObject * obj0 = 0 ; |
29565 | PyObject * obj1 = 0 ; | |
29566 | char *kwnames[] = { | |
29567 | (char *) "self",(char *) "url", NULL | |
29568 | }; | |
29569 | ||
29570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0); |
29572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29573 | { |
29574 | arg2 = wxString_in_helper(obj1); | |
29575 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29576 | temp2 = true; |
d55e5bfc RD |
29577 | } |
29578 | { | |
29579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29580 | (arg1)->SetURL((wxString const &)*arg2); | |
29581 | ||
29582 | wxPyEndAllowThreads(__tstate); | |
29583 | if (PyErr_Occurred()) SWIG_fail; | |
29584 | } | |
29585 | Py_INCREF(Py_None); resultobj = Py_None; | |
29586 | { | |
29587 | if (temp2) | |
29588 | delete arg2; | |
29589 | } | |
29590 | return resultobj; | |
29591 | fail: | |
29592 | { | |
29593 | if (temp2) | |
29594 | delete arg2; | |
29595 | } | |
29596 | return NULL; | |
29597 | } | |
29598 | ||
29599 | ||
c32bde28 | 29600 | static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29601 | PyObject *obj; |
29602 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29603 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
29604 | Py_INCREF(obj); | |
29605 | return Py_BuildValue((char *)""); | |
29606 | } | |
c32bde28 | 29607 | static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29608 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29609 | wxMetafileDataObject *result; |
29610 | char *kwnames[] = { | |
29611 | NULL | |
29612 | }; | |
29613 | ||
29614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
29615 | { | |
29616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29617 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
29618 | ||
29619 | wxPyEndAllowThreads(__tstate); | |
29620 | if (PyErr_Occurred()) SWIG_fail; | |
29621 | } | |
29622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
29623 | return resultobj; | |
29624 | fail: | |
29625 | return NULL; | |
29626 | } | |
29627 | ||
29628 | ||
c32bde28 | 29629 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29630 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29631 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; |
29632 | wxMetafile *arg2 = 0 ; | |
29633 | PyObject * obj0 = 0 ; | |
29634 | PyObject * obj1 = 0 ; | |
29635 | char *kwnames[] = { | |
29636 | (char *) "self",(char *) "metafile", NULL | |
29637 | }; | |
29638 | ||
29639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_EXCEPTION | 0); |
29641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 29642 | { |
093d3ff1 RD |
29643 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMetafile, SWIG_POINTER_EXCEPTION | 0); |
29644 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29645 | if (arg2 == NULL) { | |
29646 | SWIG_null_ref("wxMetafile"); | |
29647 | } | |
29648 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29649 | } | |
29650 | { | |
29651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc RD |
29652 | (arg1)->SetMetafile((wxMetafile const &)*arg2); |
29653 | ||
29654 | wxPyEndAllowThreads(__tstate); | |
29655 | if (PyErr_Occurred()) SWIG_fail; | |
29656 | } | |
29657 | Py_INCREF(Py_None); resultobj = Py_None; | |
29658 | return resultobj; | |
29659 | fail: | |
29660 | return NULL; | |
29661 | } | |
29662 | ||
29663 | ||
c32bde28 | 29664 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29665 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29666 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; |
29667 | wxMetafile result; | |
29668 | PyObject * obj0 = 0 ; | |
29669 | char *kwnames[] = { | |
29670 | (char *) "self", NULL | |
29671 | }; | |
29672 | ||
29673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_EXCEPTION | 0); |
29675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29676 | { |
29677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29678 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
29679 | ||
29680 | wxPyEndAllowThreads(__tstate); | |
29681 | if (PyErr_Occurred()) SWIG_fail; | |
29682 | } | |
29683 | { | |
29684 | wxMetafile * resultptr; | |
7449af73 | 29685 | resultptr = new wxMetafile(static_cast<wxMetafile & >(result)); |
d55e5bfc RD |
29686 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); |
29687 | } | |
29688 | return resultobj; | |
29689 | fail: | |
29690 | return NULL; | |
29691 | } | |
29692 | ||
29693 | ||
c32bde28 | 29694 | static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29695 | PyObject *obj; |
29696 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29697 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
29698 | Py_INCREF(obj); | |
29699 | return Py_BuildValue((char *)""); | |
29700 | } | |
c32bde28 | 29701 | static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29702 | PyObject *resultobj = NULL; |
093d3ff1 | 29703 | wxDragResult arg1 ; |
d55e5bfc RD |
29704 | bool result; |
29705 | PyObject * obj0 = 0 ; | |
29706 | char *kwnames[] = { | |
29707 | (char *) "res", NULL | |
29708 | }; | |
29709 | ||
29710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
093d3ff1 | 29711 | { |
7449af73 | 29712 | arg1 = static_cast<wxDragResult >(SWIG_As_int(obj0)); |
093d3ff1 RD |
29713 | if (SWIG_arg_fail(1)) SWIG_fail; |
29714 | } | |
d55e5bfc RD |
29715 | { |
29716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 29717 | result = (bool)wxIsDragResultOk(arg1); |
d55e5bfc RD |
29718 | |
29719 | wxPyEndAllowThreads(__tstate); | |
29720 | if (PyErr_Occurred()) SWIG_fail; | |
29721 | } | |
29722 | { | |
29723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29724 | } | |
29725 | return resultobj; | |
29726 | fail: | |
29727 | return NULL; | |
29728 | } | |
29729 | ||
29730 | ||
c32bde28 | 29731 | static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29732 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29733 | wxWindow *arg1 = (wxWindow *) 0 ; |
29734 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29735 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29736 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
29737 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
29738 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
29739 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
29740 | wxPyDropSource *result; | |
29741 | PyObject * obj0 = 0 ; | |
29742 | PyObject * obj1 = 0 ; | |
29743 | PyObject * obj2 = 0 ; | |
29744 | PyObject * obj3 = 0 ; | |
29745 | char *kwnames[] = { | |
29746 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
29747 | }; | |
29748 | ||
29749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
29750 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29751 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 29752 | if (obj1) { |
093d3ff1 RD |
29753 | { |
29754 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
29755 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29756 | if (arg2 == NULL) { | |
29757 | SWIG_null_ref("wxCursor"); | |
29758 | } | |
29759 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29760 | } |
29761 | } | |
29762 | if (obj2) { | |
093d3ff1 RD |
29763 | { |
29764 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
29765 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29766 | if (arg3 == NULL) { | |
29767 | SWIG_null_ref("wxCursor"); | |
29768 | } | |
29769 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
29770 | } |
29771 | } | |
29772 | if (obj3) { | |
093d3ff1 RD |
29773 | { |
29774 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
29775 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29776 | if (arg4 == NULL) { | |
29777 | SWIG_null_ref("wxCursor"); | |
29778 | } | |
29779 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
29780 | } |
29781 | } | |
29782 | { | |
29783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29784 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
29785 | ||
29786 | wxPyEndAllowThreads(__tstate); | |
29787 | if (PyErr_Occurred()) SWIG_fail; | |
29788 | } | |
29789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
29790 | return resultobj; | |
29791 | fail: | |
29792 | return NULL; | |
29793 | } | |
29794 | ||
29795 | ||
c32bde28 | 29796 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29797 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29798 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
29799 | PyObject *arg2 = (PyObject *) 0 ; | |
29800 | PyObject *arg3 = (PyObject *) 0 ; | |
29801 | int arg4 ; | |
29802 | PyObject * obj0 = 0 ; | |
29803 | PyObject * obj1 = 0 ; | |
29804 | PyObject * obj2 = 0 ; | |
29805 | PyObject * obj3 = 0 ; | |
29806 | char *kwnames[] = { | |
29807 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
29808 | }; | |
29809 | ||
29810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
29811 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
29812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29813 | arg2 = obj1; |
29814 | arg3 = obj2; | |
093d3ff1 | 29815 | { |
7449af73 | 29816 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
29817 | if (SWIG_arg_fail(4)) SWIG_fail; |
29818 | } | |
d55e5bfc RD |
29819 | { |
29820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29821 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
29822 | ||
29823 | wxPyEndAllowThreads(__tstate); | |
29824 | if (PyErr_Occurred()) SWIG_fail; | |
29825 | } | |
29826 | Py_INCREF(Py_None); resultobj = Py_None; | |
29827 | return resultobj; | |
29828 | fail: | |
29829 | return NULL; | |
29830 | } | |
29831 | ||
29832 | ||
c32bde28 | 29833 | static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29834 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29835 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
29836 | PyObject * obj0 = 0 ; | |
29837 | char *kwnames[] = { | |
29838 | (char *) "self", NULL | |
29839 | }; | |
29840 | ||
29841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
29843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29844 | { |
29845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29846 | delete arg1; | |
29847 | ||
29848 | wxPyEndAllowThreads(__tstate); | |
29849 | if (PyErr_Occurred()) SWIG_fail; | |
29850 | } | |
29851 | Py_INCREF(Py_None); resultobj = Py_None; | |
29852 | return resultobj; | |
29853 | fail: | |
29854 | return NULL; | |
29855 | } | |
29856 | ||
29857 | ||
c32bde28 | 29858 | static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29859 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29860 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
29861 | wxDataObject *arg2 = 0 ; | |
29862 | PyObject * obj0 = 0 ; | |
29863 | PyObject * obj1 = 0 ; | |
29864 | char *kwnames[] = { | |
29865 | (char *) "self",(char *) "data", NULL | |
29866 | }; | |
29867 | ||
29868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29869 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
29870 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29871 | { | |
29872 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); | |
29873 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29874 | if (arg2 == NULL) { | |
29875 | SWIG_null_ref("wxDataObject"); | |
29876 | } | |
29877 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29878 | } |
29879 | { | |
29880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29881 | (arg1)->SetData(*arg2); | |
29882 | ||
29883 | wxPyEndAllowThreads(__tstate); | |
29884 | if (PyErr_Occurred()) SWIG_fail; | |
29885 | } | |
29886 | Py_INCREF(Py_None); resultobj = Py_None; | |
29887 | return resultobj; | |
29888 | fail: | |
29889 | return NULL; | |
29890 | } | |
29891 | ||
29892 | ||
c32bde28 | 29893 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29894 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29895 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
29896 | wxDataObject *result; | |
29897 | PyObject * obj0 = 0 ; | |
29898 | char *kwnames[] = { | |
29899 | (char *) "self", NULL | |
29900 | }; | |
29901 | ||
29902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
29904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29905 | { |
29906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29907 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
29908 | ||
29909 | wxPyEndAllowThreads(__tstate); | |
29910 | if (PyErr_Occurred()) SWIG_fail; | |
29911 | } | |
29912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
29913 | return resultobj; | |
29914 | fail: | |
29915 | return NULL; | |
29916 | } | |
29917 | ||
29918 | ||
c32bde28 | 29919 | static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29920 | PyObject *resultobj = NULL; |
d55e5bfc | 29921 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
093d3ff1 | 29922 | wxDragResult arg2 ; |
d55e5bfc RD |
29923 | wxCursor *arg3 = 0 ; |
29924 | PyObject * obj0 = 0 ; | |
29925 | PyObject * obj1 = 0 ; | |
29926 | PyObject * obj2 = 0 ; | |
29927 | char *kwnames[] = { | |
29928 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
29929 | }; | |
29930 | ||
29931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
29933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29934 | { | |
7449af73 | 29935 | arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1)); |
093d3ff1 RD |
29936 | if (SWIG_arg_fail(2)) SWIG_fail; |
29937 | } | |
29938 | { | |
29939 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
29940 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29941 | if (arg3 == NULL) { | |
29942 | SWIG_null_ref("wxCursor"); | |
29943 | } | |
29944 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
29945 | } |
29946 | { | |
29947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 29948 | (arg1)->SetCursor(arg2,(wxCursor const &)*arg3); |
d55e5bfc RD |
29949 | |
29950 | wxPyEndAllowThreads(__tstate); | |
29951 | if (PyErr_Occurred()) SWIG_fail; | |
29952 | } | |
29953 | Py_INCREF(Py_None); resultobj = Py_None; | |
29954 | return resultobj; | |
29955 | fail: | |
29956 | return NULL; | |
29957 | } | |
29958 | ||
29959 | ||
c32bde28 | 29960 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29961 | PyObject *resultobj = NULL; |
d55e5bfc RD |
29962 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
29963 | int arg2 = (int) wxDrag_CopyOnly ; | |
093d3ff1 | 29964 | wxDragResult result; |
d55e5bfc RD |
29965 | PyObject * obj0 = 0 ; |
29966 | PyObject * obj1 = 0 ; | |
29967 | char *kwnames[] = { | |
29968 | (char *) "self",(char *) "flags", NULL | |
29969 | }; | |
29970 | ||
29971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
29973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 29974 | if (obj1) { |
093d3ff1 | 29975 | { |
7449af73 | 29976 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
29977 | if (SWIG_arg_fail(2)) SWIG_fail; |
29978 | } | |
d55e5bfc RD |
29979 | } |
29980 | { | |
29981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29982 | result = (wxDragResult)(arg1)->DoDragDrop(arg2); |
d55e5bfc RD |
29983 | |
29984 | wxPyEndAllowThreads(__tstate); | |
29985 | if (PyErr_Occurred()) SWIG_fail; | |
29986 | } | |
093d3ff1 | 29987 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29988 | return resultobj; |
29989 | fail: | |
29990 | return NULL; | |
29991 | } | |
29992 | ||
29993 | ||
c32bde28 | 29994 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 29995 | PyObject *resultobj = NULL; |
d55e5bfc | 29996 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
093d3ff1 | 29997 | wxDragResult arg2 ; |
d55e5bfc RD |
29998 | bool result; |
29999 | PyObject * obj0 = 0 ; | |
30000 | PyObject * obj1 = 0 ; | |
30001 | char *kwnames[] = { | |
30002 | (char *) "self",(char *) "effect", NULL | |
30003 | }; | |
30004 | ||
30005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
30007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30008 | { | |
7449af73 | 30009 | arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30010 | if (SWIG_arg_fail(2)) SWIG_fail; |
30011 | } | |
d55e5bfc RD |
30012 | { |
30013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 30014 | result = (bool)(arg1)->base_GiveFeedback(arg2); |
d55e5bfc RD |
30015 | |
30016 | wxPyEndAllowThreads(__tstate); | |
30017 | if (PyErr_Occurred()) SWIG_fail; | |
30018 | } | |
30019 | { | |
30020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30021 | } | |
30022 | return resultobj; | |
30023 | fail: | |
30024 | return NULL; | |
30025 | } | |
30026 | ||
30027 | ||
c32bde28 | 30028 | static PyObject * DropSource_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30029 | PyObject *obj; |
30030 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30031 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
30032 | Py_INCREF(obj); | |
30033 | return Py_BuildValue((char *)""); | |
30034 | } | |
c32bde28 | 30035 | static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30036 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30037 | wxDataObject *arg1 = (wxDataObject *) NULL ; |
30038 | wxPyDropTarget *result; | |
30039 | PyObject * obj0 = 0 ; | |
30040 | char *kwnames[] = { | |
30041 | (char *) "dataObject", NULL | |
30042 | }; | |
30043 | ||
30044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
30045 | if (obj0) { | |
093d3ff1 RD |
30046 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
30047 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30048 | } |
30049 | { | |
30050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30051 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
30052 | ||
30053 | wxPyEndAllowThreads(__tstate); | |
30054 | if (PyErr_Occurred()) SWIG_fail; | |
30055 | } | |
30056 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
30057 | return resultobj; | |
30058 | fail: | |
30059 | return NULL; | |
30060 | } | |
30061 | ||
30062 | ||
c32bde28 | 30063 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30064 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30065 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30066 | PyObject *arg2 = (PyObject *) 0 ; | |
30067 | PyObject *arg3 = (PyObject *) 0 ; | |
30068 | PyObject * obj0 = 0 ; | |
30069 | PyObject * obj1 = 0 ; | |
30070 | PyObject * obj2 = 0 ; | |
30071 | char *kwnames[] = { | |
30072 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30073 | }; | |
30074 | ||
30075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30078 | arg2 = obj1; |
30079 | arg3 = obj2; | |
30080 | { | |
30081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30082 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30083 | ||
30084 | wxPyEndAllowThreads(__tstate); | |
30085 | if (PyErr_Occurred()) SWIG_fail; | |
30086 | } | |
30087 | Py_INCREF(Py_None); resultobj = Py_None; | |
30088 | return resultobj; | |
30089 | fail: | |
30090 | return NULL; | |
30091 | } | |
30092 | ||
30093 | ||
c32bde28 | 30094 | static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30095 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30096 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30097 | PyObject * obj0 = 0 ; | |
30098 | char *kwnames[] = { | |
30099 | (char *) "self", NULL | |
30100 | }; | |
30101 | ||
30102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30105 | { |
30106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30107 | delete arg1; | |
30108 | ||
30109 | wxPyEndAllowThreads(__tstate); | |
30110 | if (PyErr_Occurred()) SWIG_fail; | |
30111 | } | |
30112 | Py_INCREF(Py_None); resultobj = Py_None; | |
30113 | return resultobj; | |
30114 | fail: | |
30115 | return NULL; | |
30116 | } | |
30117 | ||
30118 | ||
c32bde28 | 30119 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30120 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30121 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30122 | wxDataObject *result; | |
30123 | PyObject * obj0 = 0 ; | |
30124 | char *kwnames[] = { | |
30125 | (char *) "self", NULL | |
30126 | }; | |
30127 | ||
30128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30129 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30131 | { |
30132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30133 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
30134 | ||
30135 | wxPyEndAllowThreads(__tstate); | |
30136 | if (PyErr_Occurred()) SWIG_fail; | |
30137 | } | |
30138 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
30139 | return resultobj; | |
30140 | fail: | |
30141 | return NULL; | |
30142 | } | |
30143 | ||
30144 | ||
c32bde28 | 30145 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30146 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30147 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30148 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
30149 | PyObject * obj0 = 0 ; | |
30150 | PyObject * obj1 = 0 ; | |
30151 | char *kwnames[] = { | |
30152 | (char *) "self",(char *) "dataObject", NULL | |
30153 | }; | |
30154 | ||
30155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30156 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30157 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30158 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
30159 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30160 | { |
30161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30162 | (arg1)->SetDataObject(arg2); | |
30163 | ||
30164 | wxPyEndAllowThreads(__tstate); | |
30165 | if (PyErr_Occurred()) SWIG_fail; | |
30166 | } | |
30167 | Py_INCREF(Py_None); resultobj = Py_None; | |
30168 | return resultobj; | |
30169 | fail: | |
30170 | return NULL; | |
30171 | } | |
30172 | ||
30173 | ||
c32bde28 | 30174 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30175 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30176 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30177 | int arg2 ; | |
30178 | int arg3 ; | |
093d3ff1 RD |
30179 | wxDragResult arg4 ; |
30180 | wxDragResult result; | |
d55e5bfc RD |
30181 | PyObject * obj0 = 0 ; |
30182 | PyObject * obj1 = 0 ; | |
30183 | PyObject * obj2 = 0 ; | |
30184 | PyObject * obj3 = 0 ; | |
30185 | char *kwnames[] = { | |
30186 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30187 | }; | |
30188 | ||
30189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
30190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30192 | { | |
7449af73 | 30193 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30194 | if (SWIG_arg_fail(2)) SWIG_fail; |
30195 | } | |
30196 | { | |
7449af73 | 30197 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30198 | if (SWIG_arg_fail(3)) SWIG_fail; |
30199 | } | |
30200 | { | |
7449af73 | 30201 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30202 | if (SWIG_arg_fail(4)) SWIG_fail; |
30203 | } | |
d55e5bfc RD |
30204 | { |
30205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 30206 | result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,arg4); |
d55e5bfc RD |
30207 | |
30208 | wxPyEndAllowThreads(__tstate); | |
30209 | if (PyErr_Occurred()) SWIG_fail; | |
30210 | } | |
093d3ff1 | 30211 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30212 | return resultobj; |
30213 | fail: | |
30214 | return NULL; | |
30215 | } | |
30216 | ||
30217 | ||
c32bde28 | 30218 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30219 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30220 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30221 | int arg2 ; | |
30222 | int arg3 ; | |
093d3ff1 RD |
30223 | wxDragResult arg4 ; |
30224 | wxDragResult result; | |
d55e5bfc RD |
30225 | PyObject * obj0 = 0 ; |
30226 | PyObject * obj1 = 0 ; | |
30227 | PyObject * obj2 = 0 ; | |
30228 | PyObject * obj3 = 0 ; | |
30229 | char *kwnames[] = { | |
30230 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30231 | }; | |
30232 | ||
30233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
30234 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30235 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30236 | { | |
7449af73 | 30237 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30238 | if (SWIG_arg_fail(2)) SWIG_fail; |
30239 | } | |
30240 | { | |
7449af73 | 30241 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30242 | if (SWIG_arg_fail(3)) SWIG_fail; |
30243 | } | |
30244 | { | |
7449af73 | 30245 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30246 | if (SWIG_arg_fail(4)) SWIG_fail; |
30247 | } | |
d55e5bfc RD |
30248 | { |
30249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 30250 | result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,arg4); |
d55e5bfc RD |
30251 | |
30252 | wxPyEndAllowThreads(__tstate); | |
30253 | if (PyErr_Occurred()) SWIG_fail; | |
30254 | } | |
093d3ff1 | 30255 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30256 | return resultobj; |
30257 | fail: | |
30258 | return NULL; | |
30259 | } | |
30260 | ||
30261 | ||
c32bde28 | 30262 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30263 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30264 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30265 | PyObject * obj0 = 0 ; | |
30266 | char *kwnames[] = { | |
30267 | (char *) "self", NULL | |
30268 | }; | |
30269 | ||
30270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30271 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30272 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30273 | { |
30274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30275 | (arg1)->base_OnLeave(); | |
30276 | ||
30277 | wxPyEndAllowThreads(__tstate); | |
30278 | if (PyErr_Occurred()) SWIG_fail; | |
30279 | } | |
30280 | Py_INCREF(Py_None); resultobj = Py_None; | |
30281 | return resultobj; | |
30282 | fail: | |
30283 | return NULL; | |
30284 | } | |
30285 | ||
30286 | ||
c32bde28 | 30287 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30288 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30289 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30290 | int arg2 ; | |
30291 | int arg3 ; | |
30292 | bool result; | |
30293 | PyObject * obj0 = 0 ; | |
30294 | PyObject * obj1 = 0 ; | |
30295 | PyObject * obj2 = 0 ; | |
30296 | char *kwnames[] = { | |
30297 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30298 | }; | |
30299 | ||
30300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30303 | { | |
7449af73 | 30304 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30305 | if (SWIG_arg_fail(2)) SWIG_fail; |
30306 | } | |
30307 | { | |
7449af73 | 30308 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30309 | if (SWIG_arg_fail(3)) SWIG_fail; |
30310 | } | |
d55e5bfc RD |
30311 | { |
30312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30313 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
30314 | ||
30315 | wxPyEndAllowThreads(__tstate); | |
30316 | if (PyErr_Occurred()) SWIG_fail; | |
30317 | } | |
30318 | { | |
30319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30320 | } | |
30321 | return resultobj; | |
30322 | fail: | |
30323 | return NULL; | |
30324 | } | |
30325 | ||
30326 | ||
c32bde28 | 30327 | static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30328 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30329 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30330 | bool result; | |
30331 | PyObject * obj0 = 0 ; | |
30332 | char *kwnames[] = { | |
30333 | (char *) "self", NULL | |
30334 | }; | |
30335 | ||
30336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30339 | { |
30340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30341 | result = (bool)(arg1)->GetData(); | |
30342 | ||
30343 | wxPyEndAllowThreads(__tstate); | |
30344 | if (PyErr_Occurred()) SWIG_fail; | |
30345 | } | |
30346 | { | |
30347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30348 | } | |
30349 | return resultobj; | |
30350 | fail: | |
30351 | return NULL; | |
30352 | } | |
30353 | ||
30354 | ||
0c549c5f | 30355 | static PyObject *_wrap_DropTarget_SetDefaultAction(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30356 | PyObject *resultobj = NULL; |
0c549c5f RD |
30357 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30358 | wxDragResult arg2 ; | |
30359 | PyObject * obj0 = 0 ; | |
30360 | PyObject * obj1 = 0 ; | |
30361 | char *kwnames[] = { | |
30362 | (char *) "self",(char *) "action", NULL | |
30363 | }; | |
30364 | ||
30365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDefaultAction",kwnames,&obj0,&obj1)) goto fail; | |
30366 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); | |
30367 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30368 | { | |
7449af73 | 30369 | arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1)); |
0c549c5f RD |
30370 | if (SWIG_arg_fail(2)) SWIG_fail; |
30371 | } | |
30372 | { | |
30373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 30374 | (arg1)->SetDefaultAction(arg2); |
0c549c5f RD |
30375 | |
30376 | wxPyEndAllowThreads(__tstate); | |
30377 | if (PyErr_Occurred()) SWIG_fail; | |
30378 | } | |
30379 | Py_INCREF(Py_None); resultobj = Py_None; | |
30380 | return resultobj; | |
30381 | fail: | |
30382 | return NULL; | |
30383 | } | |
30384 | ||
30385 | ||
30386 | static PyObject *_wrap_DropTarget_GetDefaultAction(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 30387 | PyObject *resultobj = NULL; |
0c549c5f RD |
30388 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30389 | wxDragResult result; | |
30390 | PyObject * obj0 = 0 ; | |
30391 | char *kwnames[] = { | |
30392 | (char *) "self", NULL | |
30393 | }; | |
30394 | ||
30395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDefaultAction",kwnames,&obj0)) goto fail; | |
30396 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); | |
30397 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30398 | { | |
30399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30400 | result = (wxDragResult)(arg1)->GetDefaultAction(); | |
30401 | ||
30402 | wxPyEndAllowThreads(__tstate); | |
30403 | if (PyErr_Occurred()) SWIG_fail; | |
30404 | } | |
30405 | resultobj = SWIG_From_int((result)); | |
30406 | return resultobj; | |
30407 | fail: | |
30408 | return NULL; | |
30409 | } | |
30410 | ||
30411 | ||
c32bde28 | 30412 | static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30413 | PyObject *obj; |
30414 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30415 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
30416 | Py_INCREF(obj); | |
30417 | return Py_BuildValue((char *)""); | |
30418 | } | |
c32bde28 | 30419 | static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30420 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30421 | wxPyTextDropTarget *result; |
30422 | char *kwnames[] = { | |
30423 | NULL | |
30424 | }; | |
30425 | ||
30426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
30427 | { | |
30428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30429 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
30430 | ||
30431 | wxPyEndAllowThreads(__tstate); | |
30432 | if (PyErr_Occurred()) SWIG_fail; | |
30433 | } | |
30434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
30435 | return resultobj; | |
30436 | fail: | |
30437 | return NULL; | |
30438 | } | |
30439 | ||
30440 | ||
c32bde28 | 30441 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30442 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30443 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
30444 | PyObject *arg2 = (PyObject *) 0 ; | |
30445 | PyObject *arg3 = (PyObject *) 0 ; | |
30446 | PyObject * obj0 = 0 ; | |
30447 | PyObject * obj1 = 0 ; | |
30448 | PyObject * obj2 = 0 ; | |
30449 | char *kwnames[] = { | |
30450 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30451 | }; | |
30452 | ||
30453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30456 | arg2 = obj1; |
30457 | arg3 = obj2; | |
30458 | { | |
30459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30460 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30461 | ||
30462 | wxPyEndAllowThreads(__tstate); | |
30463 | if (PyErr_Occurred()) SWIG_fail; | |
30464 | } | |
30465 | Py_INCREF(Py_None); resultobj = Py_None; | |
30466 | return resultobj; | |
30467 | fail: | |
30468 | return NULL; | |
30469 | } | |
30470 | ||
30471 | ||
c32bde28 | 30472 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30473 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30474 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
30475 | int arg2 ; | |
30476 | int arg3 ; | |
093d3ff1 RD |
30477 | wxDragResult arg4 ; |
30478 | wxDragResult result; | |
d55e5bfc RD |
30479 | PyObject * obj0 = 0 ; |
30480 | PyObject * obj1 = 0 ; | |
30481 | PyObject * obj2 = 0 ; | |
30482 | PyObject * obj3 = 0 ; | |
30483 | char *kwnames[] = { | |
30484 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30485 | }; | |
30486 | ||
30487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
30488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30490 | { | |
7449af73 | 30491 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30492 | if (SWIG_arg_fail(2)) SWIG_fail; |
30493 | } | |
30494 | { | |
7449af73 | 30495 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30496 | if (SWIG_arg_fail(3)) SWIG_fail; |
30497 | } | |
30498 | { | |
7449af73 | 30499 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30500 | if (SWIG_arg_fail(4)) SWIG_fail; |
30501 | } | |
d55e5bfc RD |
30502 | { |
30503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 30504 | result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,arg4); |
d55e5bfc RD |
30505 | |
30506 | wxPyEndAllowThreads(__tstate); | |
30507 | if (PyErr_Occurred()) SWIG_fail; | |
30508 | } | |
093d3ff1 | 30509 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30510 | return resultobj; |
30511 | fail: | |
30512 | return NULL; | |
30513 | } | |
30514 | ||
30515 | ||
c32bde28 | 30516 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30517 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30518 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
30519 | int arg2 ; | |
30520 | int arg3 ; | |
093d3ff1 RD |
30521 | wxDragResult arg4 ; |
30522 | wxDragResult result; | |
d55e5bfc RD |
30523 | PyObject * obj0 = 0 ; |
30524 | PyObject * obj1 = 0 ; | |
30525 | PyObject * obj2 = 0 ; | |
30526 | PyObject * obj3 = 0 ; | |
30527 | char *kwnames[] = { | |
30528 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30529 | }; | |
30530 | ||
30531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
30532 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30533 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30534 | { | |
7449af73 | 30535 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30536 | if (SWIG_arg_fail(2)) SWIG_fail; |
30537 | } | |
30538 | { | |
7449af73 | 30539 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30540 | if (SWIG_arg_fail(3)) SWIG_fail; |
30541 | } | |
30542 | { | |
7449af73 | 30543 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30544 | if (SWIG_arg_fail(4)) SWIG_fail; |
30545 | } | |
d55e5bfc RD |
30546 | { |
30547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 30548 | result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,arg4); |
d55e5bfc RD |
30549 | |
30550 | wxPyEndAllowThreads(__tstate); | |
30551 | if (PyErr_Occurred()) SWIG_fail; | |
30552 | } | |
093d3ff1 | 30553 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30554 | return resultobj; |
30555 | fail: | |
30556 | return NULL; | |
30557 | } | |
30558 | ||
30559 | ||
c32bde28 | 30560 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30561 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30562 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
30563 | PyObject * obj0 = 0 ; | |
30564 | char *kwnames[] = { | |
30565 | (char *) "self", NULL | |
30566 | }; | |
30567 | ||
30568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30571 | { |
30572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30573 | (arg1)->base_OnLeave(); | |
30574 | ||
30575 | wxPyEndAllowThreads(__tstate); | |
30576 | if (PyErr_Occurred()) SWIG_fail; | |
30577 | } | |
30578 | Py_INCREF(Py_None); resultobj = Py_None; | |
30579 | return resultobj; | |
30580 | fail: | |
30581 | return NULL; | |
30582 | } | |
30583 | ||
30584 | ||
c32bde28 | 30585 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30586 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30587 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
30588 | int arg2 ; | |
30589 | int arg3 ; | |
30590 | bool result; | |
30591 | PyObject * obj0 = 0 ; | |
30592 | PyObject * obj1 = 0 ; | |
30593 | PyObject * obj2 = 0 ; | |
30594 | char *kwnames[] = { | |
30595 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30596 | }; | |
30597 | ||
30598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30601 | { | |
7449af73 | 30602 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30603 | if (SWIG_arg_fail(2)) SWIG_fail; |
30604 | } | |
30605 | { | |
7449af73 | 30606 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30607 | if (SWIG_arg_fail(3)) SWIG_fail; |
30608 | } | |
d55e5bfc RD |
30609 | { |
30610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30611 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
30612 | ||
30613 | wxPyEndAllowThreads(__tstate); | |
30614 | if (PyErr_Occurred()) SWIG_fail; | |
30615 | } | |
30616 | { | |
30617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30618 | } | |
30619 | return resultobj; | |
30620 | fail: | |
30621 | return NULL; | |
30622 | } | |
30623 | ||
30624 | ||
c32bde28 | 30625 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30626 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30627 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
30628 | int arg2 ; | |
30629 | int arg3 ; | |
093d3ff1 RD |
30630 | wxDragResult arg4 ; |
30631 | wxDragResult result; | |
d55e5bfc RD |
30632 | PyObject * obj0 = 0 ; |
30633 | PyObject * obj1 = 0 ; | |
30634 | PyObject * obj2 = 0 ; | |
30635 | PyObject * obj3 = 0 ; | |
30636 | char *kwnames[] = { | |
30637 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30638 | }; | |
30639 | ||
30640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
30641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30643 | { | |
7449af73 | 30644 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30645 | if (SWIG_arg_fail(2)) SWIG_fail; |
30646 | } | |
30647 | { | |
7449af73 | 30648 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30649 | if (SWIG_arg_fail(3)) SWIG_fail; |
30650 | } | |
30651 | { | |
7449af73 | 30652 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30653 | if (SWIG_arg_fail(4)) SWIG_fail; |
30654 | } | |
d55e5bfc RD |
30655 | { |
30656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 30657 | result = (wxDragResult)(arg1)->base_OnData(arg2,arg3,arg4); |
d55e5bfc RD |
30658 | |
30659 | wxPyEndAllowThreads(__tstate); | |
30660 | if (PyErr_Occurred()) SWIG_fail; | |
30661 | } | |
093d3ff1 | 30662 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30663 | return resultobj; |
30664 | fail: | |
30665 | return NULL; | |
30666 | } | |
30667 | ||
30668 | ||
c32bde28 | 30669 | static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30670 | PyObject *obj; |
30671 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30672 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
30673 | Py_INCREF(obj); | |
30674 | return Py_BuildValue((char *)""); | |
30675 | } | |
c32bde28 | 30676 | static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30677 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30678 | wxPyFileDropTarget *result; |
30679 | char *kwnames[] = { | |
30680 | NULL | |
30681 | }; | |
30682 | ||
30683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
30684 | { | |
30685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30686 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
30687 | ||
30688 | wxPyEndAllowThreads(__tstate); | |
30689 | if (PyErr_Occurred()) SWIG_fail; | |
30690 | } | |
30691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
30692 | return resultobj; | |
30693 | fail: | |
30694 | return NULL; | |
30695 | } | |
30696 | ||
30697 | ||
c32bde28 | 30698 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30699 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30700 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
30701 | PyObject *arg2 = (PyObject *) 0 ; | |
30702 | PyObject *arg3 = (PyObject *) 0 ; | |
30703 | PyObject * obj0 = 0 ; | |
30704 | PyObject * obj1 = 0 ; | |
30705 | PyObject * obj2 = 0 ; | |
30706 | char *kwnames[] = { | |
30707 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30708 | }; | |
30709 | ||
30710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30711 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30713 | arg2 = obj1; |
30714 | arg3 = obj2; | |
30715 | { | |
30716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30717 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30718 | ||
30719 | wxPyEndAllowThreads(__tstate); | |
30720 | if (PyErr_Occurred()) SWIG_fail; | |
30721 | } | |
30722 | Py_INCREF(Py_None); resultobj = Py_None; | |
30723 | return resultobj; | |
30724 | fail: | |
30725 | return NULL; | |
30726 | } | |
30727 | ||
30728 | ||
c32bde28 | 30729 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30730 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30731 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
30732 | int arg2 ; | |
30733 | int arg3 ; | |
093d3ff1 RD |
30734 | wxDragResult arg4 ; |
30735 | wxDragResult result; | |
d55e5bfc RD |
30736 | PyObject * obj0 = 0 ; |
30737 | PyObject * obj1 = 0 ; | |
30738 | PyObject * obj2 = 0 ; | |
30739 | PyObject * obj3 = 0 ; | |
30740 | char *kwnames[] = { | |
30741 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30742 | }; | |
30743 | ||
30744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
30745 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30746 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30747 | { | |
7449af73 | 30748 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30749 | if (SWIG_arg_fail(2)) SWIG_fail; |
30750 | } | |
30751 | { | |
7449af73 | 30752 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30753 | if (SWIG_arg_fail(3)) SWIG_fail; |
30754 | } | |
30755 | { | |
7449af73 | 30756 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30757 | if (SWIG_arg_fail(4)) SWIG_fail; |
30758 | } | |
d55e5bfc RD |
30759 | { |
30760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 30761 | result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,arg4); |
d55e5bfc RD |
30762 | |
30763 | wxPyEndAllowThreads(__tstate); | |
30764 | if (PyErr_Occurred()) SWIG_fail; | |
30765 | } | |
093d3ff1 | 30766 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30767 | return resultobj; |
30768 | fail: | |
30769 | return NULL; | |
30770 | } | |
30771 | ||
30772 | ||
c32bde28 | 30773 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30774 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30775 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
30776 | int arg2 ; | |
30777 | int arg3 ; | |
093d3ff1 RD |
30778 | wxDragResult arg4 ; |
30779 | wxDragResult result; | |
d55e5bfc RD |
30780 | PyObject * obj0 = 0 ; |
30781 | PyObject * obj1 = 0 ; | |
30782 | PyObject * obj2 = 0 ; | |
30783 | PyObject * obj3 = 0 ; | |
30784 | char *kwnames[] = { | |
30785 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30786 | }; | |
30787 | ||
30788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
30789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30791 | { | |
7449af73 | 30792 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30793 | if (SWIG_arg_fail(2)) SWIG_fail; |
30794 | } | |
30795 | { | |
7449af73 | 30796 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30797 | if (SWIG_arg_fail(3)) SWIG_fail; |
30798 | } | |
30799 | { | |
7449af73 | 30800 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30801 | if (SWIG_arg_fail(4)) SWIG_fail; |
30802 | } | |
d55e5bfc RD |
30803 | { |
30804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 30805 | result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,arg4); |
d55e5bfc RD |
30806 | |
30807 | wxPyEndAllowThreads(__tstate); | |
30808 | if (PyErr_Occurred()) SWIG_fail; | |
30809 | } | |
093d3ff1 | 30810 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30811 | return resultobj; |
30812 | fail: | |
30813 | return NULL; | |
30814 | } | |
30815 | ||
30816 | ||
c32bde28 | 30817 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30818 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30819 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
30820 | PyObject * obj0 = 0 ; | |
30821 | char *kwnames[] = { | |
30822 | (char *) "self", NULL | |
30823 | }; | |
30824 | ||
30825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30828 | { |
30829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30830 | (arg1)->base_OnLeave(); | |
30831 | ||
30832 | wxPyEndAllowThreads(__tstate); | |
30833 | if (PyErr_Occurred()) SWIG_fail; | |
30834 | } | |
30835 | Py_INCREF(Py_None); resultobj = Py_None; | |
30836 | return resultobj; | |
30837 | fail: | |
30838 | return NULL; | |
30839 | } | |
30840 | ||
30841 | ||
c32bde28 | 30842 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30843 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30844 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
30845 | int arg2 ; | |
30846 | int arg3 ; | |
30847 | bool result; | |
30848 | PyObject * obj0 = 0 ; | |
30849 | PyObject * obj1 = 0 ; | |
30850 | PyObject * obj2 = 0 ; | |
30851 | char *kwnames[] = { | |
30852 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30853 | }; | |
30854 | ||
30855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30858 | { | |
7449af73 | 30859 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30860 | if (SWIG_arg_fail(2)) SWIG_fail; |
30861 | } | |
30862 | { | |
7449af73 | 30863 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30864 | if (SWIG_arg_fail(3)) SWIG_fail; |
30865 | } | |
d55e5bfc RD |
30866 | { |
30867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30868 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
30869 | ||
30870 | wxPyEndAllowThreads(__tstate); | |
30871 | if (PyErr_Occurred()) SWIG_fail; | |
30872 | } | |
30873 | { | |
30874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30875 | } | |
30876 | return resultobj; | |
30877 | fail: | |
30878 | return NULL; | |
30879 | } | |
30880 | ||
30881 | ||
c32bde28 | 30882 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30883 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30884 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
30885 | int arg2 ; | |
30886 | int arg3 ; | |
093d3ff1 RD |
30887 | wxDragResult arg4 ; |
30888 | wxDragResult result; | |
d55e5bfc RD |
30889 | PyObject * obj0 = 0 ; |
30890 | PyObject * obj1 = 0 ; | |
30891 | PyObject * obj2 = 0 ; | |
30892 | PyObject * obj3 = 0 ; | |
30893 | char *kwnames[] = { | |
30894 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30895 | }; | |
30896 | ||
30897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
30898 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30899 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30900 | { | |
7449af73 | 30901 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30902 | if (SWIG_arg_fail(2)) SWIG_fail; |
30903 | } | |
30904 | { | |
7449af73 | 30905 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30906 | if (SWIG_arg_fail(3)) SWIG_fail; |
30907 | } | |
30908 | { | |
7449af73 | 30909 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30910 | if (SWIG_arg_fail(4)) SWIG_fail; |
30911 | } | |
d55e5bfc RD |
30912 | { |
30913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 30914 | result = (wxDragResult)(arg1)->base_OnData(arg2,arg3,arg4); |
d55e5bfc RD |
30915 | |
30916 | wxPyEndAllowThreads(__tstate); | |
30917 | if (PyErr_Occurred()) SWIG_fail; | |
30918 | } | |
093d3ff1 | 30919 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30920 | return resultobj; |
30921 | fail: | |
30922 | return NULL; | |
30923 | } | |
30924 | ||
30925 | ||
c32bde28 | 30926 | static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30927 | PyObject *obj; |
30928 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30929 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
30930 | Py_INCREF(obj); | |
30931 | return Py_BuildValue((char *)""); | |
30932 | } | |
c32bde28 | 30933 | static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30934 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30935 | wxClipboard *result; |
30936 | char *kwnames[] = { | |
30937 | NULL | |
30938 | }; | |
30939 | ||
30940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
30941 | { | |
30942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30943 | result = (wxClipboard *)new wxClipboard(); | |
30944 | ||
30945 | wxPyEndAllowThreads(__tstate); | |
30946 | if (PyErr_Occurred()) SWIG_fail; | |
30947 | } | |
30948 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
30949 | return resultobj; | |
30950 | fail: | |
30951 | return NULL; | |
30952 | } | |
30953 | ||
30954 | ||
c32bde28 | 30955 | static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30956 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30957 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
30958 | PyObject * obj0 = 0 ; | |
30959 | char *kwnames[] = { | |
30960 | (char *) "self", NULL | |
30961 | }; | |
30962 | ||
30963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
30965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30966 | { |
30967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30968 | delete arg1; | |
30969 | ||
30970 | wxPyEndAllowThreads(__tstate); | |
30971 | if (PyErr_Occurred()) SWIG_fail; | |
30972 | } | |
30973 | Py_INCREF(Py_None); resultobj = Py_None; | |
30974 | return resultobj; | |
30975 | fail: | |
30976 | return NULL; | |
30977 | } | |
30978 | ||
30979 | ||
c32bde28 | 30980 | static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 30981 | PyObject *resultobj = NULL; |
d55e5bfc RD |
30982 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
30983 | bool result; | |
30984 | PyObject * obj0 = 0 ; | |
30985 | char *kwnames[] = { | |
30986 | (char *) "self", NULL | |
30987 | }; | |
30988 | ||
30989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
30991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30992 | { |
30993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30994 | result = (bool)(arg1)->Open(); | |
30995 | ||
30996 | wxPyEndAllowThreads(__tstate); | |
30997 | if (PyErr_Occurred()) SWIG_fail; | |
30998 | } | |
30999 | { | |
31000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31001 | } | |
31002 | return resultobj; | |
31003 | fail: | |
31004 | return NULL; | |
31005 | } | |
31006 | ||
31007 | ||
c32bde28 | 31008 | static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31009 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31010 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31011 | PyObject * obj0 = 0 ; | |
31012 | char *kwnames[] = { | |
31013 | (char *) "self", NULL | |
31014 | }; | |
31015 | ||
31016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31019 | { |
31020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31021 | (arg1)->Close(); | |
31022 | ||
31023 | wxPyEndAllowThreads(__tstate); | |
31024 | if (PyErr_Occurred()) SWIG_fail; | |
31025 | } | |
31026 | Py_INCREF(Py_None); resultobj = Py_None; | |
31027 | return resultobj; | |
31028 | fail: | |
31029 | return NULL; | |
31030 | } | |
31031 | ||
31032 | ||
c32bde28 | 31033 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31034 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31035 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31036 | bool result; | |
31037 | PyObject * obj0 = 0 ; | |
31038 | char *kwnames[] = { | |
31039 | (char *) "self", NULL | |
31040 | }; | |
31041 | ||
31042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31043 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31044 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31045 | { |
31046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31047 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
31048 | ||
31049 | wxPyEndAllowThreads(__tstate); | |
31050 | if (PyErr_Occurred()) SWIG_fail; | |
31051 | } | |
31052 | { | |
31053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31054 | } | |
31055 | return resultobj; | |
31056 | fail: | |
31057 | return NULL; | |
31058 | } | |
31059 | ||
31060 | ||
c32bde28 | 31061 | static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31062 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31063 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31064 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
31065 | bool result; | |
31066 | PyObject * obj0 = 0 ; | |
31067 | PyObject * obj1 = 0 ; | |
31068 | char *kwnames[] = { | |
31069 | (char *) "self",(char *) "data", NULL | |
31070 | }; | |
31071 | ||
31072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31073 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31074 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31075 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
31076 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31077 | { |
31078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31079 | result = (bool)(arg1)->AddData(arg2); | |
31080 | ||
31081 | wxPyEndAllowThreads(__tstate); | |
31082 | if (PyErr_Occurred()) SWIG_fail; | |
31083 | } | |
31084 | { | |
31085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31086 | } | |
31087 | return resultobj; | |
31088 | fail: | |
31089 | return NULL; | |
31090 | } | |
31091 | ||
31092 | ||
c32bde28 | 31093 | static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31094 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31095 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31096 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
31097 | bool result; | |
31098 | PyObject * obj0 = 0 ; | |
31099 | PyObject * obj1 = 0 ; | |
31100 | char *kwnames[] = { | |
31101 | (char *) "self",(char *) "data", NULL | |
31102 | }; | |
31103 | ||
31104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31105 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31107 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
31108 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31109 | { |
31110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31111 | result = (bool)(arg1)->SetData(arg2); | |
31112 | ||
31113 | wxPyEndAllowThreads(__tstate); | |
31114 | if (PyErr_Occurred()) SWIG_fail; | |
31115 | } | |
31116 | { | |
31117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31118 | } | |
31119 | return resultobj; | |
31120 | fail: | |
31121 | return NULL; | |
31122 | } | |
31123 | ||
31124 | ||
c32bde28 | 31125 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31126 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31127 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31128 | wxDataFormat *arg2 = 0 ; | |
31129 | bool result; | |
31130 | PyObject * obj0 = 0 ; | |
31131 | PyObject * obj1 = 0 ; | |
31132 | char *kwnames[] = { | |
31133 | (char *) "self",(char *) "format", NULL | |
31134 | }; | |
31135 | ||
31136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31137 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31138 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31139 | { | |
31140 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
31141 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31142 | if (arg2 == NULL) { | |
31143 | SWIG_null_ref("wxDataFormat"); | |
31144 | } | |
31145 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31146 | } |
31147 | { | |
31148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31149 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
31150 | ||
31151 | wxPyEndAllowThreads(__tstate); | |
31152 | if (PyErr_Occurred()) SWIG_fail; | |
31153 | } | |
31154 | { | |
31155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31156 | } | |
31157 | return resultobj; | |
31158 | fail: | |
31159 | return NULL; | |
31160 | } | |
31161 | ||
31162 | ||
c32bde28 | 31163 | static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31164 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31165 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31166 | wxDataObject *arg2 = 0 ; | |
31167 | bool result; | |
31168 | PyObject * obj0 = 0 ; | |
31169 | PyObject * obj1 = 0 ; | |
31170 | char *kwnames[] = { | |
31171 | (char *) "self",(char *) "data", NULL | |
31172 | }; | |
31173 | ||
31174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31177 | { | |
31178 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); | |
31179 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31180 | if (arg2 == NULL) { | |
31181 | SWIG_null_ref("wxDataObject"); | |
31182 | } | |
31183 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31184 | } |
31185 | { | |
31186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31187 | result = (bool)(arg1)->GetData(*arg2); | |
31188 | ||
31189 | wxPyEndAllowThreads(__tstate); | |
31190 | if (PyErr_Occurred()) SWIG_fail; | |
31191 | } | |
31192 | { | |
31193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31194 | } | |
31195 | return resultobj; | |
31196 | fail: | |
31197 | return NULL; | |
31198 | } | |
31199 | ||
31200 | ||
c32bde28 | 31201 | static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31202 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31203 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31204 | PyObject * obj0 = 0 ; | |
31205 | char *kwnames[] = { | |
31206 | (char *) "self", NULL | |
31207 | }; | |
31208 | ||
31209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31210 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31211 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31212 | { |
31213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31214 | (arg1)->Clear(); | |
31215 | ||
31216 | wxPyEndAllowThreads(__tstate); | |
31217 | if (PyErr_Occurred()) SWIG_fail; | |
31218 | } | |
31219 | Py_INCREF(Py_None); resultobj = Py_None; | |
31220 | return resultobj; | |
31221 | fail: | |
31222 | return NULL; | |
31223 | } | |
31224 | ||
31225 | ||
c32bde28 | 31226 | static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31227 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31228 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31229 | bool result; | |
31230 | PyObject * obj0 = 0 ; | |
31231 | char *kwnames[] = { | |
31232 | (char *) "self", NULL | |
31233 | }; | |
31234 | ||
31235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31236 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31237 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31238 | { |
31239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31240 | result = (bool)(arg1)->Flush(); | |
31241 | ||
31242 | wxPyEndAllowThreads(__tstate); | |
31243 | if (PyErr_Occurred()) SWIG_fail; | |
31244 | } | |
31245 | { | |
31246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31247 | } | |
31248 | return resultobj; | |
31249 | fail: | |
31250 | return NULL; | |
31251 | } | |
31252 | ||
31253 | ||
c32bde28 | 31254 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31255 | PyObject *resultobj = NULL; |
d55e5bfc | 31256 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
ae8162c8 | 31257 | bool arg2 = (bool) true ; |
d55e5bfc RD |
31258 | PyObject * obj0 = 0 ; |
31259 | PyObject * obj1 = 0 ; | |
31260 | char *kwnames[] = { | |
31261 | (char *) "self",(char *) "primary", NULL | |
31262 | }; | |
31263 | ||
31264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31265 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31266 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 31267 | if (obj1) { |
093d3ff1 | 31268 | { |
7449af73 | 31269 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
31270 | if (SWIG_arg_fail(2)) SWIG_fail; |
31271 | } | |
d55e5bfc RD |
31272 | } |
31273 | { | |
31274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31275 | (arg1)->UsePrimarySelection(arg2); | |
31276 | ||
31277 | wxPyEndAllowThreads(__tstate); | |
31278 | if (PyErr_Occurred()) SWIG_fail; | |
31279 | } | |
31280 | Py_INCREF(Py_None); resultobj = Py_None; | |
31281 | return resultobj; | |
31282 | fail: | |
31283 | return NULL; | |
31284 | } | |
31285 | ||
31286 | ||
c32bde28 | 31287 | static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31288 | PyObject *resultobj = NULL; |
a001823c RD |
31289 | wxClipboard *result; |
31290 | char *kwnames[] = { | |
31291 | NULL | |
31292 | }; | |
31293 | ||
31294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
31295 | { | |
31296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31297 | result = (wxClipboard *)wxClipboard::Get(); | |
31298 | ||
31299 | wxPyEndAllowThreads(__tstate); | |
31300 | if (PyErr_Occurred()) SWIG_fail; | |
31301 | } | |
31302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
31303 | return resultobj; | |
31304 | fail: | |
31305 | return NULL; | |
31306 | } | |
31307 | ||
31308 | ||
c32bde28 | 31309 | static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31310 | PyObject *obj; |
31311 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31312 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
31313 | Py_INCREF(obj); | |
31314 | return Py_BuildValue((char *)""); | |
31315 | } | |
c32bde28 | 31316 | static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31317 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31318 | wxClipboard *arg1 = (wxClipboard *) NULL ; |
31319 | wxClipboardLocker *result; | |
31320 | PyObject * obj0 = 0 ; | |
31321 | char *kwnames[] = { | |
31322 | (char *) "clipboard", NULL | |
31323 | }; | |
31324 | ||
31325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
31326 | if (obj0) { | |
093d3ff1 RD |
31327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31329 | } |
31330 | { | |
31331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31332 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
31333 | ||
31334 | wxPyEndAllowThreads(__tstate); | |
31335 | if (PyErr_Occurred()) SWIG_fail; | |
31336 | } | |
31337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
31338 | return resultobj; | |
31339 | fail: | |
31340 | return NULL; | |
31341 | } | |
31342 | ||
31343 | ||
c32bde28 | 31344 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31345 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31346 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; |
31347 | PyObject * obj0 = 0 ; | |
31348 | char *kwnames[] = { | |
31349 | (char *) "self", NULL | |
31350 | }; | |
31351 | ||
31352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0); |
31354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31355 | { |
31356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31357 | delete arg1; | |
31358 | ||
31359 | wxPyEndAllowThreads(__tstate); | |
31360 | if (PyErr_Occurred()) SWIG_fail; | |
31361 | } | |
31362 | Py_INCREF(Py_None); resultobj = Py_None; | |
31363 | return resultobj; | |
31364 | fail: | |
31365 | return NULL; | |
31366 | } | |
31367 | ||
31368 | ||
c32bde28 | 31369 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31370 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31371 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; |
31372 | bool result; | |
31373 | PyObject * obj0 = 0 ; | |
31374 | char *kwnames[] = { | |
31375 | (char *) "self", NULL | |
31376 | }; | |
31377 | ||
31378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31379 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0); |
31380 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31381 | { |
31382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31383 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
31384 | ||
31385 | wxPyEndAllowThreads(__tstate); | |
31386 | if (PyErr_Occurred()) SWIG_fail; | |
31387 | } | |
31388 | { | |
31389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31390 | } | |
31391 | return resultobj; | |
31392 | fail: | |
31393 | return NULL; | |
31394 | } | |
31395 | ||
31396 | ||
c32bde28 | 31397 | static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31398 | PyObject *obj; |
31399 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31400 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
31401 | Py_INCREF(obj); | |
31402 | return Py_BuildValue((char *)""); | |
31403 | } | |
c32bde28 | 31404 | static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31405 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31406 | int arg1 = (int) 0 ; |
31407 | int arg2 = (int) 0 ; | |
31408 | int arg3 = (int) 0 ; | |
31409 | int arg4 = (int) 0 ; | |
31410 | wxVideoMode *result; | |
31411 | PyObject * obj0 = 0 ; | |
31412 | PyObject * obj1 = 0 ; | |
31413 | PyObject * obj2 = 0 ; | |
31414 | PyObject * obj3 = 0 ; | |
31415 | char *kwnames[] = { | |
31416 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
31417 | }; | |
31418 | ||
31419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31420 | if (obj0) { | |
093d3ff1 | 31421 | { |
7449af73 | 31422 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
31423 | if (SWIG_arg_fail(1)) SWIG_fail; |
31424 | } | |
d55e5bfc RD |
31425 | } |
31426 | if (obj1) { | |
093d3ff1 | 31427 | { |
7449af73 | 31428 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31429 | if (SWIG_arg_fail(2)) SWIG_fail; |
31430 | } | |
d55e5bfc RD |
31431 | } |
31432 | if (obj2) { | |
093d3ff1 | 31433 | { |
7449af73 | 31434 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
31435 | if (SWIG_arg_fail(3)) SWIG_fail; |
31436 | } | |
d55e5bfc RD |
31437 | } |
31438 | if (obj3) { | |
093d3ff1 | 31439 | { |
7449af73 | 31440 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
31441 | if (SWIG_arg_fail(4)) SWIG_fail; |
31442 | } | |
d55e5bfc RD |
31443 | } |
31444 | { | |
31445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31446 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
31447 | ||
31448 | wxPyEndAllowThreads(__tstate); | |
31449 | if (PyErr_Occurred()) SWIG_fail; | |
31450 | } | |
31451 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
31452 | return resultobj; | |
31453 | fail: | |
31454 | return NULL; | |
31455 | } | |
31456 | ||
31457 | ||
c32bde28 | 31458 | static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31459 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31460 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31461 | PyObject * obj0 = 0 ; | |
31462 | char *kwnames[] = { | |
31463 | (char *) "self", NULL | |
31464 | }; | |
31465 | ||
31466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31469 | { |
31470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31471 | delete arg1; | |
31472 | ||
31473 | wxPyEndAllowThreads(__tstate); | |
31474 | if (PyErr_Occurred()) SWIG_fail; | |
31475 | } | |
31476 | Py_INCREF(Py_None); resultobj = Py_None; | |
31477 | return resultobj; | |
31478 | fail: | |
31479 | return NULL; | |
31480 | } | |
31481 | ||
31482 | ||
c32bde28 | 31483 | static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31484 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31485 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31486 | wxVideoMode *arg2 = 0 ; | |
31487 | bool result; | |
31488 | PyObject * obj0 = 0 ; | |
31489 | PyObject * obj1 = 0 ; | |
31490 | char *kwnames[] = { | |
31491 | (char *) "self",(char *) "other", NULL | |
31492 | }; | |
31493 | ||
31494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31497 | { | |
31498 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
31499 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31500 | if (arg2 == NULL) { | |
31501 | SWIG_null_ref("wxVideoMode"); | |
31502 | } | |
31503 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31504 | } |
31505 | { | |
31506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31507 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
31508 | ||
31509 | wxPyEndAllowThreads(__tstate); | |
31510 | if (PyErr_Occurred()) SWIG_fail; | |
31511 | } | |
31512 | { | |
31513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31514 | } | |
31515 | return resultobj; | |
31516 | fail: | |
31517 | return NULL; | |
31518 | } | |
31519 | ||
31520 | ||
c32bde28 | 31521 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31522 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31523 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31524 | int result; | |
31525 | PyObject * obj0 = 0 ; | |
31526 | char *kwnames[] = { | |
31527 | (char *) "self", NULL | |
31528 | }; | |
31529 | ||
31530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31533 | { |
31534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31535 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
31536 | ||
31537 | wxPyEndAllowThreads(__tstate); | |
31538 | if (PyErr_Occurred()) SWIG_fail; | |
31539 | } | |
093d3ff1 | 31540 | { |
7449af73 | 31541 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31542 | } |
d55e5bfc RD |
31543 | return resultobj; |
31544 | fail: | |
31545 | return NULL; | |
31546 | } | |
31547 | ||
31548 | ||
c32bde28 | 31549 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31550 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31551 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31552 | int result; | |
31553 | PyObject * obj0 = 0 ; | |
31554 | char *kwnames[] = { | |
31555 | (char *) "self", NULL | |
31556 | }; | |
31557 | ||
31558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31561 | { |
31562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31563 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
31564 | ||
31565 | wxPyEndAllowThreads(__tstate); | |
31566 | if (PyErr_Occurred()) SWIG_fail; | |
31567 | } | |
093d3ff1 | 31568 | { |
7449af73 | 31569 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31570 | } |
d55e5bfc RD |
31571 | return resultobj; |
31572 | fail: | |
31573 | return NULL; | |
31574 | } | |
31575 | ||
31576 | ||
c32bde28 | 31577 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31578 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31579 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31580 | int result; | |
31581 | PyObject * obj0 = 0 ; | |
31582 | char *kwnames[] = { | |
31583 | (char *) "self", NULL | |
31584 | }; | |
31585 | ||
31586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31589 | { |
31590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31591 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
31592 | ||
31593 | wxPyEndAllowThreads(__tstate); | |
31594 | if (PyErr_Occurred()) SWIG_fail; | |
31595 | } | |
093d3ff1 | 31596 | { |
7449af73 | 31597 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31598 | } |
d55e5bfc RD |
31599 | return resultobj; |
31600 | fail: | |
31601 | return NULL; | |
31602 | } | |
31603 | ||
31604 | ||
c32bde28 | 31605 | static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31606 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31607 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31608 | bool result; | |
31609 | PyObject * obj0 = 0 ; | |
31610 | char *kwnames[] = { | |
31611 | (char *) "self", NULL | |
31612 | }; | |
31613 | ||
31614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31617 | { |
31618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31619 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
31620 | ||
31621 | wxPyEndAllowThreads(__tstate); | |
31622 | if (PyErr_Occurred()) SWIG_fail; | |
31623 | } | |
31624 | { | |
31625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31626 | } | |
31627 | return resultobj; | |
31628 | fail: | |
31629 | return NULL; | |
31630 | } | |
31631 | ||
31632 | ||
c32bde28 | 31633 | static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31634 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31635 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31636 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
31637 | bool result; | |
31638 | PyObject * obj0 = 0 ; | |
31639 | PyObject * obj1 = 0 ; | |
31640 | char *kwnames[] = { | |
31641 | (char *) "self",(char *) "other", NULL | |
31642 | }; | |
31643 | ||
31644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31645 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31646 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31647 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
31648 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31649 | { |
31650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31651 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
31652 | ||
31653 | wxPyEndAllowThreads(__tstate); | |
31654 | if (PyErr_Occurred()) SWIG_fail; | |
31655 | } | |
31656 | { | |
31657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31658 | } | |
31659 | return resultobj; | |
31660 | fail: | |
31661 | return NULL; | |
31662 | } | |
31663 | ||
31664 | ||
c32bde28 | 31665 | static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31666 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31667 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31668 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
31669 | bool result; | |
31670 | PyObject * obj0 = 0 ; | |
31671 | PyObject * obj1 = 0 ; | |
31672 | char *kwnames[] = { | |
31673 | (char *) "self",(char *) "other", NULL | |
31674 | }; | |
31675 | ||
31676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31679 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
31680 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31681 | { |
31682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31683 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
31684 | ||
31685 | wxPyEndAllowThreads(__tstate); | |
31686 | if (PyErr_Occurred()) SWIG_fail; | |
31687 | } | |
31688 | { | |
31689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31690 | } | |
31691 | return resultobj; | |
31692 | fail: | |
31693 | return NULL; | |
31694 | } | |
31695 | ||
31696 | ||
c32bde28 | 31697 | static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31698 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31699 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31700 | int arg2 ; | |
31701 | PyObject * obj0 = 0 ; | |
31702 | PyObject * obj1 = 0 ; | |
31703 | char *kwnames[] = { | |
31704 | (char *) "self",(char *) "w", NULL | |
31705 | }; | |
31706 | ||
31707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31708 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31709 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31710 | { | |
7449af73 | 31711 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31712 | if (SWIG_arg_fail(2)) SWIG_fail; |
31713 | } | |
d55e5bfc RD |
31714 | if (arg1) (arg1)->w = arg2; |
31715 | ||
31716 | Py_INCREF(Py_None); resultobj = Py_None; | |
31717 | return resultobj; | |
31718 | fail: | |
31719 | return NULL; | |
31720 | } | |
31721 | ||
31722 | ||
c32bde28 | 31723 | static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31724 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31725 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31726 | int result; | |
31727 | PyObject * obj0 = 0 ; | |
31728 | char *kwnames[] = { | |
31729 | (char *) "self", NULL | |
31730 | }; | |
31731 | ||
31732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31733 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31734 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31735 | result = (int) ((arg1)->w); |
31736 | ||
093d3ff1 | 31737 | { |
7449af73 | 31738 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31739 | } |
d55e5bfc RD |
31740 | return resultobj; |
31741 | fail: | |
31742 | return NULL; | |
31743 | } | |
31744 | ||
31745 | ||
c32bde28 | 31746 | static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31747 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31748 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31749 | int arg2 ; | |
31750 | PyObject * obj0 = 0 ; | |
31751 | PyObject * obj1 = 0 ; | |
31752 | char *kwnames[] = { | |
31753 | (char *) "self",(char *) "h", NULL | |
31754 | }; | |
31755 | ||
31756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31759 | { | |
7449af73 | 31760 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31761 | if (SWIG_arg_fail(2)) SWIG_fail; |
31762 | } | |
d55e5bfc RD |
31763 | if (arg1) (arg1)->h = arg2; |
31764 | ||
31765 | Py_INCREF(Py_None); resultobj = Py_None; | |
31766 | return resultobj; | |
31767 | fail: | |
31768 | return NULL; | |
31769 | } | |
31770 | ||
31771 | ||
c32bde28 | 31772 | static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31773 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31774 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31775 | int result; | |
31776 | PyObject * obj0 = 0 ; | |
31777 | char *kwnames[] = { | |
31778 | (char *) "self", NULL | |
31779 | }; | |
31780 | ||
31781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31784 | result = (int) ((arg1)->h); |
31785 | ||
093d3ff1 | 31786 | { |
7449af73 | 31787 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31788 | } |
d55e5bfc RD |
31789 | return resultobj; |
31790 | fail: | |
31791 | return NULL; | |
31792 | } | |
31793 | ||
31794 | ||
c32bde28 | 31795 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31796 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31797 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31798 | int arg2 ; | |
31799 | PyObject * obj0 = 0 ; | |
31800 | PyObject * obj1 = 0 ; | |
31801 | char *kwnames[] = { | |
31802 | (char *) "self",(char *) "bpp", NULL | |
31803 | }; | |
31804 | ||
31805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31808 | { | |
7449af73 | 31809 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31810 | if (SWIG_arg_fail(2)) SWIG_fail; |
31811 | } | |
d55e5bfc RD |
31812 | if (arg1) (arg1)->bpp = arg2; |
31813 | ||
31814 | Py_INCREF(Py_None); resultobj = Py_None; | |
31815 | return resultobj; | |
31816 | fail: | |
31817 | return NULL; | |
31818 | } | |
31819 | ||
31820 | ||
c32bde28 | 31821 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31822 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31823 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31824 | int result; | |
31825 | PyObject * obj0 = 0 ; | |
31826 | char *kwnames[] = { | |
31827 | (char *) "self", NULL | |
31828 | }; | |
31829 | ||
31830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31833 | result = (int) ((arg1)->bpp); |
31834 | ||
093d3ff1 | 31835 | { |
7449af73 | 31836 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31837 | } |
d55e5bfc RD |
31838 | return resultobj; |
31839 | fail: | |
31840 | return NULL; | |
31841 | } | |
31842 | ||
31843 | ||
c32bde28 | 31844 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31845 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31846 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31847 | int arg2 ; | |
31848 | PyObject * obj0 = 0 ; | |
31849 | PyObject * obj1 = 0 ; | |
31850 | char *kwnames[] = { | |
31851 | (char *) "self",(char *) "refresh", NULL | |
31852 | }; | |
31853 | ||
31854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31857 | { | |
7449af73 | 31858 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31859 | if (SWIG_arg_fail(2)) SWIG_fail; |
31860 | } | |
d55e5bfc RD |
31861 | if (arg1) (arg1)->refresh = arg2; |
31862 | ||
31863 | Py_INCREF(Py_None); resultobj = Py_None; | |
31864 | return resultobj; | |
31865 | fail: | |
31866 | return NULL; | |
31867 | } | |
31868 | ||
31869 | ||
c32bde28 | 31870 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31871 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31872 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31873 | int result; | |
31874 | PyObject * obj0 = 0 ; | |
31875 | char *kwnames[] = { | |
31876 | (char *) "self", NULL | |
31877 | }; | |
31878 | ||
31879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31880 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31881 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31882 | result = (int) ((arg1)->refresh); |
31883 | ||
093d3ff1 | 31884 | { |
7449af73 | 31885 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31886 | } |
d55e5bfc RD |
31887 | return resultobj; |
31888 | fail: | |
31889 | return NULL; | |
31890 | } | |
31891 | ||
31892 | ||
c32bde28 | 31893 | static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31894 | PyObject *obj; |
31895 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31896 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
31897 | Py_INCREF(obj); | |
31898 | return Py_BuildValue((char *)""); | |
31899 | } | |
c32bde28 | 31900 | static int _wrap_DefaultVideoMode_set(PyObject *) { |
d55e5bfc RD |
31901 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); |
31902 | return 1; | |
31903 | } | |
31904 | ||
31905 | ||
093d3ff1 | 31906 | static PyObject *_wrap_DefaultVideoMode_get(void) { |
7449af73 | 31907 | PyObject *pyobj = NULL; |
d55e5bfc RD |
31908 | |
31909 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
31910 | return pyobj; | |
31911 | } | |
31912 | ||
31913 | ||
c32bde28 | 31914 | static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31915 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31916 | size_t arg1 = (size_t) 0 ; |
31917 | wxDisplay *result; | |
31918 | PyObject * obj0 = 0 ; | |
31919 | char *kwnames[] = { | |
31920 | (char *) "index", NULL | |
31921 | }; | |
31922 | ||
31923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
31924 | if (obj0) { | |
093d3ff1 | 31925 | { |
7449af73 | 31926 | arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
31927 | if (SWIG_arg_fail(1)) SWIG_fail; |
31928 | } | |
d55e5bfc RD |
31929 | } |
31930 | { | |
31931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31932 | result = (wxDisplay *)new wxDisplay(arg1); | |
31933 | ||
31934 | wxPyEndAllowThreads(__tstate); | |
31935 | if (PyErr_Occurred()) SWIG_fail; | |
31936 | } | |
31937 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
31938 | return resultobj; | |
31939 | fail: | |
31940 | return NULL; | |
31941 | } | |
31942 | ||
31943 | ||
c32bde28 | 31944 | static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31945 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31946 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
31947 | PyObject * obj0 = 0 ; | |
31948 | char *kwnames[] = { | |
31949 | (char *) "self", NULL | |
31950 | }; | |
31951 | ||
31952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
31954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31955 | { |
31956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31957 | delete arg1; | |
31958 | ||
31959 | wxPyEndAllowThreads(__tstate); | |
31960 | if (PyErr_Occurred()) SWIG_fail; | |
31961 | } | |
31962 | Py_INCREF(Py_None); resultobj = Py_None; | |
31963 | return resultobj; | |
31964 | fail: | |
31965 | return NULL; | |
31966 | } | |
31967 | ||
31968 | ||
c32bde28 | 31969 | static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31970 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31971 | size_t result; |
31972 | char *kwnames[] = { | |
31973 | NULL | |
31974 | }; | |
31975 | ||
31976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
31977 | { | |
31978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31979 | result = (size_t)wxDisplay::GetCount(); | |
31980 | ||
31981 | wxPyEndAllowThreads(__tstate); | |
31982 | if (PyErr_Occurred()) SWIG_fail; | |
31983 | } | |
093d3ff1 | 31984 | { |
7449af73 | 31985 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 31986 | } |
d55e5bfc RD |
31987 | return resultobj; |
31988 | fail: | |
31989 | return NULL; | |
31990 | } | |
31991 | ||
31992 | ||
c32bde28 | 31993 | static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 31994 | PyObject *resultobj = NULL; |
d55e5bfc RD |
31995 | wxPoint *arg1 = 0 ; |
31996 | int result; | |
31997 | wxPoint temp1 ; | |
31998 | PyObject * obj0 = 0 ; | |
31999 | char *kwnames[] = { | |
32000 | (char *) "pt", NULL | |
32001 | }; | |
32002 | ||
32003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
32004 | { | |
32005 | arg1 = &temp1; | |
32006 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
32007 | } | |
32008 | { | |
32009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32010 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
32011 | ||
32012 | wxPyEndAllowThreads(__tstate); | |
32013 | if (PyErr_Occurred()) SWIG_fail; | |
32014 | } | |
093d3ff1 | 32015 | { |
7449af73 | 32016 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 32017 | } |
d55e5bfc RD |
32018 | return resultobj; |
32019 | fail: | |
32020 | return NULL; | |
32021 | } | |
32022 | ||
32023 | ||
c32bde28 | 32024 | static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 32025 | PyObject *resultobj = NULL; |
d55e5bfc RD |
32026 | wxWindow *arg1 = (wxWindow *) 0 ; |
32027 | int result; | |
32028 | PyObject * obj0 = 0 ; | |
32029 | char *kwnames[] = { | |
32030 | (char *) "window", NULL | |
32031 | }; | |
32032 | ||
32033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32036 | { |
32037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32038 | result = (int)wxDisplay::GetFromWindow(arg1); | |
32039 | ||
32040 | wxPyEndAllowThreads(__tstate); | |
32041 | if (PyErr_Occurred()) SWIG_fail; | |
32042 | } | |
093d3ff1 | 32043 | { |
7449af73 | 32044 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 32045 | } |
d55e5bfc RD |
32046 | return resultobj; |
32047 | fail: | |
32048 | return NULL; | |
32049 | } | |
32050 | ||
32051 | ||
c32bde28 | 32052 | static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 32053 | PyObject *resultobj = NULL; |
d55e5bfc RD |
32054 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32055 | bool result; | |
32056 | PyObject * obj0 = 0 ; | |
32057 | char *kwnames[] = { | |
32058 | (char *) "self", NULL | |
32059 | }; | |
32060 | ||
32061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32062 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32063 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32064 | { |
32065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32066 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
32067 | ||
32068 | wxPyEndAllowThreads(__tstate); | |
32069 | if (PyErr_Occurred()) SWIG_fail; | |
32070 | } | |
32071 | { | |
32072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32073 | } | |
32074 | return resultobj; | |
32075 | fail: | |
32076 | return NULL; | |
32077 | } | |
32078 | ||
32079 | ||
c32bde28 | 32080 | static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 32081 | PyObject *resultobj = NULL; |
d55e5bfc RD |
32082 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32083 | wxRect result; | |
32084 | PyObject * obj0 = 0 ; | |
32085 | char *kwnames[] = { | |
32086 | (char *) "self", NULL | |
32087 | }; | |
32088 | ||
32089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32090 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32091 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32092 | { |
32093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32094 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
32095 | ||
32096 | wxPyEndAllowThreads(__tstate); | |
32097 | if (PyErr_Occurred()) SWIG_fail; | |
32098 | } | |
32099 | { | |
32100 | wxRect * resultptr; | |
7449af73 | 32101 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
d55e5bfc RD |
32102 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
32103 | } | |
32104 | return resultobj; | |
32105 | fail: | |
32106 | return NULL; | |
32107 | } | |
32108 | ||
32109 | ||
c32bde28 | 32110 | static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 32111 | PyObject *resultobj = NULL; |
d55e5bfc RD |
32112 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32113 | wxString result; | |
32114 | PyObject * obj0 = 0 ; | |
32115 | char *kwnames[] = { | |
32116 | (char *) "self", NULL | |
32117 | }; | |
32118 | ||
32119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32122 | { |
32123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32124 | result = ((wxDisplay const *)arg1)->GetName(); | |
32125 | ||
32126 | wxPyEndAllowThreads(__tstate); | |
32127 | if (PyErr_Occurred()) SWIG_fail; | |
32128 | } | |
32129 | { | |
32130 | #if wxUSE_UNICODE | |
32131 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32132 | #else | |
32133 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32134 | #endif | |
32135 | } | |
32136 | return resultobj; | |
32137 | fail: | |
32138 | return NULL; | |
32139 | } | |
32140 | ||
32141 | ||
c32bde28 | 32142 | static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 32143 | PyObject *resultobj = NULL; |
d55e5bfc RD |
32144 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32145 | bool result; | |
32146 | PyObject * obj0 = 0 ; | |
32147 | char *kwnames[] = { | |
32148 | (char *) "self", NULL | |
32149 | }; | |
32150 | ||
32151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32154 | { |
32155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32156 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
32157 | ||
32158 | wxPyEndAllowThreads(__tstate); | |
32159 | if (PyErr_Occurred()) SWIG_fail; | |
32160 | } | |
32161 | { | |
32162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32163 | } | |
32164 | return resultobj; | |
32165 | fail: | |
32166 | return NULL; | |
32167 | } | |
32168 | ||
32169 | ||
c32bde28 | 32170 | static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 32171 | PyObject *resultobj = NULL; |
d55e5bfc RD |
32172 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32173 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
32174 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
32175 | PyObject *result; | |
32176 | PyObject * obj0 = 0 ; | |
32177 | PyObject * obj1 = 0 ; | |
32178 | char *kwnames[] = { | |
32179 | (char *) "self",(char *) "mode", NULL | |
32180 | }; | |
32181 | ||
32182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32183 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32184 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 32185 | if (obj1) { |
093d3ff1 RD |
32186 | { |
32187 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
32188 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32189 | if (arg2 == NULL) { | |
32190 | SWIG_null_ref("wxVideoMode"); | |
32191 | } | |
32192 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32193 | } |
32194 | } | |
32195 | { | |
32196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32197 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
32198 | ||
32199 | wxPyEndAllowThreads(__tstate); | |
32200 | if (PyErr_Occurred()) SWIG_fail; | |
32201 | } | |
32202 | resultobj = result; | |
32203 | return resultobj; | |
32204 | fail: | |
32205 | return NULL; | |
32206 | } | |
32207 | ||
32208 | ||
c32bde28 | 32209 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 32210 | PyObject *resultobj = NULL; |
d55e5bfc RD |
32211 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32212 | wxVideoMode result; | |
32213 | PyObject * obj0 = 0 ; | |
32214 | char *kwnames[] = { | |
32215 | (char *) "self", NULL | |
32216 | }; | |
32217 | ||
32218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32219 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32220 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32221 | { |
32222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32223 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
32224 | ||
32225 | wxPyEndAllowThreads(__tstate); | |
32226 | if (PyErr_Occurred()) SWIG_fail; | |
32227 | } | |
32228 | { | |
32229 | wxVideoMode * resultptr; | |
7449af73 | 32230 | resultptr = new wxVideoMode(static_cast<wxVideoMode & >(result)); |
d55e5bfc RD |
32231 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); |
32232 | } | |
32233 | return resultobj; | |
32234 | fail: | |
32235 | return NULL; | |
32236 | } | |
32237 | ||
32238 | ||
c32bde28 | 32239 | static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 32240 | PyObject *resultobj = NULL; |
d55e5bfc RD |
32241 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32242 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
32243 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
32244 | bool result; | |
32245 | PyObject * obj0 = 0 ; | |
32246 | PyObject * obj1 = 0 ; | |
32247 | char *kwnames[] = { | |
32248 | (char *) "self",(char *) "mode", NULL | |
32249 | }; | |
32250 | ||
32251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32252 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 32254 | if (obj1) { |
093d3ff1 RD |
32255 | { |
32256 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
32257 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32258 | if (arg2 == NULL) { | |
32259 | SWIG_null_ref("wxVideoMode"); | |
32260 | } | |
32261 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32262 | } |
32263 | } | |
32264 | { | |
32265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32266 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
32267 | ||
32268 | wxPyEndAllowThreads(__tstate); | |
32269 | if (PyErr_Occurred()) SWIG_fail; | |
32270 | } | |
32271 | { | |
32272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32273 | } | |
32274 | return resultobj; | |
32275 | fail: | |
32276 | return NULL; | |
32277 | } | |
32278 | ||
32279 | ||
c32bde28 | 32280 | static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 32281 | PyObject *resultobj = NULL; |
d55e5bfc RD |
32282 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32283 | PyObject * obj0 = 0 ; | |
32284 | char *kwnames[] = { | |
32285 | (char *) "self", NULL | |
32286 | }; | |
32287 | ||
32288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32291 | { |
32292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32293 | (arg1)->ResetMode(); | |
32294 | ||
32295 | wxPyEndAllowThreads(__tstate); | |
32296 | if (PyErr_Occurred()) SWIG_fail; | |
32297 | } | |
32298 | Py_INCREF(Py_None); resultobj = Py_None; | |
32299 | return resultobj; | |
32300 | fail: | |
32301 | return NULL; | |
32302 | } | |
32303 | ||
32304 | ||
c32bde28 | 32305 | static PyObject * Display_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32306 | PyObject *obj; |
32307 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32308 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
32309 | Py_INCREF(obj); | |
32310 | return Py_BuildValue((char *)""); | |
32311 | } | |
c1cb24a4 | 32312 | static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 32313 | PyObject *resultobj = NULL; |
c1cb24a4 RD |
32314 | wxStandardPaths *result; |
32315 | char *kwnames[] = { | |
32316 | NULL | |
32317 | }; | |
32318 | ||
32319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail; | |
32320 | { | |
32321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 32322 | result = (wxStandardPaths *)wxStandardPaths_Get(); |
c1cb24a4 RD |
32323 | |
32324 | wxPyEndAllowThreads(__tstate); | |
32325 | if (PyErr_Occurred()) SWIG_fail; | |
32326 | } | |
32327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0); | |
32328 | return resultobj; | |
32329 | fail: | |
32330 | return NULL; | |
32331 | } | |
32332 | ||
32333 | ||
32334 | static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 32335 | PyObject *resultobj = NULL; |
c1cb24a4 RD |
32336 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32337 | wxString result; | |
32338 | PyObject * obj0 = 0 ; | |
32339 | char *kwnames[] = { | |
32340 | (char *) "self", NULL | |
32341 | }; | |
32342 | ||
32343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
32346 | { |
32347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32348 | result = ((wxStandardPaths const *)arg1)->GetConfigDir(); | |
32349 | ||
32350 | wxPyEndAllowThreads(__tstate); | |
32351 | if (PyErr_Occurred()) SWIG_fail; | |
32352 | } | |
32353 | { | |
32354 | #if wxUSE_UNICODE | |
32355 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32356 | #else | |
32357 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32358 | #endif | |
32359 | } | |
32360 | return resultobj; | |
32361 | fail: | |
32362 | return NULL; | |
32363 | } | |
32364 | ||
32365 | ||
32366 | static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 32367 | PyObject *resultobj = NULL; |
c1cb24a4 RD |
32368 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32369 | wxString result; | |
32370 | PyObject * obj0 = 0 ; | |
32371 | char *kwnames[] = { | |
32372 | (char *) "self", NULL | |
32373 | }; | |
32374 | ||
32375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32376 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32377 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
32378 | { |
32379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32380 | result = ((wxStandardPaths const *)arg1)->GetUserConfigDir(); | |
32381 | ||
32382 | wxPyEndAllowThreads(__tstate); | |
32383 | if (PyErr_Occurred()) SWIG_fail; | |
32384 | } | |
32385 | { | |
32386 | #if wxUSE_UNICODE | |
32387 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32388 | #else | |
32389 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32390 | #endif | |
32391 | } | |
32392 | return resultobj; | |
32393 | fail: | |
32394 | return NULL; | |
32395 | } | |
32396 | ||
32397 | ||
32398 | static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 32399 | PyObject *resultobj = NULL; |
c1cb24a4 RD |
32400 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32401 | wxString result; | |
32402 | PyObject * obj0 = 0 ; | |
32403 | char *kwnames[] = { | |
32404 | (char *) "self", NULL | |
32405 | }; | |
32406 | ||
32407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
32410 | { |
32411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32412 | result = ((wxStandardPaths const *)arg1)->GetDataDir(); | |
32413 | ||
32414 | wxPyEndAllowThreads(__tstate); | |
32415 | if (PyErr_Occurred()) SWIG_fail; | |
32416 | } | |
32417 | { | |
32418 | #if wxUSE_UNICODE | |
32419 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32420 | #else | |
32421 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32422 | #endif | |
32423 | } | |
32424 | return resultobj; | |
32425 | fail: | |
32426 | return NULL; | |
32427 | } | |
32428 | ||
32429 | ||
32430 | static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 32431 | PyObject *resultobj = NULL; |
c1cb24a4 RD |
32432 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32433 | wxString result; | |
32434 | PyObject * obj0 = 0 ; | |
32435 | char *kwnames[] = { | |
32436 | (char *) "self", NULL | |
32437 | }; | |
32438 | ||
32439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
32442 | { |
32443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32444 | result = ((wxStandardPaths const *)arg1)->GetLocalDataDir(); | |
32445 | ||
32446 | wxPyEndAllowThreads(__tstate); | |
32447 | if (PyErr_Occurred()) SWIG_fail; | |
32448 | } | |
32449 | { | |
32450 | #if wxUSE_UNICODE | |
32451 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32452 | #else | |
32453 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32454 | #endif | |
32455 | } | |
32456 | return resultobj; | |
32457 | fail: | |
32458 | return NULL; | |
32459 | } | |
32460 | ||
32461 | ||
32462 | static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 32463 | PyObject *resultobj = NULL; |
c1cb24a4 RD |
32464 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32465 | wxString result; | |
32466 | PyObject * obj0 = 0 ; | |
32467 | char *kwnames[] = { | |
32468 | (char *) "self", NULL | |
32469 | }; | |
32470 | ||
32471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
32474 | { |
32475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32476 | result = ((wxStandardPaths const *)arg1)->GetUserDataDir(); | |
32477 | ||
32478 | wxPyEndAllowThreads(__tstate); | |
32479 | if (PyErr_Occurred()) SWIG_fail; | |
32480 | } | |
32481 | { | |
32482 | #if wxUSE_UNICODE | |
32483 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32484 | #else | |
32485 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32486 | #endif | |
32487 | } | |
32488 | return resultobj; | |
32489 | fail: | |
32490 | return NULL; | |
32491 | } | |
32492 | ||
32493 | ||
32494 | static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 32495 | PyObject *resultobj = NULL; |
c1cb24a4 RD |
32496 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32497 | wxString result; | |
32498 | PyObject * obj0 = 0 ; | |
32499 | char *kwnames[] = { | |
32500 | (char *) "self", NULL | |
32501 | }; | |
32502 | ||
32503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32504 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32505 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
32506 | { |
32507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32508 | result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir(); | |
32509 | ||
32510 | wxPyEndAllowThreads(__tstate); | |
32511 | if (PyErr_Occurred()) SWIG_fail; | |
32512 | } | |
32513 | { | |
32514 | #if wxUSE_UNICODE | |
32515 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32516 | #else | |
32517 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32518 | #endif | |
32519 | } | |
32520 | return resultobj; | |
32521 | fail: | |
32522 | return NULL; | |
32523 | } | |
32524 | ||
32525 | ||
32526 | static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 32527 | PyObject *resultobj = NULL; |
c1cb24a4 RD |
32528 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32529 | wxString result; | |
32530 | PyObject * obj0 = 0 ; | |
32531 | char *kwnames[] = { | |
32532 | (char *) "self", NULL | |
32533 | }; | |
32534 | ||
32535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32536 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32537 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
32538 | { |
32539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32540 | result = ((wxStandardPaths const *)arg1)->GetPluginsDir(); | |
32541 | ||
32542 | wxPyEndAllowThreads(__tstate); | |
32543 | if (PyErr_Occurred()) SWIG_fail; | |
32544 | } | |
32545 | { | |
32546 | #if wxUSE_UNICODE | |
32547 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32548 | #else | |
32549 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32550 | #endif | |
32551 | } | |
32552 | return resultobj; | |
32553 | fail: | |
32554 | return NULL; | |
32555 | } | |
32556 | ||
32557 | ||
32558 | static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 32559 | PyObject *resultobj = NULL; |
c1cb24a4 RD |
32560 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32561 | wxString *arg2 = 0 ; | |
32562 | bool temp2 = false ; | |
32563 | PyObject * obj0 = 0 ; | |
32564 | PyObject * obj1 = 0 ; | |
32565 | char *kwnames[] = { | |
32566 | (char *) "self",(char *) "prefix", NULL | |
32567 | }; | |
32568 | ||
32569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
32572 | { |
32573 | arg2 = wxString_in_helper(obj1); | |
32574 | if (arg2 == NULL) SWIG_fail; | |
32575 | temp2 = true; | |
32576 | } | |
32577 | { | |
32578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32579 | wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2); | |
32580 | ||
32581 | wxPyEndAllowThreads(__tstate); | |
32582 | if (PyErr_Occurred()) SWIG_fail; | |
32583 | } | |
32584 | Py_INCREF(Py_None); resultobj = Py_None; | |
32585 | { | |
32586 | if (temp2) | |
32587 | delete arg2; | |
32588 | } | |
32589 | return resultobj; | |
32590 | fail: | |
32591 | { | |
32592 | if (temp2) | |
32593 | delete arg2; | |
32594 | } | |
32595 | return NULL; | |
32596 | } | |
32597 | ||
32598 | ||
32599 | static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 32600 | PyObject *resultobj = NULL; |
c1cb24a4 RD |
32601 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32602 | wxString result; | |
32603 | PyObject * obj0 = 0 ; | |
32604 | char *kwnames[] = { | |
32605 | (char *) "self", NULL | |
32606 | }; | |
32607 | ||
32608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32609 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32610 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
32611 | { |
32612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32613 | result = wxStandardPaths_GetInstallPrefix(arg1); | |
32614 | ||
32615 | wxPyEndAllowThreads(__tstate); | |
32616 | if (PyErr_Occurred()) SWIG_fail; | |
32617 | } | |
32618 | { | |
32619 | #if wxUSE_UNICODE | |
32620 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32621 | #else | |
32622 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32623 | #endif | |
32624 | } | |
32625 | return resultobj; | |
32626 | fail: | |
32627 | return NULL; | |
32628 | } | |
32629 | ||
32630 | ||
32631 | static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) { | |
32632 | PyObject *obj; | |
32633 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32634 | SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj); | |
32635 | Py_INCREF(obj); | |
32636 | return Py_BuildValue((char *)""); | |
32637 | } | |
d55e5bfc | 32638 | static PyMethodDef SwigMethods[] = { |
093d3ff1 RD |
32639 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
32640 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32641 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32642 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32643 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32644 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32645 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL}, | |
32646 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32647 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32648 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32649 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32650 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32651 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
396fb509 | 32652 | { (char *)"SystemOptions_IsFalse", (PyCFunction) _wrap_SystemOptions_IsFalse, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
32653 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL}, |
32654 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32655 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32656 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32657 | { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32658 | { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32659 | { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32660 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32661 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32662 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
32663 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL}, |
32664 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32665 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32666 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32667 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32668 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32669 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32670 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32671 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32672 | { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32673 | { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32674 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32675 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32676 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32677 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32678 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32679 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32680 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32681 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32682 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32683 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32684 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32685 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32686 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32687 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32688 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32689 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32690 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32691 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32692 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32693 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
32694 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL}, |
32695 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32696 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32697 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32698 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32699 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32700 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32701 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32702 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32703 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
a97cefba | 32704 | { (char *)"GetXDisplay", (PyCFunction) _wrap_GetXDisplay, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 32705 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, |
7449af73 RD |
32706 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
32707 | { (char *)"FindWindowAtPointer", (PyCFunction) _wrap_FindWindowAtPointer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
32708 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
32709 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32710 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32711 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
d04418a7 | 32712 | { (char *)"LaunchDefaultBrowser", (PyCFunction) _wrap_LaunchDefaultBrowser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 32713 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL}, |
7449af73 RD |
32714 | { (char *)"new_MouseState", (PyCFunction) _wrap_new_MouseState, METH_VARARGS | METH_KEYWORDS, NULL}, |
32715 | { (char *)"delete_MouseState", (PyCFunction) _wrap_delete_MouseState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32716 | { (char *)"MouseState_GetX", (PyCFunction) _wrap_MouseState_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32717 | { (char *)"MouseState_GetY", (PyCFunction) _wrap_MouseState_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32718 | { (char *)"MouseState_LeftDown", (PyCFunction) _wrap_MouseState_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32719 | { (char *)"MouseState_MiddleDown", (PyCFunction) _wrap_MouseState_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32720 | { (char *)"MouseState_RightDown", (PyCFunction) _wrap_MouseState_RightDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32721 | { (char *)"MouseState_ControlDown", (PyCFunction) _wrap_MouseState_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32722 | { (char *)"MouseState_ShiftDown", (PyCFunction) _wrap_MouseState_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32723 | { (char *)"MouseState_AltDown", (PyCFunction) _wrap_MouseState_AltDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32724 | { (char *)"MouseState_MetaDown", (PyCFunction) _wrap_MouseState_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32725 | { (char *)"MouseState_CmdDown", (PyCFunction) _wrap_MouseState_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32726 | { (char *)"MouseState_SetX", (PyCFunction) _wrap_MouseState_SetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32727 | { (char *)"MouseState_SetY", (PyCFunction) _wrap_MouseState_SetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32728 | { (char *)"MouseState_SetLeftDown", (PyCFunction) _wrap_MouseState_SetLeftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32729 | { (char *)"MouseState_SetMiddleDown", (PyCFunction) _wrap_MouseState_SetMiddleDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32730 | { (char *)"MouseState_SetRightDown", (PyCFunction) _wrap_MouseState_SetRightDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32731 | { (char *)"MouseState_SetControlDown", (PyCFunction) _wrap_MouseState_SetControlDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32732 | { (char *)"MouseState_SetShiftDown", (PyCFunction) _wrap_MouseState_SetShiftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32733 | { (char *)"MouseState_SetAltDown", (PyCFunction) _wrap_MouseState_SetAltDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32734 | { (char *)"MouseState_SetMetaDown", (PyCFunction) _wrap_MouseState_SetMetaDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32735 | { (char *)"MouseState_swigregister", MouseState_swigregister, METH_VARARGS, NULL}, | |
32736 | { (char *)"GetMouseState", (PyCFunction) _wrap_GetMouseState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
32737 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL}, |
32738 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32739 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32740 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32741 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32742 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL}, | |
32743 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32744 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32745 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32746 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32747 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32748 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32749 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32750 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL}, | |
32751 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
091fdbfa | 32752 | { (char *)"Caret_Destroy", (PyCFunction) _wrap_Caret_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
32753 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, |
32754 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32755 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32756 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32757 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32758 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32759 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32760 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32761 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32762 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32763 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32764 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32765 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
32766 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL}, |
32767 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
091fdbfa | 32768 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL}, |
093d3ff1 RD |
32769 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, |
32770 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32771 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL}, | |
32772 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32773 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32774 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL}, | |
32775 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32776 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32777 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL}, | |
32778 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32779 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32780 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32781 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32782 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32783 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL}, | |
32784 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32785 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32786 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32787 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32788 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32789 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32790 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32791 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32792 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32793 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32794 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32795 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32796 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32797 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL}, | |
32798 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32799 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32800 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32801 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32802 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32803 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL}, | |
68350608 | 32804 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
32805 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, |
32806 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32807 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32808 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32809 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL}, | |
32810 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32811 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32812 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL}, | |
32813 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32814 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32815 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32816 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32817 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32818 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32819 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32820 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32821 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32822 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32823 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32824 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32825 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32826 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL}, | |
32827 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32828 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32829 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL}, | |
32830 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL}, | |
32831 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32832 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32833 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL}, | |
32834 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32835 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32836 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32837 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32838 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32839 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32840 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32841 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32842 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32843 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32844 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32845 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32846 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32847 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32848 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32849 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32850 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32851 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32852 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32853 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32854 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32855 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32856 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32857 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32858 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32859 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32860 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL}, | |
32861 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32862 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL}, | |
32863 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32864 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL}, | |
32865 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32866 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL}, | |
32867 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32868 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32869 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32870 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32871 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32872 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32873 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL}, | |
32874 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32875 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32876 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32877 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32878 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32879 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL}, | |
be9b1dca RD |
32880 | { (char *)"new_LogBuffer", (PyCFunction) _wrap_new_LogBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, |
32881 | { (char *)"LogBuffer_GetBuffer", (PyCFunction) _wrap_LogBuffer_GetBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32882 | { (char *)"LogBuffer_Flush", (PyCFunction) _wrap_LogBuffer_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32883 | { (char *)"LogBuffer_swigregister", LogBuffer_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
32884 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL}, |
32885 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32886 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32887 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32888 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32889 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32890 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32891 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32892 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32893 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32894 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32895 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32896 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32897 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL}, | |
32898 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32899 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32900 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32901 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL}, | |
32902 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32903 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32904 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL}, | |
32905 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32906 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32907 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32908 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32909 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32910 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32911 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32912 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32913 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32914 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32915 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32916 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32917 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32918 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32919 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32920 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32921 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL}, | |
32922 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32923 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32924 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32925 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32926 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32927 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32928 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32929 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL}, | |
32930 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32931 | { (char *)"Kill", (PyCFunction) _wrap_Kill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32932 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32933 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32934 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32935 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32936 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32937 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32938 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32939 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32940 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32941 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32942 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32943 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32944 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32945 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32946 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32947 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32948 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32949 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32950 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32951 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32952 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32953 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32954 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32955 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32956 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32957 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32958 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32959 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32960 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32961 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32962 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32963 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32964 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32965 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32966 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32967 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32968 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32969 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32970 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32971 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32972 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32973 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32974 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32975 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32976 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
32977 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
32978 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32979 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32980 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32981 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32982 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32983 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32984 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32985 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32986 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32987 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32988 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32989 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32990 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32991 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32992 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32993 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32994 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL}, | |
32995 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32996 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32997 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32998 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32999 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33000 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33001 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33002 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33003 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33004 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL}, | |
33005 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33006 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33007 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33008 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33009 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33010 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33011 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33012 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33013 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33014 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33015 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33016 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33017 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33018 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33019 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33020 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL}, | |
33021 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33022 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33023 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33024 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33025 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33026 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33027 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33028 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33029 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33030 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33031 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33032 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33033 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33034 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33035 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33036 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL}, | |
33037 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33038 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33039 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33040 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33041 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33042 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33043 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33044 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33045 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33046 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33047 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33048 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33049 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33050 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL}, | |
33051 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33052 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33053 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33054 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33055 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33056 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33057 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0c549c5f | 33058 | { (char *)"ArtProvider_GetSizeHint", (PyCFunction) _wrap_ArtProvider_GetSizeHint, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
33059 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, |
33060 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL}, | |
33061 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33062 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33063 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33064 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33065 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33066 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33067 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33068 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33069 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33070 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33071 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33072 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33073 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33074 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33075 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33076 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33077 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33078 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33079 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33080 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33081 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33082 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33083 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33084 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33085 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33086 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33087 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33088 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33089 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33090 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33091 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33092 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33093 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33094 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33095 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33096 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33097 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33098 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33099 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33100 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33101 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33102 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33103 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL}, | |
33104 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33105 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33106 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL}, | |
33107 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33108 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33109 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL}, | |
33110 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33111 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33112 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33113 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL}, | |
33114 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33115 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33116 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33117 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33118 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33119 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33120 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33121 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33122 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33123 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33124 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33125 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33126 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33127 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33128 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33129 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33130 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33131 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33132 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33133 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33134 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33135 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33136 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33137 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33138 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33139 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33140 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33141 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33142 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33143 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33144 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33145 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33146 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33147 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33148 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33149 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33150 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33151 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33152 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33153 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33154 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33155 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33156 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33157 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33158 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33159 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33160 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33161 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33162 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33163 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33164 | { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33165 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33166 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33167 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33168 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33169 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33170 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33171 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33172 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33173 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33174 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33175 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
9d7dfdff RD |
33176 | { (char *)"DateTime_FromTimezone", (PyCFunction) _wrap_DateTime_FromTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, |
33177 | { (char *)"DateTime_MakeFromTimezone", (PyCFunction) _wrap_DateTime_MakeFromTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33178 | { (char *)"DateTime_ToUTC", (PyCFunction) _wrap_DateTime_ToUTC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33179 | { (char *)"DateTime_MakeUTC", (PyCFunction) _wrap_DateTime_MakeUTC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
33180 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL}, |
33181 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
9d7dfdff RD |
33182 | { (char *)"DateTime_FromUTC", (PyCFunction) _wrap_DateTime_FromUTC, METH_VARARGS | METH_KEYWORDS, NULL}, |
33183 | { (char *)"DateTime_MakeFromUTC", (PyCFunction) _wrap_DateTime_MakeFromUTC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
33184 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL}, |
33185 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33186 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33187 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33188 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33189 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33190 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33191 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33192 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33193 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33194 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33195 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33196 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33197 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33198 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33199 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33200 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33201 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33202 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33203 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33204 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33205 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33206 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33207 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33208 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33209 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33210 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33211 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33212 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL}, | |
33213 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL}, | |
33214 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL}, | |
33215 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL}, | |
fef4c27a RD |
33216 | { (char *)"DateTime___lt__", (PyCFunction) _wrap_DateTime___lt__, METH_VARARGS | METH_KEYWORDS, NULL}, |
33217 | { (char *)"DateTime___le__", (PyCFunction) _wrap_DateTime___le__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33218 | { (char *)"DateTime___gt__", (PyCFunction) _wrap_DateTime___gt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33219 | { (char *)"DateTime___ge__", (PyCFunction) _wrap_DateTime___ge__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33220 | { (char *)"DateTime___eq__", (PyCFunction) _wrap_DateTime___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33221 | { (char *)"DateTime___ne__", (PyCFunction) _wrap_DateTime___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
33222 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL}, |
33223 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33224 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33225 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33226 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33227 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33228 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33229 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33230 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33231 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33232 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL}, | |
33233 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33234 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33235 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33236 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33237 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33238 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33239 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33240 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33241 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33242 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33243 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33244 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33245 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33246 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33247 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33248 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33249 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33250 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33251 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33252 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33253 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33254 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33255 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33256 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33257 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33258 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33259 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33260 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33261 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33262 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33263 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33264 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33265 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33266 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33267 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33268 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33269 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33270 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33271 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33272 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33273 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33274 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33275 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33276 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33277 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL}, | |
33278 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33279 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33280 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33281 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33282 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33283 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33284 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33285 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33286 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33287 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33288 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33289 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33290 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33291 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33292 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33293 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33294 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33295 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33296 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33297 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33298 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33299 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33300 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33301 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33302 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33303 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33304 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33305 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33306 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33307 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33308 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33309 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33310 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33311 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL}, | |
33312 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33313 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33314 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33315 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33316 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33317 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33318 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33319 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL}, | |
33320 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL}, | |
33321 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33322 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33323 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33324 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33325 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL}, | |
33326 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33327 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33328 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33329 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33330 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33331 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33332 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33333 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33334 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL}, | |
33335 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33336 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33337 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33338 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33339 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33340 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33341 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL}, | |
33342 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33343 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33344 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL}, | |
33345 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33346 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33347 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL}, | |
33348 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33349 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33350 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33351 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33352 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL}, | |
33353 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33354 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33355 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL}, | |
33356 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33357 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33358 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33359 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL}, | |
33360 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33361 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33362 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL}, | |
33363 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33364 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33365 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33366 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL}, | |
fef4c27a | 33367 | { (char *)"new_CustomDataObject", _wrap_new_CustomDataObject, METH_VARARGS, NULL}, |
093d3ff1 RD |
33368 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
33369 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33370 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33371 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL}, | |
33372 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33373 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33374 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33375 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL}, | |
33376 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33377 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33378 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33379 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL}, | |
33380 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33381 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33382 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33383 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33384 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33385 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33386 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33387 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33388 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33389 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL}, | |
33390 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33391 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33392 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33393 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33394 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33395 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33396 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33397 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33398 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33399 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0c549c5f RD |
33400 | { (char *)"DropTarget_SetDefaultAction", (PyCFunction) _wrap_DropTarget_SetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL}, |
33401 | { (char *)"DropTarget_GetDefaultAction", (PyCFunction) _wrap_DropTarget_GetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
33402 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL}, |
33403 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33404 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33405 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33406 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33407 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33408 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33409 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33410 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL}, | |
33411 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33412 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33413 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33414 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33415 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33416 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33417 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33418 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL}, | |
33419 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33420 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33421 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33422 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33423 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33424 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33425 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33426 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33427 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33428 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33429 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33430 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33431 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33432 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL}, | |
33433 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33434 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33435 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33436 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL}, | |
33437 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33438 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33439 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33440 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33441 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33442 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33443 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33444 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33445 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33446 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33447 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33448 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33449 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33450 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33451 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33452 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33453 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33454 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL}, | |
33455 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33456 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33457 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33458 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33459 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33460 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33461 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33462 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33463 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33464 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33465 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33466 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33467 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33468 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL}, | |
33469 | { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33470 | { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33471 | { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33472 | { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33473 | { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33474 | { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33475 | { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33476 | { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33477 | { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33478 | { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33479 | { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 33480 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
33481 | }; |
33482 | ||
33483 | ||
33484 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
33485 | ||
33486 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
33487 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33488 | } | |
33489 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
33490 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
33491 | } | |
33492 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
33493 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
33494 | } | |
33495 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
33496 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
33497 | } | |
33498 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
33499 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
33500 | } | |
33501 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
33502 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
33503 | } | |
33504 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
33505 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
33506 | } | |
33507 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
33508 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
33509 | } | |
33510 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
33511 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
33512 | } | |
33513 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
33514 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
33515 | } | |
33516 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
33517 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33518 | } | |
33519 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
33520 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
33521 | } | |
33522 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
33523 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
33524 | } | |
33525 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
33526 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33527 | } | |
33528 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
33529 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
33530 | } | |
33531 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
33532 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
33533 | } | |
33534 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
33535 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
33536 | } | |
33537 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
33538 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
33539 | } | |
33540 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
33541 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
33542 | } | |
33543 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
33544 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
33545 | } | |
53aa7709 RD |
33546 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
33547 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
33548 | } | |
d55e5bfc RD |
33549 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
33550 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
33551 | } | |
33552 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
33553 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
33554 | } | |
33555 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
33556 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33557 | } | |
33558 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
33559 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
33560 | } | |
33561 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
33562 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
33563 | } | |
33564 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
33565 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
33566 | } | |
33567 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
33568 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
33569 | } | |
33570 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
33571 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
33572 | } | |
33573 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
33574 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
33575 | } | |
33576 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
33577 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33578 | } | |
33579 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
33580 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
33581 | } | |
33582 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
33583 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
33584 | } | |
33585 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
33586 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
33587 | } | |
33588 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
33589 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33590 | } | |
33591 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
33592 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33593 | } | |
33594 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
33595 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
33596 | } | |
33597 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
33598 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
33599 | } | |
33600 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
33601 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
33602 | } | |
33603 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
33604 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
33605 | } | |
33606 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
33607 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
33608 | } | |
33609 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
33610 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
33611 | } | |
33612 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
33613 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
33614 | } | |
33615 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
33616 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
33617 | } | |
33618 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
33619 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
33620 | } | |
33621 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
33622 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
33623 | } | |
33624 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
33625 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
33626 | } | |
33627 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
33628 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
33629 | } | |
33630 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
33631 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
33632 | } | |
33633 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
33634 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
33635 | } | |
33636 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
33637 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
33638 | } | |
33639 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
33640 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
33641 | } | |
33642 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
7449af73 | 33643 | return (void *)((wxDataObject *) ((wxURLDataObject *) x)); |
d55e5bfc RD |
33644 | } |
33645 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
33646 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
33647 | } | |
d55e5bfc RD |
33648 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { |
33649 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
33650 | } | |
33651 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33652 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
33653 | } | |
33654 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33655 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
33656 | } | |
33657 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33658 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
33659 | } | |
33660 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33661 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
33662 | } | |
33663 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33664 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
33665 | } | |
33666 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33667 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
33668 | } | |
33669 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33670 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
33671 | } | |
33672 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
33673 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
33674 | } | |
33675 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
33676 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
33677 | } | |
33678 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
33679 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
33680 | } | |
33681 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
33682 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
33683 | } | |
33684 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
33685 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
33686 | } | |
33687 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
33688 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
33689 | } | |
33690 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
33691 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
33692 | } | |
33693 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
33694 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
33695 | } | |
33696 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
33697 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
33698 | } | |
33699 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
33700 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
33701 | } | |
33702 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
33703 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
33704 | } | |
33705 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
33706 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
33707 | } | |
33708 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
33709 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
33710 | } | |
33711 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
33712 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
33713 | } | |
33714 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
33715 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
33716 | } | |
33717 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
33718 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
33719 | } | |
33720 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
33721 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
33722 | } | |
33723 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
33724 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
33725 | } | |
33726 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
33727 | return (void *)((wxObject *) ((wxSizer *) x)); | |
33728 | } | |
33729 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
33730 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
33731 | } | |
33732 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
33733 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
33734 | } | |
33735 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
33736 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33737 | } | |
33738 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
33739 | return (void *)((wxObject *) ((wxEvent *) x)); | |
33740 | } | |
33741 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
33742 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
33743 | } | |
33744 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
33745 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
33746 | } | |
33747 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
33748 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
33749 | } | |
33750 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
33751 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
33752 | } | |
33753 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
33754 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
33755 | } | |
33756 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
33757 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
33758 | } | |
33759 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
33760 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
33761 | } | |
33762 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
33763 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
33764 | } | |
33765 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
33766 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
33767 | } | |
33768 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
33769 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
33770 | } | |
33771 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
33772 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
33773 | } | |
33774 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
33775 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
33776 | } | |
33777 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
33778 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
33779 | } | |
33780 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
33781 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
33782 | } | |
33783 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
33784 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
33785 | } | |
33786 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
33787 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
33788 | } | |
33789 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
33790 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33791 | } | |
33792 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
33793 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
33794 | } | |
33795 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
33796 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
33797 | } | |
33798 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
33799 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
33800 | } | |
53aa7709 RD |
33801 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
33802 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
33803 | } | |
d55e5bfc RD |
33804 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
33805 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
33806 | } | |
33807 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
33808 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33809 | } | |
33810 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
33811 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
33812 | } | |
33813 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
33814 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
33815 | } | |
33816 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
33817 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
33818 | } | |
33819 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
33820 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
33821 | } | |
33822 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
33823 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
33824 | } | |
33825 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
33826 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
33827 | } | |
d55e5bfc RD |
33828 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
33829 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
33830 | } | |
33831 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
33832 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
33833 | } | |
33834 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
33835 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
33836 | } | |
33837 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
33838 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
33839 | } | |
33840 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
33841 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
33842 | } | |
33843 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
33844 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
33845 | } | |
33846 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
33847 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
33848 | } | |
33849 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
33850 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
33851 | } | |
33852 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
33853 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
33854 | } | |
9d7dfdff RD |
33855 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
33856 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
33857 | } | |
d55e5bfc RD |
33858 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
33859 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
33860 | } | |
9d7dfdff RD |
33861 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
33862 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
33863 | } | |
d55e5bfc RD |
33864 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
33865 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
33866 | } | |
33867 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
33868 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
33869 | } | |
51b83b37 RD |
33870 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
33871 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
33872 | } | |
d55e5bfc RD |
33873 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
33874 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
33875 | } | |
33876 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
33877 | return (void *)((wxObject *) ((wxImage *) x)); | |
33878 | } | |
33879 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
33880 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
33881 | } | |
33882 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
33883 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
33884 | } | |
33885 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
33886 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
33887 | } | |
33888 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
33889 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33890 | } | |
33891 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
33892 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
33893 | } | |
33894 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
33895 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
33896 | } | |
33897 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
33898 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
33899 | } | |
33900 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
33901 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
33902 | } | |
33903 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
33904 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
33905 | } | |
33906 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
33907 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
33908 | } | |
33909 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
33910 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
33911 | } | |
33912 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
33913 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33914 | } | |
33915 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
33916 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
33917 | } | |
33918 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
33919 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
33920 | } | |
33921 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
33922 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
33923 | } | |
33924 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
33925 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
33926 | } | |
33927 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
33928 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
33929 | } | |
33930 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
33931 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
33932 | } | |
33933 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
33934 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33935 | } | |
33936 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
33937 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
33938 | } | |
33939 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
33940 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
33941 | } | |
33942 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
33943 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
33944 | } | |
33945 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
33946 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33947 | } | |
33948 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
33949 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
33950 | } | |
33951 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
33952 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
33953 | } | |
33954 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
33955 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
33956 | } | |
33957 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
33958 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
33959 | } | |
33960 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
33961 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
33962 | } | |
be9b1dca RD |
33963 | static void *_p_wxLogBufferTo_p_wxLog(void *x) { |
33964 | return (void *)((wxLog *) ((wxLogBuffer *) x)); | |
33965 | } | |
d55e5bfc RD |
33966 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { |
33967 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
33968 | } | |
33969 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
33970 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
33971 | } | |
33972 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
33973 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
33974 | } | |
33975 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
33976 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
33977 | } | |
33978 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
33979 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
33980 | } | |
33981 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
33982 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
33983 | } | |
33984 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
33985 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33986 | } | |
33987 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33988 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33989 | } | |
33990 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
33991 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
33992 | } | |
33993 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
33994 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
33995 | } | |
33996 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
33997 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
33998 | } | |
7449af73 RD |
33999 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0}; |
34000 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0}; | |
34001 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0}; | |
34002 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0}; | |
34003 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0}; | |
34004 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxLogLevel *", 0, 0, 0}; | |
34005 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, 0}; | |
34006 | static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, 0}; | |
34007 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0}; | |
34008 | static swig_type_info _swigt__p_wxBitmapDataObject = {"_p_wxBitmapDataObject", "wxBitmapDataObject *", 0, 0, 0}; | |
34009 | static swig_type_info _swigt__p_wxBusyCursor = {"_p_wxBusyCursor", "wxBusyCursor *", 0, 0, 0}; | |
34010 | static swig_type_info _swigt__p_wxBusyInfo = {"_p_wxBusyInfo", "wxBusyInfo *", 0, 0, 0}; | |
34011 | static swig_type_info _swigt__p_wxCaret = {"_p_wxCaret", "wxCaret *", 0, 0, 0}; | |
34012 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, 0}; | |
34013 | static swig_type_info _swigt__p_wxClipboard = {"_p_wxClipboard", "wxClipboard *", 0, 0, 0}; | |
34014 | static swig_type_info _swigt__p_wxClipboardLocker = {"_p_wxClipboardLocker", "wxClipboardLocker *", 0, 0, 0}; | |
34015 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0}; | |
34016 | static swig_type_info _swigt__p_wxConfig = {"_p_wxConfig", "wxConfig *", 0, 0, 0}; | |
34017 | static swig_type_info _swigt__p_wxConfigBase = {"_p_wxConfigBase", "wxConfigBase *", 0, 0, 0}; | |
34018 | static swig_type_info _swigt__p_wxConfigPathChanger = {"_p_wxConfigPathChanger", "wxConfigPathChanger *", 0, 0, 0}; | |
34019 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0}; | |
34020 | static swig_type_info _swigt__p_wxCustomDataObject = {"_p_wxCustomDataObject", "wxCustomDataObject *", 0, 0, 0}; | |
34021 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0}; | |
34022 | static swig_type_info _swigt__p_wxDataFormat = {"_p_wxDataFormat", "wxDataFormat *", 0, 0, 0}; | |
34023 | static swig_type_info _swigt__p_wxDataObject = {"_p_wxDataObject", "wxDataObject *", 0, 0, 0}; | |
34024 | static swig_type_info _swigt__p_wxDataObjectComposite = {"_p_wxDataObjectComposite", "wxDataObjectComposite *", 0, 0, 0}; | |
34025 | static swig_type_info _swigt__p_wxDataObjectSimple = {"_p_wxDataObjectSimple", "wxDataObjectSimple *", 0, 0, 0}; | |
34026 | static swig_type_info _swigt__p_wxDateSpan = {"_p_wxDateSpan", "wxDateSpan *", 0, 0, 0}; | |
34027 | static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, 0}; | |
34028 | static swig_type_info _swigt__p_wxDateTime__TimeZone = {"_p_wxDateTime__TimeZone", "wxDateTime::TimeZone *", 0, 0, 0}; | |
34029 | static swig_type_info _swigt__p_wxDisplay = {"_p_wxDisplay", "wxDisplay *", 0, 0, 0}; | |
34030 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0}; | |
34031 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0}; | |
34032 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0}; | |
34033 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0}; | |
34034 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0}; | |
34035 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0}; | |
34036 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0}; | |
34037 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0}; | |
34038 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0}; | |
34039 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0}; | |
34040 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0}; | |
34041 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0}; | |
34042 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0}; | |
34043 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0}; | |
34044 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0}; | |
34045 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0}; | |
34046 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0}; | |
34047 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0}; | |
34048 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0}; | |
34049 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0}; | |
34050 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0}; | |
34051 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0}; | |
34052 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0}; | |
34053 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0}; | |
34054 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0}; | |
34055 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0}; | |
34056 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0}; | |
34057 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0}; | |
34058 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0}; | |
34059 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0}; | |
34060 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0}; | |
34061 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0}; | |
34062 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0}; | |
34063 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0}; | |
34064 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0}; | |
34065 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0}; | |
34066 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0}; | |
34067 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0}; | |
34068 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0}; | |
34069 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0}; | |
34070 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0}; | |
34071 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0}; | |
34072 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0}; | |
34073 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0}; | |
34074 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0}; | |
34075 | static swig_type_info _swigt__p_wxFileConfig = {"_p_wxFileConfig", "wxFileConfig *", 0, 0, 0}; | |
34076 | static swig_type_info _swigt__p_wxFileDataObject = {"_p_wxFileDataObject", "wxFileDataObject *", 0, 0, 0}; | |
34077 | static swig_type_info _swigt__p_wxFileHistory = {"_p_wxFileHistory", "wxFileHistory *", 0, 0, 0}; | |
34078 | static swig_type_info _swigt__p_wxFileType = {"_p_wxFileType", "wxFileType *", 0, 0, 0}; | |
34079 | static swig_type_info _swigt__p_wxFileTypeInfo = {"_p_wxFileTypeInfo", "wxFileTypeInfo *", 0, 0, 0}; | |
34080 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0}; | |
34081 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, 0}; | |
34082 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0}; | |
34083 | static swig_type_info _swigt__p_wxJoystick = {"_p_wxJoystick", "wxJoystick *", 0, 0, 0}; | |
34084 | static swig_type_info _swigt__p_wxJoystickEvent = {"_p_wxJoystickEvent", "wxJoystickEvent *", 0, 0, 0}; | |
34085 | static swig_type_info _swigt__p_wxKillError = {"_p_wxKillError", "enum wxKillError *|wxKillError *", 0, 0, 0}; | |
34086 | static swig_type_info _swigt__p_wxLog = {"_p_wxLog", "wxLog *", 0, 0, 0}; | |
34087 | static swig_type_info _swigt__p_wxLogBuffer = {"_p_wxLogBuffer", "wxLogBuffer *", 0, 0, 0}; | |
34088 | static swig_type_info _swigt__p_wxLogChain = {"_p_wxLogChain", "wxLogChain *", 0, 0, 0}; | |
34089 | static swig_type_info _swigt__p_wxLogGui = {"_p_wxLogGui", "wxLogGui *", 0, 0, 0}; | |
34090 | static swig_type_info _swigt__p_wxLogNull = {"_p_wxLogNull", "wxLogNull *", 0, 0, 0}; | |
34091 | static swig_type_info _swigt__p_wxLogStderr = {"_p_wxLogStderr", "wxLogStderr *", 0, 0, 0}; | |
34092 | static swig_type_info _swigt__p_wxLogTextCtrl = {"_p_wxLogTextCtrl", "wxLogTextCtrl *", 0, 0, 0}; | |
34093 | static swig_type_info _swigt__p_wxLogWindow = {"_p_wxLogWindow", "wxLogWindow *", 0, 0, 0}; | |
34094 | static swig_type_info _swigt__p_wxMemorySize = {"_p_wxMemorySize", "wxMemorySize *", 0, 0, 0}; | |
34095 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, 0}; | |
34096 | static swig_type_info _swigt__p_wxMetafile = {"_p_wxMetafile", "wxMetafile *", 0, 0, 0}; | |
34097 | static swig_type_info _swigt__p_wxMetafileDataObject = {"_p_wxMetafileDataObject", "wxMetafileDataObject *", 0, 0, 0}; | |
34098 | static swig_type_info _swigt__p_wxMimeTypesManager = {"_p_wxMimeTypesManager", "wxMimeTypesManager *", 0, 0, 0}; | |
34099 | static swig_type_info _swigt__p_wxMouseState = {"_p_wxMouseState", "wxMouseState *", 0, 0, 0}; | |
34100 | static swig_type_info _swigt__p_wxMutexGuiLocker = {"_p_wxMutexGuiLocker", "wxMutexGuiLocker *", 0, 0, 0}; | |
34101 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0}; | |
34102 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0}; | |
34103 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0}; | |
34104 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0}; | |
34105 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0}; | |
34106 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0}; | |
34107 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0}; | |
34108 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0}; | |
34109 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0}; | |
34110 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0}; | |
34111 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0}; | |
34112 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0}; | |
34113 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0}; | |
34114 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0}; | |
34115 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0}; | |
34116 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0}; | |
34117 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0}; | |
34118 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0}; | |
34119 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0}; | |
34120 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0}; | |
34121 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0}; | |
34122 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0}; | |
34123 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0}; | |
34124 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0}; | |
34125 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0}; | |
34126 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0}; | |
34127 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0}; | |
34128 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0}; | |
34129 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0}; | |
34130 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0}; | |
34131 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0}; | |
34132 | static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, 0}; | |
34133 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0}; | |
34134 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0}; | |
34135 | static swig_type_info _swigt__p_wxProcessEvent = {"_p_wxProcessEvent", "wxProcessEvent *", 0, 0, 0}; | |
34136 | static swig_type_info _swigt__p_wxPyArtProvider = {"_p_wxPyArtProvider", "wxPyArtProvider *", 0, 0, 0}; | |
34137 | static swig_type_info _swigt__p_wxPyBitmapDataObject = {"_p_wxPyBitmapDataObject", "wxPyBitmapDataObject *", 0, 0, 0}; | |
34138 | static swig_type_info _swigt__p_wxPyDataObjectSimple = {"_p_wxPyDataObjectSimple", "wxPyDataObjectSimple *", 0, 0, 0}; | |
34139 | static swig_type_info _swigt__p_wxPyDropSource = {"_p_wxPyDropSource", "wxPyDropSource *", 0, 0, 0}; | |
34140 | static swig_type_info _swigt__p_wxPyDropTarget = {"_p_wxPyDropTarget", "wxPyDropTarget *", 0, 0, 0}; | |
34141 | static swig_type_info _swigt__p_wxPyFileDropTarget = {"_p_wxPyFileDropTarget", "wxPyFileDropTarget *", 0, 0, 0}; | |
34142 | static swig_type_info _swigt__p_wxPyLog = {"_p_wxPyLog", "wxPyLog *", 0, 0, 0}; | |
34143 | static swig_type_info _swigt__p_wxPyProcess = {"_p_wxPyProcess", "wxPyProcess *", 0, 0, 0}; | |
34144 | static swig_type_info _swigt__p_wxPyTextDataObject = {"_p_wxPyTextDataObject", "wxPyTextDataObject *", 0, 0, 0}; | |
34145 | static swig_type_info _swigt__p_wxPyTextDropTarget = {"_p_wxPyTextDropTarget", "wxPyTextDropTarget *", 0, 0, 0}; | |
34146 | static swig_type_info _swigt__p_wxPyTimer = {"_p_wxPyTimer", "wxPyTimer *", 0, 0, 0}; | |
34147 | static swig_type_info _swigt__p_wxPyTipProvider = {"_p_wxPyTipProvider", "wxPyTipProvider *", 0, 0, 0}; | |
34148 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0}; | |
34149 | static swig_type_info _swigt__p_wxSingleInstanceChecker = {"_p_wxSingleInstanceChecker", "wxSingleInstanceChecker *", 0, 0, 0}; | |
34150 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0}; | |
34151 | static swig_type_info _swigt__p_wxSound = {"_p_wxSound", "wxSound *", 0, 0, 0}; | |
34152 | static swig_type_info _swigt__p_wxStandardPaths = {"_p_wxStandardPaths", "wxStandardPaths *", 0, 0, 0}; | |
34153 | static swig_type_info _swigt__p_wxStopWatch = {"_p_wxStopWatch", "wxStopWatch *", 0, 0, 0}; | |
34154 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0}; | |
34155 | static swig_type_info _swigt__p_wxSystemOptions = {"_p_wxSystemOptions", "wxSystemOptions *", 0, 0, 0}; | |
34156 | static swig_type_info _swigt__p_wxSystemSettings = {"_p_wxSystemSettings", "wxSystemSettings *", 0, 0, 0}; | |
34157 | static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, 0}; | |
34158 | static swig_type_info _swigt__p_wxTextDataObject = {"_p_wxTextDataObject", "wxTextDataObject *", 0, 0, 0}; | |
34159 | static swig_type_info _swigt__p_wxTimeSpan = {"_p_wxTimeSpan", "wxTimeSpan *", 0, 0, 0}; | |
34160 | static swig_type_info _swigt__p_wxTimer = {"_p_wxTimer", "wxTimer *", 0, 0, 0}; | |
34161 | static swig_type_info _swigt__p_wxTimerEvent = {"_p_wxTimerEvent", "wxTimerEvent *", 0, 0, 0}; | |
34162 | static swig_type_info _swigt__p_wxTimerRunner = {"_p_wxTimerRunner", "wxTimerRunner *", 0, 0, 0}; | |
34163 | static swig_type_info _swigt__p_wxTipProvider = {"_p_wxTipProvider", "wxTipProvider *", 0, 0, 0}; | |
34164 | static swig_type_info _swigt__p_wxToolTip = {"_p_wxToolTip", "wxToolTip *", 0, 0, 0}; | |
34165 | static swig_type_info _swigt__p_wxURLDataObject = {"_p_wxURLDataObject", "wxURLDataObject *", 0, 0, 0}; | |
34166 | static swig_type_info _swigt__p_wxVideoMode = {"_p_wxVideoMode", "wxVideoMode *", 0, 0, 0}; | |
34167 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0}; | |
34168 | static swig_type_info _swigt__p_wxWindowDisabler = {"_p_wxWindowDisabler", "wxWindowDisabler *", 0, 0, 0}; | |
34169 | static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0}; | |
34170 | static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0}; | |
34171 | static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0}; | |
34172 | ||
34173 | static swig_type_info *swig_type_initial[] = { | |
34174 | &_swigt__p_char, | |
34175 | &_swigt__p_form_ops_t, | |
34176 | &_swigt__p_int, | |
34177 | &_swigt__p_unsigned_char, | |
34178 | &_swigt__p_unsigned_int, | |
34179 | &_swigt__p_unsigned_long, | |
34180 | &_swigt__p_void, | |
34181 | &_swigt__p_wxANIHandler, | |
34182 | &_swigt__p_wxAcceleratorTable, | |
34183 | &_swigt__p_wxActivateEvent, | |
34184 | &_swigt__p_wxArrayString, | |
34185 | &_swigt__p_wxBMPHandler, | |
34186 | &_swigt__p_wxBitmap, | |
34187 | &_swigt__p_wxBitmapDataObject, | |
34188 | &_swigt__p_wxBoxSizer, | |
34189 | &_swigt__p_wxBusyCursor, | |
34190 | &_swigt__p_wxBusyInfo, | |
34191 | &_swigt__p_wxCURHandler, | |
34192 | &_swigt__p_wxCaret, | |
34193 | &_swigt__p_wxChar, | |
34194 | &_swigt__p_wxChildFocusEvent, | |
34195 | &_swigt__p_wxClipboard, | |
34196 | &_swigt__p_wxClipboardLocker, | |
34197 | &_swigt__p_wxCloseEvent, | |
34198 | &_swigt__p_wxColour, | |
34199 | &_swigt__p_wxCommandEvent, | |
34200 | &_swigt__p_wxConfig, | |
34201 | &_swigt__p_wxConfigBase, | |
34202 | &_swigt__p_wxConfigPathChanger, | |
34203 | &_swigt__p_wxContextMenuEvent, | |
34204 | &_swigt__p_wxControl, | |
34205 | &_swigt__p_wxControlWithItems, | |
34206 | &_swigt__p_wxCursor, | |
34207 | &_swigt__p_wxCustomDataObject, | |
34208 | &_swigt__p_wxDC, | |
34209 | &_swigt__p_wxDataFormat, | |
34210 | &_swigt__p_wxDataObject, | |
34211 | &_swigt__p_wxDataObjectComposite, | |
34212 | &_swigt__p_wxDataObjectSimple, | |
34213 | &_swigt__p_wxDateEvent, | |
34214 | &_swigt__p_wxDateSpan, | |
34215 | &_swigt__p_wxDateTime, | |
34216 | &_swigt__p_wxDateTime__TimeZone, | |
34217 | &_swigt__p_wxDisplay, | |
34218 | &_swigt__p_wxDisplayChangedEvent, | |
34219 | &_swigt__p_wxDropFilesEvent, | |
34220 | &_swigt__p_wxDuplexMode, | |
34221 | &_swigt__p_wxEraseEvent, | |
34222 | &_swigt__p_wxEvent, | |
34223 | &_swigt__p_wxEvtHandler, | |
34224 | &_swigt__p_wxFSFile, | |
34225 | &_swigt__p_wxFileConfig, | |
34226 | &_swigt__p_wxFileDataObject, | |
34227 | &_swigt__p_wxFileHistory, | |
34228 | &_swigt__p_wxFileSystem, | |
34229 | &_swigt__p_wxFileType, | |
34230 | &_swigt__p_wxFileTypeInfo, | |
34231 | &_swigt__p_wxFlexGridSizer, | |
34232 | &_swigt__p_wxFocusEvent, | |
34233 | &_swigt__p_wxFont, | |
34234 | &_swigt__p_wxFrame, | |
34235 | &_swigt__p_wxGBSizerItem, | |
34236 | &_swigt__p_wxGIFHandler, | |
34237 | &_swigt__p_wxGridBagSizer, | |
34238 | &_swigt__p_wxGridSizer, | |
34239 | &_swigt__p_wxICOHandler, | |
34240 | &_swigt__p_wxIcon, | |
34241 | &_swigt__p_wxIconizeEvent, | |
34242 | &_swigt__p_wxIdleEvent, | |
34243 | &_swigt__p_wxImage, | |
34244 | &_swigt__p_wxImageHandler, | |
34245 | &_swigt__p_wxIndividualLayoutConstraint, | |
34246 | &_swigt__p_wxInitDialogEvent, | |
34247 | &_swigt__p_wxJPEGHandler, | |
34248 | &_swigt__p_wxJoystick, | |
34249 | &_swigt__p_wxJoystickEvent, | |
34250 | &_swigt__p_wxKeyEvent, | |
34251 | &_swigt__p_wxKillError, | |
34252 | &_swigt__p_wxLayoutConstraints, | |
34253 | &_swigt__p_wxLog, | |
34254 | &_swigt__p_wxLogBuffer, | |
34255 | &_swigt__p_wxLogChain, | |
34256 | &_swigt__p_wxLogGui, | |
34257 | &_swigt__p_wxLogNull, | |
34258 | &_swigt__p_wxLogStderr, | |
34259 | &_swigt__p_wxLogTextCtrl, | |
34260 | &_swigt__p_wxLogWindow, | |
34261 | &_swigt__p_wxMaximizeEvent, | |
34262 | &_swigt__p_wxMemorySize, | |
34263 | &_swigt__p_wxMenu, | |
34264 | &_swigt__p_wxMenuBar, | |
34265 | &_swigt__p_wxMenuEvent, | |
34266 | &_swigt__p_wxMenuItem, | |
34267 | &_swigt__p_wxMetafile, | |
34268 | &_swigt__p_wxMetafileDataObject, | |
34269 | &_swigt__p_wxMimeTypesManager, | |
34270 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34271 | &_swigt__p_wxMouseEvent, | |
34272 | &_swigt__p_wxMouseState, | |
34273 | &_swigt__p_wxMoveEvent, | |
34274 | &_swigt__p_wxMutexGuiLocker, | |
34275 | &_swigt__p_wxNavigationKeyEvent, | |
34276 | &_swigt__p_wxNcPaintEvent, | |
34277 | &_swigt__p_wxNotifyEvent, | |
34278 | &_swigt__p_wxObject, | |
34279 | &_swigt__p_wxOutputStream, | |
34280 | &_swigt__p_wxPCXHandler, | |
34281 | &_swigt__p_wxPNGHandler, | |
34282 | &_swigt__p_wxPNMHandler, | |
34283 | &_swigt__p_wxPaintEvent, | |
34284 | &_swigt__p_wxPaletteChangedEvent, | |
34285 | &_swigt__p_wxPaperSize, | |
34286 | &_swigt__p_wxPoint, | |
34287 | &_swigt__p_wxProcessEvent, | |
34288 | &_swigt__p_wxPyApp, | |
34289 | &_swigt__p_wxPyArtProvider, | |
34290 | &_swigt__p_wxPyBitmapDataObject, | |
34291 | &_swigt__p_wxPyCommandEvent, | |
34292 | &_swigt__p_wxPyDataObjectSimple, | |
34293 | &_swigt__p_wxPyDropSource, | |
34294 | &_swigt__p_wxPyDropTarget, | |
34295 | &_swigt__p_wxPyEvent, | |
34296 | &_swigt__p_wxPyFileDropTarget, | |
34297 | &_swigt__p_wxPyImageHandler, | |
34298 | &_swigt__p_wxPyLog, | |
34299 | &_swigt__p_wxPyProcess, | |
34300 | &_swigt__p_wxPySizer, | |
34301 | &_swigt__p_wxPyTextDataObject, | |
34302 | &_swigt__p_wxPyTextDropTarget, | |
34303 | &_swigt__p_wxPyTimer, | |
34304 | &_swigt__p_wxPyTipProvider, | |
34305 | &_swigt__p_wxPyValidator, | |
34306 | &_swigt__p_wxQueryNewPaletteEvent, | |
34307 | &_swigt__p_wxRect, | |
34308 | &_swigt__p_wxScrollEvent, | |
34309 | &_swigt__p_wxScrollWinEvent, | |
34310 | &_swigt__p_wxSetCursorEvent, | |
34311 | &_swigt__p_wxShowEvent, | |
34312 | &_swigt__p_wxSingleInstanceChecker, | |
34313 | &_swigt__p_wxSize, | |
34314 | &_swigt__p_wxSizeEvent, | |
34315 | &_swigt__p_wxSizer, | |
34316 | &_swigt__p_wxSizerItem, | |
34317 | &_swigt__p_wxSound, | |
34318 | &_swigt__p_wxStandardPaths, | |
34319 | &_swigt__p_wxStaticBoxSizer, | |
34320 | &_swigt__p_wxStdDialogButtonSizer, | |
34321 | &_swigt__p_wxStopWatch, | |
34322 | &_swigt__p_wxString, | |
34323 | &_swigt__p_wxSysColourChangedEvent, | |
34324 | &_swigt__p_wxSystemOptions, | |
34325 | &_swigt__p_wxSystemSettings, | |
34326 | &_swigt__p_wxTIFFHandler, | |
34327 | &_swigt__p_wxTextCtrl, | |
34328 | &_swigt__p_wxTextDataObject, | |
34329 | &_swigt__p_wxTimeSpan, | |
34330 | &_swigt__p_wxTimer, | |
34331 | &_swigt__p_wxTimerEvent, | |
34332 | &_swigt__p_wxTimerRunner, | |
34333 | &_swigt__p_wxTipProvider, | |
34334 | &_swigt__p_wxToolTip, | |
34335 | &_swigt__p_wxURLDataObject, | |
34336 | &_swigt__p_wxUpdateUIEvent, | |
34337 | &_swigt__p_wxValidator, | |
34338 | &_swigt__p_wxVideoMode, | |
34339 | &_swigt__p_wxWindow, | |
34340 | &_swigt__p_wxWindowCreateEvent, | |
34341 | &_swigt__p_wxWindowDestroyEvent, | |
34342 | &_swigt__p_wxWindowDisabler, | |
34343 | &_swigt__p_wxXPMHandler, | |
34344 | &_swigt__ptrdiff_t, | |
34345 | &_swigt__std__ptrdiff_t, | |
34346 | &_swigt__unsigned_int, | |
34347 | }; | |
34348 | ||
34349 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
34350 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
34351 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
34352 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
34353 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
34354 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
34355 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; | |
34356 | static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}}; | |
34357 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
34358 | static swig_cast_info _swigc__p_wxBitmapDataObject[] = { {&_swigt__p_wxBitmapDataObject, 0, 0, 0}, {&_swigt__p_wxPyBitmapDataObject, _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject, 0, 0},{0, 0, 0, 0}}; | |
34359 | static swig_cast_info _swigc__p_wxBusyCursor[] = { {&_swigt__p_wxBusyCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
34360 | static swig_cast_info _swigc__p_wxBusyInfo[] = { {&_swigt__p_wxBusyInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
34361 | static swig_cast_info _swigc__p_wxCaret[] = { {&_swigt__p_wxCaret, 0, 0, 0},{0, 0, 0, 0}}; | |
34362 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; | |
34363 | static swig_cast_info _swigc__p_wxClipboard[] = { {&_swigt__p_wxClipboard, 0, 0, 0},{0, 0, 0, 0}}; | |
34364 | static swig_cast_info _swigc__p_wxClipboardLocker[] = { {&_swigt__p_wxClipboardLocker, 0, 0, 0},{0, 0, 0, 0}}; | |
34365 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
34366 | static swig_cast_info _swigc__p_wxConfig[] = { {&_swigt__p_wxConfig, 0, 0, 0},{0, 0, 0, 0}}; | |
34367 | static swig_cast_info _swigc__p_wxConfigBase[] = { {&_swigt__p_wxFileConfig, _p_wxFileConfigTo_p_wxConfigBase, 0, 0}, {&_swigt__p_wxConfigBase, 0, 0, 0}, {&_swigt__p_wxConfig, _p_wxConfigTo_p_wxConfigBase, 0, 0},{0, 0, 0, 0}}; | |
34368 | static swig_cast_info _swigc__p_wxConfigPathChanger[] = { {&_swigt__p_wxConfigPathChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
34369 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
34370 | static swig_cast_info _swigc__p_wxCustomDataObject[] = { {&_swigt__p_wxCustomDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34371 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
34372 | static swig_cast_info _swigc__p_wxDataFormat[] = { {&_swigt__p_wxDataFormat, 0, 0, 0},{0, 0, 0, 0}}; | |
34373 | static swig_cast_info _swigc__p_wxDataObject[] = { {&_swigt__p_wxDataObjectSimple, _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxPyDataObjectSimple, _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxDataObjectComposite, _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxDataObject, 0, 0, 0}, {&_swigt__p_wxTextDataObject, _p_wxTextDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxPyTextDataObject, _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxBitmapDataObject, _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxPyBitmapDataObject, _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxFileDataObject, _p_wxFileDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxCustomDataObject, _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxMetafileDataObject, _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxURLDataObject, _p_wxURLDataObjectTo_p_wxDataObject, 0, 0},{0, 0, 0, 0}}; | |
34374 | static swig_cast_info _swigc__p_wxDataObjectComposite[] = { {&_swigt__p_wxDataObjectComposite, 0, 0, 0},{0, 0, 0, 0}}; | |
34375 | static swig_cast_info _swigc__p_wxDataObjectSimple[] = { {&_swigt__p_wxDataObjectSimple, 0, 0, 0}, {&_swigt__p_wxPyDataObjectSimple, _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxTextDataObject, _p_wxTextDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxPyTextDataObject, _p_wxPyTextDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxBitmapDataObject, _p_wxBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxPyBitmapDataObject, _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxFileDataObject, _p_wxFileDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxCustomDataObject, _p_wxCustomDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxMetafileDataObject, _p_wxMetafileDataObjectTo_p_wxDataObjectSimple, 0, 0},{0, 0, 0, 0}}; | |
34376 | static swig_cast_info _swigc__p_wxDateSpan[] = { {&_swigt__p_wxDateSpan, 0, 0, 0},{0, 0, 0, 0}}; | |
34377 | static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}}; | |
34378 | static swig_cast_info _swigc__p_wxDateTime__TimeZone[] = { {&_swigt__p_wxDateTime__TimeZone, 0, 0, 0},{0, 0, 0, 0}}; | |
34379 | static swig_cast_info _swigc__p_wxDisplay[] = { {&_swigt__p_wxDisplay, 0, 0, 0},{0, 0, 0, 0}}; | |
34380 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
34381 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34382 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34383 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34384 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34385 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34386 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34387 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34388 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34389 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34390 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34391 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34392 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34393 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34394 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34395 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34396 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34397 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34398 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34399 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34400 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34401 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34402 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34403 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34404 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34405 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34406 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34407 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34408 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34409 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34410 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34411 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34412 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34413 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34414 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34415 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34416 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34417 | 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_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTimerEvent, _p_wxTimerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxJoystickEvent, _p_wxJoystickEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxProcessEvent, _p_wxProcessEventTo_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_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}}; | |
34418 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
34419 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
34420 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
34421 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
34422 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
34423 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
34424 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTimer, _p_wxPyTimerTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyProcess, _p_wxPyProcessTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}}; | |
34425 | static swig_cast_info _swigc__p_wxFileConfig[] = { {&_swigt__p_wxFileConfig, 0, 0, 0},{0, 0, 0, 0}}; | |
34426 | static swig_cast_info _swigc__p_wxFileDataObject[] = { {&_swigt__p_wxFileDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34427 | static swig_cast_info _swigc__p_wxFileHistory[] = { {&_swigt__p_wxFileHistory, 0, 0, 0},{0, 0, 0, 0}}; | |
34428 | static swig_cast_info _swigc__p_wxFileType[] = { {&_swigt__p_wxFileType, 0, 0, 0},{0, 0, 0, 0}}; | |
34429 | static swig_cast_info _swigc__p_wxFileTypeInfo[] = { {&_swigt__p_wxFileTypeInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
34430 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
34431 | static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
34432 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
34433 | static swig_cast_info _swigc__p_wxJoystick[] = { {&_swigt__p_wxJoystick, 0, 0, 0},{0, 0, 0, 0}}; | |
34434 | static swig_cast_info _swigc__p_wxJoystickEvent[] = { {&_swigt__p_wxJoystickEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34435 | static swig_cast_info _swigc__p_wxKillError[] = { {&_swigt__p_wxKillError, 0, 0, 0},{0, 0, 0, 0}}; | |
34436 | static swig_cast_info _swigc__p_wxLog[] = { {&_swigt__p_wxLogBuffer, _p_wxLogBufferTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogStderr, _p_wxLogStderrTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogTextCtrl, _p_wxLogTextCtrlTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogWindow, _p_wxLogWindowTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogChain, _p_wxLogChainTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogGui, _p_wxLogGuiTo_p_wxLog, 0, 0}, {&_swigt__p_wxPyLog, _p_wxPyLogTo_p_wxLog, 0, 0}, {&_swigt__p_wxLog, 0, 0, 0},{0, 0, 0, 0}}; | |
34437 | static swig_cast_info _swigc__p_wxLogBuffer[] = { {&_swigt__p_wxLogBuffer, 0, 0, 0},{0, 0, 0, 0}}; | |
34438 | static swig_cast_info _swigc__p_wxLogChain[] = { {&_swigt__p_wxLogChain, 0, 0, 0},{0, 0, 0, 0}}; | |
34439 | static swig_cast_info _swigc__p_wxLogGui[] = { {&_swigt__p_wxLogGui, 0, 0, 0},{0, 0, 0, 0}}; | |
34440 | static swig_cast_info _swigc__p_wxLogNull[] = { {&_swigt__p_wxLogNull, 0, 0, 0},{0, 0, 0, 0}}; | |
34441 | static swig_cast_info _swigc__p_wxLogStderr[] = { {&_swigt__p_wxLogStderr, 0, 0, 0},{0, 0, 0, 0}}; | |
34442 | static swig_cast_info _swigc__p_wxLogTextCtrl[] = { {&_swigt__p_wxLogTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
34443 | static swig_cast_info _swigc__p_wxLogWindow[] = { {&_swigt__p_wxLogWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
34444 | static swig_cast_info _swigc__p_wxMemorySize[] = { {&_swigt__p_wxMemorySize, 0, 0, 0},{0, 0, 0, 0}}; | |
34445 | static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
34446 | static swig_cast_info _swigc__p_wxMetafile[] = { {&_swigt__p_wxMetafile, 0, 0, 0},{0, 0, 0, 0}}; | |
34447 | static swig_cast_info _swigc__p_wxMetafileDataObject[] = { {&_swigt__p_wxMetafileDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34448 | static swig_cast_info _swigc__p_wxMimeTypesManager[] = { {&_swigt__p_wxMimeTypesManager, 0, 0, 0},{0, 0, 0, 0}}; | |
34449 | static swig_cast_info _swigc__p_wxMouseState[] = { {&_swigt__p_wxMouseState, 0, 0, 0},{0, 0, 0, 0}}; | |
34450 | static swig_cast_info _swigc__p_wxMutexGuiLocker[] = { {&_swigt__p_wxMutexGuiLocker, 0, 0, 0},{0, 0, 0, 0}}; | |
34451 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
34452 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
34453 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
34454 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
34455 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34456 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34457 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34458 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34459 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34460 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34461 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
34462 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34463 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
34464 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34465 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34466 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34467 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34468 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34469 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34470 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34471 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34472 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34473 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34474 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34475 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34476 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34477 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34478 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
34479 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
34480 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
34481 | 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_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_wxFileHistory, _p_wxFileHistoryTo_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_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_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_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTimerEvent, _p_wxTimerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboard, _p_wxClipboardTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolTip, _p_wxToolTipTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSystemOptions, _p_wxSystemOptionsTo_p_wxObject, 0, 0}, {&_swigt__p_wxJoystickEvent, _p_wxJoystickEventTo_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_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyProcess, _p_wxPyProcessTo_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_wxPyApp, _p_wxPyAppTo_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_wxBusyInfo, _p_wxBusyInfoTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxProcessEvent, _p_wxProcessEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTimer, _p_wxPyTimerTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; | |
34482 | static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}}; | |
34483 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
34484 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
34485 | static swig_cast_info _swigc__p_wxProcessEvent[] = { {&_swigt__p_wxProcessEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34486 | static swig_cast_info _swigc__p_wxPyArtProvider[] = { {&_swigt__p_wxPyArtProvider, 0, 0, 0},{0, 0, 0, 0}}; | |
34487 | static swig_cast_info _swigc__p_wxPyBitmapDataObject[] = { {&_swigt__p_wxPyBitmapDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34488 | static swig_cast_info _swigc__p_wxPyDataObjectSimple[] = { {&_swigt__p_wxPyDataObjectSimple, 0, 0, 0},{0, 0, 0, 0}}; | |
34489 | static swig_cast_info _swigc__p_wxPyDropSource[] = { {&_swigt__p_wxPyDropSource, 0, 0, 0},{0, 0, 0, 0}}; | |
34490 | static swig_cast_info _swigc__p_wxPyDropTarget[] = { {&_swigt__p_wxPyDropTarget, 0, 0, 0}, {&_swigt__p_wxPyTextDropTarget, _p_wxPyTextDropTargetTo_p_wxPyDropTarget, 0, 0}, {&_swigt__p_wxPyFileDropTarget, _p_wxPyFileDropTargetTo_p_wxPyDropTarget, 0, 0},{0, 0, 0, 0}}; | |
34491 | static swig_cast_info _swigc__p_wxPyFileDropTarget[] = { {&_swigt__p_wxPyFileDropTarget, 0, 0, 0},{0, 0, 0, 0}}; | |
34492 | static swig_cast_info _swigc__p_wxPyLog[] = { {&_swigt__p_wxPyLog, 0, 0, 0},{0, 0, 0, 0}}; | |
34493 | static swig_cast_info _swigc__p_wxPyProcess[] = { {&_swigt__p_wxPyProcess, 0, 0, 0},{0, 0, 0, 0}}; | |
34494 | static swig_cast_info _swigc__p_wxPyTextDataObject[] = { {&_swigt__p_wxPyTextDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34495 | static swig_cast_info _swigc__p_wxPyTextDropTarget[] = { {&_swigt__p_wxPyTextDropTarget, 0, 0, 0},{0, 0, 0, 0}}; | |
34496 | static swig_cast_info _swigc__p_wxPyTimer[] = { {&_swigt__p_wxPyTimer, 0, 0, 0},{0, 0, 0, 0}}; | |
34497 | static swig_cast_info _swigc__p_wxPyTipProvider[] = { {&_swigt__p_wxPyTipProvider, 0, 0, 0},{0, 0, 0, 0}}; | |
34498 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
34499 | static swig_cast_info _swigc__p_wxSingleInstanceChecker[] = { {&_swigt__p_wxSingleInstanceChecker, 0, 0, 0},{0, 0, 0, 0}}; | |
34500 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
34501 | static swig_cast_info _swigc__p_wxSound[] = { {&_swigt__p_wxSound, 0, 0, 0},{0, 0, 0, 0}}; | |
34502 | static swig_cast_info _swigc__p_wxStandardPaths[] = { {&_swigt__p_wxStandardPaths, 0, 0, 0},{0, 0, 0, 0}}; | |
34503 | static swig_cast_info _swigc__p_wxStopWatch[] = { {&_swigt__p_wxStopWatch, 0, 0, 0},{0, 0, 0, 0}}; | |
34504 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
34505 | static swig_cast_info _swigc__p_wxSystemOptions[] = { {&_swigt__p_wxSystemOptions, 0, 0, 0},{0, 0, 0, 0}}; | |
34506 | static swig_cast_info _swigc__p_wxSystemSettings[] = { {&_swigt__p_wxSystemSettings, 0, 0, 0},{0, 0, 0, 0}}; | |
34507 | static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
34508 | static swig_cast_info _swigc__p_wxTextDataObject[] = { {&_swigt__p_wxTextDataObject, 0, 0, 0}, {&_swigt__p_wxPyTextDataObject, _p_wxPyTextDataObjectTo_p_wxTextDataObject, 0, 0},{0, 0, 0, 0}}; | |
34509 | static swig_cast_info _swigc__p_wxTimeSpan[] = { {&_swigt__p_wxTimeSpan, 0, 0, 0},{0, 0, 0, 0}}; | |
34510 | static swig_cast_info _swigc__p_wxTimer[] = { {&_swigt__p_wxTimer, 0, 0, 0},{0, 0, 0, 0}}; | |
34511 | static swig_cast_info _swigc__p_wxTimerEvent[] = { {&_swigt__p_wxTimerEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34512 | static swig_cast_info _swigc__p_wxTimerRunner[] = { {&_swigt__p_wxTimerRunner, 0, 0, 0},{0, 0, 0, 0}}; | |
34513 | static swig_cast_info _swigc__p_wxTipProvider[] = { {&_swigt__p_wxTipProvider, 0, 0, 0}, {&_swigt__p_wxPyTipProvider, _p_wxPyTipProviderTo_p_wxTipProvider, 0, 0},{0, 0, 0, 0}}; | |
34514 | static swig_cast_info _swigc__p_wxToolTip[] = { {&_swigt__p_wxToolTip, 0, 0, 0},{0, 0, 0, 0}}; | |
34515 | static swig_cast_info _swigc__p_wxURLDataObject[] = { {&_swigt__p_wxURLDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34516 | static swig_cast_info _swigc__p_wxVideoMode[] = { {&_swigt__p_wxVideoMode, 0, 0, 0},{0, 0, 0, 0}}; | |
34517 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; | |
34518 | static swig_cast_info _swigc__p_wxWindowDisabler[] = { {&_swigt__p_wxWindowDisabler, 0, 0, 0},{0, 0, 0, 0}}; | |
34519 | static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
34520 | static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
34521 | static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
34522 | ||
34523 | static swig_cast_info *swig_cast_initial[] = { | |
34524 | _swigc__p_char, | |
34525 | _swigc__p_form_ops_t, | |
34526 | _swigc__p_int, | |
34527 | _swigc__p_unsigned_char, | |
34528 | _swigc__p_unsigned_int, | |
34529 | _swigc__p_unsigned_long, | |
34530 | _swigc__p_void, | |
34531 | _swigc__p_wxANIHandler, | |
34532 | _swigc__p_wxAcceleratorTable, | |
34533 | _swigc__p_wxActivateEvent, | |
34534 | _swigc__p_wxArrayString, | |
34535 | _swigc__p_wxBMPHandler, | |
34536 | _swigc__p_wxBitmap, | |
34537 | _swigc__p_wxBitmapDataObject, | |
34538 | _swigc__p_wxBoxSizer, | |
34539 | _swigc__p_wxBusyCursor, | |
34540 | _swigc__p_wxBusyInfo, | |
34541 | _swigc__p_wxCURHandler, | |
34542 | _swigc__p_wxCaret, | |
34543 | _swigc__p_wxChar, | |
34544 | _swigc__p_wxChildFocusEvent, | |
34545 | _swigc__p_wxClipboard, | |
34546 | _swigc__p_wxClipboardLocker, | |
34547 | _swigc__p_wxCloseEvent, | |
34548 | _swigc__p_wxColour, | |
34549 | _swigc__p_wxCommandEvent, | |
34550 | _swigc__p_wxConfig, | |
34551 | _swigc__p_wxConfigBase, | |
34552 | _swigc__p_wxConfigPathChanger, | |
34553 | _swigc__p_wxContextMenuEvent, | |
34554 | _swigc__p_wxControl, | |
34555 | _swigc__p_wxControlWithItems, | |
34556 | _swigc__p_wxCursor, | |
34557 | _swigc__p_wxCustomDataObject, | |
34558 | _swigc__p_wxDC, | |
34559 | _swigc__p_wxDataFormat, | |
34560 | _swigc__p_wxDataObject, | |
34561 | _swigc__p_wxDataObjectComposite, | |
34562 | _swigc__p_wxDataObjectSimple, | |
34563 | _swigc__p_wxDateEvent, | |
34564 | _swigc__p_wxDateSpan, | |
34565 | _swigc__p_wxDateTime, | |
34566 | _swigc__p_wxDateTime__TimeZone, | |
34567 | _swigc__p_wxDisplay, | |
34568 | _swigc__p_wxDisplayChangedEvent, | |
34569 | _swigc__p_wxDropFilesEvent, | |
34570 | _swigc__p_wxDuplexMode, | |
34571 | _swigc__p_wxEraseEvent, | |
34572 | _swigc__p_wxEvent, | |
34573 | _swigc__p_wxEvtHandler, | |
34574 | _swigc__p_wxFSFile, | |
34575 | _swigc__p_wxFileConfig, | |
34576 | _swigc__p_wxFileDataObject, | |
34577 | _swigc__p_wxFileHistory, | |
34578 | _swigc__p_wxFileSystem, | |
34579 | _swigc__p_wxFileType, | |
34580 | _swigc__p_wxFileTypeInfo, | |
34581 | _swigc__p_wxFlexGridSizer, | |
34582 | _swigc__p_wxFocusEvent, | |
34583 | _swigc__p_wxFont, | |
34584 | _swigc__p_wxFrame, | |
34585 | _swigc__p_wxGBSizerItem, | |
34586 | _swigc__p_wxGIFHandler, | |
34587 | _swigc__p_wxGridBagSizer, | |
34588 | _swigc__p_wxGridSizer, | |
34589 | _swigc__p_wxICOHandler, | |
34590 | _swigc__p_wxIcon, | |
34591 | _swigc__p_wxIconizeEvent, | |
34592 | _swigc__p_wxIdleEvent, | |
34593 | _swigc__p_wxImage, | |
34594 | _swigc__p_wxImageHandler, | |
34595 | _swigc__p_wxIndividualLayoutConstraint, | |
34596 | _swigc__p_wxInitDialogEvent, | |
34597 | _swigc__p_wxJPEGHandler, | |
34598 | _swigc__p_wxJoystick, | |
34599 | _swigc__p_wxJoystickEvent, | |
34600 | _swigc__p_wxKeyEvent, | |
34601 | _swigc__p_wxKillError, | |
34602 | _swigc__p_wxLayoutConstraints, | |
34603 | _swigc__p_wxLog, | |
34604 | _swigc__p_wxLogBuffer, | |
34605 | _swigc__p_wxLogChain, | |
34606 | _swigc__p_wxLogGui, | |
34607 | _swigc__p_wxLogNull, | |
34608 | _swigc__p_wxLogStderr, | |
34609 | _swigc__p_wxLogTextCtrl, | |
34610 | _swigc__p_wxLogWindow, | |
34611 | _swigc__p_wxMaximizeEvent, | |
34612 | _swigc__p_wxMemorySize, | |
34613 | _swigc__p_wxMenu, | |
34614 | _swigc__p_wxMenuBar, | |
34615 | _swigc__p_wxMenuEvent, | |
34616 | _swigc__p_wxMenuItem, | |
34617 | _swigc__p_wxMetafile, | |
34618 | _swigc__p_wxMetafileDataObject, | |
34619 | _swigc__p_wxMimeTypesManager, | |
34620 | _swigc__p_wxMouseCaptureChangedEvent, | |
34621 | _swigc__p_wxMouseEvent, | |
34622 | _swigc__p_wxMouseState, | |
34623 | _swigc__p_wxMoveEvent, | |
34624 | _swigc__p_wxMutexGuiLocker, | |
34625 | _swigc__p_wxNavigationKeyEvent, | |
34626 | _swigc__p_wxNcPaintEvent, | |
34627 | _swigc__p_wxNotifyEvent, | |
34628 | _swigc__p_wxObject, | |
34629 | _swigc__p_wxOutputStream, | |
34630 | _swigc__p_wxPCXHandler, | |
34631 | _swigc__p_wxPNGHandler, | |
34632 | _swigc__p_wxPNMHandler, | |
34633 | _swigc__p_wxPaintEvent, | |
34634 | _swigc__p_wxPaletteChangedEvent, | |
34635 | _swigc__p_wxPaperSize, | |
34636 | _swigc__p_wxPoint, | |
34637 | _swigc__p_wxProcessEvent, | |
34638 | _swigc__p_wxPyApp, | |
34639 | _swigc__p_wxPyArtProvider, | |
34640 | _swigc__p_wxPyBitmapDataObject, | |
34641 | _swigc__p_wxPyCommandEvent, | |
34642 | _swigc__p_wxPyDataObjectSimple, | |
34643 | _swigc__p_wxPyDropSource, | |
34644 | _swigc__p_wxPyDropTarget, | |
34645 | _swigc__p_wxPyEvent, | |
34646 | _swigc__p_wxPyFileDropTarget, | |
34647 | _swigc__p_wxPyImageHandler, | |
34648 | _swigc__p_wxPyLog, | |
34649 | _swigc__p_wxPyProcess, | |
34650 | _swigc__p_wxPySizer, | |
34651 | _swigc__p_wxPyTextDataObject, | |
34652 | _swigc__p_wxPyTextDropTarget, | |
34653 | _swigc__p_wxPyTimer, | |
34654 | _swigc__p_wxPyTipProvider, | |
34655 | _swigc__p_wxPyValidator, | |
34656 | _swigc__p_wxQueryNewPaletteEvent, | |
34657 | _swigc__p_wxRect, | |
34658 | _swigc__p_wxScrollEvent, | |
34659 | _swigc__p_wxScrollWinEvent, | |
34660 | _swigc__p_wxSetCursorEvent, | |
34661 | _swigc__p_wxShowEvent, | |
34662 | _swigc__p_wxSingleInstanceChecker, | |
34663 | _swigc__p_wxSize, | |
34664 | _swigc__p_wxSizeEvent, | |
34665 | _swigc__p_wxSizer, | |
34666 | _swigc__p_wxSizerItem, | |
34667 | _swigc__p_wxSound, | |
34668 | _swigc__p_wxStandardPaths, | |
34669 | _swigc__p_wxStaticBoxSizer, | |
34670 | _swigc__p_wxStdDialogButtonSizer, | |
34671 | _swigc__p_wxStopWatch, | |
34672 | _swigc__p_wxString, | |
34673 | _swigc__p_wxSysColourChangedEvent, | |
34674 | _swigc__p_wxSystemOptions, | |
34675 | _swigc__p_wxSystemSettings, | |
34676 | _swigc__p_wxTIFFHandler, | |
34677 | _swigc__p_wxTextCtrl, | |
34678 | _swigc__p_wxTextDataObject, | |
34679 | _swigc__p_wxTimeSpan, | |
34680 | _swigc__p_wxTimer, | |
34681 | _swigc__p_wxTimerEvent, | |
34682 | _swigc__p_wxTimerRunner, | |
34683 | _swigc__p_wxTipProvider, | |
34684 | _swigc__p_wxToolTip, | |
34685 | _swigc__p_wxURLDataObject, | |
34686 | _swigc__p_wxUpdateUIEvent, | |
34687 | _swigc__p_wxValidator, | |
34688 | _swigc__p_wxVideoMode, | |
34689 | _swigc__p_wxWindow, | |
34690 | _swigc__p_wxWindowCreateEvent, | |
34691 | _swigc__p_wxWindowDestroyEvent, | |
34692 | _swigc__p_wxWindowDisabler, | |
34693 | _swigc__p_wxXPMHandler, | |
34694 | _swigc__ptrdiff_t, | |
34695 | _swigc__std__ptrdiff_t, | |
34696 | _swigc__unsigned_int, | |
d55e5bfc RD |
34697 | }; |
34698 | ||
34699 | ||
34700 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
34701 | ||
34702 | static swig_const_info swig_const_table[] = { | |
34703 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
34704 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
34705 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
34706 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
34707 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
c32bde28 | 34708 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
34709 | |
34710 | #ifdef __cplusplus | |
34711 | } | |
34712 | #endif | |
7449af73 RD |
34713 | /************************************************************************* |
34714 | * Type initialization: | |
34715 | * This problem is tough by the requirement that no dynamic | |
34716 | * memory is used. Also, since swig_type_info structures store pointers to | |
34717 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
34718 | * to swig_type_info structures, we need some lookup code at initialization. | |
34719 | * The idea is that swig generates all the structures that are needed. | |
34720 | * The runtime then collects these partially filled structures. | |
34721 | * The SWIG_InitializeModule function takes these initial arrays out of | |
34722 | * swig_module, and does all the lookup, filling in the swig_module.types | |
34723 | * array with the correct data and linking the correct swig_cast_info | |
34724 | * structures together. | |
34725 | ||
34726 | * The generated swig_type_info structures are assigned staticly to an initial | |
34727 | * array. We just loop though that array, and handle each type individually. | |
34728 | * First we lookup if this type has been already loaded, and if so, use the | |
34729 | * loaded structure instead of the generated one. Then we have to fill in the | |
34730 | * cast linked list. The cast data is initially stored in something like a | |
34731 | * two-dimensional array. Each row corresponds to a type (there are the same | |
34732 | * number of rows as there are in the swig_type_initial array). Each entry in | |
34733 | * a column is one of the swig_cast_info structures for that type. | |
34734 | * The cast_initial array is actually an array of arrays, because each row has | |
34735 | * a variable number of columns. So to actually build the cast linked list, | |
34736 | * we find the array of casts associated with the type, and loop through it | |
34737 | * adding the casts to the list. The one last trick we need to do is making | |
34738 | * sure the type pointer in the swig_cast_info struct is correct. | |
34739 | ||
34740 | * First off, we lookup the cast->type name to see if it is already loaded. | |
34741 | * There are three cases to handle: | |
34742 | * 1) If the cast->type has already been loaded AND the type we are adding | |
34743 | * casting info to has not been loaded (it is in this module), THEN we | |
34744 | * replace the cast->type pointer with the type pointer that has already | |
34745 | * been loaded. | |
34746 | * 2) If BOTH types (the one we are adding casting info to, and the | |
34747 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
34748 | * the previous module so we just ignore it. | |
34749 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
34750 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
34751 | * be correct. | |
34752 | **/ | |
34753 | ||
34754 | #ifdef __cplusplus | |
34755 | extern "C" { | |
34756 | #if 0 | |
34757 | } /* c-mode */ | |
34758 | #endif | |
34759 | #endif | |
34760 | ||
34761 | #if 0 | |
34762 | #define SWIGRUNTIME_DEBUG | |
34763 | #endif | |
34764 | ||
34765 | SWIGRUNTIME void | |
34766 | SWIG_InitializeModule(void *clientdata) { | |
34767 | size_t i; | |
34768 | swig_module_info *module_head; | |
34769 | static int init_run = 0; | |
34770 | ||
34771 | clientdata = clientdata; | |
34772 | ||
34773 | if (init_run) return; | |
34774 | init_run = 1; | |
34775 | ||
34776 | /* Initialize the swig_module */ | |
34777 | swig_module.type_initial = swig_type_initial; | |
34778 | swig_module.cast_initial = swig_cast_initial; | |
34779 | ||
34780 | /* Try and load any already created modules */ | |
34781 | module_head = SWIG_GetModule(clientdata); | |
34782 | if (module_head) { | |
34783 | swig_module.next = module_head->next; | |
34784 | module_head->next = &swig_module; | |
34785 | } else { | |
34786 | /* This is the first module loaded */ | |
34787 | swig_module.next = &swig_module; | |
34788 | SWIG_SetModule(clientdata, &swig_module); | |
34789 | } | |
34790 | ||
34791 | /* Now work on filling in swig_module.types */ | |
34792 | #ifdef SWIGRUNTIME_DEBUG | |
34793 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
34794 | #endif | |
34795 | for (i = 0; i < swig_module.size; ++i) { | |
34796 | swig_type_info *type = 0; | |
34797 | swig_type_info *ret; | |
34798 | swig_cast_info *cast; | |
34799 | ||
34800 | #ifdef SWIGRUNTIME_DEBUG | |
34801 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
34802 | #endif | |
34803 | ||
34804 | /* if there is another module already loaded */ | |
34805 | if (swig_module.next != &swig_module) { | |
34806 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
34807 | } | |
34808 | if (type) { | |
34809 | /* Overwrite clientdata field */ | |
34810 | #ifdef SWIGRUNTIME_DEBUG | |
34811 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
34812 | #endif | |
34813 | if (swig_module.type_initial[i]->clientdata) { | |
34814 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
34815 | #ifdef SWIGRUNTIME_DEBUG | |
34816 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
34817 | #endif | |
34818 | } | |
34819 | } else { | |
34820 | type = swig_module.type_initial[i]; | |
34821 | } | |
34822 | ||
34823 | /* Insert casting types */ | |
34824 | cast = swig_module.cast_initial[i]; | |
34825 | while (cast->type) { | |
34826 | /* Don't need to add information already in the list */ | |
34827 | ret = 0; | |
34828 | #ifdef SWIGRUNTIME_DEBUG | |
34829 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
34830 | #endif | |
34831 | if (swig_module.next != &swig_module) { | |
34832 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
34833 | #ifdef SWIGRUNTIME_DEBUG | |
34834 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
34835 | #endif | |
34836 | } | |
34837 | if (ret) { | |
34838 | if (type == swig_module.type_initial[i]) { | |
34839 | #ifdef SWIGRUNTIME_DEBUG | |
34840 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
34841 | #endif | |
34842 | cast->type = ret; | |
34843 | ret = 0; | |
34844 | } else { | |
34845 | /* Check for casting already in the list */ | |
34846 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
34847 | #ifdef SWIGRUNTIME_DEBUG | |
34848 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
34849 | #endif | |
34850 | if (!ocast) ret = 0; | |
34851 | } | |
34852 | } | |
34853 | ||
34854 | if (!ret) { | |
34855 | #ifdef SWIGRUNTIME_DEBUG | |
34856 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
34857 | #endif | |
34858 | if (type->cast) { | |
34859 | type->cast->prev = cast; | |
34860 | cast->next = type->cast; | |
34861 | } | |
34862 | type->cast = cast; | |
34863 | } | |
34864 | cast++; | |
34865 | } | |
34866 | /* Set entry in modules->types array equal to the type */ | |
34867 | swig_module.types[i] = type; | |
34868 | } | |
34869 | swig_module.types[i] = 0; | |
34870 | ||
34871 | #ifdef SWIGRUNTIME_DEBUG | |
34872 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
34873 | for (i = 0; i < swig_module.size; ++i) { | |
34874 | int j = 0; | |
34875 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
34876 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
34877 | while (cast->type) { | |
34878 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
34879 | cast++; | |
34880 | ++j; | |
34881 | } | |
34882 | printf("---- Total casts: %d\n",j); | |
34883 | } | |
34884 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
34885 | #endif | |
34886 | } | |
34887 | ||
34888 | /* This function will propagate the clientdata field of type to | |
34889 | * any new swig_type_info structures that have been added into the list | |
34890 | * of equivalent types. It is like calling | |
34891 | * SWIG_TypeClientData(type, clientdata) a second time. | |
34892 | */ | |
34893 | SWIGRUNTIME void | |
34894 | SWIG_PropagateClientData(void) { | |
34895 | size_t i; | |
34896 | swig_cast_info *equiv; | |
34897 | static int init_run = 0; | |
34898 | ||
34899 | if (init_run) return; | |
34900 | init_run = 1; | |
34901 | ||
34902 | for (i = 0; i < swig_module.size; i++) { | |
34903 | if (swig_module.types[i]->clientdata) { | |
34904 | equiv = swig_module.types[i]->cast; | |
34905 | while (equiv) { | |
34906 | if (!equiv->converter) { | |
34907 | if (equiv->type && !equiv->type->clientdata) | |
34908 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
34909 | } | |
34910 | equiv = equiv->next; | |
34911 | } | |
34912 | } | |
34913 | } | |
34914 | } | |
34915 | ||
34916 | #ifdef __cplusplus | |
34917 | #if 0 | |
34918 | { | |
34919 | /* c-mode */ | |
34920 | #endif | |
34921 | } | |
34922 | #endif | |
34923 | ||
d55e5bfc | 34924 | |
093d3ff1 | 34925 | |
d55e5bfc | 34926 | #ifdef __cplusplus |
093d3ff1 | 34927 | extern "C" { |
d55e5bfc | 34928 | #endif |
d55e5bfc | 34929 | |
093d3ff1 RD |
34930 | /* Python-specific SWIG API */ |
34931 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
34932 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
34933 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
34934 | ||
34935 | /* ----------------------------------------------------------------------------- | |
34936 | * global variable support code. | |
34937 | * ----------------------------------------------------------------------------- */ | |
34938 | ||
34939 | typedef struct swig_globalvar { | |
34940 | char *name; /* Name of global variable */ | |
7449af73 | 34941 | PyObject *(*get_attr)(void); /* Return the current value */ |
093d3ff1 RD |
34942 | int (*set_attr)(PyObject *); /* Set the value */ |
34943 | struct swig_globalvar *next; | |
34944 | } swig_globalvar; | |
34945 | ||
34946 | typedef struct swig_varlinkobject { | |
34947 | PyObject_HEAD | |
34948 | swig_globalvar *vars; | |
34949 | } swig_varlinkobject; | |
34950 | ||
7449af73 | 34951 | SWIGINTERN PyObject * |
093d3ff1 RD |
34952 | swig_varlink_repr(swig_varlinkobject *v) { |
34953 | v = v; | |
34954 | return PyString_FromString("<Swig global variables>"); | |
34955 | } | |
34956 | ||
7449af73 | 34957 | SWIGINTERN int |
093d3ff1 RD |
34958 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { |
34959 | swig_globalvar *var; | |
34960 | flags = flags; | |
34961 | fprintf(fp,"Swig global variables { "); | |
34962 | for (var = v->vars; var; var=var->next) { | |
34963 | fprintf(fp,"%s", var->name); | |
34964 | if (var->next) fprintf(fp,", "); | |
d55e5bfc | 34965 | } |
093d3ff1 RD |
34966 | fprintf(fp," }\n"); |
34967 | return 0; | |
d55e5bfc | 34968 | } |
d55e5bfc | 34969 | |
7449af73 | 34970 | SWIGINTERN PyObject * |
093d3ff1 RD |
34971 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
34972 | swig_globalvar *var = v->vars; | |
34973 | while (var) { | |
34974 | if (strcmp(var->name,n) == 0) { | |
34975 | return (*var->get_attr)(); | |
34976 | } | |
34977 | var = var->next; | |
34978 | } | |
34979 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
34980 | return NULL; | |
34981 | } | |
1a6bba1e | 34982 | |
7449af73 | 34983 | SWIGINTERN int |
093d3ff1 RD |
34984 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
34985 | swig_globalvar *var = v->vars; | |
34986 | while (var) { | |
34987 | if (strcmp(var->name,n) == 0) { | |
34988 | return (*var->set_attr)(p); | |
34989 | } | |
34990 | var = var->next; | |
34991 | } | |
34992 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
34993 | return 1; | |
34994 | } | |
1a6bba1e | 34995 | |
7449af73 RD |
34996 | SWIGINTERN PyTypeObject* |
34997 | swig_varlink_type(void) { | |
34998 | static char varlink__doc__[] = "Swig var link object"; | |
34999 | static PyTypeObject varlink_type | |
35000 | #if !defined(__cplusplus) | |
35001 | ; | |
35002 | static int type_init = 0; | |
35003 | if (!type_init) { | |
35004 | PyTypeObject tmp | |
35005 | #endif | |
35006 | = { | |
35007 | PyObject_HEAD_INIT(&PyType_Type) | |
35008 | 0, /* Number of items in variable part (ob_size) */ | |
35009 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
35010 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
35011 | 0, /* Itemsize (tp_itemsize) */ | |
35012 | 0, /* Deallocator (tp_dealloc) */ | |
35013 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
35014 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
35015 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
35016 | 0, /* tp_compare */ | |
35017 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
35018 | 0, /* tp_as_number */ | |
35019 | 0, /* tp_as_sequence */ | |
35020 | 0, /* tp_as_mapping */ | |
35021 | 0, /* tp_hash */ | |
35022 | 0, /* tp_call */ | |
35023 | 0, /* tp_str */ | |
35024 | 0, /* tp_getattro */ | |
35025 | 0, /* tp_setattro */ | |
35026 | 0, /* tp_as_buffer */ | |
35027 | 0, /* tp_flags */ | |
35028 | varlink__doc__, /* tp_doc */ | |
093d3ff1 | 35029 | #if PY_VERSION_HEX >= 0x02000000 |
7449af73 RD |
35030 | 0, /* tp_traverse */ |
35031 | 0, /* tp_clear */ | |
093d3ff1 RD |
35032 | #endif |
35033 | #if PY_VERSION_HEX >= 0x02010000 | |
7449af73 RD |
35034 | 0, /* tp_richcompare */ |
35035 | 0, /* tp_weaklistoffset */ | |
093d3ff1 RD |
35036 | #endif |
35037 | #if PY_VERSION_HEX >= 0x02020000 | |
7449af73 | 35038 | 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 |
35039 | #endif |
35040 | #if PY_VERSION_HEX >= 0x02030000 | |
7449af73 | 35041 | 0, /* tp_del */ |
093d3ff1 RD |
35042 | #endif |
35043 | #ifdef COUNT_ALLOCS | |
7449af73 | 35044 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 35045 | #endif |
7449af73 RD |
35046 | }; |
35047 | #if !defined(__cplusplus) | |
35048 | varlink_type = tmp; | |
35049 | type_init = 1; | |
35050 | } | |
35051 | #endif | |
35052 | return &varlink_type; | |
35053 | } | |
d55e5bfc | 35054 | |
093d3ff1 | 35055 | /* Create a variable linking object for use later */ |
7449af73 | 35056 | SWIGINTERN PyObject * |
093d3ff1 | 35057 | SWIG_Python_newvarlink(void) { |
7449af73 RD |
35058 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); |
35059 | if (result) { | |
35060 | result->vars = 0; | |
35061 | } | |
093d3ff1 RD |
35062 | return ((PyObject*) result); |
35063 | } | |
35064 | ||
7449af73 | 35065 | SWIGINTERN void |
093d3ff1 | 35066 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
7449af73 RD |
35067 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
35068 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
35069 | if (gv) { | |
35070 | size_t size = strlen(name)+1; | |
35071 | gv->name = (char *)malloc(size); | |
35072 | if (gv->name) { | |
35073 | strncpy(gv->name,name,size); | |
35074 | gv->get_attr = get_attr; | |
35075 | gv->set_attr = set_attr; | |
35076 | gv->next = v->vars; | |
35077 | } | |
35078 | } | |
093d3ff1 RD |
35079 | v->vars = gv; |
35080 | } | |
35081 | ||
35082 | /* ----------------------------------------------------------------------------- | |
35083 | * constants/methods manipulation | |
35084 | * ----------------------------------------------------------------------------- */ | |
35085 | ||
35086 | /* Install Constants */ | |
7449af73 | 35087 | SWIGINTERN void |
093d3ff1 RD |
35088 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
35089 | PyObject *obj = 0; | |
35090 | size_t i; | |
7449af73 | 35091 | for (i = 0; constants[i].type; ++i) { |
093d3ff1 RD |
35092 | switch(constants[i].type) { |
35093 | case SWIG_PY_INT: | |
35094 | obj = PyInt_FromLong(constants[i].lvalue); | |
35095 | break; | |
35096 | case SWIG_PY_FLOAT: | |
35097 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
35098 | break; | |
35099 | case SWIG_PY_STRING: | |
35100 | if (constants[i].pvalue) { | |
35101 | obj = PyString_FromString((char *) constants[i].pvalue); | |
35102 | } else { | |
35103 | Py_INCREF(Py_None); | |
35104 | obj = Py_None; | |
35105 | } | |
35106 | break; | |
35107 | case SWIG_PY_POINTER: | |
35108 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
35109 | break; | |
35110 | case SWIG_PY_BINARY: | |
35111 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
35112 | break; | |
35113 | default: | |
35114 | obj = 0; | |
35115 | break; | |
35116 | } | |
35117 | if (obj) { | |
35118 | PyDict_SetItemString(d,constants[i].name,obj); | |
35119 | Py_DECREF(obj); | |
35120 | } | |
35121 | } | |
35122 | } | |
d55e5bfc | 35123 | |
093d3ff1 RD |
35124 | /* -----------------------------------------------------------------------------*/ |
35125 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
35126 | /* -----------------------------------------------------------------------------*/ | |
35127 | ||
7449af73 | 35128 | SWIGINTERN void |
093d3ff1 RD |
35129 | SWIG_Python_FixMethods(PyMethodDef *methods, |
35130 | swig_const_info *const_table, | |
35131 | swig_type_info **types, | |
35132 | swig_type_info **types_initial) { | |
35133 | size_t i; | |
35134 | for (i = 0; methods[i].ml_name; ++i) { | |
35135 | char *c = methods[i].ml_doc; | |
35136 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
35137 | int j; | |
35138 | swig_const_info *ci = 0; | |
35139 | char *name = c + 10; | |
7449af73 | 35140 | for (j = 0; const_table[j].type; ++j) { |
093d3ff1 RD |
35141 | if (strncmp(const_table[j].name, name, |
35142 | strlen(const_table[j].name)) == 0) { | |
35143 | ci = &(const_table[j]); | |
35144 | break; | |
35145 | } | |
35146 | } | |
35147 | if (ci) { | |
35148 | size_t shift = (ci->ptype) - types; | |
35149 | swig_type_info *ty = types_initial[shift]; | |
35150 | size_t ldoc = (c - methods[i].ml_doc); | |
35151 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
35152 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
7449af73 RD |
35153 | if (ndoc) { |
35154 | char *buff = ndoc; | |
35155 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
35156 | if (ptr) { | |
35157 | strncpy(buff, methods[i].ml_doc, ldoc); | |
35158 | buff += ldoc; | |
35159 | strncpy(buff, "swig_ptr: ", 10); | |
35160 | buff += 10; | |
35161 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
35162 | methods[i].ml_doc = ndoc; | |
35163 | } | |
35164 | } | |
093d3ff1 RD |
35165 | } |
35166 | } | |
35167 | } | |
35168 | } | |
35169 | ||
35170 | /* -----------------------------------------------------------------------------* | |
35171 | * Initialize type list | |
35172 | * -----------------------------------------------------------------------------*/ | |
35173 | ||
093d3ff1 RD |
35174 | #ifdef __cplusplus |
35175 | } | |
35176 | #endif | |
35177 | ||
35178 | /* -----------------------------------------------------------------------------* | |
35179 | * Partial Init method | |
35180 | * -----------------------------------------------------------------------------*/ | |
35181 | ||
093d3ff1 RD |
35182 | #ifdef __cplusplus |
35183 | extern "C" | |
35184 | #endif | |
7449af73 | 35185 | SWIGEXPORT void SWIG_init(void) { |
093d3ff1 | 35186 | static PyObject *SWIG_globals = 0; |
093d3ff1 | 35187 | PyObject *m, *d; |
093d3ff1 RD |
35188 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); |
35189 | ||
35190 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
7449af73 | 35191 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
093d3ff1 RD |
35192 | |
35193 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
35194 | d = PyModule_GetDict(m); | |
35195 | ||
7449af73 | 35196 | SWIG_InitializeModule(0); |
093d3ff1 RD |
35197 | SWIG_InstallConstants(d,swig_const_table); |
35198 | ||
35199 | { | |
7449af73 | 35200 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_OEM_FIXED_FONT))); |
093d3ff1 RD |
35201 | } |
35202 | { | |
7449af73 | 35203 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_ANSI_FIXED_FONT))); |
093d3ff1 RD |
35204 | } |
35205 | { | |
7449af73 | 35206 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int(static_cast<int >(wxSYS_ANSI_VAR_FONT))); |
093d3ff1 RD |
35207 | } |
35208 | { | |
7449af73 | 35209 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int(static_cast<int >(wxSYS_SYSTEM_FONT))); |
093d3ff1 RD |
35210 | } |
35211 | { | |
7449af73 | 35212 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int(static_cast<int >(wxSYS_DEVICE_DEFAULT_FONT))); |
093d3ff1 RD |
35213 | } |
35214 | { | |
7449af73 | 35215 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int(static_cast<int >(wxSYS_DEFAULT_PALETTE))); |
093d3ff1 RD |
35216 | } |
35217 | { | |
7449af73 | 35218 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_SYSTEM_FIXED_FONT))); |
093d3ff1 RD |
35219 | } |
35220 | { | |
7449af73 | 35221 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int(static_cast<int >(wxSYS_DEFAULT_GUI_FONT))); |
093d3ff1 RD |
35222 | } |
35223 | { | |
7449af73 | 35224 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int(static_cast<int >(wxSYS_ICONTITLE_FONT))); |
093d3ff1 RD |
35225 | } |
35226 | { | |
7449af73 | 35227 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_SCROLLBAR))); |
093d3ff1 RD |
35228 | } |
35229 | { | |
7449af73 | 35230 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BACKGROUND))); |
093d3ff1 RD |
35231 | } |
35232 | { | |
7449af73 | 35233 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_DESKTOP))); |
093d3ff1 RD |
35234 | } |
35235 | { | |
7449af73 | 35236 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_ACTIVECAPTION))); |
093d3ff1 RD |
35237 | } |
35238 | { | |
7449af73 | 35239 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVECAPTION))); |
093d3ff1 RD |
35240 | } |
35241 | { | |
7449af73 | 35242 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENU))); |
093d3ff1 RD |
35243 | } |
35244 | { | |
7449af73 | 35245 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOW))); |
093d3ff1 RD |
35246 | } |
35247 | { | |
7449af73 | 35248 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOWFRAME))); |
093d3ff1 RD |
35249 | } |
35250 | { | |
7449af73 | 35251 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUTEXT))); |
093d3ff1 RD |
35252 | } |
35253 | { | |
7449af73 | 35254 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOWTEXT))); |
093d3ff1 RD |
35255 | } |
35256 | { | |
7449af73 | 35257 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_CAPTIONTEXT))); |
093d3ff1 RD |
35258 | } |
35259 | { | |
7449af73 | 35260 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_ACTIVEBORDER))); |
093d3ff1 RD |
35261 | } |
35262 | { | |
7449af73 | 35263 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVEBORDER))); |
093d3ff1 RD |
35264 | } |
35265 | { | |
7449af73 | 35266 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_APPWORKSPACE))); |
093d3ff1 RD |
35267 | } |
35268 | { | |
7449af73 | 35269 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HIGHLIGHT))); |
093d3ff1 RD |
35270 | } |
35271 | { | |
7449af73 | 35272 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HIGHLIGHTTEXT))); |
093d3ff1 RD |
35273 | } |
35274 | { | |
7449af73 | 35275 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNFACE))); |
093d3ff1 RD |
35276 | } |
35277 | { | |
7449af73 | 35278 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DFACE))); |
093d3ff1 RD |
35279 | } |
35280 | { | |
7449af73 | 35281 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNSHADOW))); |
093d3ff1 RD |
35282 | } |
35283 | { | |
7449af73 | 35284 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DSHADOW))); |
093d3ff1 RD |
35285 | } |
35286 | { | |
7449af73 | 35287 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRAYTEXT))); |
093d3ff1 RD |
35288 | } |
35289 | { | |
7449af73 | 35290 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNTEXT))); |
093d3ff1 RD |
35291 | } |
35292 | { | |
7449af73 | 35293 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVECAPTIONTEXT))); |
093d3ff1 RD |
35294 | } |
35295 | { | |
7449af73 | 35296 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNHIGHLIGHT))); |
093d3ff1 RD |
35297 | } |
35298 | { | |
7449af73 | 35299 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNHILIGHT))); |
093d3ff1 RD |
35300 | } |
35301 | { | |
7449af73 | 35302 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DHIGHLIGHT))); |
093d3ff1 RD |
35303 | } |
35304 | { | |
7449af73 | 35305 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DHILIGHT))); |
093d3ff1 RD |
35306 | } |
35307 | { | |
7449af73 | 35308 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DDKSHADOW))); |
093d3ff1 RD |
35309 | } |
35310 | { | |
7449af73 | 35311 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DLIGHT))); |
093d3ff1 RD |
35312 | } |
35313 | { | |
7449af73 | 35314 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INFOTEXT))); |
093d3ff1 RD |
35315 | } |
35316 | { | |
7449af73 | 35317 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INFOBK))); |
093d3ff1 RD |
35318 | } |
35319 | { | |
7449af73 | 35320 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_LISTBOX))); |
093d3ff1 RD |
35321 | } |
35322 | { | |
7449af73 | 35323 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HOTLIGHT))); |
093d3ff1 RD |
35324 | } |
35325 | { | |
7449af73 | 35326 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRADIENTACTIVECAPTION))); |
093d3ff1 RD |
35327 | } |
35328 | { | |
7449af73 | 35329 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRADIENTINACTIVECAPTION))); |
093d3ff1 RD |
35330 | } |
35331 | { | |
7449af73 | 35332 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUHILIGHT))); |
093d3ff1 RD |
35333 | } |
35334 | { | |
7449af73 | 35335 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUBAR))); |
093d3ff1 RD |
35336 | } |
35337 | { | |
7449af73 | 35338 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MAX))); |
093d3ff1 RD |
35339 | } |
35340 | { | |
7449af73 | 35341 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int(static_cast<int >(wxSYS_MOUSE_BUTTONS))); |
093d3ff1 RD |
35342 | } |
35343 | { | |
7449af73 | 35344 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int(static_cast<int >(wxSYS_BORDER_X))); |
093d3ff1 RD |
35345 | } |
35346 | { | |
7449af73 | 35347 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int(static_cast<int >(wxSYS_BORDER_Y))); |
093d3ff1 RD |
35348 | } |
35349 | { | |
7449af73 | 35350 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int(static_cast<int >(wxSYS_CURSOR_X))); |
093d3ff1 RD |
35351 | } |
35352 | { | |
7449af73 | 35353 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int(static_cast<int >(wxSYS_CURSOR_Y))); |
093d3ff1 RD |
35354 | } |
35355 | { | |
7449af73 | 35356 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int(static_cast<int >(wxSYS_DCLICK_X))); |
093d3ff1 RD |
35357 | } |
35358 | { | |
7449af73 | 35359 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int(static_cast<int >(wxSYS_DCLICK_Y))); |
093d3ff1 RD |
35360 | } |
35361 | { | |
7449af73 | 35362 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int(static_cast<int >(wxSYS_DRAG_X))); |
093d3ff1 RD |
35363 | } |
35364 | { | |
7449af73 | 35365 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int(static_cast<int >(wxSYS_DRAG_Y))); |
093d3ff1 RD |
35366 | } |
35367 | { | |
7449af73 | 35368 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int(static_cast<int >(wxSYS_EDGE_X))); |
093d3ff1 RD |
35369 | } |
35370 | { | |
7449af73 | 35371 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int(static_cast<int >(wxSYS_EDGE_Y))); |
093d3ff1 RD |
35372 | } |
35373 | { | |
7449af73 | 35374 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_ARROW_X))); |
093d3ff1 RD |
35375 | } |
35376 | { | |
7449af73 | 35377 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_ARROW_Y))); |
093d3ff1 RD |
35378 | } |
35379 | { | |
7449af73 | 35380 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int(static_cast<int >(wxSYS_HTHUMB_X))); |
093d3ff1 RD |
35381 | } |
35382 | { | |
7449af73 | 35383 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int(static_cast<int >(wxSYS_ICON_X))); |
093d3ff1 RD |
35384 | } |
35385 | { | |
7449af73 | 35386 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int(static_cast<int >(wxSYS_ICON_Y))); |
093d3ff1 RD |
35387 | } |
35388 | { | |
7449af73 | 35389 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int(static_cast<int >(wxSYS_ICONSPACING_X))); |
093d3ff1 RD |
35390 | } |
35391 | { | |
7449af73 | 35392 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int(static_cast<int >(wxSYS_ICONSPACING_Y))); |
093d3ff1 RD |
35393 | } |
35394 | { | |
7449af73 | 35395 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int(static_cast<int >(wxSYS_WINDOWMIN_X))); |
093d3ff1 RD |
35396 | } |
35397 | { | |
7449af73 | 35398 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int(static_cast<int >(wxSYS_WINDOWMIN_Y))); |
093d3ff1 RD |
35399 | } |
35400 | { | |
7449af73 | 35401 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_X))); |
093d3ff1 RD |
35402 | } |
35403 | { | |
7449af73 | 35404 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_Y))); |
093d3ff1 RD |
35405 | } |
35406 | { | |
7449af73 | 35407 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int(static_cast<int >(wxSYS_FRAMESIZE_X))); |
093d3ff1 RD |
35408 | } |
35409 | { | |
7449af73 | 35410 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int(static_cast<int >(wxSYS_FRAMESIZE_Y))); |
093d3ff1 RD |
35411 | } |
35412 | { | |
7449af73 | 35413 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int(static_cast<int >(wxSYS_SMALLICON_X))); |
093d3ff1 RD |
35414 | } |
35415 | { | |
7449af73 | 35416 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int(static_cast<int >(wxSYS_SMALLICON_Y))); |
093d3ff1 RD |
35417 | } |
35418 | { | |
7449af73 | 35419 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_Y))); |
093d3ff1 RD |
35420 | } |
35421 | { | |
7449af73 | 35422 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_X))); |
093d3ff1 RD |
35423 | } |
35424 | { | |
7449af73 | 35425 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_ARROW_X))); |
093d3ff1 RD |
35426 | } |
35427 | { | |
7449af73 | 35428 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_ARROW_Y))); |
093d3ff1 RD |
35429 | } |
35430 | { | |
7449af73 | 35431 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int(static_cast<int >(wxSYS_VTHUMB_Y))); |
093d3ff1 RD |
35432 | } |
35433 | { | |
7449af73 | 35434 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int(static_cast<int >(wxSYS_CAPTION_Y))); |
093d3ff1 RD |
35435 | } |
35436 | { | |
7449af73 | 35437 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int(static_cast<int >(wxSYS_MENU_Y))); |
093d3ff1 RD |
35438 | } |
35439 | { | |
7449af73 | 35440 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_NETWORK_PRESENT))); |
093d3ff1 RD |
35441 | } |
35442 | { | |
7449af73 | 35443 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_PENWINDOWS_PRESENT))); |
093d3ff1 RD |
35444 | } |
35445 | { | |
7449af73 | 35446 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int(static_cast<int >(wxSYS_SHOW_SOUNDS))); |
093d3ff1 RD |
35447 | } |
35448 | { | |
7449af73 | 35449 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int(static_cast<int >(wxSYS_SWAP_BUTTONS))); |
093d3ff1 RD |
35450 | } |
35451 | { | |
7449af73 | 35452 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int(static_cast<int >(wxSYS_CAN_DRAW_FRAME_DECORATIONS))); |
093d3ff1 RD |
35453 | } |
35454 | { | |
7449af73 | 35455 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int(static_cast<int >(wxSYS_CAN_ICONIZE_FRAME))); |
093d3ff1 RD |
35456 | } |
35457 | { | |
7449af73 | 35458 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_NONE))); |
093d3ff1 RD |
35459 | } |
35460 | { | |
7449af73 | 35461 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_TINY))); |
093d3ff1 RD |
35462 | } |
35463 | { | |
7449af73 | 35464 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_PDA))); |
093d3ff1 RD |
35465 | } |
35466 | { | |
7449af73 | 35467 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_SMALL))); |
093d3ff1 RD |
35468 | } |
35469 | { | |
7449af73 | 35470 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_DESKTOP))); |
093d3ff1 RD |
35471 | } |
35472 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
35473 | SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set); | |
35474 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
35475 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
35476 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
35477 | { | |
7449af73 | 35478 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int(static_cast<int >(wxSHUTDOWN_POWEROFF))); |
093d3ff1 RD |
35479 | } |
35480 | { | |
7449af73 | 35481 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int(static_cast<int >(wxSHUTDOWN_REBOOT))); |
093d3ff1 RD |
35482 | } |
35483 | { | |
7449af73 | 35484 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int(static_cast<int >(wxTIMER_CONTINUOUS))); |
093d3ff1 RD |
35485 | } |
35486 | { | |
7449af73 | 35487 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int(static_cast<int >(wxTIMER_ONE_SHOT))); |
093d3ff1 RD |
35488 | } |
35489 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
35490 | ||
35491 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
35492 | ||
35493 | { | |
7449af73 | 35494 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int(static_cast<int >(wxLOG_FatalError))); |
093d3ff1 RD |
35495 | } |
35496 | { | |
7449af73 | 35497 | PyDict_SetItemString(d,"LOG_Error", SWIG_From_int(static_cast<int >(wxLOG_Error))); |
093d3ff1 RD |
35498 | } |
35499 | { | |
7449af73 | 35500 | PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int(static_cast<int >(wxLOG_Warning))); |
093d3ff1 RD |
35501 | } |
35502 | { | |
7449af73 | 35503 | PyDict_SetItemString(d,"LOG_Message", SWIG_From_int(static_cast<int >(wxLOG_Message))); |
093d3ff1 RD |
35504 | } |
35505 | { | |
7449af73 | 35506 | PyDict_SetItemString(d,"LOG_Status", SWIG_From_int(static_cast<int >(wxLOG_Status))); |
093d3ff1 RD |
35507 | } |
35508 | { | |
7449af73 | 35509 | PyDict_SetItemString(d,"LOG_Info", SWIG_From_int(static_cast<int >(wxLOG_Info))); |
093d3ff1 RD |
35510 | } |
35511 | { | |
7449af73 | 35512 | PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int(static_cast<int >(wxLOG_Debug))); |
093d3ff1 RD |
35513 | } |
35514 | { | |
7449af73 | 35515 | PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int(static_cast<int >(wxLOG_Trace))); |
093d3ff1 RD |
35516 | } |
35517 | { | |
7449af73 | 35518 | PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int(static_cast<int >(wxLOG_Progress))); |
093d3ff1 RD |
35519 | } |
35520 | { | |
7449af73 | 35521 | PyDict_SetItemString(d,"LOG_User", SWIG_From_int(static_cast<int >(wxLOG_User))); |
093d3ff1 RD |
35522 | } |
35523 | { | |
7449af73 | 35524 | PyDict_SetItemString(d,"LOG_Max", SWIG_From_int(static_cast<int >(wxLOG_Max))); |
093d3ff1 RD |
35525 | } |
35526 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
35527 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
35528 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
35529 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
35530 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
35531 | { | |
7449af73 | 35532 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int(static_cast<int >(0x0001))); |
093d3ff1 RD |
35533 | } |
35534 | { | |
7449af73 | 35535 | PyDict_SetItemString(d,"TraceMessages", SWIG_From_int(static_cast<int >(0x0002))); |
093d3ff1 RD |
35536 | } |
35537 | { | |
7449af73 | 35538 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int(static_cast<int >(0x0004))); |
093d3ff1 RD |
35539 | } |
35540 | { | |
7449af73 | 35541 | PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int(static_cast<int >(0x0008))); |
093d3ff1 RD |
35542 | } |
35543 | { | |
7449af73 | 35544 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int(static_cast<int >(0x0100))); |
093d3ff1 RD |
35545 | } |
35546 | { | |
7449af73 | 35547 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int(static_cast<int >(wxPROCESS_DEFAULT))); |
093d3ff1 RD |
35548 | } |
35549 | { | |
7449af73 | 35550 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int(static_cast<int >(wxPROCESS_REDIRECT))); |
093d3ff1 RD |
35551 | } |
35552 | { | |
7449af73 | 35553 | PyDict_SetItemString(d,"KILL_OK", SWIG_From_int(static_cast<int >(wxKILL_OK))); |
093d3ff1 RD |
35554 | } |
35555 | { | |
7449af73 | 35556 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int(static_cast<int >(wxKILL_BAD_SIGNAL))); |
093d3ff1 RD |
35557 | } |
35558 | { | |
7449af73 | 35559 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int(static_cast<int >(wxKILL_ACCESS_DENIED))); |
093d3ff1 RD |
35560 | } |
35561 | { | |
7449af73 | 35562 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int(static_cast<int >(wxKILL_NO_PROCESS))); |
093d3ff1 RD |
35563 | } |
35564 | { | |
7449af73 | 35565 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int(static_cast<int >(wxKILL_ERROR))); |
093d3ff1 RD |
35566 | } |
35567 | { | |
7449af73 | 35568 | PyDict_SetItemString(d,"KILL_NOCHILDREN", SWIG_From_int(static_cast<int >(wxKILL_NOCHILDREN))); |
093d3ff1 RD |
35569 | } |
35570 | { | |
7449af73 | 35571 | PyDict_SetItemString(d,"KILL_CHILDREN", SWIG_From_int(static_cast<int >(wxKILL_CHILDREN))); |
093d3ff1 RD |
35572 | } |
35573 | { | |
7449af73 | 35574 | PyDict_SetItemString(d,"SIGNONE", SWIG_From_int(static_cast<int >(wxSIGNONE))); |
093d3ff1 RD |
35575 | } |
35576 | { | |
7449af73 | 35577 | PyDict_SetItemString(d,"SIGHUP", SWIG_From_int(static_cast<int >(wxSIGHUP))); |
093d3ff1 RD |
35578 | } |
35579 | { | |
7449af73 | 35580 | PyDict_SetItemString(d,"SIGINT", SWIG_From_int(static_cast<int >(wxSIGINT))); |
093d3ff1 RD |
35581 | } |
35582 | { | |
7449af73 | 35583 | PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int(static_cast<int >(wxSIGQUIT))); |
093d3ff1 RD |
35584 | } |
35585 | { | |
7449af73 | 35586 | PyDict_SetItemString(d,"SIGILL", SWIG_From_int(static_cast<int >(wxSIGILL))); |
093d3ff1 RD |
35587 | } |
35588 | { | |
7449af73 | 35589 | PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int(static_cast<int >(wxSIGTRAP))); |
093d3ff1 RD |
35590 | } |
35591 | { | |
7449af73 | 35592 | PyDict_SetItemString(d,"SIGABRT", SWIG_From_int(static_cast<int >(wxSIGABRT))); |
093d3ff1 RD |
35593 | } |
35594 | { | |
7449af73 | 35595 | PyDict_SetItemString(d,"SIGIOT", SWIG_From_int(static_cast<int >(wxSIGIOT))); |
093d3ff1 RD |
35596 | } |
35597 | { | |
7449af73 | 35598 | PyDict_SetItemString(d,"SIGEMT", SWIG_From_int(static_cast<int >(wxSIGEMT))); |
093d3ff1 RD |
35599 | } |
35600 | { | |
7449af73 | 35601 | PyDict_SetItemString(d,"SIGFPE", SWIG_From_int(static_cast<int >(wxSIGFPE))); |
093d3ff1 RD |
35602 | } |
35603 | { | |
7449af73 | 35604 | PyDict_SetItemString(d,"SIGKILL", SWIG_From_int(static_cast<int >(wxSIGKILL))); |
093d3ff1 RD |
35605 | } |
35606 | { | |
7449af73 | 35607 | PyDict_SetItemString(d,"SIGBUS", SWIG_From_int(static_cast<int >(wxSIGBUS))); |
093d3ff1 RD |
35608 | } |
35609 | { | |
7449af73 | 35610 | PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int(static_cast<int >(wxSIGSEGV))); |
093d3ff1 RD |
35611 | } |
35612 | { | |
7449af73 | 35613 | PyDict_SetItemString(d,"SIGSYS", SWIG_From_int(static_cast<int >(wxSIGSYS))); |
093d3ff1 RD |
35614 | } |
35615 | { | |
7449af73 | 35616 | PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int(static_cast<int >(wxSIGPIPE))); |
093d3ff1 RD |
35617 | } |
35618 | { | |
7449af73 | 35619 | PyDict_SetItemString(d,"SIGALRM", SWIG_From_int(static_cast<int >(wxSIGALRM))); |
093d3ff1 RD |
35620 | } |
35621 | { | |
7449af73 | 35622 | PyDict_SetItemString(d,"SIGTERM", SWIG_From_int(static_cast<int >(wxSIGTERM))); |
093d3ff1 RD |
35623 | } |
35624 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
35625 | { | |
7449af73 | 35626 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int(static_cast<int >(wxEXEC_ASYNC))); |
093d3ff1 RD |
35627 | } |
35628 | { | |
7449af73 | 35629 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int(static_cast<int >(wxEXEC_SYNC))); |
093d3ff1 RD |
35630 | } |
35631 | { | |
7449af73 | 35632 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int(static_cast<int >(wxEXEC_NOHIDE))); |
093d3ff1 RD |
35633 | } |
35634 | { | |
7449af73 | 35635 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int(static_cast<int >(wxEXEC_MAKE_GROUP_LEADER))); |
093d3ff1 RD |
35636 | } |
35637 | { | |
7449af73 | 35638 | PyDict_SetItemString(d,"EXEC_NODISABLE", SWIG_From_int(static_cast<int >(wxEXEC_NODISABLE))); |
093d3ff1 RD |
35639 | } |
35640 | ||
35641 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
35642 | ||
35643 | { | |
7449af73 | 35644 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int(static_cast<int >(wxJOYSTICK1))); |
093d3ff1 RD |
35645 | } |
35646 | { | |
7449af73 | 35647 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int(static_cast<int >(wxJOYSTICK2))); |
093d3ff1 RD |
35648 | } |
35649 | { | |
7449af73 | 35650 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int(static_cast<int >(wxJOY_BUTTON_ANY))); |
093d3ff1 RD |
35651 | } |
35652 | { | |
7449af73 | 35653 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int(static_cast<int >(wxJOY_BUTTON1))); |
093d3ff1 RD |
35654 | } |
35655 | { | |
7449af73 | 35656 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int(static_cast<int >(wxJOY_BUTTON2))); |
093d3ff1 RD |
35657 | } |
35658 | { | |
7449af73 | 35659 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int(static_cast<int >(wxJOY_BUTTON3))); |
093d3ff1 RD |
35660 | } |
35661 | { | |
7449af73 | 35662 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int(static_cast<int >(wxJOY_BUTTON4))); |
093d3ff1 RD |
35663 | } |
35664 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
35665 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
35666 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
35667 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
35668 | { | |
7449af73 | 35669 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int(static_cast<int >(wxSOUND_SYNC))); |
093d3ff1 RD |
35670 | } |
35671 | { | |
7449af73 | 35672 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int(static_cast<int >(wxSOUND_ASYNC))); |
093d3ff1 RD |
35673 | } |
35674 | { | |
7449af73 | 35675 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int(static_cast<int >(wxSOUND_LOOP))); |
093d3ff1 RD |
35676 | } |
35677 | { | |
7449af73 | 35678 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int(static_cast<int >(wxMAILCAP_STANDARD))); |
093d3ff1 RD |
35679 | } |
35680 | { | |
7449af73 | 35681 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int(static_cast<int >(wxMAILCAP_NETSCAPE))); |
093d3ff1 RD |
35682 | } |
35683 | { | |
7449af73 | 35684 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int(static_cast<int >(wxMAILCAP_KDE))); |
093d3ff1 RD |
35685 | } |
35686 | { | |
7449af73 | 35687 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int(static_cast<int >(wxMAILCAP_GNOME))); |
093d3ff1 RD |
35688 | } |
35689 | { | |
7449af73 | 35690 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int(static_cast<int >(wxMAILCAP_ALL))); |
093d3ff1 RD |
35691 | } |
35692 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
35693 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
35694 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
35695 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
35696 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
d55e5bfc RD |
35697 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); |
35698 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
4cf4100f | 35699 | SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set); |
d55e5bfc RD |
35700 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); |
35701 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
35702 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
35703 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
35704 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
35705 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
35706 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
35707 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
35708 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
35709 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
35710 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
35711 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
35712 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
35713 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
35714 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
68350608 RD |
35715 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE",_wrap_ART_FILE_SAVE_get, _wrap_ART_FILE_SAVE_set); |
35716 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE_AS",_wrap_ART_FILE_SAVE_AS_get, _wrap_ART_FILE_SAVE_AS_set); | |
d55e5bfc RD |
35717 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); |
35718 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
35719 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
35720 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
35721 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
35722 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
f78cc896 RD |
35723 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HARDDISK",_wrap_ART_HARDDISK_get, _wrap_ART_HARDDISK_set); |
35724 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FLOPPY",_wrap_ART_FLOPPY_get, _wrap_ART_FLOPPY_set); | |
35725 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CDROM",_wrap_ART_CDROM_get, _wrap_ART_CDROM_set); | |
35726 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REMOVABLE",_wrap_ART_REMOVABLE_get, _wrap_ART_REMOVABLE_set); | |
d55e5bfc | 35727 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); |
f78cc896 | 35728 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER_OPEN",_wrap_ART_FOLDER_OPEN_get, _wrap_ART_FOLDER_OPEN_set); |
d55e5bfc RD |
35729 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); |
35730 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
35731 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
35732 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
35733 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
35734 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
35735 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
35736 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
35737 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
35738 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
68350608 RD |
35739 | SWIG_addvarlink(SWIG_globals,(char*)"ART_COPY",_wrap_ART_COPY_get, _wrap_ART_COPY_set); |
35740 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CUT",_wrap_ART_CUT_get, _wrap_ART_CUT_set); | |
35741 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PASTE",_wrap_ART_PASTE_get, _wrap_ART_PASTE_set); | |
35742 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DELETE",_wrap_ART_DELETE_get, _wrap_ART_DELETE_set); | |
a187dc0b | 35743 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW",_wrap_ART_NEW_get, _wrap_ART_NEW_set); |
68350608 RD |
35744 | SWIG_addvarlink(SWIG_globals,(char*)"ART_UNDO",_wrap_ART_UNDO_get, _wrap_ART_UNDO_set); |
35745 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REDO",_wrap_ART_REDO_get, _wrap_ART_REDO_set); | |
35746 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUIT",_wrap_ART_QUIT_get, _wrap_ART_QUIT_set); | |
35747 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND",_wrap_ART_FIND_get, _wrap_ART_FIND_set); | |
35748 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND_AND_REPLACE",_wrap_ART_FIND_AND_REPLACE_get, _wrap_ART_FIND_AND_REPLACE_set); | |
d55e5bfc RD |
35749 | |
35750 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
35751 | ||
093d3ff1 | 35752 | { |
7449af73 | 35753 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int(static_cast<int >(wxCONFIG_USE_LOCAL_FILE))); |
093d3ff1 RD |
35754 | } |
35755 | { | |
7449af73 | 35756 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int(static_cast<int >(wxCONFIG_USE_GLOBAL_FILE))); |
093d3ff1 RD |
35757 | } |
35758 | { | |
7449af73 | 35759 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int(static_cast<int >(wxCONFIG_USE_RELATIVE_PATH))); |
093d3ff1 RD |
35760 | } |
35761 | { | |
7449af73 | 35762 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int(static_cast<int >(wxCONFIG_USE_NO_ESCAPE_CHARACTERS))); |
093d3ff1 RD |
35763 | } |
35764 | { | |
7449af73 | 35765 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Unknown))); |
093d3ff1 RD |
35766 | } |
35767 | { | |
7449af73 | 35768 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int(static_cast<int >(wxConfigBase::Type_String))); |
093d3ff1 RD |
35769 | } |
35770 | { | |
7449af73 | 35771 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Boolean))); |
093d3ff1 RD |
35772 | } |
35773 | { | |
7449af73 | 35774 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Integer))); |
093d3ff1 RD |
35775 | } |
35776 | { | |
7449af73 | 35777 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Float))); |
093d3ff1 | 35778 | } |
fef4c27a RD |
35779 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTimeFormat",_wrap_DefaultDateTimeFormat_get, _wrap_DefaultDateTimeFormat_set); |
35780 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultTimeSpanFormat",_wrap_DefaultTimeSpanFormat_get, _wrap_DefaultTimeSpanFormat_set); | |
093d3ff1 | 35781 | { |
7449af73 | 35782 | PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int(static_cast<int >(wxDateTime::Local))); |
093d3ff1 RD |
35783 | } |
35784 | { | |
7449af73 | 35785 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int(static_cast<int >(wxDateTime::GMT_12))); |
093d3ff1 RD |
35786 | } |
35787 | { | |
7449af73 | 35788 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int(static_cast<int >(wxDateTime::GMT_11))); |
093d3ff1 RD |
35789 | } |
35790 | { | |
7449af73 | 35791 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int(static_cast<int >(wxDateTime::GMT_10))); |
093d3ff1 RD |
35792 | } |
35793 | { | |
7449af73 | 35794 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int(static_cast<int >(wxDateTime::GMT_9))); |
093d3ff1 RD |
35795 | } |
35796 | { | |
7449af73 | 35797 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int(static_cast<int >(wxDateTime::GMT_8))); |
093d3ff1 RD |
35798 | } |
35799 | { | |
7449af73 | 35800 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int(static_cast<int >(wxDateTime::GMT_7))); |
093d3ff1 RD |
35801 | } |
35802 | { | |
7449af73 | 35803 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int(static_cast<int >(wxDateTime::GMT_6))); |
093d3ff1 RD |
35804 | } |
35805 | { | |
7449af73 | 35806 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int(static_cast<int >(wxDateTime::GMT_5))); |
093d3ff1 RD |
35807 | } |
35808 | { | |
7449af73 | 35809 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int(static_cast<int >(wxDateTime::GMT_4))); |
093d3ff1 RD |
35810 | } |
35811 | { | |
7449af73 | 35812 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int(static_cast<int >(wxDateTime::GMT_3))); |
093d3ff1 RD |
35813 | } |
35814 | { | |
7449af73 | 35815 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int(static_cast<int >(wxDateTime::GMT_2))); |
093d3ff1 RD |
35816 | } |
35817 | { | |
7449af73 | 35818 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int(static_cast<int >(wxDateTime::GMT_1))); |
093d3ff1 RD |
35819 | } |
35820 | { | |
7449af73 | 35821 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int(static_cast<int >(wxDateTime::GMT0))); |
093d3ff1 RD |
35822 | } |
35823 | { | |
7449af73 | 35824 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int(static_cast<int >(wxDateTime::GMT1))); |
093d3ff1 RD |
35825 | } |
35826 | { | |
7449af73 | 35827 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int(static_cast<int >(wxDateTime::GMT2))); |
093d3ff1 RD |
35828 | } |
35829 | { | |
7449af73 | 35830 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int(static_cast<int >(wxDateTime::GMT3))); |
093d3ff1 RD |
35831 | } |
35832 | { | |
7449af73 | 35833 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int(static_cast<int >(wxDateTime::GMT4))); |
093d3ff1 RD |
35834 | } |
35835 | { | |
7449af73 | 35836 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int(static_cast<int >(wxDateTime::GMT5))); |
093d3ff1 RD |
35837 | } |
35838 | { | |
7449af73 | 35839 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int(static_cast<int >(wxDateTime::GMT6))); |
093d3ff1 RD |
35840 | } |
35841 | { | |
7449af73 | 35842 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int(static_cast<int >(wxDateTime::GMT7))); |
093d3ff1 RD |
35843 | } |
35844 | { | |
7449af73 | 35845 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int(static_cast<int >(wxDateTime::GMT8))); |
093d3ff1 RD |
35846 | } |
35847 | { | |
7449af73 | 35848 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int(static_cast<int >(wxDateTime::GMT9))); |
093d3ff1 RD |
35849 | } |
35850 | { | |
7449af73 | 35851 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int(static_cast<int >(wxDateTime::GMT10))); |
093d3ff1 RD |
35852 | } |
35853 | { | |
7449af73 | 35854 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int(static_cast<int >(wxDateTime::GMT11))); |
093d3ff1 RD |
35855 | } |
35856 | { | |
7449af73 | 35857 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int(static_cast<int >(wxDateTime::GMT12))); |
093d3ff1 RD |
35858 | } |
35859 | { | |
7449af73 | 35860 | PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int(static_cast<int >(wxDateTime::WET))); |
093d3ff1 RD |
35861 | } |
35862 | { | |
7449af73 | 35863 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int(static_cast<int >(wxDateTime::WEST))); |
093d3ff1 RD |
35864 | } |
35865 | { | |
7449af73 | 35866 | PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int(static_cast<int >(wxDateTime::CET))); |
093d3ff1 RD |
35867 | } |
35868 | { | |
7449af73 | 35869 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int(static_cast<int >(wxDateTime::CEST))); |
093d3ff1 RD |
35870 | } |
35871 | { | |
7449af73 | 35872 | PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int(static_cast<int >(wxDateTime::EET))); |
093d3ff1 RD |
35873 | } |
35874 | { | |
7449af73 | 35875 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int(static_cast<int >(wxDateTime::EEST))); |
093d3ff1 RD |
35876 | } |
35877 | { | |
7449af73 | 35878 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int(static_cast<int >(wxDateTime::MSK))); |
093d3ff1 RD |
35879 | } |
35880 | { | |
7449af73 | 35881 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int(static_cast<int >(wxDateTime::MSD))); |
093d3ff1 RD |
35882 | } |
35883 | { | |
7449af73 | 35884 | PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int(static_cast<int >(wxDateTime::AST))); |
093d3ff1 RD |
35885 | } |
35886 | { | |
7449af73 | 35887 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int(static_cast<int >(wxDateTime::ADT))); |
093d3ff1 RD |
35888 | } |
35889 | { | |
7449af73 | 35890 | PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int(static_cast<int >(wxDateTime::EST))); |
093d3ff1 RD |
35891 | } |
35892 | { | |
7449af73 | 35893 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int(static_cast<int >(wxDateTime::EDT))); |
093d3ff1 RD |
35894 | } |
35895 | { | |
7449af73 | 35896 | PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int(static_cast<int >(wxDateTime::CST))); |
093d3ff1 RD |
35897 | } |
35898 | { | |
7449af73 | 35899 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int(static_cast<int >(wxDateTime::CDT))); |
093d3ff1 RD |
35900 | } |
35901 | { | |
7449af73 | 35902 | PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int(static_cast<int >(wxDateTime::MST))); |
093d3ff1 RD |
35903 | } |
35904 | { | |
7449af73 | 35905 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int(static_cast<int >(wxDateTime::MDT))); |
093d3ff1 RD |
35906 | } |
35907 | { | |
7449af73 | 35908 | PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int(static_cast<int >(wxDateTime::PST))); |
093d3ff1 RD |
35909 | } |
35910 | { | |
7449af73 | 35911 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int(static_cast<int >(wxDateTime::PDT))); |
093d3ff1 RD |
35912 | } |
35913 | { | |
7449af73 | 35914 | PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int(static_cast<int >(wxDateTime::HST))); |
093d3ff1 RD |
35915 | } |
35916 | { | |
7449af73 | 35917 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int(static_cast<int >(wxDateTime::AKST))); |
093d3ff1 RD |
35918 | } |
35919 | { | |
7449af73 | 35920 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int(static_cast<int >(wxDateTime::AKDT))); |
093d3ff1 RD |
35921 | } |
35922 | { | |
7449af73 | 35923 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int(static_cast<int >(wxDateTime::A_WST))); |
093d3ff1 RD |
35924 | } |
35925 | { | |
7449af73 | 35926 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int(static_cast<int >(wxDateTime::A_CST))); |
093d3ff1 RD |
35927 | } |
35928 | { | |
7449af73 | 35929 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int(static_cast<int >(wxDateTime::A_EST))); |
093d3ff1 RD |
35930 | } |
35931 | { | |
7449af73 | 35932 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int(static_cast<int >(wxDateTime::A_ESST))); |
093d3ff1 RD |
35933 | } |
35934 | { | |
7449af73 | 35935 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int(static_cast<int >(wxDateTime::UTC))); |
093d3ff1 RD |
35936 | } |
35937 | { | |
7449af73 | 35938 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int(static_cast<int >(wxDateTime::Gregorian))); |
093d3ff1 RD |
35939 | } |
35940 | { | |
7449af73 | 35941 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int(static_cast<int >(wxDateTime::Julian))); |
093d3ff1 RD |
35942 | } |
35943 | { | |
7449af73 | 35944 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Unknown))); |
093d3ff1 RD |
35945 | } |
35946 | { | |
7449af73 | 35947 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Standard))); |
093d3ff1 RD |
35948 | } |
35949 | { | |
7449af73 | 35950 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Alaska))); |
093d3ff1 RD |
35951 | } |
35952 | { | |
7449af73 | 35953 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Albania))); |
093d3ff1 RD |
35954 | } |
35955 | { | |
7449af73 | 35956 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria))); |
093d3ff1 RD |
35957 | } |
35958 | { | |
7449af73 | 35959 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Brixen))); |
093d3ff1 RD |
35960 | } |
35961 | { | |
7449af73 | 35962 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Salzburg))); |
093d3ff1 RD |
35963 | } |
35964 | { | |
7449af73 | 35965 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Tyrol))); |
093d3ff1 RD |
35966 | } |
35967 | { | |
7449af73 | 35968 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Carinthia))); |
093d3ff1 RD |
35969 | } |
35970 | { | |
7449af73 | 35971 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Styria))); |
093d3ff1 RD |
35972 | } |
35973 | { | |
7449af73 | 35974 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Belgium))); |
093d3ff1 RD |
35975 | } |
35976 | { | |
7449af73 | 35977 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria))); |
093d3ff1 RD |
35978 | } |
35979 | { | |
7449af73 | 35980 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_1))); |
093d3ff1 RD |
35981 | } |
35982 | { | |
7449af73 | 35983 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_2))); |
093d3ff1 RD |
35984 | } |
35985 | { | |
7449af73 | 35986 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_3))); |
093d3ff1 RD |
35987 | } |
35988 | { | |
7449af73 | 35989 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Canada))); |
093d3ff1 RD |
35990 | } |
35991 | { | |
7449af73 | 35992 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China))); |
093d3ff1 RD |
35993 | } |
35994 | { | |
7449af73 | 35995 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China_1))); |
093d3ff1 RD |
35996 | } |
35997 | { | |
7449af73 | 35998 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China_2))); |
093d3ff1 RD |
35999 | } |
36000 | { | |
7449af73 | 36001 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Czechoslovakia))); |
093d3ff1 RD |
36002 | } |
36003 | { | |
7449af73 | 36004 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Denmark))); |
093d3ff1 RD |
36005 | } |
36006 | { | |
7449af73 | 36007 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Egypt))); |
093d3ff1 RD |
36008 | } |
36009 | { | |
7449af73 | 36010 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Estonia))); |
093d3ff1 RD |
36011 | } |
36012 | { | |
7449af73 | 36013 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Finland))); |
093d3ff1 RD |
36014 | } |
36015 | { | |
7449af73 | 36016 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France))); |
093d3ff1 RD |
36017 | } |
36018 | { | |
7449af73 | 36019 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Alsace))); |
093d3ff1 RD |
36020 | } |
36021 | { | |
7449af73 | 36022 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Lorraine))); |
093d3ff1 RD |
36023 | } |
36024 | { | |
7449af73 | 36025 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Strasbourg))); |
093d3ff1 RD |
36026 | } |
36027 | { | |
7449af73 | 36028 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany))); |
093d3ff1 RD |
36029 | } |
36030 | { | |
7449af73 | 36031 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Catholic))); |
093d3ff1 RD |
36032 | } |
36033 | { | |
7449af73 | 36034 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Prussia))); |
093d3ff1 RD |
36035 | } |
36036 | { | |
7449af73 | 36037 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Protestant))); |
093d3ff1 RD |
36038 | } |
36039 | { | |
7449af73 | 36040 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int(static_cast<int >(wxDateTime::Gr_GreatBritain))); |
093d3ff1 RD |
36041 | } |
36042 | { | |
7449af73 | 36043 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Greece))); |
093d3ff1 RD |
36044 | } |
36045 | { | |
7449af73 | 36046 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Hungary))); |
093d3ff1 RD |
36047 | } |
36048 | { | |
7449af73 | 36049 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Ireland))); |
093d3ff1 RD |
36050 | } |
36051 | { | |
7449af73 | 36052 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Italy))); |
093d3ff1 RD |
36053 | } |
36054 | { | |
7449af73 | 36055 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan))); |
093d3ff1 RD |
36056 | } |
36057 | { | |
7449af73 | 36058 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_1))); |
093d3ff1 RD |
36059 | } |
36060 | { | |
7449af73 | 36061 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_2))); |
093d3ff1 RD |
36062 | } |
36063 | { | |
7449af73 | 36064 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_3))); |
093d3ff1 RD |
36065 | } |
36066 | { | |
7449af73 | 36067 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Latvia))); |
093d3ff1 RD |
36068 | } |
36069 | { | |
7449af73 | 36070 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Lithuania))); |
093d3ff1 RD |
36071 | } |
36072 | { | |
7449af73 | 36073 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Luxemburg))); |
093d3ff1 RD |
36074 | } |
36075 | { | |
7449af73 | 36076 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands))); |
093d3ff1 RD |
36077 | } |
36078 | { | |
7449af73 | 36079 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Groningen))); |
093d3ff1 RD |
36080 | } |
36081 | { | |
7449af73 | 36082 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Gelderland))); |
093d3ff1 RD |
36083 | } |
36084 | { | |
7449af73 | 36085 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Utrecht))); |
093d3ff1 RD |
36086 | } |
36087 | { | |
7449af73 | 36088 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Friesland))); |
093d3ff1 RD |
36089 | } |
36090 | { | |
7449af73 | 36091 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Norway))); |
093d3ff1 RD |
36092 | } |
36093 | { | |
7449af73 | 36094 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Poland))); |
093d3ff1 RD |
36095 | } |
36096 | { | |
7449af73 | 36097 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Portugal))); |
093d3ff1 RD |
36098 | } |
36099 | { | |
7449af73 | 36100 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Romania))); |
093d3ff1 RD |
36101 | } |
36102 | { | |
7449af73 | 36103 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Russia))); |
093d3ff1 RD |
36104 | } |
36105 | { | |
7449af73 | 36106 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Scotland))); |
093d3ff1 RD |
36107 | } |
36108 | { | |
7449af73 | 36109 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Spain))); |
093d3ff1 RD |
36110 | } |
36111 | { | |
7449af73 | 36112 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Sweden))); |
093d3ff1 RD |
36113 | } |
36114 | { | |
7449af73 | 36115 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland))); |
093d3ff1 RD |
36116 | } |
36117 | { | |
7449af73 | 36118 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland_Catholic))); |
093d3ff1 RD |
36119 | } |
36120 | { | |
7449af73 | 36121 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland_Protestant))); |
093d3ff1 RD |
36122 | } |
36123 | { | |
7449af73 | 36124 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Turkey))); |
093d3ff1 RD |
36125 | } |
36126 | { | |
7449af73 | 36127 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int(static_cast<int >(wxDateTime::Gr_USA))); |
093d3ff1 RD |
36128 | } |
36129 | { | |
7449af73 | 36130 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Wales))); |
093d3ff1 RD |
36131 | } |
36132 | { | |
7449af73 | 36133 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Yugoslavia))); |
093d3ff1 RD |
36134 | } |
36135 | { | |
7449af73 | 36136 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int(static_cast<int >(wxDateTime::Country_Unknown))); |
093d3ff1 RD |
36137 | } |
36138 | { | |
7449af73 | 36139 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int(static_cast<int >(wxDateTime::Country_Default))); |
093d3ff1 RD |
36140 | } |
36141 | { | |
7449af73 | 36142 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int(static_cast<int >(wxDateTime::Country_WesternEurope_Start))); |
093d3ff1 RD |
36143 | } |
36144 | { | |
7449af73 | 36145 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int(static_cast<int >(wxDateTime::Country_EEC))); |
093d3ff1 RD |
36146 | } |
36147 | { | |
7449af73 | 36148 | PyDict_SetItemString(d,"DateTime_France", SWIG_From_int(static_cast<int >(wxDateTime::France))); |
093d3ff1 RD |
36149 | } |
36150 | { | |
7449af73 | 36151 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int(static_cast<int >(wxDateTime::Germany))); |
093d3ff1 RD |
36152 | } |
36153 | { | |
7449af73 | 36154 | PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int(static_cast<int >(wxDateTime::UK))); |
093d3ff1 RD |
36155 | } |
36156 | { | |
7449af73 | 36157 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int(static_cast<int >(wxDateTime::Country_WesternEurope_End))); |
093d3ff1 RD |
36158 | } |
36159 | { | |
7449af73 | 36160 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int(static_cast<int >(wxDateTime::Russia))); |
093d3ff1 RD |
36161 | } |
36162 | { | |
7449af73 | 36163 | PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int(static_cast<int >(wxDateTime::USA))); |
093d3ff1 RD |
36164 | } |
36165 | { | |
7449af73 | 36166 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int(static_cast<int >(wxDateTime::Jan))); |
093d3ff1 RD |
36167 | } |
36168 | { | |
7449af73 | 36169 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int(static_cast<int >(wxDateTime::Feb))); |
093d3ff1 RD |
36170 | } |
36171 | { | |
7449af73 | 36172 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int(static_cast<int >(wxDateTime::Mar))); |
093d3ff1 RD |
36173 | } |
36174 | { | |
7449af73 | 36175 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int(static_cast<int >(wxDateTime::Apr))); |
093d3ff1 RD |
36176 | } |
36177 | { | |
7449af73 | 36178 | PyDict_SetItemString(d,"DateTime_May", SWIG_From_int(static_cast<int >(wxDateTime::May))); |
093d3ff1 RD |
36179 | } |
36180 | { | |
7449af73 | 36181 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int(static_cast<int >(wxDateTime::Jun))); |
093d3ff1 RD |
36182 | } |
36183 | { | |
7449af73 | 36184 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int(static_cast<int >(wxDateTime::Jul))); |
093d3ff1 RD |
36185 | } |
36186 | { | |
7449af73 | 36187 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int(static_cast<int >(wxDateTime::Aug))); |
093d3ff1 RD |
36188 | } |
36189 | { | |
7449af73 | 36190 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int(static_cast<int >(wxDateTime::Sep))); |
093d3ff1 RD |
36191 | } |
36192 | { | |
7449af73 | 36193 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int(static_cast<int >(wxDateTime::Oct))); |
093d3ff1 RD |
36194 | } |
36195 | { | |
7449af73 | 36196 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int(static_cast<int >(wxDateTime::Nov))); |
093d3ff1 RD |
36197 | } |
36198 | { | |
7449af73 | 36199 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int(static_cast<int >(wxDateTime::Dec))); |
093d3ff1 RD |
36200 | } |
36201 | { | |
7449af73 | 36202 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int(static_cast<int >(wxDateTime::Inv_Month))); |
093d3ff1 RD |
36203 | } |
36204 | { | |
7449af73 | 36205 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int(static_cast<int >(wxDateTime::Sun))); |
093d3ff1 RD |
36206 | } |
36207 | { | |
7449af73 | 36208 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int(static_cast<int >(wxDateTime::Mon))); |
093d3ff1 RD |
36209 | } |
36210 | { | |
7449af73 | 36211 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int(static_cast<int >(wxDateTime::Tue))); |
093d3ff1 RD |
36212 | } |
36213 | { | |
7449af73 | 36214 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int(static_cast<int >(wxDateTime::Wed))); |
093d3ff1 RD |
36215 | } |
36216 | { | |
7449af73 | 36217 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int(static_cast<int >(wxDateTime::Thu))); |
093d3ff1 RD |
36218 | } |
36219 | { | |
7449af73 | 36220 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int(static_cast<int >(wxDateTime::Fri))); |
093d3ff1 RD |
36221 | } |
36222 | { | |
7449af73 | 36223 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int(static_cast<int >(wxDateTime::Sat))); |
093d3ff1 RD |
36224 | } |
36225 | { | |
7449af73 | 36226 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int(static_cast<int >(wxDateTime::Inv_WeekDay))); |
093d3ff1 RD |
36227 | } |
36228 | { | |
7449af73 | 36229 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int(static_cast<int >(wxDateTime::Inv_Year))); |
093d3ff1 RD |
36230 | } |
36231 | { | |
7449af73 | 36232 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int(static_cast<int >(wxDateTime::Name_Full))); |
093d3ff1 RD |
36233 | } |
36234 | { | |
7449af73 | 36235 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int(static_cast<int >(wxDateTime::Name_Abbr))); |
093d3ff1 RD |
36236 | } |
36237 | { | |
7449af73 | 36238 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int(static_cast<int >(wxDateTime::Default_First))); |
093d3ff1 RD |
36239 | } |
36240 | { | |
7449af73 | 36241 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int(static_cast<int >(wxDateTime::Monday_First))); |
093d3ff1 RD |
36242 | } |
36243 | { | |
7449af73 | 36244 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int(static_cast<int >(wxDateTime::Sunday_First))); |
093d3ff1 | 36245 | } |
d55e5bfc | 36246 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
093d3ff1 | 36247 | { |
7449af73 | 36248 | PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int(static_cast<int >(wxDF_INVALID))); |
093d3ff1 RD |
36249 | } |
36250 | { | |
7449af73 | 36251 | PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int(static_cast<int >(wxDF_TEXT))); |
093d3ff1 RD |
36252 | } |
36253 | { | |
7449af73 | 36254 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int(static_cast<int >(wxDF_BITMAP))); |
093d3ff1 RD |
36255 | } |
36256 | { | |
7449af73 | 36257 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int(static_cast<int >(wxDF_METAFILE))); |
093d3ff1 RD |
36258 | } |
36259 | { | |
7449af73 | 36260 | PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int(static_cast<int >(wxDF_SYLK))); |
093d3ff1 RD |
36261 | } |
36262 | { | |
7449af73 | 36263 | PyDict_SetItemString(d,"DF_DIF", SWIG_From_int(static_cast<int >(wxDF_DIF))); |
093d3ff1 RD |
36264 | } |
36265 | { | |
7449af73 | 36266 | PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int(static_cast<int >(wxDF_TIFF))); |
093d3ff1 RD |
36267 | } |
36268 | { | |
7449af73 | 36269 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int(static_cast<int >(wxDF_OEMTEXT))); |
093d3ff1 RD |
36270 | } |
36271 | { | |
7449af73 | 36272 | PyDict_SetItemString(d,"DF_DIB", SWIG_From_int(static_cast<int >(wxDF_DIB))); |
093d3ff1 RD |
36273 | } |
36274 | { | |
7449af73 | 36275 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int(static_cast<int >(wxDF_PALETTE))); |
093d3ff1 RD |
36276 | } |
36277 | { | |
7449af73 | 36278 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int(static_cast<int >(wxDF_PENDATA))); |
093d3ff1 RD |
36279 | } |
36280 | { | |
7449af73 | 36281 | PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int(static_cast<int >(wxDF_RIFF))); |
093d3ff1 RD |
36282 | } |
36283 | { | |
7449af73 | 36284 | PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int(static_cast<int >(wxDF_WAVE))); |
093d3ff1 RD |
36285 | } |
36286 | { | |
7449af73 | 36287 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int(static_cast<int >(wxDF_UNICODETEXT))); |
093d3ff1 RD |
36288 | } |
36289 | { | |
7449af73 | 36290 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int(static_cast<int >(wxDF_ENHMETAFILE))); |
093d3ff1 RD |
36291 | } |
36292 | { | |
7449af73 | 36293 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int(static_cast<int >(wxDF_FILENAME))); |
093d3ff1 RD |
36294 | } |
36295 | { | |
7449af73 | 36296 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int(static_cast<int >(wxDF_LOCALE))); |
093d3ff1 RD |
36297 | } |
36298 | { | |
7449af73 | 36299 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int(static_cast<int >(wxDF_PRIVATE))); |
093d3ff1 RD |
36300 | } |
36301 | { | |
7449af73 | 36302 | PyDict_SetItemString(d,"DF_HTML", SWIG_From_int(static_cast<int >(wxDF_HTML))); |
093d3ff1 RD |
36303 | } |
36304 | { | |
7449af73 | 36305 | PyDict_SetItemString(d,"DF_MAX", SWIG_From_int(static_cast<int >(wxDF_MAX))); |
093d3ff1 | 36306 | } |
d55e5bfc | 36307 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
093d3ff1 | 36308 | { |
7449af73 | 36309 | PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int(static_cast<int >(wxDataObject::Get))); |
093d3ff1 RD |
36310 | } |
36311 | { | |
7449af73 | 36312 | PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int(static_cast<int >(wxDataObject::Set))); |
093d3ff1 RD |
36313 | } |
36314 | { | |
7449af73 | 36315 | PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int(static_cast<int >(wxDataObject::Both))); |
093d3ff1 RD |
36316 | } |
36317 | { | |
7449af73 | 36318 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int(static_cast<int >(wxDrag_CopyOnly))); |
093d3ff1 RD |
36319 | } |
36320 | { | |
7449af73 | 36321 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int(static_cast<int >(wxDrag_AllowMove))); |
093d3ff1 RD |
36322 | } |
36323 | { | |
7449af73 | 36324 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int(static_cast<int >(wxDrag_DefaultMove))); |
093d3ff1 RD |
36325 | } |
36326 | { | |
7449af73 | 36327 | PyDict_SetItemString(d,"DragError", SWIG_From_int(static_cast<int >(wxDragError))); |
093d3ff1 RD |
36328 | } |
36329 | { | |
7449af73 | 36330 | PyDict_SetItemString(d,"DragNone", SWIG_From_int(static_cast<int >(wxDragNone))); |
093d3ff1 RD |
36331 | } |
36332 | { | |
7449af73 | 36333 | PyDict_SetItemString(d,"DragCopy", SWIG_From_int(static_cast<int >(wxDragCopy))); |
093d3ff1 RD |
36334 | } |
36335 | { | |
7449af73 | 36336 | PyDict_SetItemString(d,"DragMove", SWIG_From_int(static_cast<int >(wxDragMove))); |
093d3ff1 RD |
36337 | } |
36338 | { | |
7449af73 | 36339 | PyDict_SetItemString(d,"DragLink", SWIG_From_int(static_cast<int >(wxDragLink))); |
093d3ff1 RD |
36340 | } |
36341 | { | |
7449af73 | 36342 | PyDict_SetItemString(d,"DragCancel", SWIG_From_int(static_cast<int >(wxDragCancel))); |
093d3ff1 | 36343 | } |
d55e5bfc RD |
36344 | |
36345 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
36346 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
36347 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
36348 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
36349 | ||
d55e5bfc RD |
36350 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
36351 | } | |
36352 |