]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
32fe5131 | 3 | * Version 1.3.27 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
7e08d4ef | 12 | #define SWIG_VERSION 0x010327 |
d14a1e28 RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d14a1e28 RD |
28 | #endif |
29 | ||
32fe5131 RD |
30 | /*********************************************************************** |
31 | * | |
32 | * This section contains generic SWIG labels for method/variable | |
33 | * declarations/attributes, and other compiler dependent labels. | |
34 | * | |
35 | ************************************************************************/ | |
d14a1e28 | 36 | |
32fe5131 RD |
37 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
38 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
39 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) | |
40 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
093d3ff1 | 41 | # else |
32fe5131 | 42 | # define SWIGTEMPLATEDISAMBIGUATOR |
093d3ff1 RD |
43 | # endif |
44 | #endif | |
d14a1e28 | 45 | |
32fe5131 RD |
46 | /* inline attribute */ |
47 | #ifndef SWIGINLINE | |
48 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
49 | # define SWIGINLINE inline | |
50 | # else | |
51 | # define SWIGINLINE | |
52 | # endif | |
53 | #endif | |
54 | ||
55 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
56 | #ifndef SWIGUNUSED | |
57 | # if defined(__GNUC__) || defined(__ICC) | |
58 | # define SWIGUNUSED __attribute__ ((unused)) | |
59 | # else | |
60 | # define SWIGUNUSED | |
61 | # endif | |
62 | #endif | |
63 | ||
64 | /* internal SWIG method */ | |
65 | #ifndef SWIGINTERN | |
66 | # define SWIGINTERN static SWIGUNUSED | |
67 | #endif | |
68 | ||
69 | /* internal inline SWIG method */ | |
70 | #ifndef SWIGINTERNINLINE | |
71 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
72 | #endif | |
73 | ||
74 | /* exporting methods for Windows DLLs */ | |
75 | #ifndef SWIGEXPORT | |
76 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
77 | # if defined(STATIC_LINKED) | |
78 | # define SWIGEXPORT | |
79 | # else | |
80 | # define SWIGEXPORT __declspec(dllexport) | |
81 | # endif | |
82 | # else | |
83 | # define SWIGEXPORT | |
84 | # endif | |
85 | #endif | |
86 | ||
87 | /* calling conventions for Windows */ | |
88 | #ifndef SWIGSTDCALL | |
89 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
90 | # define SWIGSTDCALL __stdcall | |
91 | # else | |
92 | # define SWIGSTDCALL | |
93 | # endif | |
94 | #endif | |
95 | ||
96 | ||
c9c7117a | 97 | |
093d3ff1 | 98 | #include <Python.h> |
d14a1e28 RD |
99 | |
100 | /*********************************************************************** | |
093d3ff1 | 101 | * swigrun.swg |
d14a1e28 | 102 | * |
093d3ff1 RD |
103 | * This file contains generic CAPI SWIG runtime support for pointer |
104 | * type checking. | |
d14a1e28 RD |
105 | * |
106 | ************************************************************************/ | |
107 | ||
093d3ff1 RD |
108 | /* This should only be incremented when either the layout of swig_type_info changes, |
109 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 110 | #define SWIG_RUNTIME_VERSION "2" |
d14a1e28 | 111 | |
093d3ff1 RD |
112 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
113 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
114 | # define SWIG_QUOTE_STRING(x) #x |
115 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
116 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d14a1e28 | 117 | #else |
32fe5131 | 118 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
119 | #endif |
120 | ||
121 | /* | |
122 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
123 | creating a static or dynamic library from the swig runtime code. | |
124 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
125 | ||
126 | But only do this if is strictly necessary, ie, if you have problems | |
127 | with your compiler or so. | |
128 | */ | |
32fe5131 | 129 | |
093d3ff1 | 130 | #ifndef SWIGRUNTIME |
32fe5131 | 131 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 132 | #endif |
32fe5131 | 133 | |
093d3ff1 | 134 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 135 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d14a1e28 RD |
136 | #endif |
137 | ||
32fe5131 RD |
138 | #include <string.h> |
139 | ||
d14a1e28 RD |
140 | #ifdef __cplusplus |
141 | extern "C" { | |
142 | #endif | |
143 | ||
144 | typedef void *(*swig_converter_func)(void *); | |
145 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
146 | ||
32fe5131 | 147 | /* Structure to store inforomation on one type */ |
d14a1e28 | 148 | typedef struct swig_type_info { |
32fe5131 RD |
149 | const char *name; /* mangled name of this type */ |
150 | const char *str; /* human readable name of this type */ | |
151 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
152 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
153 | void *clientdata; /* language specific type data */ | |
d14a1e28 RD |
154 | } swig_type_info; |
155 | ||
32fe5131 RD |
156 | /* Structure to store a type and conversion function used for casting */ |
157 | typedef struct swig_cast_info { | |
158 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
159 | swig_converter_func converter; /* function to cast the void pointers */ | |
160 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
161 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
162 | } swig_cast_info; | |
163 | ||
164 | /* Structure used to store module information | |
165 | * Each module generates one structure like this, and the runtime collects | |
166 | * all of these structures and stores them in a circularly linked list.*/ | |
167 | typedef struct swig_module_info { | |
168 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
169 | size_t size; /* Number of types in this module */ | |
170 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
171 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
172 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
173 | void *clientdata; /* Language specific module data */ | |
174 | } swig_module_info; | |
175 | ||
176 | ||
093d3ff1 RD |
177 | /* |
178 | Compare two type names skipping the space characters, therefore | |
179 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
180 | ||
181 | Return 0 when the two name types are equivalent, as in | |
182 | strncmp, but skipping ' '. | |
183 | */ | |
184 | SWIGRUNTIME int | |
185 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
186 | const char *f2, const char *l2) { | |
187 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
188 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
189 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
32fe5131 | 190 | if (*f1 != *f2) return (int)(*f1 - *f2); |
093d3ff1 RD |
191 | } |
192 | return (l1 - f1) - (l2 - f2); | |
193 | } | |
194 | ||
195 | /* | |
196 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 197 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
198 | */ |
199 | SWIGRUNTIME int | |
200 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
201 | int equiv = 0; | |
202 | const char* te = tb + strlen(tb); | |
203 | const char* ne = nb; | |
204 | while (!equiv && *ne) { | |
205 | for (nb = ne; *ne; ++ne) { | |
206 | if (*ne == '|') break; | |
207 | } | |
32fe5131 | 208 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
209 | if (*ne) ++ne; |
210 | } | |
211 | return equiv; | |
212 | } | |
213 | ||
214 | /* | |
32fe5131 RD |
215 | Check type equivalence in a name list like <name1>|<name2>|... |
216 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 217 | */ |
32fe5131 RD |
218 | SWIGRUNTIME int |
219 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
220 | int equiv = 0; | |
221 | const char* te = tb + strlen(tb); | |
222 | const char* ne = nb; | |
223 | while (!equiv && *ne) { | |
224 | for (nb = ne; *ne; ++ne) { | |
225 | if (*ne == '|') break; | |
093d3ff1 | 226 | } |
32fe5131 RD |
227 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
228 | if (*ne) ++ne; | |
093d3ff1 | 229 | } |
32fe5131 | 230 | return equiv; |
093d3ff1 RD |
231 | } |
232 | ||
32fe5131 RD |
233 | |
234 | /* think of this as a c++ template<> or a scheme macro */ | |
235 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
236 | if (ty) { \ | |
237 | swig_cast_info *iter = ty->cast; \ | |
238 | while (iter) { \ | |
239 | if (comparison) { \ | |
240 | if (iter == ty->cast) return iter; \ | |
241 | /* Move iter to the top of the linked list */ \ | |
242 | iter->prev->next = iter->next; \ | |
243 | if (iter->next) \ | |
244 | iter->next->prev = iter->prev; \ | |
245 | iter->next = ty->cast; \ | |
246 | iter->prev = 0; \ | |
247 | if (ty->cast) ty->cast->prev = iter; \ | |
248 | ty->cast = iter; \ | |
249 | return iter; \ | |
250 | } \ | |
251 | iter = iter->next; \ | |
252 | } \ | |
253 | } \ | |
254 | return 0 | |
255 | ||
093d3ff1 RD |
256 | /* |
257 | Check the typename | |
258 | */ | |
32fe5131 | 259 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 260 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
261 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
262 | } | |
263 | ||
264 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
265 | SWIGRUNTIME swig_cast_info * | |
266 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
267 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
268 | } |
269 | ||
270 | /* | |
271 | Cast a pointer up an inheritance hierarchy | |
272 | */ | |
273 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 274 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
275 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
276 | } | |
277 | ||
278 | /* | |
279 | Dynamic pointer casting. Down an inheritance hierarchy | |
280 | */ | |
281 | SWIGRUNTIME swig_type_info * | |
282 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
283 | swig_type_info *lastty = ty; | |
284 | if (!ty || !ty->dcast) return ty; | |
285 | while (ty && (ty->dcast)) { | |
286 | ty = (*ty->dcast)(ptr); | |
287 | if (ty) lastty = ty; | |
288 | } | |
289 | return lastty; | |
290 | } | |
291 | ||
292 | /* | |
293 | Return the name associated with this type | |
294 | */ | |
295 | SWIGRUNTIMEINLINE const char * | |
296 | SWIG_TypeName(const swig_type_info *ty) { | |
297 | return ty->name; | |
298 | } | |
299 | ||
300 | /* | |
301 | Return the pretty name associated with this type, | |
302 | that is an unmangled type name in a form presentable to the user. | |
303 | */ | |
304 | SWIGRUNTIME const char * | |
305 | SWIG_TypePrettyName(const swig_type_info *type) { | |
306 | /* The "str" field contains the equivalent pretty names of the | |
307 | type, separated by vertical-bar characters. We choose | |
308 | to print the last name, as it is often (?) the most | |
309 | specific. */ | |
310 | if (type->str != NULL) { | |
311 | const char *last_name = type->str; | |
312 | const char *s; | |
313 | for (s = type->str; *s; s++) | |
314 | if (*s == '|') last_name = s+1; | |
315 | return last_name; | |
316 | } | |
317 | else | |
318 | return type->name; | |
319 | } | |
320 | ||
093d3ff1 RD |
321 | /* |
322 | Set the clientdata field for a type | |
323 | */ | |
324 | SWIGRUNTIME void | |
32fe5131 RD |
325 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
326 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
327 | /* if (ti->clientdata == clientdata) return; */ |
328 | ti->clientdata = clientdata; | |
32fe5131 RD |
329 | |
330 | while (cast) { | |
331 | if (!cast->converter) { | |
332 | swig_type_info *tc = cast->type; | |
333 | if (!tc->clientdata) { | |
334 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 335 | } |
32fe5131 RD |
336 | } |
337 | cast = cast->next; | |
338 | } | |
339 | } | |
340 | ||
341 | /* | |
342 | Search for a swig_type_info structure only by mangled name | |
343 | Search is a O(log #types) | |
344 | ||
345 | We start searching at module start, and finish searching when start == end. | |
346 | Note: if start == end at the beginning of the function, we go all the way around | |
347 | the circular list. | |
348 | */ | |
349 | SWIGRUNTIME swig_type_info * | |
350 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
351 | swig_module_info *end, | |
352 | const char *name) { | |
353 | swig_module_info *iter = start; | |
354 | do { | |
355 | if (iter->size) { | |
356 | register size_t l = 0; | |
357 | register size_t r = iter->size - 1; | |
358 | do { | |
359 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
360 | register size_t i = (l + r) >> 1; | |
361 | const char *iname = iter->types[i]->name; | |
362 | if (iname) { | |
363 | register int compare = strcmp(name, iname); | |
364 | if (compare == 0) { | |
365 | return iter->types[i]; | |
366 | } else if (compare < 0) { | |
367 | if (i) { | |
368 | r = i - 1; | |
369 | } else { | |
370 | break; | |
371 | } | |
372 | } else if (compare > 0) { | |
373 | l = i + 1; | |
374 | } | |
375 | } else { | |
376 | break; /* should never happen */ | |
377 | } | |
378 | } while (l <= r); | |
093d3ff1 | 379 | } |
32fe5131 RD |
380 | iter = iter->next; |
381 | } while (iter != end); | |
382 | return 0; | |
383 | } | |
384 | ||
385 | /* | |
386 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
387 | It first searches the mangled names of the types, which is a O(log #types) | |
388 | If a type is not found it then searches the human readable names, which is O(#types). | |
389 | ||
390 | We start searching at module start, and finish searching when start == end. | |
391 | Note: if start == end at the beginning of the function, we go all the way around | |
392 | the circular list. | |
393 | */ | |
394 | SWIGRUNTIME swig_type_info * | |
395 | SWIG_TypeQueryModule(swig_module_info *start, | |
396 | swig_module_info *end, | |
397 | const char *name) { | |
398 | /* STEP 1: Search the name field using binary search */ | |
399 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
400 | if (ret) { | |
401 | return ret; | |
402 | } else { | |
403 | /* STEP 2: If the type hasn't been found, do a complete search | |
404 | of the str field (the human readable name) */ | |
405 | swig_module_info *iter = start; | |
406 | do { | |
407 | register size_t i = 0; | |
408 | for (; i < iter->size; ++i) { | |
409 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
410 | return iter->types[i]; | |
411 | } | |
412 | iter = iter->next; | |
413 | } while (iter != end); | |
093d3ff1 | 414 | } |
32fe5131 RD |
415 | |
416 | /* neither found a match */ | |
417 | return 0; | |
093d3ff1 RD |
418 | } |
419 | ||
32fe5131 | 420 | |
093d3ff1 RD |
421 | /* |
422 | Pack binary data into a string | |
423 | */ | |
424 | SWIGRUNTIME char * | |
425 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
426 | static const char hex[17] = "0123456789abcdef"; |
427 | register const unsigned char *u = (unsigned char *) ptr; | |
428 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 429 | for (; u != eu; ++u) { |
32fe5131 | 430 | register unsigned char uu = *u; |
093d3ff1 RD |
431 | *(c++) = hex[(uu & 0xf0) >> 4]; |
432 | *(c++) = hex[uu & 0xf]; | |
433 | } | |
434 | return c; | |
435 | } | |
436 | ||
437 | /* | |
438 | Unpack binary data from a string | |
439 | */ | |
440 | SWIGRUNTIME const char * | |
441 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
442 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 443 | register const unsigned char *eu = u + sz; |
093d3ff1 | 444 | for (; u != eu; ++u) { |
32fe5131 | 445 | register char d = *(c++); |
093d3ff1 RD |
446 | register unsigned char uu = 0; |
447 | if ((d >= '0') && (d <= '9')) | |
448 | uu = ((d - '0') << 4); | |
449 | else if ((d >= 'a') && (d <= 'f')) | |
450 | uu = ((d - ('a'-10)) << 4); | |
451 | else | |
452 | return (char *) 0; | |
453 | d = *(c++); | |
454 | if ((d >= '0') && (d <= '9')) | |
455 | uu |= (d - '0'); | |
456 | else if ((d >= 'a') && (d <= 'f')) | |
457 | uu |= (d - ('a'-10)); | |
458 | else | |
459 | return (char *) 0; | |
460 | *u = uu; | |
461 | } | |
462 | return c; | |
463 | } | |
464 | ||
093d3ff1 RD |
465 | /* |
466 | Pack 'void *' into a string buffer. | |
467 | */ | |
468 | SWIGRUNTIME char * | |
469 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
470 | char *r = buff; | |
471 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
472 | *(r++) = '_'; | |
473 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
474 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
475 | strcpy(r,name); | |
476 | return buff; | |
477 | } | |
478 | ||
479 | SWIGRUNTIME const char * | |
480 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
481 | if (*c != '_') { | |
482 | if (strcmp(c,"NULL") == 0) { | |
483 | *ptr = (void *) 0; | |
484 | return name; | |
485 | } else { | |
486 | return 0; | |
487 | } | |
488 | } | |
489 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
490 | } | |
491 | ||
492 | SWIGRUNTIME char * | |
493 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
494 | char *r = buff; | |
495 | size_t lname = (name ? strlen(name) : 0); | |
496 | if ((2*sz + 2 + lname) > bsz) return 0; | |
497 | *(r++) = '_'; | |
498 | r = SWIG_PackData(r,ptr,sz); | |
499 | if (lname) { | |
500 | strncpy(r,name,lname+1); | |
501 | } else { | |
502 | *r = 0; | |
503 | } | |
504 | return buff; | |
505 | } | |
d14a1e28 | 506 | |
093d3ff1 RD |
507 | SWIGRUNTIME const char * |
508 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
509 | if (*c != '_') { | |
510 | if (strcmp(c,"NULL") == 0) { | |
511 | memset(ptr,0,sz); | |
512 | return name; | |
513 | } else { | |
514 | return 0; | |
515 | } | |
516 | } | |
517 | return SWIG_UnpackData(++c,ptr,sz); | |
518 | } | |
d14a1e28 RD |
519 | |
520 | #ifdef __cplusplus | |
521 | } | |
522 | #endif | |
523 | ||
093d3ff1 RD |
524 | /* ----------------------------------------------------------------------------- |
525 | * SWIG API. Portion that goes into the runtime | |
526 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 527 | |
093d3ff1 RD |
528 | #ifdef __cplusplus |
529 | extern "C" { | |
530 | #endif | |
c32bde28 | 531 | |
093d3ff1 RD |
532 | /* ----------------------------------------------------------------------------- |
533 | * for internal method declarations | |
534 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 535 | |
093d3ff1 | 536 | #ifndef SWIGINTERN |
32fe5131 | 537 | # define SWIGINTERN static SWIGUNUSED |
093d3ff1 | 538 | #endif |
d14a1e28 | 539 | |
32fe5131 RD |
540 | #ifndef SWIGINTERNINLINE |
541 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
093d3ff1 | 542 | #endif |
d14a1e28 | 543 | |
093d3ff1 RD |
544 | /* |
545 | Exception handling in wrappers | |
546 | */ | |
547 | #define SWIG_fail goto fail | |
548 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
549 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
550 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
551 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
552 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
553 | ||
554 | /* | |
555 | Contract support | |
556 | */ | |
557 | #define SWIG_contract_assert(expr, msg) \ | |
558 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
559 | ||
560 | /* ----------------------------------------------------------------------------- | |
561 | * Constant declarations | |
562 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 563 | |
093d3ff1 RD |
564 | /* Constant Types */ |
565 | #define SWIG_PY_INT 1 | |
566 | #define SWIG_PY_FLOAT 2 | |
567 | #define SWIG_PY_STRING 3 | |
568 | #define SWIG_PY_POINTER 4 | |
569 | #define SWIG_PY_BINARY 5 | |
570 | ||
571 | /* Constant information structure */ | |
572 | typedef struct swig_const_info { | |
573 | int type; | |
574 | char *name; | |
575 | long lvalue; | |
576 | double dvalue; | |
577 | void *pvalue; | |
578 | swig_type_info **ptype; | |
579 | } swig_const_info; | |
d14a1e28 | 580 | |
c32bde28 | 581 | |
093d3ff1 RD |
582 | /* ----------------------------------------------------------------------------- |
583 | * Alloc. memory flags | |
584 | * ----------------------------------------------------------------------------- */ | |
c32bde28 RD |
585 | #define SWIG_OLDOBJ 1 |
586 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
587 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
994141e6 | 588 | |
994141e6 | 589 | #ifdef __cplusplus |
093d3ff1 RD |
590 | } |
591 | #endif | |
994141e6 | 592 | |
15afbcd0 | 593 | |
093d3ff1 RD |
594 | /*********************************************************************** |
595 | * pyrun.swg | |
596 | * | |
597 | * This file contains the runtime support for Python modules | |
598 | * and includes code for managing global variables and pointer | |
599 | * type checking. | |
600 | * | |
601 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
602 | ************************************************************************/ | |
15afbcd0 | 603 | |
093d3ff1 RD |
604 | /* Common SWIG API */ |
605 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
606 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
607 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
608 | ||
994141e6 | 609 | |
093d3ff1 RD |
610 | /* Python-specific SWIG API */ |
611 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
612 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
994141e6 | 613 | |
32fe5131 RD |
614 | /* Runtime API */ |
615 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
616 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
994141e6 | 617 | |
093d3ff1 RD |
618 | /* ----------------------------------------------------------------------------- |
619 | * Pointer declarations | |
620 | * ----------------------------------------------------------------------------- */ | |
621 | /* | |
622 | Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent | |
623 | C/C++ pointers in the python side. Very useful for debugging, but | |
624 | not always safe. | |
625 | */ | |
626 | #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) | |
627 | # define SWIG_COBJECT_TYPES | |
628 | #endif | |
629 | ||
630 | /* Flags for pointer conversion */ | |
631 | #define SWIG_POINTER_EXCEPTION 0x1 | |
632 | #define SWIG_POINTER_DISOWN 0x2 | |
994141e6 | 633 | |
d14a1e28 | 634 | |
32fe5131 RD |
635 | /* Add PyOS_snprintf for old Pythons */ |
636 | #if PY_VERSION_HEX < 0x02020000 | |
637 | #define PyOS_snprintf snprintf | |
638 | #endif | |
639 | ||
093d3ff1 RD |
640 | #ifdef __cplusplus |
641 | extern "C" { | |
642 | #endif | |
d14a1e28 | 643 | |
093d3ff1 RD |
644 | /* ----------------------------------------------------------------------------- |
645 | * Create a new pointer string | |
646 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 RD |
647 | #ifndef SWIG_BUFFER_SIZE |
648 | #define SWIG_BUFFER_SIZE 1024 | |
649 | #endif | |
994141e6 | 650 | |
32fe5131 RD |
651 | /* A crude PyString_FromFormat implementation for old Pythons */ |
652 | #if PY_VERSION_HEX < 0x02020000 | |
653 | static PyObject * | |
654 | PyString_FromFormat(const char *fmt, ...) { | |
655 | va_list ap; | |
656 | char buf[SWIG_BUFFER_SIZE * 2]; | |
657 | int res; | |
658 | va_start(ap, fmt); | |
659 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
660 | va_end(ap); | |
661 | return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf); | |
662 | } | |
663 | #endif | |
664 | ||
665 | #if PY_VERSION_HEX < 0x01060000 | |
666 | #define PyObject_Del(op) PyMem_DEL((op)) | |
667 | #endif | |
668 | ||
093d3ff1 RD |
669 | #if defined(SWIG_COBJECT_TYPES) |
670 | #if !defined(SWIG_COBJECT_PYTHON) | |
671 | /* ----------------------------------------------------------------------------- | |
672 | * Implements a simple Swig Object type, and use it instead of PyCObject | |
673 | * ----------------------------------------------------------------------------- */ | |
15afbcd0 | 674 | |
093d3ff1 RD |
675 | typedef struct { |
676 | PyObject_HEAD | |
677 | void *ptr; | |
678 | const char *desc; | |
679 | } PySwigObject; | |
15afbcd0 | 680 | |
093d3ff1 RD |
681 | /* Declarations for objects of type PySwigObject */ |
682 | ||
683 | SWIGRUNTIME int | |
684 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
15afbcd0 | 685 | { |
093d3ff1 | 686 | char result[SWIG_BUFFER_SIZE]; |
32fe5131 | 687 | flags = flags; |
093d3ff1 RD |
688 | if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) { |
689 | fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp); | |
690 | return 0; | |
691 | } else { | |
692 | return 1; | |
15afbcd0 | 693 | } |
15afbcd0 | 694 | } |
093d3ff1 RD |
695 | |
696 | SWIGRUNTIME PyObject * | |
697 | PySwigObject_repr(PySwigObject *v) | |
15afbcd0 | 698 | { |
093d3ff1 RD |
699 | char result[SWIG_BUFFER_SIZE]; |
700 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
701 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
15afbcd0 RD |
702 | } |
703 | ||
093d3ff1 RD |
704 | SWIGRUNTIME PyObject * |
705 | PySwigObject_str(PySwigObject *v) | |
706 | { | |
707 | char result[SWIG_BUFFER_SIZE]; | |
708 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
709 | PyString_FromString(result) : 0; | |
710 | } | |
15afbcd0 | 711 | |
093d3ff1 RD |
712 | SWIGRUNTIME PyObject * |
713 | PySwigObject_long(PySwigObject *v) | |
714 | { | |
32fe5131 RD |
715 | return PyLong_FromVoidPtr(v->ptr); |
716 | } | |
717 | ||
718 | SWIGRUNTIME PyObject * | |
719 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
720 | { | |
721 | PyObject *res = NULL; | |
722 | PyObject *args = PyTuple_New(1); | |
723 | if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) { | |
724 | PyObject *ofmt = PyString_FromString(fmt); | |
725 | if (ofmt) { | |
726 | res = PyString_Format(ofmt,args); | |
727 | Py_DECREF(ofmt); | |
728 | } | |
729 | Py_DECREF(args); | |
730 | } | |
731 | return res; | |
15afbcd0 | 732 | } |
093d3ff1 RD |
733 | |
734 | SWIGRUNTIME PyObject * | |
735 | PySwigObject_oct(PySwigObject *v) | |
c32bde28 | 736 | { |
32fe5131 | 737 | return PySwigObject_format("%o",v); |
c32bde28 | 738 | } |
15afbcd0 | 739 | |
093d3ff1 RD |
740 | SWIGRUNTIME PyObject * |
741 | PySwigObject_hex(PySwigObject *v) | |
742 | { | |
32fe5131 | 743 | return PySwigObject_format("%x",v); |
093d3ff1 | 744 | } |
15afbcd0 | 745 | |
093d3ff1 RD |
746 | SWIGRUNTIME int |
747 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
15afbcd0 | 748 | { |
093d3ff1 RD |
749 | int c = strcmp(v->desc, w->desc); |
750 | if (c) { | |
32fe5131 | 751 | return (c > 0) ? 1 : -1; |
093d3ff1 RD |
752 | } else { |
753 | void *i = v->ptr; | |
754 | void *j = w->ptr; | |
32fe5131 | 755 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
15afbcd0 | 756 | } |
c32bde28 RD |
757 | } |
758 | ||
093d3ff1 RD |
759 | SWIGRUNTIME void |
760 | PySwigObject_dealloc(PySwigObject *self) | |
c32bde28 | 761 | { |
32fe5131 | 762 | PyObject_Del(self); |
994141e6 RD |
763 | } |
764 | ||
093d3ff1 | 765 | SWIGRUNTIME PyTypeObject* |
32fe5131 RD |
766 | PySwigObject_type(void) { |
767 | static char pyswigobject_type__doc__[] = | |
093d3ff1 RD |
768 | "Swig object carries a C/C++ instance pointer"; |
769 | ||
770 | static PyNumberMethods PySwigObject_as_number = { | |
771 | (binaryfunc)0, /*nb_add*/ | |
772 | (binaryfunc)0, /*nb_subtract*/ | |
773 | (binaryfunc)0, /*nb_multiply*/ | |
774 | (binaryfunc)0, /*nb_divide*/ | |
775 | (binaryfunc)0, /*nb_remainder*/ | |
776 | (binaryfunc)0, /*nb_divmod*/ | |
777 | (ternaryfunc)0,/*nb_power*/ | |
778 | (unaryfunc)0, /*nb_negative*/ | |
779 | (unaryfunc)0, /*nb_positive*/ | |
780 | (unaryfunc)0, /*nb_absolute*/ | |
781 | (inquiry)0, /*nb_nonzero*/ | |
782 | 0, /*nb_invert*/ | |
783 | 0, /*nb_lshift*/ | |
784 | 0, /*nb_rshift*/ | |
785 | 0, /*nb_and*/ | |
786 | 0, /*nb_xor*/ | |
787 | 0, /*nb_or*/ | |
788 | (coercion)0, /*nb_coerce*/ | |
789 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
790 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
791 | (unaryfunc)0, /*nb_float*/ | |
792 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
793 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 794 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 795 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
796 | #elif PY_VERSION_HEX >= 0x02000000 |
797 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
798 | #endif |
799 | }; | |
800 | ||
32fe5131 RD |
801 | static PyTypeObject pyswigobject_type |
802 | #if !defined(__cplusplus) | |
803 | ; | |
804 | static int type_init = 0; | |
093d3ff1 | 805 | if (!type_init) { |
32fe5131 RD |
806 | PyTypeObject tmp |
807 | #endif | |
808 | = { | |
093d3ff1 RD |
809 | PyObject_HEAD_INIT(&PyType_Type) |
810 | 0, /*ob_size*/ | |
32fe5131 | 811 | (char *)"PySwigObject", /*tp_name*/ |
093d3ff1 RD |
812 | sizeof(PySwigObject), /*tp_basicsize*/ |
813 | 0, /*tp_itemsize*/ | |
814 | /* methods */ | |
815 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
816 | (printfunc)PySwigObject_print, /*tp_print*/ | |
817 | (getattrfunc)0, /*tp_getattr*/ | |
818 | (setattrfunc)0, /*tp_setattr*/ | |
819 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
820 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
821 | &PySwigObject_as_number, /*tp_as_number*/ | |
822 | 0, /*tp_as_sequence*/ | |
823 | 0, /*tp_as_mapping*/ | |
824 | (hashfunc)0, /*tp_hash*/ | |
825 | (ternaryfunc)0, /*tp_call*/ | |
826 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
827 | /* Space for future expansion */ | |
32fe5131 RD |
828 | 0,0,0,0, |
829 | pyswigobject_type__doc__, /* Documentation string */ | |
093d3ff1 RD |
830 | #if PY_VERSION_HEX >= 0x02000000 |
831 | 0, /* tp_traverse */ | |
832 | 0, /* tp_clear */ | |
833 | #endif | |
834 | #if PY_VERSION_HEX >= 0x02010000 | |
835 | 0, /* tp_richcompare */ | |
836 | 0, /* tp_weaklistoffset */ | |
837 | #endif | |
838 | #if PY_VERSION_HEX >= 0x02020000 | |
839 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
840 | #endif | |
841 | #if PY_VERSION_HEX >= 0x02030000 | |
842 | 0, /* tp_del */ | |
843 | #endif | |
844 | #ifdef COUNT_ALLOCS | |
845 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
846 | #endif | |
847 | }; | |
32fe5131 RD |
848 | #if !defined(__cplusplus) |
849 | pyswigobject_type = tmp; | |
093d3ff1 | 850 | type_init = 1; |
c32bde28 | 851 | } |
32fe5131 RD |
852 | #endif |
853 | return &pyswigobject_type; | |
c32bde28 RD |
854 | } |
855 | ||
093d3ff1 RD |
856 | SWIGRUNTIME PyObject * |
857 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
994141e6 | 858 | { |
32fe5131 RD |
859 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type()); |
860 | if (self) { | |
861 | self->ptr = ptr; | |
862 | self->desc = desc; | |
863 | } | |
093d3ff1 | 864 | return (PyObject *)self; |
c32bde28 RD |
865 | } |
866 | ||
093d3ff1 RD |
867 | SWIGRUNTIMEINLINE void * |
868 | PySwigObject_AsVoidPtr(PyObject *self) | |
869 | { | |
870 | return ((PySwigObject *)self)->ptr; | |
871 | } | |
c32bde28 | 872 | |
093d3ff1 RD |
873 | SWIGRUNTIMEINLINE const char * |
874 | PySwigObject_GetDesc(PyObject *self) | |
c32bde28 | 875 | { |
093d3ff1 RD |
876 | return ((PySwigObject *)self)->desc; |
877 | } | |
878 | ||
879 | SWIGRUNTIMEINLINE int | |
880 | PySwigObject_Check(PyObject *op) { | |
32fe5131 | 881 | return ((op)->ob_type == PySwigObject_type()) |
093d3ff1 | 882 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); |
994141e6 RD |
883 | } |
884 | ||
093d3ff1 RD |
885 | /* ----------------------------------------------------------------------------- |
886 | * Implements a simple Swig Packed type, and use it instead of string | |
887 | * ----------------------------------------------------------------------------- */ | |
888 | ||
889 | typedef struct { | |
890 | PyObject_HEAD | |
891 | void *pack; | |
892 | const char *desc; | |
893 | size_t size; | |
894 | } PySwigPacked; | |
994141e6 | 895 | |
093d3ff1 RD |
896 | SWIGRUNTIME int |
897 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
994141e6 | 898 | { |
093d3ff1 | 899 | char result[SWIG_BUFFER_SIZE]; |
32fe5131 | 900 | flags = flags; |
093d3ff1 RD |
901 | fputs("<Swig Packed ", fp); |
902 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
903 | fputs("at ", fp); | |
904 | fputs(result, fp); | |
c32bde28 | 905 | } |
093d3ff1 RD |
906 | fputs(v->desc,fp); |
907 | fputs(">", fp); | |
908 | return 0; | |
994141e6 | 909 | } |
c32bde28 | 910 | |
093d3ff1 RD |
911 | SWIGRUNTIME PyObject * |
912 | PySwigPacked_repr(PySwigPacked *v) | |
15afbcd0 | 913 | { |
093d3ff1 RD |
914 | char result[SWIG_BUFFER_SIZE]; |
915 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
916 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
917 | } else { | |
918 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
919 | } | |
15afbcd0 RD |
920 | } |
921 | ||
093d3ff1 RD |
922 | SWIGRUNTIME PyObject * |
923 | PySwigPacked_str(PySwigPacked *v) | |
924 | { | |
925 | char result[SWIG_BUFFER_SIZE]; | |
926 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
927 | return PyString_FromFormat("%s%s", result, v->desc); | |
928 | } else { | |
32fe5131 | 929 | return PyString_FromString(v->desc); |
093d3ff1 RD |
930 | } |
931 | } | |
15afbcd0 | 932 | |
093d3ff1 RD |
933 | SWIGRUNTIME int |
934 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
935 | { | |
936 | int c = strcmp(v->desc, w->desc); | |
937 | if (c) { | |
32fe5131 | 938 | return (c > 0) ? 1 : -1; |
093d3ff1 RD |
939 | } else { |
940 | size_t i = v->size; | |
941 | size_t j = w->size; | |
32fe5131 | 942 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); |
093d3ff1 | 943 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); |
7e63a440 | 944 | } |
093d3ff1 | 945 | } |
d14a1e28 | 946 | |
093d3ff1 RD |
947 | SWIGRUNTIME void |
948 | PySwigPacked_dealloc(PySwigPacked *self) | |
949 | { | |
950 | free(self->pack); | |
32fe5131 | 951 | PyObject_Del(self); |
093d3ff1 | 952 | } |
d14a1e28 | 953 | |
093d3ff1 | 954 | SWIGRUNTIME PyTypeObject* |
32fe5131 RD |
955 | PySwigPacked_type(void) { |
956 | static char pyswigpacked_type__doc__[] = | |
093d3ff1 | 957 | "Swig object carries a C/C++ instance pointer"; |
32fe5131 RD |
958 | static PyTypeObject pyswigpacked_type |
959 | #if !defined(__cplusplus) | |
960 | ; | |
961 | static int type_init = 0; | |
093d3ff1 | 962 | if (!type_init) { |
32fe5131 RD |
963 | PyTypeObject tmp |
964 | #endif | |
965 | = { | |
093d3ff1 RD |
966 | PyObject_HEAD_INIT(&PyType_Type) |
967 | 0, /*ob_size*/ | |
32fe5131 | 968 | (char *)"PySwigPacked", /*tp_name*/ |
093d3ff1 RD |
969 | sizeof(PySwigPacked), /*tp_basicsize*/ |
970 | 0, /*tp_itemsize*/ | |
971 | /* methods */ | |
972 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
973 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
974 | (getattrfunc)0, /*tp_getattr*/ | |
975 | (setattrfunc)0, /*tp_setattr*/ | |
976 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
977 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
978 | 0, /*tp_as_number*/ | |
979 | 0, /*tp_as_sequence*/ | |
980 | 0, /*tp_as_mapping*/ | |
981 | (hashfunc)0, /*tp_hash*/ | |
982 | (ternaryfunc)0, /*tp_call*/ | |
983 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
984 | /* Space for future expansion */ | |
32fe5131 RD |
985 | 0,0,0,0, |
986 | pyswigpacked_type__doc__, /* Documentation string */ | |
093d3ff1 RD |
987 | #if PY_VERSION_HEX >= 0x02000000 |
988 | 0, /* tp_traverse */ | |
989 | 0, /* tp_clear */ | |
990 | #endif | |
991 | #if PY_VERSION_HEX >= 0x02010000 | |
992 | 0, /* tp_richcompare */ | |
993 | 0, /* tp_weaklistoffset */ | |
994 | #endif | |
995 | #if PY_VERSION_HEX >= 0x02020000 | |
996 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
997 | #endif | |
998 | #if PY_VERSION_HEX >= 0x02030000 | |
999 | 0, /* tp_del */ | |
1000 | #endif | |
1001 | #ifdef COUNT_ALLOCS | |
1002 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
1003 | #endif | |
1004 | }; | |
32fe5131 RD |
1005 | #if !defined(__cplusplus) |
1006 | pyswigpacked_type = tmp; | |
093d3ff1 RD |
1007 | type_init = 1; |
1008 | } | |
32fe5131 RD |
1009 | #endif |
1010 | return &pyswigpacked_type; | |
093d3ff1 | 1011 | } |
39f61e25 | 1012 | |
093d3ff1 RD |
1013 | SWIGRUNTIME PyObject * |
1014 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
15afbcd0 | 1015 | { |
32fe5131 | 1016 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
093d3ff1 RD |
1017 | if (self == NULL) { |
1018 | return NULL; | |
1019 | } else { | |
1020 | void *pack = malloc(size); | |
32fe5131 RD |
1021 | if (pack) { |
1022 | memcpy(pack, ptr, size); | |
1023 | self->pack = pack; | |
1024 | self->desc = desc; | |
1025 | self->size = size; | |
1026 | return (PyObject *) self; | |
1027 | } | |
1028 | return NULL; | |
093d3ff1 | 1029 | } |
15afbcd0 RD |
1030 | } |
1031 | ||
093d3ff1 RD |
1032 | SWIGRUNTIMEINLINE const char * |
1033 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
1034 | { | |
1035 | PySwigPacked *self = (PySwigPacked *)obj; | |
1036 | if (self->size != size) return 0; | |
1037 | memcpy(ptr, self->pack, size); | |
1038 | return self->desc; | |
1039 | } | |
15afbcd0 | 1040 | |
093d3ff1 RD |
1041 | SWIGRUNTIMEINLINE const char * |
1042 | PySwigPacked_GetDesc(PyObject *self) | |
15afbcd0 | 1043 | { |
093d3ff1 RD |
1044 | return ((PySwigPacked *)self)->desc; |
1045 | } | |
1046 | ||
1047 | SWIGRUNTIMEINLINE int | |
1048 | PySwigPacked_Check(PyObject *op) { | |
32fe5131 | 1049 | return ((op)->ob_type == PySwigPacked_type()) |
093d3ff1 RD |
1050 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); |
1051 | } | |
1052 | ||
1053 | #else | |
1054 | /* ----------------------------------------------------------------------------- | |
1055 | * Use the old Python PyCObject instead of PySwigObject | |
1056 | * ----------------------------------------------------------------------------- */ | |
1057 | ||
1058 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1059 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1060 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1061 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1062 | ||
1063 | #endif | |
1064 | ||
1065 | #endif | |
1066 | ||
1067 | /* ----------------------------------------------------------------------------- | |
1068 | * errors manipulation | |
1069 | * ----------------------------------------------------------------------------- */ | |
1070 | ||
1071 | SWIGRUNTIME void | |
1072 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1073 | { | |
1074 | if (type) { | |
1075 | #if defined(SWIG_COBJECT_TYPES) | |
32fe5131 | 1076 | if (obj && PySwigObject_Check(obj)) { |
093d3ff1 RD |
1077 | const char *otype = (const char *) PySwigObject_GetDesc(obj); |
1078 | if (otype) { | |
1079 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1080 | type, otype); | |
1081 | return; | |
1082 | } | |
1083 | } else | |
1084 | #endif | |
1085 | { | |
1086 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1087 | if (otype) { | |
1088 | PyObject *str = PyObject_Str(obj); | |
1089 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1090 | if (cstr) { | |
1091 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1092 | type, otype, cstr); | |
1093 | } else { | |
1094 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1095 | type, otype); | |
1096 | } | |
32fe5131 | 1097 | Py_XDECREF(str); |
093d3ff1 RD |
1098 | return; |
1099 | } | |
1100 | } | |
1101 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1102 | } else { | |
1103 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
15afbcd0 | 1104 | } |
c32bde28 RD |
1105 | } |
1106 | ||
093d3ff1 RD |
1107 | SWIGRUNTIMEINLINE void |
1108 | SWIG_Python_NullRef(const char *type) | |
c32bde28 | 1109 | { |
093d3ff1 RD |
1110 | if (type) { |
1111 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1112 | } else { | |
1113 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1114 | } | |
15afbcd0 RD |
1115 | } |
1116 | ||
093d3ff1 RD |
1117 | SWIGRUNTIME int |
1118 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1119 | { | |
1120 | if (PyErr_Occurred()) { | |
1121 | PyObject *type = 0; | |
1122 | PyObject *value = 0; | |
1123 | PyObject *traceback = 0; | |
1124 | PyErr_Fetch(&type, &value, &traceback); | |
1125 | if (value) { | |
1126 | PyObject *old_str = PyObject_Str(value); | |
1127 | Py_XINCREF(type); | |
1128 | PyErr_Clear(); | |
1129 | if (infront) { | |
1130 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1131 | } else { | |
1132 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1133 | } | |
1134 | Py_DECREF(old_str); | |
1135 | } | |
1136 | return 1; | |
1137 | } else { | |
1138 | return 0; | |
1139 | } | |
1140 | } | |
15afbcd0 | 1141 | |
093d3ff1 RD |
1142 | SWIGRUNTIME int |
1143 | SWIG_Python_ArgFail(int argnum) | |
994141e6 | 1144 | { |
093d3ff1 RD |
1145 | if (PyErr_Occurred()) { |
1146 | /* add information about failing argument */ | |
1147 | char mesg[256]; | |
32fe5131 | 1148 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); |
093d3ff1 RD |
1149 | return SWIG_Python_AddErrMesg(mesg, 1); |
1150 | } else { | |
1151 | return 0; | |
1152 | } | |
994141e6 RD |
1153 | } |
1154 | ||
1155 | ||
093d3ff1 RD |
1156 | /* ----------------------------------------------------------------------------- |
1157 | * pointers/data manipulation | |
1158 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 1159 | |
093d3ff1 RD |
1160 | /* Convert a pointer value */ |
1161 | SWIGRUNTIME int | |
1162 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
32fe5131 | 1163 | swig_cast_info *tc; |
093d3ff1 RD |
1164 | const char *c = 0; |
1165 | static PyObject *SWIG_this = 0; | |
1166 | int newref = 0; | |
1167 | PyObject *pyobj = 0; | |
1168 | void *vptr; | |
1169 | ||
1170 | if (!obj) return 0; | |
1171 | if (obj == Py_None) { | |
1172 | *ptr = 0; | |
1173 | return 0; | |
1174 | } | |
d14a1e28 | 1175 | |
093d3ff1 RD |
1176 | #ifdef SWIG_COBJECT_TYPES |
1177 | if (!(PySwigObject_Check(obj))) { | |
1178 | if (!SWIG_this) | |
1179 | SWIG_this = PyString_FromString("this"); | |
1180 | pyobj = obj; | |
1181 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1182 | newref = 1; | |
1183 | if (!obj) goto type_error; | |
1184 | if (!PySwigObject_Check(obj)) { | |
1185 | Py_DECREF(obj); | |
1186 | goto type_error; | |
1187 | } | |
1188 | } | |
1189 | vptr = PySwigObject_AsVoidPtr(obj); | |
1190 | c = (const char *) PySwigObject_GetDesc(obj); | |
1191 | if (newref) { Py_DECREF(obj); } | |
1192 | goto type_check; | |
d14a1e28 | 1193 | #else |
093d3ff1 RD |
1194 | if (!(PyString_Check(obj))) { |
1195 | if (!SWIG_this) | |
1196 | SWIG_this = PyString_FromString("this"); | |
1197 | pyobj = obj; | |
1198 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1199 | newref = 1; | |
1200 | if (!obj) goto type_error; | |
1201 | if (!PyString_Check(obj)) { | |
1202 | Py_DECREF(obj); | |
1203 | goto type_error; | |
1204 | } | |
1205 | } | |
32fe5131 | 1206 | c = PyString_AsString(obj); |
093d3ff1 RD |
1207 | /* Pointer values must start with leading underscore */ |
1208 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1209 | if (newref) { Py_DECREF(obj); } | |
1210 | if (!c) goto type_error; | |
d14a1e28 | 1211 | #endif |
d14a1e28 | 1212 | |
093d3ff1 | 1213 | type_check: |
093d3ff1 RD |
1214 | if (ty) { |
1215 | tc = SWIG_TypeCheck(c,ty); | |
1216 | if (!tc) goto type_error; | |
1217 | *ptr = SWIG_TypeCast(tc,vptr); | |
1218 | } else { | |
1219 | *ptr = vptr; | |
1220 | } | |
093d3ff1 RD |
1221 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { |
1222 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1223 | } | |
1224 | return 0; | |
1225 | ||
1226 | type_error: | |
1227 | PyErr_Clear(); | |
1228 | if (pyobj && !obj) { | |
1229 | obj = pyobj; | |
1230 | if (PyCFunction_Check(obj)) { | |
1231 | /* here we get the method pointer for callbacks */ | |
1232 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1233 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1234 | if (c) { | |
32fe5131 | 1235 | c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0; |
093d3ff1 RD |
1236 | if (!c) goto type_error; |
1237 | goto type_check; | |
1238 | } | |
1239 | } | |
1240 | } | |
1241 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1242 | if (ty) { | |
1243 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1244 | } else { | |
1245 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
d14a1e28 | 1246 | } |
093d3ff1 RD |
1247 | } |
1248 | return -1; | |
1249 | } | |
d14a1e28 | 1250 | |
093d3ff1 RD |
1251 | /* Convert a pointer value, signal an exception on a type mismatch */ |
1252 | SWIGRUNTIME void * | |
1253 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1254 | void *result; | |
1255 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1256 | PyErr_Clear(); | |
1257 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1258 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1259 | SWIG_Python_ArgFail(argnum); | |
d14a1e28 | 1260 | } |
093d3ff1 RD |
1261 | } |
1262 | return result; | |
1263 | } | |
d14a1e28 | 1264 | |
093d3ff1 RD |
1265 | /* Convert a packed value value */ |
1266 | SWIGRUNTIME int | |
1267 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
32fe5131 | 1268 | swig_cast_info *tc; |
093d3ff1 | 1269 | const char *c = 0; |
d14a1e28 | 1270 | |
093d3ff1 RD |
1271 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) |
1272 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1273 | #else | |
1274 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
32fe5131 | 1275 | c = PyString_AsString(obj); |
093d3ff1 RD |
1276 | /* Pointer values must start with leading underscore */ |
1277 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1278 | #endif | |
1279 | if (!c) goto type_error; | |
1280 | if (ty) { | |
1281 | tc = SWIG_TypeCheck(c,ty); | |
1282 | if (!tc) goto type_error; | |
1283 | } | |
1284 | return 0; | |
d14a1e28 | 1285 | |
093d3ff1 RD |
1286 | type_error: |
1287 | PyErr_Clear(); | |
1288 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1289 | if (ty) { | |
1290 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1291 | } else { | |
1292 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1293 | } | |
1294 | } | |
1295 | return -1; | |
1296 | } | |
1297 | ||
1298 | /* Create a new array object */ | |
1299 | SWIGRUNTIME PyObject * | |
1300 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1301 | PyObject *robj = 0; | |
32fe5131 RD |
1302 | if (!type) { |
1303 | if (!PyErr_Occurred()) { | |
1304 | PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj"); | |
1305 | } | |
1306 | return robj; | |
1307 | } | |
093d3ff1 RD |
1308 | if (!ptr) { |
1309 | Py_INCREF(Py_None); | |
1310 | return Py_None; | |
1311 | } | |
1312 | #ifdef SWIG_COBJECT_TYPES | |
1313 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1314 | #else | |
1315 | { | |
1316 | char result[SWIG_BUFFER_SIZE]; | |
1317 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1318 | PyString_FromString(result) : 0; | |
1319 | } | |
1320 | #endif | |
1321 | if (!robj || (robj == Py_None)) return robj; | |
1322 | if (type->clientdata) { | |
1323 | PyObject *inst; | |
1324 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1325 | Py_DECREF(robj); | |
1326 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1327 | Py_DECREF(args); | |
1328 | if (inst) { | |
1329 | if (own) { | |
1330 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1331 | } | |
1332 | robj = inst; | |
1333 | } | |
1334 | } | |
1335 | return robj; | |
1336 | } | |
d14a1e28 | 1337 | |
093d3ff1 RD |
1338 | SWIGRUNTIME PyObject * |
1339 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1340 | PyObject *robj = 0; | |
1341 | if (!ptr) { | |
1342 | Py_INCREF(Py_None); | |
1343 | return Py_None; | |
1344 | } | |
1345 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1346 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1347 | #else | |
1348 | { | |
1349 | char result[SWIG_BUFFER_SIZE]; | |
1350 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1351 | PyString_FromString(result) : 0; | |
1352 | } | |
d14a1e28 | 1353 | #endif |
093d3ff1 RD |
1354 | return robj; |
1355 | } | |
d14a1e28 | 1356 | |
093d3ff1 RD |
1357 | /* -----------------------------------------------------------------------------* |
1358 | * Get type list | |
1359 | * -----------------------------------------------------------------------------*/ | |
d14a1e28 | 1360 | |
093d3ff1 RD |
1361 | #ifdef SWIG_LINK_RUNTIME |
1362 | void *SWIG_ReturnGlobalTypeList(void *); | |
1363 | #endif | |
d14a1e28 | 1364 | |
32fe5131 RD |
1365 | SWIGRUNTIME swig_module_info * |
1366 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
1367 | static void *type_pointer = (void *)0; |
1368 | /* first check if module already created */ | |
1369 | if (!type_pointer) { | |
1370 | #ifdef SWIG_LINK_RUNTIME | |
1371 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1372 | #else | |
1373 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1374 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1375 | if (PyErr_Occurred()) { | |
1376 | PyErr_Clear(); | |
1377 | type_pointer = (void *)0; | |
1378 | } | |
093d3ff1 | 1379 | #endif |
32fe5131 RD |
1380 | } |
1381 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 1382 | } |
d14a1e28 | 1383 | |
32fe5131 RD |
1384 | #if PY_MAJOR_VERSION < 2 |
1385 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1386 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
1387 | SWIGINTERN int | |
1388 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
1389 | { | |
1390 | PyObject *dict; | |
1391 | if (!PyModule_Check(m)) { | |
1392 | PyErr_SetString(PyExc_TypeError, | |
1393 | "PyModule_AddObject() needs module as first arg"); | |
1394 | return -1; | |
1395 | } | |
1396 | if (!o) { | |
1397 | PyErr_SetString(PyExc_TypeError, | |
1398 | "PyModule_AddObject() needs non-NULL value"); | |
1399 | return -1; | |
1400 | } | |
1401 | ||
1402 | dict = PyModule_GetDict(m); | |
1403 | if (dict == NULL) { | |
1404 | /* Internal error -- modules must have a dict! */ | |
1405 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
1406 | PyModule_GetName(m)); | |
1407 | return -1; | |
1408 | } | |
1409 | if (PyDict_SetItemString(dict, name, o)) | |
1410 | return -1; | |
1411 | Py_DECREF(o); | |
1412 | return 0; | |
093d3ff1 | 1413 | } |
32fe5131 | 1414 | #endif |
d14a1e28 | 1415 | |
32fe5131 RD |
1416 | SWIGRUNTIME void |
1417 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
1418 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
1419 | ||
1420 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1421 | swig_empty_runtime_method_table); | |
1422 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL); | |
1423 | if (pointer && module) { | |
1424 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1425 | } | |
1426 | } | |
d14a1e28 | 1427 | |
093d3ff1 RD |
1428 | #ifdef __cplusplus |
1429 | } | |
1430 | #endif | |
d14a1e28 | 1431 | |
d14a1e28 | 1432 | |
093d3ff1 | 1433 | /* -------- TYPES TABLE (BEGIN) -------- */ |
d14a1e28 | 1434 | |
32fe5131 RD |
1435 | #define SWIGTYPE_p_char swig_types[0] |
1436 | #define SWIGTYPE_p_form_ops_t swig_types[1] | |
1437 | #define SWIGTYPE_p_int swig_types[2] | |
1438 | #define SWIGTYPE_p_unsigned_char swig_types[3] | |
1439 | #define SWIGTYPE_p_unsigned_int swig_types[4] | |
1440 | #define SWIGTYPE_p_unsigned_long swig_types[5] | |
1441 | #define SWIGTYPE_p_void swig_types[6] | |
1442 | #define SWIGTYPE_p_wxANIHandler swig_types[7] | |
1443 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[8] | |
1444 | #define SWIGTYPE_p_wxActivateEvent swig_types[9] | |
1445 | #define SWIGTYPE_p_wxArrayString swig_types[10] | |
1446 | #define SWIGTYPE_p_wxBMPHandler swig_types[11] | |
1447 | #define SWIGTYPE_p_wxBitmap swig_types[12] | |
1448 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[13] | |
1449 | #define SWIGTYPE_p_wxBoxSizer swig_types[14] | |
1450 | #define SWIGTYPE_p_wxBusyCursor swig_types[15] | |
1451 | #define SWIGTYPE_p_wxBusyInfo swig_types[16] | |
1452 | #define SWIGTYPE_p_wxCURHandler swig_types[17] | |
1453 | #define SWIGTYPE_p_wxCaret swig_types[18] | |
1454 | #define SWIGTYPE_p_wxChar swig_types[19] | |
1455 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[20] | |
1456 | #define SWIGTYPE_p_wxClipboard swig_types[21] | |
1457 | #define SWIGTYPE_p_wxClipboardLocker swig_types[22] | |
1458 | #define SWIGTYPE_p_wxCloseEvent swig_types[23] | |
1459 | #define SWIGTYPE_p_wxColour swig_types[24] | |
1460 | #define SWIGTYPE_p_wxCommandEvent swig_types[25] | |
1461 | #define SWIGTYPE_p_wxConfig swig_types[26] | |
1462 | #define SWIGTYPE_p_wxConfigBase swig_types[27] | |
1463 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[28] | |
1464 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[29] | |
1465 | #define SWIGTYPE_p_wxControl swig_types[30] | |
1466 | #define SWIGTYPE_p_wxControlWithItems swig_types[31] | |
1467 | #define SWIGTYPE_p_wxCursor swig_types[32] | |
1468 | #define SWIGTYPE_p_wxCustomDataObject swig_types[33] | |
1469 | #define SWIGTYPE_p_wxDC swig_types[34] | |
1470 | #define SWIGTYPE_p_wxDataFormat swig_types[35] | |
1471 | #define SWIGTYPE_p_wxDataObject swig_types[36] | |
1472 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[37] | |
1473 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[38] | |
1474 | #define SWIGTYPE_p_wxDateEvent swig_types[39] | |
1475 | #define SWIGTYPE_p_wxDateSpan swig_types[40] | |
1476 | #define SWIGTYPE_p_wxDateTime swig_types[41] | |
1477 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[42] | |
1478 | #define SWIGTYPE_p_wxDisplay swig_types[43] | |
1479 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44] | |
1480 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[45] | |
1481 | #define SWIGTYPE_p_wxDuplexMode swig_types[46] | |
1482 | #define SWIGTYPE_p_wxEraseEvent swig_types[47] | |
1483 | #define SWIGTYPE_p_wxEvent swig_types[48] | |
1484 | #define SWIGTYPE_p_wxEvtHandler swig_types[49] | |
1485 | #define SWIGTYPE_p_wxFSFile swig_types[50] | |
1486 | #define SWIGTYPE_p_wxFileConfig swig_types[51] | |
1487 | #define SWIGTYPE_p_wxFileDataObject swig_types[52] | |
1488 | #define SWIGTYPE_p_wxFileHistory swig_types[53] | |
1489 | #define SWIGTYPE_p_wxFileSystem swig_types[54] | |
1490 | #define SWIGTYPE_p_wxFileType swig_types[55] | |
1491 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[56] | |
1492 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[57] | |
1493 | #define SWIGTYPE_p_wxFocusEvent swig_types[58] | |
1494 | #define SWIGTYPE_p_wxFont swig_types[59] | |
1495 | #define SWIGTYPE_p_wxFrame swig_types[60] | |
1496 | #define SWIGTYPE_p_wxGBSizerItem swig_types[61] | |
1497 | #define SWIGTYPE_p_wxGIFHandler swig_types[62] | |
1498 | #define SWIGTYPE_p_wxGridBagSizer swig_types[63] | |
1499 | #define SWIGTYPE_p_wxGridSizer swig_types[64] | |
1500 | #define SWIGTYPE_p_wxICOHandler swig_types[65] | |
1501 | #define SWIGTYPE_p_wxIcon swig_types[66] | |
1502 | #define SWIGTYPE_p_wxIconizeEvent swig_types[67] | |
1503 | #define SWIGTYPE_p_wxIdleEvent swig_types[68] | |
1504 | #define SWIGTYPE_p_wxImage swig_types[69] | |
1505 | #define SWIGTYPE_p_wxImageHandler swig_types[70] | |
1506 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[71] | |
1507 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[72] | |
1508 | #define SWIGTYPE_p_wxJPEGHandler swig_types[73] | |
1509 | #define SWIGTYPE_p_wxJoystick swig_types[74] | |
1510 | #define SWIGTYPE_p_wxJoystickEvent swig_types[75] | |
1511 | #define SWIGTYPE_p_wxKeyEvent swig_types[76] | |
1512 | #define SWIGTYPE_p_wxKillError swig_types[77] | |
1513 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[78] | |
1514 | #define SWIGTYPE_p_wxLog swig_types[79] | |
1515 | #define SWIGTYPE_p_wxLogBuffer swig_types[80] | |
1516 | #define SWIGTYPE_p_wxLogChain swig_types[81] | |
1517 | #define SWIGTYPE_p_wxLogGui swig_types[82] | |
1518 | #define SWIGTYPE_p_wxLogNull swig_types[83] | |
1519 | #define SWIGTYPE_p_wxLogStderr swig_types[84] | |
1520 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[85] | |
1521 | #define SWIGTYPE_p_wxLogWindow swig_types[86] | |
1522 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[87] | |
1523 | #define SWIGTYPE_p_wxMemorySize swig_types[88] | |
1524 | #define SWIGTYPE_p_wxMenu swig_types[89] | |
1525 | #define SWIGTYPE_p_wxMenuBar swig_types[90] | |
1526 | #define SWIGTYPE_p_wxMenuEvent swig_types[91] | |
1527 | #define SWIGTYPE_p_wxMenuItem swig_types[92] | |
1528 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[93] | |
1529 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[94] | |
1530 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[95] | |
1531 | #define SWIGTYPE_p_wxMouseEvent swig_types[96] | |
1532 | #define SWIGTYPE_p_wxMouseState swig_types[97] | |
1533 | #define SWIGTYPE_p_wxMoveEvent swig_types[98] | |
1534 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[99] | |
1535 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[100] | |
1536 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[101] | |
1537 | #define SWIGTYPE_p_wxNotifyEvent swig_types[102] | |
1538 | #define SWIGTYPE_p_wxObject swig_types[103] | |
1539 | #define SWIGTYPE_p_wxOutputStream swig_types[104] | |
1540 | #define SWIGTYPE_p_wxPCXHandler swig_types[105] | |
1541 | #define SWIGTYPE_p_wxPNGHandler swig_types[106] | |
1542 | #define SWIGTYPE_p_wxPNMHandler swig_types[107] | |
1543 | #define SWIGTYPE_p_wxPaintEvent swig_types[108] | |
1544 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[109] | |
1545 | #define SWIGTYPE_p_wxPaperSize swig_types[110] | |
1546 | #define SWIGTYPE_p_wxPoint swig_types[111] | |
1547 | #define SWIGTYPE_p_wxProcessEvent swig_types[112] | |
1548 | #define SWIGTYPE_p_wxPyApp swig_types[113] | |
1549 | #define SWIGTYPE_p_wxPyArtProvider swig_types[114] | |
1550 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[115] | |
1551 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[116] | |
1552 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[117] | |
1553 | #define SWIGTYPE_p_wxPyDropSource swig_types[118] | |
1554 | #define SWIGTYPE_p_wxPyDropTarget swig_types[119] | |
1555 | #define SWIGTYPE_p_wxPyEvent swig_types[120] | |
1556 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[121] | |
1557 | #define SWIGTYPE_p_wxPyImageHandler swig_types[122] | |
1558 | #define SWIGTYPE_p_wxPyLog swig_types[123] | |
1559 | #define SWIGTYPE_p_wxPyProcess swig_types[124] | |
1560 | #define SWIGTYPE_p_wxPySizer swig_types[125] | |
1561 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[126] | |
1562 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[127] | |
1563 | #define SWIGTYPE_p_wxPyTimer swig_types[128] | |
1564 | #define SWIGTYPE_p_wxPyTipProvider swig_types[129] | |
1565 | #define SWIGTYPE_p_wxPyValidator swig_types[130] | |
1566 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[131] | |
1567 | #define SWIGTYPE_p_wxRect swig_types[132] | |
1568 | #define SWIGTYPE_p_wxScrollEvent swig_types[133] | |
1569 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[134] | |
1570 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[135] | |
1571 | #define SWIGTYPE_p_wxShowEvent swig_types[136] | |
1572 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[137] | |
1573 | #define SWIGTYPE_p_wxSize swig_types[138] | |
1574 | #define SWIGTYPE_p_wxSizeEvent swig_types[139] | |
1575 | #define SWIGTYPE_p_wxSizer swig_types[140] | |
1576 | #define SWIGTYPE_p_wxSizerItem swig_types[141] | |
1577 | #define SWIGTYPE_p_wxSound swig_types[142] | |
1578 | #define SWIGTYPE_p_wxStandardPaths swig_types[143] | |
1579 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[144] | |
1580 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[145] | |
1581 | #define SWIGTYPE_p_wxStopWatch swig_types[146] | |
1582 | #define SWIGTYPE_p_wxString swig_types[147] | |
1583 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[148] | |
1584 | #define SWIGTYPE_p_wxSystemOptions swig_types[149] | |
1585 | #define SWIGTYPE_p_wxSystemSettings swig_types[150] | |
1586 | #define SWIGTYPE_p_wxTIFFHandler swig_types[151] | |
1587 | #define SWIGTYPE_p_wxTextCtrl swig_types[152] | |
1588 | #define SWIGTYPE_p_wxTextDataObject swig_types[153] | |
1589 | #define SWIGTYPE_p_wxTimeSpan swig_types[154] | |
1590 | #define SWIGTYPE_p_wxTimer swig_types[155] | |
1591 | #define SWIGTYPE_p_wxTimerEvent swig_types[156] | |
1592 | #define SWIGTYPE_p_wxTimerRunner swig_types[157] | |
1593 | #define SWIGTYPE_p_wxTipProvider swig_types[158] | |
1594 | #define SWIGTYPE_p_wxToolTip swig_types[159] | |
1595 | #define SWIGTYPE_p_wxURLDataObject swig_types[160] | |
1596 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[161] | |
1597 | #define SWIGTYPE_p_wxValidator swig_types[162] | |
1598 | #define SWIGTYPE_p_wxVideoMode swig_types[163] | |
1599 | #define SWIGTYPE_p_wxWindow swig_types[164] | |
1600 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[165] | |
1601 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[166] | |
1602 | #define SWIGTYPE_p_wxWindowDisabler swig_types[167] | |
1603 | #define SWIGTYPE_p_wxXPMHandler swig_types[168] | |
1604 | #define SWIGTYPE_ptrdiff_t swig_types[169] | |
1605 | #define SWIGTYPE_std__ptrdiff_t swig_types[170] | |
1606 | #define SWIGTYPE_unsigned_int swig_types[171] | |
1607 | static swig_type_info *swig_types[173]; | |
1608 | static swig_module_info swig_module = {swig_types, 172, 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) | |
d14a1e28 | 1611 | |
093d3ff1 | 1612 | /* -------- TYPES TABLE (END) -------- */ |
d14a1e28 | 1613 | |
d14a1e28 | 1614 | |
093d3ff1 RD |
1615 | /*----------------------------------------------- |
1616 | @(target):= _misc_.so | |
1617 | ------------------------------------------------*/ | |
1618 | #define SWIG_init init_misc_ | |
d14a1e28 | 1619 | |
093d3ff1 | 1620 | #define SWIG_name "_misc_" |
4276dc52 | 1621 | |
093d3ff1 RD |
1622 | #include "wx/wxPython/wxPython.h" |
1623 | #include "wx/wxPython/pyclasses.h" | |
1624 | #include "wx/wxPython/pyistream.h" | |
689b42ee | 1625 | |
093d3ff1 | 1626 | static const wxString wxPyEmptyString(wxEmptyString); |
689b42ee RD |
1627 | |
1628 | ||
4276dc52 | 1629 | |
32fe5131 | 1630 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1631 | #define SWIG_From_int PyInt_FromLong |
1632 | /*@@*/ | |
d14a1e28 | 1633 | |
994141e6 | 1634 | |
093d3ff1 | 1635 | #include <limits.h> |
15afbcd0 RD |
1636 | |
1637 | ||
093d3ff1 RD |
1638 | SWIGINTERN int |
1639 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1640 | const char *errmsg) | |
15afbcd0 | 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); |
15afbcd0 | 1654 | } |
c32bde28 | 1655 | return 0; |
15afbcd0 | 1656 | } |
c32bde28 | 1657 | return 1; |
093d3ff1 | 1658 | } |
15afbcd0 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 { | |
7e08d4ef | 1669 | SWIG_Python_TypeError("number", obj); |
093d3ff1 RD |
1670 | } |
1671 | return 0; | |
1672 | } | |
1673 | ||
1674 | ||
1675 | #if INT_MAX != LONG_MAX | |
1676 | SWIGINTERN int | |
1677 | SWIG_AsVal_int(PyObject *obj, int *val) | |
994141e6 | 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)) { | |
32fe5131 | 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; | |
15afbcd0 RD |
1695 | } |
1696 | #else | |
32fe5131 | 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 | } |
15afbcd0 RD |
1702 | #endif |
1703 | ||
1704 | ||
32fe5131 | 1705 | SWIGINTERNINLINE int |
093d3ff1 | 1706 | SWIG_As_int(PyObject* obj) |
15afbcd0 | 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)); |
15afbcd0 | 1714 | } |
c32bde28 RD |
1715 | return v; |
1716 | } | |
1717 | ||
1718 | ||
32fe5131 | 1719 | SWIGINTERNINLINE int |
093d3ff1 | 1720 | SWIG_Check_int(PyObject* obj) |
c32bde28 | 1721 | { |
093d3ff1 | 1722 | return SWIG_AsVal_int(obj, (int*)0); |
994141e6 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 | |
32fe5131 | 1733 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1734 | #define SWIG_From_long PyInt_FromLong |
1735 | /*@@*/ | |
f78cc896 | 1736 | |
f78cc896 | 1737 | |
32fe5131 | 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 | |
32fe5131 | 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 | } | |
f78cc896 | 1782 | |
f78cc896 | 1783 | |
32fe5131 | 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 | } | |
d14a1e28 | 1796 | |
093d3ff1 | 1797 | |
32fe5131 | 1798 | SWIGINTERNINLINE int |
093d3ff1 RD |
1799 | SWIG_Check_bool(PyObject* obj) |
1800 | { | |
1801 | return SWIG_AsVal_bool(obj, (bool*)0); | |
1802 | } | |
d14a1e28 | 1803 | |
d14a1e28 | 1804 | |
7e08d4ef RD |
1805 | static PyObject* t_output_helper(PyObject* result, PyObject* obj) |
1806 | { | |
1807 | PyObject* o2; | |
1808 | PyObject* o3; | |
1809 | if (!result) { | |
1810 | result = obj; | |
1811 | } else if (result == Py_None) { | |
1812 | Py_DECREF(result); | |
1813 | result = obj; | |
1814 | } else { | |
1815 | if (!PyTuple_Check(result)) { | |
1816 | o2 = result; | |
1817 | result = PyTuple_New(1); | |
1818 | PyTuple_SET_ITEM(result, 0, o2); | |
1819 | } | |
1820 | o3 = PyTuple_New(1); | |
1821 | PyTuple_SetItem(o3, 0, obj); | |
1822 | o2 = result; | |
1823 | result = PySequence_Concat(o2, o3); | |
1824 | Py_DECREF(o2); | |
1825 | Py_DECREF(o3); | |
1826 | } | |
1827 | return result; | |
1828 | } | |
d14a1e28 RD |
1829 | |
1830 | ||
1831 | ||
943e8dfd | 1832 | wxMemorySize wxGetFreeMemory() |
093d3ff1 | 1833 | { wxPyRaiseNotImplemented(); return 0; } |
d14a1e28 RD |
1834 | |
1835 | ||
093d3ff1 RD |
1836 | SWIGINTERN int |
1837 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
1838 | { | |
1839 | long v = 0; | |
1840 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
7e08d4ef | 1841 | SWIG_Python_TypeError("unsigned number", obj); |
093d3ff1 RD |
1842 | } |
1843 | else if (val) | |
1844 | *val = (unsigned long)v; | |
1845 | return 1; | |
1846 | } | |
d14a1e28 RD |
1847 | |
1848 | ||
32fe5131 | 1849 | SWIGINTERNINLINE unsigned long |
093d3ff1 RD |
1850 | SWIG_As_unsigned_SS_long(PyObject* obj) |
1851 | { | |
1852 | unsigned long v; | |
1853 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1854 | /* | |
1855 | this is needed to make valgrind/purify happier. | |
1856 | */ | |
1857 | memset((void*)&v, 0, sizeof(unsigned long)); | |
1858 | } | |
1859 | return v; | |
1860 | } | |
d14a1e28 | 1861 | |
093d3ff1 | 1862 | |
32fe5131 | 1863 | SWIGINTERNINLINE int |
093d3ff1 RD |
1864 | SWIG_Check_unsigned_SS_long(PyObject* obj) |
1865 | { | |
1866 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
1867 | } | |
d14a1e28 | 1868 | |
d14a1e28 | 1869 | |
32fe5131 | 1870 | SWIGINTERNINLINE PyObject* |
093d3ff1 RD |
1871 | SWIG_From_unsigned_SS_long(unsigned long value) |
1872 | { | |
1873 | return (value > LONG_MAX) ? | |
1874 | PyLong_FromUnsignedLong(value) | |
32fe5131 | 1875 | : PyInt_FromLong(static_cast<long >(value)); |
093d3ff1 | 1876 | } |
d14a1e28 RD |
1877 | |
1878 | ||
73c8ef6a RD |
1879 | void* wxGetXDisplay() |
1880 | { | |
1881 | #ifdef __WXGTK__ | |
1882 | return wxGetDisplay(); | |
1883 | #else | |
1884 | return NULL; | |
1885 | #endif | |
1886 | } | |
1887 | ||
1888 | ||
32fe5131 RD |
1889 | wxWindow* FindWindowAtPointer() { |
1890 | wxPoint unused; | |
1891 | return wxFindWindowAtPointer(unused); | |
1892 | } | |
1893 | ||
1894 | ||
093d3ff1 | 1895 | void wxWakeUpMainThread() {} |
d14a1e28 RD |
1896 | |
1897 | ||
093d3ff1 RD |
1898 | bool wxThread_IsMain() { |
1899 | #ifdef WXP_WITH_THREAD | |
1900 | return wxThread::IsMain(); | |
1901 | #else | |
1902 | return true; | |
1903 | #endif | |
d14a1e28 | 1904 | } |
093d3ff1 | 1905 | |
8e738329 RD |
1906 | static void wxCaret_Destroy(wxCaret *self){ |
1907 | delete self; | |
1908 | } | |
d14a1e28 | 1909 | |
093d3ff1 RD |
1910 | #include <wx/snglinst.h> |
1911 | ||
1912 | ||
68350608 RD |
1913 | #ifdef __WXMSW__ |
1914 | #include <wx/msw/private.h> | |
1915 | #include <wx/dynload.h> | |
1916 | #endif | |
1917 | ||
1918 | ||
1919 | ||
1920 | bool wxDrawWindowOnDC(wxWindow* window, const wxDC& dc | |
1921 | #if 0 | |
1922 | , int method | |
1923 | #endif | |
1924 | ) | |
1925 | { | |
1926 | #ifdef __WXMSW__ | |
1927 | #if 0 | |
1928 | switch (method) | |
1929 | { | |
1930 | case 1: | |
1931 | // This one only partially works. Appears to be an undocumented | |
1932 | // "standard" convention that not all widgets adhear to. For | |
1933 | // example, for some widgets backgrounds or non-client areas may | |
1934 | // not be painted. | |
1935 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
1936 | break; | |
1937 | ||
1938 | case 2: | |
1939 | #endif | |
1940 | // This one works much better, nearly all widgets and their | |
1941 | // children are captured correctly[**]. Prior to the big | |
1942 | // background erase changes that Vadim did in 2004-2005 this | |
1943 | // method failed badly on XP with Themes activated, most native | |
1944 | // widgets draw only partially, if at all. Without themes it | |
1945 | // worked just like on Win2k. After those changes this method | |
1946 | // works very well. | |
1947 | // | |
1948 | // ** For example the radio buttons in a wxRadioBox are not its | |
1949 | // children by default, but you can capture it via the panel | |
1950 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
1951 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
1952 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
1953 | PRF_ERASEBKGND | PRF_OWNED ); | |
1954 | return true; | |
1955 | #if 0 | |
1956 | break; | |
1957 | ||
1958 | case 3: | |
1959 | // This one is only defined in the latest SDK and is only | |
1960 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
1961 | // so I expect that it will work similar to the above. Since it | |
1962 | // is avaialble only on XP, it can't be compiled like this and | |
1963 | // will have to be loaded dynamically. | |
1964 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
1965 | ||
1966 | // fall through | |
1967 | ||
1968 | case 4: | |
1969 | // Use PrintWindow if available, or fallback to WM_PRINT | |
1970 | // otherwise. Unfortunately using PrintWindow is even worse than | |
1971 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
1972 | // at all, with or without Themes. | |
1973 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
1974 | static bool s_triedToLoad = false; | |
1975 | static PrintWindow_t pfnPrintWindow = NULL; | |
1976 | if ( !s_triedToLoad ) | |
1977 | { | |
1978 | ||
1979 | s_triedToLoad = true; | |
1980 | wxDynamicLibrary dllUser32(_T("user32.dll")); | |
1981 | if ( dllUser32.IsLoaded() ) | |
1982 | { | |
1983 | wxLogNull nolog; // Don't report errors here | |
1984 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
1985 | } | |
1986 | } | |
1987 | if (pfnPrintWindow) | |
1988 | { | |
1989 | //printf("Using PrintWindow\n"); | |
1990 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
1991 | } | |
1992 | else | |
1993 | { | |
1994 | //printf("Using WM_PRINT\n"); | |
1995 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
1996 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
1997 | PRF_ERASEBKGND | PRF_OWNED ); | |
1998 | } | |
1999 | } | |
2000 | #endif // 0 | |
2001 | #else | |
2002 | return false; | |
2003 | #endif // __WXMSW__ | |
2004 | } | |
2005 | ||
2006 | ||
2007 | ||
093d3ff1 RD |
2008 | #include <wx/tipdlg.h> |
2009 | ||
2010 | ||
2011 | class wxPyTipProvider : public wxTipProvider { | |
2012 | public: | |
2013 | wxPyTipProvider(size_t currentTip) | |
2014 | : wxTipProvider(currentTip) {} | |
d14a1e28 | 2015 | |
093d3ff1 RD |
2016 | DEC_PYCALLBACK_STRING__pure(GetTip); |
2017 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
d14a1e28 RD |
2018 | PYPRIVATE; |
2019 | }; | |
2020 | ||
093d3ff1 RD |
2021 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); |
2022 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
d14a1e28 RD |
2023 | |
2024 | ||
c26d9ab4 | 2025 | IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); |
d14a1e28 | 2026 | |
093d3ff1 | 2027 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
d14a1e28 | 2028 | |
093d3ff1 RD |
2029 | wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id) |
2030 | : wxTimer(owner, id) | |
2031 | { | |
2032 | if (owner == NULL) SetOwner(this); | |
2033 | } | |
d14a1e28 | 2034 | |
d14a1e28 | 2035 | |
093d3ff1 RD |
2036 | SWIGINTERN PyObject * |
2037 | SWIG_FromCharPtr(const char* cptr) | |
2038 | { | |
2039 | if (cptr) { | |
2040 | size_t size = strlen(cptr); | |
2041 | if (size > INT_MAX) { | |
32fe5131 | 2042 | return SWIG_NewPointerObj(const_cast<char* >(cptr), |
093d3ff1 RD |
2043 | SWIG_TypeQuery("char *"), 0); |
2044 | } else { | |
2045 | if (size != 0) { | |
2046 | return PyString_FromStringAndSize(cptr, size); | |
2047 | } else { | |
2048 | return PyString_FromString(cptr); | |
2049 | } | |
c32bde28 | 2050 | } |
093d3ff1 RD |
2051 | } |
2052 | Py_INCREF(Py_None); | |
2053 | return Py_None; | |
2054 | } | |
2055 | ||
2056 | ||
32fe5131 | 2057 | SWIGINTERNINLINE int |
093d3ff1 RD |
2058 | SWIG_CheckUnsignedLongInRange(unsigned long value, |
2059 | unsigned long max_value, | |
2060 | const char *errmsg) | |
2061 | { | |
2062 | if (value > max_value) { | |
2063 | if (errmsg) { | |
2064 | PyErr_Format(PyExc_OverflowError, | |
2065 | "value %lu is greater than '%s' minimum %lu", | |
2066 | value, errmsg, max_value); | |
69223c70 | 2067 | } |
c32bde28 | 2068 | return 0; |
093d3ff1 RD |
2069 | } |
2070 | return 1; | |
2071 | } | |
2072 | ||
2073 | ||
2074 | #if UINT_MAX != ULONG_MAX | |
2075 | SWIGINTERN int | |
2076 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
2077 | { | |
2078 | const char* errmsg = val ? "unsigned int" : (char*)0; | |
2079 | unsigned long v; | |
2080 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2081 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
32fe5131 | 2082 | if (val) *val = static_cast<unsigned int >(v); |
093d3ff1 RD |
2083 | return 1; |
2084 | } | |
2085 | } else { | |
2086 | PyErr_Clear(); | |
2087 | } | |
2088 | if (val) { | |
2089 | SWIG_type_error(errmsg, obj); | |
2090 | } | |
2091 | return 0; | |
2092 | } | |
2093 | #else | |
32fe5131 | 2094 | SWIGINTERNINLINE unsigned int |
093d3ff1 RD |
2095 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
2096 | { | |
2097 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
15afbcd0 | 2098 | } |
093d3ff1 | 2099 | #endif |
15afbcd0 RD |
2100 | |
2101 | ||
32fe5131 | 2102 | SWIGINTERNINLINE unsigned int |
093d3ff1 | 2103 | SWIG_As_unsigned_SS_int(PyObject* obj) |
15afbcd0 | 2104 | { |
093d3ff1 RD |
2105 | unsigned int v; |
2106 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
c32bde28 | 2107 | /* |
093d3ff1 | 2108 | this is needed to make valgrind/purify happier. |
c32bde28 | 2109 | */ |
093d3ff1 | 2110 | memset((void*)&v, 0, sizeof(unsigned int)); |
15afbcd0 | 2111 | } |
c32bde28 RD |
2112 | return v; |
2113 | } | |
2114 | ||
2115 | ||
32fe5131 | 2116 | SWIGINTERNINLINE int |
093d3ff1 | 2117 | SWIG_Check_unsigned_SS_int(PyObject* obj) |
c32bde28 | 2118 | { |
093d3ff1 | 2119 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); |
994141e6 RD |
2120 | } |
2121 | ||
32fe5131 | 2122 | static wxString wxLog_TimeStamp(){ |
093d3ff1 RD |
2123 | wxString msg; |
2124 | wxLog::TimeStamp(&msg); | |
2125 | return msg; | |
d14a1e28 | 2126 | } |
093d3ff1 | 2127 | static void wxLog_Destroy(wxLog *self){ delete self; } |
7e08d4ef | 2128 | // Make some wrappers that double any % signs so they are 'escaped' |
093d3ff1 RD |
2129 | void wxPyLogFatalError(const wxString& msg) |
2130 | { | |
2131 | wxString m(msg); | |
2132 | m.Replace(wxT("%"), wxT("%%")); | |
2133 | wxLogFatalError(m); | |
2134 | } | |
2135 | ||
2136 | void wxPyLogError(const wxString& msg) | |
2137 | { | |
2138 | wxString m(msg); | |
2139 | m.Replace(wxT("%"), wxT("%%")); | |
2140 | wxLogError(m); | |
2141 | } | |
d14a1e28 | 2142 | |
093d3ff1 RD |
2143 | void wxPyLogWarning(const wxString& msg) |
2144 | { | |
2145 | wxString m(msg); | |
2146 | m.Replace(wxT("%"), wxT("%%")); | |
2147 | wxLogWarning(m); | |
2148 | } | |
d14a1e28 | 2149 | |
093d3ff1 RD |
2150 | void wxPyLogMessage(const wxString& msg) |
2151 | { | |
2152 | wxString m(msg); | |
2153 | m.Replace(wxT("%"), wxT("%%")); | |
2154 | wxLogMessage(m); | |
2155 | } | |
d14a1e28 | 2156 | |
093d3ff1 RD |
2157 | void wxPyLogInfo(const wxString& msg) |
2158 | { | |
2159 | wxString m(msg); | |
2160 | m.Replace(wxT("%"), wxT("%%")); | |
2161 | wxLogInfo(m); | |
2162 | } | |
d14a1e28 | 2163 | |
093d3ff1 RD |
2164 | void wxPyLogDebug(const wxString& msg) |
2165 | { | |
2166 | wxString m(msg); | |
2167 | m.Replace(wxT("%"), wxT("%%")); | |
2168 | wxLogDebug(m); | |
2169 | } | |
d14a1e28 | 2170 | |
093d3ff1 RD |
2171 | void wxPyLogVerbose(const wxString& msg) |
2172 | { | |
2173 | wxString m(msg); | |
2174 | m.Replace(wxT("%"), wxT("%%")); | |
2175 | wxLogVerbose(m); | |
2176 | } | |
994141e6 | 2177 | |
093d3ff1 RD |
2178 | void wxPyLogStatus(const wxString& msg) |
2179 | { | |
2180 | wxString m(msg); | |
2181 | m.Replace(wxT("%"), wxT("%%")); | |
2182 | wxLogStatus(m); | |
2183 | } | |
994141e6 | 2184 | |
093d3ff1 RD |
2185 | void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg) |
2186 | { | |
2187 | wxString m(msg); | |
2188 | m.Replace(wxT("%"), wxT("%%")); | |
2189 | wxLogStatus(pFrame, m); | |
2190 | } | |
d14a1e28 | 2191 | |
093d3ff1 RD |
2192 | void wxPyLogSysError(const wxString& msg) |
2193 | { | |
2194 | wxString m(msg); | |
2195 | m.Replace(wxT("%"), wxT("%%")); | |
2196 | wxLogSysError(m); | |
2197 | } | |
d14a1e28 | 2198 | |
093d3ff1 RD |
2199 | void wxPyLogGeneric(unsigned long level, const wxString& msg) |
2200 | { | |
2201 | wxString m(msg); | |
2202 | m.Replace(wxT("%"), wxT("%%")); | |
2203 | wxLogGeneric(level, m); | |
2204 | } | |
1a10c483 | 2205 | |
093d3ff1 RD |
2206 | void wxPyLogTrace(unsigned long mask, const wxString& msg) |
2207 | { | |
2208 | wxString m(msg); | |
2209 | m.Replace(wxT("%"), wxT("%%")); | |
2210 | wxLogTrace(mask, m); | |
2211 | } | |
2212 | ||
2213 | void wxPyLogTrace(const wxString& mask, const wxString& msg) | |
2214 | { | |
2215 | wxString m(msg); | |
2216 | m.Replace(wxT("%"), wxT("%%")); | |
2217 | wxLogTrace(mask, m); | |
2218 | } | |
2219 | ||
d14a1e28 | 2220 | |
d14a1e28 | 2221 | |
093d3ff1 RD |
2222 | // A wxLog class that can be derived from in wxPython |
2223 | class wxPyLog : public wxLog { | |
2224 | public: | |
2225 | wxPyLog() : wxLog() {} | |
d14a1e28 | 2226 | |
093d3ff1 RD |
2227 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { |
2228 | bool found; | |
5a446332 | 2229 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2230 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
2231 | PyObject* s = wx2PyString(szString); | |
2232 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
2233 | Py_DECREF(s); | |
d14a1e28 | 2234 | } |
093d3ff1 RD |
2235 | wxPyEndBlockThreads(blocked); |
2236 | if (! found) | |
2237 | wxLog::DoLog(level, szString, t); | |
d14a1e28 | 2238 | } |
d14a1e28 | 2239 | |
093d3ff1 RD |
2240 | virtual void DoLogString(const wxChar *szString, time_t t) { |
2241 | bool found; | |
5a446332 | 2242 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2243 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
2244 | PyObject* s = wx2PyString(szString); | |
2245 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
2246 | Py_DECREF(s); | |
2247 | } | |
2248 | wxPyEndBlockThreads(blocked); | |
2249 | if (! found) | |
2250 | wxLog::DoLogString(szString, t); | |
d14a1e28 | 2251 | } |
d14a1e28 | 2252 | |
c26d9ab4 | 2253 | DEC_PYCALLBACK_VOID_(Flush); |
d14a1e28 RD |
2254 | PYPRIVATE; |
2255 | }; | |
c26d9ab4 | 2256 | IMP_PYCALLBACK_VOID_(wxPyLog, wxLog, Flush); |
d14a1e28 | 2257 | |
d14a1e28 | 2258 | |
d14a1e28 | 2259 | |
1a10c483 | 2260 | |
093d3ff1 | 2261 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); |
d14a1e28 RD |
2262 | |
2263 | ||
093d3ff1 | 2264 | #include <wx/joystick.h> |
d14a1e28 RD |
2265 | |
2266 | ||
093d3ff1 RD |
2267 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
2268 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
2269 | class wxJoystick : public wxObject { | |
d14a1e28 | 2270 | public: |
093d3ff1 | 2271 | wxJoystick(int joystick = wxJOYSTICK1) { |
5a446332 | 2272 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2273 | PyErr_SetString(PyExc_NotImplementedError, |
2274 | "wxJoystick is not available on this platform."); | |
2275 | wxPyEndBlockThreads(blocked); | |
2276 | } | |
2277 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
2278 | int GetZPosition() { return -1; } | |
2279 | int GetButtonState() { return -1; } | |
2280 | int GetPOVPosition() { return -1; } | |
2281 | int GetPOVCTSPosition() { return -1; } | |
2282 | int GetRudderPosition() { return -1; } | |
2283 | int GetUPosition() { return -1; } | |
2284 | int GetVPosition() { return -1; } | |
2285 | int GetMovementThreshold() { return -1; } | |
2286 | void SetMovementThreshold(int threshold) {} | |
d14a1e28 | 2287 | |
093d3ff1 RD |
2288 | bool IsOk(void) { return false; } |
2289 | int GetNumberJoysticks() { return -1; } | |
2290 | int GetManufacturerId() { return -1; } | |
2291 | int GetProductId() { return -1; } | |
2292 | wxString GetProductName() { return wxEmptyString; } | |
2293 | int GetXMin() { return -1; } | |
2294 | int GetYMin() { return -1; } | |
2295 | int GetZMin() { return -1; } | |
2296 | int GetXMax() { return -1; } | |
2297 | int GetYMax() { return -1; } | |
2298 | int GetZMax() { return -1; } | |
2299 | int GetNumberButtons() { return -1; } | |
2300 | int GetNumberAxes() { return -1; } | |
2301 | int GetMaxButtons() { return -1; } | |
2302 | int GetMaxAxes() { return -1; } | |
2303 | int GetPollingMin() { return -1; } | |
2304 | int GetPollingMax() { return -1; } | |
2305 | int GetRudderMin() { return -1; } | |
2306 | int GetRudderMax() { return -1; } | |
2307 | int GetUMin() { return -1; } | |
2308 | int GetUMax() { return -1; } | |
2309 | int GetVMin() { return -1; } | |
2310 | int GetVMax() { return -1; } | |
d14a1e28 | 2311 | |
093d3ff1 RD |
2312 | bool HasRudder() { return false; } |
2313 | bool HasZ() { return false; } | |
2314 | bool HasU() { return false; } | |
2315 | bool HasV() { return false; } | |
2316 | bool HasPOV() { return false; } | |
2317 | bool HasPOV4Dir() { return false; } | |
2318 | bool HasPOVCTS() { return false; } | |
d14a1e28 | 2319 | |
093d3ff1 RD |
2320 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; } |
2321 | bool ReleaseCapture() { return false; } | |
d14a1e28 | 2322 | }; |
093d3ff1 | 2323 | #endif |
d14a1e28 | 2324 | |
6923d0a9 | 2325 | |
093d3ff1 | 2326 | #include <wx/sound.h> |
6923d0a9 | 2327 | |
6923d0a9 | 2328 | |
093d3ff1 RD |
2329 | #if !wxUSE_SOUND |
2330 | // A C++ stub class for wxWave for platforms that don't have it. | |
2331 | class wxSound : public wxObject | |
6923d0a9 RD |
2332 | { |
2333 | public: | |
093d3ff1 | 2334 | wxSound() { |
5a446332 | 2335 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2336 | PyErr_SetString(PyExc_NotImplementedError, |
2337 | "wxSound is not available on this platform."); | |
2338 | wxPyEndBlockThreads(blocked); | |
2339 | } | |
2340 | wxSound(const wxString&/*, bool*/) { | |
5a446332 | 2341 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2342 | PyErr_SetString(PyExc_NotImplementedError, |
2343 | "wxSound is not available on this platform."); | |
2344 | wxPyEndBlockThreads(blocked); | |
2345 | } | |
2346 | wxSound(int, const wxByte*) { | |
5a446332 | 2347 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2348 | PyErr_SetString(PyExc_NotImplementedError, |
2349 | "wxSound is not available on this platform."); | |
2350 | wxPyEndBlockThreads(blocked); | |
2351 | } | |
6923d0a9 | 2352 | |
093d3ff1 | 2353 | ~wxSound() {}; |
6923d0a9 | 2354 | |
093d3ff1 RD |
2355 | bool Create(const wxString&/*, bool*/) { return false; } |
2356 | bool Create(int, const wxByte*) { return false; }; | |
2357 | bool IsOk() { return false; }; | |
2358 | bool Play(unsigned) const { return false; } | |
2359 | static bool Play(const wxString&, unsigned) { return false; } | |
2360 | static void Stop() {} | |
6923d0a9 | 2361 | }; |
093d3ff1 | 2362 | |
6923d0a9 RD |
2363 | #endif |
2364 | ||
093d3ff1 RD |
2365 | static wxSound *new_wxSound(wxString const &fileName=wxPyEmptyString){ |
2366 | if (fileName.Length() == 0) | |
2367 | return new wxSound; | |
2368 | else | |
2369 | return new wxSound(fileName); | |
2370 | } | |
2371 | static wxSound *new_wxSound(PyObject *data){ | |
2372 | unsigned char* buffer; int size; | |
2373 | wxSound *sound = NULL; | |
2374 | ||
5a446332 | 2375 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2376 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
2377 | goto done; | |
2378 | sound = new wxSound(size, buffer); | |
2379 | done: | |
4f89f6a3 | 2380 | wxPyEndBlockThreads(blocked); |
093d3ff1 | 2381 | return sound; |
4276dc52 | 2382 | } |
093d3ff1 RD |
2383 | static bool wxSound_CreateFromData(wxSound *self,PyObject *data){ |
2384 | #ifndef __WXMAC__ | |
2385 | unsigned char* buffer; | |
2386 | int size; | |
2387 | bool rv = false; | |
d3b6e4ff | 2388 | |
5a446332 | 2389 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2390 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
2391 | goto done; | |
2392 | rv = self->Create(size, buffer); | |
2393 | done: | |
2394 | wxPyEndBlockThreads(blocked); | |
2395 | return rv; | |
2396 | #else | |
5a446332 | 2397 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2398 | PyErr_SetString(PyExc_NotImplementedError, |
2399 | "Create from data is not available on this platform."); | |
2400 | wxPyEndBlockThreads(blocked); | |
2401 | return false; | |
2402 | #endif | |
2403 | } | |
d3b6e4ff | 2404 | |
093d3ff1 RD |
2405 | #include <wx/mimetype.h> |
2406 | ||
2407 | static PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
2408 | wxString str; | |
2409 | if (self->GetMimeType(&str)) | |
2410 | return wx2PyString(str); | |
2411 | else | |
2412 | RETURN_NONE(); | |
8fb0e70a | 2413 | } |
093d3ff1 RD |
2414 | static PyObject *wxFileType_GetMimeTypes(wxFileType *self){ |
2415 | wxArrayString arr; | |
2416 | if (self->GetMimeTypes(arr)) | |
2417 | return wxArrayString2PyList_helper(arr); | |
2418 | else | |
2419 | RETURN_NONE(); | |
2420 | } | |
2421 | static PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
2422 | wxArrayString arr; | |
2423 | if (self->GetExtensions(arr)) | |
2424 | return wxArrayString2PyList_helper(arr); | |
2425 | else | |
2426 | RETURN_NONE(); | |
2427 | } | |
2428 | static wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
2429 | wxIconLocation loc; | |
2430 | if (self->GetIcon(&loc)) | |
2431 | return new wxIcon(loc); | |
2432 | else | |
2433 | return NULL; | |
2434 | } | |
2435 | static PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
2436 | wxIconLocation loc; | |
2437 | if (self->GetIcon(&loc)) { | |
2438 | wxString iconFile = loc.GetFileName(); | |
2439 | int iconIndex = -1; | |
d14a1e28 RD |
2440 | |
2441 | ||
d14a1e28 | 2442 | |
093d3ff1 | 2443 | // Make a tuple and put the values in it |
5a446332 | 2444 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2445 | PyObject* tuple = PyTuple_New(3); |
2446 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
2447 | wxT("wxIcon"), true)); | |
2448 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); | |
2449 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
2450 | wxPyEndBlockThreads(blocked); | |
2451 | return tuple; | |
2452 | } | |
2453 | else | |
2454 | RETURN_NONE(); | |
2455 | } | |
2456 | static PyObject *wxFileType_GetDescription(wxFileType *self){ | |
2457 | wxString str; | |
2458 | if (self->GetDescription(&str)) | |
2459 | return wx2PyString(str); | |
2460 | else | |
2461 | RETURN_NONE(); | |
2462 | } | |
2463 | static PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2464 | wxString str; | |
2465 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
2466 | return wx2PyString(str); | |
2467 | else | |
2468 | RETURN_NONE(); | |
2469 | } | |
2470 | static PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2471 | wxString str; | |
2472 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
2473 | return wx2PyString(str); | |
2474 | else | |
2475 | RETURN_NONE(); | |
2476 | } | |
2477 | static PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2478 | wxArrayString verbs; | |
2479 | wxArrayString commands; | |
2480 | if (self->GetAllCommands(&verbs, &commands, | |
2481 | wxFileType::MessageParameters(filename, mimetype))) { | |
5a446332 | 2482 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2483 | PyObject* tuple = PyTuple_New(2); |
2484 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
2485 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
2486 | wxPyEndBlockThreads(blocked); | |
2487 | return tuple; | |
2488 | } | |
2489 | else | |
2490 | RETURN_NONE(); | |
2491 | } | |
32fe5131 | 2492 | static wxString wxFileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ |
093d3ff1 RD |
2493 | return wxFileType::ExpandCommand(command, |
2494 | wxFileType::MessageParameters(filename, mimetype)); | |
2495 | } | |
2496 | static PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
2497 | wxArrayString arr; | |
2498 | self->EnumAllFileTypes(arr); | |
2499 | return wxArrayString2PyList_helper(arr); | |
2500 | } | |
d14a1e28 | 2501 | |
093d3ff1 | 2502 | #include <wx/artprov.h> |
d14a1e28 | 2503 | |
093d3ff1 RD |
2504 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); |
2505 | static const wxString wxPyART_MENU(wxART_MENU); | |
2506 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
2507 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
2508 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
2509 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
2510 | static const wxString wxPyART_BUTTON(wxART_BUTTON); | |
2511 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
2512 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
2513 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
2514 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
2515 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
2516 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
2517 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
2518 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
2519 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
2520 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
2521 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
2522 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
2523 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
2524 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
2525 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
0c243d93 RD |
2526 | static const wxString wxPyART_FILE_SAVE(wxART_FILE_SAVE); |
2527 | static const wxString wxPyART_FILE_SAVE_AS(wxART_FILE_SAVE_AS); | |
093d3ff1 RD |
2528 | static const wxString wxPyART_PRINT(wxART_PRINT); |
2529 | static const wxString wxPyART_HELP(wxART_HELP); | |
2530 | static const wxString wxPyART_TIP(wxART_TIP); | |
2531 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
2532 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
2533 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
2534 | static const wxString wxPyART_HARDDISK(wxART_HARDDISK); | |
2535 | static const wxString wxPyART_FLOPPY(wxART_FLOPPY); | |
2536 | static const wxString wxPyART_CDROM(wxART_CDROM); | |
2537 | static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE); | |
2538 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
2539 | static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN); | |
2540 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
2541 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
2542 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
2543 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
2544 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
2545 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
2546 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
2547 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
2548 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
2549 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
0c243d93 RD |
2550 | static const wxString wxPyART_COPY(wxART_COPY); |
2551 | static const wxString wxPyART_CUT(wxART_CUT); | |
2552 | static const wxString wxPyART_PASTE(wxART_PASTE); | |
2553 | static const wxString wxPyART_DELETE(wxART_DELETE); | |
a187dc0b | 2554 | static const wxString wxPyART_NEW(wxART_NEW); |
0c243d93 RD |
2555 | static const wxString wxPyART_UNDO(wxART_UNDO); |
2556 | static const wxString wxPyART_REDO(wxART_REDO); | |
2557 | static const wxString wxPyART_QUIT(wxART_QUIT); | |
2558 | static const wxString wxPyART_FIND(wxART_FIND); | |
2559 | static const wxString wxPyART_FIND_AND_REPLACE(wxART_FIND_AND_REPLACE); | |
093d3ff1 RD |
2560 | // Python aware wxArtProvider |
2561 | class wxPyArtProvider : public wxArtProvider { | |
2562 | public: | |
d14a1e28 | 2563 | |
093d3ff1 RD |
2564 | virtual wxBitmap CreateBitmap(const wxArtID& id, |
2565 | const wxArtClient& client, | |
2566 | const wxSize& size) { | |
2567 | wxBitmap rval = wxNullBitmap; | |
5a446332 | 2568 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2569 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { |
2570 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
2571 | PyObject* ro; | |
2572 | wxBitmap* ptr; | |
2573 | PyObject* s1, *s2; | |
2574 | s1 = wx2PyString(id); | |
2575 | s2 = wx2PyString(client); | |
2576 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
2577 | Py_DECREF(so); | |
2578 | Py_DECREF(s1); | |
2579 | Py_DECREF(s2); | |
2580 | if (ro) { | |
2581 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
2582 | rval = *ptr; | |
2583 | Py_DECREF(ro); | |
2584 | } | |
2585 | } | |
2586 | wxPyEndBlockThreads(blocked); | |
2587 | return rval; | |
4f89f6a3 | 2588 | } |
d14a1e28 | 2589 | |
093d3ff1 RD |
2590 | PYPRIVATE; |
2591 | }; | |
d14a1e28 | 2592 | |
093d3ff1 | 2593 | static void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
2594 | |
2595 | ||
093d3ff1 RD |
2596 | |
2597 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
2598 | PyObject* ret = PyTuple_New(3); | |
2599 | if (ret) { | |
2600 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
2601 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
2602 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
2603 | } | |
2604 | return ret; | |
d14a1e28 | 2605 | } |
d14a1e28 | 2606 | |
093d3ff1 RD |
2607 | static PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ |
2608 | bool cont; | |
2609 | long index = 0; | |
2610 | wxString value; | |
d14a1e28 | 2611 | |
093d3ff1 RD |
2612 | cont = self->GetFirstGroup(value, index); |
2613 | return __EnumerationHelper(cont, value, index); | |
2614 | } | |
2615 | static PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
2616 | bool cont; | |
2617 | wxString value; | |
7e63a440 | 2618 | |
093d3ff1 RD |
2619 | cont = self->GetNextGroup(value, index); |
2620 | return __EnumerationHelper(cont, value, index); | |
2621 | } | |
2622 | static PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
2623 | bool cont; | |
2624 | long index = 0; | |
2625 | wxString value; | |
7e63a440 | 2626 | |
093d3ff1 RD |
2627 | cont = self->GetFirstEntry(value, index); |
2628 | return __EnumerationHelper(cont, value, index); | |
2629 | } | |
2630 | static PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
2631 | bool cont; | |
2632 | wxString value; | |
7e63a440 | 2633 | |
093d3ff1 RD |
2634 | cont = self->GetNextEntry(value, index); |
2635 | return __EnumerationHelper(cont, value, index); | |
2636 | } | |
2637 | static long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal=0){ | |
2638 | long rv; | |
2639 | self->Read(key, &rv, defaultVal); | |
2640 | return rv; | |
2641 | } | |
7e63a440 | 2642 | |
093d3ff1 RD |
2643 | SWIGINTERN int |
2644 | SWIG_AsVal_double(PyObject *obj, double* val) | |
2645 | { | |
2646 | if (PyNumber_Check(obj)) { | |
2647 | if (val) *val = PyFloat_AsDouble(obj); | |
2648 | return 1; | |
d14a1e28 | 2649 | } |
093d3ff1 | 2650 | else { |
7e08d4ef | 2651 | SWIG_Python_TypeError("number", obj); |
093d3ff1 RD |
2652 | } |
2653 | return 0; | |
d14a1e28 RD |
2654 | } |
2655 | ||
2656 | ||
32fe5131 | 2657 | SWIGINTERNINLINE double |
093d3ff1 RD |
2658 | SWIG_As_double(PyObject* obj) |
2659 | { | |
2660 | double v; | |
2661 | if (!SWIG_AsVal_double(obj, &v)) { | |
2662 | /* | |
2663 | this is needed to make valgrind/purify happier. | |
2664 | */ | |
2665 | memset((void*)&v, 0, sizeof(double)); | |
2666 | } | |
2667 | return v; | |
d14a1e28 RD |
2668 | } |
2669 | ||
093d3ff1 | 2670 | |
32fe5131 | 2671 | SWIGINTERNINLINE int |
093d3ff1 RD |
2672 | SWIG_Check_double(PyObject* obj) |
2673 | { | |
2674 | return SWIG_AsVal_double(obj, (double*)0); | |
d14a1e28 RD |
2675 | } |
2676 | ||
093d3ff1 RD |
2677 | static double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal=0.0){ |
2678 | double rv; | |
2679 | self->Read(key, &rv, defaultVal); | |
2680 | return rv; | |
2681 | } | |
d14a1e28 | 2682 | |
32fe5131 | 2683 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
2684 | #define SWIG_From_double PyFloat_FromDouble |
2685 | /*@@*/ | |
d14a1e28 | 2686 | |
093d3ff1 RD |
2687 | static bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal=false){ |
2688 | bool rv; | |
2689 | self->Read(key, &rv, defaultVal); | |
2690 | return rv; | |
2691 | } | |
d14a1e28 | 2692 | |
093d3ff1 | 2693 | #include <wx/datetime.h> |
d14a1e28 | 2694 | |
7557b9b5 RD |
2695 | static const wxString wxPyDefaultDateTimeFormat(wxDefaultDateTimeFormat); |
2696 | static const wxString wxPyDefaultTimeSpanFormat(wxDefaultTimeSpanFormat); | |
d14a1e28 | 2697 | |
093d3ff1 | 2698 | #define LOCAL_TZ wxDateTime::Local |
b2dc1044 | 2699 | |
32fe5131 | 2700 | static PyObject *wxDateTime_GetAmPmStrings(){ |
b9d6a5f3 RD |
2701 | wxString am; |
2702 | wxString pm; | |
2703 | wxDateTime::GetAmPmStrings(&am, &pm); | |
5a446332 | 2704 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
b9d6a5f3 RD |
2705 | PyObject* tup = PyTuple_New(2); |
2706 | PyTuple_SET_ITEM(tup, 0, wx2PyString(am)); | |
2707 | PyTuple_SET_ITEM(tup, 1, wx2PyString(pm)); | |
2708 | wxPyEndBlockThreads(blocked); | |
2709 | return tup; | |
2710 | } | |
b2dc1044 | 2711 | |
093d3ff1 | 2712 | #if UINT_MAX < LONG_MAX |
32fe5131 | 2713 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
2714 | #define SWIG_From_unsigned_SS_int SWIG_From_long |
2715 | /*@@*/ | |
b2dc1044 | 2716 | #else |
32fe5131 | 2717 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
2718 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long |
2719 | /*@@*/ | |
b2dc1044 | 2720 | #endif |
b2dc1044 | 2721 | |
093d3ff1 RD |
2722 | static wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } |
2723 | static wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
2724 | static wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
2725 | static wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
2726 | static wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
2727 | static bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
2728 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
2729 | return (*self < *other); | |
2730 | } | |
2731 | static bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
2732 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
2733 | return (*self <= *other); | |
2734 | } | |
2735 | static bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
2736 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
2737 | return (*self > *other); | |
2738 | } | |
2739 | static bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
2740 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
2741 | return (*self >= *other); | |
2742 | } | |
2743 | static bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
2744 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
2745 | return (*self == *other); | |
2746 | } | |
2747 | static bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
2748 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
2749 | return (*self != *other); | |
2750 | } | |
2751 | static int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
2752 | const wxChar* rv; | |
2753 | const wxChar* _date = date; | |
2754 | rv = self->ParseRfc822Date(_date); | |
2755 | if (rv == NULL) return -1; | |
2756 | return rv - _date; | |
2757 | } | |
7557b9b5 | 2758 | static int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format=wxPyDefaultDateTimeFormat,wxDateTime const &dateDef=wxDefaultDateTime){ |
093d3ff1 RD |
2759 | const wxChar* rv; |
2760 | const wxChar* _date = date; | |
2761 | rv = self->ParseFormat(_date, format, dateDef); | |
2762 | if (rv == NULL) return -1; | |
2763 | return rv - _date; | |
2764 | } | |
2765 | static int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
2766 | const wxChar* rv; | |
2767 | const wxChar* _datetime = datetime; | |
2768 | rv = self->ParseDateTime(_datetime); | |
2769 | if (rv == NULL) return -1; | |
2770 | return rv - _datetime; | |
2771 | } | |
2772 | static int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
2773 | const wxChar* rv; | |
2774 | const wxChar* _date = date; | |
2775 | rv = self->ParseDate(_date); | |
2776 | if (rv == NULL) return -1; | |
2777 | return rv - _date; | |
2778 | } | |
2779 | static int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
2780 | const wxChar* rv; | |
2781 | const wxChar* _time = time; | |
2782 | rv = self->ParseTime(_time); | |
2783 | if (rv == NULL) return -1; | |
2784 | return rv - _time; | |
2785 | } | |
2786 | static wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
2787 | static wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
2788 | static wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
2789 | static wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
2790 | static bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; } | |
2791 | static bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; } | |
2792 | static bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; } | |
2793 | static bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; } | |
2794 | static bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; } | |
2795 | static bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; } | |
2796 | static wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
2797 | static wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
2798 | static wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
2799 | static wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
2800 | static bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; } | |
2801 | static bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; } | |
b2dc1044 | 2802 | |
093d3ff1 | 2803 | #include <wx/dataobj.h> |
b2dc1044 | 2804 | |
093d3ff1 RD |
2805 | static PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir=wxDataObject::Get){ |
2806 | size_t count = self->GetFormatCount(dir); | |
2807 | wxDataFormat* formats = new wxDataFormat[count]; | |
2808 | self->GetAllFormats(formats, dir); | |
b2dc1044 | 2809 | |
5a446332 | 2810 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2811 | PyObject* list = PyList_New(count); |
2812 | for (size_t i=0; i<count; i++) { | |
2813 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
2814 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true); | |
943e8dfd | 2815 | PyList_SET_ITEM(list, i, obj); // PyList_SET_ITEM steals a reference |
093d3ff1 RD |
2816 | } |
2817 | wxPyEndBlockThreads(blocked); | |
2818 | delete [] formats; | |
2819 | return list; | |
2820 | } | |
2821 | static PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
2822 | PyObject* rval = NULL; | |
2823 | size_t size = self->GetDataSize(format); | |
5a446332 | 2824 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2825 | if (size) { |
2826 | char* buf = new char[size]; | |
2827 | if (self->GetDataHere(format, buf)) | |
2828 | rval = PyString_FromStringAndSize(buf, size); | |
2829 | delete [] buf; | |
2830 | } | |
2831 | if (! rval) { | |
2832 | rval = Py_None; | |
2833 | Py_INCREF(rval); | |
2834 | } | |
2835 | wxPyEndBlockThreads(blocked); | |
2836 | return rval; | |
2837 | } | |
2838 | static bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
2839 | bool rval; | |
5a446332 | 2840 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2841 | if (PyString_Check(data)) { |
2842 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
2843 | } | |
2844 | else { | |
2845 | // raise a TypeError if not a string | |
2846 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
2847 | rval = false; | |
2848 | } | |
2849 | wxPyEndBlockThreads(blocked); | |
2850 | return rval; | |
2851 | } | |
2852 | static PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
2853 | PyObject* rval = NULL; | |
2854 | size_t size = self->GetDataSize(); | |
5a446332 | 2855 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2856 | if (size) { |
2857 | char* buf = new char[size]; | |
2858 | if (self->GetDataHere(buf)) | |
2859 | rval = PyString_FromStringAndSize(buf, size); | |
2860 | delete [] buf; | |
2861 | } | |
2862 | if (! rval) { | |
2863 | rval = Py_None; | |
2864 | Py_INCREF(rval); | |
2865 | } | |
2866 | wxPyEndBlockThreads(blocked); | |
2867 | return rval; | |
2868 | } | |
2869 | static bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
2870 | bool rval; | |
5a446332 | 2871 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2872 | if (PyString_Check(data)) { |
2873 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
2874 | } | |
2875 | else { | |
2876 | // raise a TypeError if not a string | |
2877 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
2878 | rval = false; | |
2879 | } | |
2880 | wxPyEndBlockThreads(blocked); | |
2881 | return rval; | |
2882 | } | |
2883 | // Create a new class for wxPython to use | |
2884 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
2885 | public: | |
2886 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
2887 | : wxDataObjectSimple(format) {} | |
b2dc1044 | 2888 | |
093d3ff1 RD |
2889 | DEC_PYCALLBACK_SIZET__const(GetDataSize); |
2890 | bool GetDataHere(void *buf) const; | |
2891 | bool SetData(size_t len, const void *buf) const; | |
2892 | PYPRIVATE; | |
2893 | }; | |
b2dc1044 | 2894 | |
093d3ff1 | 2895 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); |
b2dc1044 | 2896 | |
093d3ff1 RD |
2897 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { |
2898 | // We need to get the data for this object and write it to buf. I think | |
2899 | // the best way to do this for wxPython is to have the Python method | |
2900 | // return either a string or None and then act appropriately with the | |
2901 | // C++ version. | |
b2dc1044 | 2902 | |
093d3ff1 | 2903 | bool rval = false; |
5a446332 | 2904 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2905 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { |
2906 | PyObject* ro; | |
2907 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
2908 | if (ro) { | |
2909 | rval = (ro != Py_None && PyString_Check(ro)); | |
2910 | if (rval) | |
2911 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
2912 | Py_DECREF(ro); | |
2913 | } | |
b2dc1044 | 2914 | } |
093d3ff1 RD |
2915 | wxPyEndBlockThreads(blocked); |
2916 | return rval; | |
b2dc1044 RD |
2917 | } |
2918 | ||
093d3ff1 RD |
2919 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ |
2920 | // For this one we simply need to make a string from buf and len | |
2921 | // and send it to the Python method. | |
2922 | bool rval = false; | |
5a446332 | 2923 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2924 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { |
2925 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
2926 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
2927 | Py_DECREF(data); | |
2928 | } | |
2929 | wxPyEndBlockThreads(blocked); | |
2930 | return rval; | |
2931 | } | |
b2dc1044 | 2932 | |
093d3ff1 RD |
2933 | // Create a new class for wxPython to use |
2934 | class wxPyTextDataObject : public wxTextDataObject { | |
2935 | public: | |
2936 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
2937 | : wxTextDataObject(text) {} | |
2938 | ||
2939 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
2940 | DEC_PYCALLBACK_STRING__const(GetText); | |
2941 | DEC_PYCALLBACK__STRING(SetText); | |
2942 | PYPRIVATE; | |
2943 | }; | |
2944 | ||
2945 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
2946 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
2947 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
2948 | ||
2949 | ||
2950 | // Create a new class for wxPython to use | |
2951 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
2952 | public: | |
2953 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
2954 | : wxBitmapDataObject(bitmap) {} | |
2955 | ||
2956 | wxBitmap GetBitmap() const; | |
2957 | void SetBitmap(const wxBitmap& bitmap); | |
2958 | PYPRIVATE; | |
2959 | }; | |
2960 | ||
2961 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
2962 | wxBitmap* rval = &wxNullBitmap; | |
5a446332 | 2963 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2964 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { |
2965 | PyObject* ro; | |
2966 | wxBitmap* ptr; | |
2967 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
2968 | if (ro) { | |
2969 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
2970 | rval = ptr; | |
2971 | Py_DECREF(ro); | |
2972 | } | |
2973 | } | |
2974 | wxPyEndBlockThreads(blocked); | |
2975 | return *rval; | |
2976 | } | |
2977 | ||
2978 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
5a446332 | 2979 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2980 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { |
2981 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false); | |
2982 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); | |
2983 | Py_DECREF(bo); | |
2984 | } | |
2985 | wxPyEndBlockThreads(blocked); | |
2986 | } | |
2987 | ||
7557b9b5 RD |
2988 | static wxCustomDataObject *new_wxCustomDataObject__SWIG_1(wxString const &formatName){ |
2989 | return new wxCustomDataObject(wxDataFormat(formatName)); | |
2990 | } | |
093d3ff1 RD |
2991 | static bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
2992 | bool rval; | |
5a446332 | 2993 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2994 | if (PyString_Check(data)) { |
2995 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
2996 | } | |
2997 | else { | |
2998 | // raise a TypeError if not a string | |
2999 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
3000 | rval = false; | |
3001 | } | |
3002 | wxPyEndBlockThreads(blocked); | |
3003 | return rval; | |
3004 | } | |
3005 | static PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
3006 | PyObject* obj; | |
5a446332 | 3007 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
3008 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); |
3009 | wxPyEndBlockThreads(blocked); | |
3010 | return obj; | |
3011 | } | |
3012 | ||
3013 | class wxMetafileDataObject : public wxDataObjectSimple | |
3014 | { | |
3015 | public: | |
3016 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } | |
3017 | }; | |
3018 | ||
3019 | ||
3020 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
3021 | ||
3022 | ||
3023 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
3024 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
3025 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
3026 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
3027 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
3028 | ||
3029 | ||
3030 | class wxPyTextDropTarget : public wxTextDropTarget { | |
3031 | public: | |
3032 | wxPyTextDropTarget() {} | |
3033 | ||
3034 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
3035 | ||
3036 | DEC_PYCALLBACK__(OnLeave); | |
3037 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
3038 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
3039 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
3040 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
3041 | ||
3042 | PYPRIVATE; | |
3043 | }; | |
3044 | ||
3045 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
3046 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
3047 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
3048 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
3049 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
3050 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
3051 | ||
3052 | ||
3053 | ||
3054 | class wxPyFileDropTarget : public wxFileDropTarget { | |
3055 | public: | |
3056 | wxPyFileDropTarget() {} | |
3057 | ||
3058 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
3059 | ||
3060 | DEC_PYCALLBACK__(OnLeave); | |
3061 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
3062 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
3063 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
3064 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
3065 | ||
3066 | PYPRIVATE; | |
3067 | }; | |
3068 | ||
3069 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
3070 | const wxArrayString& filenames) { | |
3071 | bool rval = false; | |
5a446332 | 3072 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
3073 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { |
3074 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
3075 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
3076 | Py_DECREF(list); | |
3077 | } | |
3078 | wxPyEndBlockThreads(blocked); | |
3079 | return rval; | |
3080 | } | |
3081 | ||
3082 | ||
3083 | ||
3084 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
3085 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
3086 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
3087 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
3088 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
3089 | ||
3090 | ||
3091 | ||
3092 | ||
3093 | static bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
3094 | ||
3095 | #include <wx/display.h> | |
3096 | ||
3097 | static bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; } | |
3098 | static bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; } | |
3099 | ||
3100 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
3101 | #if !wxUSE_DISPLAY | |
3102 | #include <wx/dynarray.h> | |
3103 | #include <wx/vidmode.h> | |
3104 | ||
32fe5131 | 3105 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); |
093d3ff1 RD |
3106 | #include "wx/arrimpl.cpp" |
3107 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
3108 | const wxVideoMode wxDefaultVideoMode; | |
3109 | ||
3110 | class wxDisplay | |
3111 | { | |
3112 | public: | |
3113 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
3114 | ~wxDisplay() {} | |
3115 | ||
3116 | static size_t GetCount() | |
3117 | { wxPyRaiseNotImplemented(); return 0; } | |
3118 | ||
3119 | static int GetFromPoint(const wxPoint& pt) | |
3120 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
3121 | static int GetFromWindow(wxWindow *window) | |
3122 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
3123 | ||
3124 | virtual bool IsOk() const { return false; } | |
3125 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
3126 | virtual wxString GetName() const { return wxEmptyString; } | |
3127 | bool IsPrimary() const { return false; } | |
3128 | ||
3129 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
3130 | { wxArrayVideoModes a; return a; } | |
3131 | ||
3132 | virtual wxVideoMode GetCurrentMode() const | |
3133 | { return wxDefaultVideoMode; } | |
3134 | ||
3135 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
3136 | { return false; } | |
3137 | ||
3138 | void ResetMode() {} | |
3139 | }; | |
3140 | #endif | |
3141 | ||
32fe5131 | 3142 | static int wxDisplay_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } |
093d3ff1 RD |
3143 | static PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode=wxDefaultVideoMode){ |
3144 | PyObject* pyList = NULL; | |
3145 | wxArrayVideoModes arr = self->GetModes(mode); | |
5a446332 | 3146 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
3147 | pyList = PyList_New(0); |
3148 | for (int i=0; i < arr.GetCount(); i++) { | |
3149 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
3150 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
3151 | PyList_Append(pyList, pyObj); | |
3152 | Py_DECREF(pyObj); | |
3153 | } | |
3154 | wxPyEndBlockThreads(blocked); | |
3155 | return pyList; | |
3156 | } | |
3157 | ||
3158 | #include <wx/stdpaths.h> | |
3159 | ||
32fe5131 | 3160 | static wxStandardPaths *wxStandardPaths_Get(){ |
093d3ff1 RD |
3161 | return (wxStandardPaths*) &wxStandardPaths::Get(); |
3162 | } | |
3163 | #ifdef __cplusplus | |
3164 | extern "C" { | |
3165 | #endif | |
3166 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3167 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3168 | wxSystemColour arg1 ; |
3169 | wxColour result; | |
3170 | PyObject * obj0 = 0 ; | |
d14a1e28 | 3171 | char *kwnames[] = { |
093d3ff1 | 3172 | (char *) "index", NULL |
d14a1e28 RD |
3173 | }; |
3174 | ||
093d3ff1 RD |
3175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
3176 | { | |
32fe5131 | 3177 | arg1 = static_cast<wxSystemColour >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3178 | if (SWIG_arg_fail(1)) SWIG_fail; |
3179 | } | |
d14a1e28 | 3180 | { |
093d3ff1 | 3181 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 3183 | result = wxSystemSettings::GetColour(arg1); |
d14a1e28 RD |
3184 | |
3185 | wxPyEndAllowThreads(__tstate); | |
3186 | if (PyErr_Occurred()) SWIG_fail; | |
3187 | } | |
093d3ff1 RD |
3188 | { |
3189 | wxColour * resultptr; | |
32fe5131 | 3190 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
093d3ff1 RD |
3191 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
3192 | } | |
d14a1e28 RD |
3193 | return resultobj; |
3194 | fail: | |
3195 | return NULL; | |
3196 | } | |
3197 | ||
3198 | ||
093d3ff1 | 3199 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3200 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3201 | wxSystemFont arg1 ; |
3202 | wxFont result; | |
994141e6 | 3203 | PyObject * obj0 = 0 ; |
d14a1e28 | 3204 | char *kwnames[] = { |
093d3ff1 | 3205 | (char *) "index", NULL |
d14a1e28 RD |
3206 | }; |
3207 | ||
093d3ff1 | 3208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
d14a1e28 | 3209 | { |
32fe5131 | 3210 | arg1 = static_cast<wxSystemFont >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3211 | if (SWIG_arg_fail(1)) SWIG_fail; |
3212 | } | |
3213 | { | |
3214 | if (!wxPyCheckForApp()) SWIG_fail; | |
d14a1e28 | 3215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 3216 | result = wxSystemSettings::GetFont(arg1); |
d14a1e28 RD |
3217 | |
3218 | wxPyEndAllowThreads(__tstate); | |
3219 | if (PyErr_Occurred()) SWIG_fail; | |
3220 | } | |
d14a1e28 | 3221 | { |
093d3ff1 | 3222 | wxFont * resultptr; |
32fe5131 | 3223 | resultptr = new wxFont(static_cast<wxFont & >(result)); |
093d3ff1 | 3224 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 | 3225 | } |
d14a1e28 RD |
3226 | return resultobj; |
3227 | fail: | |
3228 | return NULL; | |
3229 | } | |
3230 | ||
3231 | ||
093d3ff1 | 3232 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3233 | PyObject *resultobj = NULL; |
093d3ff1 | 3234 | wxSystemMetric arg1 ; |
8f4d7c19 | 3235 | wxWindow *arg2 = (wxWindow *) NULL ; |
093d3ff1 | 3236 | int result; |
023a034e | 3237 | PyObject * obj0 = 0 ; |
8f4d7c19 | 3238 | PyObject * obj1 = 0 ; |
023a034e | 3239 | char *kwnames[] = { |
8f4d7c19 | 3240 | (char *) "index",(char *) "win", NULL |
023a034e RD |
3241 | }; |
3242 | ||
8f4d7c19 | 3243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SystemSettings_GetMetric",kwnames,&obj0,&obj1)) goto fail; |
023a034e | 3244 | { |
32fe5131 | 3245 | arg1 = static_cast<wxSystemMetric >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3246 | if (SWIG_arg_fail(1)) SWIG_fail; |
3247 | } | |
8f4d7c19 RD |
3248 | if (obj1) { |
3249 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3250 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3251 | } | |
093d3ff1 RD |
3252 | { |
3253 | if (!wxPyCheckForApp()) SWIG_fail; | |
023a034e | 3254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 3255 | result = (int)wxSystemSettings::GetMetric(arg1,arg2); |
023a034e RD |
3256 | |
3257 | wxPyEndAllowThreads(__tstate); | |
3258 | if (PyErr_Occurred()) SWIG_fail; | |
3259 | } | |
3260 | { | |
32fe5131 | 3261 | resultobj = SWIG_From_int(static_cast<int >(result)); |
023a034e RD |
3262 | } |
3263 | return resultobj; | |
3264 | fail: | |
3265 | return NULL; | |
3266 | } | |
3267 | ||
3268 | ||
093d3ff1 | 3269 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3270 | PyObject *resultobj = NULL; |
093d3ff1 | 3271 | wxSystemFeature arg1 ; |
023a034e | 3272 | bool result; |
023a034e | 3273 | PyObject * obj0 = 0 ; |
023a034e | 3274 | char *kwnames[] = { |
093d3ff1 | 3275 | (char *) "index", NULL |
023a034e RD |
3276 | }; |
3277 | ||
093d3ff1 | 3278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
023a034e | 3279 | { |
32fe5131 | 3280 | arg1 = static_cast<wxSystemFeature >(SWIG_As_int(obj0)); |
093d3ff1 | 3281 | if (SWIG_arg_fail(1)) SWIG_fail; |
023a034e RD |
3282 | } |
3283 | { | |
093d3ff1 | 3284 | if (!wxPyCheckForApp()) SWIG_fail; |
023a034e | 3285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 3286 | result = (bool)wxSystemSettings::HasFeature(arg1); |
023a034e RD |
3287 | |
3288 | wxPyEndAllowThreads(__tstate); | |
3289 | if (PyErr_Occurred()) SWIG_fail; | |
3290 | } | |
3291 | { | |
3292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3293 | } | |
023a034e RD |
3294 | return resultobj; |
3295 | fail: | |
023a034e RD |
3296 | return NULL; |
3297 | } | |
3298 | ||
3299 | ||
093d3ff1 | 3300 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3301 | PyObject *resultobj = NULL; |
093d3ff1 | 3302 | wxSystemScreenType result; |
023a034e | 3303 | char *kwnames[] = { |
093d3ff1 | 3304 | NULL |
023a034e RD |
3305 | }; |
3306 | ||
093d3ff1 | 3307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; |
023a034e | 3308 | { |
093d3ff1 | 3309 | if (!wxPyCheckForApp()) SWIG_fail; |
023a034e | 3310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3311 | result = (wxSystemScreenType)wxSystemSettings::GetScreenType(); |
023a034e RD |
3312 | |
3313 | wxPyEndAllowThreads(__tstate); | |
3314 | if (PyErr_Occurred()) SWIG_fail; | |
3315 | } | |
093d3ff1 | 3316 | resultobj = SWIG_From_int((result)); |
023a034e RD |
3317 | return resultobj; |
3318 | fail: | |
3319 | return NULL; | |
3320 | } | |
3321 | ||
3322 | ||
093d3ff1 | 3323 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3324 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3325 | wxSystemScreenType arg1 ; |
3326 | PyObject * obj0 = 0 ; | |
d14a1e28 | 3327 | char *kwnames[] = { |
093d3ff1 | 3328 | (char *) "screen", NULL |
d14a1e28 RD |
3329 | }; |
3330 | ||
093d3ff1 RD |
3331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
3332 | { | |
32fe5131 | 3333 | arg1 = static_cast<wxSystemScreenType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3334 | if (SWIG_arg_fail(1)) SWIG_fail; |
3335 | } | |
d14a1e28 | 3336 | { |
e3b71cb8 | 3337 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 3339 | wxSystemSettings::SetScreenType(arg1); |
d14a1e28 RD |
3340 | |
3341 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3342 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3343 | } |
3344 | Py_INCREF(Py_None); resultobj = Py_None; | |
3345 | return resultobj; | |
3346 | fail: | |
3347 | return NULL; | |
3348 | } | |
3349 | ||
3350 | ||
093d3ff1 RD |
3351 | static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) { |
3352 | PyObject *obj; | |
3353 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3354 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
3355 | Py_INCREF(obj); | |
3356 | return Py_BuildValue((char *)""); | |
3357 | } | |
3358 | static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) { | |
3359 | PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only."); | |
3360 | return 1; | |
3361 | } | |
3362 | ||
3363 | ||
3364 | static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get(void) { | |
32fe5131 | 3365 | PyObject *pyobj = NULL; |
d14a1e28 | 3366 | |
d14a1e28 | 3367 | { |
093d3ff1 RD |
3368 | #if wxUSE_UNICODE |
3369 | pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
3370 | #else | |
3371 | pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
3372 | #endif | |
d14a1e28 | 3373 | } |
093d3ff1 | 3374 | return pyobj; |
d14a1e28 RD |
3375 | } |
3376 | ||
3377 | ||
093d3ff1 | 3378 | static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3379 | PyObject *resultobj = NULL; |
093d3ff1 | 3380 | wxSystemOptions *result; |
d14a1e28 | 3381 | char *kwnames[] = { |
093d3ff1 | 3382 | NULL |
d14a1e28 RD |
3383 | }; |
3384 | ||
093d3ff1 | 3385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; |
d14a1e28 RD |
3386 | { |
3387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3388 | result = (wxSystemOptions *)new wxSystemOptions(); |
d14a1e28 RD |
3389 | |
3390 | wxPyEndAllowThreads(__tstate); | |
3391 | if (PyErr_Occurred()) SWIG_fail; | |
3392 | } | |
093d3ff1 | 3393 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); |
d14a1e28 RD |
3394 | return resultobj; |
3395 | fail: | |
3396 | return NULL; | |
3397 | } | |
3398 | ||
3399 | ||
093d3ff1 | 3400 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3401 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3402 | wxString *arg1 = 0 ; |
3403 | wxString *arg2 = 0 ; | |
3404 | bool temp1 = false ; | |
3405 | bool temp2 = false ; | |
3406 | PyObject * obj0 = 0 ; | |
3407 | PyObject * obj1 = 0 ; | |
d14a1e28 | 3408 | char *kwnames[] = { |
093d3ff1 | 3409 | (char *) "name",(char *) "value", NULL |
d14a1e28 RD |
3410 | }; |
3411 | ||
093d3ff1 RD |
3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; |
3413 | { | |
3414 | arg1 = wxString_in_helper(obj0); | |
3415 | if (arg1 == NULL) SWIG_fail; | |
3416 | temp1 = true; | |
3417 | } | |
3418 | { | |
3419 | arg2 = wxString_in_helper(obj1); | |
3420 | if (arg2 == NULL) SWIG_fail; | |
3421 | temp2 = true; | |
3422 | } | |
d14a1e28 RD |
3423 | { |
3424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3425 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); |
d14a1e28 RD |
3426 | |
3427 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3428 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3429 | } |
3430 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
3431 | { |
3432 | if (temp1) | |
3433 | delete arg1; | |
3434 | } | |
3435 | { | |
3436 | if (temp2) | |
3437 | delete arg2; | |
3438 | } | |
d14a1e28 RD |
3439 | return resultobj; |
3440 | fail: | |
093d3ff1 RD |
3441 | { |
3442 | if (temp1) | |
3443 | delete arg1; | |
3444 | } | |
3445 | { | |
3446 | if (temp2) | |
3447 | delete arg2; | |
3448 | } | |
d14a1e28 RD |
3449 | return NULL; |
3450 | } | |
3451 | ||
3452 | ||
093d3ff1 | 3453 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3454 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3455 | wxString *arg1 = 0 ; |
3456 | int arg2 ; | |
3457 | bool temp1 = false ; | |
3458 | PyObject * obj0 = 0 ; | |
3459 | PyObject * obj1 = 0 ; | |
d14a1e28 | 3460 | char *kwnames[] = { |
093d3ff1 | 3461 | (char *) "name",(char *) "value", NULL |
d14a1e28 RD |
3462 | }; |
3463 | ||
093d3ff1 RD |
3464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
3465 | { | |
3466 | arg1 = wxString_in_helper(obj0); | |
3467 | if (arg1 == NULL) SWIG_fail; | |
3468 | temp1 = true; | |
3469 | } | |
3470 | { | |
32fe5131 | 3471 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3472 | if (SWIG_arg_fail(2)) SWIG_fail; |
3473 | } | |
d14a1e28 RD |
3474 | { |
3475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3476 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); |
d14a1e28 RD |
3477 | |
3478 | wxPyEndAllowThreads(__tstate); | |
3479 | if (PyErr_Occurred()) SWIG_fail; | |
3480 | } | |
093d3ff1 | 3481 | Py_INCREF(Py_None); resultobj = Py_None; |
4f89f6a3 | 3482 | { |
093d3ff1 RD |
3483 | if (temp1) |
3484 | delete arg1; | |
4f89f6a3 | 3485 | } |
d14a1e28 RD |
3486 | return resultobj; |
3487 | fail: | |
093d3ff1 RD |
3488 | { |
3489 | if (temp1) | |
3490 | delete arg1; | |
3491 | } | |
d14a1e28 RD |
3492 | return NULL; |
3493 | } | |
3494 | ||
3495 | ||
093d3ff1 | 3496 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3497 | PyObject *resultobj = NULL; |
093d3ff1 | 3498 | wxString *arg1 = 0 ; |
d14a1e28 | 3499 | wxString result; |
093d3ff1 RD |
3500 | bool temp1 = false ; |
3501 | PyObject * obj0 = 0 ; | |
d14a1e28 | 3502 | char *kwnames[] = { |
093d3ff1 | 3503 | (char *) "name", NULL |
d14a1e28 RD |
3504 | }; |
3505 | ||
093d3ff1 RD |
3506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; |
3507 | { | |
3508 | arg1 = wxString_in_helper(obj0); | |
3509 | if (arg1 == NULL) SWIG_fail; | |
3510 | temp1 = true; | |
3511 | } | |
d14a1e28 RD |
3512 | { |
3513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3514 | result = wxSystemOptions::GetOption((wxString const &)*arg1); |
d14a1e28 RD |
3515 | |
3516 | wxPyEndAllowThreads(__tstate); | |
3517 | if (PyErr_Occurred()) SWIG_fail; | |
3518 | } | |
3519 | { | |
3520 | #if wxUSE_UNICODE | |
3521 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3522 | #else | |
3523 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3524 | #endif | |
3525 | } | |
093d3ff1 RD |
3526 | { |
3527 | if (temp1) | |
3528 | delete arg1; | |
3529 | } | |
d14a1e28 RD |
3530 | return resultobj; |
3531 | fail: | |
093d3ff1 RD |
3532 | { |
3533 | if (temp1) | |
3534 | delete arg1; | |
3535 | } | |
d14a1e28 RD |
3536 | return NULL; |
3537 | } | |
3538 | ||
3539 | ||
093d3ff1 | 3540 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3541 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3542 | wxString *arg1 = 0 ; |
3543 | int result; | |
ae8162c8 | 3544 | bool temp1 = false ; |
d14a1e28 RD |
3545 | PyObject * obj0 = 0 ; |
3546 | char *kwnames[] = { | |
093d3ff1 | 3547 | (char *) "name", NULL |
d14a1e28 RD |
3548 | }; |
3549 | ||
093d3ff1 RD |
3550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; |
3551 | { | |
3552 | arg1 = wxString_in_helper(obj0); | |
3553 | if (arg1 == NULL) SWIG_fail; | |
3554 | temp1 = true; | |
d14a1e28 RD |
3555 | } |
3556 | { | |
3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3558 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); |
d14a1e28 RD |
3559 | |
3560 | wxPyEndAllowThreads(__tstate); | |
3561 | if (PyErr_Occurred()) SWIG_fail; | |
3562 | } | |
4f89f6a3 | 3563 | { |
32fe5131 | 3564 | resultobj = SWIG_From_int(static_cast<int >(result)); |
4f89f6a3 | 3565 | } |
d14a1e28 RD |
3566 | { |
3567 | if (temp1) | |
3568 | delete arg1; | |
3569 | } | |
3570 | return resultobj; | |
3571 | fail: | |
3572 | { | |
3573 | if (temp1) | |
3574 | delete arg1; | |
3575 | } | |
3576 | return NULL; | |
3577 | } | |
3578 | ||
3579 | ||
093d3ff1 | 3580 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3581 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3582 | wxString *arg1 = 0 ; |
3583 | bool result; | |
3584 | bool temp1 = false ; | |
3585 | PyObject * obj0 = 0 ; | |
d14a1e28 | 3586 | char *kwnames[] = { |
093d3ff1 | 3587 | (char *) "name", NULL |
d14a1e28 RD |
3588 | }; |
3589 | ||
093d3ff1 RD |
3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; |
3591 | { | |
3592 | arg1 = wxString_in_helper(obj0); | |
3593 | if (arg1 == NULL) SWIG_fail; | |
3594 | temp1 = true; | |
3595 | } | |
d14a1e28 RD |
3596 | { |
3597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3598 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); |
d14a1e28 RD |
3599 | |
3600 | wxPyEndAllowThreads(__tstate); | |
3601 | if (PyErr_Occurred()) SWIG_fail; | |
3602 | } | |
093d3ff1 RD |
3603 | { |
3604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3605 | } | |
3606 | { | |
3607 | if (temp1) | |
3608 | delete arg1; | |
3609 | } | |
d14a1e28 RD |
3610 | return resultobj; |
3611 | fail: | |
093d3ff1 RD |
3612 | { |
3613 | if (temp1) | |
3614 | delete arg1; | |
3615 | } | |
d14a1e28 RD |
3616 | return NULL; |
3617 | } | |
3618 | ||
3619 | ||
396fb509 | 3620 | static PyObject *_wrap_SystemOptions_IsFalse(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3621 | PyObject *resultobj = NULL; |
396fb509 RD |
3622 | wxString *arg1 = 0 ; |
3623 | bool result; | |
3624 | bool temp1 = false ; | |
3625 | PyObject * obj0 = 0 ; | |
3626 | char *kwnames[] = { | |
3627 | (char *) "name", NULL | |
3628 | }; | |
3629 | ||
3630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_IsFalse",kwnames,&obj0)) goto fail; | |
3631 | { | |
3632 | arg1 = wxString_in_helper(obj0); | |
3633 | if (arg1 == NULL) SWIG_fail; | |
3634 | temp1 = true; | |
3635 | } | |
3636 | { | |
3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3638 | result = (bool)wxSystemOptions::IsFalse((wxString const &)*arg1); | |
3639 | ||
3640 | wxPyEndAllowThreads(__tstate); | |
3641 | if (PyErr_Occurred()) SWIG_fail; | |
3642 | } | |
3643 | { | |
3644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3645 | } | |
3646 | { | |
3647 | if (temp1) | |
3648 | delete arg1; | |
3649 | } | |
3650 | return resultobj; | |
3651 | fail: | |
3652 | { | |
3653 | if (temp1) | |
3654 | delete arg1; | |
3655 | } | |
3656 | return NULL; | |
3657 | } | |
3658 | ||
3659 | ||
093d3ff1 RD |
3660 | static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) { |
3661 | PyObject *obj; | |
3662 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3663 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
3664 | Py_INCREF(obj); | |
3665 | return Py_BuildValue((char *)""); | |
3666 | } | |
3667 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { | |
3668 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
3669 | return 1; | |
3670 | } | |
3671 | ||
3672 | ||
3673 | static PyObject *_wrap_FileSelectorPromptStr_get(void) { | |
32fe5131 | 3674 | PyObject *pyobj = NULL; |
093d3ff1 RD |
3675 | |
3676 | { | |
3677 | #if wxUSE_UNICODE | |
3678 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
3679 | #else | |
3680 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
3681 | #endif | |
3682 | } | |
3683 | return pyobj; | |
3684 | } | |
3685 | ||
3686 | ||
3687 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { | |
3688 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
3689 | return 1; | |
3690 | } | |
3691 | ||
3692 | ||
3693 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get(void) { | |
32fe5131 | 3694 | PyObject *pyobj = NULL; |
093d3ff1 RD |
3695 | |
3696 | { | |
3697 | #if wxUSE_UNICODE | |
3698 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
3699 | #else | |
3700 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
3701 | #endif | |
3702 | } | |
3703 | return pyobj; | |
3704 | } | |
3705 | ||
3706 | ||
3707 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { | |
3708 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
3709 | return 1; | |
3710 | } | |
3711 | ||
3712 | ||
3713 | static PyObject *_wrap_DirSelectorPromptStr_get(void) { | |
32fe5131 | 3714 | PyObject *pyobj = NULL; |
093d3ff1 RD |
3715 | |
3716 | { | |
3717 | #if wxUSE_UNICODE | |
3718 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
3719 | #else | |
3720 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
3721 | #endif | |
3722 | } | |
3723 | return pyobj; | |
3724 | } | |
3725 | ||
3726 | ||
3727 | static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3728 | PyObject *resultobj = NULL; |
093d3ff1 | 3729 | long result; |
d14a1e28 RD |
3730 | char *kwnames[] = { |
3731 | NULL | |
3732 | }; | |
3733 | ||
093d3ff1 | 3734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; |
d14a1e28 RD |
3735 | { |
3736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3737 | result = (long)wxNewId(); |
d14a1e28 RD |
3738 | |
3739 | wxPyEndAllowThreads(__tstate); | |
3740 | if (PyErr_Occurred()) SWIG_fail; | |
3741 | } | |
093d3ff1 | 3742 | { |
32fe5131 | 3743 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 3744 | } |
d14a1e28 RD |
3745 | return resultobj; |
3746 | fail: | |
3747 | return NULL; | |
3748 | } | |
3749 | ||
3750 | ||
093d3ff1 | 3751 | static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3752 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3753 | long arg1 ; |
3754 | PyObject * obj0 = 0 ; | |
d14a1e28 | 3755 | char *kwnames[] = { |
093d3ff1 | 3756 | (char *) "id", NULL |
d14a1e28 RD |
3757 | }; |
3758 | ||
093d3ff1 RD |
3759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
3760 | { | |
32fe5131 | 3761 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
3762 | if (SWIG_arg_fail(1)) SWIG_fail; |
3763 | } | |
d14a1e28 RD |
3764 | { |
3765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3766 | wxRegisterId(arg1); |
d14a1e28 RD |
3767 | |
3768 | wxPyEndAllowThreads(__tstate); | |
3769 | if (PyErr_Occurred()) SWIG_fail; | |
3770 | } | |
093d3ff1 | 3771 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3772 | return resultobj; |
3773 | fail: | |
3774 | return NULL; | |
3775 | } | |
3776 | ||
3777 | ||
093d3ff1 | 3778 | static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3779 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3780 | long result; |
3781 | char *kwnames[] = { | |
3782 | NULL | |
3783 | }; | |
3784 | ||
093d3ff1 | 3785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; |
d14a1e28 RD |
3786 | { |
3787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3788 | result = (long)wxGetCurrentId(); |
d14a1e28 RD |
3789 | |
3790 | wxPyEndAllowThreads(__tstate); | |
3791 | if (PyErr_Occurred()) SWIG_fail; | |
3792 | } | |
093d3ff1 | 3793 | { |
32fe5131 | 3794 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 3795 | } |
d14a1e28 RD |
3796 | return resultobj; |
3797 | fail: | |
3798 | return NULL; | |
3799 | } | |
3800 | ||
3801 | ||
093d3ff1 | 3802 | static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3803 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3804 | int arg1 ; |
3805 | bool result; | |
994141e6 | 3806 | PyObject * obj0 = 0 ; |
d14a1e28 | 3807 | char *kwnames[] = { |
093d3ff1 | 3808 | (char *) "id", NULL |
d14a1e28 RD |
3809 | }; |
3810 | ||
093d3ff1 RD |
3811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail; |
3812 | { | |
32fe5131 | 3813 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3814 | if (SWIG_arg_fail(1)) SWIG_fail; |
3815 | } | |
d14a1e28 RD |
3816 | { |
3817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3818 | result = (bool)wxIsStockID(arg1); |
d14a1e28 RD |
3819 | |
3820 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3821 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3822 | } |
4f89f6a3 RD |
3823 | { |
3824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3825 | } | |
d14a1e28 RD |
3826 | return resultobj; |
3827 | fail: | |
3828 | return NULL; | |
3829 | } | |
3830 | ||
3831 | ||
093d3ff1 | 3832 | static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3833 | PyObject *resultobj = NULL; |
d14a1e28 | 3834 | int arg1 ; |
093d3ff1 RD |
3835 | wxString *arg2 = 0 ; |
3836 | bool result; | |
3837 | bool temp2 = false ; | |
994141e6 | 3838 | PyObject * obj0 = 0 ; |
093d3ff1 | 3839 | PyObject * obj1 = 0 ; |
d14a1e28 | 3840 | char *kwnames[] = { |
093d3ff1 | 3841 | (char *) "id",(char *) "label", NULL |
d14a1e28 RD |
3842 | }; |
3843 | ||
093d3ff1 RD |
3844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail; |
3845 | { | |
32fe5131 | 3846 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3847 | if (SWIG_arg_fail(1)) SWIG_fail; |
3848 | } | |
3849 | { | |
3850 | arg2 = wxString_in_helper(obj1); | |
3851 | if (arg2 == NULL) SWIG_fail; | |
3852 | temp2 = true; | |
3853 | } | |
d14a1e28 RD |
3854 | { |
3855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3856 | result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
3857 | |
3858 | wxPyEndAllowThreads(__tstate); | |
3859 | if (PyErr_Occurred()) SWIG_fail; | |
3860 | } | |
093d3ff1 RD |
3861 | { |
3862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3863 | } | |
3864 | { | |
3865 | if (temp2) | |
3866 | delete arg2; | |
3867 | } | |
d14a1e28 RD |
3868 | return resultobj; |
3869 | fail: | |
093d3ff1 RD |
3870 | { |
3871 | if (temp2) | |
3872 | delete arg2; | |
3873 | } | |
d14a1e28 RD |
3874 | return NULL; |
3875 | } | |
3876 | ||
3877 | ||
093d3ff1 | 3878 | static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3879 | PyObject *resultobj = NULL; |
093d3ff1 | 3880 | int arg1 ; |
fef4c27a RD |
3881 | bool arg2 = (bool) true ; |
3882 | wxString arg3 = (wxString) wxPyEmptyString ; | |
093d3ff1 | 3883 | wxString result; |
d14a1e28 | 3884 | PyObject * obj0 = 0 ; |
fef4c27a RD |
3885 | PyObject * obj1 = 0 ; |
3886 | PyObject * obj2 = 0 ; | |
d14a1e28 | 3887 | char *kwnames[] = { |
fef4c27a | 3888 | (char *) "id",(char *) "withCodes",(char *) "accelerator", NULL |
d14a1e28 RD |
3889 | }; |
3890 | ||
fef4c27a | 3891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GetStockLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 | 3892 | { |
32fe5131 | 3893 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3894 | if (SWIG_arg_fail(1)) SWIG_fail; |
3895 | } | |
fef4c27a RD |
3896 | if (obj1) { |
3897 | { | |
32fe5131 | 3898 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
fef4c27a RD |
3899 | if (SWIG_arg_fail(2)) SWIG_fail; |
3900 | } | |
3901 | } | |
3902 | if (obj2) { | |
3903 | { | |
3904 | wxString* sptr = wxString_in_helper(obj2); | |
3905 | if (sptr == NULL) SWIG_fail; | |
3906 | arg3 = *sptr; | |
3907 | delete sptr; | |
3908 | } | |
3909 | } | |
d14a1e28 RD |
3910 | { |
3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fef4c27a | 3912 | result = wxGetStockLabel(arg1,arg2,arg3); |
7f98d120 RD |
3913 | |
3914 | wxPyEndAllowThreads(__tstate); | |
3915 | if (PyErr_Occurred()) SWIG_fail; | |
3916 | } | |
093d3ff1 RD |
3917 | { |
3918 | #if wxUSE_UNICODE | |
3919 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3920 | #else | |
3921 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3922 | #endif | |
3923 | } | |
7f98d120 RD |
3924 | return resultobj; |
3925 | fail: | |
3926 | return NULL; | |
3927 | } | |
3928 | ||
3929 | ||
093d3ff1 | 3930 | static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3931 | PyObject *resultobj = NULL; |
7f98d120 | 3932 | char *kwnames[] = { |
093d3ff1 | 3933 | NULL |
7f98d120 RD |
3934 | }; |
3935 | ||
093d3ff1 | 3936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; |
7f98d120 | 3937 | { |
093d3ff1 | 3938 | if (!wxPyCheckForApp()) SWIG_fail; |
7f98d120 | 3939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3940 | wxBell(); |
d14a1e28 RD |
3941 | |
3942 | wxPyEndAllowThreads(__tstate); | |
3943 | if (PyErr_Occurred()) SWIG_fail; | |
3944 | } | |
3945 | Py_INCREF(Py_None); resultobj = Py_None; | |
3946 | return resultobj; | |
3947 | fail: | |
3948 | return NULL; | |
3949 | } | |
3950 | ||
3951 | ||
093d3ff1 | 3952 | static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3953 | PyObject *resultobj = NULL; |
d14a1e28 | 3954 | char *kwnames[] = { |
093d3ff1 | 3955 | NULL |
d14a1e28 RD |
3956 | }; |
3957 | ||
093d3ff1 | 3958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; |
d14a1e28 | 3959 | { |
093d3ff1 | 3960 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3962 | wxEndBusyCursor(); |
d14a1e28 RD |
3963 | |
3964 | wxPyEndAllowThreads(__tstate); | |
3965 | if (PyErr_Occurred()) SWIG_fail; | |
3966 | } | |
3967 | Py_INCREF(Py_None); resultobj = Py_None; | |
3968 | return resultobj; | |
3969 | fail: | |
3970 | return NULL; | |
3971 | } | |
3972 | ||
3973 | ||
093d3ff1 | 3974 | static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3975 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3976 | bool arg1 = (bool) true ; |
3977 | long result; | |
d14a1e28 RD |
3978 | PyObject * obj0 = 0 ; |
3979 | char *kwnames[] = { | |
093d3ff1 | 3980 | (char *) "resetTimer", NULL |
d14a1e28 RD |
3981 | }; |
3982 | ||
093d3ff1 RD |
3983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; |
3984 | if (obj0) { | |
3985 | { | |
32fe5131 | 3986 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 RD |
3987 | if (SWIG_arg_fail(1)) SWIG_fail; |
3988 | } | |
d14a1e28 RD |
3989 | } |
3990 | { | |
3991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3992 | result = (long)wxGetElapsedTime(arg1); |
d14a1e28 RD |
3993 | |
3994 | wxPyEndAllowThreads(__tstate); | |
3995 | if (PyErr_Occurred()) SWIG_fail; | |
3996 | } | |
3997 | { | |
32fe5131 | 3998 | resultobj = SWIG_From_long(static_cast<long >(result)); |
d14a1e28 | 3999 | } |
093d3ff1 RD |
4000 | return resultobj; |
4001 | fail: | |
d14a1e28 RD |
4002 | return NULL; |
4003 | } | |
4004 | ||
4005 | ||
093d3ff1 | 4006 | static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4007 | PyObject *resultobj = NULL; |
093d3ff1 | 4008 | bool result; |
d14a1e28 RD |
4009 | char *kwnames[] = { |
4010 | NULL | |
4011 | }; | |
4012 | ||
093d3ff1 | 4013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; |
d14a1e28 RD |
4014 | { |
4015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4016 | result = (bool)wxIsBusy(); |
d14a1e28 RD |
4017 | |
4018 | wxPyEndAllowThreads(__tstate); | |
4019 | if (PyErr_Occurred()) SWIG_fail; | |
4020 | } | |
4021 | { | |
093d3ff1 | 4022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4023 | } |
4024 | return resultobj; | |
4025 | fail: | |
4026 | return NULL; | |
4027 | } | |
4028 | ||
4029 | ||
093d3ff1 | 4030 | static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4031 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4032 | wxString result; |
4033 | char *kwnames[] = { | |
4034 | NULL | |
4035 | }; | |
4036 | ||
093d3ff1 | 4037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; |
d14a1e28 RD |
4038 | { |
4039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4040 | result = wxNow(); |
d14a1e28 RD |
4041 | |
4042 | wxPyEndAllowThreads(__tstate); | |
4043 | if (PyErr_Occurred()) SWIG_fail; | |
4044 | } | |
4045 | { | |
4046 | #if wxUSE_UNICODE | |
4047 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4048 | #else | |
4049 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4050 | #endif | |
4051 | } | |
4052 | return resultobj; | |
4053 | fail: | |
4054 | return NULL; | |
4055 | } | |
4056 | ||
4057 | ||
093d3ff1 | 4058 | static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4059 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4060 | wxString const &arg1_defvalue = wxPyEmptyString ; |
4061 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4062 | bool result; | |
4063 | bool temp1 = false ; | |
4064 | PyObject * obj0 = 0 ; | |
d14a1e28 | 4065 | char *kwnames[] = { |
093d3ff1 | 4066 | (char *) "command", NULL |
d14a1e28 RD |
4067 | }; |
4068 | ||
093d3ff1 RD |
4069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; |
4070 | if (obj0) { | |
4071 | { | |
4072 | arg1 = wxString_in_helper(obj0); | |
4073 | if (arg1 == NULL) SWIG_fail; | |
4074 | temp1 = true; | |
4075 | } | |
4076 | } | |
d14a1e28 RD |
4077 | { |
4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4079 | result = (bool)wxShell((wxString const &)*arg1); |
d14a1e28 RD |
4080 | |
4081 | wxPyEndAllowThreads(__tstate); | |
4082 | if (PyErr_Occurred()) SWIG_fail; | |
4083 | } | |
4084 | { | |
093d3ff1 RD |
4085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
4086 | } | |
4087 | { | |
4088 | if (temp1) | |
4089 | delete arg1; | |
d14a1e28 RD |
4090 | } |
4091 | return resultobj; | |
4092 | fail: | |
093d3ff1 RD |
4093 | { |
4094 | if (temp1) | |
4095 | delete arg1; | |
4096 | } | |
d14a1e28 RD |
4097 | return NULL; |
4098 | } | |
4099 | ||
4100 | ||
093d3ff1 | 4101 | static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4102 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4103 | char *kwnames[] = { |
4104 | NULL | |
4105 | }; | |
4106 | ||
093d3ff1 | 4107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; |
d14a1e28 RD |
4108 | { |
4109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
4110 | wxStartTimer(); |
4111 | ||
4112 | wxPyEndAllowThreads(__tstate); | |
4113 | if (PyErr_Occurred()) SWIG_fail; | |
4114 | } | |
4115 | Py_INCREF(Py_None); resultobj = Py_None; | |
4116 | return resultobj; | |
4117 | fail: | |
4118 | return NULL; | |
4119 | } | |
4120 | ||
4121 | ||
4122 | static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4123 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4124 | int *arg1 = (int *) 0 ; |
4125 | int *arg2 = (int *) 0 ; | |
4126 | int result; | |
4127 | int temp1 ; | |
4128 | int res1 = 0 ; | |
4129 | int temp2 ; | |
4130 | int res2 = 0 ; | |
4131 | char *kwnames[] = { | |
4132 | NULL | |
4133 | }; | |
4134 | ||
4135 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
4136 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
4138 | { | |
4139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4140 | result = (int)wxGetOsVersion(arg1,arg2); | |
d14a1e28 RD |
4141 | |
4142 | wxPyEndAllowThreads(__tstate); | |
4143 | if (PyErr_Occurred()) SWIG_fail; | |
4144 | } | |
4145 | { | |
32fe5131 | 4146 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d14a1e28 | 4147 | } |
093d3ff1 RD |
4148 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4149 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4150 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4151 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
4152 | return resultobj; |
4153 | fail: | |
4154 | return NULL; | |
4155 | } | |
4156 | ||
4157 | ||
093d3ff1 | 4158 | static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4159 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4160 | wxString result; |
4161 | char *kwnames[] = { | |
4162 | NULL | |
4163 | }; | |
4164 | ||
093d3ff1 | 4165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; |
d14a1e28 RD |
4166 | { |
4167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4168 | result = wxGetOsDescription(); |
d14a1e28 RD |
4169 | |
4170 | wxPyEndAllowThreads(__tstate); | |
4171 | if (PyErr_Occurred()) SWIG_fail; | |
4172 | } | |
4173 | { | |
4174 | #if wxUSE_UNICODE | |
4175 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4176 | #else | |
4177 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4178 | #endif | |
4179 | } | |
4180 | return resultobj; | |
4181 | fail: | |
4182 | return NULL; | |
4183 | } | |
4184 | ||
4185 | ||
093d3ff1 | 4186 | static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4187 | PyObject *resultobj = NULL; |
943e8dfd | 4188 | wxMemorySize result; |
d14a1e28 RD |
4189 | char *kwnames[] = { |
4190 | NULL | |
4191 | }; | |
4192 | ||
093d3ff1 | 4193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; |
d14a1e28 RD |
4194 | { |
4195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
943e8dfd | 4196 | result = wxGetFreeMemory(); |
d14a1e28 RD |
4197 | |
4198 | wxPyEndAllowThreads(__tstate); | |
4199 | if (PyErr_Occurred()) SWIG_fail; | |
4200 | } | |
4201 | { | |
943e8dfd | 4202 | wxMemorySize * resultptr; |
32fe5131 | 4203 | resultptr = new wxMemorySize(static_cast<wxMemorySize & >(result)); |
943e8dfd | 4204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMemorySize, 1); |
d14a1e28 RD |
4205 | } |
4206 | return resultobj; | |
4207 | fail: | |
4208 | return NULL; | |
4209 | } | |
4210 | ||
4211 | ||
093d3ff1 | 4212 | static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4213 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4214 | wxShutdownFlags arg1 ; |
4215 | bool result; | |
d14a1e28 RD |
4216 | PyObject * obj0 = 0 ; |
4217 | char *kwnames[] = { | |
093d3ff1 | 4218 | (char *) "wFlags", NULL |
d14a1e28 RD |
4219 | }; |
4220 | ||
093d3ff1 RD |
4221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
4222 | { | |
32fe5131 | 4223 | arg1 = static_cast<wxShutdownFlags >(SWIG_As_int(obj0)); |
093d3ff1 | 4224 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 RD |
4225 | } |
4226 | { | |
093d3ff1 | 4227 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 4229 | result = (bool)wxShutdown(arg1); |
d14a1e28 RD |
4230 | |
4231 | wxPyEndAllowThreads(__tstate); | |
4232 | if (PyErr_Occurred()) SWIG_fail; | |
4233 | } | |
4234 | { | |
093d3ff1 | 4235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4236 | } |
4237 | return resultobj; | |
4238 | fail: | |
093d3ff1 RD |
4239 | return NULL; |
4240 | } | |
4241 | ||
4242 | ||
4243 | static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4244 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4245 | int arg1 ; |
4246 | PyObject * obj0 = 0 ; | |
4247 | char *kwnames[] = { | |
4248 | (char *) "secs", NULL | |
4249 | }; | |
4250 | ||
4251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
d14a1e28 | 4252 | { |
32fe5131 | 4253 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
4254 | if (SWIG_arg_fail(1)) SWIG_fail; |
4255 | } | |
4256 | { | |
4257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4258 | wxSleep(arg1); | |
4259 | ||
4260 | wxPyEndAllowThreads(__tstate); | |
4261 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 4262 | } |
093d3ff1 RD |
4263 | Py_INCREF(Py_None); resultobj = Py_None; |
4264 | return resultobj; | |
4265 | fail: | |
d14a1e28 RD |
4266 | return NULL; |
4267 | } | |
4268 | ||
4269 | ||
093d3ff1 | 4270 | static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4271 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4272 | unsigned long arg1 ; |
4273 | PyObject * obj0 = 0 ; | |
d14a1e28 | 4274 | char *kwnames[] = { |
093d3ff1 | 4275 | (char *) "milliseconds", NULL |
d14a1e28 RD |
4276 | }; |
4277 | ||
093d3ff1 RD |
4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail; |
4279 | { | |
32fe5131 | 4280 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
4281 | if (SWIG_arg_fail(1)) SWIG_fail; |
4282 | } | |
d14a1e28 RD |
4283 | { |
4284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4285 | wxMilliSleep(arg1); |
d14a1e28 RD |
4286 | |
4287 | wxPyEndAllowThreads(__tstate); | |
4288 | if (PyErr_Occurred()) SWIG_fail; | |
4289 | } | |
093d3ff1 | 4290 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
4291 | return resultobj; |
4292 | fail: | |
4293 | return NULL; | |
4294 | } | |
4295 | ||
4296 | ||
093d3ff1 | 4297 | static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4298 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4299 | unsigned long arg1 ; |
4300 | PyObject * obj0 = 0 ; | |
d14a1e28 | 4301 | char *kwnames[] = { |
093d3ff1 | 4302 | (char *) "microseconds", NULL |
d14a1e28 RD |
4303 | }; |
4304 | ||
093d3ff1 RD |
4305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail; |
4306 | { | |
32fe5131 | 4307 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
4308 | if (SWIG_arg_fail(1)) SWIG_fail; |
4309 | } | |
d14a1e28 RD |
4310 | { |
4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4312 | wxMicroSleep(arg1); |
d14a1e28 RD |
4313 | |
4314 | wxPyEndAllowThreads(__tstate); | |
4315 | if (PyErr_Occurred()) SWIG_fail; | |
4316 | } | |
4317 | Py_INCREF(Py_None); resultobj = Py_None; | |
4318 | return resultobj; | |
4319 | fail: | |
4320 | return NULL; | |
4321 | } | |
4322 | ||
4323 | ||
093d3ff1 | 4324 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4325 | PyObject *resultobj = NULL; |
093d3ff1 | 4326 | bool arg1 ; |
d14a1e28 | 4327 | PyObject * obj0 = 0 ; |
d14a1e28 | 4328 | char *kwnames[] = { |
093d3ff1 | 4329 | (char *) "enable", NULL |
d14a1e28 RD |
4330 | }; |
4331 | ||
093d3ff1 RD |
4332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; |
4333 | { | |
32fe5131 | 4334 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 | 4335 | if (SWIG_arg_fail(1)) SWIG_fail; |
994141e6 | 4336 | } |
d14a1e28 RD |
4337 | { |
4338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4339 | wxEnableTopLevelWindows(arg1); |
d14a1e28 RD |
4340 | |
4341 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4342 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4343 | } |
093d3ff1 | 4344 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
4345 | return resultobj; |
4346 | fail: | |
d14a1e28 RD |
4347 | return NULL; |
4348 | } | |
4349 | ||
4350 | ||
093d3ff1 | 4351 | static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4352 | PyObject *resultobj = NULL; |
d14a1e28 | 4353 | wxString *arg1 = 0 ; |
d14a1e28 | 4354 | wxString result; |
ae8162c8 | 4355 | bool temp1 = false ; |
d14a1e28 | 4356 | PyObject * obj0 = 0 ; |
d14a1e28 | 4357 | char *kwnames[] = { |
093d3ff1 | 4358 | (char *) "in", NULL |
d14a1e28 RD |
4359 | }; |
4360 | ||
093d3ff1 | 4361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4362 | { |
4363 | arg1 = wxString_in_helper(obj0); | |
4364 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4365 | temp1 = true; |
d14a1e28 RD |
4366 | } |
4367 | { | |
d14a1e28 | 4368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4369 | result = wxStripMenuCodes((wxString const &)*arg1); |
d14a1e28 RD |
4370 | |
4371 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4372 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4373 | } |
4374 | { | |
4375 | #if wxUSE_UNICODE | |
4376 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4377 | #else | |
4378 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4379 | #endif | |
4380 | } | |
4381 | { | |
4382 | if (temp1) | |
4383 | delete arg1; | |
4384 | } | |
d14a1e28 RD |
4385 | return resultobj; |
4386 | fail: | |
4387 | { | |
4388 | if (temp1) | |
4389 | delete arg1; | |
4390 | } | |
d14a1e28 RD |
4391 | return NULL; |
4392 | } | |
4393 | ||
4394 | ||
093d3ff1 | 4395 | static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4396 | PyObject *resultobj = NULL; |
d14a1e28 | 4397 | wxString result; |
d14a1e28 | 4398 | char *kwnames[] = { |
093d3ff1 | 4399 | NULL |
d14a1e28 RD |
4400 | }; |
4401 | ||
093d3ff1 | 4402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; |
d14a1e28 RD |
4403 | { |
4404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4405 | result = wxGetEmailAddress(); |
d14a1e28 RD |
4406 | |
4407 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4408 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4409 | } |
4410 | { | |
4411 | #if wxUSE_UNICODE | |
4412 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4413 | #else | |
4414 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4415 | #endif | |
4416 | } | |
d14a1e28 RD |
4417 | return resultobj; |
4418 | fail: | |
d14a1e28 RD |
4419 | return NULL; |
4420 | } | |
4421 | ||
4422 | ||
093d3ff1 | 4423 | static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4424 | PyObject *resultobj = NULL; |
d14a1e28 | 4425 | wxString result; |
d14a1e28 | 4426 | char *kwnames[] = { |
093d3ff1 | 4427 | NULL |
d14a1e28 RD |
4428 | }; |
4429 | ||
093d3ff1 | 4430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; |
d14a1e28 RD |
4431 | { |
4432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4433 | result = wxGetHostName(); |
d14a1e28 RD |
4434 | |
4435 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4436 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4437 | } |
4438 | { | |
4439 | #if wxUSE_UNICODE | |
4440 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4441 | #else | |
4442 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4443 | #endif | |
4444 | } | |
d14a1e28 RD |
4445 | return resultobj; |
4446 | fail: | |
d14a1e28 RD |
4447 | return NULL; |
4448 | } | |
4449 | ||
4450 | ||
093d3ff1 | 4451 | static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4452 | PyObject *resultobj = NULL; |
d14a1e28 | 4453 | wxString result; |
d14a1e28 | 4454 | char *kwnames[] = { |
093d3ff1 | 4455 | NULL |
d14a1e28 RD |
4456 | }; |
4457 | ||
093d3ff1 | 4458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; |
d14a1e28 | 4459 | { |
093d3ff1 RD |
4460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4461 | result = wxGetFullHostName(); | |
4462 | ||
4463 | wxPyEndAllowThreads(__tstate); | |
15afbcd0 | 4464 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4465 | } |
093d3ff1 RD |
4466 | { |
4467 | #if wxUSE_UNICODE | |
4468 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4469 | #else | |
4470 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4471 | #endif | |
d14a1e28 | 4472 | } |
093d3ff1 RD |
4473 | return resultobj; |
4474 | fail: | |
4475 | return NULL; | |
4476 | } | |
4477 | ||
4478 | ||
4479 | static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4480 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4481 | wxString result; |
4482 | char *kwnames[] = { | |
4483 | NULL | |
4484 | }; | |
4485 | ||
4486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
d14a1e28 RD |
4487 | { |
4488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4489 | result = wxGetUserId(); |
d14a1e28 RD |
4490 | |
4491 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4492 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4493 | } |
4494 | { | |
4495 | #if wxUSE_UNICODE | |
4496 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4497 | #else | |
4498 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4499 | #endif | |
4500 | } | |
093d3ff1 RD |
4501 | return resultobj; |
4502 | fail: | |
4503 | return NULL; | |
4504 | } | |
4505 | ||
4506 | ||
4507 | static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4508 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4509 | wxString result; |
4510 | char *kwnames[] = { | |
4511 | NULL | |
4512 | }; | |
4513 | ||
4514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
d14a1e28 | 4515 | { |
093d3ff1 RD |
4516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4517 | result = wxGetUserName(); | |
4518 | ||
4519 | wxPyEndAllowThreads(__tstate); | |
4520 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4521 | } |
4522 | { | |
093d3ff1 RD |
4523 | #if wxUSE_UNICODE |
4524 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4525 | #else | |
4526 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4527 | #endif | |
d14a1e28 RD |
4528 | } |
4529 | return resultobj; | |
4530 | fail: | |
093d3ff1 RD |
4531 | return NULL; |
4532 | } | |
4533 | ||
4534 | ||
4535 | static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4536 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4537 | wxString result; |
4538 | char *kwnames[] = { | |
4539 | NULL | |
4540 | }; | |
4541 | ||
4542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
d14a1e28 | 4543 | { |
093d3ff1 RD |
4544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4545 | result = wxGetHomeDir(); | |
4546 | ||
4547 | wxPyEndAllowThreads(__tstate); | |
4548 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4549 | } |
4550 | { | |
093d3ff1 RD |
4551 | #if wxUSE_UNICODE |
4552 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4553 | #else | |
4554 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4555 | #endif | |
d14a1e28 | 4556 | } |
093d3ff1 RD |
4557 | return resultobj; |
4558 | fail: | |
d14a1e28 RD |
4559 | return NULL; |
4560 | } | |
4561 | ||
4562 | ||
093d3ff1 | 4563 | static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4564 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4565 | wxString const &arg1_defvalue = wxPyEmptyString ; |
4566 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d14a1e28 | 4567 | wxString result; |
ae8162c8 | 4568 | bool temp1 = false ; |
d14a1e28 | 4569 | PyObject * obj0 = 0 ; |
d14a1e28 | 4570 | char *kwnames[] = { |
093d3ff1 | 4571 | (char *) "user", NULL |
d14a1e28 RD |
4572 | }; |
4573 | ||
093d3ff1 RD |
4574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; |
4575 | if (obj0) { | |
d14a1e28 | 4576 | { |
093d3ff1 RD |
4577 | arg1 = wxString_in_helper(obj0); |
4578 | if (arg1 == NULL) SWIG_fail; | |
4579 | temp1 = true; | |
d14a1e28 RD |
4580 | } |
4581 | } | |
d14a1e28 RD |
4582 | { |
4583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4584 | result = wxGetUserHome((wxString const &)*arg1); |
d14a1e28 RD |
4585 | |
4586 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4587 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4588 | } |
4589 | { | |
4590 | #if wxUSE_UNICODE | |
4591 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4592 | #else | |
4593 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4594 | #endif | |
4595 | } | |
4596 | { | |
4597 | if (temp1) | |
4598 | delete arg1; | |
4599 | } | |
d14a1e28 RD |
4600 | return resultobj; |
4601 | fail: | |
4602 | { | |
4603 | if (temp1) | |
4604 | delete arg1; | |
4605 | } | |
d14a1e28 RD |
4606 | return NULL; |
4607 | } | |
4608 | ||
4609 | ||
093d3ff1 | 4610 | static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4611 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4612 | unsigned long result; |
4613 | char *kwnames[] = { | |
4614 | NULL | |
4615 | }; | |
4616 | ||
4617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
4618 | { | |
4619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4620 | result = (unsigned long)wxGetProcessId(); | |
4621 | ||
4622 | wxPyEndAllowThreads(__tstate); | |
4623 | if (PyErr_Occurred()) SWIG_fail; | |
4624 | } | |
4625 | { | |
32fe5131 | 4626 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 RD |
4627 | } |
4628 | return resultobj; | |
4629 | fail: | |
4630 | return NULL; | |
4631 | } | |
4632 | ||
4633 | ||
4634 | static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4635 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4636 | char *kwnames[] = { |
4637 | NULL | |
4638 | }; | |
4639 | ||
4640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
4641 | { | |
4642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4643 | wxTrap(); | |
4644 | ||
4645 | wxPyEndAllowThreads(__tstate); | |
4646 | if (PyErr_Occurred()) SWIG_fail; | |
4647 | } | |
4648 | Py_INCREF(Py_None); resultobj = Py_None; | |
4649 | return resultobj; | |
4650 | fail: | |
4651 | return NULL; | |
4652 | } | |
4653 | ||
4654 | ||
4655 | static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4656 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4657 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; |
4658 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4659 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4660 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4661 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4662 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4663 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4664 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4665 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
4666 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
4667 | int arg6 = (int) 0 ; | |
4668 | wxWindow *arg7 = (wxWindow *) NULL ; | |
4669 | int arg8 = (int) -1 ; | |
4670 | int arg9 = (int) -1 ; | |
d14a1e28 | 4671 | wxString result; |
ae8162c8 RD |
4672 | bool temp1 = false ; |
4673 | bool temp2 = false ; | |
093d3ff1 RD |
4674 | bool temp3 = false ; |
4675 | bool temp4 = false ; | |
4676 | bool temp5 = false ; | |
d14a1e28 RD |
4677 | PyObject * obj0 = 0 ; |
4678 | PyObject * obj1 = 0 ; | |
4679 | PyObject * obj2 = 0 ; | |
4680 | PyObject * obj3 = 0 ; | |
994141e6 RD |
4681 | PyObject * obj4 = 0 ; |
4682 | PyObject * obj5 = 0 ; | |
d14a1e28 | 4683 | PyObject * obj6 = 0 ; |
994141e6 RD |
4684 | PyObject * obj7 = 0 ; |
4685 | PyObject * obj8 = 0 ; | |
d14a1e28 | 4686 | char *kwnames[] = { |
093d3ff1 | 4687 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
4688 | }; |
4689 | ||
093d3ff1 RD |
4690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
4691 | if (obj0) { | |
4692 | { | |
4693 | arg1 = wxString_in_helper(obj0); | |
4694 | if (arg1 == NULL) SWIG_fail; | |
4695 | temp1 = true; | |
4696 | } | |
d14a1e28 | 4697 | } |
093d3ff1 RD |
4698 | if (obj1) { |
4699 | { | |
4700 | arg2 = wxString_in_helper(obj1); | |
4701 | if (arg2 == NULL) SWIG_fail; | |
4702 | temp2 = true; | |
4703 | } | |
d14a1e28 | 4704 | } |
093d3ff1 RD |
4705 | if (obj2) { |
4706 | { | |
4707 | arg3 = wxString_in_helper(obj2); | |
4708 | if (arg3 == NULL) SWIG_fail; | |
4709 | temp3 = true; | |
4710 | } | |
d14a1e28 RD |
4711 | } |
4712 | if (obj3) { | |
093d3ff1 RD |
4713 | { |
4714 | arg4 = wxString_in_helper(obj3); | |
4715 | if (arg4 == NULL) SWIG_fail; | |
4716 | temp4 = true; | |
4717 | } | |
d14a1e28 | 4718 | } |
994141e6 | 4719 | if (obj4) { |
093d3ff1 RD |
4720 | { |
4721 | arg5 = wxString_in_helper(obj4); | |
4722 | if (arg5 == NULL) SWIG_fail; | |
4723 | temp5 = true; | |
4724 | } | |
994141e6 RD |
4725 | } |
4726 | if (obj5) { | |
093d3ff1 | 4727 | { |
32fe5131 | 4728 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
4729 | if (SWIG_arg_fail(6)) SWIG_fail; |
4730 | } | |
994141e6 | 4731 | } |
d14a1e28 | 4732 | if (obj6) { |
093d3ff1 RD |
4733 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4734 | if (SWIG_arg_fail(7)) SWIG_fail; | |
994141e6 RD |
4735 | } |
4736 | if (obj7) { | |
093d3ff1 | 4737 | { |
32fe5131 | 4738 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
4739 | if (SWIG_arg_fail(8)) SWIG_fail; |
4740 | } | |
994141e6 RD |
4741 | } |
4742 | if (obj8) { | |
093d3ff1 | 4743 | { |
32fe5131 | 4744 | arg9 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
4745 | if (SWIG_arg_fail(9)) SWIG_fail; |
4746 | } | |
d14a1e28 RD |
4747 | } |
4748 | { | |
e3b71cb8 | 4749 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4751 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); |
d14a1e28 RD |
4752 | |
4753 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4754 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4755 | } |
4756 | { | |
4757 | #if wxUSE_UNICODE | |
4758 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4759 | #else | |
4760 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4761 | #endif | |
4762 | } | |
4763 | { | |
4764 | if (temp1) | |
4765 | delete arg1; | |
4766 | } | |
4767 | { | |
4768 | if (temp2) | |
4769 | delete arg2; | |
4770 | } | |
4771 | { | |
093d3ff1 RD |
4772 | if (temp3) |
4773 | delete arg3; | |
4774 | } | |
4775 | { | |
4776 | if (temp4) | |
4777 | delete arg4; | |
4778 | } | |
4779 | { | |
4780 | if (temp5) | |
4781 | delete arg5; | |
d14a1e28 RD |
4782 | } |
4783 | return resultobj; | |
4784 | fail: | |
4785 | { | |
4786 | if (temp1) | |
4787 | delete arg1; | |
4788 | } | |
4789 | { | |
4790 | if (temp2) | |
4791 | delete arg2; | |
4792 | } | |
4793 | { | |
093d3ff1 RD |
4794 | if (temp3) |
4795 | delete arg3; | |
4796 | } | |
4797 | { | |
4798 | if (temp4) | |
4799 | delete arg4; | |
4800 | } | |
4801 | { | |
4802 | if (temp5) | |
4803 | delete arg5; | |
d14a1e28 RD |
4804 | } |
4805 | return NULL; | |
4806 | } | |
4807 | ||
4808 | ||
093d3ff1 | 4809 | static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4810 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4811 | wxString *arg1 = 0 ; |
4812 | wxString *arg2 = 0 ; | |
093d3ff1 RD |
4813 | wxString const &arg3_defvalue = wxPyEmptyString ; |
4814 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4815 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4816 | wxString result; | |
ae8162c8 RD |
4817 | bool temp1 = false ; |
4818 | bool temp2 = false ; | |
093d3ff1 | 4819 | bool temp3 = false ; |
d14a1e28 RD |
4820 | PyObject * obj0 = 0 ; |
4821 | PyObject * obj1 = 0 ; | |
4822 | PyObject * obj2 = 0 ; | |
4823 | PyObject * obj3 = 0 ; | |
d14a1e28 | 4824 | char *kwnames[] = { |
093d3ff1 | 4825 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL |
d14a1e28 RD |
4826 | }; |
4827 | ||
093d3ff1 | 4828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
4829 | { |
4830 | arg1 = wxString_in_helper(obj0); | |
4831 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4832 | temp1 = true; |
d14a1e28 RD |
4833 | } |
4834 | { | |
4835 | arg2 = wxString_in_helper(obj1); | |
4836 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4837 | temp2 = true; |
d14a1e28 | 4838 | } |
093d3ff1 RD |
4839 | if (obj2) { |
4840 | { | |
4841 | arg3 = wxString_in_helper(obj2); | |
4842 | if (arg3 == NULL) SWIG_fail; | |
4843 | temp3 = true; | |
4844 | } | |
d14a1e28 RD |
4845 | } |
4846 | if (obj3) { | |
093d3ff1 RD |
4847 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4848 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
4849 | } |
4850 | { | |
e3b71cb8 | 4851 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4853 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d14a1e28 RD |
4854 | |
4855 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4856 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4857 | } |
093d3ff1 RD |
4858 | { |
4859 | #if wxUSE_UNICODE | |
4860 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4861 | #else | |
4862 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4863 | #endif | |
4864 | } | |
d14a1e28 RD |
4865 | { |
4866 | if (temp1) | |
4867 | delete arg1; | |
4868 | } | |
4869 | { | |
4870 | if (temp2) | |
4871 | delete arg2; | |
4872 | } | |
4873 | { | |
093d3ff1 RD |
4874 | if (temp3) |
4875 | delete arg3; | |
d14a1e28 RD |
4876 | } |
4877 | return resultobj; | |
4878 | fail: | |
4879 | { | |
4880 | if (temp1) | |
4881 | delete arg1; | |
4882 | } | |
4883 | { | |
4884 | if (temp2) | |
4885 | delete arg2; | |
4886 | } | |
4887 | { | |
093d3ff1 RD |
4888 | if (temp3) |
4889 | delete arg3; | |
d14a1e28 RD |
4890 | } |
4891 | return NULL; | |
4892 | } | |
4893 | ||
4894 | ||
093d3ff1 | 4895 | static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4896 | PyObject *resultobj = NULL; |
d14a1e28 | 4897 | wxString *arg1 = 0 ; |
093d3ff1 RD |
4898 | wxString *arg2 = 0 ; |
4899 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4900 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 | 4901 | wxWindow *arg4 = (wxWindow *) NULL ; |
093d3ff1 | 4902 | wxString result; |
ae8162c8 RD |
4903 | bool temp1 = false ; |
4904 | bool temp2 = false ; | |
093d3ff1 | 4905 | bool temp3 = false ; |
d14a1e28 RD |
4906 | PyObject * obj0 = 0 ; |
4907 | PyObject * obj1 = 0 ; | |
994141e6 | 4908 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4909 | PyObject * obj3 = 0 ; |
4910 | char *kwnames[] = { | |
093d3ff1 | 4911 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL |
d14a1e28 RD |
4912 | }; |
4913 | ||
093d3ff1 | 4914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
4915 | { |
4916 | arg1 = wxString_in_helper(obj0); | |
4917 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4918 | temp1 = true; |
d14a1e28 | 4919 | } |
093d3ff1 RD |
4920 | { |
4921 | arg2 = wxString_in_helper(obj1); | |
4922 | if (arg2 == NULL) SWIG_fail; | |
4923 | temp2 = true; | |
d14a1e28 | 4924 | } |
994141e6 | 4925 | if (obj2) { |
093d3ff1 RD |
4926 | { |
4927 | arg3 = wxString_in_helper(obj2); | |
4928 | if (arg3 == NULL) SWIG_fail; | |
4929 | temp3 = true; | |
4930 | } | |
994141e6 | 4931 | } |
d14a1e28 | 4932 | if (obj3) { |
093d3ff1 RD |
4933 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4934 | if (SWIG_arg_fail(4)) SWIG_fail; | |
994141e6 | 4935 | } |
d14a1e28 | 4936 | { |
e3b71cb8 | 4937 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4939 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d14a1e28 RD |
4940 | |
4941 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4942 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4943 | } |
d14a1e28 | 4944 | { |
093d3ff1 RD |
4945 | #if wxUSE_UNICODE |
4946 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4947 | #else | |
4948 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4949 | #endif | |
4950 | } | |
4951 | { | |
4952 | if (temp1) | |
d14a1e28 RD |
4953 | delete arg1; |
4954 | } | |
4955 | { | |
4956 | if (temp2) | |
4957 | delete arg2; | |
4958 | } | |
093d3ff1 RD |
4959 | { |
4960 | if (temp3) | |
4961 | delete arg3; | |
4962 | } | |
d14a1e28 RD |
4963 | return resultobj; |
4964 | fail: | |
4965 | { | |
4966 | if (temp1) | |
4967 | delete arg1; | |
4968 | } | |
4969 | { | |
4970 | if (temp2) | |
4971 | delete arg2; | |
4972 | } | |
093d3ff1 RD |
4973 | { |
4974 | if (temp3) | |
4975 | delete arg3; | |
4976 | } | |
d14a1e28 RD |
4977 | return NULL; |
4978 | } | |
4979 | ||
4980 | ||
093d3ff1 | 4981 | static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4982 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4983 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; |
4984 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4985 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4986 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4987 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
4988 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4989 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4990 | wxWindow *arg5 = (wxWindow *) NULL ; | |
4991 | wxString result; | |
4992 | bool temp1 = false ; | |
4993 | bool temp2 = false ; | |
4994 | wxPoint temp4 ; | |
4995 | PyObject * obj0 = 0 ; | |
4996 | PyObject * obj1 = 0 ; | |
4997 | PyObject * obj2 = 0 ; | |
4998 | PyObject * obj3 = 0 ; | |
4999 | PyObject * obj4 = 0 ; | |
5000 | char *kwnames[] = { | |
5001 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
5002 | }; | |
5003 | ||
5004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5005 | if (obj0) { | |
5006 | { | |
5007 | arg1 = wxString_in_helper(obj0); | |
5008 | if (arg1 == NULL) SWIG_fail; | |
5009 | temp1 = true; | |
5010 | } | |
5011 | } | |
5012 | if (obj1) { | |
5013 | { | |
5014 | arg2 = wxString_in_helper(obj1); | |
5015 | if (arg2 == NULL) SWIG_fail; | |
5016 | temp2 = true; | |
5017 | } | |
5018 | } | |
5019 | if (obj2) { | |
5020 | { | |
32fe5131 | 5021 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
5022 | if (SWIG_arg_fail(3)) SWIG_fail; |
5023 | } | |
5024 | } | |
5025 | if (obj3) { | |
5026 | { | |
5027 | arg4 = &temp4; | |
5028 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5029 | } | |
5030 | } | |
5031 | if (obj4) { | |
5032 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5033 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5034 | } | |
5035 | { | |
5036 | if (!wxPyCheckForApp()) SWIG_fail; | |
5037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5038 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
5039 | ||
5040 | wxPyEndAllowThreads(__tstate); | |
5041 | if (PyErr_Occurred()) SWIG_fail; | |
5042 | } | |
5043 | { | |
5044 | #if wxUSE_UNICODE | |
5045 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5046 | #else | |
5047 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5048 | #endif | |
5049 | } | |
5050 | { | |
5051 | if (temp1) | |
5052 | delete arg1; | |
5053 | } | |
5054 | { | |
5055 | if (temp2) | |
5056 | delete arg2; | |
5057 | } | |
5058 | return resultobj; | |
5059 | fail: | |
5060 | { | |
5061 | if (temp1) | |
5062 | delete arg1; | |
5063 | } | |
5064 | { | |
5065 | if (temp2) | |
5066 | delete arg2; | |
5067 | } | |
5068 | return NULL; | |
5069 | } | |
5070 | ||
5071 | ||
5072 | static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5073 | PyObject *resultobj = NULL; |
d14a1e28 | 5074 | wxString *arg1 = 0 ; |
093d3ff1 RD |
5075 | wxString const &arg2_defvalue = wxPyEmptyString ; |
5076 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5077 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5078 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5079 | wxWindow *arg4 = (wxWindow *) NULL ; | |
5080 | int arg5 = (int) -1 ; | |
5081 | int arg6 = (int) -1 ; | |
5082 | bool arg7 = (bool) true ; | |
5083 | wxString result; | |
ae8162c8 RD |
5084 | bool temp1 = false ; |
5085 | bool temp2 = false ; | |
5086 | bool temp3 = false ; | |
d14a1e28 RD |
5087 | PyObject * obj0 = 0 ; |
5088 | PyObject * obj1 = 0 ; | |
5089 | PyObject * obj2 = 0 ; | |
994141e6 RD |
5090 | PyObject * obj3 = 0 ; |
5091 | PyObject * obj4 = 0 ; | |
5092 | PyObject * obj5 = 0 ; | |
5093 | PyObject * obj6 = 0 ; | |
d14a1e28 | 5094 | char *kwnames[] = { |
093d3ff1 | 5095 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL |
d14a1e28 RD |
5096 | }; |
5097 | ||
093d3ff1 | 5098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
5099 | { |
5100 | arg1 = wxString_in_helper(obj0); | |
5101 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 5102 | temp1 = true; |
d14a1e28 | 5103 | } |
093d3ff1 RD |
5104 | if (obj1) { |
5105 | { | |
5106 | arg2 = wxString_in_helper(obj1); | |
5107 | if (arg2 == NULL) SWIG_fail; | |
5108 | temp2 = true; | |
5109 | } | |
d14a1e28 | 5110 | } |
093d3ff1 RD |
5111 | if (obj2) { |
5112 | { | |
5113 | arg3 = wxString_in_helper(obj2); | |
5114 | if (arg3 == NULL) SWIG_fail; | |
5115 | temp3 = true; | |
5116 | } | |
5117 | } | |
5118 | if (obj3) { | |
5119 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5120 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 | 5121 | } |
994141e6 | 5122 | if (obj4) { |
093d3ff1 | 5123 | { |
32fe5131 | 5124 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
5125 | if (SWIG_arg_fail(5)) SWIG_fail; |
5126 | } | |
994141e6 RD |
5127 | } |
5128 | if (obj5) { | |
093d3ff1 | 5129 | { |
32fe5131 | 5130 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
5131 | if (SWIG_arg_fail(6)) SWIG_fail; |
5132 | } | |
994141e6 | 5133 | } |
d14a1e28 | 5134 | if (obj6) { |
d14a1e28 | 5135 | { |
32fe5131 | 5136 | arg7 = static_cast<bool >(SWIG_As_bool(obj6)); |
093d3ff1 | 5137 | if (SWIG_arg_fail(7)) SWIG_fail; |
d14a1e28 RD |
5138 | } |
5139 | } | |
5140 | { | |
e3b71cb8 | 5141 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5143 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); |
d14a1e28 RD |
5144 | |
5145 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5146 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5147 | } |
093d3ff1 RD |
5148 | { |
5149 | #if wxUSE_UNICODE | |
5150 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5151 | #else | |
5152 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5153 | #endif | |
5154 | } | |
d14a1e28 RD |
5155 | { |
5156 | if (temp1) | |
5157 | delete arg1; | |
5158 | } | |
5159 | { | |
5160 | if (temp2) | |
5161 | delete arg2; | |
5162 | } | |
5163 | { | |
5164 | if (temp3) | |
5165 | delete arg3; | |
5166 | } | |
5167 | return resultobj; | |
5168 | fail: | |
5169 | { | |
5170 | if (temp1) | |
5171 | delete arg1; | |
5172 | } | |
5173 | { | |
5174 | if (temp2) | |
5175 | delete arg2; | |
5176 | } | |
5177 | { | |
5178 | if (temp3) | |
5179 | delete arg3; | |
5180 | } | |
5181 | return NULL; | |
5182 | } | |
5183 | ||
5184 | ||
093d3ff1 | 5185 | static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5186 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5187 | wxString *arg1 = 0 ; |
5188 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5189 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5190 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5191 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5192 | wxWindow *arg4 = (wxWindow *) NULL ; | |
5193 | wxString result; | |
5194 | bool temp1 = false ; | |
5195 | bool temp2 = false ; | |
5196 | bool temp3 = false ; | |
5197 | PyObject * obj0 = 0 ; | |
5198 | PyObject * obj1 = 0 ; | |
5199 | PyObject * obj2 = 0 ; | |
5200 | PyObject * obj3 = 0 ; | |
d14a1e28 | 5201 | char *kwnames[] = { |
093d3ff1 | 5202 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL |
d14a1e28 RD |
5203 | }; |
5204 | ||
093d3ff1 RD |
5205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
5206 | { | |
5207 | arg1 = wxString_in_helper(obj0); | |
5208 | if (arg1 == NULL) SWIG_fail; | |
5209 | temp1 = true; | |
5210 | } | |
5211 | if (obj1) { | |
5212 | { | |
5213 | arg2 = wxString_in_helper(obj1); | |
5214 | if (arg2 == NULL) SWIG_fail; | |
5215 | temp2 = true; | |
5216 | } | |
5217 | } | |
5218 | if (obj2) { | |
5219 | { | |
5220 | arg3 = wxString_in_helper(obj2); | |
5221 | if (arg3 == NULL) SWIG_fail; | |
5222 | temp3 = true; | |
5223 | } | |
5224 | } | |
5225 | if (obj3) { | |
5226 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5227 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5228 | } | |
d14a1e28 | 5229 | { |
e3b71cb8 | 5230 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5232 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d14a1e28 RD |
5233 | |
5234 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5235 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5236 | } |
4f89f6a3 | 5237 | { |
093d3ff1 RD |
5238 | #if wxUSE_UNICODE |
5239 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5240 | #else | |
5241 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5242 | #endif | |
5243 | } | |
5244 | { | |
5245 | if (temp1) | |
5246 | delete arg1; | |
5247 | } | |
5248 | { | |
5249 | if (temp2) | |
5250 | delete arg2; | |
5251 | } | |
5252 | { | |
5253 | if (temp3) | |
5254 | delete arg3; | |
4f89f6a3 | 5255 | } |
d14a1e28 RD |
5256 | return resultobj; |
5257 | fail: | |
093d3ff1 RD |
5258 | { |
5259 | if (temp1) | |
5260 | delete arg1; | |
5261 | } | |
5262 | { | |
5263 | if (temp2) | |
5264 | delete arg2; | |
5265 | } | |
5266 | { | |
5267 | if (temp3) | |
5268 | delete arg3; | |
5269 | } | |
d14a1e28 RD |
5270 | return NULL; |
5271 | } | |
5272 | ||
5273 | ||
093d3ff1 | 5274 | static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5275 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5276 | wxString *arg1 = 0 ; |
5277 | wxString *arg2 = 0 ; | |
5278 | int arg3 ; | |
5279 | wxString *arg4 = (wxString *) 0 ; | |
5280 | wxWindow *arg5 = (wxWindow *) NULL ; | |
5281 | int arg6 = (int) -1 ; | |
5282 | int arg7 = (int) -1 ; | |
5283 | bool arg8 = (bool) true ; | |
5284 | int arg9 = (int) 150 ; | |
5285 | int arg10 = (int) 200 ; | |
5286 | wxString result; | |
5287 | bool temp1 = false ; | |
5288 | bool temp2 = false ; | |
5289 | PyObject * obj0 = 0 ; | |
5290 | PyObject * obj1 = 0 ; | |
5291 | PyObject * obj2 = 0 ; | |
5292 | PyObject * obj3 = 0 ; | |
5293 | PyObject * obj4 = 0 ; | |
5294 | PyObject * obj5 = 0 ; | |
5295 | PyObject * obj6 = 0 ; | |
5296 | PyObject * obj7 = 0 ; | |
5297 | PyObject * obj8 = 0 ; | |
d14a1e28 | 5298 | char *kwnames[] = { |
093d3ff1 | 5299 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
5300 | }; |
5301 | ||
093d3ff1 | 5302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 5303 | { |
093d3ff1 RD |
5304 | arg1 = wxString_in_helper(obj0); |
5305 | if (arg1 == NULL) SWIG_fail; | |
5306 | temp1 = true; | |
5307 | } | |
5308 | { | |
5309 | arg2 = wxString_in_helper(obj1); | |
5310 | if (arg2 == NULL) SWIG_fail; | |
5311 | temp2 = true; | |
5312 | } | |
5313 | { | |
5314 | arg3 = PyList_Size(obj2); | |
5315 | arg4 = wxString_LIST_helper(obj2); | |
5316 | if (arg4 == NULL) SWIG_fail; | |
5317 | } | |
5318 | if (obj3) { | |
5319 | SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5320 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5321 | } | |
5322 | if (obj4) { | |
5323 | { | |
32fe5131 | 5324 | arg6 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
5325 | if (SWIG_arg_fail(6)) SWIG_fail; |
5326 | } | |
5327 | } | |
5328 | if (obj5) { | |
5329 | { | |
32fe5131 | 5330 | arg7 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
5331 | if (SWIG_arg_fail(7)) SWIG_fail; |
5332 | } | |
5333 | } | |
5334 | if (obj6) { | |
5335 | { | |
32fe5131 | 5336 | arg8 = static_cast<bool >(SWIG_As_bool(obj6)); |
093d3ff1 RD |
5337 | if (SWIG_arg_fail(8)) SWIG_fail; |
5338 | } | |
5339 | } | |
5340 | if (obj7) { | |
5341 | { | |
32fe5131 | 5342 | arg9 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
5343 | if (SWIG_arg_fail(9)) SWIG_fail; |
5344 | } | |
5345 | } | |
5346 | if (obj8) { | |
5347 | { | |
32fe5131 | 5348 | arg10 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
5349 | if (SWIG_arg_fail(10)) SWIG_fail; |
5350 | } | |
d14a1e28 | 5351 | } |
d14a1e28 | 5352 | { |
e3b71cb8 | 5353 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5355 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); |
d14a1e28 RD |
5356 | |
5357 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5358 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5359 | } |
093d3ff1 RD |
5360 | { |
5361 | #if wxUSE_UNICODE | |
5362 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5363 | #else | |
5364 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5365 | #endif | |
5366 | } | |
5367 | { | |
5368 | if (temp1) | |
5369 | delete arg1; | |
5370 | } | |
5371 | { | |
5372 | if (temp2) | |
5373 | delete arg2; | |
5374 | } | |
5375 | { | |
5376 | if (arg4) delete [] arg4; | |
5377 | } | |
d14a1e28 RD |
5378 | return resultobj; |
5379 | fail: | |
093d3ff1 RD |
5380 | { |
5381 | if (temp1) | |
5382 | delete arg1; | |
5383 | } | |
5384 | { | |
5385 | if (temp2) | |
5386 | delete arg2; | |
5387 | } | |
5388 | { | |
5389 | if (arg4) delete [] arg4; | |
5390 | } | |
d14a1e28 RD |
5391 | return NULL; |
5392 | } | |
5393 | ||
5394 | ||
093d3ff1 | 5395 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5396 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5397 | wxString *arg1 = 0 ; |
5398 | wxString *arg2 = 0 ; | |
5399 | int arg3 ; | |
5400 | wxString *arg4 = (wxString *) 0 ; | |
5401 | wxWindow *arg5 = (wxWindow *) NULL ; | |
5402 | int arg6 = (int) -1 ; | |
5403 | int arg7 = (int) -1 ; | |
5404 | bool arg8 = (bool) true ; | |
5405 | int arg9 = (int) 150 ; | |
5406 | int arg10 = (int) 200 ; | |
5407 | int result; | |
5408 | bool temp1 = false ; | |
5409 | bool temp2 = false ; | |
5410 | PyObject * obj0 = 0 ; | |
5411 | PyObject * obj1 = 0 ; | |
5412 | PyObject * obj2 = 0 ; | |
5413 | PyObject * obj3 = 0 ; | |
5414 | PyObject * obj4 = 0 ; | |
5415 | PyObject * obj5 = 0 ; | |
5416 | PyObject * obj6 = 0 ; | |
5417 | PyObject * obj7 = 0 ; | |
5418 | PyObject * obj8 = 0 ; | |
d14a1e28 | 5419 | char *kwnames[] = { |
093d3ff1 | 5420 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
5421 | }; |
5422 | ||
093d3ff1 RD |
5423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
5424 | { | |
5425 | arg1 = wxString_in_helper(obj0); | |
5426 | if (arg1 == NULL) SWIG_fail; | |
5427 | temp1 = true; | |
5428 | } | |
5429 | { | |
5430 | arg2 = wxString_in_helper(obj1); | |
5431 | if (arg2 == NULL) SWIG_fail; | |
5432 | temp2 = true; | |
5433 | } | |
5434 | { | |
5435 | arg3 = PyList_Size(obj2); | |
5436 | arg4 = wxString_LIST_helper(obj2); | |
5437 | if (arg4 == NULL) SWIG_fail; | |
5438 | } | |
5439 | if (obj3) { | |
5440 | SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5441 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5442 | } | |
5443 | if (obj4) { | |
5444 | { | |
32fe5131 | 5445 | arg6 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
5446 | if (SWIG_arg_fail(6)) SWIG_fail; |
5447 | } | |
5448 | } | |
5449 | if (obj5) { | |
5450 | { | |
32fe5131 | 5451 | arg7 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
5452 | if (SWIG_arg_fail(7)) SWIG_fail; |
5453 | } | |
5454 | } | |
5455 | if (obj6) { | |
5456 | { | |
32fe5131 | 5457 | arg8 = static_cast<bool >(SWIG_As_bool(obj6)); |
093d3ff1 RD |
5458 | if (SWIG_arg_fail(8)) SWIG_fail; |
5459 | } | |
5460 | } | |
5461 | if (obj7) { | |
5462 | { | |
32fe5131 | 5463 | arg9 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
5464 | if (SWIG_arg_fail(9)) SWIG_fail; |
5465 | } | |
5466 | } | |
5467 | if (obj8) { | |
5468 | { | |
32fe5131 | 5469 | arg10 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
5470 | if (SWIG_arg_fail(10)) SWIG_fail; |
5471 | } | |
5472 | } | |
d14a1e28 | 5473 | { |
e3b71cb8 | 5474 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5476 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); |
d14a1e28 RD |
5477 | |
5478 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5479 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5480 | } |
5481 | { | |
32fe5131 | 5482 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 RD |
5483 | } |
5484 | { | |
5485 | if (temp1) | |
5486 | delete arg1; | |
5487 | } | |
5488 | { | |
5489 | if (temp2) | |
5490 | delete arg2; | |
5491 | } | |
5492 | { | |
5493 | if (arg4) delete [] arg4; | |
d14a1e28 RD |
5494 | } |
5495 | return resultobj; | |
5496 | fail: | |
093d3ff1 RD |
5497 | { |
5498 | if (temp1) | |
5499 | delete arg1; | |
5500 | } | |
5501 | { | |
5502 | if (temp2) | |
5503 | delete arg2; | |
5504 | } | |
5505 | { | |
5506 | if (arg4) delete [] arg4; | |
5507 | } | |
d14a1e28 RD |
5508 | return NULL; |
5509 | } | |
5510 | ||
5511 | ||
093d3ff1 | 5512 | static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5513 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5514 | wxString *arg1 = 0 ; |
5515 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5516 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5517 | int arg3 = (int) wxOK|wxCENTRE ; | |
5518 | wxWindow *arg4 = (wxWindow *) NULL ; | |
5519 | int arg5 = (int) -1 ; | |
5520 | int arg6 = (int) -1 ; | |
5521 | int result; | |
5522 | bool temp1 = false ; | |
5523 | bool temp2 = false ; | |
5524 | PyObject * obj0 = 0 ; | |
5525 | PyObject * obj1 = 0 ; | |
5526 | PyObject * obj2 = 0 ; | |
5527 | PyObject * obj3 = 0 ; | |
5528 | PyObject * obj4 = 0 ; | |
5529 | PyObject * obj5 = 0 ; | |
d14a1e28 | 5530 | char *kwnames[] = { |
093d3ff1 | 5531 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
5532 | }; |
5533 | ||
093d3ff1 RD |
5534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
5535 | { | |
5536 | arg1 = wxString_in_helper(obj0); | |
5537 | if (arg1 == NULL) SWIG_fail; | |
5538 | temp1 = true; | |
5539 | } | |
5540 | if (obj1) { | |
5541 | { | |
5542 | arg2 = wxString_in_helper(obj1); | |
5543 | if (arg2 == NULL) SWIG_fail; | |
5544 | temp2 = true; | |
5545 | } | |
5546 | } | |
5547 | if (obj2) { | |
5548 | { | |
32fe5131 | 5549 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
5550 | if (SWIG_arg_fail(3)) SWIG_fail; |
5551 | } | |
5552 | } | |
5553 | if (obj3) { | |
5554 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5555 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5556 | } | |
5557 | if (obj4) { | |
5558 | { | |
32fe5131 | 5559 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
5560 | if (SWIG_arg_fail(5)) SWIG_fail; |
5561 | } | |
5562 | } | |
5563 | if (obj5) { | |
5564 | { | |
32fe5131 | 5565 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
5566 | if (SWIG_arg_fail(6)) SWIG_fail; |
5567 | } | |
5568 | } | |
d14a1e28 | 5569 | { |
e3b71cb8 | 5570 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5572 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
5573 | |
5574 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5575 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5576 | } |
093d3ff1 | 5577 | { |
32fe5131 | 5578 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 RD |
5579 | } |
5580 | { | |
5581 | if (temp1) | |
5582 | delete arg1; | |
5583 | } | |
5584 | { | |
5585 | if (temp2) | |
5586 | delete arg2; | |
5587 | } | |
d14a1e28 RD |
5588 | return resultobj; |
5589 | fail: | |
093d3ff1 RD |
5590 | { |
5591 | if (temp1) | |
5592 | delete arg1; | |
5593 | } | |
5594 | { | |
5595 | if (temp2) | |
5596 | delete arg2; | |
5597 | } | |
d14a1e28 RD |
5598 | return NULL; |
5599 | } | |
5600 | ||
5601 | ||
093d3ff1 | 5602 | static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5603 | PyObject *resultobj = NULL; |
093d3ff1 | 5604 | bool result; |
d14a1e28 RD |
5605 | char *kwnames[] = { |
5606 | NULL | |
5607 | }; | |
5608 | ||
093d3ff1 | 5609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; |
d14a1e28 | 5610 | { |
e3b71cb8 | 5611 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5613 | result = (bool)wxColourDisplay(); |
d14a1e28 RD |
5614 | |
5615 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5616 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5617 | } |
093d3ff1 RD |
5618 | { |
5619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5620 | } | |
d14a1e28 RD |
5621 | return resultobj; |
5622 | fail: | |
5623 | return NULL; | |
5624 | } | |
5625 | ||
5626 | ||
093d3ff1 | 5627 | static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5628 | PyObject *resultobj = NULL; |
093d3ff1 | 5629 | int result; |
d14a1e28 RD |
5630 | char *kwnames[] = { |
5631 | NULL | |
5632 | }; | |
5633 | ||
093d3ff1 | 5634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; |
d14a1e28 | 5635 | { |
e3b71cb8 | 5636 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5638 | result = (int)wxDisplayDepth(); |
d14a1e28 RD |
5639 | |
5640 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5641 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5642 | } |
5643 | { | |
32fe5131 | 5644 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d14a1e28 RD |
5645 | } |
5646 | return resultobj; | |
5647 | fail: | |
5648 | return NULL; | |
5649 | } | |
5650 | ||
5651 | ||
093d3ff1 | 5652 | static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5653 | PyObject *resultobj = NULL; |
093d3ff1 | 5654 | int result; |
d14a1e28 | 5655 | char *kwnames[] = { |
093d3ff1 | 5656 | NULL |
d14a1e28 RD |
5657 | }; |
5658 | ||
093d3ff1 | 5659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; |
d14a1e28 | 5660 | { |
e3b71cb8 | 5661 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5663 | result = (int)wxGetDisplayDepth(); |
d14a1e28 RD |
5664 | |
5665 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5666 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5667 | } |
093d3ff1 | 5668 | { |
32fe5131 | 5669 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 5670 | } |
d14a1e28 RD |
5671 | return resultobj; |
5672 | fail: | |
5673 | return NULL; | |
5674 | } | |
5675 | ||
5676 | ||
093d3ff1 | 5677 | static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5678 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5679 | int *arg1 = (int *) 0 ; |
5680 | int *arg2 = (int *) 0 ; | |
5681 | int temp1 ; | |
5682 | int res1 = 0 ; | |
5683 | int temp2 ; | |
5684 | int res2 = 0 ; | |
d14a1e28 | 5685 | char *kwnames[] = { |
093d3ff1 | 5686 | NULL |
d14a1e28 RD |
5687 | }; |
5688 | ||
093d3ff1 RD |
5689 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
5690 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
5691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
d14a1e28 | 5692 | { |
e3b71cb8 | 5693 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5695 | wxDisplaySize(arg1,arg2); |
d14a1e28 RD |
5696 | |
5697 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5698 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5699 | } |
5700 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
5701 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
5702 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5703 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5704 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
5705 | return resultobj; |
5706 | fail: | |
5707 | return NULL; | |
5708 | } | |
5709 | ||
5710 | ||
093d3ff1 | 5711 | static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5712 | PyObject *resultobj = NULL; |
093d3ff1 | 5713 | wxSize result; |
d14a1e28 RD |
5714 | char *kwnames[] = { |
5715 | NULL | |
5716 | }; | |
5717 | ||
093d3ff1 | 5718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; |
d14a1e28 | 5719 | { |
e3b71cb8 | 5720 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5722 | result = wxGetDisplaySize(); |
d14a1e28 RD |
5723 | |
5724 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5725 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5726 | } |
5727 | { | |
093d3ff1 | 5728 | wxSize * resultptr; |
32fe5131 | 5729 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
093d3ff1 | 5730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
5731 | } |
5732 | return resultobj; | |
5733 | fail: | |
5734 | return NULL; | |
5735 | } | |
5736 | ||
5737 | ||
093d3ff1 | 5738 | static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5739 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5740 | int *arg1 = (int *) 0 ; |
5741 | int *arg2 = (int *) 0 ; | |
5742 | int temp1 ; | |
5743 | int res1 = 0 ; | |
5744 | int temp2 ; | |
5745 | int res2 = 0 ; | |
d14a1e28 | 5746 | char *kwnames[] = { |
093d3ff1 | 5747 | NULL |
d14a1e28 RD |
5748 | }; |
5749 | ||
093d3ff1 RD |
5750 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
5751 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
5752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
5753 | { | |
5754 | if (!wxPyCheckForApp()) SWIG_fail; | |
5755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5756 | wxDisplaySizeMM(arg1,arg2); | |
5757 | ||
5758 | wxPyEndAllowThreads(__tstate); | |
5759 | if (PyErr_Occurred()) SWIG_fail; | |
5760 | } | |
5761 | Py_INCREF(Py_None); resultobj = Py_None; | |
5762 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
5763 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5764 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5765 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5766 | return resultobj; | |
5767 | fail: | |
5768 | return NULL; | |
5769 | } | |
5770 | ||
5771 | ||
5772 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5773 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5774 | wxSize result; |
5775 | char *kwnames[] = { | |
5776 | NULL | |
5777 | }; | |
5778 | ||
5779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
5780 | { | |
5781 | if (!wxPyCheckForApp()) SWIG_fail; | |
5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5783 | result = wxGetDisplaySizeMM(); | |
5784 | ||
5785 | wxPyEndAllowThreads(__tstate); | |
5786 | if (PyErr_Occurred()) SWIG_fail; | |
5787 | } | |
5788 | { | |
5789 | wxSize * resultptr; | |
32fe5131 | 5790 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
093d3ff1 RD |
5791 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
5792 | } | |
5793 | return resultobj; | |
5794 | fail: | |
5795 | return NULL; | |
5796 | } | |
5797 | ||
5798 | ||
5799 | static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5800 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5801 | int *arg1 = (int *) 0 ; |
5802 | int *arg2 = (int *) 0 ; | |
5803 | int *arg3 = (int *) 0 ; | |
5804 | int *arg4 = (int *) 0 ; | |
5805 | int temp1 ; | |
5806 | int res1 = 0 ; | |
5807 | int temp2 ; | |
5808 | int res2 = 0 ; | |
5809 | int temp3 ; | |
5810 | int res3 = 0 ; | |
5811 | int temp4 ; | |
5812 | int res4 = 0 ; | |
5813 | char *kwnames[] = { | |
5814 | NULL | |
5815 | }; | |
5816 | ||
5817 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
5818 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
5819 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
5820 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
5821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
5822 | { | |
5823 | if (!wxPyCheckForApp()) SWIG_fail; | |
5824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5825 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
5826 | ||
5827 | wxPyEndAllowThreads(__tstate); | |
5828 | if (PyErr_Occurred()) SWIG_fail; | |
5829 | } | |
5830 | Py_INCREF(Py_None); resultobj = Py_None; | |
5831 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
5832 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5833 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5834 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5835 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5836 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
5837 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
5838 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
5839 | return resultobj; | |
5840 | fail: | |
5841 | return NULL; | |
5842 | } | |
5843 | ||
5844 | ||
5845 | static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5846 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5847 | wxRect result; |
5848 | char *kwnames[] = { | |
5849 | NULL | |
5850 | }; | |
5851 | ||
5852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
5853 | { | |
5854 | if (!wxPyCheckForApp()) SWIG_fail; | |
5855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5856 | result = wxGetClientDisplayRect(); | |
5857 | ||
5858 | wxPyEndAllowThreads(__tstate); | |
5859 | if (PyErr_Occurred()) SWIG_fail; | |
5860 | } | |
5861 | { | |
5862 | wxRect * resultptr; | |
32fe5131 | 5863 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
093d3ff1 RD |
5864 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
5865 | } | |
5866 | return resultobj; | |
5867 | fail: | |
5868 | return NULL; | |
5869 | } | |
5870 | ||
5871 | ||
5872 | static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5873 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5874 | wxCursor *arg1 = 0 ; |
5875 | PyObject * obj0 = 0 ; | |
5876 | char *kwnames[] = { | |
5877 | (char *) "cursor", NULL | |
5878 | }; | |
5879 | ||
5880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
5881 | { | |
5882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
5883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5884 | if (arg1 == NULL) { | |
5885 | SWIG_null_ref("wxCursor"); | |
5886 | } | |
5887 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5888 | } | |
5889 | { | |
5890 | if (!wxPyCheckForApp()) SWIG_fail; | |
5891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5892 | wxSetCursor(*arg1); | |
5893 | ||
5894 | wxPyEndAllowThreads(__tstate); | |
5895 | if (PyErr_Occurred()) SWIG_fail; | |
5896 | } | |
5897 | Py_INCREF(Py_None); resultobj = Py_None; | |
5898 | return resultobj; | |
5899 | fail: | |
5900 | return NULL; | |
5901 | } | |
5902 | ||
5903 | ||
73c8ef6a | 5904 | static PyObject *_wrap_GetXDisplay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5905 | PyObject *resultobj = NULL; |
73c8ef6a RD |
5906 | void *result; |
5907 | char *kwnames[] = { | |
5908 | NULL | |
5909 | }; | |
5910 | ||
5911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetXDisplay",kwnames)) goto fail; | |
5912 | { | |
5913 | if (!wxPyCheckForApp()) SWIG_fail; | |
5914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5915 | result = (void *)wxGetXDisplay(); | |
5916 | ||
5917 | wxPyEndAllowThreads(__tstate); | |
5918 | if (PyErr_Occurred()) SWIG_fail; | |
5919 | } | |
5920 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
5921 | return resultobj; | |
5922 | fail: | |
5923 | return NULL; | |
5924 | } | |
5925 | ||
5926 | ||
093d3ff1 | 5927 | static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5928 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5929 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; |
5930 | PyObject * obj0 = 0 ; | |
5931 | char *kwnames[] = { | |
5932 | (char *) "cursor", NULL | |
5933 | }; | |
5934 | ||
5935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
5936 | if (obj0) { | |
5937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
5938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5939 | } | |
5940 | { | |
5941 | if (!wxPyCheckForApp()) SWIG_fail; | |
5942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5943 | wxBeginBusyCursor(arg1); | |
5944 | ||
5945 | wxPyEndAllowThreads(__tstate); | |
5946 | if (PyErr_Occurred()) SWIG_fail; | |
5947 | } | |
5948 | Py_INCREF(Py_None); resultobj = Py_None; | |
5949 | return resultobj; | |
5950 | fail: | |
5951 | return NULL; | |
5952 | } | |
5953 | ||
5954 | ||
32fe5131 RD |
5955 | static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) { |
5956 | PyObject *resultobj = NULL; | |
5957 | wxPoint result; | |
093d3ff1 RD |
5958 | char *kwnames[] = { |
5959 | NULL | |
5960 | }; | |
5961 | ||
32fe5131 | 5962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; |
093d3ff1 RD |
5963 | { |
5964 | if (!wxPyCheckForApp()) SWIG_fail; | |
5965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 5966 | result = wxGetMousePosition(); |
093d3ff1 RD |
5967 | |
5968 | wxPyEndAllowThreads(__tstate); | |
5969 | if (PyErr_Occurred()) SWIG_fail; | |
5970 | } | |
5971 | { | |
32fe5131 RD |
5972 | wxPoint * resultptr; |
5973 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); | |
5974 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
093d3ff1 RD |
5975 | } |
5976 | return resultobj; | |
5977 | fail: | |
5978 | return NULL; | |
5979 | } | |
5980 | ||
5981 | ||
32fe5131 RD |
5982 | static PyObject *_wrap_FindWindowAtPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
5983 | PyObject *resultobj = NULL; | |
093d3ff1 | 5984 | wxWindow *result; |
32fe5131 RD |
5985 | char *kwnames[] = { |
5986 | NULL | |
5987 | }; | |
5988 | ||
5989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FindWindowAtPointer",kwnames)) goto fail; | |
5990 | { | |
5991 | if (!wxPyCheckForApp()) SWIG_fail; | |
5992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5993 | result = (wxWindow *)FindWindowAtPointer(); | |
5994 | ||
5995 | wxPyEndAllowThreads(__tstate); | |
5996 | if (PyErr_Occurred()) SWIG_fail; | |
5997 | } | |
5998 | { | |
5999 | resultobj = wxPyMake_wxObject(result, 0); | |
6000 | } | |
6001 | return resultobj; | |
6002 | fail: | |
6003 | return NULL; | |
6004 | } | |
6005 | ||
6006 | ||
6007 | static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
6008 | PyObject *resultobj = NULL; | |
6009 | wxWindow *result; | |
6010 | char *kwnames[] = { | |
6011 | NULL | |
6012 | }; | |
6013 | ||
6014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
6015 | { | |
6016 | if (!wxPyCheckForApp()) SWIG_fail; | |
6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6018 | result = (wxWindow *)wxGetActiveWindow(); | |
6019 | ||
6020 | wxPyEndAllowThreads(__tstate); | |
6021 | if (PyErr_Occurred()) SWIG_fail; | |
6022 | } | |
6023 | { | |
6024 | resultobj = wxPyMake_wxObject(result, 0); | |
6025 | } | |
6026 | return resultobj; | |
6027 | fail: | |
6028 | return NULL; | |
6029 | } | |
6030 | ||
6031 | ||
6032 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
6033 | PyObject *resultobj = NULL; | |
6034 | wxPoint *arg1 = 0 ; | |
6035 | wxWindow *result; | |
6036 | wxPoint temp1 ; | |
6037 | PyObject * obj0 = 0 ; | |
6038 | char *kwnames[] = { | |
6039 | (char *) "pt", NULL | |
6040 | }; | |
6041 | ||
6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
6043 | { | |
6044 | arg1 = &temp1; | |
6045 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
6046 | } | |
6047 | { | |
6048 | if (!wxPyCheckForApp()) SWIG_fail; | |
6049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6050 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
6051 | ||
6052 | wxPyEndAllowThreads(__tstate); | |
6053 | if (PyErr_Occurred()) SWIG_fail; | |
6054 | } | |
6055 | { | |
6056 | resultobj = wxPyMake_wxObject(result, 0); | |
6057 | } | |
6058 | return resultobj; | |
6059 | fail: | |
6060 | return NULL; | |
6061 | } | |
6062 | ||
6063 | ||
6064 | static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
6065 | PyObject *resultobj = NULL; | |
6066 | wxPoint *arg1 = 0 ; | |
6067 | wxWindow *result; | |
6068 | wxPoint temp1 ; | |
6069 | PyObject * obj0 = 0 ; | |
6070 | char *kwnames[] = { | |
6071 | (char *) "pt", NULL | |
6072 | }; | |
6073 | ||
6074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
6075 | { | |
6076 | arg1 = &temp1; | |
6077 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
6078 | } | |
6079 | { | |
6080 | if (!wxPyCheckForApp()) SWIG_fail; | |
6081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6082 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
6083 | ||
6084 | wxPyEndAllowThreads(__tstate); | |
6085 | if (PyErr_Occurred()) SWIG_fail; | |
6086 | } | |
6087 | { | |
6088 | resultobj = wxPyMake_wxObject(result, 0); | |
6089 | } | |
6090 | return resultobj; | |
6091 | fail: | |
6092 | return NULL; | |
6093 | } | |
6094 | ||
6095 | ||
6096 | static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) { | |
6097 | PyObject *resultobj = NULL; | |
6098 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6099 | wxWindow *result; | |
6100 | PyObject * obj0 = 0 ; | |
6101 | char *kwnames[] = { | |
6102 | (char *) "win", NULL | |
6103 | }; | |
6104 | ||
6105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
6106 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6108 | { | |
6109 | if (!wxPyCheckForApp()) SWIG_fail; | |
6110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6111 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
6112 | ||
6113 | wxPyEndAllowThreads(__tstate); | |
6114 | if (PyErr_Occurred()) SWIG_fail; | |
6115 | } | |
6116 | { | |
6117 | resultobj = wxPyMake_wxObject(result, 0); | |
6118 | } | |
6119 | return resultobj; | |
6120 | fail: | |
6121 | return NULL; | |
6122 | } | |
6123 | ||
6124 | ||
6125 | static PyObject *_wrap_LaunchDefaultBrowser(PyObject *, PyObject *args, PyObject *kwargs) { | |
6126 | PyObject *resultobj = NULL; | |
6127 | wxString *arg1 = 0 ; | |
6128 | bool result; | |
6129 | bool temp1 = false ; | |
6130 | PyObject * obj0 = 0 ; | |
6131 | char *kwnames[] = { | |
6132 | (char *) "url", NULL | |
6133 | }; | |
6134 | ||
6135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LaunchDefaultBrowser",kwnames,&obj0)) goto fail; | |
6136 | { | |
6137 | arg1 = wxString_in_helper(obj0); | |
6138 | if (arg1 == NULL) SWIG_fail; | |
6139 | temp1 = true; | |
6140 | } | |
6141 | { | |
6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6143 | result = (bool)wxLaunchDefaultBrowser((wxString const &)*arg1); | |
6144 | ||
6145 | wxPyEndAllowThreads(__tstate); | |
6146 | if (PyErr_Occurred()) SWIG_fail; | |
6147 | } | |
6148 | { | |
6149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6150 | } | |
6151 | { | |
6152 | if (temp1) | |
6153 | delete arg1; | |
6154 | } | |
6155 | return resultobj; | |
6156 | fail: | |
6157 | { | |
6158 | if (temp1) | |
6159 | delete arg1; | |
6160 | } | |
6161 | return NULL; | |
6162 | } | |
6163 | ||
6164 | ||
6165 | static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) { | |
6166 | PyObject *resultobj = NULL; | |
6167 | wxKeyCode arg1 ; | |
6168 | bool result; | |
6169 | PyObject * obj0 = 0 ; | |
6170 | char *kwnames[] = { | |
6171 | (char *) "key", NULL | |
6172 | }; | |
6173 | ||
6174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
6175 | { | |
6176 | arg1 = static_cast<wxKeyCode >(SWIG_As_int(obj0)); | |
6177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6178 | } | |
6179 | { | |
6180 | if (!wxPyCheckForApp()) SWIG_fail; | |
6181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6182 | result = (bool)wxGetKeyState(arg1); | |
6183 | ||
6184 | wxPyEndAllowThreads(__tstate); | |
6185 | if (PyErr_Occurred()) SWIG_fail; | |
6186 | } | |
6187 | { | |
6188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6189 | } | |
6190 | return resultobj; | |
6191 | fail: | |
6192 | return NULL; | |
6193 | } | |
6194 | ||
6195 | ||
6196 | static PyObject *_wrap_new_MouseState(PyObject *, PyObject *args, PyObject *kwargs) { | |
6197 | PyObject *resultobj = NULL; | |
6198 | wxMouseState *result; | |
6199 | char *kwnames[] = { | |
6200 | NULL | |
6201 | }; | |
6202 | ||
6203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MouseState",kwnames)) goto fail; | |
6204 | { | |
6205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6206 | result = (wxMouseState *)new wxMouseState(); | |
6207 | ||
6208 | wxPyEndAllowThreads(__tstate); | |
6209 | if (PyErr_Occurred()) SWIG_fail; | |
6210 | } | |
6211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseState, 1); | |
6212 | return resultobj; | |
6213 | fail: | |
6214 | return NULL; | |
6215 | } | |
6216 | ||
6217 | ||
6218 | static PyObject *_wrap_delete_MouseState(PyObject *, PyObject *args, PyObject *kwargs) { | |
6219 | PyObject *resultobj = NULL; | |
6220 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6221 | PyObject * obj0 = 0 ; | |
6222 | char *kwnames[] = { | |
6223 | (char *) "self", NULL | |
6224 | }; | |
6225 | ||
6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MouseState",kwnames,&obj0)) goto fail; | |
6227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6229 | { | |
6230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6231 | delete arg1; | |
6232 | ||
6233 | wxPyEndAllowThreads(__tstate); | |
6234 | if (PyErr_Occurred()) SWIG_fail; | |
6235 | } | |
6236 | Py_INCREF(Py_None); resultobj = Py_None; | |
6237 | return resultobj; | |
6238 | fail: | |
6239 | return NULL; | |
6240 | } | |
6241 | ||
6242 | ||
6243 | static PyObject *_wrap_MouseState_GetX(PyObject *, PyObject *args, PyObject *kwargs) { | |
6244 | PyObject *resultobj = NULL; | |
6245 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6246 | int result; | |
6247 | PyObject * obj0 = 0 ; | |
6248 | char *kwnames[] = { | |
6249 | (char *) "self", NULL | |
6250 | }; | |
6251 | ||
6252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_GetX",kwnames,&obj0)) goto fail; | |
6253 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6255 | { | |
6256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6257 | result = (int)(arg1)->GetX(); | |
6258 | ||
6259 | wxPyEndAllowThreads(__tstate); | |
6260 | if (PyErr_Occurred()) SWIG_fail; | |
6261 | } | |
6262 | { | |
6263 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
6264 | } | |
6265 | return resultobj; | |
6266 | fail: | |
6267 | return NULL; | |
6268 | } | |
6269 | ||
6270 | ||
6271 | static PyObject *_wrap_MouseState_GetY(PyObject *, PyObject *args, PyObject *kwargs) { | |
6272 | PyObject *resultobj = NULL; | |
6273 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6274 | int result; | |
6275 | PyObject * obj0 = 0 ; | |
6276 | char *kwnames[] = { | |
6277 | (char *) "self", NULL | |
6278 | }; | |
6279 | ||
6280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_GetY",kwnames,&obj0)) goto fail; | |
6281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6283 | { | |
6284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6285 | result = (int)(arg1)->GetY(); | |
6286 | ||
6287 | wxPyEndAllowThreads(__tstate); | |
6288 | if (PyErr_Occurred()) SWIG_fail; | |
6289 | } | |
6290 | { | |
6291 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
6292 | } | |
6293 | return resultobj; | |
6294 | fail: | |
6295 | return NULL; | |
6296 | } | |
6297 | ||
6298 | ||
6299 | static PyObject *_wrap_MouseState_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6300 | PyObject *resultobj = NULL; | |
6301 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6302 | bool result; | |
6303 | PyObject * obj0 = 0 ; | |
6304 | char *kwnames[] = { | |
6305 | (char *) "self", NULL | |
6306 | }; | |
6307 | ||
6308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_LeftDown",kwnames,&obj0)) goto fail; | |
6309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6311 | { | |
6312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6313 | result = (bool)(arg1)->LeftDown(); | |
6314 | ||
6315 | wxPyEndAllowThreads(__tstate); | |
6316 | if (PyErr_Occurred()) SWIG_fail; | |
6317 | } | |
6318 | { | |
6319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6320 | } | |
6321 | return resultobj; | |
6322 | fail: | |
6323 | return NULL; | |
6324 | } | |
6325 | ||
6326 | ||
6327 | static PyObject *_wrap_MouseState_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6328 | PyObject *resultobj = NULL; | |
6329 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6330 | bool result; | |
6331 | PyObject * obj0 = 0 ; | |
6332 | char *kwnames[] = { | |
6333 | (char *) "self", NULL | |
6334 | }; | |
6335 | ||
6336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_MiddleDown",kwnames,&obj0)) goto fail; | |
6337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6339 | { | |
6340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6341 | result = (bool)(arg1)->MiddleDown(); | |
6342 | ||
6343 | wxPyEndAllowThreads(__tstate); | |
6344 | if (PyErr_Occurred()) SWIG_fail; | |
6345 | } | |
6346 | { | |
6347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6348 | } | |
6349 | return resultobj; | |
6350 | fail: | |
6351 | return NULL; | |
6352 | } | |
6353 | ||
6354 | ||
6355 | static PyObject *_wrap_MouseState_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6356 | PyObject *resultobj = NULL; | |
6357 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6358 | bool result; | |
6359 | PyObject * obj0 = 0 ; | |
6360 | char *kwnames[] = { | |
6361 | (char *) "self", NULL | |
6362 | }; | |
6363 | ||
6364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_RightDown",kwnames,&obj0)) goto fail; | |
6365 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6366 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6367 | { | |
6368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6369 | result = (bool)(arg1)->RightDown(); | |
6370 | ||
6371 | wxPyEndAllowThreads(__tstate); | |
6372 | if (PyErr_Occurred()) SWIG_fail; | |
6373 | } | |
6374 | { | |
6375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6376 | } | |
6377 | return resultobj; | |
6378 | fail: | |
6379 | return NULL; | |
6380 | } | |
6381 | ||
6382 | ||
6383 | static PyObject *_wrap_MouseState_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6384 | PyObject *resultobj = NULL; | |
6385 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6386 | bool result; | |
6387 | PyObject * obj0 = 0 ; | |
6388 | char *kwnames[] = { | |
6389 | (char *) "self", NULL | |
6390 | }; | |
6391 | ||
6392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_ControlDown",kwnames,&obj0)) goto fail; | |
6393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6395 | { | |
6396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6397 | result = (bool)(arg1)->ControlDown(); | |
6398 | ||
6399 | wxPyEndAllowThreads(__tstate); | |
6400 | if (PyErr_Occurred()) SWIG_fail; | |
6401 | } | |
6402 | { | |
6403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6404 | } | |
6405 | return resultobj; | |
6406 | fail: | |
6407 | return NULL; | |
6408 | } | |
6409 | ||
6410 | ||
6411 | static PyObject *_wrap_MouseState_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6412 | PyObject *resultobj = NULL; | |
6413 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6414 | bool result; | |
6415 | PyObject * obj0 = 0 ; | |
6416 | char *kwnames[] = { | |
6417 | (char *) "self", NULL | |
6418 | }; | |
6419 | ||
6420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_ShiftDown",kwnames,&obj0)) goto fail; | |
6421 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6422 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6423 | { | |
6424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6425 | result = (bool)(arg1)->ShiftDown(); | |
6426 | ||
6427 | wxPyEndAllowThreads(__tstate); | |
6428 | if (PyErr_Occurred()) SWIG_fail; | |
6429 | } | |
6430 | { | |
6431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6432 | } | |
6433 | return resultobj; | |
6434 | fail: | |
6435 | return NULL; | |
6436 | } | |
6437 | ||
6438 | ||
6439 | static PyObject *_wrap_MouseState_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6440 | PyObject *resultobj = NULL; | |
6441 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6442 | bool result; | |
6443 | PyObject * obj0 = 0 ; | |
6444 | char *kwnames[] = { | |
6445 | (char *) "self", NULL | |
6446 | }; | |
6447 | ||
6448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_AltDown",kwnames,&obj0)) goto fail; | |
6449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6451 | { | |
6452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6453 | result = (bool)(arg1)->AltDown(); | |
6454 | ||
6455 | wxPyEndAllowThreads(__tstate); | |
6456 | if (PyErr_Occurred()) SWIG_fail; | |
6457 | } | |
6458 | { | |
6459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6460 | } | |
6461 | return resultobj; | |
6462 | fail: | |
6463 | return NULL; | |
6464 | } | |
6465 | ||
6466 | ||
6467 | static PyObject *_wrap_MouseState_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6468 | PyObject *resultobj = NULL; | |
6469 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6470 | bool result; | |
6471 | PyObject * obj0 = 0 ; | |
6472 | char *kwnames[] = { | |
6473 | (char *) "self", NULL | |
6474 | }; | |
6475 | ||
6476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_MetaDown",kwnames,&obj0)) goto fail; | |
6477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6479 | { | |
6480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6481 | result = (bool)(arg1)->MetaDown(); | |
6482 | ||
6483 | wxPyEndAllowThreads(__tstate); | |
6484 | if (PyErr_Occurred()) SWIG_fail; | |
6485 | } | |
6486 | { | |
6487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6488 | } | |
6489 | return resultobj; | |
6490 | fail: | |
6491 | return NULL; | |
6492 | } | |
6493 | ||
6494 | ||
6495 | static PyObject *_wrap_MouseState_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6496 | PyObject *resultobj = NULL; | |
6497 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6498 | bool result; | |
6499 | PyObject * obj0 = 0 ; | |
6500 | char *kwnames[] = { | |
6501 | (char *) "self", NULL | |
6502 | }; | |
6503 | ||
6504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseState_CmdDown",kwnames,&obj0)) goto fail; | |
6505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6507 | { | |
6508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6509 | result = (bool)(arg1)->CmdDown(); | |
6510 | ||
6511 | wxPyEndAllowThreads(__tstate); | |
6512 | if (PyErr_Occurred()) SWIG_fail; | |
6513 | } | |
6514 | { | |
6515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6516 | } | |
6517 | return resultobj; | |
6518 | fail: | |
6519 | return NULL; | |
6520 | } | |
6521 | ||
6522 | ||
6523 | static PyObject *_wrap_MouseState_SetX(PyObject *, PyObject *args, PyObject *kwargs) { | |
6524 | PyObject *resultobj = NULL; | |
6525 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6526 | int arg2 ; | |
6527 | PyObject * obj0 = 0 ; | |
6528 | PyObject * obj1 = 0 ; | |
6529 | char *kwnames[] = { | |
6530 | (char *) "self",(char *) "x", NULL | |
6531 | }; | |
6532 | ||
6533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetX",kwnames,&obj0,&obj1)) goto fail; | |
6534 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6535 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6536 | { | |
6537 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
6538 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6539 | } | |
6540 | { | |
6541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6542 | (arg1)->SetX(arg2); | |
6543 | ||
6544 | wxPyEndAllowThreads(__tstate); | |
6545 | if (PyErr_Occurred()) SWIG_fail; | |
6546 | } | |
6547 | Py_INCREF(Py_None); resultobj = Py_None; | |
6548 | return resultobj; | |
6549 | fail: | |
6550 | return NULL; | |
6551 | } | |
6552 | ||
6553 | ||
6554 | static PyObject *_wrap_MouseState_SetY(PyObject *, PyObject *args, PyObject *kwargs) { | |
6555 | PyObject *resultobj = NULL; | |
6556 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6557 | int arg2 ; | |
6558 | PyObject * obj0 = 0 ; | |
6559 | PyObject * obj1 = 0 ; | |
6560 | char *kwnames[] = { | |
6561 | (char *) "self",(char *) "y", NULL | |
6562 | }; | |
6563 | ||
6564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetY",kwnames,&obj0,&obj1)) goto fail; | |
6565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6567 | { | |
6568 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
6569 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6570 | } | |
6571 | { | |
6572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6573 | (arg1)->SetY(arg2); | |
6574 | ||
6575 | wxPyEndAllowThreads(__tstate); | |
6576 | if (PyErr_Occurred()) SWIG_fail; | |
6577 | } | |
6578 | Py_INCREF(Py_None); resultobj = Py_None; | |
6579 | return resultobj; | |
6580 | fail: | |
6581 | return NULL; | |
6582 | } | |
6583 | ||
6584 | ||
6585 | static PyObject *_wrap_MouseState_SetLeftDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6586 | PyObject *resultobj = NULL; | |
6587 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6588 | bool arg2 ; | |
6589 | PyObject * obj0 = 0 ; | |
6590 | PyObject * obj1 = 0 ; | |
6591 | char *kwnames[] = { | |
6592 | (char *) "self",(char *) "down", NULL | |
6593 | }; | |
6594 | ||
6595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetLeftDown",kwnames,&obj0,&obj1)) goto fail; | |
6596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6598 | { | |
6599 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); | |
6600 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6601 | } | |
6602 | { | |
6603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6604 | (arg1)->SetLeftDown(arg2); | |
6605 | ||
6606 | wxPyEndAllowThreads(__tstate); | |
6607 | if (PyErr_Occurred()) SWIG_fail; | |
6608 | } | |
6609 | Py_INCREF(Py_None); resultobj = Py_None; | |
6610 | return resultobj; | |
6611 | fail: | |
6612 | return NULL; | |
6613 | } | |
6614 | ||
6615 | ||
6616 | static PyObject *_wrap_MouseState_SetMiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6617 | PyObject *resultobj = NULL; | |
6618 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6619 | bool arg2 ; | |
6620 | PyObject * obj0 = 0 ; | |
6621 | PyObject * obj1 = 0 ; | |
6622 | char *kwnames[] = { | |
6623 | (char *) "self",(char *) "down", NULL | |
6624 | }; | |
6625 | ||
6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMiddleDown",kwnames,&obj0,&obj1)) goto fail; | |
6627 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6628 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6629 | { | |
6630 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); | |
6631 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6632 | } | |
6633 | { | |
6634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6635 | (arg1)->SetMiddleDown(arg2); | |
6636 | ||
6637 | wxPyEndAllowThreads(__tstate); | |
6638 | if (PyErr_Occurred()) SWIG_fail; | |
6639 | } | |
6640 | Py_INCREF(Py_None); resultobj = Py_None; | |
6641 | return resultobj; | |
6642 | fail: | |
6643 | return NULL; | |
6644 | } | |
6645 | ||
6646 | ||
6647 | static PyObject *_wrap_MouseState_SetRightDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6648 | PyObject *resultobj = NULL; | |
6649 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6650 | bool arg2 ; | |
6651 | PyObject * obj0 = 0 ; | |
6652 | PyObject * obj1 = 0 ; | |
6653 | char *kwnames[] = { | |
6654 | (char *) "self",(char *) "down", NULL | |
6655 | }; | |
6656 | ||
6657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetRightDown",kwnames,&obj0,&obj1)) goto fail; | |
6658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6660 | { | |
6661 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); | |
6662 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6663 | } | |
6664 | { | |
6665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6666 | (arg1)->SetRightDown(arg2); | |
6667 | ||
6668 | wxPyEndAllowThreads(__tstate); | |
6669 | if (PyErr_Occurred()) SWIG_fail; | |
6670 | } | |
6671 | Py_INCREF(Py_None); resultobj = Py_None; | |
6672 | return resultobj; | |
6673 | fail: | |
6674 | return NULL; | |
6675 | } | |
6676 | ||
6677 | ||
6678 | static PyObject *_wrap_MouseState_SetControlDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
6679 | PyObject *resultobj = NULL; | |
6680 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6681 | bool arg2 ; | |
093d3ff1 | 6682 | PyObject * obj0 = 0 ; |
32fe5131 | 6683 | PyObject * obj1 = 0 ; |
093d3ff1 | 6684 | char *kwnames[] = { |
32fe5131 | 6685 | (char *) "self",(char *) "down", NULL |
093d3ff1 RD |
6686 | }; |
6687 | ||
32fe5131 RD |
6688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetControlDown",kwnames,&obj0,&obj1)) goto fail; |
6689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
093d3ff1 | 6691 | { |
32fe5131 RD |
6692 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6693 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
6694 | } |
6695 | { | |
6696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 6697 | (arg1)->SetControlDown(arg2); |
d14a1e28 RD |
6698 | |
6699 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6700 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6701 | } |
32fe5131 | 6702 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
6703 | return resultobj; |
6704 | fail: | |
6705 | return NULL; | |
6706 | } | |
6707 | ||
6708 | ||
32fe5131 RD |
6709 | static PyObject *_wrap_MouseState_SetShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
6710 | PyObject *resultobj = NULL; | |
6711 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6712 | bool arg2 ; | |
d14a1e28 | 6713 | PyObject * obj0 = 0 ; |
32fe5131 | 6714 | PyObject * obj1 = 0 ; |
d14a1e28 | 6715 | char *kwnames[] = { |
32fe5131 | 6716 | (char *) "self",(char *) "down", NULL |
d14a1e28 RD |
6717 | }; |
6718 | ||
32fe5131 RD |
6719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetShiftDown",kwnames,&obj0,&obj1)) goto fail; |
6720 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6721 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 6722 | { |
32fe5131 RD |
6723 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6724 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
6725 | } |
6726 | { | |
6727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 6728 | (arg1)->SetShiftDown(arg2); |
d14a1e28 RD |
6729 | |
6730 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6731 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6732 | } |
32fe5131 | 6733 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
6734 | return resultobj; |
6735 | fail: | |
6736 | return NULL; | |
6737 | } | |
6738 | ||
6739 | ||
32fe5131 RD |
6740 | static PyObject *_wrap_MouseState_SetAltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
6741 | PyObject *resultobj = NULL; | |
6742 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6743 | bool arg2 ; | |
d14a1e28 | 6744 | PyObject * obj0 = 0 ; |
32fe5131 | 6745 | PyObject * obj1 = 0 ; |
d14a1e28 | 6746 | char *kwnames[] = { |
32fe5131 | 6747 | (char *) "self",(char *) "down", NULL |
d14a1e28 RD |
6748 | }; |
6749 | ||
32fe5131 RD |
6750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetAltDown",kwnames,&obj0,&obj1)) goto fail; |
6751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
093d3ff1 | 6752 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 | 6753 | { |
32fe5131 RD |
6754 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6755 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6756 | } | |
6757 | { | |
d14a1e28 | 6758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 6759 | (arg1)->SetAltDown(arg2); |
d14a1e28 RD |
6760 | |
6761 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6762 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6763 | } |
32fe5131 | 6764 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
6765 | return resultobj; |
6766 | fail: | |
6767 | return NULL; | |
6768 | } | |
6769 | ||
6770 | ||
32fe5131 RD |
6771 | static PyObject *_wrap_MouseState_SetMetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
6772 | PyObject *resultobj = NULL; | |
6773 | wxMouseState *arg1 = (wxMouseState *) 0 ; | |
6774 | bool arg2 ; | |
d04418a7 | 6775 | PyObject * obj0 = 0 ; |
32fe5131 | 6776 | PyObject * obj1 = 0 ; |
d04418a7 | 6777 | char *kwnames[] = { |
32fe5131 | 6778 | (char *) "self",(char *) "down", NULL |
d04418a7 RD |
6779 | }; |
6780 | ||
32fe5131 RD |
6781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMetaDown",kwnames,&obj0,&obj1)) goto fail; |
6782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseState, SWIG_POINTER_EXCEPTION | 0); | |
6783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d04418a7 | 6784 | { |
32fe5131 RD |
6785 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6786 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d04418a7 RD |
6787 | } |
6788 | { | |
6789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 6790 | (arg1)->SetMetaDown(arg2); |
d04418a7 RD |
6791 | |
6792 | wxPyEndAllowThreads(__tstate); | |
6793 | if (PyErr_Occurred()) SWIG_fail; | |
6794 | } | |
32fe5131 | 6795 | Py_INCREF(Py_None); resultobj = Py_None; |
d04418a7 RD |
6796 | return resultobj; |
6797 | fail: | |
d04418a7 RD |
6798 | return NULL; |
6799 | } | |
6800 | ||
6801 | ||
32fe5131 RD |
6802 | static PyObject * MouseState_swigregister(PyObject *, PyObject *args) { |
6803 | PyObject *obj; | |
6804 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6805 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseState, obj); | |
6806 | Py_INCREF(obj); | |
6807 | return Py_BuildValue((char *)""); | |
6808 | } | |
6809 | static PyObject *_wrap_GetMouseState(PyObject *, PyObject *args, PyObject *kwargs) { | |
6810 | PyObject *resultobj = NULL; | |
6811 | wxMouseState result; | |
39f61e25 | 6812 | char *kwnames[] = { |
32fe5131 | 6813 | NULL |
39f61e25 RD |
6814 | }; |
6815 | ||
32fe5131 | 6816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMouseState",kwnames)) goto fail; |
39f61e25 RD |
6817 | { |
6818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 6819 | result = wxGetMouseState(); |
39f61e25 RD |
6820 | |
6821 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6822 | if (PyErr_Occurred()) SWIG_fail; |
39f61e25 | 6823 | } |
4f89f6a3 | 6824 | { |
32fe5131 RD |
6825 | wxMouseState * resultptr; |
6826 | resultptr = new wxMouseState(static_cast<wxMouseState & >(result)); | |
6827 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMouseState, 1); | |
4f89f6a3 | 6828 | } |
39f61e25 RD |
6829 | return resultobj; |
6830 | fail: | |
6831 | return NULL; | |
6832 | } | |
6833 | ||
6834 | ||
c32bde28 | 6835 | static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6836 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6837 | char *kwnames[] = { |
6838 | NULL | |
6839 | }; | |
6840 | ||
6841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
6842 | { | |
e3b71cb8 | 6843 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6845 | wxWakeUpMainThread(); | |
6846 | ||
6847 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6848 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6849 | } |
6850 | Py_INCREF(Py_None); resultobj = Py_None; | |
6851 | return resultobj; | |
6852 | fail: | |
6853 | return NULL; | |
6854 | } | |
6855 | ||
6856 | ||
c32bde28 | 6857 | static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6858 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6859 | char *kwnames[] = { |
6860 | NULL | |
6861 | }; | |
6862 | ||
6863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
6864 | { | |
e3b71cb8 | 6865 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6867 | wxMutexGuiEnter(); | |
6868 | ||
6869 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6870 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6871 | } |
6872 | Py_INCREF(Py_None); resultobj = Py_None; | |
6873 | return resultobj; | |
6874 | fail: | |
6875 | return NULL; | |
6876 | } | |
6877 | ||
6878 | ||
c32bde28 | 6879 | static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6880 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6881 | char *kwnames[] = { |
6882 | NULL | |
6883 | }; | |
6884 | ||
6885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
6886 | { | |
e3b71cb8 | 6887 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6889 | wxMutexGuiLeave(); | |
6890 | ||
6891 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6892 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6893 | } |
6894 | Py_INCREF(Py_None); resultobj = Py_None; | |
6895 | return resultobj; | |
6896 | fail: | |
6897 | return NULL; | |
6898 | } | |
6899 | ||
6900 | ||
c32bde28 | 6901 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6902 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6903 | wxMutexGuiLocker *result; |
6904 | char *kwnames[] = { | |
6905 | NULL | |
6906 | }; | |
6907 | ||
6908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
6909 | { | |
e3b71cb8 | 6910 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6912 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
6913 | ||
6914 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6915 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6916 | } |
15afbcd0 | 6917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); |
d14a1e28 RD |
6918 | return resultobj; |
6919 | fail: | |
6920 | return NULL; | |
6921 | } | |
6922 | ||
6923 | ||
c32bde28 | 6924 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6925 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6926 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; |
6927 | PyObject * obj0 = 0 ; | |
6928 | char *kwnames[] = { | |
6929 | (char *) "self", NULL | |
6930 | }; | |
6931 | ||
6932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6933 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMutexGuiLocker, SWIG_POINTER_EXCEPTION | 0); |
6934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6935 | { |
6936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6937 | delete arg1; | |
6938 | ||
6939 | wxPyEndAllowThreads(__tstate); | |
6940 | if (PyErr_Occurred()) SWIG_fail; | |
6941 | } | |
6942 | Py_INCREF(Py_None); resultobj = Py_None; | |
6943 | return resultobj; | |
6944 | fail: | |
6945 | return NULL; | |
6946 | } | |
6947 | ||
6948 | ||
c32bde28 | 6949 | static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6950 | PyObject *obj; |
6951 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6952 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
6953 | Py_INCREF(obj); | |
6954 | return Py_BuildValue((char *)""); | |
6955 | } | |
c32bde28 | 6956 | static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6957 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6958 | bool result; |
6959 | char *kwnames[] = { | |
6960 | NULL | |
6961 | }; | |
6962 | ||
6963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
6964 | { | |
6965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6966 | result = (bool)wxThread_IsMain(); | |
6967 | ||
6968 | wxPyEndAllowThreads(__tstate); | |
6969 | if (PyErr_Occurred()) SWIG_fail; | |
6970 | } | |
4f89f6a3 RD |
6971 | { |
6972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6973 | } | |
d14a1e28 RD |
6974 | return resultobj; |
6975 | fail: | |
6976 | return NULL; | |
6977 | } | |
6978 | ||
6979 | ||
c32bde28 | 6980 | static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6981 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6982 | wxString *arg1 = 0 ; |
6983 | wxToolTip *result; | |
ae8162c8 | 6984 | bool temp1 = false ; |
d14a1e28 RD |
6985 | PyObject * obj0 = 0 ; |
6986 | char *kwnames[] = { | |
6987 | (char *) "tip", NULL | |
6988 | }; | |
6989 | ||
6990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
6991 | { | |
6992 | arg1 = wxString_in_helper(obj0); | |
6993 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 6994 | temp1 = true; |
d14a1e28 RD |
6995 | } |
6996 | { | |
e3b71cb8 | 6997 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
7000 | ||
7001 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7002 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7003 | } |
7e08d4ef | 7004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolTip, 1); |
d14a1e28 RD |
7005 | { |
7006 | if (temp1) | |
7007 | delete arg1; | |
7008 | } | |
7009 | return resultobj; | |
7010 | fail: | |
7011 | { | |
7012 | if (temp1) | |
7013 | delete arg1; | |
7014 | } | |
7015 | return NULL; | |
7016 | } | |
7017 | ||
7018 | ||
7e08d4ef RD |
7019 | static PyObject *_wrap_delete_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
7020 | PyObject *resultobj = NULL; | |
7021 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
7022 | PyObject * obj0 = 0 ; | |
7023 | char *kwnames[] = { | |
7024 | (char *) "self", NULL | |
7025 | }; | |
7026 | ||
7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ToolTip",kwnames,&obj0)) goto fail; | |
7028 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); | |
7029 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7030 | { | |
7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7032 | delete arg1; | |
7033 | ||
7034 | wxPyEndAllowThreads(__tstate); | |
7035 | if (PyErr_Occurred()) SWIG_fail; | |
7036 | } | |
7037 | Py_INCREF(Py_None); resultobj = Py_None; | |
7038 | return resultobj; | |
7039 | fail: | |
7040 | return NULL; | |
7041 | } | |
7042 | ||
7043 | ||
c32bde28 | 7044 | static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7045 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7046 | wxToolTip *arg1 = (wxToolTip *) 0 ; |
7047 | wxString *arg2 = 0 ; | |
ae8162c8 | 7048 | bool temp2 = false ; |
d14a1e28 RD |
7049 | PyObject * obj0 = 0 ; |
7050 | PyObject * obj1 = 0 ; | |
7051 | char *kwnames[] = { | |
7052 | (char *) "self",(char *) "tip", NULL | |
7053 | }; | |
7054 | ||
7055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
7057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7058 | { |
7059 | arg2 = wxString_in_helper(obj1); | |
7060 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7061 | temp2 = true; |
d14a1e28 RD |
7062 | } |
7063 | { | |
7064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7065 | (arg1)->SetTip((wxString const &)*arg2); | |
7066 | ||
7067 | wxPyEndAllowThreads(__tstate); | |
7068 | if (PyErr_Occurred()) SWIG_fail; | |
7069 | } | |
7070 | Py_INCREF(Py_None); resultobj = Py_None; | |
7071 | { | |
7072 | if (temp2) | |
7073 | delete arg2; | |
7074 | } | |
7075 | return resultobj; | |
7076 | fail: | |
7077 | { | |
7078 | if (temp2) | |
7079 | delete arg2; | |
7080 | } | |
7081 | return NULL; | |
7082 | } | |
7083 | ||
7084 | ||
c32bde28 | 7085 | static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7086 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7087 | wxToolTip *arg1 = (wxToolTip *) 0 ; |
7088 | wxString result; | |
7089 | PyObject * obj0 = 0 ; | |
7090 | char *kwnames[] = { | |
7091 | (char *) "self", NULL | |
7092 | }; | |
7093 | ||
7094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
7096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7097 | { |
7098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7099 | result = (arg1)->GetTip(); | |
7100 | ||
7101 | wxPyEndAllowThreads(__tstate); | |
7102 | if (PyErr_Occurred()) SWIG_fail; | |
7103 | } | |
7104 | { | |
7105 | #if wxUSE_UNICODE | |
7106 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7107 | #else | |
7108 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7109 | #endif | |
7110 | } | |
7111 | return resultobj; | |
7112 | fail: | |
7113 | return NULL; | |
7114 | } | |
7115 | ||
7116 | ||
c32bde28 | 7117 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7118 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7119 | wxToolTip *arg1 = (wxToolTip *) 0 ; |
7120 | wxWindow *result; | |
7121 | PyObject * obj0 = 0 ; | |
7122 | char *kwnames[] = { | |
7123 | (char *) "self", NULL | |
7124 | }; | |
7125 | ||
7126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
7128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7129 | { |
7130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7131 | result = (wxWindow *)(arg1)->GetWindow(); | |
7132 | ||
7133 | wxPyEndAllowThreads(__tstate); | |
7134 | if (PyErr_Occurred()) SWIG_fail; | |
7135 | } | |
7136 | { | |
412d302d | 7137 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
7138 | } |
7139 | return resultobj; | |
7140 | fail: | |
7141 | return NULL; | |
7142 | } | |
7143 | ||
7144 | ||
c32bde28 | 7145 | static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7146 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7147 | bool arg1 ; |
7148 | PyObject * obj0 = 0 ; | |
7149 | char *kwnames[] = { | |
7150 | (char *) "flag", NULL | |
7151 | }; | |
7152 | ||
7153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
093d3ff1 | 7154 | { |
32fe5131 | 7155 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 RD |
7156 | if (SWIG_arg_fail(1)) SWIG_fail; |
7157 | } | |
d14a1e28 RD |
7158 | { |
7159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7160 | wxToolTip::Enable(arg1); | |
7161 | ||
7162 | wxPyEndAllowThreads(__tstate); | |
7163 | if (PyErr_Occurred()) SWIG_fail; | |
7164 | } | |
7165 | Py_INCREF(Py_None); resultobj = Py_None; | |
7166 | return resultobj; | |
7167 | fail: | |
7168 | return NULL; | |
7169 | } | |
7170 | ||
7171 | ||
c32bde28 | 7172 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7173 | PyObject *resultobj = NULL; |
d14a1e28 | 7174 | long arg1 ; |
994141e6 | 7175 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7176 | char *kwnames[] = { |
7177 | (char *) "milliseconds", NULL | |
7178 | }; | |
7179 | ||
994141e6 | 7180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; |
093d3ff1 | 7181 | { |
32fe5131 | 7182 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
7183 | if (SWIG_arg_fail(1)) SWIG_fail; |
7184 | } | |
d14a1e28 RD |
7185 | { |
7186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7187 | wxToolTip::SetDelay(arg1); | |
7188 | ||
7189 | wxPyEndAllowThreads(__tstate); | |
7190 | if (PyErr_Occurred()) SWIG_fail; | |
7191 | } | |
7192 | Py_INCREF(Py_None); resultobj = Py_None; | |
7193 | return resultobj; | |
7194 | fail: | |
7195 | return NULL; | |
7196 | } | |
7197 | ||
7198 | ||
c32bde28 | 7199 | static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7200 | PyObject *obj; |
7201 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7202 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
7203 | Py_INCREF(obj); | |
7204 | return Py_BuildValue((char *)""); | |
7205 | } | |
c32bde28 | 7206 | static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7207 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7208 | wxWindow *arg1 = (wxWindow *) 0 ; |
7209 | wxSize *arg2 = 0 ; | |
7210 | wxCaret *result; | |
7211 | wxSize temp2 ; | |
7212 | PyObject * obj0 = 0 ; | |
7213 | PyObject * obj1 = 0 ; | |
7214 | char *kwnames[] = { | |
7215 | (char *) "window",(char *) "size", NULL | |
7216 | }; | |
7217 | ||
7218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7219 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7220 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7221 | { |
7222 | arg2 = &temp2; | |
7223 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7224 | } | |
7225 | { | |
e3b71cb8 | 7226 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7228 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
7229 | ||
7230 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7231 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7232 | } |
15afbcd0 | 7233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); |
d14a1e28 RD |
7234 | return resultobj; |
7235 | fail: | |
7236 | return NULL; | |
7237 | } | |
7238 | ||
7239 | ||
7e08d4ef RD |
7240 | static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
7241 | PyObject *resultobj = NULL; | |
7242 | wxCaret *arg1 = (wxCaret *) 0 ; | |
7243 | PyObject * obj0 = 0 ; | |
7244 | char *kwnames[] = { | |
7245 | (char *) "self", NULL | |
7246 | }; | |
7247 | ||
7248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
7249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); | |
7250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7251 | { | |
7252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7253 | delete arg1; | |
7254 | ||
7255 | wxPyEndAllowThreads(__tstate); | |
7256 | if (PyErr_Occurred()) SWIG_fail; | |
7257 | } | |
7258 | Py_INCREF(Py_None); resultobj = Py_None; | |
7259 | return resultobj; | |
7260 | fail: | |
7261 | return NULL; | |
7262 | } | |
7263 | ||
7264 | ||
8e738329 | 7265 | static PyObject *_wrap_Caret_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7266 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7267 | wxCaret *arg1 = (wxCaret *) 0 ; |
7268 | PyObject * obj0 = 0 ; | |
7269 | char *kwnames[] = { | |
7270 | (char *) "self", NULL | |
7271 | }; | |
7272 | ||
8e738329 | 7273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Destroy",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
7274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7276 | { |
7277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8e738329 | 7278 | wxCaret_Destroy(arg1); |
d14a1e28 RD |
7279 | |
7280 | wxPyEndAllowThreads(__tstate); | |
7281 | if (PyErr_Occurred()) SWIG_fail; | |
7282 | } | |
7283 | Py_INCREF(Py_None); resultobj = Py_None; | |
7284 | return resultobj; | |
7285 | fail: | |
7286 | return NULL; | |
7287 | } | |
7288 | ||
7289 | ||
c32bde28 | 7290 | static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7291 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7292 | wxCaret *arg1 = (wxCaret *) 0 ; |
7293 | bool result; | |
7294 | PyObject * obj0 = 0 ; | |
7295 | char *kwnames[] = { | |
7296 | (char *) "self", NULL | |
7297 | }; | |
7298 | ||
7299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7300 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7301 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7302 | { |
7303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7304 | result = (bool)(arg1)->IsOk(); | |
7305 | ||
7306 | wxPyEndAllowThreads(__tstate); | |
7307 | if (PyErr_Occurred()) SWIG_fail; | |
7308 | } | |
4f89f6a3 RD |
7309 | { |
7310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7311 | } | |
d14a1e28 RD |
7312 | return resultobj; |
7313 | fail: | |
7314 | return NULL; | |
7315 | } | |
7316 | ||
7317 | ||
c32bde28 | 7318 | static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7319 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7320 | wxCaret *arg1 = (wxCaret *) 0 ; |
7321 | bool result; | |
7322 | PyObject * obj0 = 0 ; | |
7323 | char *kwnames[] = { | |
7324 | (char *) "self", NULL | |
7325 | }; | |
7326 | ||
7327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7330 | { |
7331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7332 | result = (bool)(arg1)->IsVisible(); | |
7333 | ||
7334 | wxPyEndAllowThreads(__tstate); | |
7335 | if (PyErr_Occurred()) SWIG_fail; | |
7336 | } | |
4f89f6a3 RD |
7337 | { |
7338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7339 | } | |
d14a1e28 RD |
7340 | return resultobj; |
7341 | fail: | |
7342 | return NULL; | |
7343 | } | |
7344 | ||
7345 | ||
c32bde28 | 7346 | static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7347 | PyObject *resultobj = NULL; |
322913ce RD |
7348 | wxCaret *arg1 = (wxCaret *) 0 ; |
7349 | wxPoint result; | |
7350 | PyObject * obj0 = 0 ; | |
7351 | char *kwnames[] = { | |
7352 | (char *) "self", NULL | |
7353 | }; | |
7354 | ||
7355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
322913ce RD |
7358 | { |
7359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7360 | result = (arg1)->GetPosition(); | |
7361 | ||
7362 | wxPyEndAllowThreads(__tstate); | |
7363 | if (PyErr_Occurred()) SWIG_fail; | |
7364 | } | |
7365 | { | |
7366 | wxPoint * resultptr; | |
32fe5131 | 7367 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
15afbcd0 | 7368 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
322913ce RD |
7369 | } |
7370 | return resultobj; | |
7371 | fail: | |
7372 | return NULL; | |
7373 | } | |
7374 | ||
7375 | ||
c32bde28 | 7376 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7377 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7378 | wxCaret *arg1 = (wxCaret *) 0 ; |
7379 | int *arg2 = (int *) 0 ; | |
7380 | int *arg3 = (int *) 0 ; | |
7381 | int temp2 ; | |
c32bde28 | 7382 | int res2 = 0 ; |
d14a1e28 | 7383 | int temp3 ; |
c32bde28 | 7384 | int res3 = 0 ; |
d14a1e28 RD |
7385 | PyObject * obj0 = 0 ; |
7386 | char *kwnames[] = { | |
7387 | (char *) "self", NULL | |
7388 | }; | |
7389 | ||
c32bde28 RD |
7390 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
7391 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
7393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7395 | { |
7396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7397 | (arg1)->GetPosition(arg2,arg3); | |
7398 | ||
7399 | wxPyEndAllowThreads(__tstate); | |
7400 | if (PyErr_Occurred()) SWIG_fail; | |
7401 | } | |
7402 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
7403 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
7404 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
7405 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
7406 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
7407 | return resultobj; |
7408 | fail: | |
7409 | return NULL; | |
7410 | } | |
7411 | ||
7412 | ||
c32bde28 | 7413 | static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7414 | PyObject *resultobj = NULL; |
d14a1e28 | 7415 | wxCaret *arg1 = (wxCaret *) 0 ; |
322913ce | 7416 | wxSize result; |
d14a1e28 RD |
7417 | PyObject * obj0 = 0 ; |
7418 | char *kwnames[] = { | |
7419 | (char *) "self", NULL | |
7420 | }; | |
7421 | ||
322913ce | 7422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
7423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7425 | { |
7426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 7427 | result = (arg1)->GetSize(); |
d14a1e28 RD |
7428 | |
7429 | wxPyEndAllowThreads(__tstate); | |
7430 | if (PyErr_Occurred()) SWIG_fail; | |
7431 | } | |
7432 | { | |
322913ce | 7433 | wxSize * resultptr; |
32fe5131 | 7434 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 7435 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
7436 | } |
7437 | return resultobj; | |
7438 | fail: | |
7439 | return NULL; | |
7440 | } | |
7441 | ||
7442 | ||
c32bde28 | 7443 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7444 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7445 | wxCaret *arg1 = (wxCaret *) 0 ; |
7446 | int *arg2 = (int *) 0 ; | |
7447 | int *arg3 = (int *) 0 ; | |
7448 | int temp2 ; | |
c32bde28 | 7449 | int res2 = 0 ; |
d14a1e28 | 7450 | int temp3 ; |
c32bde28 | 7451 | int res3 = 0 ; |
d14a1e28 RD |
7452 | PyObject * obj0 = 0 ; |
7453 | char *kwnames[] = { | |
7454 | (char *) "self", NULL | |
7455 | }; | |
7456 | ||
c32bde28 RD |
7457 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
7458 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 7459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
7460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7462 | { |
7463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7464 | (arg1)->GetSize(arg2,arg3); | |
7465 | ||
7466 | wxPyEndAllowThreads(__tstate); | |
7467 | if (PyErr_Occurred()) SWIG_fail; | |
7468 | } | |
7469 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
7470 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
7471 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
7472 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
7473 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
7474 | return resultobj; |
7475 | fail: | |
7476 | return NULL; | |
7477 | } | |
7478 | ||
7479 | ||
c32bde28 | 7480 | static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7481 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7482 | wxCaret *arg1 = (wxCaret *) 0 ; |
7483 | wxWindow *result; | |
7484 | PyObject * obj0 = 0 ; | |
7485 | char *kwnames[] = { | |
7486 | (char *) "self", NULL | |
7487 | }; | |
7488 | ||
7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7490 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7491 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7492 | { |
7493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7494 | result = (wxWindow *)(arg1)->GetWindow(); | |
7495 | ||
7496 | wxPyEndAllowThreads(__tstate); | |
7497 | if (PyErr_Occurred()) SWIG_fail; | |
7498 | } | |
7499 | { | |
412d302d | 7500 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
7501 | } |
7502 | return resultobj; | |
7503 | fail: | |
7504 | return NULL; | |
7505 | } | |
7506 | ||
7507 | ||
c32bde28 | 7508 | static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7509 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7510 | wxCaret *arg1 = (wxCaret *) 0 ; |
7511 | int arg2 ; | |
7512 | int arg3 ; | |
7513 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7514 | PyObject * obj1 = 0 ; |
7515 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7516 | char *kwnames[] = { |
7517 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7518 | }; | |
7519 | ||
994141e6 | 7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7523 | { | |
32fe5131 | 7524 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7525 | if (SWIG_arg_fail(2)) SWIG_fail; |
7526 | } | |
7527 | { | |
32fe5131 | 7528 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7529 | if (SWIG_arg_fail(3)) SWIG_fail; |
7530 | } | |
d14a1e28 RD |
7531 | { |
7532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7533 | (arg1)->Move(arg2,arg3); | |
7534 | ||
7535 | wxPyEndAllowThreads(__tstate); | |
7536 | if (PyErr_Occurred()) SWIG_fail; | |
7537 | } | |
7538 | Py_INCREF(Py_None); resultobj = Py_None; | |
7539 | return resultobj; | |
7540 | fail: | |
7541 | return NULL; | |
7542 | } | |
7543 | ||
7544 | ||
c32bde28 | 7545 | static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7546 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7547 | wxCaret *arg1 = (wxCaret *) 0 ; |
7548 | wxPoint *arg2 = 0 ; | |
7549 | wxPoint temp2 ; | |
7550 | PyObject * obj0 = 0 ; | |
7551 | PyObject * obj1 = 0 ; | |
7552 | char *kwnames[] = { | |
7553 | (char *) "self",(char *) "pt", NULL | |
7554 | }; | |
7555 | ||
7556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7557 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7558 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7559 | { |
7560 | arg2 = &temp2; | |
7561 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7562 | } | |
7563 | { | |
7564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7565 | (arg1)->Move((wxPoint const &)*arg2); | |
7566 | ||
7567 | wxPyEndAllowThreads(__tstate); | |
7568 | if (PyErr_Occurred()) SWIG_fail; | |
7569 | } | |
7570 | Py_INCREF(Py_None); resultobj = Py_None; | |
7571 | return resultobj; | |
7572 | fail: | |
7573 | return NULL; | |
7574 | } | |
7575 | ||
7576 | ||
c32bde28 | 7577 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7578 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7579 | wxCaret *arg1 = (wxCaret *) 0 ; |
7580 | int arg2 ; | |
7581 | int arg3 ; | |
7582 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7583 | PyObject * obj1 = 0 ; |
7584 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7585 | char *kwnames[] = { |
7586 | (char *) "self",(char *) "width",(char *) "height", NULL | |
7587 | }; | |
7588 | ||
994141e6 | 7589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7592 | { | |
32fe5131 | 7593 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7594 | if (SWIG_arg_fail(2)) SWIG_fail; |
7595 | } | |
7596 | { | |
32fe5131 | 7597 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7598 | if (SWIG_arg_fail(3)) SWIG_fail; |
7599 | } | |
d14a1e28 RD |
7600 | { |
7601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7602 | (arg1)->SetSize(arg2,arg3); | |
7603 | ||
7604 | wxPyEndAllowThreads(__tstate); | |
7605 | if (PyErr_Occurred()) SWIG_fail; | |
7606 | } | |
7607 | Py_INCREF(Py_None); resultobj = Py_None; | |
7608 | return resultobj; | |
7609 | fail: | |
7610 | return NULL; | |
7611 | } | |
7612 | ||
7613 | ||
c32bde28 | 7614 | static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7615 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7616 | wxCaret *arg1 = (wxCaret *) 0 ; |
7617 | wxSize *arg2 = 0 ; | |
7618 | wxSize temp2 ; | |
7619 | PyObject * obj0 = 0 ; | |
7620 | PyObject * obj1 = 0 ; | |
7621 | char *kwnames[] = { | |
7622 | (char *) "self",(char *) "size", NULL | |
7623 | }; | |
7624 | ||
7625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7626 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7627 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7628 | { |
7629 | arg2 = &temp2; | |
7630 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7631 | } | |
7632 | { | |
7633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7634 | (arg1)->SetSize((wxSize const &)*arg2); | |
7635 | ||
7636 | wxPyEndAllowThreads(__tstate); | |
7637 | if (PyErr_Occurred()) SWIG_fail; | |
7638 | } | |
7639 | Py_INCREF(Py_None); resultobj = Py_None; | |
7640 | return resultobj; | |
7641 | fail: | |
7642 | return NULL; | |
7643 | } | |
7644 | ||
7645 | ||
c32bde28 | 7646 | static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7647 | PyObject *resultobj = NULL; |
d14a1e28 | 7648 | wxCaret *arg1 = (wxCaret *) 0 ; |
ae8162c8 | 7649 | int arg2 = (int) true ; |
d14a1e28 | 7650 | PyObject * obj0 = 0 ; |
994141e6 | 7651 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7652 | char *kwnames[] = { |
7653 | (char *) "self",(char *) "show", NULL | |
7654 | }; | |
7655 | ||
994141e6 | 7656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 7659 | if (obj1) { |
093d3ff1 | 7660 | { |
32fe5131 | 7661 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7662 | if (SWIG_arg_fail(2)) SWIG_fail; |
7663 | } | |
994141e6 | 7664 | } |
d14a1e28 RD |
7665 | { |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | (arg1)->Show(arg2); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
7672 | Py_INCREF(Py_None); resultobj = Py_None; | |
7673 | return resultobj; | |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
c32bde28 | 7679 | static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7680 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7681 | wxCaret *arg1 = (wxCaret *) 0 ; |
7682 | PyObject * obj0 = 0 ; | |
7683 | char *kwnames[] = { | |
7684 | (char *) "self", NULL | |
7685 | }; | |
7686 | ||
7687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
7689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7690 | { |
7691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7692 | (arg1)->Hide(); | |
7693 | ||
7694 | wxPyEndAllowThreads(__tstate); | |
7695 | if (PyErr_Occurred()) SWIG_fail; | |
7696 | } | |
7697 | Py_INCREF(Py_None); resultobj = Py_None; | |
7698 | return resultobj; | |
7699 | fail: | |
7700 | return NULL; | |
7701 | } | |
7702 | ||
7703 | ||
c32bde28 | 7704 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7705 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7706 | int result; |
7707 | char *kwnames[] = { | |
7708 | NULL | |
7709 | }; | |
7710 | ||
7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
7712 | { | |
7713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8e738329 | 7714 | result = (int)wxCaret::GetBlinkTime(); |
d14a1e28 RD |
7715 | |
7716 | wxPyEndAllowThreads(__tstate); | |
7717 | if (PyErr_Occurred()) SWIG_fail; | |
7718 | } | |
093d3ff1 | 7719 | { |
32fe5131 | 7720 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 7721 | } |
d14a1e28 RD |
7722 | return resultobj; |
7723 | fail: | |
7724 | return NULL; | |
7725 | } | |
7726 | ||
7727 | ||
c32bde28 | 7728 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7729 | PyObject *resultobj = NULL; |
d14a1e28 | 7730 | int arg1 ; |
994141e6 | 7731 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7732 | char *kwnames[] = { |
7733 | (char *) "milliseconds", NULL | |
7734 | }; | |
7735 | ||
994141e6 | 7736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; |
093d3ff1 | 7737 | { |
32fe5131 | 7738 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
7739 | if (SWIG_arg_fail(1)) SWIG_fail; |
7740 | } | |
d14a1e28 RD |
7741 | { |
7742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8e738329 | 7743 | wxCaret::SetBlinkTime(arg1); |
d14a1e28 RD |
7744 | |
7745 | wxPyEndAllowThreads(__tstate); | |
7746 | if (PyErr_Occurred()) SWIG_fail; | |
7747 | } | |
7748 | Py_INCREF(Py_None); resultobj = Py_None; | |
7749 | return resultobj; | |
7750 | fail: | |
7751 | return NULL; | |
7752 | } | |
7753 | ||
7754 | ||
8e738329 RD |
7755 | static PyObject * Caret_swigregister(PyObject *, PyObject *args) { |
7756 | PyObject *obj; | |
7757 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7758 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
7759 | Py_INCREF(obj); | |
7760 | return Py_BuildValue((char *)""); | |
7761 | } | |
c32bde28 | 7762 | static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7763 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7764 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; |
7765 | wxBusyCursor *result; | |
7766 | PyObject * obj0 = 0 ; | |
7767 | char *kwnames[] = { | |
7768 | (char *) "cursor", NULL | |
7769 | }; | |
7770 | ||
7771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
7772 | if (obj0) { | |
093d3ff1 RD |
7773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); |
7774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7775 | } |
7776 | { | |
e3b71cb8 | 7777 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7779 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
7780 | ||
7781 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7782 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7783 | } |
15afbcd0 | 7784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); |
d14a1e28 RD |
7785 | return resultobj; |
7786 | fail: | |
7787 | return NULL; | |
7788 | } | |
7789 | ||
7790 | ||
c32bde28 | 7791 | static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7792 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7793 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; |
7794 | PyObject * obj0 = 0 ; | |
7795 | char *kwnames[] = { | |
7796 | (char *) "self", NULL | |
7797 | }; | |
7798 | ||
7799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7800 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyCursor, SWIG_POINTER_EXCEPTION | 0); |
7801 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7802 | { |
7803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7804 | delete arg1; | |
7805 | ||
7806 | wxPyEndAllowThreads(__tstate); | |
7807 | if (PyErr_Occurred()) SWIG_fail; | |
7808 | } | |
7809 | Py_INCREF(Py_None); resultobj = Py_None; | |
7810 | return resultobj; | |
7811 | fail: | |
7812 | return NULL; | |
7813 | } | |
7814 | ||
7815 | ||
c32bde28 | 7816 | static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7817 | PyObject *obj; |
7818 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7819 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
7820 | Py_INCREF(obj); | |
7821 | return Py_BuildValue((char *)""); | |
7822 | } | |
c32bde28 | 7823 | static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7824 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7825 | wxWindow *arg1 = (wxWindow *) NULL ; |
7826 | wxWindowDisabler *result; | |
7827 | PyObject * obj0 = 0 ; | |
7828 | char *kwnames[] = { | |
7829 | (char *) "winToSkip", NULL | |
7830 | }; | |
7831 | ||
7832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
7833 | if (obj0) { | |
093d3ff1 RD |
7834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7836 | } |
7837 | { | |
e3b71cb8 | 7838 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7840 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
7841 | ||
7842 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7843 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7844 | } |
15afbcd0 | 7845 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); |
d14a1e28 RD |
7846 | return resultobj; |
7847 | fail: | |
7848 | return NULL; | |
7849 | } | |
7850 | ||
7851 | ||
c32bde28 | 7852 | static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7853 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7854 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; |
7855 | PyObject * obj0 = 0 ; | |
7856 | char *kwnames[] = { | |
7857 | (char *) "self", NULL | |
7858 | }; | |
7859 | ||
7860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowDisabler, SWIG_POINTER_EXCEPTION | 0); |
7862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7863 | { |
7864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7865 | delete arg1; | |
7866 | ||
7867 | wxPyEndAllowThreads(__tstate); | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | } | |
7870 | Py_INCREF(Py_None); resultobj = Py_None; | |
7871 | return resultobj; | |
7872 | fail: | |
7873 | return NULL; | |
7874 | } | |
7875 | ||
7876 | ||
c32bde28 | 7877 | static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7878 | PyObject *obj; |
7879 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7880 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
7881 | Py_INCREF(obj); | |
7882 | return Py_BuildValue((char *)""); | |
7883 | } | |
c32bde28 | 7884 | static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7885 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7886 | wxString *arg1 = 0 ; |
7887 | wxBusyInfo *result; | |
ae8162c8 | 7888 | bool temp1 = false ; |
d14a1e28 RD |
7889 | PyObject * obj0 = 0 ; |
7890 | char *kwnames[] = { | |
7891 | (char *) "message", NULL | |
7892 | }; | |
7893 | ||
7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
7895 | { | |
7896 | arg1 = wxString_in_helper(obj0); | |
7897 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7898 | temp1 = true; |
d14a1e28 RD |
7899 | } |
7900 | { | |
e3b71cb8 | 7901 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7903 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
7904 | ||
7905 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7906 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7907 | } |
15afbcd0 | 7908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); |
d14a1e28 RD |
7909 | { |
7910 | if (temp1) | |
7911 | delete arg1; | |
7912 | } | |
7913 | return resultobj; | |
7914 | fail: | |
7915 | { | |
7916 | if (temp1) | |
7917 | delete arg1; | |
7918 | } | |
7919 | return NULL; | |
7920 | } | |
7921 | ||
7922 | ||
c32bde28 | 7923 | static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7924 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7925 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; |
7926 | PyObject * obj0 = 0 ; | |
7927 | char *kwnames[] = { | |
7928 | (char *) "self", NULL | |
7929 | }; | |
7930 | ||
7931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyInfo, SWIG_POINTER_EXCEPTION | 0); |
7933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7934 | { |
7935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7936 | delete arg1; | |
7937 | ||
7938 | wxPyEndAllowThreads(__tstate); | |
7939 | if (PyErr_Occurred()) SWIG_fail; | |
7940 | } | |
7941 | Py_INCREF(Py_None); resultobj = Py_None; | |
7942 | return resultobj; | |
7943 | fail: | |
7944 | return NULL; | |
7945 | } | |
7946 | ||
7947 | ||
c32bde28 | 7948 | static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7949 | PyObject *obj; |
7950 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7951 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
7952 | Py_INCREF(obj); | |
7953 | return Py_BuildValue((char *)""); | |
7954 | } | |
c32bde28 | 7955 | static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7956 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7957 | wxStopWatch *result; |
7958 | char *kwnames[] = { | |
7959 | NULL | |
7960 | }; | |
7961 | ||
7962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
7963 | { | |
7964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7965 | result = (wxStopWatch *)new wxStopWatch(); | |
7966 | ||
7967 | wxPyEndAllowThreads(__tstate); | |
7968 | if (PyErr_Occurred()) SWIG_fail; | |
7969 | } | |
15afbcd0 | 7970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); |
d14a1e28 RD |
7971 | return resultobj; |
7972 | fail: | |
7973 | return NULL; | |
7974 | } | |
7975 | ||
7976 | ||
c32bde28 | 7977 | static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7978 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7979 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; |
7980 | long arg2 = (long) 0 ; | |
7981 | PyObject * obj0 = 0 ; | |
994141e6 | 7982 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7983 | char *kwnames[] = { |
7984 | (char *) "self",(char *) "t0", NULL | |
7985 | }; | |
7986 | ||
994141e6 | 7987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
7989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 7990 | if (obj1) { |
093d3ff1 | 7991 | { |
32fe5131 | 7992 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
7993 | if (SWIG_arg_fail(2)) SWIG_fail; |
7994 | } | |
994141e6 | 7995 | } |
d14a1e28 RD |
7996 | { |
7997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7998 | (arg1)->Start(arg2); | |
7999 | ||
8000 | wxPyEndAllowThreads(__tstate); | |
8001 | if (PyErr_Occurred()) SWIG_fail; | |
8002 | } | |
8003 | Py_INCREF(Py_None); resultobj = Py_None; | |
8004 | return resultobj; | |
8005 | fail: | |
8006 | return NULL; | |
8007 | } | |
8008 | ||
8009 | ||
c32bde28 | 8010 | static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8011 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8012 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; |
8013 | PyObject * obj0 = 0 ; | |
8014 | char *kwnames[] = { | |
8015 | (char *) "self", NULL | |
8016 | }; | |
8017 | ||
8018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
8020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8021 | { |
8022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8023 | (arg1)->Pause(); | |
8024 | ||
8025 | wxPyEndAllowThreads(__tstate); | |
8026 | if (PyErr_Occurred()) SWIG_fail; | |
8027 | } | |
8028 | Py_INCREF(Py_None); resultobj = Py_None; | |
8029 | return resultobj; | |
8030 | fail: | |
8031 | return NULL; | |
8032 | } | |
8033 | ||
8034 | ||
c32bde28 | 8035 | static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8036 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8037 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; |
8038 | PyObject * obj0 = 0 ; | |
8039 | char *kwnames[] = { | |
8040 | (char *) "self", NULL | |
8041 | }; | |
8042 | ||
8043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
8045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8046 | { |
8047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8048 | (arg1)->Resume(); | |
8049 | ||
8050 | wxPyEndAllowThreads(__tstate); | |
8051 | if (PyErr_Occurred()) SWIG_fail; | |
8052 | } | |
8053 | Py_INCREF(Py_None); resultobj = Py_None; | |
8054 | return resultobj; | |
8055 | fail: | |
8056 | return NULL; | |
8057 | } | |
8058 | ||
8059 | ||
c32bde28 | 8060 | static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8061 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8062 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; |
8063 | long result; | |
8064 | PyObject * obj0 = 0 ; | |
8065 | char *kwnames[] = { | |
8066 | (char *) "self", NULL | |
8067 | }; | |
8068 | ||
8069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
8071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8072 | { |
8073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8074 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
8075 | ||
8076 | wxPyEndAllowThreads(__tstate); | |
8077 | if (PyErr_Occurred()) SWIG_fail; | |
8078 | } | |
093d3ff1 | 8079 | { |
32fe5131 | 8080 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 8081 | } |
d14a1e28 RD |
8082 | return resultobj; |
8083 | fail: | |
8084 | return NULL; | |
8085 | } | |
8086 | ||
8087 | ||
c32bde28 | 8088 | static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8089 | PyObject *obj; |
8090 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8091 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
8092 | Py_INCREF(obj); | |
8093 | return Py_BuildValue((char *)""); | |
8094 | } | |
c32bde28 | 8095 | static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8096 | PyObject *resultobj = NULL; |
d14a1e28 | 8097 | int arg1 = (int) 9 ; |
4cf4100f | 8098 | int arg2 = (int) wxID_FILE1 ; |
d14a1e28 | 8099 | wxFileHistory *result; |
994141e6 | 8100 | PyObject * obj0 = 0 ; |
4cf4100f | 8101 | PyObject * obj1 = 0 ; |
d14a1e28 | 8102 | char *kwnames[] = { |
4cf4100f | 8103 | (char *) "maxFiles",(char *) "idBase", NULL |
d14a1e28 RD |
8104 | }; |
8105 | ||
4cf4100f | 8106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail; |
994141e6 | 8107 | if (obj0) { |
093d3ff1 | 8108 | { |
32fe5131 | 8109 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
8110 | if (SWIG_arg_fail(1)) SWIG_fail; |
8111 | } | |
994141e6 | 8112 | } |
4cf4100f | 8113 | if (obj1) { |
093d3ff1 | 8114 | { |
32fe5131 | 8115 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8116 | if (SWIG_arg_fail(2)) SWIG_fail; |
8117 | } | |
4cf4100f | 8118 | } |
d14a1e28 RD |
8119 | { |
8120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4cf4100f | 8121 | result = (wxFileHistory *)new wxFileHistory(arg1,arg2); |
d14a1e28 RD |
8122 | |
8123 | wxPyEndAllowThreads(__tstate); | |
8124 | if (PyErr_Occurred()) SWIG_fail; | |
8125 | } | |
15afbcd0 | 8126 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); |
d14a1e28 RD |
8127 | return resultobj; |
8128 | fail: | |
8129 | return NULL; | |
8130 | } | |
8131 | ||
8132 | ||
c32bde28 | 8133 | static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8134 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8135 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8136 | PyObject * obj0 = 0 ; | |
8137 | char *kwnames[] = { | |
8138 | (char *) "self", NULL | |
8139 | }; | |
8140 | ||
8141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8144 | { |
8145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8146 | delete arg1; | |
8147 | ||
8148 | wxPyEndAllowThreads(__tstate); | |
8149 | if (PyErr_Occurred()) SWIG_fail; | |
8150 | } | |
8151 | Py_INCREF(Py_None); resultobj = Py_None; | |
8152 | return resultobj; | |
8153 | fail: | |
8154 | return NULL; | |
8155 | } | |
8156 | ||
8157 | ||
c32bde28 | 8158 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8159 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8160 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8161 | wxString *arg2 = 0 ; | |
ae8162c8 | 8162 | bool temp2 = false ; |
d14a1e28 RD |
8163 | PyObject * obj0 = 0 ; |
8164 | PyObject * obj1 = 0 ; | |
8165 | char *kwnames[] = { | |
8166 | (char *) "self",(char *) "file", NULL | |
8167 | }; | |
8168 | ||
8169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8172 | { |
8173 | arg2 = wxString_in_helper(obj1); | |
8174 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8175 | temp2 = true; |
d14a1e28 RD |
8176 | } |
8177 | { | |
8178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8179 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
8180 | ||
8181 | wxPyEndAllowThreads(__tstate); | |
8182 | if (PyErr_Occurred()) SWIG_fail; | |
8183 | } | |
8184 | Py_INCREF(Py_None); resultobj = Py_None; | |
8185 | { | |
8186 | if (temp2) | |
8187 | delete arg2; | |
8188 | } | |
8189 | return resultobj; | |
8190 | fail: | |
8191 | { | |
8192 | if (temp2) | |
8193 | delete arg2; | |
8194 | } | |
8195 | return NULL; | |
8196 | } | |
8197 | ||
8198 | ||
c32bde28 | 8199 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8200 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8201 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8202 | int arg2 ; | |
8203 | PyObject * obj0 = 0 ; | |
994141e6 | 8204 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8205 | char *kwnames[] = { |
8206 | (char *) "self",(char *) "i", NULL | |
8207 | }; | |
8208 | ||
994141e6 | 8209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8210 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8211 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8212 | { | |
32fe5131 | 8213 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8214 | if (SWIG_arg_fail(2)) SWIG_fail; |
8215 | } | |
d14a1e28 RD |
8216 | { |
8217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8218 | (arg1)->RemoveFileFromHistory(arg2); | |
8219 | ||
8220 | wxPyEndAllowThreads(__tstate); | |
8221 | if (PyErr_Occurred()) SWIG_fail; | |
8222 | } | |
8223 | Py_INCREF(Py_None); resultobj = Py_None; | |
8224 | return resultobj; | |
8225 | fail: | |
8226 | return NULL; | |
8227 | } | |
8228 | ||
8229 | ||
c32bde28 | 8230 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8231 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8232 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8233 | int result; | |
8234 | PyObject * obj0 = 0 ; | |
8235 | char *kwnames[] = { | |
8236 | (char *) "self", NULL | |
8237 | }; | |
8238 | ||
8239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8242 | { |
8243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8244 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
8245 | ||
8246 | wxPyEndAllowThreads(__tstate); | |
8247 | if (PyErr_Occurred()) SWIG_fail; | |
8248 | } | |
093d3ff1 | 8249 | { |
32fe5131 | 8250 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 8251 | } |
d14a1e28 RD |
8252 | return resultobj; |
8253 | fail: | |
8254 | return NULL; | |
8255 | } | |
8256 | ||
8257 | ||
c32bde28 | 8258 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8259 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8260 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8261 | wxMenu *arg2 = (wxMenu *) 0 ; | |
8262 | PyObject * obj0 = 0 ; | |
8263 | PyObject * obj1 = 0 ; | |
8264 | char *kwnames[] = { | |
8265 | (char *) "self",(char *) "menu", NULL | |
8266 | }; | |
8267 | ||
8268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8271 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
8272 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
8273 | { |
8274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8275 | (arg1)->UseMenu(arg2); | |
8276 | ||
8277 | wxPyEndAllowThreads(__tstate); | |
8278 | if (PyErr_Occurred()) SWIG_fail; | |
8279 | } | |
8280 | Py_INCREF(Py_None); resultobj = Py_None; | |
8281 | return resultobj; | |
8282 | fail: | |
8283 | return NULL; | |
8284 | } | |
8285 | ||
8286 | ||
c32bde28 | 8287 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8288 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8289 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8290 | wxMenu *arg2 = (wxMenu *) 0 ; | |
8291 | PyObject * obj0 = 0 ; | |
8292 | PyObject * obj1 = 0 ; | |
8293 | char *kwnames[] = { | |
8294 | (char *) "self",(char *) "menu", NULL | |
8295 | }; | |
8296 | ||
8297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8300 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
8301 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
8302 | { |
8303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8304 | (arg1)->RemoveMenu(arg2); | |
8305 | ||
8306 | wxPyEndAllowThreads(__tstate); | |
8307 | if (PyErr_Occurred()) SWIG_fail; | |
8308 | } | |
8309 | Py_INCREF(Py_None); resultobj = Py_None; | |
8310 | return resultobj; | |
8311 | fail: | |
8312 | return NULL; | |
8313 | } | |
8314 | ||
8315 | ||
c32bde28 | 8316 | static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8317 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8318 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8319 | wxConfigBase *arg2 = 0 ; | |
8320 | PyObject * obj0 = 0 ; | |
8321 | PyObject * obj1 = 0 ; | |
8322 | char *kwnames[] = { | |
8323 | (char *) "self",(char *) "config", NULL | |
8324 | }; | |
8325 | ||
8326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8329 | { | |
8330 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); | |
8331 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8332 | if (arg2 == NULL) { | |
8333 | SWIG_null_ref("wxConfigBase"); | |
8334 | } | |
8335 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
8336 | } |
8337 | { | |
8338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8339 | (arg1)->Load(*arg2); | |
8340 | ||
8341 | wxPyEndAllowThreads(__tstate); | |
8342 | if (PyErr_Occurred()) SWIG_fail; | |
8343 | } | |
8344 | Py_INCREF(Py_None); resultobj = Py_None; | |
8345 | return resultobj; | |
8346 | fail: | |
8347 | return NULL; | |
8348 | } | |
8349 | ||
8350 | ||
c32bde28 | 8351 | static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8352 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8353 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8354 | wxConfigBase *arg2 = 0 ; | |
8355 | PyObject * obj0 = 0 ; | |
8356 | PyObject * obj1 = 0 ; | |
8357 | char *kwnames[] = { | |
8358 | (char *) "self",(char *) "config", NULL | |
8359 | }; | |
8360 | ||
8361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8364 | { | |
8365 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); | |
8366 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8367 | if (arg2 == NULL) { | |
8368 | SWIG_null_ref("wxConfigBase"); | |
8369 | } | |
8370 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
8371 | } |
8372 | { | |
8373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8374 | (arg1)->Save(*arg2); | |
8375 | ||
8376 | wxPyEndAllowThreads(__tstate); | |
8377 | if (PyErr_Occurred()) SWIG_fail; | |
8378 | } | |
8379 | Py_INCREF(Py_None); resultobj = Py_None; | |
8380 | return resultobj; | |
8381 | fail: | |
8382 | return NULL; | |
8383 | } | |
8384 | ||
8385 | ||
c32bde28 | 8386 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8387 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8388 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8389 | PyObject * obj0 = 0 ; | |
8390 | char *kwnames[] = { | |
8391 | (char *) "self", NULL | |
8392 | }; | |
8393 | ||
8394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8397 | { |
8398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8399 | (arg1)->AddFilesToMenu(); | |
8400 | ||
8401 | wxPyEndAllowThreads(__tstate); | |
8402 | if (PyErr_Occurred()) SWIG_fail; | |
8403 | } | |
8404 | Py_INCREF(Py_None); resultobj = Py_None; | |
8405 | return resultobj; | |
8406 | fail: | |
8407 | return NULL; | |
8408 | } | |
8409 | ||
8410 | ||
c32bde28 | 8411 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8412 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8413 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8414 | wxMenu *arg2 = (wxMenu *) 0 ; | |
8415 | PyObject * obj0 = 0 ; | |
8416 | PyObject * obj1 = 0 ; | |
8417 | char *kwnames[] = { | |
8418 | (char *) "self",(char *) "menu", NULL | |
8419 | }; | |
8420 | ||
8421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8422 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8423 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8424 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
8425 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
8426 | { |
8427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8428 | (arg1)->AddFilesToMenu(arg2); | |
8429 | ||
8430 | wxPyEndAllowThreads(__tstate); | |
8431 | if (PyErr_Occurred()) SWIG_fail; | |
8432 | } | |
8433 | Py_INCREF(Py_None); resultobj = Py_None; | |
8434 | return resultobj; | |
8435 | fail: | |
8436 | return NULL; | |
8437 | } | |
8438 | ||
8439 | ||
c32bde28 | 8440 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8441 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8442 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8443 | int arg2 ; | |
8444 | wxString result; | |
8445 | PyObject * obj0 = 0 ; | |
994141e6 | 8446 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8447 | char *kwnames[] = { |
8448 | (char *) "self",(char *) "i", NULL | |
8449 | }; | |
8450 | ||
994141e6 | 8451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8452 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8453 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 8454 | { |
32fe5131 | 8455 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8456 | if (SWIG_arg_fail(2)) SWIG_fail; |
8457 | } | |
8458 | { | |
8459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 RD |
8460 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); |
8461 | ||
8462 | wxPyEndAllowThreads(__tstate); | |
8463 | if (PyErr_Occurred()) SWIG_fail; | |
8464 | } | |
8465 | { | |
8466 | #if wxUSE_UNICODE | |
8467 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8468 | #else | |
8469 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8470 | #endif | |
8471 | } | |
8472 | return resultobj; | |
8473 | fail: | |
8474 | return NULL; | |
8475 | } | |
8476 | ||
8477 | ||
c32bde28 | 8478 | static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8479 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8480 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; |
8481 | int result; | |
8482 | PyObject * obj0 = 0 ; | |
8483 | char *kwnames[] = { | |
8484 | (char *) "self", NULL | |
8485 | }; | |
8486 | ||
8487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
8489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8490 | { |
8491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8492 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
8493 | ||
8494 | wxPyEndAllowThreads(__tstate); | |
8495 | if (PyErr_Occurred()) SWIG_fail; | |
8496 | } | |
093d3ff1 | 8497 | { |
32fe5131 | 8498 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 8499 | } |
d14a1e28 RD |
8500 | return resultobj; |
8501 | fail: | |
8502 | return NULL; | |
8503 | } | |
8504 | ||
8505 | ||
c32bde28 | 8506 | static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8507 | PyObject *obj; |
8508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8509 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
8510 | Py_INCREF(obj); | |
8511 | return Py_BuildValue((char *)""); | |
8512 | } | |
c32bde28 | 8513 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8514 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8515 | wxString *arg1 = 0 ; |
8516 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8517 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8518 | wxSingleInstanceChecker *result; | |
ae8162c8 RD |
8519 | bool temp1 = false ; |
8520 | bool temp2 = false ; | |
d14a1e28 RD |
8521 | PyObject * obj0 = 0 ; |
8522 | PyObject * obj1 = 0 ; | |
8523 | char *kwnames[] = { | |
8524 | (char *) "name",(char *) "path", NULL | |
8525 | }; | |
8526 | ||
8527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
8528 | { | |
8529 | arg1 = wxString_in_helper(obj0); | |
8530 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8531 | temp1 = true; |
d14a1e28 RD |
8532 | } |
8533 | if (obj1) { | |
8534 | { | |
8535 | arg2 = wxString_in_helper(obj1); | |
8536 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8537 | temp2 = true; |
d14a1e28 RD |
8538 | } |
8539 | } | |
8540 | { | |
8541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8542 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
8543 | ||
8544 | wxPyEndAllowThreads(__tstate); | |
8545 | if (PyErr_Occurred()) SWIG_fail; | |
8546 | } | |
15afbcd0 | 8547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
8548 | { |
8549 | if (temp1) | |
8550 | delete arg1; | |
8551 | } | |
8552 | { | |
8553 | if (temp2) | |
8554 | delete arg2; | |
8555 | } | |
8556 | return resultobj; | |
8557 | fail: | |
8558 | { | |
8559 | if (temp1) | |
8560 | delete arg1; | |
8561 | } | |
8562 | { | |
8563 | if (temp2) | |
8564 | delete arg2; | |
8565 | } | |
8566 | return NULL; | |
8567 | } | |
8568 | ||
8569 | ||
c32bde28 | 8570 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8571 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8572 | wxSingleInstanceChecker *result; |
8573 | char *kwnames[] = { | |
8574 | NULL | |
8575 | }; | |
8576 | ||
8577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
8578 | { | |
8579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8580 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
8581 | ||
8582 | wxPyEndAllowThreads(__tstate); | |
8583 | if (PyErr_Occurred()) SWIG_fail; | |
8584 | } | |
15afbcd0 | 8585 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
8586 | return resultobj; |
8587 | fail: | |
8588 | return NULL; | |
8589 | } | |
8590 | ||
8591 | ||
c32bde28 | 8592 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8593 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8594 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; |
8595 | PyObject * obj0 = 0 ; | |
8596 | char *kwnames[] = { | |
8597 | (char *) "self", NULL | |
8598 | }; | |
8599 | ||
8600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
8602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8603 | { |
8604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8605 | delete arg1; | |
8606 | ||
8607 | wxPyEndAllowThreads(__tstate); | |
8608 | if (PyErr_Occurred()) SWIG_fail; | |
8609 | } | |
8610 | Py_INCREF(Py_None); resultobj = Py_None; | |
8611 | return resultobj; | |
8612 | fail: | |
8613 | return NULL; | |
8614 | } | |
8615 | ||
8616 | ||
c32bde28 | 8617 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8618 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8619 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; |
8620 | wxString *arg2 = 0 ; | |
8621 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8622 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8623 | bool result; | |
ae8162c8 RD |
8624 | bool temp2 = false ; |
8625 | bool temp3 = false ; | |
d14a1e28 RD |
8626 | PyObject * obj0 = 0 ; |
8627 | PyObject * obj1 = 0 ; | |
8628 | PyObject * obj2 = 0 ; | |
8629 | char *kwnames[] = { | |
8630 | (char *) "self",(char *) "name",(char *) "path", NULL | |
8631 | }; | |
8632 | ||
8633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8634 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
8635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8636 | { |
8637 | arg2 = wxString_in_helper(obj1); | |
8638 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8639 | temp2 = true; |
d14a1e28 RD |
8640 | } |
8641 | if (obj2) { | |
8642 | { | |
8643 | arg3 = wxString_in_helper(obj2); | |
8644 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8645 | temp3 = true; |
d14a1e28 RD |
8646 | } |
8647 | } | |
8648 | { | |
8649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8650 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
8651 | ||
8652 | wxPyEndAllowThreads(__tstate); | |
8653 | if (PyErr_Occurred()) SWIG_fail; | |
8654 | } | |
4f89f6a3 RD |
8655 | { |
8656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8657 | } | |
d14a1e28 RD |
8658 | { |
8659 | if (temp2) | |
8660 | delete arg2; | |
8661 | } | |
8662 | { | |
8663 | if (temp3) | |
8664 | delete arg3; | |
8665 | } | |
8666 | return resultobj; | |
8667 | fail: | |
8668 | { | |
8669 | if (temp2) | |
8670 | delete arg2; | |
8671 | } | |
8672 | { | |
8673 | if (temp3) | |
8674 | delete arg3; | |
8675 | } | |
8676 | return NULL; | |
8677 | } | |
8678 | ||
8679 | ||
c32bde28 | 8680 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8681 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8682 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; |
8683 | bool result; | |
8684 | PyObject * obj0 = 0 ; | |
8685 | char *kwnames[] = { | |
8686 | (char *) "self", NULL | |
8687 | }; | |
8688 | ||
8689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
8691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8692 | { |
8693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8694 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
8695 | ||
8696 | wxPyEndAllowThreads(__tstate); | |
8697 | if (PyErr_Occurred()) SWIG_fail; | |
8698 | } | |
4f89f6a3 RD |
8699 | { |
8700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8701 | } | |
d14a1e28 RD |
8702 | return resultobj; |
8703 | fail: | |
8704 | return NULL; | |
8705 | } | |
8706 | ||
8707 | ||
c32bde28 | 8708 | static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8709 | PyObject *obj; |
8710 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8711 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
8712 | Py_INCREF(obj); | |
8713 | return Py_BuildValue((char *)""); | |
8714 | } | |
68350608 | 8715 | static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8716 | PyObject *resultobj = NULL; |
68350608 RD |
8717 | wxWindow *arg1 = (wxWindow *) 0 ; |
8718 | wxDC *arg2 = 0 ; | |
8719 | bool result; | |
8720 | PyObject * obj0 = 0 ; | |
8721 | PyObject * obj1 = 0 ; | |
8722 | char *kwnames[] = { | |
8723 | (char *) "window",(char *) "dc", NULL | |
8724 | }; | |
8725 | ||
8726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DrawWindowOnDC",kwnames,&obj0,&obj1)) goto fail; | |
8727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
8728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8729 | { | |
8730 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
8731 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8732 | if (arg2 == NULL) { | |
8733 | SWIG_null_ref("wxDC"); | |
8734 | } | |
8735 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8736 | } | |
8737 | { | |
8738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8739 | result = (bool)wxDrawWindowOnDC(arg1,(wxDC const &)*arg2); | |
8740 | ||
8741 | wxPyEndAllowThreads(__tstate); | |
8742 | if (PyErr_Occurred()) SWIG_fail; | |
8743 | } | |
8744 | { | |
8745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8746 | } | |
8747 | return resultobj; | |
8748 | fail: | |
8749 | return NULL; | |
8750 | } | |
8751 | ||
8752 | ||
c32bde28 | 8753 | static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8754 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8755 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; |
8756 | PyObject * obj0 = 0 ; | |
8757 | char *kwnames[] = { | |
8758 | (char *) "self", NULL | |
8759 | }; | |
8760 | ||
8761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8764 | { |
8765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8766 | delete arg1; | |
8767 | ||
8768 | wxPyEndAllowThreads(__tstate); | |
8769 | if (PyErr_Occurred()) SWIG_fail; | |
8770 | } | |
8771 | Py_INCREF(Py_None); resultobj = Py_None; | |
8772 | return resultobj; | |
8773 | fail: | |
8774 | return NULL; | |
8775 | } | |
8776 | ||
8777 | ||
c32bde28 | 8778 | static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8779 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8780 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; |
8781 | wxString result; | |
8782 | PyObject * obj0 = 0 ; | |
8783 | char *kwnames[] = { | |
8784 | (char *) "self", NULL | |
8785 | }; | |
8786 | ||
8787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8790 | { |
8791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8792 | result = (arg1)->GetTip(); | |
8793 | ||
8794 | wxPyEndAllowThreads(__tstate); | |
8795 | if (PyErr_Occurred()) SWIG_fail; | |
8796 | } | |
8797 | { | |
8798 | #if wxUSE_UNICODE | |
8799 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8800 | #else | |
8801 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8802 | #endif | |
8803 | } | |
8804 | return resultobj; | |
8805 | fail: | |
8806 | return NULL; | |
8807 | } | |
8808 | ||
8809 | ||
c32bde28 | 8810 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8811 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8812 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; |
8813 | size_t result; | |
8814 | PyObject * obj0 = 0 ; | |
8815 | char *kwnames[] = { | |
8816 | (char *) "self", NULL | |
8817 | }; | |
8818 | ||
8819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8820 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8821 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8822 | { |
8823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8824 | result = (size_t)(arg1)->GetCurrentTip(); | |
8825 | ||
8826 | wxPyEndAllowThreads(__tstate); | |
8827 | if (PyErr_Occurred()) SWIG_fail; | |
8828 | } | |
093d3ff1 | 8829 | { |
32fe5131 | 8830 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 8831 | } |
d14a1e28 RD |
8832 | return resultobj; |
8833 | fail: | |
8834 | return NULL; | |
8835 | } | |
8836 | ||
8837 | ||
c32bde28 | 8838 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8839 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8840 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; |
8841 | wxString *arg2 = 0 ; | |
8842 | wxString result; | |
ae8162c8 | 8843 | bool temp2 = false ; |
d14a1e28 RD |
8844 | PyObject * obj0 = 0 ; |
8845 | PyObject * obj1 = 0 ; | |
8846 | char *kwnames[] = { | |
8847 | (char *) "self",(char *) "tip", NULL | |
8848 | }; | |
8849 | ||
8850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8851 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8852 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8853 | { |
8854 | arg2 = wxString_in_helper(obj1); | |
8855 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8856 | temp2 = true; |
d14a1e28 RD |
8857 | } |
8858 | { | |
8859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8860 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
8861 | ||
8862 | wxPyEndAllowThreads(__tstate); | |
8863 | if (PyErr_Occurred()) SWIG_fail; | |
8864 | } | |
8865 | { | |
8866 | #if wxUSE_UNICODE | |
8867 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8868 | #else | |
8869 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8870 | #endif | |
8871 | } | |
8872 | { | |
8873 | if (temp2) | |
8874 | delete arg2; | |
8875 | } | |
8876 | return resultobj; | |
8877 | fail: | |
8878 | { | |
8879 | if (temp2) | |
8880 | delete arg2; | |
8881 | } | |
8882 | return NULL; | |
8883 | } | |
8884 | ||
8885 | ||
c32bde28 | 8886 | static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8887 | PyObject *obj; |
8888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8889 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
8890 | Py_INCREF(obj); | |
8891 | return Py_BuildValue((char *)""); | |
8892 | } | |
c32bde28 | 8893 | static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8894 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8895 | size_t arg1 ; |
8896 | wxPyTipProvider *result; | |
8897 | PyObject * obj0 = 0 ; | |
8898 | char *kwnames[] = { | |
8899 | (char *) "currentTip", NULL | |
8900 | }; | |
8901 | ||
8902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
093d3ff1 | 8903 | { |
32fe5131 | 8904 | arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
8905 | if (SWIG_arg_fail(1)) SWIG_fail; |
8906 | } | |
d14a1e28 RD |
8907 | { |
8908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8909 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
8910 | ||
8911 | wxPyEndAllowThreads(__tstate); | |
8912 | if (PyErr_Occurred()) SWIG_fail; | |
8913 | } | |
15afbcd0 | 8914 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); |
d14a1e28 RD |
8915 | return resultobj; |
8916 | fail: | |
8917 | return NULL; | |
8918 | } | |
8919 | ||
8920 | ||
c32bde28 | 8921 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8922 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8923 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; |
8924 | PyObject *arg2 = (PyObject *) 0 ; | |
8925 | PyObject *arg3 = (PyObject *) 0 ; | |
8926 | PyObject * obj0 = 0 ; | |
8927 | PyObject * obj1 = 0 ; | |
8928 | PyObject * obj2 = 0 ; | |
8929 | char *kwnames[] = { | |
8930 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8931 | }; | |
8932 | ||
8933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8936 | arg2 = obj1; |
8937 | arg3 = obj2; | |
8938 | { | |
8939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8940 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8941 | ||
8942 | wxPyEndAllowThreads(__tstate); | |
8943 | if (PyErr_Occurred()) SWIG_fail; | |
8944 | } | |
8945 | Py_INCREF(Py_None); resultobj = Py_None; | |
8946 | return resultobj; | |
8947 | fail: | |
8948 | return NULL; | |
8949 | } | |
8950 | ||
8951 | ||
c32bde28 | 8952 | static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8953 | PyObject *obj; |
8954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8955 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
8956 | Py_INCREF(obj); | |
8957 | return Py_BuildValue((char *)""); | |
8958 | } | |
c32bde28 | 8959 | static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8960 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8961 | wxWindow *arg1 = (wxWindow *) 0 ; |
8962 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
ae8162c8 | 8963 | bool arg3 = (bool) true ; |
d14a1e28 RD |
8964 | bool result; |
8965 | PyObject * obj0 = 0 ; | |
8966 | PyObject * obj1 = 0 ; | |
8967 | PyObject * obj2 = 0 ; | |
8968 | char *kwnames[] = { | |
8969 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
8970 | }; | |
8971 | ||
8972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8973 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
8974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8975 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); | |
8976 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 8977 | if (obj2) { |
093d3ff1 | 8978 | { |
32fe5131 | 8979 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
8980 | if (SWIG_arg_fail(3)) SWIG_fail; |
8981 | } | |
d14a1e28 RD |
8982 | } |
8983 | { | |
e3b71cb8 | 8984 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8986 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
8987 | ||
8988 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8989 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8990 | } |
4f89f6a3 RD |
8991 | { |
8992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8993 | } | |
d14a1e28 RD |
8994 | return resultobj; |
8995 | fail: | |
8996 | return NULL; | |
8997 | } | |
8998 | ||
8999 | ||
c32bde28 | 9000 | static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9001 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9002 | wxString *arg1 = 0 ; |
9003 | size_t arg2 ; | |
9004 | wxTipProvider *result; | |
ae8162c8 | 9005 | bool temp1 = false ; |
d14a1e28 RD |
9006 | PyObject * obj0 = 0 ; |
9007 | PyObject * obj1 = 0 ; | |
9008 | char *kwnames[] = { | |
9009 | (char *) "filename",(char *) "currentTip", NULL | |
9010 | }; | |
9011 | ||
9012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
9013 | { | |
9014 | arg1 = wxString_in_helper(obj0); | |
9015 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9016 | temp1 = true; |
d14a1e28 | 9017 | } |
093d3ff1 | 9018 | { |
32fe5131 | 9019 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
9020 | if (SWIG_arg_fail(2)) SWIG_fail; |
9021 | } | |
d14a1e28 | 9022 | { |
e3b71cb8 | 9023 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9025 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
9026 | ||
9027 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9028 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9029 | } |
15afbcd0 | 9030 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); |
d14a1e28 RD |
9031 | { |
9032 | if (temp1) | |
9033 | delete arg1; | |
9034 | } | |
9035 | return resultobj; | |
9036 | fail: | |
9037 | { | |
9038 | if (temp1) | |
9039 | delete arg1; | |
9040 | } | |
9041 | return NULL; | |
9042 | } | |
9043 | ||
9044 | ||
c32bde28 | 9045 | static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9046 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9047 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; |
9048 | int arg2 = (int) -1 ; | |
9049 | wxPyTimer *result; | |
9050 | PyObject * obj0 = 0 ; | |
994141e6 | 9051 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9052 | char *kwnames[] = { |
9053 | (char *) "owner",(char *) "id", NULL | |
9054 | }; | |
9055 | ||
994141e6 | 9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9057 | if (obj0) { |
093d3ff1 RD |
9058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
9059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 9060 | } |
994141e6 | 9061 | if (obj1) { |
093d3ff1 | 9062 | { |
32fe5131 | 9063 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9064 | if (SWIG_arg_fail(2)) SWIG_fail; |
9065 | } | |
994141e6 | 9066 | } |
d14a1e28 | 9067 | { |
e3b71cb8 | 9068 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9070 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
9071 | ||
9072 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9073 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9074 | } |
15afbcd0 | 9075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); |
d14a1e28 RD |
9076 | return resultobj; |
9077 | fail: | |
9078 | return NULL; | |
9079 | } | |
9080 | ||
9081 | ||
c32bde28 | 9082 | static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9083 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9084 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9085 | PyObject * obj0 = 0 ; | |
9086 | char *kwnames[] = { | |
9087 | (char *) "self", NULL | |
9088 | }; | |
9089 | ||
9090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9091 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9092 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9093 | { |
9094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9095 | delete arg1; | |
9096 | ||
9097 | wxPyEndAllowThreads(__tstate); | |
9098 | if (PyErr_Occurred()) SWIG_fail; | |
9099 | } | |
9100 | Py_INCREF(Py_None); resultobj = Py_None; | |
9101 | return resultobj; | |
9102 | fail: | |
9103 | return NULL; | |
9104 | } | |
9105 | ||
9106 | ||
c32bde28 | 9107 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9108 | PyObject *resultobj = NULL; |
7722248d RD |
9109 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9110 | PyObject *arg2 = (PyObject *) 0 ; | |
9111 | PyObject *arg3 = (PyObject *) 0 ; | |
4276dc52 | 9112 | int arg4 = (int) 1 ; |
7722248d RD |
9113 | PyObject * obj0 = 0 ; |
9114 | PyObject * obj1 = 0 ; | |
9115 | PyObject * obj2 = 0 ; | |
4276dc52 | 9116 | PyObject * obj3 = 0 ; |
7722248d | 9117 | char *kwnames[] = { |
4276dc52 | 9118 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
7722248d RD |
9119 | }; |
9120 | ||
4276dc52 | 9121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
9122 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9123 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7722248d RD |
9124 | arg2 = obj1; |
9125 | arg3 = obj2; | |
4276dc52 | 9126 | if (obj3) { |
093d3ff1 | 9127 | { |
32fe5131 | 9128 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
9129 | if (SWIG_arg_fail(4)) SWIG_fail; |
9130 | } | |
4276dc52 | 9131 | } |
7722248d RD |
9132 | { |
9133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 9134 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
7722248d RD |
9135 | |
9136 | wxPyEndAllowThreads(__tstate); | |
9137 | if (PyErr_Occurred()) SWIG_fail; | |
9138 | } | |
9139 | Py_INCREF(Py_None); resultobj = Py_None; | |
9140 | return resultobj; | |
9141 | fail: | |
9142 | return NULL; | |
9143 | } | |
9144 | ||
9145 | ||
c32bde28 | 9146 | static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9147 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9148 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9149 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
9150 | int arg3 = (int) -1 ; | |
9151 | PyObject * obj0 = 0 ; | |
9152 | PyObject * obj1 = 0 ; | |
994141e6 | 9153 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9154 | char *kwnames[] = { |
9155 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
9156 | }; | |
9157 | ||
994141e6 | 9158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9161 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
9162 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 9163 | if (obj2) { |
093d3ff1 | 9164 | { |
32fe5131 | 9165 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
9166 | if (SWIG_arg_fail(3)) SWIG_fail; |
9167 | } | |
994141e6 | 9168 | } |
d14a1e28 RD |
9169 | { |
9170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9171 | (arg1)->SetOwner(arg2,arg3); | |
9172 | ||
9173 | wxPyEndAllowThreads(__tstate); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
9175 | } | |
9176 | Py_INCREF(Py_None); resultobj = Py_None; | |
9177 | return resultobj; | |
9178 | fail: | |
9179 | return NULL; | |
9180 | } | |
9181 | ||
9182 | ||
c32bde28 | 9183 | static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9184 | PyObject *resultobj = NULL; |
1c0f361b RD |
9185 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9186 | wxEvtHandler *result; | |
9187 | PyObject * obj0 = 0 ; | |
9188 | char *kwnames[] = { | |
9189 | (char *) "self", NULL | |
9190 | }; | |
9191 | ||
9192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1c0f361b RD |
9195 | { |
9196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9197 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
9198 | ||
9199 | wxPyEndAllowThreads(__tstate); | |
9200 | if (PyErr_Occurred()) SWIG_fail; | |
9201 | } | |
9202 | { | |
412d302d | 9203 | resultobj = wxPyMake_wxObject(result, 0); |
1c0f361b RD |
9204 | } |
9205 | return resultobj; | |
9206 | fail: | |
9207 | return NULL; | |
9208 | } | |
9209 | ||
9210 | ||
c32bde28 | 9211 | static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9212 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9213 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9214 | int arg2 = (int) -1 ; | |
ae8162c8 | 9215 | bool arg3 = (bool) false ; |
d14a1e28 RD |
9216 | bool result; |
9217 | PyObject * obj0 = 0 ; | |
994141e6 | 9218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9219 | PyObject * obj2 = 0 ; |
9220 | char *kwnames[] = { | |
9221 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
9222 | }; | |
9223 | ||
994141e6 | 9224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 9227 | if (obj1) { |
093d3ff1 | 9228 | { |
32fe5131 | 9229 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9230 | if (SWIG_arg_fail(2)) SWIG_fail; |
9231 | } | |
994141e6 | 9232 | } |
d14a1e28 | 9233 | if (obj2) { |
093d3ff1 | 9234 | { |
32fe5131 | 9235 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
9236 | if (SWIG_arg_fail(3)) SWIG_fail; |
9237 | } | |
d14a1e28 RD |
9238 | } |
9239 | { | |
9240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9241 | result = (bool)(arg1)->Start(arg2,arg3); | |
9242 | ||
9243 | wxPyEndAllowThreads(__tstate); | |
9244 | if (PyErr_Occurred()) SWIG_fail; | |
9245 | } | |
4f89f6a3 RD |
9246 | { |
9247 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9248 | } | |
d14a1e28 RD |
9249 | return resultobj; |
9250 | fail: | |
9251 | return NULL; | |
9252 | } | |
9253 | ||
9254 | ||
c32bde28 | 9255 | static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9256 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9257 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9258 | PyObject * obj0 = 0 ; | |
9259 | char *kwnames[] = { | |
9260 | (char *) "self", NULL | |
9261 | }; | |
9262 | ||
9263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9264 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9265 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9266 | { |
9267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9268 | (arg1)->Stop(); | |
9269 | ||
9270 | wxPyEndAllowThreads(__tstate); | |
9271 | if (PyErr_Occurred()) SWIG_fail; | |
9272 | } | |
9273 | Py_INCREF(Py_None); resultobj = Py_None; | |
9274 | return resultobj; | |
9275 | fail: | |
9276 | return NULL; | |
9277 | } | |
9278 | ||
9279 | ||
c26d9ab4 RD |
9280 | static PyObject *_wrap_Timer_Notify(PyObject *, PyObject *args, PyObject *kwargs) { |
9281 | PyObject *resultobj = NULL; | |
9282 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
9283 | PyObject * obj0 = 0 ; | |
9284 | char *kwnames[] = { | |
9285 | (char *) "self", NULL | |
9286 | }; | |
9287 | ||
9288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Notify",kwnames,&obj0)) goto fail; | |
9289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); | |
9290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9291 | { | |
9292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9293 | (arg1)->Notify(); | |
9294 | ||
9295 | wxPyEndAllowThreads(__tstate); | |
9296 | if (PyErr_Occurred()) SWIG_fail; | |
9297 | } | |
9298 | Py_INCREF(Py_None); resultobj = Py_None; | |
9299 | return resultobj; | |
9300 | fail: | |
9301 | return NULL; | |
9302 | } | |
9303 | ||
9304 | ||
c32bde28 | 9305 | static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9306 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9307 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9308 | bool result; | |
9309 | PyObject * obj0 = 0 ; | |
9310 | char *kwnames[] = { | |
9311 | (char *) "self", NULL | |
9312 | }; | |
9313 | ||
9314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9317 | { |
9318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9319 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
9320 | ||
9321 | wxPyEndAllowThreads(__tstate); | |
9322 | if (PyErr_Occurred()) SWIG_fail; | |
9323 | } | |
4f89f6a3 RD |
9324 | { |
9325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9326 | } | |
d14a1e28 RD |
9327 | return resultobj; |
9328 | fail: | |
9329 | return NULL; | |
9330 | } | |
9331 | ||
9332 | ||
c32bde28 | 9333 | static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9334 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9335 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9336 | int result; | |
9337 | PyObject * obj0 = 0 ; | |
9338 | char *kwnames[] = { | |
9339 | (char *) "self", NULL | |
9340 | }; | |
9341 | ||
9342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9345 | { |
9346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9347 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
9348 | ||
9349 | wxPyEndAllowThreads(__tstate); | |
9350 | if (PyErr_Occurred()) SWIG_fail; | |
9351 | } | |
093d3ff1 | 9352 | { |
32fe5131 | 9353 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 9354 | } |
d14a1e28 RD |
9355 | return resultobj; |
9356 | fail: | |
9357 | return NULL; | |
9358 | } | |
9359 | ||
9360 | ||
c32bde28 | 9361 | static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9362 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9363 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9364 | bool result; | |
9365 | PyObject * obj0 = 0 ; | |
9366 | char *kwnames[] = { | |
9367 | (char *) "self", NULL | |
9368 | }; | |
9369 | ||
9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9373 | { |
9374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9375 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
9376 | ||
9377 | wxPyEndAllowThreads(__tstate); | |
9378 | if (PyErr_Occurred()) SWIG_fail; | |
9379 | } | |
4f89f6a3 RD |
9380 | { |
9381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9382 | } | |
d14a1e28 RD |
9383 | return resultobj; |
9384 | fail: | |
9385 | return NULL; | |
9386 | } | |
9387 | ||
9388 | ||
c32bde28 | 9389 | static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9390 | PyObject *resultobj = NULL; |
cc6dd355 RD |
9391 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; |
9392 | int result; | |
9393 | PyObject * obj0 = 0 ; | |
9394 | char *kwnames[] = { | |
9395 | (char *) "self", NULL | |
9396 | }; | |
9397 | ||
9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
9400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
cc6dd355 RD |
9401 | { |
9402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9403 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
9404 | ||
9405 | wxPyEndAllowThreads(__tstate); | |
9406 | if (PyErr_Occurred()) SWIG_fail; | |
9407 | } | |
093d3ff1 | 9408 | { |
32fe5131 | 9409 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 9410 | } |
cc6dd355 RD |
9411 | return resultobj; |
9412 | fail: | |
9413 | return NULL; | |
9414 | } | |
9415 | ||
9416 | ||
c32bde28 | 9417 | static PyObject * Timer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9418 | PyObject *obj; |
9419 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9420 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
9421 | Py_INCREF(obj); | |
9422 | return Py_BuildValue((char *)""); | |
9423 | } | |
c32bde28 | 9424 | static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9425 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9426 | int arg1 = (int) 0 ; |
9427 | int arg2 = (int) 0 ; | |
9428 | wxTimerEvent *result; | |
994141e6 RD |
9429 | PyObject * obj0 = 0 ; |
9430 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9431 | char *kwnames[] = { |
9432 | (char *) "timerid",(char *) "interval", NULL | |
9433 | }; | |
9434 | ||
994141e6 RD |
9435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; |
9436 | if (obj0) { | |
093d3ff1 | 9437 | { |
32fe5131 | 9438 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
9439 | if (SWIG_arg_fail(1)) SWIG_fail; |
9440 | } | |
994141e6 RD |
9441 | } |
9442 | if (obj1) { | |
093d3ff1 | 9443 | { |
32fe5131 | 9444 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9445 | if (SWIG_arg_fail(2)) SWIG_fail; |
9446 | } | |
994141e6 | 9447 | } |
d14a1e28 RD |
9448 | { |
9449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9450 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
9451 | ||
9452 | wxPyEndAllowThreads(__tstate); | |
9453 | if (PyErr_Occurred()) SWIG_fail; | |
9454 | } | |
15afbcd0 | 9455 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); |
d14a1e28 RD |
9456 | return resultobj; |
9457 | fail: | |
9458 | return NULL; | |
9459 | } | |
9460 | ||
9461 | ||
c32bde28 | 9462 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9463 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9464 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; |
9465 | int result; | |
9466 | PyObject * obj0 = 0 ; | |
9467 | char *kwnames[] = { | |
9468 | (char *) "self", NULL | |
9469 | }; | |
9470 | ||
9471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerEvent, SWIG_POINTER_EXCEPTION | 0); |
9473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9474 | { |
9475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9476 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
9477 | ||
9478 | wxPyEndAllowThreads(__tstate); | |
9479 | if (PyErr_Occurred()) SWIG_fail; | |
9480 | } | |
093d3ff1 | 9481 | { |
32fe5131 | 9482 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 9483 | } |
d14a1e28 RD |
9484 | return resultobj; |
9485 | fail: | |
9486 | return NULL; | |
9487 | } | |
9488 | ||
9489 | ||
c32bde28 | 9490 | static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9491 | PyObject *obj; |
9492 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9493 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
9494 | Py_INCREF(obj); | |
9495 | return Py_BuildValue((char *)""); | |
9496 | } | |
c32bde28 | 9497 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 9498 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9499 | wxTimer *arg1 = 0 ; |
9500 | wxTimerRunner *result; | |
9501 | PyObject * obj0 = 0 ; | |
9502 | ||
9503 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
093d3ff1 RD |
9504 | { |
9505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0); | |
9506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9507 | if (arg1 == NULL) { | |
9508 | SWIG_null_ref("wxTimer"); | |
9509 | } | |
9510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9511 | } |
9512 | { | |
e3b71cb8 | 9513 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9515 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
9516 | ||
9517 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9518 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9519 | } |
15afbcd0 | 9520 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
9521 | return resultobj; |
9522 | fail: | |
9523 | return NULL; | |
9524 | } | |
9525 | ||
9526 | ||
c32bde28 | 9527 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) { |
32fe5131 | 9528 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9529 | wxTimer *arg1 = 0 ; |
9530 | int arg2 ; | |
7e08d4ef | 9531 | bool arg3 = (bool) false ; |
d14a1e28 RD |
9532 | wxTimerRunner *result; |
9533 | PyObject * obj0 = 0 ; | |
994141e6 | 9534 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9535 | PyObject * obj2 = 0 ; |
9536 | ||
7e08d4ef | 9537 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9538 | { |
9539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0); | |
9540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9541 | if (arg1 == NULL) { | |
9542 | SWIG_null_ref("wxTimer"); | |
9543 | } | |
9544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9545 | } | |
9546 | { | |
32fe5131 | 9547 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9548 | if (SWIG_arg_fail(2)) SWIG_fail; |
9549 | } | |
7e08d4ef RD |
9550 | if (obj2) { |
9551 | { | |
9552 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); | |
9553 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32fe5131 | 9554 | } |
32fe5131 RD |
9555 | } |
9556 | { | |
9557 | if (!wxPyCheckForApp()) SWIG_fail; | |
9558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e08d4ef | 9559 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); |
32fe5131 RD |
9560 | |
9561 | wxPyEndAllowThreads(__tstate); | |
9562 | if (PyErr_Occurred()) SWIG_fail; | |
9563 | } | |
9564 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
9565 | return resultobj; | |
9566 | fail: | |
9567 | return NULL; | |
9568 | } | |
9569 | ||
9570 | ||
d14a1e28 RD |
9571 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { |
9572 | int argc; | |
9573 | PyObject *argv[4]; | |
9574 | int ii; | |
9575 | ||
9576 | argc = PyObject_Length(args); | |
9577 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9578 | argv[ii] = PyTuple_GetItem(args,ii); | |
9579 | } | |
9580 | if (argc == 1) { | |
9581 | int _v; | |
9582 | { | |
093d3ff1 | 9583 | void *ptr = 0; |
15afbcd0 | 9584 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
9585 | _v = 0; |
9586 | PyErr_Clear(); | |
9587 | } else { | |
093d3ff1 | 9588 | _v = (ptr != 0); |
d14a1e28 RD |
9589 | } |
9590 | } | |
9591 | if (_v) { | |
9592 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
9593 | } | |
9594 | } | |
7e08d4ef | 9595 | if ((argc >= 2) && (argc <= 3)) { |
d14a1e28 RD |
9596 | int _v; |
9597 | { | |
093d3ff1 | 9598 | void *ptr = 0; |
15afbcd0 | 9599 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
9600 | _v = 0; |
9601 | PyErr_Clear(); | |
9602 | } else { | |
093d3ff1 | 9603 | _v = (ptr != 0); |
d14a1e28 RD |
9604 | } |
9605 | } | |
9606 | if (_v) { | |
c32bde28 | 9607 | _v = SWIG_Check_int(argv[1]); |
d14a1e28 | 9608 | if (_v) { |
7e08d4ef RD |
9609 | if (argc <= 2) { |
9610 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
9611 | } | |
c32bde28 | 9612 | _v = SWIG_Check_bool(argv[2]); |
d14a1e28 RD |
9613 | if (_v) { |
9614 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
9615 | } | |
9616 | } | |
9617 | } | |
9618 | } | |
9619 | ||
093d3ff1 | 9620 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_TimerRunner'"); |
d14a1e28 RD |
9621 | return NULL; |
9622 | } | |
9623 | ||
9624 | ||
c32bde28 | 9625 | static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9626 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9627 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; |
9628 | PyObject * obj0 = 0 ; | |
9629 | char *kwnames[] = { | |
9630 | (char *) "self", NULL | |
9631 | }; | |
9632 | ||
9633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9634 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0); |
9635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9636 | { |
9637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9638 | delete arg1; | |
9639 | ||
9640 | wxPyEndAllowThreads(__tstate); | |
9641 | if (PyErr_Occurred()) SWIG_fail; | |
9642 | } | |
9643 | Py_INCREF(Py_None); resultobj = Py_None; | |
9644 | return resultobj; | |
9645 | fail: | |
9646 | return NULL; | |
9647 | } | |
9648 | ||
9649 | ||
c32bde28 | 9650 | static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9651 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9652 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; |
9653 | int arg2 ; | |
ae8162c8 | 9654 | bool arg3 = (bool) false ; |
d14a1e28 | 9655 | PyObject * obj0 = 0 ; |
994141e6 | 9656 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9657 | PyObject * obj2 = 0 ; |
9658 | char *kwnames[] = { | |
9659 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
9660 | }; | |
9661 | ||
994141e6 | 9662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0); |
9664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9665 | { | |
32fe5131 | 9666 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9667 | if (SWIG_arg_fail(2)) SWIG_fail; |
9668 | } | |
d14a1e28 | 9669 | if (obj2) { |
093d3ff1 | 9670 | { |
32fe5131 | 9671 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
9672 | if (SWIG_arg_fail(3)) SWIG_fail; |
9673 | } | |
d14a1e28 RD |
9674 | } |
9675 | { | |
9676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9677 | (arg1)->Start(arg2,arg3); | |
9678 | ||
9679 | wxPyEndAllowThreads(__tstate); | |
9680 | if (PyErr_Occurred()) SWIG_fail; | |
9681 | } | |
9682 | Py_INCREF(Py_None); resultobj = Py_None; | |
9683 | return resultobj; | |
9684 | fail: | |
9685 | return NULL; | |
9686 | } | |
9687 | ||
9688 | ||
c32bde28 | 9689 | static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9690 | PyObject *obj; |
9691 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9692 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
9693 | Py_INCREF(obj); | |
9694 | return Py_BuildValue((char *)""); | |
9695 | } | |
c32bde28 | 9696 | static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9697 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9698 | wxLog *result; |
9699 | char *kwnames[] = { | |
9700 | NULL | |
9701 | }; | |
9702 | ||
9703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
9704 | { | |
9705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9706 | result = (wxLog *)new wxLog(); | |
9707 | ||
9708 | wxPyEndAllowThreads(__tstate); | |
9709 | if (PyErr_Occurred()) SWIG_fail; | |
9710 | } | |
15afbcd0 | 9711 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); |
d14a1e28 RD |
9712 | return resultobj; |
9713 | fail: | |
9714 | return NULL; | |
9715 | } | |
9716 | ||
9717 | ||
7e08d4ef RD |
9718 | static PyObject *_wrap_delete_Log(PyObject *, PyObject *args, PyObject *kwargs) { |
9719 | PyObject *resultobj = NULL; | |
9720 | wxLog *arg1 = (wxLog *) 0 ; | |
9721 | PyObject * obj0 = 0 ; | |
9722 | char *kwnames[] = { | |
9723 | (char *) "self", NULL | |
9724 | }; | |
9725 | ||
9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Log",kwnames,&obj0)) goto fail; | |
9727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); | |
9728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9729 | { | |
9730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9731 | delete arg1; | |
9732 | ||
9733 | wxPyEndAllowThreads(__tstate); | |
9734 | if (PyErr_Occurred()) SWIG_fail; | |
9735 | } | |
9736 | Py_INCREF(Py_None); resultobj = Py_None; | |
9737 | return resultobj; | |
9738 | fail: | |
9739 | return NULL; | |
9740 | } | |
9741 | ||
9742 | ||
c32bde28 | 9743 | static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9744 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9745 | bool result; |
9746 | char *kwnames[] = { | |
9747 | NULL | |
9748 | }; | |
9749 | ||
9750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
9751 | { | |
9752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9753 | result = (bool)wxLog::IsEnabled(); | |
9754 | ||
9755 | wxPyEndAllowThreads(__tstate); | |
9756 | if (PyErr_Occurred()) SWIG_fail; | |
9757 | } | |
4f89f6a3 RD |
9758 | { |
9759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9760 | } | |
d14a1e28 RD |
9761 | return resultobj; |
9762 | fail: | |
9763 | return NULL; | |
9764 | } | |
9765 | ||
9766 | ||
c32bde28 | 9767 | static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9768 | PyObject *resultobj = NULL; |
ae8162c8 | 9769 | bool arg1 = (bool) true ; |
d14a1e28 RD |
9770 | bool result; |
9771 | PyObject * obj0 = 0 ; | |
9772 | char *kwnames[] = { | |
9773 | (char *) "doIt", NULL | |
9774 | }; | |
9775 | ||
9776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
9777 | if (obj0) { | |
093d3ff1 | 9778 | { |
32fe5131 | 9779 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 RD |
9780 | if (SWIG_arg_fail(1)) SWIG_fail; |
9781 | } | |
d14a1e28 RD |
9782 | } |
9783 | { | |
9784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9785 | result = (bool)wxLog::EnableLogging(arg1); | |
9786 | ||
9787 | wxPyEndAllowThreads(__tstate); | |
9788 | if (PyErr_Occurred()) SWIG_fail; | |
9789 | } | |
4f89f6a3 RD |
9790 | { |
9791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9792 | } | |
d14a1e28 RD |
9793 | return resultobj; |
9794 | fail: | |
9795 | return NULL; | |
9796 | } | |
9797 | ||
9798 | ||
c32bde28 | 9799 | static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9800 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9801 | wxLogLevel arg1 ; |
9802 | wxChar *arg2 = (wxChar *) 0 ; | |
9803 | time_t arg3 ; | |
9804 | PyObject * obj0 = 0 ; | |
9805 | PyObject * obj1 = 0 ; | |
9806 | PyObject * obj2 = 0 ; | |
9807 | char *kwnames[] = { | |
9808 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
9809 | }; | |
9810 | ||
9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 | 9812 | { |
32fe5131 | 9813 | arg1 = static_cast<wxLogLevel >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
9814 | if (SWIG_arg_fail(1)) SWIG_fail; |
9815 | } | |
9816 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); | |
9817 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9818 | { | |
32fe5131 | 9819 | arg3 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj2)); |
093d3ff1 RD |
9820 | if (SWIG_arg_fail(3)) SWIG_fail; |
9821 | } | |
d14a1e28 RD |
9822 | { |
9823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9824 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
9825 | ||
9826 | wxPyEndAllowThreads(__tstate); | |
9827 | if (PyErr_Occurred()) SWIG_fail; | |
9828 | } | |
9829 | Py_INCREF(Py_None); resultobj = Py_None; | |
9830 | return resultobj; | |
9831 | fail: | |
9832 | return NULL; | |
9833 | } | |
9834 | ||
9835 | ||
c32bde28 | 9836 | static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9837 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9838 | wxLog *arg1 = (wxLog *) 0 ; |
9839 | PyObject * obj0 = 0 ; | |
9840 | char *kwnames[] = { | |
9841 | (char *) "self", NULL | |
9842 | }; | |
9843 | ||
9844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
9846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9847 | { |
9848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9849 | (arg1)->Flush(); | |
9850 | ||
9851 | wxPyEndAllowThreads(__tstate); | |
9852 | if (PyErr_Occurred()) SWIG_fail; | |
9853 | } | |
9854 | Py_INCREF(Py_None); resultobj = Py_None; | |
9855 | return resultobj; | |
9856 | fail: | |
9857 | return NULL; | |
9858 | } | |
9859 | ||
9860 | ||
c32bde28 | 9861 | static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9862 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9863 | char *kwnames[] = { |
9864 | NULL | |
9865 | }; | |
9866 | ||
9867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
9868 | { | |
9869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9870 | wxLog::FlushActive(); | |
9871 | ||
9872 | wxPyEndAllowThreads(__tstate); | |
9873 | if (PyErr_Occurred()) SWIG_fail; | |
9874 | } | |
9875 | Py_INCREF(Py_None); resultobj = Py_None; | |
9876 | return resultobj; | |
9877 | fail: | |
9878 | return NULL; | |
9879 | } | |
9880 | ||
9881 | ||
c32bde28 | 9882 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9883 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9884 | wxLog *result; |
9885 | char *kwnames[] = { | |
9886 | NULL | |
9887 | }; | |
9888 | ||
9889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
9890 | { | |
9891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9892 | result = (wxLog *)wxLog::GetActiveTarget(); | |
9893 | ||
9894 | wxPyEndAllowThreads(__tstate); | |
9895 | if (PyErr_Occurred()) SWIG_fail; | |
9896 | } | |
15afbcd0 | 9897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
9898 | return resultobj; |
9899 | fail: | |
9900 | return NULL; | |
9901 | } | |
9902 | ||
9903 | ||
c32bde28 | 9904 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9905 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9906 | wxLog *arg1 = (wxLog *) 0 ; |
9907 | wxLog *result; | |
9908 | PyObject * obj0 = 0 ; | |
9909 | char *kwnames[] = { | |
9910 | (char *) "pLogger", NULL | |
9911 | }; | |
9912 | ||
9913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7e08d4ef | 9914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
093d3ff1 | 9915 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 RD |
9916 | { |
9917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9918 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
9919 | ||
9920 | wxPyEndAllowThreads(__tstate); | |
9921 | if (PyErr_Occurred()) SWIG_fail; | |
9922 | } | |
7e08d4ef | 9923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); |
d14a1e28 RD |
9924 | return resultobj; |
9925 | fail: | |
9926 | return NULL; | |
9927 | } | |
9928 | ||
9929 | ||
c32bde28 | 9930 | static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9931 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9932 | char *kwnames[] = { |
9933 | NULL | |
9934 | }; | |
9935 | ||
9936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
9937 | { | |
9938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9939 | wxLog::Suspend(); | |
9940 | ||
9941 | wxPyEndAllowThreads(__tstate); | |
9942 | if (PyErr_Occurred()) SWIG_fail; | |
9943 | } | |
9944 | Py_INCREF(Py_None); resultobj = Py_None; | |
9945 | return resultobj; | |
9946 | fail: | |
9947 | return NULL; | |
9948 | } | |
9949 | ||
9950 | ||
c32bde28 | 9951 | static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9952 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9953 | char *kwnames[] = { |
9954 | NULL | |
9955 | }; | |
9956 | ||
9957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
9958 | { | |
9959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9960 | wxLog::Resume(); | |
9961 | ||
9962 | wxPyEndAllowThreads(__tstate); | |
9963 | if (PyErr_Occurred()) SWIG_fail; | |
9964 | } | |
9965 | Py_INCREF(Py_None); resultobj = Py_None; | |
9966 | return resultobj; | |
9967 | fail: | |
9968 | return NULL; | |
9969 | } | |
9970 | ||
9971 | ||
c32bde28 | 9972 | static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9973 | PyObject *resultobj = NULL; |
ae8162c8 | 9974 | bool arg1 = (bool) true ; |
d14a1e28 RD |
9975 | PyObject * obj0 = 0 ; |
9976 | char *kwnames[] = { | |
9977 | (char *) "bVerbose", NULL | |
9978 | }; | |
9979 | ||
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
9981 | if (obj0) { | |
093d3ff1 | 9982 | { |
32fe5131 | 9983 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 RD |
9984 | if (SWIG_arg_fail(1)) SWIG_fail; |
9985 | } | |
d14a1e28 RD |
9986 | } |
9987 | { | |
9988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9989 | wxLog::SetVerbose(arg1); | |
9990 | ||
9991 | wxPyEndAllowThreads(__tstate); | |
9992 | if (PyErr_Occurred()) SWIG_fail; | |
9993 | } | |
9994 | Py_INCREF(Py_None); resultobj = Py_None; | |
9995 | return resultobj; | |
9996 | fail: | |
9997 | return NULL; | |
9998 | } | |
9999 | ||
10000 | ||
c32bde28 | 10001 | static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10002 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10003 | wxLogLevel arg1 ; |
10004 | PyObject * obj0 = 0 ; | |
10005 | char *kwnames[] = { | |
10006 | (char *) "logLevel", NULL | |
10007 | }; | |
10008 | ||
10009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
093d3ff1 | 10010 | { |
32fe5131 | 10011 | arg1 = static_cast<wxLogLevel >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
10012 | if (SWIG_arg_fail(1)) SWIG_fail; |
10013 | } | |
d14a1e28 RD |
10014 | { |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10016 | wxLog::SetLogLevel(arg1); | |
10017 | ||
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) SWIG_fail; | |
10020 | } | |
10021 | Py_INCREF(Py_None); resultobj = Py_None; | |
10022 | return resultobj; | |
10023 | fail: | |
10024 | return NULL; | |
10025 | } | |
10026 | ||
10027 | ||
c32bde28 | 10028 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10029 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10030 | char *kwnames[] = { |
10031 | NULL | |
10032 | }; | |
10033 | ||
10034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
10035 | { | |
10036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10037 | wxLog::DontCreateOnDemand(); | |
10038 | ||
10039 | wxPyEndAllowThreads(__tstate); | |
10040 | if (PyErr_Occurred()) SWIG_fail; | |
10041 | } | |
10042 | Py_INCREF(Py_None); resultobj = Py_None; | |
10043 | return resultobj; | |
10044 | fail: | |
10045 | return NULL; | |
10046 | } | |
10047 | ||
10048 | ||
c32bde28 | 10049 | static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10050 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10051 | wxTraceMask arg1 ; |
10052 | PyObject * obj0 = 0 ; | |
10053 | char *kwnames[] = { | |
10054 | (char *) "ulMask", NULL | |
10055 | }; | |
10056 | ||
10057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
093d3ff1 | 10058 | { |
32fe5131 | 10059 | arg1 = static_cast<wxTraceMask >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
10060 | if (SWIG_arg_fail(1)) SWIG_fail; |
10061 | } | |
d14a1e28 RD |
10062 | { |
10063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10064 | wxLog::SetTraceMask(arg1); | |
10065 | ||
10066 | wxPyEndAllowThreads(__tstate); | |
10067 | if (PyErr_Occurred()) SWIG_fail; | |
10068 | } | |
10069 | Py_INCREF(Py_None); resultobj = Py_None; | |
10070 | return resultobj; | |
10071 | fail: | |
10072 | return NULL; | |
10073 | } | |
10074 | ||
10075 | ||
c32bde28 | 10076 | static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10077 | PyObject *resultobj = NULL; |
d14a1e28 | 10078 | wxString *arg1 = 0 ; |
ae8162c8 | 10079 | bool temp1 = false ; |
d14a1e28 RD |
10080 | PyObject * obj0 = 0 ; |
10081 | char *kwnames[] = { | |
10082 | (char *) "str", NULL | |
10083 | }; | |
10084 | ||
10085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
10086 | { | |
10087 | arg1 = wxString_in_helper(obj0); | |
10088 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10089 | temp1 = true; |
d14a1e28 RD |
10090 | } |
10091 | { | |
10092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10093 | wxLog::AddTraceMask((wxString const &)*arg1); | |
10094 | ||
10095 | wxPyEndAllowThreads(__tstate); | |
10096 | if (PyErr_Occurred()) SWIG_fail; | |
10097 | } | |
10098 | Py_INCREF(Py_None); resultobj = Py_None; | |
10099 | { | |
10100 | if (temp1) | |
10101 | delete arg1; | |
10102 | } | |
10103 | return resultobj; | |
10104 | fail: | |
10105 | { | |
10106 | if (temp1) | |
10107 | delete arg1; | |
10108 | } | |
10109 | return NULL; | |
10110 | } | |
10111 | ||
10112 | ||
c32bde28 | 10113 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10114 | PyObject *resultobj = NULL; |
d14a1e28 | 10115 | wxString *arg1 = 0 ; |
ae8162c8 | 10116 | bool temp1 = false ; |
d14a1e28 RD |
10117 | PyObject * obj0 = 0 ; |
10118 | char *kwnames[] = { | |
10119 | (char *) "str", NULL | |
10120 | }; | |
10121 | ||
10122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
10123 | { | |
10124 | arg1 = wxString_in_helper(obj0); | |
10125 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10126 | temp1 = true; |
d14a1e28 RD |
10127 | } |
10128 | { | |
10129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10130 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
10131 | ||
10132 | wxPyEndAllowThreads(__tstate); | |
10133 | if (PyErr_Occurred()) SWIG_fail; | |
10134 | } | |
10135 | Py_INCREF(Py_None); resultobj = Py_None; | |
10136 | { | |
10137 | if (temp1) | |
10138 | delete arg1; | |
10139 | } | |
10140 | return resultobj; | |
10141 | fail: | |
10142 | { | |
10143 | if (temp1) | |
10144 | delete arg1; | |
10145 | } | |
10146 | return NULL; | |
10147 | } | |
10148 | ||
10149 | ||
c32bde28 | 10150 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10151 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10152 | char *kwnames[] = { |
10153 | NULL | |
10154 | }; | |
10155 | ||
10156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
10157 | { | |
10158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10159 | wxLog::ClearTraceMasks(); | |
10160 | ||
10161 | wxPyEndAllowThreads(__tstate); | |
10162 | if (PyErr_Occurred()) SWIG_fail; | |
10163 | } | |
10164 | Py_INCREF(Py_None); resultobj = Py_None; | |
10165 | return resultobj; | |
10166 | fail: | |
10167 | return NULL; | |
10168 | } | |
10169 | ||
10170 | ||
c32bde28 | 10171 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10172 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10173 | wxArrayString *result; |
10174 | char *kwnames[] = { | |
10175 | NULL | |
10176 | }; | |
10177 | ||
10178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
10179 | { | |
10180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10181 | { | |
10182 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
10183 | result = (wxArrayString *) &_result_ref; | |
10184 | } | |
10185 | ||
10186 | wxPyEndAllowThreads(__tstate); | |
10187 | if (PyErr_Occurred()) SWIG_fail; | |
10188 | } | |
10189 | { | |
10190 | resultobj = wxArrayString2PyList_helper(*result); | |
10191 | } | |
10192 | return resultobj; | |
10193 | fail: | |
10194 | return NULL; | |
10195 | } | |
10196 | ||
10197 | ||
c32bde28 | 10198 | static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10199 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10200 | wxChar *arg1 = (wxChar *) 0 ; |
10201 | PyObject * obj0 = 0 ; | |
10202 | char *kwnames[] = { | |
10203 | (char *) "ts", NULL | |
10204 | }; | |
10205 | ||
10206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); |
10208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10209 | { |
10210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10211 | wxLog::SetTimestamp((wxChar const *)arg1); | |
10212 | ||
10213 | wxPyEndAllowThreads(__tstate); | |
10214 | if (PyErr_Occurred()) SWIG_fail; | |
10215 | } | |
10216 | Py_INCREF(Py_None); resultobj = Py_None; | |
10217 | return resultobj; | |
10218 | fail: | |
10219 | return NULL; | |
10220 | } | |
10221 | ||
10222 | ||
c32bde28 | 10223 | static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10224 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10225 | bool result; |
10226 | char *kwnames[] = { | |
10227 | NULL | |
10228 | }; | |
10229 | ||
10230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
10231 | { | |
10232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10233 | result = (bool)wxLog::GetVerbose(); | |
10234 | ||
10235 | wxPyEndAllowThreads(__tstate); | |
10236 | if (PyErr_Occurred()) SWIG_fail; | |
10237 | } | |
4f89f6a3 RD |
10238 | { |
10239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10240 | } | |
d14a1e28 RD |
10241 | return resultobj; |
10242 | fail: | |
10243 | return NULL; | |
10244 | } | |
10245 | ||
10246 | ||
c32bde28 | 10247 | static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10248 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10249 | wxTraceMask result; |
10250 | char *kwnames[] = { | |
10251 | NULL | |
10252 | }; | |
10253 | ||
10254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
10255 | { | |
10256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10257 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
10258 | ||
10259 | wxPyEndAllowThreads(__tstate); | |
10260 | if (PyErr_Occurred()) SWIG_fail; | |
10261 | } | |
093d3ff1 | 10262 | { |
32fe5131 | 10263 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 10264 | } |
d14a1e28 RD |
10265 | return resultobj; |
10266 | fail: | |
10267 | return NULL; | |
10268 | } | |
10269 | ||
10270 | ||
c32bde28 | 10271 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10272 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10273 | wxChar *arg1 = (wxChar *) 0 ; |
10274 | bool result; | |
10275 | PyObject * obj0 = 0 ; | |
10276 | char *kwnames[] = { | |
10277 | (char *) "mask", NULL | |
10278 | }; | |
10279 | ||
10280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); |
10282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10283 | { |
10284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10285 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
10286 | ||
10287 | wxPyEndAllowThreads(__tstate); | |
10288 | if (PyErr_Occurred()) SWIG_fail; | |
10289 | } | |
4f89f6a3 RD |
10290 | { |
10291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10292 | } | |
d14a1e28 RD |
10293 | return resultobj; |
10294 | fail: | |
10295 | return NULL; | |
10296 | } | |
10297 | ||
10298 | ||
c32bde28 | 10299 | static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10300 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10301 | wxLogLevel result; |
10302 | char *kwnames[] = { | |
10303 | NULL | |
10304 | }; | |
10305 | ||
10306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
10307 | { | |
10308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10309 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
10310 | ||
10311 | wxPyEndAllowThreads(__tstate); | |
10312 | if (PyErr_Occurred()) SWIG_fail; | |
10313 | } | |
093d3ff1 | 10314 | { |
32fe5131 | 10315 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 10316 | } |
d14a1e28 RD |
10317 | return resultobj; |
10318 | fail: | |
10319 | return NULL; | |
10320 | } | |
10321 | ||
10322 | ||
c32bde28 | 10323 | static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10324 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10325 | wxChar *result; |
10326 | char *kwnames[] = { | |
10327 | NULL | |
10328 | }; | |
10329 | ||
10330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
10331 | { | |
10332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10333 | result = (wxChar *)wxLog::GetTimestamp(); | |
10334 | ||
10335 | wxPyEndAllowThreads(__tstate); | |
10336 | if (PyErr_Occurred()) SWIG_fail; | |
10337 | } | |
15afbcd0 | 10338 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); |
d14a1e28 RD |
10339 | return resultobj; |
10340 | fail: | |
10341 | return NULL; | |
10342 | } | |
10343 | ||
10344 | ||
c32bde28 | 10345 | static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10346 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10347 | wxString result; |
10348 | char *kwnames[] = { | |
10349 | NULL | |
10350 | }; | |
10351 | ||
10352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
10353 | { | |
10354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 10355 | result = wxLog_TimeStamp(); |
d14a1e28 RD |
10356 | |
10357 | wxPyEndAllowThreads(__tstate); | |
10358 | if (PyErr_Occurred()) SWIG_fail; | |
10359 | } | |
10360 | { | |
10361 | #if wxUSE_UNICODE | |
10362 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10363 | #else | |
10364 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10365 | #endif | |
10366 | } | |
10367 | return resultobj; | |
10368 | fail: | |
10369 | return NULL; | |
10370 | } | |
10371 | ||
10372 | ||
c32bde28 | 10373 | static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10374 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10375 | wxLog *arg1 = (wxLog *) 0 ; |
10376 | PyObject * obj0 = 0 ; | |
10377 | char *kwnames[] = { | |
10378 | (char *) "self", NULL | |
10379 | }; | |
10380 | ||
10381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
10383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10384 | { |
10385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10386 | wxLog_Destroy(arg1); | |
10387 | ||
10388 | wxPyEndAllowThreads(__tstate); | |
10389 | if (PyErr_Occurred()) SWIG_fail; | |
10390 | } | |
10391 | Py_INCREF(Py_None); resultobj = Py_None; | |
10392 | return resultobj; | |
10393 | fail: | |
10394 | return NULL; | |
10395 | } | |
10396 | ||
10397 | ||
c32bde28 | 10398 | static PyObject * Log_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10399 | PyObject *obj; |
10400 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10401 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
10402 | Py_INCREF(obj); | |
10403 | return Py_BuildValue((char *)""); | |
10404 | } | |
c32bde28 | 10405 | static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10406 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10407 | wxLogStderr *result; |
10408 | char *kwnames[] = { | |
10409 | NULL | |
10410 | }; | |
10411 | ||
10412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
10413 | { | |
10414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10415 | result = (wxLogStderr *)new wxLogStderr(); | |
10416 | ||
10417 | wxPyEndAllowThreads(__tstate); | |
10418 | if (PyErr_Occurred()) SWIG_fail; | |
10419 | } | |
15afbcd0 | 10420 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); |
d14a1e28 RD |
10421 | return resultobj; |
10422 | fail: | |
10423 | return NULL; | |
10424 | } | |
10425 | ||
10426 | ||
c32bde28 | 10427 | static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10428 | PyObject *obj; |
10429 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10430 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
10431 | Py_INCREF(obj); | |
10432 | return Py_BuildValue((char *)""); | |
10433 | } | |
c32bde28 | 10434 | static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10435 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10436 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10437 | wxLogTextCtrl *result; | |
10438 | PyObject * obj0 = 0 ; | |
10439 | char *kwnames[] = { | |
10440 | (char *) "pTextCtrl", NULL | |
10441 | }; | |
10442 | ||
10443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10446 | { |
10447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10448 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
10449 | ||
10450 | wxPyEndAllowThreads(__tstate); | |
10451 | if (PyErr_Occurred()) SWIG_fail; | |
10452 | } | |
15afbcd0 | 10453 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); |
d14a1e28 RD |
10454 | return resultobj; |
10455 | fail: | |
10456 | return NULL; | |
10457 | } | |
10458 | ||
10459 | ||
c32bde28 | 10460 | static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10461 | PyObject *obj; |
10462 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10463 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
10464 | Py_INCREF(obj); | |
10465 | return Py_BuildValue((char *)""); | |
10466 | } | |
c32bde28 | 10467 | static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10468 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10469 | wxLogGui *result; |
10470 | char *kwnames[] = { | |
10471 | NULL | |
10472 | }; | |
10473 | ||
10474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
10475 | { | |
10476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10477 | result = (wxLogGui *)new wxLogGui(); | |
10478 | ||
10479 | wxPyEndAllowThreads(__tstate); | |
10480 | if (PyErr_Occurred()) SWIG_fail; | |
10481 | } | |
15afbcd0 | 10482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); |
d14a1e28 RD |
10483 | return resultobj; |
10484 | fail: | |
10485 | return NULL; | |
10486 | } | |
10487 | ||
10488 | ||
c32bde28 | 10489 | static PyObject * LogGui_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10490 | PyObject *obj; |
10491 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10492 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
10493 | Py_INCREF(obj); | |
10494 | return Py_BuildValue((char *)""); | |
10495 | } | |
c32bde28 | 10496 | static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10497 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10498 | wxFrame *arg1 = (wxFrame *) 0 ; |
10499 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
10500 | bool arg3 = (bool) true ; |
10501 | bool arg4 = (bool) true ; | |
d14a1e28 | 10502 | wxLogWindow *result; |
ae8162c8 | 10503 | bool temp2 = false ; |
d14a1e28 RD |
10504 | PyObject * obj0 = 0 ; |
10505 | PyObject * obj1 = 0 ; | |
10506 | PyObject * obj2 = 0 ; | |
10507 | PyObject * obj3 = 0 ; | |
10508 | char *kwnames[] = { | |
10509 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
10510 | }; | |
10511 | ||
10512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
10513 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0); |
10514 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10515 | { |
10516 | arg2 = wxString_in_helper(obj1); | |
10517 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10518 | temp2 = true; |
d14a1e28 RD |
10519 | } |
10520 | if (obj2) { | |
093d3ff1 | 10521 | { |
32fe5131 | 10522 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
10523 | if (SWIG_arg_fail(3)) SWIG_fail; |
10524 | } | |
d14a1e28 RD |
10525 | } |
10526 | if (obj3) { | |
093d3ff1 | 10527 | { |
32fe5131 | 10528 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
10529 | if (SWIG_arg_fail(4)) SWIG_fail; |
10530 | } | |
d14a1e28 RD |
10531 | } |
10532 | { | |
10533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10534 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
10535 | ||
10536 | wxPyEndAllowThreads(__tstate); | |
10537 | if (PyErr_Occurred()) SWIG_fail; | |
10538 | } | |
15afbcd0 | 10539 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); |
d14a1e28 RD |
10540 | { |
10541 | if (temp2) | |
10542 | delete arg2; | |
10543 | } | |
10544 | return resultobj; | |
10545 | fail: | |
10546 | { | |
10547 | if (temp2) | |
10548 | delete arg2; | |
10549 | } | |
10550 | return NULL; | |
10551 | } | |
10552 | ||
10553 | ||
c32bde28 | 10554 | static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10555 | PyObject *resultobj = NULL; |
d14a1e28 | 10556 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; |
ae8162c8 | 10557 | bool arg2 = (bool) true ; |
d14a1e28 RD |
10558 | PyObject * obj0 = 0 ; |
10559 | PyObject * obj1 = 0 ; | |
10560 | char *kwnames[] = { | |
10561 | (char *) "self",(char *) "bShow", NULL | |
10562 | }; | |
10563 | ||
10564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
10566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 10567 | if (obj1) { |
093d3ff1 | 10568 | { |
32fe5131 | 10569 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
10570 | if (SWIG_arg_fail(2)) SWIG_fail; |
10571 | } | |
d14a1e28 RD |
10572 | } |
10573 | { | |
10574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10575 | (arg1)->Show(arg2); | |
10576 | ||
10577 | wxPyEndAllowThreads(__tstate); | |
10578 | if (PyErr_Occurred()) SWIG_fail; | |
10579 | } | |
10580 | Py_INCREF(Py_None); resultobj = Py_None; | |
10581 | return resultobj; | |
10582 | fail: | |
10583 | return NULL; | |
10584 | } | |
10585 | ||
10586 | ||
c32bde28 | 10587 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10588 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10589 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; |
10590 | wxFrame *result; | |
10591 | PyObject * obj0 = 0 ; | |
10592 | char *kwnames[] = { | |
10593 | (char *) "self", NULL | |
10594 | }; | |
10595 | ||
10596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10597 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
10598 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10599 | { |
10600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10601 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
10602 | ||
10603 | wxPyEndAllowThreads(__tstate); | |
10604 | if (PyErr_Occurred()) SWIG_fail; | |
10605 | } | |
10606 | { | |
7e08d4ef | 10607 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
10608 | } |
10609 | return resultobj; | |
10610 | fail: | |
10611 | return NULL; | |
10612 | } | |
10613 | ||
10614 | ||
c32bde28 | 10615 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10616 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10617 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; |
10618 | wxLog *result; | |
10619 | PyObject * obj0 = 0 ; | |
10620 | char *kwnames[] = { | |
10621 | (char *) "self", NULL | |
10622 | }; | |
10623 | ||
10624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
10626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10627 | { |
10628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10629 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
10630 | ||
10631 | wxPyEndAllowThreads(__tstate); | |
10632 | if (PyErr_Occurred()) SWIG_fail; | |
10633 | } | |
15afbcd0 | 10634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
10635 | return resultobj; |
10636 | fail: | |
10637 | return NULL; | |
10638 | } | |
10639 | ||
10640 | ||
c32bde28 | 10641 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10642 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10643 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; |
10644 | bool result; | |
10645 | PyObject * obj0 = 0 ; | |
10646 | char *kwnames[] = { | |
10647 | (char *) "self", NULL | |
10648 | }; | |
10649 | ||
10650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
10652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10653 | { |
10654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10655 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
10656 | ||
10657 | wxPyEndAllowThreads(__tstate); | |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
10659 | } | |
4f89f6a3 RD |
10660 | { |
10661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10662 | } | |
d14a1e28 RD |
10663 | return resultobj; |
10664 | fail: | |
10665 | return NULL; | |
10666 | } | |
10667 | ||
10668 | ||
c32bde28 | 10669 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10670 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10671 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; |
10672 | bool arg2 ; | |
10673 | PyObject * obj0 = 0 ; | |
10674 | PyObject * obj1 = 0 ; | |
10675 | char *kwnames[] = { | |
10676 | (char *) "self",(char *) "bDoPass", NULL | |
10677 | }; | |
10678 | ||
10679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
10681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10682 | { | |
32fe5131 | 10683 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
10684 | if (SWIG_arg_fail(2)) SWIG_fail; |
10685 | } | |
d14a1e28 RD |
10686 | { |
10687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10688 | (arg1)->PassMessages(arg2); | |
10689 | ||
10690 | wxPyEndAllowThreads(__tstate); | |
10691 | if (PyErr_Occurred()) SWIG_fail; | |
10692 | } | |
10693 | Py_INCREF(Py_None); resultobj = Py_None; | |
10694 | return resultobj; | |
10695 | fail: | |
10696 | return NULL; | |
10697 | } | |
10698 | ||
10699 | ||
c32bde28 | 10700 | static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10701 | PyObject *obj; |
10702 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10703 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
10704 | Py_INCREF(obj); | |
10705 | return Py_BuildValue((char *)""); | |
10706 | } | |
c32bde28 | 10707 | static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10708 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10709 | wxLog *arg1 = (wxLog *) 0 ; |
10710 | wxLogChain *result; | |
10711 | PyObject * obj0 = 0 ; | |
10712 | char *kwnames[] = { | |
10713 | (char *) "logger", NULL | |
10714 | }; | |
10715 | ||
10716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
10718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10719 | { |
10720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10721 | result = (wxLogChain *)new wxLogChain(arg1); | |
10722 | ||
10723 | wxPyEndAllowThreads(__tstate); | |
10724 | if (PyErr_Occurred()) SWIG_fail; | |
10725 | } | |
15afbcd0 | 10726 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); |
d14a1e28 RD |
10727 | return resultobj; |
10728 | fail: | |
10729 | return NULL; | |
10730 | } | |
10731 | ||
10732 | ||
c32bde28 | 10733 | static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10734 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10735 | wxLogChain *arg1 = (wxLogChain *) 0 ; |
10736 | wxLog *arg2 = (wxLog *) 0 ; | |
10737 | PyObject * obj0 = 0 ; | |
10738 | PyObject * obj1 = 0 ; | |
10739 | char *kwnames[] = { | |
10740 | (char *) "self",(char *) "logger", NULL | |
10741 | }; | |
10742 | ||
10743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
10745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10746 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); | |
10747 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
10748 | { |
10749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10750 | (arg1)->SetLog(arg2); | |
10751 | ||
10752 | wxPyEndAllowThreads(__tstate); | |
10753 | if (PyErr_Occurred()) SWIG_fail; | |
10754 | } | |
10755 | Py_INCREF(Py_None); resultobj = Py_None; | |
10756 | return resultobj; | |
10757 | fail: | |
10758 | return NULL; | |
10759 | } | |
10760 | ||
10761 | ||
c32bde28 | 10762 | static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10763 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10764 | wxLogChain *arg1 = (wxLogChain *) 0 ; |
10765 | bool arg2 ; | |
10766 | PyObject * obj0 = 0 ; | |
10767 | PyObject * obj1 = 0 ; | |
10768 | char *kwnames[] = { | |
10769 | (char *) "self",(char *) "bDoPass", NULL | |
10770 | }; | |
10771 | ||
10772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
10774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10775 | { | |
32fe5131 | 10776 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
10777 | if (SWIG_arg_fail(2)) SWIG_fail; |
10778 | } | |
d14a1e28 RD |
10779 | { |
10780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10781 | (arg1)->PassMessages(arg2); | |
10782 | ||
10783 | wxPyEndAllowThreads(__tstate); | |
10784 | if (PyErr_Occurred()) SWIG_fail; | |
10785 | } | |
10786 | Py_INCREF(Py_None); resultobj = Py_None; | |
10787 | return resultobj; | |
10788 | fail: | |
10789 | return NULL; | |
10790 | } | |
10791 | ||
10792 | ||
c32bde28 | 10793 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10794 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10795 | wxLogChain *arg1 = (wxLogChain *) 0 ; |
10796 | bool result; | |
10797 | PyObject * obj0 = 0 ; | |
10798 | char *kwnames[] = { | |
10799 | (char *) "self", NULL | |
10800 | }; | |
10801 | ||
10802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10803 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
10804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10805 | { |
10806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10807 | result = (bool)(arg1)->IsPassingMessages(); | |
10808 | ||
10809 | wxPyEndAllowThreads(__tstate); | |
10810 | if (PyErr_Occurred()) SWIG_fail; | |
10811 | } | |
4f89f6a3 RD |
10812 | { |
10813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10814 | } | |
d14a1e28 RD |
10815 | return resultobj; |
10816 | fail: | |
10817 | return NULL; | |
10818 | } | |
10819 | ||
10820 | ||
c32bde28 | 10821 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10822 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10823 | wxLogChain *arg1 = (wxLogChain *) 0 ; |
10824 | wxLog *result; | |
10825 | PyObject * obj0 = 0 ; | |
10826 | char *kwnames[] = { | |
10827 | (char *) "self", NULL | |
10828 | }; | |
10829 | ||
10830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
10832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10833 | { |
10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10835 | result = (wxLog *)(arg1)->GetOldLog(); | |
10836 | ||
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
15afbcd0 | 10840 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
10841 | return resultobj; |
10842 | fail: | |
10843 | return NULL; | |
10844 | } | |
10845 | ||
10846 | ||
c32bde28 | 10847 | static PyObject * LogChain_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10848 | PyObject *obj; |
10849 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10850 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
10851 | Py_INCREF(obj); | |
10852 | return Py_BuildValue((char *)""); | |
10853 | } | |
53307de4 | 10854 | static PyObject *_wrap_new_LogBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10855 | PyObject *resultobj = NULL; |
53307de4 RD |
10856 | wxLogBuffer *result; |
10857 | char *kwnames[] = { | |
10858 | NULL | |
10859 | }; | |
10860 | ||
10861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogBuffer",kwnames)) goto fail; | |
10862 | { | |
10863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10864 | result = (wxLogBuffer *)new wxLogBuffer(); | |
10865 | ||
10866 | wxPyEndAllowThreads(__tstate); | |
10867 | if (PyErr_Occurred()) SWIG_fail; | |
10868 | } | |
10869 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogBuffer, 1); | |
10870 | return resultobj; | |
10871 | fail: | |
10872 | return NULL; | |
10873 | } | |
10874 | ||
10875 | ||
10876 | static PyObject *_wrap_LogBuffer_GetBuffer(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 10877 | PyObject *resultobj = NULL; |
53307de4 RD |
10878 | wxLogBuffer *arg1 = (wxLogBuffer *) 0 ; |
10879 | wxString *result; | |
10880 | PyObject * obj0 = 0 ; | |
10881 | char *kwnames[] = { | |
10882 | (char *) "self", NULL | |
10883 | }; | |
10884 | ||
10885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogBuffer_GetBuffer",kwnames,&obj0)) goto fail; | |
10886 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_EXCEPTION | 0); | |
10887 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10888 | { | |
10889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10890 | { | |
10891 | wxString const &_result_ref = ((wxLogBuffer const *)arg1)->GetBuffer(); | |
10892 | result = (wxString *) &_result_ref; | |
10893 | } | |
10894 | ||
10895 | wxPyEndAllowThreads(__tstate); | |
10896 | if (PyErr_Occurred()) SWIG_fail; | |
10897 | } | |
10898 | { | |
10899 | #if wxUSE_UNICODE | |
10900 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10901 | #else | |
10902 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10903 | #endif | |
10904 | } | |
10905 | return resultobj; | |
10906 | fail: | |
10907 | return NULL; | |
10908 | } | |
10909 | ||
10910 | ||
10911 | static PyObject *_wrap_LogBuffer_Flush(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 10912 | PyObject *resultobj = NULL; |
53307de4 RD |
10913 | wxLogBuffer *arg1 = (wxLogBuffer *) 0 ; |
10914 | PyObject * obj0 = 0 ; | |
10915 | char *kwnames[] = { | |
10916 | (char *) "self", NULL | |
10917 | }; | |
10918 | ||
10919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogBuffer_Flush",kwnames,&obj0)) goto fail; | |
10920 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_EXCEPTION | 0); | |
10921 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10922 | { | |
10923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10924 | (arg1)->Flush(); | |
10925 | ||
10926 | wxPyEndAllowThreads(__tstate); | |
10927 | if (PyErr_Occurred()) SWIG_fail; | |
10928 | } | |
10929 | Py_INCREF(Py_None); resultobj = Py_None; | |
10930 | return resultobj; | |
10931 | fail: | |
10932 | return NULL; | |
10933 | } | |
10934 | ||
10935 | ||
10936 | static PyObject * LogBuffer_swigregister(PyObject *, PyObject *args) { | |
10937 | PyObject *obj; | |
10938 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10939 | SWIG_TypeClientData(SWIGTYPE_p_wxLogBuffer, obj); | |
10940 | Py_INCREF(obj); | |
10941 | return Py_BuildValue((char *)""); | |
10942 | } | |
c32bde28 | 10943 | static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10944 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10945 | unsigned long result; |
10946 | char *kwnames[] = { | |
10947 | NULL | |
10948 | }; | |
10949 | ||
10950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
10951 | { | |
10952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10953 | result = (unsigned long)wxSysErrorCode(); | |
10954 | ||
10955 | wxPyEndAllowThreads(__tstate); | |
10956 | if (PyErr_Occurred()) SWIG_fail; | |
10957 | } | |
093d3ff1 | 10958 | { |
32fe5131 | 10959 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 10960 | } |
d14a1e28 RD |
10961 | return resultobj; |
10962 | fail: | |
10963 | return NULL; | |
10964 | } | |
10965 | ||
10966 | ||
c32bde28 | 10967 | static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10968 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10969 | unsigned long arg1 = (unsigned long) 0 ; |
10970 | wxString result; | |
10971 | PyObject * obj0 = 0 ; | |
10972 | char *kwnames[] = { | |
10973 | (char *) "nErrCode", NULL | |
10974 | }; | |
10975 | ||
10976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
10977 | if (obj0) { | |
093d3ff1 | 10978 | { |
32fe5131 | 10979 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
10980 | if (SWIG_arg_fail(1)) SWIG_fail; |
10981 | } | |
d14a1e28 RD |
10982 | } |
10983 | { | |
10984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10985 | result = wxSysErrorMsg(arg1); | |
10986 | ||
10987 | wxPyEndAllowThreads(__tstate); | |
10988 | if (PyErr_Occurred()) SWIG_fail; | |
10989 | } | |
10990 | { | |
10991 | #if wxUSE_UNICODE | |
10992 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10993 | #else | |
10994 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10995 | #endif | |
10996 | } | |
10997 | return resultobj; | |
10998 | fail: | |
10999 | return NULL; | |
11000 | } | |
11001 | ||
11002 | ||
c32bde28 | 11003 | static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11004 | PyObject *resultobj = NULL; |
d14a1e28 | 11005 | wxString *arg1 = 0 ; |
ae8162c8 | 11006 | bool temp1 = false ; |
d14a1e28 RD |
11007 | PyObject * obj0 = 0 ; |
11008 | char *kwnames[] = { | |
11009 | (char *) "msg", NULL | |
11010 | }; | |
11011 | ||
11012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
11013 | { | |
11014 | arg1 = wxString_in_helper(obj0); | |
11015 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11016 | temp1 = true; |
d14a1e28 RD |
11017 | } |
11018 | { | |
11019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11020 | wxPyLogFatalError((wxString const &)*arg1); |
d14a1e28 RD |
11021 | |
11022 | wxPyEndAllowThreads(__tstate); | |
11023 | if (PyErr_Occurred()) SWIG_fail; | |
11024 | } | |
11025 | Py_INCREF(Py_None); resultobj = Py_None; | |
11026 | { | |
11027 | if (temp1) | |
11028 | delete arg1; | |
11029 | } | |
11030 | return resultobj; | |
11031 | fail: | |
11032 | { | |
11033 | if (temp1) | |
11034 | delete arg1; | |
11035 | } | |
11036 | return NULL; | |
11037 | } | |
11038 | ||
11039 | ||
c32bde28 | 11040 | static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11041 | PyObject *resultobj = NULL; |
d14a1e28 | 11042 | wxString *arg1 = 0 ; |
ae8162c8 | 11043 | bool temp1 = false ; |
d14a1e28 RD |
11044 | PyObject * obj0 = 0 ; |
11045 | char *kwnames[] = { | |
11046 | (char *) "msg", NULL | |
11047 | }; | |
11048 | ||
11049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
11050 | { | |
11051 | arg1 = wxString_in_helper(obj0); | |
11052 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11053 | temp1 = true; |
d14a1e28 RD |
11054 | } |
11055 | { | |
11056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11057 | wxPyLogError((wxString const &)*arg1); |
d14a1e28 RD |
11058 | |
11059 | wxPyEndAllowThreads(__tstate); | |
11060 | if (PyErr_Occurred()) SWIG_fail; | |
11061 | } | |
11062 | Py_INCREF(Py_None); resultobj = Py_None; | |
11063 | { | |
11064 | if (temp1) | |
11065 | delete arg1; | |
11066 | } | |
11067 | return resultobj; | |
11068 | fail: | |
11069 | { | |
11070 | if (temp1) | |
11071 | delete arg1; | |
11072 | } | |
11073 | return NULL; | |
11074 | } | |
11075 | ||
11076 | ||
c32bde28 | 11077 | static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11078 | PyObject *resultobj = NULL; |
d14a1e28 | 11079 | wxString *arg1 = 0 ; |
ae8162c8 | 11080 | bool temp1 = false ; |
d14a1e28 RD |
11081 | PyObject * obj0 = 0 ; |
11082 | char *kwnames[] = { | |
11083 | (char *) "msg", NULL | |
11084 | }; | |
11085 | ||
11086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
11087 | { | |
11088 | arg1 = wxString_in_helper(obj0); | |
11089 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11090 | temp1 = true; |
d14a1e28 RD |
11091 | } |
11092 | { | |
11093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11094 | wxPyLogWarning((wxString const &)*arg1); |
d14a1e28 RD |
11095 | |
11096 | wxPyEndAllowThreads(__tstate); | |
11097 | if (PyErr_Occurred()) SWIG_fail; | |
11098 | } | |
11099 | Py_INCREF(Py_None); resultobj = Py_None; | |
11100 | { | |
11101 | if (temp1) | |
11102 | delete arg1; | |
11103 | } | |
11104 | return resultobj; | |
11105 | fail: | |
11106 | { | |
11107 | if (temp1) | |
11108 | delete arg1; | |
11109 | } | |
11110 | return NULL; | |
11111 | } | |
11112 | ||
11113 | ||
c32bde28 | 11114 | static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11115 | PyObject *resultobj = NULL; |
d14a1e28 | 11116 | wxString *arg1 = 0 ; |
ae8162c8 | 11117 | bool temp1 = false ; |
d14a1e28 RD |
11118 | PyObject * obj0 = 0 ; |
11119 | char *kwnames[] = { | |
11120 | (char *) "msg", NULL | |
11121 | }; | |
11122 | ||
11123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
11124 | { | |
11125 | arg1 = wxString_in_helper(obj0); | |
11126 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11127 | temp1 = true; |
d14a1e28 RD |
11128 | } |
11129 | { | |
11130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11131 | wxPyLogMessage((wxString const &)*arg1); |
d14a1e28 RD |
11132 | |
11133 | wxPyEndAllowThreads(__tstate); | |
11134 | if (PyErr_Occurred()) SWIG_fail; | |
11135 | } | |
11136 | Py_INCREF(Py_None); resultobj = Py_None; | |
11137 | { | |
11138 | if (temp1) | |
11139 | delete arg1; | |
11140 | } | |
11141 | return resultobj; | |
11142 | fail: | |
11143 | { | |
11144 | if (temp1) | |
11145 | delete arg1; | |
11146 | } | |
11147 | return NULL; | |
11148 | } | |
11149 | ||
11150 | ||
c32bde28 | 11151 | static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11152 | PyObject *resultobj = NULL; |
d14a1e28 | 11153 | wxString *arg1 = 0 ; |
ae8162c8 | 11154 | bool temp1 = false ; |
d14a1e28 RD |
11155 | PyObject * obj0 = 0 ; |
11156 | char *kwnames[] = { | |
11157 | (char *) "msg", NULL | |
11158 | }; | |
11159 | ||
11160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
11161 | { | |
11162 | arg1 = wxString_in_helper(obj0); | |
11163 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11164 | temp1 = true; |
d14a1e28 RD |
11165 | } |
11166 | { | |
11167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11168 | wxPyLogInfo((wxString const &)*arg1); |
d14a1e28 RD |
11169 | |
11170 | wxPyEndAllowThreads(__tstate); | |
11171 | if (PyErr_Occurred()) SWIG_fail; | |
11172 | } | |
11173 | Py_INCREF(Py_None); resultobj = Py_None; | |
11174 | { | |
11175 | if (temp1) | |
11176 | delete arg1; | |
11177 | } | |
11178 | return resultobj; | |
11179 | fail: | |
11180 | { | |
11181 | if (temp1) | |
11182 | delete arg1; | |
11183 | } | |
11184 | return NULL; | |
11185 | } | |
11186 | ||
11187 | ||
c32bde28 | 11188 | static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11189 | PyObject *resultobj = NULL; |
d14a1e28 | 11190 | wxString *arg1 = 0 ; |
ae8162c8 | 11191 | bool temp1 = false ; |
d14a1e28 RD |
11192 | PyObject * obj0 = 0 ; |
11193 | char *kwnames[] = { | |
11194 | (char *) "msg", NULL | |
11195 | }; | |
11196 | ||
11197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
11198 | { | |
11199 | arg1 = wxString_in_helper(obj0); | |
11200 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11201 | temp1 = true; |
d14a1e28 RD |
11202 | } |
11203 | { | |
11204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11205 | wxPyLogDebug((wxString const &)*arg1); |
d14a1e28 RD |
11206 | |
11207 | wxPyEndAllowThreads(__tstate); | |
11208 | if (PyErr_Occurred()) SWIG_fail; | |
11209 | } | |
11210 | Py_INCREF(Py_None); resultobj = Py_None; | |
11211 | { | |
11212 | if (temp1) | |
11213 | delete arg1; | |
11214 | } | |
11215 | return resultobj; | |
11216 | fail: | |
11217 | { | |
11218 | if (temp1) | |
11219 | delete arg1; | |
11220 | } | |
11221 | return NULL; | |
11222 | } | |
11223 | ||
11224 | ||
c32bde28 | 11225 | static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11226 | PyObject *resultobj = NULL; |
d14a1e28 | 11227 | wxString *arg1 = 0 ; |
ae8162c8 | 11228 | bool temp1 = false ; |
d14a1e28 RD |
11229 | PyObject * obj0 = 0 ; |
11230 | char *kwnames[] = { | |
11231 | (char *) "msg", NULL | |
11232 | }; | |
11233 | ||
11234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
11235 | { | |
11236 | arg1 = wxString_in_helper(obj0); | |
11237 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11238 | temp1 = true; |
d14a1e28 RD |
11239 | } |
11240 | { | |
11241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11242 | wxPyLogVerbose((wxString const &)*arg1); |
d14a1e28 RD |
11243 | |
11244 | wxPyEndAllowThreads(__tstate); | |
11245 | if (PyErr_Occurred()) SWIG_fail; | |
11246 | } | |
11247 | Py_INCREF(Py_None); resultobj = Py_None; | |
11248 | { | |
11249 | if (temp1) | |
11250 | delete arg1; | |
11251 | } | |
11252 | return resultobj; | |
11253 | fail: | |
11254 | { | |
11255 | if (temp1) | |
11256 | delete arg1; | |
11257 | } | |
11258 | return NULL; | |
11259 | } | |
11260 | ||
11261 | ||
c32bde28 | 11262 | static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11263 | PyObject *resultobj = NULL; |
d14a1e28 | 11264 | wxString *arg1 = 0 ; |
ae8162c8 | 11265 | bool temp1 = false ; |
d14a1e28 RD |
11266 | PyObject * obj0 = 0 ; |
11267 | char *kwnames[] = { | |
11268 | (char *) "msg", NULL | |
11269 | }; | |
11270 | ||
11271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
11272 | { | |
11273 | arg1 = wxString_in_helper(obj0); | |
11274 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11275 | temp1 = true; |
d14a1e28 RD |
11276 | } |
11277 | { | |
11278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11279 | wxPyLogStatus((wxString const &)*arg1); |
d14a1e28 RD |
11280 | |
11281 | wxPyEndAllowThreads(__tstate); | |
11282 | if (PyErr_Occurred()) SWIG_fail; | |
11283 | } | |
11284 | Py_INCREF(Py_None); resultobj = Py_None; | |
11285 | { | |
11286 | if (temp1) | |
11287 | delete arg1; | |
11288 | } | |
11289 | return resultobj; | |
11290 | fail: | |
11291 | { | |
11292 | if (temp1) | |
11293 | delete arg1; | |
11294 | } | |
11295 | return NULL; | |
11296 | } | |
11297 | ||
11298 | ||
c32bde28 | 11299 | static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11300 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11301 | wxFrame *arg1 = (wxFrame *) 0 ; |
11302 | wxString *arg2 = 0 ; | |
ae8162c8 | 11303 | bool temp2 = false ; |
d14a1e28 RD |
11304 | PyObject * obj0 = 0 ; |
11305 | PyObject * obj1 = 0 ; | |
11306 | char *kwnames[] = { | |
11307 | (char *) "pFrame",(char *) "msg", NULL | |
11308 | }; | |
11309 | ||
11310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0); |
11312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11313 | { |
11314 | arg2 = wxString_in_helper(obj1); | |
11315 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11316 | temp2 = true; |
d14a1e28 RD |
11317 | } |
11318 | { | |
11319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11320 | wxPyLogStatusFrame(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
11321 | |
11322 | wxPyEndAllowThreads(__tstate); | |
11323 | if (PyErr_Occurred()) SWIG_fail; | |
11324 | } | |
11325 | Py_INCREF(Py_None); resultobj = Py_None; | |
11326 | { | |
11327 | if (temp2) | |
11328 | delete arg2; | |
11329 | } | |
11330 | return resultobj; | |
11331 | fail: | |
11332 | { | |
11333 | if (temp2) | |
11334 | delete arg2; | |
11335 | } | |
11336 | return NULL; | |
11337 | } | |
11338 | ||
11339 | ||
c32bde28 | 11340 | static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11341 | PyObject *resultobj = NULL; |
d14a1e28 | 11342 | wxString *arg1 = 0 ; |
ae8162c8 | 11343 | bool temp1 = false ; |
d14a1e28 RD |
11344 | PyObject * obj0 = 0 ; |
11345 | char *kwnames[] = { | |
11346 | (char *) "msg", NULL | |
11347 | }; | |
11348 | ||
11349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
11350 | { | |
11351 | arg1 = wxString_in_helper(obj0); | |
11352 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11353 | temp1 = true; |
d14a1e28 RD |
11354 | } |
11355 | { | |
11356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11357 | wxPyLogSysError((wxString const &)*arg1); |
d14a1e28 RD |
11358 | |
11359 | wxPyEndAllowThreads(__tstate); | |
11360 | if (PyErr_Occurred()) SWIG_fail; | |
11361 | } | |
11362 | Py_INCREF(Py_None); resultobj = Py_None; | |
11363 | { | |
11364 | if (temp1) | |
11365 | delete arg1; | |
11366 | } | |
11367 | return resultobj; | |
11368 | fail: | |
11369 | { | |
11370 | if (temp1) | |
11371 | delete arg1; | |
11372 | } | |
11373 | return NULL; | |
11374 | } | |
11375 | ||
11376 | ||
f78cc896 | 11377 | static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11378 | PyObject *resultobj = NULL; |
f78cc896 RD |
11379 | unsigned long arg1 ; |
11380 | wxString *arg2 = 0 ; | |
11381 | bool temp2 = false ; | |
11382 | PyObject * obj0 = 0 ; | |
11383 | PyObject * obj1 = 0 ; | |
11384 | char *kwnames[] = { | |
11385 | (char *) "level",(char *) "msg", NULL | |
11386 | }; | |
11387 | ||
11388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 | 11389 | { |
32fe5131 | 11390 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
11391 | if (SWIG_arg_fail(1)) SWIG_fail; |
11392 | } | |
f78cc896 RD |
11393 | { |
11394 | arg2 = wxString_in_helper(obj1); | |
11395 | if (arg2 == NULL) SWIG_fail; | |
11396 | temp2 = true; | |
11397 | } | |
11398 | { | |
11399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11400 | wxPyLogGeneric(arg1,(wxString const &)*arg2); | |
11401 | ||
11402 | wxPyEndAllowThreads(__tstate); | |
11403 | if (PyErr_Occurred()) SWIG_fail; | |
11404 | } | |
11405 | Py_INCREF(Py_None); resultobj = Py_None; | |
11406 | { | |
11407 | if (temp2) | |
11408 | delete arg2; | |
11409 | } | |
11410 | return resultobj; | |
11411 | fail: | |
11412 | { | |
11413 | if (temp2) | |
11414 | delete arg2; | |
11415 | } | |
11416 | return NULL; | |
11417 | } | |
11418 | ||
11419 | ||
c32bde28 | 11420 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 11421 | PyObject *resultobj = NULL; |
cc6dd355 RD |
11422 | unsigned long arg1 ; |
11423 | wxString *arg2 = 0 ; | |
ae8162c8 | 11424 | bool temp2 = false ; |
d14a1e28 | 11425 | PyObject * obj0 = 0 ; |
cc6dd355 | 11426 | PyObject * obj1 = 0 ; |
d14a1e28 | 11427 | |
cc6dd355 | 11428 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
093d3ff1 | 11429 | { |
32fe5131 | 11430 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
11431 | if (SWIG_arg_fail(1)) SWIG_fail; |
11432 | } | |
d14a1e28 | 11433 | { |
cc6dd355 RD |
11434 | arg2 = wxString_in_helper(obj1); |
11435 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11436 | temp2 = true; |
d14a1e28 RD |
11437 | } |
11438 | { | |
11439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11440 | wxPyLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
11441 | |
11442 | wxPyEndAllowThreads(__tstate); | |
11443 | if (PyErr_Occurred()) SWIG_fail; | |
11444 | } | |
11445 | Py_INCREF(Py_None); resultobj = Py_None; | |
11446 | { | |
cc6dd355 RD |
11447 | if (temp2) |
11448 | delete arg2; | |
d14a1e28 RD |
11449 | } |
11450 | return resultobj; | |
11451 | fail: | |
11452 | { | |
cc6dd355 RD |
11453 | if (temp2) |
11454 | delete arg2; | |
d14a1e28 RD |
11455 | } |
11456 | return NULL; | |
11457 | } | |
11458 | ||
11459 | ||
c32bde28 | 11460 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) { |
32fe5131 | 11461 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11462 | wxString *arg1 = 0 ; |
11463 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
11464 | bool temp1 = false ; |
11465 | bool temp2 = false ; | |
d14a1e28 RD |
11466 | PyObject * obj0 = 0 ; |
11467 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11468 | |
cc6dd355 | 11469 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
11470 | { |
11471 | arg1 = wxString_in_helper(obj0); | |
11472 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11473 | temp1 = true; |
d14a1e28 RD |
11474 | } |
11475 | { | |
11476 | arg2 = wxString_in_helper(obj1); | |
11477 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11478 | temp2 = true; |
d14a1e28 RD |
11479 | } |
11480 | { | |
11481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 11482 | wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2); |
d14a1e28 RD |
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 | ||
cc6dd355 RD |
11510 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
11511 | int argc; | |
11512 | PyObject *argv[3]; | |
11513 | int ii; | |
11514 | ||
11515 | argc = PyObject_Length(args); | |
11516 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
11517 | argv[ii] = PyTuple_GetItem(args,ii); | |
11518 | } | |
11519 | if (argc == 2) { | |
11520 | int _v; | |
11521 | { | |
4d5c3d91 | 11522 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
cc6dd355 RD |
11523 | } |
11524 | if (_v) { | |
11525 | { | |
4d5c3d91 | 11526 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
11527 | } |
11528 | if (_v) { | |
11529 | return _wrap_LogTrace__SWIG_1(self,args); | |
11530 | } | |
11531 | } | |
11532 | } | |
11533 | if (argc == 2) { | |
11534 | int _v; | |
c32bde28 | 11535 | _v = SWIG_Check_unsigned_SS_long(argv[0]); |
cc6dd355 RD |
11536 | if (_v) { |
11537 | { | |
4d5c3d91 | 11538 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
11539 | } |
11540 | if (_v) { | |
11541 | return _wrap_LogTrace__SWIG_0(self,args); | |
11542 | } | |
11543 | } | |
11544 | } | |
11545 | ||
093d3ff1 | 11546 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'LogTrace'"); |
cc6dd355 RD |
11547 | return NULL; |
11548 | } | |
11549 | ||
11550 | ||
c32bde28 | 11551 | static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11552 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11553 | wxString *arg1 = 0 ; |
11554 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
11555 | bool temp1 = false ; |
11556 | bool temp2 = false ; | |
d14a1e28 RD |
11557 | PyObject * obj0 = 0 ; |
11558 | PyObject * obj1 = 0 ; | |
11559 | char *kwnames[] = { | |
11560 | (char *) "title",(char *) "text", NULL | |
11561 | }; | |
11562 | ||
11563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
11564 | { | |
11565 | arg1 = wxString_in_helper(obj0); | |
11566 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11567 | temp1 = true; |
d14a1e28 RD |
11568 | } |
11569 | { | |
11570 | arg2 = wxString_in_helper(obj1); | |
11571 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11572 | temp2 = true; |
d14a1e28 RD |
11573 | } |
11574 | { | |
11575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11576 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
11577 | ||
11578 | wxPyEndAllowThreads(__tstate); | |
11579 | if (PyErr_Occurred()) SWIG_fail; | |
11580 | } | |
11581 | Py_INCREF(Py_None); resultobj = Py_None; | |
11582 | { | |
11583 | if (temp1) | |
11584 | delete arg1; | |
11585 | } | |
11586 | { | |
11587 | if (temp2) | |
11588 | delete arg2; | |
11589 | } | |
11590 | return resultobj; | |
11591 | fail: | |
11592 | { | |
11593 | if (temp1) | |
11594 | delete arg1; | |
11595 | } | |
11596 | { | |
11597 | if (temp2) | |
11598 | delete arg2; | |
11599 | } | |
11600 | return NULL; | |
11601 | } | |
11602 | ||
11603 | ||
c32bde28 | 11604 | static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11605 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11606 | wxLogNull *result; |
11607 | char *kwnames[] = { | |
11608 | NULL | |
11609 | }; | |
11610 | ||
11611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
11612 | { | |
11613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11614 | result = (wxLogNull *)new wxLogNull(); | |
11615 | ||
11616 | wxPyEndAllowThreads(__tstate); | |
11617 | if (PyErr_Occurred()) SWIG_fail; | |
11618 | } | |
15afbcd0 | 11619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); |
d14a1e28 RD |
11620 | return resultobj; |
11621 | fail: | |
11622 | return NULL; | |
11623 | } | |
11624 | ||
11625 | ||
c32bde28 | 11626 | static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11627 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11628 | wxLogNull *arg1 = (wxLogNull *) 0 ; |
11629 | PyObject * obj0 = 0 ; | |
11630 | char *kwnames[] = { | |
11631 | (char *) "self", NULL | |
11632 | }; | |
11633 | ||
11634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11635 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogNull, SWIG_POINTER_EXCEPTION | 0); |
11636 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11637 | { |
11638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11639 | delete arg1; | |
11640 | ||
11641 | wxPyEndAllowThreads(__tstate); | |
11642 | if (PyErr_Occurred()) SWIG_fail; | |
11643 | } | |
11644 | Py_INCREF(Py_None); resultobj = Py_None; | |
11645 | return resultobj; | |
11646 | fail: | |
11647 | return NULL; | |
11648 | } | |
11649 | ||
11650 | ||
c32bde28 | 11651 | static PyObject * LogNull_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11652 | PyObject *obj; |
11653 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11654 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
11655 | Py_INCREF(obj); | |
11656 | return Py_BuildValue((char *)""); | |
11657 | } | |
c32bde28 | 11658 | static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11659 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11660 | wxPyLog *result; |
11661 | char *kwnames[] = { | |
11662 | NULL | |
11663 | }; | |
11664 | ||
11665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
11666 | { | |
11667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11668 | result = (wxPyLog *)new wxPyLog(); | |
11669 | ||
11670 | wxPyEndAllowThreads(__tstate); | |
11671 | if (PyErr_Occurred()) SWIG_fail; | |
11672 | } | |
15afbcd0 | 11673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); |
d14a1e28 RD |
11674 | return resultobj; |
11675 | fail: | |
11676 | return NULL; | |
11677 | } | |
11678 | ||
11679 | ||
c32bde28 | 11680 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11681 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11682 | wxPyLog *arg1 = (wxPyLog *) 0 ; |
11683 | PyObject *arg2 = (PyObject *) 0 ; | |
11684 | PyObject *arg3 = (PyObject *) 0 ; | |
11685 | PyObject * obj0 = 0 ; | |
11686 | PyObject * obj1 = 0 ; | |
11687 | PyObject * obj2 = 0 ; | |
11688 | char *kwnames[] = { | |
11689 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
11690 | }; | |
11691 | ||
11692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyLog, SWIG_POINTER_EXCEPTION | 0); |
11694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11695 | arg2 = obj1; |
11696 | arg3 = obj2; | |
11697 | { | |
11698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11699 | (arg1)->_setCallbackInfo(arg2,arg3); | |
11700 | ||
11701 | wxPyEndAllowThreads(__tstate); | |
11702 | if (PyErr_Occurred()) SWIG_fail; | |
11703 | } | |
11704 | Py_INCREF(Py_None); resultobj = Py_None; | |
11705 | return resultobj; | |
11706 | fail: | |
11707 | return NULL; | |
11708 | } | |
11709 | ||
11710 | ||
c32bde28 | 11711 | static PyObject * PyLog_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11712 | PyObject *obj; |
11713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11714 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
11715 | Py_INCREF(obj); | |
11716 | return Py_BuildValue((char *)""); | |
11717 | } | |
c32bde28 | 11718 | static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11719 | PyObject *resultobj = NULL; |
d14a1e28 | 11720 | int arg1 ; |
093d3ff1 | 11721 | wxSignal arg2 = (wxSignal) wxSIGTERM ; |
1823fbb4 | 11722 | int arg3 = (int) wxKILL_NOCHILDREN ; |
093d3ff1 | 11723 | wxKillError result; |
994141e6 RD |
11724 | PyObject * obj0 = 0 ; |
11725 | PyObject * obj1 = 0 ; | |
1823fbb4 | 11726 | PyObject * obj2 = 0 ; |
d14a1e28 | 11727 | char *kwnames[] = { |
1823fbb4 | 11728 | (char *) "pid",(char *) "sig",(char *) "flags", NULL |
d14a1e28 RD |
11729 | }; |
11730 | ||
1823fbb4 | 11731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Process_Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 | 11732 | { |
32fe5131 | 11733 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
11734 | if (SWIG_arg_fail(1)) SWIG_fail; |
11735 | } | |
994141e6 | 11736 | if (obj1) { |
093d3ff1 | 11737 | { |
32fe5131 | 11738 | arg2 = static_cast<wxSignal >(SWIG_As_int(obj1)); |
093d3ff1 RD |
11739 | if (SWIG_arg_fail(2)) SWIG_fail; |
11740 | } | |
994141e6 | 11741 | } |
1823fbb4 | 11742 | if (obj2) { |
093d3ff1 | 11743 | { |
32fe5131 | 11744 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
11745 | if (SWIG_arg_fail(3)) SWIG_fail; |
11746 | } | |
1823fbb4 | 11747 | } |
d14a1e28 RD |
11748 | { |
11749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 11750 | result = (wxKillError)wxPyProcess::Kill(arg1,arg2,arg3); |
d14a1e28 RD |
11751 | |
11752 | wxPyEndAllowThreads(__tstate); | |
11753 | if (PyErr_Occurred()) SWIG_fail; | |
11754 | } | |
093d3ff1 | 11755 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
11756 | return resultobj; |
11757 | fail: | |
11758 | return NULL; | |
11759 | } | |
11760 | ||
11761 | ||
c32bde28 | 11762 | static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11763 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11764 | int arg1 ; |
11765 | bool result; | |
994141e6 | 11766 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
11767 | char *kwnames[] = { |
11768 | (char *) "pid", NULL | |
11769 | }; | |
11770 | ||
994141e6 | 11771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; |
093d3ff1 | 11772 | { |
32fe5131 | 11773 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
11774 | if (SWIG_arg_fail(1)) SWIG_fail; |
11775 | } | |
d14a1e28 RD |
11776 | { |
11777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11778 | result = (bool)wxPyProcess::Exists(arg1); | |
11779 | ||
11780 | wxPyEndAllowThreads(__tstate); | |
11781 | if (PyErr_Occurred()) SWIG_fail; | |
11782 | } | |
4f89f6a3 RD |
11783 | { |
11784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11785 | } | |
d14a1e28 RD |
11786 | return resultobj; |
11787 | fail: | |
11788 | return NULL; | |
11789 | } | |
11790 | ||
11791 | ||
c32bde28 | 11792 | static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11793 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11794 | wxString *arg1 = 0 ; |
11795 | int arg2 = (int) wxEXEC_ASYNC ; | |
11796 | wxPyProcess *result; | |
ae8162c8 | 11797 | bool temp1 = false ; |
d14a1e28 | 11798 | PyObject * obj0 = 0 ; |
994141e6 | 11799 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11800 | char *kwnames[] = { |
11801 | (char *) "cmd",(char *) "flags", NULL | |
11802 | }; | |
11803 | ||
994141e6 | 11804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
11805 | { |
11806 | arg1 = wxString_in_helper(obj0); | |
11807 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11808 | temp1 = true; |
d14a1e28 | 11809 | } |
994141e6 | 11810 | if (obj1) { |
093d3ff1 | 11811 | { |
32fe5131 | 11812 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
11813 | if (SWIG_arg_fail(2)) SWIG_fail; |
11814 | } | |
994141e6 | 11815 | } |
d14a1e28 RD |
11816 | { |
11817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11818 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
11819 | ||
11820 | wxPyEndAllowThreads(__tstate); | |
11821 | if (PyErr_Occurred()) SWIG_fail; | |
11822 | } | |
15afbcd0 | 11823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); |
d14a1e28 RD |
11824 | { |
11825 | if (temp1) | |
11826 | delete arg1; | |
11827 | } | |
11828 | return resultobj; | |
11829 | fail: | |
11830 | { | |
11831 | if (temp1) | |
11832 | delete arg1; | |
11833 | } | |
11834 | return NULL; | |
11835 | } | |
11836 | ||
11837 | ||
c32bde28 | 11838 | static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11839 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11840 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; |
11841 | int arg2 = (int) -1 ; | |
11842 | wxPyProcess *result; | |
11843 | PyObject * obj0 = 0 ; | |
994141e6 | 11844 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11845 | char *kwnames[] = { |
11846 | (char *) "parent",(char *) "id", NULL | |
11847 | }; | |
11848 | ||
994141e6 | 11849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11850 | if (obj0) { |
093d3ff1 RD |
11851 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
11852 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 11853 | } |
994141e6 | 11854 | if (obj1) { |
093d3ff1 | 11855 | { |
32fe5131 | 11856 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
11857 | if (SWIG_arg_fail(2)) SWIG_fail; |
11858 | } | |
994141e6 | 11859 | } |
d14a1e28 RD |
11860 | { |
11861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11862 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
11863 | ||
11864 | wxPyEndAllowThreads(__tstate); | |
11865 | if (PyErr_Occurred()) SWIG_fail; | |
11866 | } | |
15afbcd0 | 11867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); |
d14a1e28 RD |
11868 | return resultobj; |
11869 | fail: | |
11870 | return NULL; | |
11871 | } | |
11872 | ||
11873 | ||
c32bde28 | 11874 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11875 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11876 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11877 | PyObject *arg2 = (PyObject *) 0 ; | |
11878 | PyObject *arg3 = (PyObject *) 0 ; | |
11879 | PyObject * obj0 = 0 ; | |
11880 | PyObject * obj1 = 0 ; | |
11881 | PyObject * obj2 = 0 ; | |
11882 | char *kwnames[] = { | |
11883 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
11884 | }; | |
11885 | ||
11886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11889 | arg2 = obj1; |
11890 | arg3 = obj2; | |
11891 | { | |
11892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11893 | (arg1)->_setCallbackInfo(arg2,arg3); | |
11894 | ||
11895 | wxPyEndAllowThreads(__tstate); | |
11896 | if (PyErr_Occurred()) SWIG_fail; | |
11897 | } | |
11898 | Py_INCREF(Py_None); resultobj = Py_None; | |
11899 | return resultobj; | |
11900 | fail: | |
11901 | return NULL; | |
11902 | } | |
11903 | ||
11904 | ||
c26d9ab4 | 11905 | static PyObject *_wrap_Process_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11906 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11907 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11908 | int arg2 ; | |
11909 | int arg3 ; | |
11910 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11911 | PyObject * obj1 = 0 ; |
11912 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11913 | char *kwnames[] = { |
11914 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
11915 | }; | |
11916 | ||
c26d9ab4 | 11917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11918 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11919 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11920 | { | |
32fe5131 | 11921 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
11922 | if (SWIG_arg_fail(2)) SWIG_fail; |
11923 | } | |
11924 | { | |
32fe5131 | 11925 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
11926 | if (SWIG_arg_fail(3)) SWIG_fail; |
11927 | } | |
d14a1e28 RD |
11928 | { |
11929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 11930 | (arg1)->OnTerminate(arg2,arg3); |
d14a1e28 RD |
11931 | |
11932 | wxPyEndAllowThreads(__tstate); | |
11933 | if (PyErr_Occurred()) SWIG_fail; | |
11934 | } | |
11935 | Py_INCREF(Py_None); resultobj = Py_None; | |
11936 | return resultobj; | |
11937 | fail: | |
11938 | return NULL; | |
11939 | } | |
11940 | ||
11941 | ||
c32bde28 | 11942 | static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11943 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11944 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11945 | PyObject * obj0 = 0 ; | |
11946 | char *kwnames[] = { | |
11947 | (char *) "self", NULL | |
11948 | }; | |
11949 | ||
11950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11951 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11952 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11953 | { |
11954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11955 | (arg1)->Redirect(); | |
11956 | ||
11957 | wxPyEndAllowThreads(__tstate); | |
11958 | if (PyErr_Occurred()) SWIG_fail; | |
11959 | } | |
11960 | Py_INCREF(Py_None); resultobj = Py_None; | |
11961 | return resultobj; | |
11962 | fail: | |
11963 | return NULL; | |
11964 | } | |
11965 | ||
11966 | ||
c32bde28 | 11967 | static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11968 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11969 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11970 | bool result; | |
11971 | PyObject * obj0 = 0 ; | |
11972 | char *kwnames[] = { | |
11973 | (char *) "self", NULL | |
11974 | }; | |
11975 | ||
11976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11979 | { |
11980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11981 | result = (bool)(arg1)->IsRedirected(); | |
11982 | ||
11983 | wxPyEndAllowThreads(__tstate); | |
11984 | if (PyErr_Occurred()) SWIG_fail; | |
11985 | } | |
4f89f6a3 RD |
11986 | { |
11987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11988 | } | |
d14a1e28 RD |
11989 | return resultobj; |
11990 | fail: | |
11991 | return NULL; | |
11992 | } | |
11993 | ||
11994 | ||
c32bde28 | 11995 | static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11996 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11997 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
11998 | PyObject * obj0 = 0 ; | |
11999 | char *kwnames[] = { | |
12000 | (char *) "self", NULL | |
12001 | }; | |
12002 | ||
12003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12006 | { |
12007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12008 | (arg1)->Detach(); | |
12009 | ||
12010 | wxPyEndAllowThreads(__tstate); | |
12011 | if (PyErr_Occurred()) SWIG_fail; | |
12012 | } | |
12013 | Py_INCREF(Py_None); resultobj = Py_None; | |
12014 | return resultobj; | |
12015 | fail: | |
12016 | return NULL; | |
12017 | } | |
12018 | ||
12019 | ||
c32bde28 | 12020 | static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12021 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12022 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
12023 | wxInputStream *result; | |
12024 | PyObject * obj0 = 0 ; | |
12025 | char *kwnames[] = { | |
12026 | (char *) "self", NULL | |
12027 | }; | |
12028 | ||
12029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12032 | { |
12033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12034 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
12035 | ||
12036 | wxPyEndAllowThreads(__tstate); | |
12037 | if (PyErr_Occurred()) SWIG_fail; | |
12038 | } | |
12039 | { | |
12040 | wxPyInputStream * _ptr = NULL; | |
12041 | ||
12042 | if (result) { | |
12043 | _ptr = new wxPyInputStream(result); | |
12044 | } | |
fc71d09b | 12045 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d14a1e28 RD |
12046 | } |
12047 | return resultobj; | |
12048 | fail: | |
12049 | return NULL; | |
12050 | } | |
12051 | ||
12052 | ||
c32bde28 | 12053 | static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12054 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12055 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
12056 | wxInputStream *result; | |
12057 | PyObject * obj0 = 0 ; | |
12058 | char *kwnames[] = { | |
12059 | (char *) "self", NULL | |
12060 | }; | |
12061 | ||
12062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12063 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12064 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12065 | { |
12066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12067 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
12068 | ||
12069 | wxPyEndAllowThreads(__tstate); | |
12070 | if (PyErr_Occurred()) SWIG_fail; | |
12071 | } | |
12072 | { | |
12073 | wxPyInputStream * _ptr = NULL; | |
12074 | ||
12075 | if (result) { | |
12076 | _ptr = new wxPyInputStream(result); | |
12077 | } | |
fc71d09b | 12078 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d14a1e28 RD |
12079 | } |
12080 | return resultobj; | |
12081 | fail: | |
12082 | return NULL; | |
12083 | } | |
12084 | ||
12085 | ||
c32bde28 | 12086 | static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12087 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12088 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
12089 | wxOutputStream *result; | |
12090 | PyObject * obj0 = 0 ; | |
12091 | char *kwnames[] = { | |
12092 | (char *) "self", NULL | |
12093 | }; | |
12094 | ||
12095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12096 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12097 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12098 | { |
12099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12100 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
12101 | ||
12102 | wxPyEndAllowThreads(__tstate); | |
12103 | if (PyErr_Occurred()) SWIG_fail; | |
12104 | } | |
15afbcd0 | 12105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); |
d14a1e28 RD |
12106 | return resultobj; |
12107 | fail: | |
12108 | return NULL; | |
12109 | } | |
12110 | ||
12111 | ||
c32bde28 | 12112 | static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12113 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12114 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
12115 | PyObject * obj0 = 0 ; | |
12116 | char *kwnames[] = { | |
12117 | (char *) "self", NULL | |
12118 | }; | |
12119 | ||
12120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12121 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12123 | { |
12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12125 | (arg1)->CloseOutput(); | |
12126 | ||
12127 | wxPyEndAllowThreads(__tstate); | |
12128 | if (PyErr_Occurred()) SWIG_fail; | |
12129 | } | |
12130 | Py_INCREF(Py_None); resultobj = Py_None; | |
12131 | return resultobj; | |
12132 | fail: | |
12133 | return NULL; | |
12134 | } | |
12135 | ||
12136 | ||
c32bde28 | 12137 | static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12138 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12139 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
12140 | bool result; | |
12141 | PyObject * obj0 = 0 ; | |
12142 | char *kwnames[] = { | |
12143 | (char *) "self", NULL | |
12144 | }; | |
12145 | ||
12146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12149 | { |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
4f89f6a3 RD |
12156 | { |
12157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12158 | } | |
d14a1e28 RD |
12159 | return resultobj; |
12160 | fail: | |
12161 | return NULL; | |
12162 | } | |
12163 | ||
12164 | ||
c32bde28 | 12165 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12166 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12167 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
12168 | bool result; | |
12169 | PyObject * obj0 = 0 ; | |
12170 | char *kwnames[] = { | |
12171 | (char *) "self", NULL | |
12172 | }; | |
12173 | ||
12174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12177 | { |
12178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12179 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
12180 | ||
12181 | wxPyEndAllowThreads(__tstate); | |
12182 | if (PyErr_Occurred()) SWIG_fail; | |
12183 | } | |
4f89f6a3 RD |
12184 | { |
12185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12186 | } | |
d14a1e28 RD |
12187 | return resultobj; |
12188 | fail: | |
12189 | return NULL; | |
12190 | } | |
12191 | ||
12192 | ||
c32bde28 | 12193 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12194 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12195 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; |
12196 | bool result; | |
12197 | PyObject * obj0 = 0 ; | |
12198 | char *kwnames[] = { | |
12199 | (char *) "self", NULL | |
12200 | }; | |
12201 | ||
12202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12203 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12204 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12205 | { |
12206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12207 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
12208 | ||
12209 | wxPyEndAllowThreads(__tstate); | |
12210 | if (PyErr_Occurred()) SWIG_fail; | |
12211 | } | |
4f89f6a3 RD |
12212 | { |
12213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12214 | } | |
d14a1e28 RD |
12215 | return resultobj; |
12216 | fail: | |
12217 | return NULL; | |
12218 | } | |
12219 | ||
12220 | ||
c32bde28 | 12221 | static PyObject * Process_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12222 | PyObject *obj; |
12223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12224 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
12225 | Py_INCREF(obj); | |
12226 | return Py_BuildValue((char *)""); | |
12227 | } | |
c32bde28 | 12228 | static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12229 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12230 | int arg1 = (int) 0 ; |
12231 | int arg2 = (int) 0 ; | |
12232 | int arg3 = (int) 0 ; | |
12233 | wxProcessEvent *result; | |
994141e6 RD |
12234 | PyObject * obj0 = 0 ; |
12235 | PyObject * obj1 = 0 ; | |
12236 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12237 | char *kwnames[] = { |
12238 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
12239 | }; | |
12240 | ||
994141e6 RD |
12241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12242 | if (obj0) { | |
093d3ff1 | 12243 | { |
32fe5131 | 12244 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
12245 | if (SWIG_arg_fail(1)) SWIG_fail; |
12246 | } | |
994141e6 RD |
12247 | } |
12248 | if (obj1) { | |
093d3ff1 | 12249 | { |
32fe5131 | 12250 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12251 | if (SWIG_arg_fail(2)) SWIG_fail; |
12252 | } | |
994141e6 RD |
12253 | } |
12254 | if (obj2) { | |
093d3ff1 | 12255 | { |
32fe5131 | 12256 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12257 | if (SWIG_arg_fail(3)) SWIG_fail; |
12258 | } | |
994141e6 | 12259 | } |
d14a1e28 RD |
12260 | { |
12261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12262 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
12263 | ||
12264 | wxPyEndAllowThreads(__tstate); | |
12265 | if (PyErr_Occurred()) SWIG_fail; | |
12266 | } | |
15afbcd0 | 12267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); |
d14a1e28 RD |
12268 | return resultobj; |
12269 | fail: | |
12270 | return NULL; | |
12271 | } | |
12272 | ||
12273 | ||
c32bde28 | 12274 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12275 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12276 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12277 | int result; | |
12278 | PyObject * obj0 = 0 ; | |
12279 | char *kwnames[] = { | |
12280 | (char *) "self", NULL | |
12281 | }; | |
12282 | ||
12283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12286 | { |
12287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12288 | result = (int)(arg1)->GetPid(); | |
12289 | ||
12290 | wxPyEndAllowThreads(__tstate); | |
12291 | if (PyErr_Occurred()) SWIG_fail; | |
12292 | } | |
093d3ff1 | 12293 | { |
32fe5131 | 12294 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12295 | } |
d14a1e28 RD |
12296 | return resultobj; |
12297 | fail: | |
12298 | return NULL; | |
12299 | } | |
12300 | ||
12301 | ||
c32bde28 | 12302 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12303 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12304 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12305 | int result; | |
12306 | PyObject * obj0 = 0 ; | |
12307 | char *kwnames[] = { | |
12308 | (char *) "self", NULL | |
12309 | }; | |
12310 | ||
12311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12314 | { |
12315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12316 | result = (int)(arg1)->GetExitCode(); | |
12317 | ||
12318 | wxPyEndAllowThreads(__tstate); | |
12319 | if (PyErr_Occurred()) SWIG_fail; | |
12320 | } | |
093d3ff1 | 12321 | { |
32fe5131 | 12322 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12323 | } |
d14a1e28 RD |
12324 | return resultobj; |
12325 | fail: | |
12326 | return NULL; | |
12327 | } | |
12328 | ||
12329 | ||
c32bde28 | 12330 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12331 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12332 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12333 | int arg2 ; | |
12334 | PyObject * obj0 = 0 ; | |
994141e6 | 12335 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12336 | char *kwnames[] = { |
12337 | (char *) "self",(char *) "m_pid", NULL | |
12338 | }; | |
12339 | ||
994141e6 | 12340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12343 | { | |
32fe5131 | 12344 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12345 | if (SWIG_arg_fail(2)) SWIG_fail; |
12346 | } | |
d14a1e28 RD |
12347 | if (arg1) (arg1)->m_pid = arg2; |
12348 | ||
12349 | Py_INCREF(Py_None); resultobj = Py_None; | |
12350 | return resultobj; | |
12351 | fail: | |
12352 | return NULL; | |
12353 | } | |
12354 | ||
12355 | ||
c32bde28 | 12356 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12357 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12358 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12359 | int result; | |
12360 | PyObject * obj0 = 0 ; | |
12361 | char *kwnames[] = { | |
12362 | (char *) "self", NULL | |
12363 | }; | |
12364 | ||
12365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12366 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12367 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12368 | result = (int) ((arg1)->m_pid); |
12369 | ||
093d3ff1 | 12370 | { |
32fe5131 | 12371 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12372 | } |
d14a1e28 RD |
12373 | return resultobj; |
12374 | fail: | |
12375 | return NULL; | |
12376 | } | |
12377 | ||
12378 | ||
c32bde28 | 12379 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12380 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12381 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12382 | int arg2 ; | |
12383 | PyObject * obj0 = 0 ; | |
994141e6 | 12384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12385 | char *kwnames[] = { |
12386 | (char *) "self",(char *) "m_exitcode", NULL | |
12387 | }; | |
12388 | ||
994141e6 | 12389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12392 | { | |
32fe5131 | 12393 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12394 | if (SWIG_arg_fail(2)) SWIG_fail; |
12395 | } | |
d14a1e28 RD |
12396 | if (arg1) (arg1)->m_exitcode = arg2; |
12397 | ||
12398 | Py_INCREF(Py_None); resultobj = Py_None; | |
12399 | return resultobj; | |
12400 | fail: | |
12401 | return NULL; | |
12402 | } | |
12403 | ||
12404 | ||
c32bde28 | 12405 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12406 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12407 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; |
12408 | int result; | |
12409 | PyObject * obj0 = 0 ; | |
12410 | char *kwnames[] = { | |
12411 | (char *) "self", NULL | |
12412 | }; | |
12413 | ||
12414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
12416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12417 | result = (int) ((arg1)->m_exitcode); |
12418 | ||
093d3ff1 | 12419 | { |
32fe5131 | 12420 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12421 | } |
d14a1e28 RD |
12422 | return resultobj; |
12423 | fail: | |
12424 | return NULL; | |
12425 | } | |
12426 | ||
12427 | ||
c32bde28 | 12428 | static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12429 | PyObject *obj; |
12430 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12431 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
12432 | Py_INCREF(obj); | |
12433 | return Py_BuildValue((char *)""); | |
12434 | } | |
c32bde28 | 12435 | static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12436 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12437 | wxString *arg1 = 0 ; |
12438 | int arg2 = (int) wxEXEC_ASYNC ; | |
12439 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
12440 | long result; | |
ae8162c8 | 12441 | bool temp1 = false ; |
d14a1e28 | 12442 | PyObject * obj0 = 0 ; |
994141e6 | 12443 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12444 | PyObject * obj2 = 0 ; |
12445 | char *kwnames[] = { | |
12446 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
12447 | }; | |
12448 | ||
994141e6 | 12449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
12450 | { |
12451 | arg1 = wxString_in_helper(obj0); | |
12452 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 12453 | temp1 = true; |
d14a1e28 | 12454 | } |
994141e6 | 12455 | if (obj1) { |
093d3ff1 | 12456 | { |
32fe5131 | 12457 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12458 | if (SWIG_arg_fail(2)) SWIG_fail; |
12459 | } | |
994141e6 | 12460 | } |
d14a1e28 | 12461 | if (obj2) { |
093d3ff1 RD |
12462 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
12463 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
12464 | } |
12465 | { | |
e3b71cb8 | 12466 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12468 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
12469 | ||
12470 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12471 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12472 | } |
093d3ff1 | 12473 | { |
32fe5131 | 12474 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 12475 | } |
d14a1e28 RD |
12476 | { |
12477 | if (temp1) | |
12478 | delete arg1; | |
12479 | } | |
12480 | return resultobj; | |
12481 | fail: | |
12482 | { | |
12483 | if (temp1) | |
12484 | delete arg1; | |
12485 | } | |
12486 | return NULL; | |
12487 | } | |
12488 | ||
12489 | ||
1823fbb4 | 12490 | static PyObject *_wrap_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12491 | PyObject *resultobj = NULL; |
1823fbb4 | 12492 | long arg1 ; |
093d3ff1 | 12493 | wxSignal arg2 = (wxSignal) wxSIGTERM ; |
1823fbb4 RD |
12494 | wxKillError *arg3 = (wxKillError *) 0 ; |
12495 | int arg4 = (int) wxKILL_NOCHILDREN ; | |
12496 | int result; | |
12497 | wxKillError temp3 ; | |
12498 | PyObject * obj0 = 0 ; | |
12499 | PyObject * obj1 = 0 ; | |
12500 | PyObject * obj2 = 0 ; | |
12501 | char *kwnames[] = { | |
12502 | (char *) "pid",(char *) "sig",(char *) "flags", NULL | |
12503 | }; | |
12504 | ||
12505 | { | |
12506 | arg3 = &temp3; | |
12507 | } | |
12508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 | 12509 | { |
32fe5131 | 12510 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
12511 | if (SWIG_arg_fail(1)) SWIG_fail; |
12512 | } | |
1823fbb4 | 12513 | if (obj1) { |
093d3ff1 | 12514 | { |
32fe5131 | 12515 | arg2 = static_cast<wxSignal >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12516 | if (SWIG_arg_fail(2)) SWIG_fail; |
12517 | } | |
1823fbb4 RD |
12518 | } |
12519 | if (obj2) { | |
093d3ff1 | 12520 | { |
32fe5131 | 12521 | arg4 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12522 | if (SWIG_arg_fail(4)) SWIG_fail; |
12523 | } | |
1823fbb4 RD |
12524 | } |
12525 | { | |
12526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 12527 | result = (int)wxKill(arg1,arg2,arg3,arg4); |
1823fbb4 RD |
12528 | |
12529 | wxPyEndAllowThreads(__tstate); | |
12530 | if (PyErr_Occurred()) SWIG_fail; | |
12531 | } | |
093d3ff1 | 12532 | { |
32fe5131 | 12533 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12534 | } |
1823fbb4 RD |
12535 | { |
12536 | PyObject* o; | |
12537 | o = PyInt_FromLong((long) (*arg3)); | |
7e08d4ef | 12538 | |
1823fbb4 | 12539 | resultobj = t_output_helper(resultobj, o); |
7e08d4ef RD |
12540 | |
12541 | ||
12542 | ||
1823fbb4 RD |
12543 | } |
12544 | return resultobj; | |
12545 | fail: | |
12546 | return NULL; | |
12547 | } | |
12548 | ||
12549 | ||
c32bde28 | 12550 | static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12551 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12552 | int arg1 = (int) wxJOYSTICK1 ; |
12553 | wxJoystick *result; | |
994141e6 | 12554 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
12555 | char *kwnames[] = { |
12556 | (char *) "joystick", NULL | |
12557 | }; | |
12558 | ||
994141e6 RD |
12559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; |
12560 | if (obj0) { | |
093d3ff1 | 12561 | { |
32fe5131 | 12562 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
12563 | if (SWIG_arg_fail(1)) SWIG_fail; |
12564 | } | |
994141e6 | 12565 | } |
d14a1e28 | 12566 | { |
e3b71cb8 | 12567 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12569 | result = (wxJoystick *)new wxJoystick(arg1); | |
12570 | ||
12571 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12572 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12573 | } |
15afbcd0 | 12574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); |
d14a1e28 RD |
12575 | return resultobj; |
12576 | fail: | |
12577 | return NULL; | |
12578 | } | |
12579 | ||
12580 | ||
c32bde28 | 12581 | static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12582 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12583 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12584 | PyObject * obj0 = 0 ; | |
12585 | char *kwnames[] = { | |
12586 | (char *) "self", NULL | |
12587 | }; | |
12588 | ||
12589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12592 | { |
12593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12594 | delete arg1; | |
12595 | ||
12596 | wxPyEndAllowThreads(__tstate); | |
12597 | if (PyErr_Occurred()) SWIG_fail; | |
12598 | } | |
12599 | Py_INCREF(Py_None); resultobj = Py_None; | |
12600 | return resultobj; | |
12601 | fail: | |
12602 | return NULL; | |
12603 | } | |
12604 | ||
12605 | ||
c32bde28 | 12606 | static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12607 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12608 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12609 | wxPoint result; | |
12610 | PyObject * obj0 = 0 ; | |
12611 | char *kwnames[] = { | |
12612 | (char *) "self", NULL | |
12613 | }; | |
12614 | ||
12615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12616 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12618 | { |
12619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12620 | result = (arg1)->GetPosition(); | |
12621 | ||
12622 | wxPyEndAllowThreads(__tstate); | |
12623 | if (PyErr_Occurred()) SWIG_fail; | |
12624 | } | |
12625 | { | |
12626 | wxPoint * resultptr; | |
32fe5131 | 12627 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
15afbcd0 | 12628 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
12629 | } |
12630 | return resultobj; | |
12631 | fail: | |
12632 | return NULL; | |
12633 | } | |
12634 | ||
12635 | ||
c32bde28 | 12636 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12637 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12638 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12639 | int result; | |
12640 | PyObject * obj0 = 0 ; | |
12641 | char *kwnames[] = { | |
12642 | (char *) "self", NULL | |
12643 | }; | |
12644 | ||
12645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12648 | { |
12649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12650 | result = (int)(arg1)->GetZPosition(); | |
12651 | ||
12652 | wxPyEndAllowThreads(__tstate); | |
12653 | if (PyErr_Occurred()) SWIG_fail; | |
12654 | } | |
093d3ff1 | 12655 | { |
32fe5131 | 12656 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12657 | } |
d14a1e28 RD |
12658 | return resultobj; |
12659 | fail: | |
12660 | return NULL; | |
12661 | } | |
12662 | ||
12663 | ||
c32bde28 | 12664 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12665 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12666 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12667 | int result; | |
12668 | PyObject * obj0 = 0 ; | |
12669 | char *kwnames[] = { | |
12670 | (char *) "self", NULL | |
12671 | }; | |
12672 | ||
12673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12676 | { |
12677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12678 | result = (int)(arg1)->GetButtonState(); | |
12679 | ||
12680 | wxPyEndAllowThreads(__tstate); | |
12681 | if (PyErr_Occurred()) SWIG_fail; | |
12682 | } | |
093d3ff1 | 12683 | { |
32fe5131 | 12684 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12685 | } |
d14a1e28 RD |
12686 | return resultobj; |
12687 | fail: | |
12688 | return NULL; | |
12689 | } | |
12690 | ||
12691 | ||
c32bde28 | 12692 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12693 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12694 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12695 | int result; | |
12696 | PyObject * obj0 = 0 ; | |
12697 | char *kwnames[] = { | |
12698 | (char *) "self", NULL | |
12699 | }; | |
12700 | ||
12701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12704 | { |
12705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12706 | result = (int)(arg1)->GetPOVPosition(); | |
12707 | ||
12708 | wxPyEndAllowThreads(__tstate); | |
12709 | if (PyErr_Occurred()) SWIG_fail; | |
12710 | } | |
093d3ff1 | 12711 | { |
32fe5131 | 12712 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12713 | } |
d14a1e28 RD |
12714 | return resultobj; |
12715 | fail: | |
12716 | return NULL; | |
12717 | } | |
12718 | ||
12719 | ||
c32bde28 | 12720 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12721 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12722 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12723 | int result; | |
12724 | PyObject * obj0 = 0 ; | |
12725 | char *kwnames[] = { | |
12726 | (char *) "self", NULL | |
12727 | }; | |
12728 | ||
12729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12730 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12731 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12732 | { |
12733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12734 | result = (int)(arg1)->GetPOVCTSPosition(); | |
12735 | ||
12736 | wxPyEndAllowThreads(__tstate); | |
12737 | if (PyErr_Occurred()) SWIG_fail; | |
12738 | } | |
093d3ff1 | 12739 | { |
32fe5131 | 12740 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12741 | } |
d14a1e28 RD |
12742 | return resultobj; |
12743 | fail: | |
12744 | return NULL; | |
12745 | } | |
12746 | ||
12747 | ||
c32bde28 | 12748 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12749 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12750 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12751 | int result; | |
12752 | PyObject * obj0 = 0 ; | |
12753 | char *kwnames[] = { | |
12754 | (char *) "self", NULL | |
12755 | }; | |
12756 | ||
12757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12758 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12759 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12760 | { |
12761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12762 | result = (int)(arg1)->GetRudderPosition(); | |
12763 | ||
12764 | wxPyEndAllowThreads(__tstate); | |
12765 | if (PyErr_Occurred()) SWIG_fail; | |
12766 | } | |
093d3ff1 | 12767 | { |
32fe5131 | 12768 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12769 | } |
d14a1e28 RD |
12770 | return resultobj; |
12771 | fail: | |
12772 | return NULL; | |
12773 | } | |
12774 | ||
12775 | ||
c32bde28 | 12776 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12777 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12778 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12779 | int result; | |
12780 | PyObject * obj0 = 0 ; | |
12781 | char *kwnames[] = { | |
12782 | (char *) "self", NULL | |
12783 | }; | |
12784 | ||
12785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12788 | { |
12789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12790 | result = (int)(arg1)->GetUPosition(); | |
12791 | ||
12792 | wxPyEndAllowThreads(__tstate); | |
12793 | if (PyErr_Occurred()) SWIG_fail; | |
12794 | } | |
093d3ff1 | 12795 | { |
32fe5131 | 12796 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12797 | } |
d14a1e28 RD |
12798 | return resultobj; |
12799 | fail: | |
12800 | return NULL; | |
12801 | } | |
12802 | ||
12803 | ||
c32bde28 | 12804 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12805 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12806 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12807 | int result; | |
12808 | PyObject * obj0 = 0 ; | |
12809 | char *kwnames[] = { | |
12810 | (char *) "self", NULL | |
12811 | }; | |
12812 | ||
12813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12816 | { |
12817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12818 | result = (int)(arg1)->GetVPosition(); | |
12819 | ||
12820 | wxPyEndAllowThreads(__tstate); | |
12821 | if (PyErr_Occurred()) SWIG_fail; | |
12822 | } | |
093d3ff1 | 12823 | { |
32fe5131 | 12824 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12825 | } |
d14a1e28 RD |
12826 | return resultobj; |
12827 | fail: | |
12828 | return NULL; | |
12829 | } | |
12830 | ||
12831 | ||
c32bde28 | 12832 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12833 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12834 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12835 | int result; | |
12836 | PyObject * obj0 = 0 ; | |
12837 | char *kwnames[] = { | |
12838 | (char *) "self", NULL | |
12839 | }; | |
12840 | ||
12841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12844 | { |
12845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12846 | result = (int)(arg1)->GetMovementThreshold(); | |
12847 | ||
12848 | wxPyEndAllowThreads(__tstate); | |
12849 | if (PyErr_Occurred()) SWIG_fail; | |
12850 | } | |
093d3ff1 | 12851 | { |
32fe5131 | 12852 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12853 | } |
d14a1e28 RD |
12854 | return resultobj; |
12855 | fail: | |
12856 | return NULL; | |
12857 | } | |
12858 | ||
12859 | ||
c32bde28 | 12860 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12861 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12862 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12863 | int arg2 ; | |
12864 | PyObject * obj0 = 0 ; | |
994141e6 | 12865 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12866 | char *kwnames[] = { |
12867 | (char *) "self",(char *) "threshold", NULL | |
12868 | }; | |
12869 | ||
994141e6 | 12870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12871 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12872 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12873 | { | |
32fe5131 | 12874 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12875 | if (SWIG_arg_fail(2)) SWIG_fail; |
12876 | } | |
d14a1e28 RD |
12877 | { |
12878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12879 | (arg1)->SetMovementThreshold(arg2); | |
12880 | ||
12881 | wxPyEndAllowThreads(__tstate); | |
12882 | if (PyErr_Occurred()) SWIG_fail; | |
12883 | } | |
12884 | Py_INCREF(Py_None); resultobj = Py_None; | |
12885 | return resultobj; | |
12886 | fail: | |
12887 | return NULL; | |
12888 | } | |
12889 | ||
12890 | ||
c32bde28 | 12891 | static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12892 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12893 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12894 | bool result; | |
12895 | PyObject * obj0 = 0 ; | |
12896 | char *kwnames[] = { | |
12897 | (char *) "self", NULL | |
12898 | }; | |
12899 | ||
12900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12901 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12902 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12903 | { |
12904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12905 | result = (bool)(arg1)->IsOk(); | |
12906 | ||
12907 | wxPyEndAllowThreads(__tstate); | |
12908 | if (PyErr_Occurred()) SWIG_fail; | |
12909 | } | |
4f89f6a3 RD |
12910 | { |
12911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12912 | } | |
d14a1e28 RD |
12913 | return resultobj; |
12914 | fail: | |
12915 | return NULL; | |
12916 | } | |
12917 | ||
12918 | ||
c32bde28 | 12919 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12920 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12921 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12922 | int result; | |
12923 | PyObject * obj0 = 0 ; | |
12924 | char *kwnames[] = { | |
12925 | (char *) "self", NULL | |
12926 | }; | |
12927 | ||
12928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12931 | { |
12932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12933 | result = (int)(arg1)->GetNumberJoysticks(); | |
12934 | ||
12935 | wxPyEndAllowThreads(__tstate); | |
12936 | if (PyErr_Occurred()) SWIG_fail; | |
12937 | } | |
093d3ff1 | 12938 | { |
32fe5131 | 12939 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12940 | } |
d14a1e28 RD |
12941 | return resultobj; |
12942 | fail: | |
12943 | return NULL; | |
12944 | } | |
12945 | ||
12946 | ||
c32bde28 | 12947 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12948 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12949 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12950 | int result; | |
12951 | PyObject * obj0 = 0 ; | |
12952 | char *kwnames[] = { | |
12953 | (char *) "self", NULL | |
12954 | }; | |
12955 | ||
12956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12959 | { |
12960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12961 | result = (int)(arg1)->GetManufacturerId(); | |
12962 | ||
12963 | wxPyEndAllowThreads(__tstate); | |
12964 | if (PyErr_Occurred()) SWIG_fail; | |
12965 | } | |
093d3ff1 | 12966 | { |
32fe5131 | 12967 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12968 | } |
d14a1e28 RD |
12969 | return resultobj; |
12970 | fail: | |
12971 | return NULL; | |
12972 | } | |
12973 | ||
12974 | ||
c32bde28 | 12975 | static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12976 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12977 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
12978 | int result; | |
12979 | PyObject * obj0 = 0 ; | |
12980 | char *kwnames[] = { | |
12981 | (char *) "self", NULL | |
12982 | }; | |
12983 | ||
12984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12987 | { |
12988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12989 | result = (int)(arg1)->GetProductId(); | |
12990 | ||
12991 | wxPyEndAllowThreads(__tstate); | |
12992 | if (PyErr_Occurred()) SWIG_fail; | |
12993 | } | |
093d3ff1 | 12994 | { |
32fe5131 | 12995 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12996 | } |
d14a1e28 RD |
12997 | return resultobj; |
12998 | fail: | |
12999 | return NULL; | |
13000 | } | |
13001 | ||
13002 | ||
c32bde28 | 13003 | static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13004 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13005 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13006 | wxString result; | |
13007 | PyObject * obj0 = 0 ; | |
13008 | char *kwnames[] = { | |
13009 | (char *) "self", NULL | |
13010 | }; | |
13011 | ||
13012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13015 | { |
13016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13017 | result = (arg1)->GetProductName(); | |
13018 | ||
13019 | wxPyEndAllowThreads(__tstate); | |
13020 | if (PyErr_Occurred()) SWIG_fail; | |
13021 | } | |
13022 | { | |
13023 | #if wxUSE_UNICODE | |
13024 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13025 | #else | |
13026 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13027 | #endif | |
13028 | } | |
13029 | return resultobj; | |
13030 | fail: | |
13031 | return NULL; | |
13032 | } | |
13033 | ||
13034 | ||
c32bde28 | 13035 | static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13036 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13037 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13038 | int result; | |
13039 | PyObject * obj0 = 0 ; | |
13040 | char *kwnames[] = { | |
13041 | (char *) "self", NULL | |
13042 | }; | |
13043 | ||
13044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13047 | { |
13048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13049 | result = (int)(arg1)->GetXMin(); | |
13050 | ||
13051 | wxPyEndAllowThreads(__tstate); | |
13052 | if (PyErr_Occurred()) SWIG_fail; | |
13053 | } | |
093d3ff1 | 13054 | { |
32fe5131 | 13055 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13056 | } |
d14a1e28 RD |
13057 | return resultobj; |
13058 | fail: | |
13059 | return NULL; | |
13060 | } | |
13061 | ||
13062 | ||
c32bde28 | 13063 | static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13064 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13065 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13066 | int result; | |
13067 | PyObject * obj0 = 0 ; | |
13068 | char *kwnames[] = { | |
13069 | (char *) "self", NULL | |
13070 | }; | |
13071 | ||
13072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13073 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13074 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13075 | { |
13076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13077 | result = (int)(arg1)->GetYMin(); | |
13078 | ||
13079 | wxPyEndAllowThreads(__tstate); | |
13080 | if (PyErr_Occurred()) SWIG_fail; | |
13081 | } | |
093d3ff1 | 13082 | { |
32fe5131 | 13083 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13084 | } |
d14a1e28 RD |
13085 | return resultobj; |
13086 | fail: | |
13087 | return NULL; | |
13088 | } | |
13089 | ||
13090 | ||
c32bde28 | 13091 | static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13092 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13093 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13094 | int result; | |
13095 | PyObject * obj0 = 0 ; | |
13096 | char *kwnames[] = { | |
13097 | (char *) "self", NULL | |
13098 | }; | |
13099 | ||
13100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13101 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13102 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13103 | { |
13104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13105 | result = (int)(arg1)->GetZMin(); | |
13106 | ||
13107 | wxPyEndAllowThreads(__tstate); | |
13108 | if (PyErr_Occurred()) SWIG_fail; | |
13109 | } | |
093d3ff1 | 13110 | { |
32fe5131 | 13111 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13112 | } |
d14a1e28 RD |
13113 | return resultobj; |
13114 | fail: | |
13115 | return NULL; | |
13116 | } | |
13117 | ||
13118 | ||
c32bde28 | 13119 | static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13120 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13121 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13122 | int result; | |
13123 | PyObject * obj0 = 0 ; | |
13124 | char *kwnames[] = { | |
13125 | (char *) "self", NULL | |
13126 | }; | |
13127 | ||
13128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13129 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13131 | { |
13132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13133 | result = (int)(arg1)->GetXMax(); | |
13134 | ||
13135 | wxPyEndAllowThreads(__tstate); | |
13136 | if (PyErr_Occurred()) SWIG_fail; | |
13137 | } | |
093d3ff1 | 13138 | { |
32fe5131 | 13139 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13140 | } |
d14a1e28 RD |
13141 | return resultobj; |
13142 | fail: | |
13143 | return NULL; | |
13144 | } | |
13145 | ||
13146 | ||
c32bde28 | 13147 | static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13148 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13149 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13150 | int result; | |
13151 | PyObject * obj0 = 0 ; | |
13152 | char *kwnames[] = { | |
13153 | (char *) "self", NULL | |
13154 | }; | |
13155 | ||
13156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13159 | { |
13160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13161 | result = (int)(arg1)->GetYMax(); | |
13162 | ||
13163 | wxPyEndAllowThreads(__tstate); | |
13164 | if (PyErr_Occurred()) SWIG_fail; | |
13165 | } | |
093d3ff1 | 13166 | { |
32fe5131 | 13167 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13168 | } |
d14a1e28 RD |
13169 | return resultobj; |
13170 | fail: | |
13171 | return NULL; | |
13172 | } | |
13173 | ||
13174 | ||
c32bde28 | 13175 | static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13176 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13177 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13178 | int result; | |
13179 | PyObject * obj0 = 0 ; | |
13180 | char *kwnames[] = { | |
13181 | (char *) "self", NULL | |
13182 | }; | |
13183 | ||
13184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13187 | { |
13188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13189 | result = (int)(arg1)->GetZMax(); | |
13190 | ||
13191 | wxPyEndAllowThreads(__tstate); | |
13192 | if (PyErr_Occurred()) SWIG_fail; | |
13193 | } | |
093d3ff1 | 13194 | { |
32fe5131 | 13195 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13196 | } |
d14a1e28 RD |
13197 | return resultobj; |
13198 | fail: | |
13199 | return NULL; | |
13200 | } | |
13201 | ||
13202 | ||
c32bde28 | 13203 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13204 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13205 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13206 | int result; | |
13207 | PyObject * obj0 = 0 ; | |
13208 | char *kwnames[] = { | |
13209 | (char *) "self", NULL | |
13210 | }; | |
13211 | ||
13212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13215 | { |
13216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13217 | result = (int)(arg1)->GetNumberButtons(); | |
13218 | ||
13219 | wxPyEndAllowThreads(__tstate); | |
13220 | if (PyErr_Occurred()) SWIG_fail; | |
13221 | } | |
093d3ff1 | 13222 | { |
32fe5131 | 13223 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13224 | } |
d14a1e28 RD |
13225 | return resultobj; |
13226 | fail: | |
13227 | return NULL; | |
13228 | } | |
13229 | ||
13230 | ||
c32bde28 | 13231 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13232 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13233 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13234 | int result; | |
13235 | PyObject * obj0 = 0 ; | |
13236 | char *kwnames[] = { | |
13237 | (char *) "self", NULL | |
13238 | }; | |
13239 | ||
13240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13241 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13242 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13243 | { |
13244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13245 | result = (int)(arg1)->GetNumberAxes(); | |
13246 | ||
13247 | wxPyEndAllowThreads(__tstate); | |
13248 | if (PyErr_Occurred()) SWIG_fail; | |
13249 | } | |
093d3ff1 | 13250 | { |
32fe5131 | 13251 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13252 | } |
d14a1e28 RD |
13253 | return resultobj; |
13254 | fail: | |
13255 | return NULL; | |
13256 | } | |
13257 | ||
13258 | ||
c32bde28 | 13259 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13260 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13261 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13262 | int result; | |
13263 | PyObject * obj0 = 0 ; | |
13264 | char *kwnames[] = { | |
13265 | (char *) "self", NULL | |
13266 | }; | |
13267 | ||
13268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13271 | { |
13272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13273 | result = (int)(arg1)->GetMaxButtons(); | |
13274 | ||
13275 | wxPyEndAllowThreads(__tstate); | |
13276 | if (PyErr_Occurred()) SWIG_fail; | |
13277 | } | |
093d3ff1 | 13278 | { |
32fe5131 | 13279 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13280 | } |
d14a1e28 RD |
13281 | return resultobj; |
13282 | fail: | |
13283 | return NULL; | |
13284 | } | |
13285 | ||
13286 | ||
c32bde28 | 13287 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13288 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13289 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13290 | int result; | |
13291 | PyObject * obj0 = 0 ; | |
13292 | char *kwnames[] = { | |
13293 | (char *) "self", NULL | |
13294 | }; | |
13295 | ||
13296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13297 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13299 | { |
13300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13301 | result = (int)(arg1)->GetMaxAxes(); | |
13302 | ||
13303 | wxPyEndAllowThreads(__tstate); | |
13304 | if (PyErr_Occurred()) SWIG_fail; | |
13305 | } | |
093d3ff1 | 13306 | { |
32fe5131 | 13307 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13308 | } |
d14a1e28 RD |
13309 | return resultobj; |
13310 | fail: | |
13311 | return NULL; | |
13312 | } | |
13313 | ||
13314 | ||
c32bde28 | 13315 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13316 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13317 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13318 | int result; | |
13319 | PyObject * obj0 = 0 ; | |
13320 | char *kwnames[] = { | |
13321 | (char *) "self", NULL | |
13322 | }; | |
13323 | ||
13324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13325 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13327 | { |
13328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13329 | result = (int)(arg1)->GetPollingMin(); | |
13330 | ||
13331 | wxPyEndAllowThreads(__tstate); | |
13332 | if (PyErr_Occurred()) SWIG_fail; | |
13333 | } | |
093d3ff1 | 13334 | { |
32fe5131 | 13335 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13336 | } |
d14a1e28 RD |
13337 | return resultobj; |
13338 | fail: | |
13339 | return NULL; | |
13340 | } | |
13341 | ||
13342 | ||
c32bde28 | 13343 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13344 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13345 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13346 | int result; | |
13347 | PyObject * obj0 = 0 ; | |
13348 | char *kwnames[] = { | |
13349 | (char *) "self", NULL | |
13350 | }; | |
13351 | ||
13352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13355 | { |
13356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13357 | result = (int)(arg1)->GetPollingMax(); | |
13358 | ||
13359 | wxPyEndAllowThreads(__tstate); | |
13360 | if (PyErr_Occurred()) SWIG_fail; | |
13361 | } | |
093d3ff1 | 13362 | { |
32fe5131 | 13363 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13364 | } |
d14a1e28 RD |
13365 | return resultobj; |
13366 | fail: | |
13367 | return NULL; | |
13368 | } | |
13369 | ||
13370 | ||
c32bde28 | 13371 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13372 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13373 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13374 | int result; | |
13375 | PyObject * obj0 = 0 ; | |
13376 | char *kwnames[] = { | |
13377 | (char *) "self", NULL | |
13378 | }; | |
13379 | ||
13380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13383 | { |
13384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13385 | result = (int)(arg1)->GetRudderMin(); | |
13386 | ||
13387 | wxPyEndAllowThreads(__tstate); | |
13388 | if (PyErr_Occurred()) SWIG_fail; | |
13389 | } | |
093d3ff1 | 13390 | { |
32fe5131 | 13391 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13392 | } |
d14a1e28 RD |
13393 | return resultobj; |
13394 | fail: | |
13395 | return NULL; | |
13396 | } | |
13397 | ||
13398 | ||
c32bde28 | 13399 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13400 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13401 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13402 | int result; | |
13403 | PyObject * obj0 = 0 ; | |
13404 | char *kwnames[] = { | |
13405 | (char *) "self", NULL | |
13406 | }; | |
13407 | ||
13408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13411 | { |
13412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13413 | result = (int)(arg1)->GetRudderMax(); | |
13414 | ||
13415 | wxPyEndAllowThreads(__tstate); | |
13416 | if (PyErr_Occurred()) SWIG_fail; | |
13417 | } | |
093d3ff1 | 13418 | { |
32fe5131 | 13419 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13420 | } |
d14a1e28 RD |
13421 | return resultobj; |
13422 | fail: | |
13423 | return NULL; | |
13424 | } | |
13425 | ||
13426 | ||
c32bde28 | 13427 | static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13428 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13429 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13430 | int result; | |
13431 | PyObject * obj0 = 0 ; | |
13432 | char *kwnames[] = { | |
13433 | (char *) "self", NULL | |
13434 | }; | |
13435 | ||
13436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13439 | { |
13440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13441 | result = (int)(arg1)->GetUMin(); | |
13442 | ||
13443 | wxPyEndAllowThreads(__tstate); | |
13444 | if (PyErr_Occurred()) SWIG_fail; | |
13445 | } | |
093d3ff1 | 13446 | { |
32fe5131 | 13447 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13448 | } |
d14a1e28 RD |
13449 | return resultobj; |
13450 | fail: | |
13451 | return NULL; | |
13452 | } | |
13453 | ||
13454 | ||
c32bde28 | 13455 | static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13456 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13457 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13458 | int result; | |
13459 | PyObject * obj0 = 0 ; | |
13460 | char *kwnames[] = { | |
13461 | (char *) "self", NULL | |
13462 | }; | |
13463 | ||
13464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13467 | { |
13468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13469 | result = (int)(arg1)->GetUMax(); | |
13470 | ||
13471 | wxPyEndAllowThreads(__tstate); | |
13472 | if (PyErr_Occurred()) SWIG_fail; | |
13473 | } | |
093d3ff1 | 13474 | { |
32fe5131 | 13475 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13476 | } |
d14a1e28 RD |
13477 | return resultobj; |
13478 | fail: | |
13479 | return NULL; | |
13480 | } | |
13481 | ||
13482 | ||
c32bde28 | 13483 | static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13484 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13485 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13486 | int result; | |
13487 | PyObject * obj0 = 0 ; | |
13488 | char *kwnames[] = { | |
13489 | (char *) "self", NULL | |
13490 | }; | |
13491 | ||
13492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13495 | { |
13496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13497 | result = (int)(arg1)->GetVMin(); | |
13498 | ||
13499 | wxPyEndAllowThreads(__tstate); | |
13500 | if (PyErr_Occurred()) SWIG_fail; | |
13501 | } | |
093d3ff1 | 13502 | { |
32fe5131 | 13503 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13504 | } |
d14a1e28 RD |
13505 | return resultobj; |
13506 | fail: | |
13507 | return NULL; | |
13508 | } | |
13509 | ||
13510 | ||
c32bde28 | 13511 | static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13512 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13513 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13514 | int result; | |
13515 | PyObject * obj0 = 0 ; | |
13516 | char *kwnames[] = { | |
13517 | (char *) "self", NULL | |
13518 | }; | |
13519 | ||
13520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13523 | { |
13524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13525 | result = (int)(arg1)->GetVMax(); | |
13526 | ||
13527 | wxPyEndAllowThreads(__tstate); | |
13528 | if (PyErr_Occurred()) SWIG_fail; | |
13529 | } | |
093d3ff1 | 13530 | { |
32fe5131 | 13531 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13532 | } |
d14a1e28 RD |
13533 | return resultobj; |
13534 | fail: | |
13535 | return NULL; | |
13536 | } | |
13537 | ||
13538 | ||
c32bde28 | 13539 | static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13540 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13541 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13542 | bool result; | |
13543 | PyObject * obj0 = 0 ; | |
13544 | char *kwnames[] = { | |
13545 | (char *) "self", NULL | |
13546 | }; | |
13547 | ||
13548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13549 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13550 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13551 | { |
13552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13553 | result = (bool)(arg1)->HasRudder(); | |
13554 | ||
13555 | wxPyEndAllowThreads(__tstate); | |
13556 | if (PyErr_Occurred()) SWIG_fail; | |
13557 | } | |
4f89f6a3 RD |
13558 | { |
13559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13560 | } | |
d14a1e28 RD |
13561 | return resultobj; |
13562 | fail: | |
13563 | return NULL; | |
13564 | } | |
13565 | ||
13566 | ||
c32bde28 | 13567 | static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13568 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13569 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13570 | bool result; | |
13571 | PyObject * obj0 = 0 ; | |
13572 | char *kwnames[] = { | |
13573 | (char *) "self", NULL | |
13574 | }; | |
13575 | ||
13576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13577 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13578 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13579 | { |
13580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13581 | result = (bool)(arg1)->HasZ(); | |
13582 | ||
13583 | wxPyEndAllowThreads(__tstate); | |
13584 | if (PyErr_Occurred()) SWIG_fail; | |
13585 | } | |
4f89f6a3 RD |
13586 | { |
13587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13588 | } | |
d14a1e28 RD |
13589 | return resultobj; |
13590 | fail: | |
13591 | return NULL; | |
13592 | } | |
13593 | ||
13594 | ||
c32bde28 | 13595 | static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13596 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13597 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13598 | bool result; | |
13599 | PyObject * obj0 = 0 ; | |
13600 | char *kwnames[] = { | |
13601 | (char *) "self", NULL | |
13602 | }; | |
13603 | ||
13604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13607 | { |
13608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13609 | result = (bool)(arg1)->HasU(); | |
13610 | ||
13611 | wxPyEndAllowThreads(__tstate); | |
13612 | if (PyErr_Occurred()) SWIG_fail; | |
13613 | } | |
4f89f6a3 RD |
13614 | { |
13615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13616 | } | |
d14a1e28 RD |
13617 | return resultobj; |
13618 | fail: | |
13619 | return NULL; | |
13620 | } | |
13621 | ||
13622 | ||
c32bde28 | 13623 | static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13624 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13625 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13626 | bool result; | |
13627 | PyObject * obj0 = 0 ; | |
13628 | char *kwnames[] = { | |
13629 | (char *) "self", NULL | |
13630 | }; | |
13631 | ||
13632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13635 | { |
13636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13637 | result = (bool)(arg1)->HasV(); | |
13638 | ||
13639 | wxPyEndAllowThreads(__tstate); | |
13640 | if (PyErr_Occurred()) SWIG_fail; | |
13641 | } | |
4f89f6a3 RD |
13642 | { |
13643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13644 | } | |
d14a1e28 RD |
13645 | return resultobj; |
13646 | fail: | |
13647 | return NULL; | |
13648 | } | |
13649 | ||
13650 | ||
c32bde28 | 13651 | static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13652 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13653 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13654 | bool result; | |
13655 | PyObject * obj0 = 0 ; | |
13656 | char *kwnames[] = { | |
13657 | (char *) "self", NULL | |
13658 | }; | |
13659 | ||
13660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13663 | { |
13664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13665 | result = (bool)(arg1)->HasPOV(); | |
13666 | ||
13667 | wxPyEndAllowThreads(__tstate); | |
13668 | if (PyErr_Occurred()) SWIG_fail; | |
13669 | } | |
4f89f6a3 RD |
13670 | { |
13671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13672 | } | |
d14a1e28 RD |
13673 | return resultobj; |
13674 | fail: | |
13675 | return NULL; | |
13676 | } | |
13677 | ||
13678 | ||
c32bde28 | 13679 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13680 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13681 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13682 | bool result; | |
13683 | PyObject * obj0 = 0 ; | |
13684 | char *kwnames[] = { | |
13685 | (char *) "self", NULL | |
13686 | }; | |
13687 | ||
13688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13691 | { |
13692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13693 | result = (bool)(arg1)->HasPOV4Dir(); | |
13694 | ||
13695 | wxPyEndAllowThreads(__tstate); | |
13696 | if (PyErr_Occurred()) SWIG_fail; | |
13697 | } | |
4f89f6a3 RD |
13698 | { |
13699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13700 | } | |
d14a1e28 RD |
13701 | return resultobj; |
13702 | fail: | |
13703 | return NULL; | |
13704 | } | |
13705 | ||
13706 | ||
c32bde28 | 13707 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13708 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13709 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13710 | bool result; | |
13711 | PyObject * obj0 = 0 ; | |
13712 | char *kwnames[] = { | |
13713 | (char *) "self", NULL | |
13714 | }; | |
13715 | ||
13716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13719 | { |
13720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13721 | result = (bool)(arg1)->HasPOVCTS(); | |
13722 | ||
13723 | wxPyEndAllowThreads(__tstate); | |
13724 | if (PyErr_Occurred()) SWIG_fail; | |
13725 | } | |
4f89f6a3 RD |
13726 | { |
13727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13728 | } | |
d14a1e28 RD |
13729 | return resultobj; |
13730 | fail: | |
13731 | return NULL; | |
13732 | } | |
13733 | ||
13734 | ||
c32bde28 | 13735 | static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13736 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13737 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13738 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13739 | int arg3 = (int) 0 ; | |
13740 | bool result; | |
13741 | PyObject * obj0 = 0 ; | |
13742 | PyObject * obj1 = 0 ; | |
994141e6 | 13743 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13744 | char *kwnames[] = { |
13745 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
13746 | }; | |
13747 | ||
994141e6 | 13748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
13749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13751 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13752 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 13753 | if (obj2) { |
093d3ff1 | 13754 | { |
32fe5131 | 13755 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13756 | if (SWIG_arg_fail(3)) SWIG_fail; |
13757 | } | |
994141e6 | 13758 | } |
d14a1e28 RD |
13759 | { |
13760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13761 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
13762 | ||
13763 | wxPyEndAllowThreads(__tstate); | |
13764 | if (PyErr_Occurred()) SWIG_fail; | |
13765 | } | |
4f89f6a3 RD |
13766 | { |
13767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13768 | } | |
d14a1e28 RD |
13769 | return resultobj; |
13770 | fail: | |
13771 | return NULL; | |
13772 | } | |
13773 | ||
13774 | ||
c32bde28 | 13775 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13776 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13777 | wxJoystick *arg1 = (wxJoystick *) 0 ; |
13778 | bool result; | |
13779 | PyObject * obj0 = 0 ; | |
13780 | char *kwnames[] = { | |
13781 | (char *) "self", NULL | |
13782 | }; | |
13783 | ||
13784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
13786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13787 | { |
13788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13789 | result = (bool)(arg1)->ReleaseCapture(); | |
13790 | ||
13791 | wxPyEndAllowThreads(__tstate); | |
13792 | if (PyErr_Occurred()) SWIG_fail; | |
13793 | } | |
4f89f6a3 RD |
13794 | { |
13795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13796 | } | |
d14a1e28 RD |
13797 | return resultobj; |
13798 | fail: | |
13799 | return NULL; | |
13800 | } | |
13801 | ||
13802 | ||
c32bde28 | 13803 | static PyObject * Joystick_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13804 | PyObject *obj; |
13805 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13806 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
13807 | Py_INCREF(obj); | |
13808 | return Py_BuildValue((char *)""); | |
13809 | } | |
c32bde28 | 13810 | static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13811 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13812 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
13813 | int arg2 = (int) 0 ; | |
13814 | int arg3 = (int) wxJOYSTICK1 ; | |
13815 | int arg4 = (int) 0 ; | |
13816 | wxJoystickEvent *result; | |
994141e6 RD |
13817 | PyObject * obj0 = 0 ; |
13818 | PyObject * obj1 = 0 ; | |
13819 | PyObject * obj2 = 0 ; | |
13820 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13821 | char *kwnames[] = { |
13822 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
13823 | }; | |
13824 | ||
994141e6 RD |
13825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13826 | if (obj0) { | |
093d3ff1 | 13827 | { |
32fe5131 | 13828 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
13829 | if (SWIG_arg_fail(1)) SWIG_fail; |
13830 | } | |
994141e6 RD |
13831 | } |
13832 | if (obj1) { | |
093d3ff1 | 13833 | { |
32fe5131 | 13834 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13835 | if (SWIG_arg_fail(2)) SWIG_fail; |
13836 | } | |
994141e6 RD |
13837 | } |
13838 | if (obj2) { | |
093d3ff1 | 13839 | { |
32fe5131 | 13840 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13841 | if (SWIG_arg_fail(3)) SWIG_fail; |
13842 | } | |
994141e6 RD |
13843 | } |
13844 | if (obj3) { | |
093d3ff1 | 13845 | { |
32fe5131 | 13846 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
13847 | if (SWIG_arg_fail(4)) SWIG_fail; |
13848 | } | |
994141e6 | 13849 | } |
d14a1e28 RD |
13850 | { |
13851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13852 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
13853 | ||
13854 | wxPyEndAllowThreads(__tstate); | |
13855 | if (PyErr_Occurred()) SWIG_fail; | |
13856 | } | |
15afbcd0 | 13857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); |
d14a1e28 RD |
13858 | return resultobj; |
13859 | fail: | |
13860 | return NULL; | |
13861 | } | |
13862 | ||
13863 | ||
c32bde28 | 13864 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13865 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13866 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13867 | wxPoint result; | |
13868 | PyObject * obj0 = 0 ; | |
13869 | char *kwnames[] = { | |
13870 | (char *) "self", NULL | |
13871 | }; | |
13872 | ||
13873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13874 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13875 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13876 | { |
13877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13878 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
13879 | ||
13880 | wxPyEndAllowThreads(__tstate); | |
13881 | if (PyErr_Occurred()) SWIG_fail; | |
13882 | } | |
13883 | { | |
13884 | wxPoint * resultptr; | |
32fe5131 | 13885 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
15afbcd0 | 13886 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
13887 | } |
13888 | return resultobj; | |
13889 | fail: | |
13890 | return NULL; | |
13891 | } | |
13892 | ||
13893 | ||
c32bde28 | 13894 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13895 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13896 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13897 | int result; | |
13898 | PyObject * obj0 = 0 ; | |
13899 | char *kwnames[] = { | |
13900 | (char *) "self", NULL | |
13901 | }; | |
13902 | ||
13903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13906 | { |
13907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13908 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
13909 | ||
13910 | wxPyEndAllowThreads(__tstate); | |
13911 | if (PyErr_Occurred()) SWIG_fail; | |
13912 | } | |
093d3ff1 | 13913 | { |
32fe5131 | 13914 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13915 | } |
d14a1e28 RD |
13916 | return resultobj; |
13917 | fail: | |
13918 | return NULL; | |
13919 | } | |
13920 | ||
13921 | ||
c32bde28 | 13922 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13923 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13924 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13925 | int result; | |
13926 | PyObject * obj0 = 0 ; | |
13927 | char *kwnames[] = { | |
13928 | (char *) "self", NULL | |
13929 | }; | |
13930 | ||
13931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13934 | { |
13935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13936 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
13937 | ||
13938 | wxPyEndAllowThreads(__tstate); | |
13939 | if (PyErr_Occurred()) SWIG_fail; | |
13940 | } | |
093d3ff1 | 13941 | { |
32fe5131 | 13942 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13943 | } |
d14a1e28 RD |
13944 | return resultobj; |
13945 | fail: | |
13946 | return NULL; | |
13947 | } | |
13948 | ||
13949 | ||
c32bde28 | 13950 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13951 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13952 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13953 | int result; | |
13954 | PyObject * obj0 = 0 ; | |
13955 | char *kwnames[] = { | |
13956 | (char *) "self", NULL | |
13957 | }; | |
13958 | ||
13959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13962 | { |
13963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13964 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
13965 | ||
13966 | wxPyEndAllowThreads(__tstate); | |
13967 | if (PyErr_Occurred()) SWIG_fail; | |
13968 | } | |
093d3ff1 | 13969 | { |
32fe5131 | 13970 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13971 | } |
d14a1e28 RD |
13972 | return resultobj; |
13973 | fail: | |
13974 | return NULL; | |
13975 | } | |
13976 | ||
13977 | ||
c32bde28 | 13978 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13979 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13980 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
13981 | int result; | |
13982 | PyObject * obj0 = 0 ; | |
13983 | char *kwnames[] = { | |
13984 | (char *) "self", NULL | |
13985 | }; | |
13986 | ||
13987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13990 | { |
13991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13992 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
13993 | ||
13994 | wxPyEndAllowThreads(__tstate); | |
13995 | if (PyErr_Occurred()) SWIG_fail; | |
13996 | } | |
093d3ff1 | 13997 | { |
32fe5131 | 13998 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13999 | } |
d14a1e28 RD |
14000 | return resultobj; |
14001 | fail: | |
14002 | return NULL; | |
14003 | } | |
14004 | ||
14005 | ||
c32bde28 | 14006 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14007 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14008 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14009 | int arg2 ; | |
14010 | PyObject * obj0 = 0 ; | |
994141e6 | 14011 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14012 | char *kwnames[] = { |
14013 | (char *) "self",(char *) "stick", NULL | |
14014 | }; | |
14015 | ||
994141e6 | 14016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14019 | { | |
32fe5131 | 14020 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14021 | if (SWIG_arg_fail(2)) SWIG_fail; |
14022 | } | |
d14a1e28 RD |
14023 | { |
14024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14025 | (arg1)->SetJoystick(arg2); | |
14026 | ||
14027 | wxPyEndAllowThreads(__tstate); | |
14028 | if (PyErr_Occurred()) SWIG_fail; | |
14029 | } | |
14030 | Py_INCREF(Py_None); resultobj = Py_None; | |
14031 | return resultobj; | |
14032 | fail: | |
14033 | return NULL; | |
14034 | } | |
14035 | ||
14036 | ||
c32bde28 | 14037 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14038 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14039 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14040 | int arg2 ; | |
14041 | PyObject * obj0 = 0 ; | |
994141e6 | 14042 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14043 | char *kwnames[] = { |
14044 | (char *) "self",(char *) "state", NULL | |
14045 | }; | |
14046 | ||
994141e6 | 14047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14050 | { | |
32fe5131 | 14051 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14052 | if (SWIG_arg_fail(2)) SWIG_fail; |
14053 | } | |
d14a1e28 RD |
14054 | { |
14055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14056 | (arg1)->SetButtonState(arg2); | |
14057 | ||
14058 | wxPyEndAllowThreads(__tstate); | |
14059 | if (PyErr_Occurred()) SWIG_fail; | |
14060 | } | |
14061 | Py_INCREF(Py_None); resultobj = Py_None; | |
14062 | return resultobj; | |
14063 | fail: | |
14064 | return NULL; | |
14065 | } | |
14066 | ||
14067 | ||
c32bde28 | 14068 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14069 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14070 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14071 | int arg2 ; | |
14072 | PyObject * obj0 = 0 ; | |
994141e6 | 14073 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14074 | char *kwnames[] = { |
14075 | (char *) "self",(char *) "change", NULL | |
14076 | }; | |
14077 | ||
994141e6 | 14078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14079 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14080 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14081 | { | |
32fe5131 | 14082 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14083 | if (SWIG_arg_fail(2)) SWIG_fail; |
14084 | } | |
d14a1e28 RD |
14085 | { |
14086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14087 | (arg1)->SetButtonChange(arg2); | |
14088 | ||
14089 | wxPyEndAllowThreads(__tstate); | |
14090 | if (PyErr_Occurred()) SWIG_fail; | |
14091 | } | |
14092 | Py_INCREF(Py_None); resultobj = Py_None; | |
14093 | return resultobj; | |
14094 | fail: | |
14095 | return NULL; | |
14096 | } | |
14097 | ||
14098 | ||
c32bde28 | 14099 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14100 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14101 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14102 | wxPoint *arg2 = 0 ; | |
14103 | wxPoint temp2 ; | |
14104 | PyObject * obj0 = 0 ; | |
14105 | PyObject * obj1 = 0 ; | |
14106 | char *kwnames[] = { | |
14107 | (char *) "self",(char *) "pos", NULL | |
14108 | }; | |
14109 | ||
14110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14113 | { |
14114 | arg2 = &temp2; | |
14115 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14116 | } | |
14117 | { | |
14118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14119 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
14120 | ||
14121 | wxPyEndAllowThreads(__tstate); | |
14122 | if (PyErr_Occurred()) SWIG_fail; | |
14123 | } | |
14124 | Py_INCREF(Py_None); resultobj = Py_None; | |
14125 | return resultobj; | |
14126 | fail: | |
14127 | return NULL; | |
14128 | } | |
14129 | ||
14130 | ||
c32bde28 | 14131 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14132 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14133 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14134 | int arg2 ; | |
14135 | PyObject * obj0 = 0 ; | |
994141e6 | 14136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14137 | char *kwnames[] = { |
14138 | (char *) "self",(char *) "zPos", NULL | |
14139 | }; | |
14140 | ||
994141e6 | 14141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14144 | { | |
32fe5131 | 14145 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14146 | if (SWIG_arg_fail(2)) SWIG_fail; |
14147 | } | |
d14a1e28 RD |
14148 | { |
14149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14150 | (arg1)->SetZPosition(arg2); | |
14151 | ||
14152 | wxPyEndAllowThreads(__tstate); | |
14153 | if (PyErr_Occurred()) SWIG_fail; | |
14154 | } | |
14155 | Py_INCREF(Py_None); resultobj = Py_None; | |
14156 | return resultobj; | |
14157 | fail: | |
14158 | return NULL; | |
14159 | } | |
14160 | ||
14161 | ||
c32bde28 | 14162 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14163 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14164 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14165 | bool result; | |
14166 | PyObject * obj0 = 0 ; | |
14167 | char *kwnames[] = { | |
14168 | (char *) "self", NULL | |
14169 | }; | |
14170 | ||
14171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14174 | { |
14175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14176 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
14177 | ||
14178 | wxPyEndAllowThreads(__tstate); | |
14179 | if (PyErr_Occurred()) SWIG_fail; | |
14180 | } | |
4f89f6a3 RD |
14181 | { |
14182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14183 | } | |
d14a1e28 RD |
14184 | return resultobj; |
14185 | fail: | |
14186 | return NULL; | |
14187 | } | |
14188 | ||
14189 | ||
c32bde28 | 14190 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14191 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14192 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14193 | bool result; | |
14194 | PyObject * obj0 = 0 ; | |
14195 | char *kwnames[] = { | |
14196 | (char *) "self", NULL | |
14197 | }; | |
14198 | ||
14199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14202 | { |
14203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14204 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
14205 | ||
14206 | wxPyEndAllowThreads(__tstate); | |
14207 | if (PyErr_Occurred()) SWIG_fail; | |
14208 | } | |
4f89f6a3 RD |
14209 | { |
14210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14211 | } | |
d14a1e28 RD |
14212 | return resultobj; |
14213 | fail: | |
14214 | return NULL; | |
14215 | } | |
14216 | ||
14217 | ||
c32bde28 | 14218 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14219 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14220 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14221 | bool result; | |
14222 | PyObject * obj0 = 0 ; | |
14223 | char *kwnames[] = { | |
14224 | (char *) "self", NULL | |
14225 | }; | |
14226 | ||
14227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14228 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14229 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14230 | { |
14231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14232 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
14233 | ||
14234 | wxPyEndAllowThreads(__tstate); | |
14235 | if (PyErr_Occurred()) SWIG_fail; | |
14236 | } | |
4f89f6a3 RD |
14237 | { |
14238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14239 | } | |
d14a1e28 RD |
14240 | return resultobj; |
14241 | fail: | |
14242 | return NULL; | |
14243 | } | |
14244 | ||
14245 | ||
c32bde28 | 14246 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14247 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14248 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14249 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
14250 | bool result; | |
14251 | PyObject * obj0 = 0 ; | |
994141e6 | 14252 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14253 | char *kwnames[] = { |
14254 | (char *) "self",(char *) "but", NULL | |
14255 | }; | |
14256 | ||
994141e6 | 14257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 14260 | if (obj1) { |
093d3ff1 | 14261 | { |
32fe5131 | 14262 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14263 | if (SWIG_arg_fail(2)) SWIG_fail; |
14264 | } | |
994141e6 | 14265 | } |
d14a1e28 RD |
14266 | { |
14267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14268 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
14269 | ||
14270 | wxPyEndAllowThreads(__tstate); | |
14271 | if (PyErr_Occurred()) SWIG_fail; | |
14272 | } | |
4f89f6a3 RD |
14273 | { |
14274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14275 | } | |
d14a1e28 RD |
14276 | return resultobj; |
14277 | fail: | |
14278 | return NULL; | |
14279 | } | |
14280 | ||
14281 | ||
c32bde28 | 14282 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14283 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14284 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14285 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
14286 | bool result; | |
14287 | PyObject * obj0 = 0 ; | |
994141e6 | 14288 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14289 | char *kwnames[] = { |
14290 | (char *) "self",(char *) "but", NULL | |
14291 | }; | |
14292 | ||
994141e6 | 14293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 14296 | if (obj1) { |
093d3ff1 | 14297 | { |
32fe5131 | 14298 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14299 | if (SWIG_arg_fail(2)) SWIG_fail; |
14300 | } | |
994141e6 | 14301 | } |
d14a1e28 RD |
14302 | { |
14303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14304 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
14305 | ||
14306 | wxPyEndAllowThreads(__tstate); | |
14307 | if (PyErr_Occurred()) SWIG_fail; | |
14308 | } | |
4f89f6a3 RD |
14309 | { |
14310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14311 | } | |
d14a1e28 RD |
14312 | return resultobj; |
14313 | fail: | |
14314 | return NULL; | |
14315 | } | |
14316 | ||
14317 | ||
c32bde28 | 14318 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14319 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14320 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; |
14321 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
14322 | bool result; | |
14323 | PyObject * obj0 = 0 ; | |
994141e6 | 14324 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14325 | char *kwnames[] = { |
14326 | (char *) "self",(char *) "but", NULL | |
14327 | }; | |
14328 | ||
994141e6 | 14329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
14331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 14332 | if (obj1) { |
093d3ff1 | 14333 | { |
32fe5131 | 14334 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14335 | if (SWIG_arg_fail(2)) SWIG_fail; |
14336 | } | |
994141e6 | 14337 | } |
d14a1e28 RD |
14338 | { |
14339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14340 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
14341 | ||
14342 | wxPyEndAllowThreads(__tstate); | |
14343 | if (PyErr_Occurred()) SWIG_fail; | |
14344 | } | |
4f89f6a3 RD |
14345 | { |
14346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14347 | } | |
d14a1e28 RD |
14348 | return resultobj; |
14349 | fail: | |
14350 | return NULL; | |
14351 | } | |
14352 | ||
14353 | ||
c32bde28 | 14354 | static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14355 | PyObject *obj; |
14356 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14357 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
14358 | Py_INCREF(obj); | |
14359 | return Py_BuildValue((char *)""); | |
14360 | } | |
c32bde28 | 14361 | static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14362 | PyObject *resultobj = NULL; |
36cadbf7 RD |
14363 | wxString const &arg1_defvalue = wxPyEmptyString ; |
14364 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4d5c3d91 | 14365 | wxSound *result; |
ae8162c8 | 14366 | bool temp1 = false ; |
d14a1e28 | 14367 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
14368 | char *kwnames[] = { |
14369 | (char *) "fileName", NULL | |
14370 | }; | |
d14a1e28 | 14371 | |
36cadbf7 RD |
14372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
14373 | if (obj0) { | |
14374 | { | |
14375 | arg1 = wxString_in_helper(obj0); | |
14376 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14377 | temp1 = true; |
36cadbf7 | 14378 | } |
d14a1e28 RD |
14379 | } |
14380 | { | |
e3b71cb8 | 14381 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 14382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36cadbf7 | 14383 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d14a1e28 RD |
14384 | |
14385 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14386 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14387 | } |
15afbcd0 | 14388 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
14389 | { |
14390 | if (temp1) | |
14391 | delete arg1; | |
14392 | } | |
14393 | return resultobj; | |
14394 | fail: | |
14395 | { | |
14396 | if (temp1) | |
14397 | delete arg1; | |
14398 | } | |
14399 | return NULL; | |
14400 | } | |
14401 | ||
14402 | ||
c32bde28 | 14403 | static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14404 | PyObject *resultobj = NULL; |
36cadbf7 | 14405 | PyObject *arg1 = (PyObject *) 0 ; |
4d5c3d91 | 14406 | wxSound *result; |
d14a1e28 | 14407 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
14408 | char *kwnames[] = { |
14409 | (char *) "data", NULL | |
14410 | }; | |
d14a1e28 | 14411 | |
36cadbf7 RD |
14412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
14413 | arg1 = obj0; | |
d14a1e28 | 14414 | { |
e3b71cb8 | 14415 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 14416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36cadbf7 | 14417 | result = (wxSound *)new_wxSound(arg1); |
d14a1e28 RD |
14418 | |
14419 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14420 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14421 | } |
15afbcd0 | 14422 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
14423 | return resultobj; |
14424 | fail: | |
4d5c3d91 RD |
14425 | return NULL; |
14426 | } | |
14427 | ||
14428 | ||
c32bde28 | 14429 | static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14430 | PyObject *resultobj = NULL; |
4d5c3d91 | 14431 | wxSound *arg1 = (wxSound *) 0 ; |
d14a1e28 RD |
14432 | PyObject * obj0 = 0 ; |
14433 | char *kwnames[] = { | |
14434 | (char *) "self", NULL | |
14435 | }; | |
14436 | ||
4d5c3d91 | 14437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
14438 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
14439 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14440 | { |
14441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14442 | delete arg1; | |
14443 | ||
14444 | wxPyEndAllowThreads(__tstate); | |
14445 | if (PyErr_Occurred()) SWIG_fail; | |
14446 | } | |
14447 | Py_INCREF(Py_None); resultobj = Py_None; | |
14448 | return resultobj; | |
14449 | fail: | |
14450 | return NULL; | |
14451 | } | |
14452 | ||
14453 | ||
c32bde28 | 14454 | static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14455 | PyObject *resultobj = NULL; |
4d5c3d91 RD |
14456 | wxSound *arg1 = (wxSound *) 0 ; |
14457 | wxString *arg2 = 0 ; | |
d14a1e28 | 14458 | bool result; |
ae8162c8 | 14459 | bool temp2 = false ; |
d14a1e28 | 14460 | PyObject * obj0 = 0 ; |
4d5c3d91 | 14461 | PyObject * obj1 = 0 ; |
36cadbf7 RD |
14462 | char *kwnames[] = { |
14463 | (char *) "self",(char *) "fileName", NULL | |
14464 | }; | |
d14a1e28 | 14465 | |
36cadbf7 | 14466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
14468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4d5c3d91 RD |
14469 | { |
14470 | arg2 = wxString_in_helper(obj1); | |
14471 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14472 | temp2 = true; |
4d5c3d91 | 14473 | } |
d14a1e28 RD |
14474 | { |
14475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 14476 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d14a1e28 RD |
14477 | |
14478 | wxPyEndAllowThreads(__tstate); | |
14479 | if (PyErr_Occurred()) SWIG_fail; | |
14480 | } | |
4f89f6a3 RD |
14481 | { |
14482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14483 | } | |
4d5c3d91 RD |
14484 | { |
14485 | if (temp2) | |
14486 | delete arg2; | |
14487 | } | |
d14a1e28 RD |
14488 | return resultobj; |
14489 | fail: | |
4d5c3d91 RD |
14490 | { |
14491 | if (temp2) | |
14492 | delete arg2; | |
14493 | } | |
d14a1e28 RD |
14494 | return NULL; |
14495 | } | |
14496 | ||
14497 | ||
c32bde28 | 14498 | static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14499 | PyObject *resultobj = NULL; |
4d5c3d91 | 14500 | wxSound *arg1 = (wxSound *) 0 ; |
36cadbf7 | 14501 | PyObject *arg2 = (PyObject *) 0 ; |
d14a1e28 RD |
14502 | bool result; |
14503 | PyObject * obj0 = 0 ; | |
14504 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
14505 | char *kwnames[] = { |
14506 | (char *) "self",(char *) "data", NULL | |
14507 | }; | |
4d5c3d91 | 14508 | |
36cadbf7 | 14509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
14511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36cadbf7 | 14512 | arg2 = obj1; |
4d5c3d91 RD |
14513 | { |
14514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 14515 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
4d5c3d91 RD |
14516 | |
14517 | wxPyEndAllowThreads(__tstate); | |
14518 | if (PyErr_Occurred()) SWIG_fail; | |
14519 | } | |
4f89f6a3 RD |
14520 | { |
14521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14522 | } | |
4d5c3d91 RD |
14523 | return resultobj; |
14524 | fail: | |
14525 | return NULL; | |
14526 | } | |
14527 | ||
14528 | ||
c32bde28 | 14529 | static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14530 | PyObject *resultobj = NULL; |
4d5c3d91 RD |
14531 | wxSound *arg1 = (wxSound *) 0 ; |
14532 | bool result; | |
14533 | PyObject * obj0 = 0 ; | |
d14a1e28 | 14534 | char *kwnames[] = { |
4d5c3d91 | 14535 | (char *) "self", NULL |
d14a1e28 RD |
14536 | }; |
14537 | ||
4d5c3d91 | 14538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
14539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
14540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4d5c3d91 RD |
14541 | { |
14542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14543 | result = (bool)(arg1)->IsOk(); | |
14544 | ||
14545 | wxPyEndAllowThreads(__tstate); | |
14546 | if (PyErr_Occurred()) SWIG_fail; | |
14547 | } | |
4f89f6a3 RD |
14548 | { |
14549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14550 | } | |
4d5c3d91 RD |
14551 | return resultobj; |
14552 | fail: | |
14553 | return NULL; | |
14554 | } | |
14555 | ||
14556 | ||
c32bde28 | 14557 | static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14558 | PyObject *resultobj = NULL; |
4d5c3d91 RD |
14559 | wxSound *arg1 = (wxSound *) 0 ; |
14560 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
14561 | bool result; | |
14562 | PyObject * obj0 = 0 ; | |
14563 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
14564 | char *kwnames[] = { |
14565 | (char *) "self",(char *) "flags", NULL | |
14566 | }; | |
4d5c3d91 | 14567 | |
36cadbf7 | 14568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
14570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 14571 | if (obj1) { |
093d3ff1 | 14572 | { |
32fe5131 | 14573 | arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1)); |
093d3ff1 RD |
14574 | if (SWIG_arg_fail(2)) SWIG_fail; |
14575 | } | |
d14a1e28 | 14576 | } |
4d5c3d91 | 14577 | { |
e3b71cb8 | 14578 | if (!wxPyCheckForApp()) SWIG_fail; |
4d5c3d91 RD |
14579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14580 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
14581 | ||
14582 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14583 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 | 14584 | } |
4f89f6a3 RD |
14585 | { |
14586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14587 | } | |
4d5c3d91 RD |
14588 | return resultobj; |
14589 | fail: | |
14590 | return NULL; | |
14591 | } | |
14592 | ||
14593 | ||
c32bde28 | 14594 | static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14595 | PyObject *resultobj = NULL; |
4d5c3d91 RD |
14596 | wxString *arg1 = 0 ; |
14597 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
14598 | bool result; | |
ae8162c8 | 14599 | bool temp1 = false ; |
4d5c3d91 RD |
14600 | PyObject * obj0 = 0 ; |
14601 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
14602 | char *kwnames[] = { |
14603 | (char *) "filename",(char *) "flags", NULL | |
14604 | }; | |
4d5c3d91 | 14605 | |
36cadbf7 | 14606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
4d5c3d91 RD |
14607 | { |
14608 | arg1 = wxString_in_helper(obj0); | |
14609 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14610 | temp1 = true; |
4d5c3d91 RD |
14611 | } |
14612 | if (obj1) { | |
093d3ff1 | 14613 | { |
32fe5131 | 14614 | arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1)); |
093d3ff1 RD |
14615 | if (SWIG_arg_fail(2)) SWIG_fail; |
14616 | } | |
d14a1e28 RD |
14617 | } |
14618 | { | |
e3b71cb8 | 14619 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 14620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 14621 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); |
d14a1e28 RD |
14622 | |
14623 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14624 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14625 | } |
4f89f6a3 RD |
14626 | { |
14627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14628 | } | |
4d5c3d91 RD |
14629 | { |
14630 | if (temp1) | |
14631 | delete arg1; | |
14632 | } | |
d14a1e28 RD |
14633 | return resultobj; |
14634 | fail: | |
4d5c3d91 RD |
14635 | { |
14636 | if (temp1) | |
14637 | delete arg1; | |
14638 | } | |
d14a1e28 RD |
14639 | return NULL; |
14640 | } | |
14641 | ||
14642 | ||
c32bde28 | 14643 | static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14644 | PyObject *resultobj = NULL; |
4d5c3d91 RD |
14645 | char *kwnames[] = { |
14646 | NULL | |
14647 | }; | |
14648 | ||
14649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
14650 | { | |
e3b71cb8 | 14651 | if (!wxPyCheckForApp()) SWIG_fail; |
4d5c3d91 RD |
14652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14653 | wxSound::Stop(); | |
14654 | ||
14655 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14656 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
14657 | } |
14658 | Py_INCREF(Py_None); resultobj = Py_None; | |
14659 | return resultobj; | |
14660 | fail: | |
14661 | return NULL; | |
14662 | } | |
14663 | ||
14664 | ||
c32bde28 | 14665 | static PyObject * Sound_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14666 | PyObject *obj; |
14667 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4d5c3d91 | 14668 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); |
d14a1e28 RD |
14669 | Py_INCREF(obj); |
14670 | return Py_BuildValue((char *)""); | |
14671 | } | |
c32bde28 | 14672 | static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14673 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14674 | wxString *arg1 = 0 ; |
14675 | wxString *arg2 = 0 ; | |
14676 | wxString *arg3 = 0 ; | |
14677 | wxString *arg4 = 0 ; | |
14678 | wxFileTypeInfo *result; | |
ae8162c8 RD |
14679 | bool temp1 = false ; |
14680 | bool temp2 = false ; | |
14681 | bool temp3 = false ; | |
14682 | bool temp4 = false ; | |
d14a1e28 RD |
14683 | PyObject * obj0 = 0 ; |
14684 | PyObject * obj1 = 0 ; | |
14685 | PyObject * obj2 = 0 ; | |
14686 | PyObject * obj3 = 0 ; | |
14687 | char *kwnames[] = { | |
14688 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
14689 | }; | |
14690 | ||
14691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14692 | { | |
14693 | arg1 = wxString_in_helper(obj0); | |
14694 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14695 | temp1 = true; |
d14a1e28 RD |
14696 | } |
14697 | { | |
14698 | arg2 = wxString_in_helper(obj1); | |
14699 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14700 | temp2 = true; |
d14a1e28 RD |
14701 | } |
14702 | { | |
14703 | arg3 = wxString_in_helper(obj2); | |
14704 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14705 | temp3 = true; |
d14a1e28 RD |
14706 | } |
14707 | { | |
14708 | arg4 = wxString_in_helper(obj3); | |
14709 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 14710 | temp4 = true; |
d14a1e28 RD |
14711 | } |
14712 | { | |
14713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14714 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
14715 | ||
14716 | wxPyEndAllowThreads(__tstate); | |
14717 | if (PyErr_Occurred()) SWIG_fail; | |
14718 | } | |
15afbcd0 | 14719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
14720 | { |
14721 | if (temp1) | |
14722 | delete arg1; | |
14723 | } | |
14724 | { | |
14725 | if (temp2) | |
14726 | delete arg2; | |
14727 | } | |
14728 | { | |
14729 | if (temp3) | |
14730 | delete arg3; | |
14731 | } | |
14732 | { | |
14733 | if (temp4) | |
14734 | delete arg4; | |
14735 | } | |
14736 | return resultobj; | |
14737 | fail: | |
14738 | { | |
14739 | if (temp1) | |
14740 | delete arg1; | |
14741 | } | |
14742 | { | |
14743 | if (temp2) | |
14744 | delete arg2; | |
14745 | } | |
14746 | { | |
14747 | if (temp3) | |
14748 | delete arg3; | |
14749 | } | |
14750 | { | |
14751 | if (temp4) | |
14752 | delete arg4; | |
14753 | } | |
14754 | return NULL; | |
14755 | } | |
14756 | ||
14757 | ||
c32bde28 | 14758 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14759 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14760 | wxArrayString *arg1 = 0 ; |
14761 | wxFileTypeInfo *result; | |
ae8162c8 | 14762 | bool temp1 = false ; |
d14a1e28 RD |
14763 | PyObject * obj0 = 0 ; |
14764 | char *kwnames[] = { | |
14765 | (char *) "sArray", NULL | |
14766 | }; | |
14767 | ||
14768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
14769 | { | |
14770 | if (! PySequence_Check(obj0)) { | |
14771 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
14772 | SWIG_fail; | |
14773 | } | |
14774 | arg1 = new wxArrayString; | |
ae8162c8 | 14775 | temp1 = true; |
d14a1e28 RD |
14776 | int i, len=PySequence_Length(obj0); |
14777 | for (i=0; i<len; i++) { | |
14778 | PyObject* item = PySequence_GetItem(obj0, i); | |
71237536 | 14779 | wxString* s = wxString_in_helper(item); |
74a57fcd | 14780 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
14781 | arg1->Add(*s); |
14782 | delete s; | |
d14a1e28 | 14783 | Py_DECREF(item); |
d14a1e28 RD |
14784 | } |
14785 | } | |
14786 | { | |
14787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14788 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
14789 | ||
14790 | wxPyEndAllowThreads(__tstate); | |
14791 | if (PyErr_Occurred()) SWIG_fail; | |
14792 | } | |
15afbcd0 | 14793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 | 14794 | { |
3adfb63b | 14795 | if (temp1) delete arg1; |
d14a1e28 RD |
14796 | } |
14797 | return resultobj; | |
14798 | fail: | |
14799 | { | |
3adfb63b | 14800 | if (temp1) delete arg1; |
d14a1e28 RD |
14801 | } |
14802 | return NULL; | |
14803 | } | |
14804 | ||
14805 | ||
c32bde28 | 14806 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14807 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14808 | wxFileTypeInfo *result; |
14809 | char *kwnames[] = { | |
14810 | NULL | |
14811 | }; | |
14812 | ||
14813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
14814 | { | |
14815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14816 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
14817 | ||
14818 | wxPyEndAllowThreads(__tstate); | |
14819 | if (PyErr_Occurred()) SWIG_fail; | |
14820 | } | |
15afbcd0 | 14821 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
14822 | return resultobj; |
14823 | fail: | |
14824 | return NULL; | |
14825 | } | |
14826 | ||
14827 | ||
c32bde28 | 14828 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14829 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14830 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14831 | bool result; | |
14832 | PyObject * obj0 = 0 ; | |
14833 | char *kwnames[] = { | |
14834 | (char *) "self", NULL | |
14835 | }; | |
14836 | ||
14837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14840 | { |
14841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14842 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
14843 | ||
14844 | wxPyEndAllowThreads(__tstate); | |
14845 | if (PyErr_Occurred()) SWIG_fail; | |
14846 | } | |
4f89f6a3 RD |
14847 | { |
14848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14849 | } | |
d14a1e28 RD |
14850 | return resultobj; |
14851 | fail: | |
14852 | return NULL; | |
14853 | } | |
14854 | ||
14855 | ||
c32bde28 | 14856 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14857 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14858 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14859 | wxString *arg2 = 0 ; | |
14860 | int arg3 = (int) 0 ; | |
ae8162c8 | 14861 | bool temp2 = false ; |
d14a1e28 RD |
14862 | PyObject * obj0 = 0 ; |
14863 | PyObject * obj1 = 0 ; | |
994141e6 | 14864 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14865 | char *kwnames[] = { |
14866 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
14867 | }; | |
14868 | ||
994141e6 | 14869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14870 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14871 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14872 | { |
14873 | arg2 = wxString_in_helper(obj1); | |
14874 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14875 | temp2 = true; |
d14a1e28 | 14876 | } |
994141e6 | 14877 | if (obj2) { |
093d3ff1 | 14878 | { |
32fe5131 | 14879 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14880 | if (SWIG_arg_fail(3)) SWIG_fail; |
14881 | } | |
994141e6 | 14882 | } |
d14a1e28 RD |
14883 | { |
14884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14885 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
14886 | ||
14887 | wxPyEndAllowThreads(__tstate); | |
14888 | if (PyErr_Occurred()) SWIG_fail; | |
14889 | } | |
14890 | Py_INCREF(Py_None); resultobj = Py_None; | |
14891 | { | |
14892 | if (temp2) | |
14893 | delete arg2; | |
14894 | } | |
14895 | return resultobj; | |
14896 | fail: | |
14897 | { | |
14898 | if (temp2) | |
14899 | delete arg2; | |
14900 | } | |
14901 | return NULL; | |
14902 | } | |
14903 | ||
14904 | ||
c32bde28 | 14905 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14906 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14907 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14908 | wxString *arg2 = 0 ; | |
ae8162c8 | 14909 | bool temp2 = false ; |
d14a1e28 RD |
14910 | PyObject * obj0 = 0 ; |
14911 | PyObject * obj1 = 0 ; | |
14912 | char *kwnames[] = { | |
14913 | (char *) "self",(char *) "shortDesc", NULL | |
14914 | }; | |
14915 | ||
14916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14917 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14918 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14919 | { |
14920 | arg2 = wxString_in_helper(obj1); | |
14921 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14922 | temp2 = true; |
d14a1e28 RD |
14923 | } |
14924 | { | |
14925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14926 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
14927 | ||
14928 | wxPyEndAllowThreads(__tstate); | |
14929 | if (PyErr_Occurred()) SWIG_fail; | |
14930 | } | |
14931 | Py_INCREF(Py_None); resultobj = Py_None; | |
14932 | { | |
14933 | if (temp2) | |
14934 | delete arg2; | |
14935 | } | |
14936 | return resultobj; | |
14937 | fail: | |
14938 | { | |
14939 | if (temp2) | |
14940 | delete arg2; | |
14941 | } | |
14942 | return NULL; | |
14943 | } | |
14944 | ||
14945 | ||
c32bde28 | 14946 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14947 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14948 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14949 | wxString *result; | |
14950 | PyObject * obj0 = 0 ; | |
14951 | char *kwnames[] = { | |
14952 | (char *) "self", NULL | |
14953 | }; | |
14954 | ||
14955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14958 | { |
14959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14960 | { | |
14961 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
14962 | result = (wxString *) &_result_ref; | |
14963 | } | |
14964 | ||
14965 | wxPyEndAllowThreads(__tstate); | |
14966 | if (PyErr_Occurred()) SWIG_fail; | |
14967 | } | |
cc6dd355 RD |
14968 | { |
14969 | #if wxUSE_UNICODE | |
14970 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14971 | #else | |
14972 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14973 | #endif | |
14974 | } | |
d14a1e28 RD |
14975 | return resultobj; |
14976 | fail: | |
14977 | return NULL; | |
14978 | } | |
14979 | ||
14980 | ||
c32bde28 | 14981 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14982 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14983 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
14984 | wxString *result; | |
14985 | PyObject * obj0 = 0 ; | |
14986 | char *kwnames[] = { | |
14987 | (char *) "self", NULL | |
14988 | }; | |
14989 | ||
14990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14991 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14992 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14993 | { |
14994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14995 | { | |
14996 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
14997 | result = (wxString *) &_result_ref; | |
14998 | } | |
14999 | ||
15000 | wxPyEndAllowThreads(__tstate); | |
15001 | if (PyErr_Occurred()) SWIG_fail; | |
15002 | } | |
cc6dd355 RD |
15003 | { |
15004 | #if wxUSE_UNICODE | |
15005 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15006 | #else | |
15007 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15008 | #endif | |
15009 | } | |
d14a1e28 RD |
15010 | return resultobj; |
15011 | fail: | |
15012 | return NULL; | |
15013 | } | |
15014 | ||
15015 | ||
c32bde28 | 15016 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15017 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15018 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
15019 | wxString *result; | |
15020 | PyObject * obj0 = 0 ; | |
15021 | char *kwnames[] = { | |
15022 | (char *) "self", NULL | |
15023 | }; | |
15024 | ||
15025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15026 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
15027 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15028 | { |
15029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15030 | { | |
15031 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
15032 | result = (wxString *) &_result_ref; | |
15033 | } | |
15034 | ||
15035 | wxPyEndAllowThreads(__tstate); | |
15036 | if (PyErr_Occurred()) SWIG_fail; | |
15037 | } | |
cc6dd355 RD |
15038 | { |
15039 | #if wxUSE_UNICODE | |
15040 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15041 | #else | |
15042 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15043 | #endif | |
15044 | } | |
d14a1e28 RD |
15045 | return resultobj; |
15046 | fail: | |
15047 | return NULL; | |
15048 | } | |
15049 | ||
15050 | ||
c32bde28 | 15051 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15052 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15053 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
15054 | wxString *result; | |
15055 | PyObject * obj0 = 0 ; | |
15056 | char *kwnames[] = { | |
15057 | (char *) "self", NULL | |
15058 | }; | |
15059 | ||
15060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
15062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15063 | { |
15064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15065 | { | |
15066 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
15067 | result = (wxString *) &_result_ref; | |
15068 | } | |
15069 | ||
15070 | wxPyEndAllowThreads(__tstate); | |
15071 | if (PyErr_Occurred()) SWIG_fail; | |
15072 | } | |
cc6dd355 RD |
15073 | { |
15074 | #if wxUSE_UNICODE | |
15075 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15076 | #else | |
15077 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15078 | #endif | |
15079 | } | |
d14a1e28 RD |
15080 | return resultobj; |
15081 | fail: | |
15082 | return NULL; | |
15083 | } | |
15084 | ||
15085 | ||
c32bde28 | 15086 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15087 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15088 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
15089 | wxString *result; | |
15090 | PyObject * obj0 = 0 ; | |
15091 | char *kwnames[] = { | |
15092 | (char *) "self", NULL | |
15093 | }; | |
15094 | ||
15095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15096 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
15097 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15098 | { |
15099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15100 | { | |
15101 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
15102 | result = (wxString *) &_result_ref; | |
15103 | } | |
15104 | ||
15105 | wxPyEndAllowThreads(__tstate); | |
15106 | if (PyErr_Occurred()) SWIG_fail; | |
15107 | } | |
cc6dd355 RD |
15108 | { |
15109 | #if wxUSE_UNICODE | |
15110 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15111 | #else | |
15112 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15113 | #endif | |
15114 | } | |
d14a1e28 RD |
15115 | return resultobj; |
15116 | fail: | |
15117 | return NULL; | |
15118 | } | |
15119 | ||
15120 | ||
c32bde28 | 15121 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15122 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15123 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
15124 | wxArrayString *result; | |
15125 | PyObject * obj0 = 0 ; | |
15126 | char *kwnames[] = { | |
15127 | (char *) "self", NULL | |
15128 | }; | |
15129 | ||
15130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
15132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15133 | { |
15134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15135 | { | |
15136 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
15137 | result = (wxArrayString *) &_result_ref; | |
15138 | } | |
15139 | ||
15140 | wxPyEndAllowThreads(__tstate); | |
15141 | if (PyErr_Occurred()) SWIG_fail; | |
15142 | } | |
15143 | { | |
15144 | resultobj = wxArrayString2PyList_helper(*result); | |
15145 | } | |
15146 | return resultobj; | |
15147 | fail: | |
15148 | return NULL; | |
15149 | } | |
15150 | ||
15151 | ||
c32bde28 | 15152 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15153 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15154 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
15155 | int result; | |
15156 | PyObject * obj0 = 0 ; | |
15157 | char *kwnames[] = { | |
15158 | (char *) "self", NULL | |
15159 | }; | |
15160 | ||
15161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15162 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
15163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15164 | { |
15165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15166 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
15167 | ||
15168 | wxPyEndAllowThreads(__tstate); | |
15169 | if (PyErr_Occurred()) SWIG_fail; | |
15170 | } | |
093d3ff1 | 15171 | { |
32fe5131 | 15172 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15173 | } |
d14a1e28 RD |
15174 | return resultobj; |
15175 | fail: | |
15176 | return NULL; | |
15177 | } | |
15178 | ||
15179 | ||
c32bde28 | 15180 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15181 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15182 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
15183 | wxString *result; | |
15184 | PyObject * obj0 = 0 ; | |
15185 | char *kwnames[] = { | |
15186 | (char *) "self", NULL | |
15187 | }; | |
15188 | ||
15189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
15191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15192 | { |
15193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15194 | { | |
15195 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
15196 | result = (wxString *) &_result_ref; | |
15197 | } | |
15198 | ||
15199 | wxPyEndAllowThreads(__tstate); | |
15200 | if (PyErr_Occurred()) SWIG_fail; | |
15201 | } | |
cc6dd355 RD |
15202 | { |
15203 | #if wxUSE_UNICODE | |
15204 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15205 | #else | |
15206 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15207 | #endif | |
15208 | } | |
d14a1e28 RD |
15209 | return resultobj; |
15210 | fail: | |
15211 | return NULL; | |
15212 | } | |
15213 | ||
15214 | ||
c32bde28 | 15215 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15216 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15217 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; |
15218 | int result; | |
15219 | PyObject * obj0 = 0 ; | |
15220 | char *kwnames[] = { | |
15221 | (char *) "self", NULL | |
15222 | }; | |
15223 | ||
15224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
15226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15227 | { |
15228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15229 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
15230 | ||
15231 | wxPyEndAllowThreads(__tstate); | |
15232 | if (PyErr_Occurred()) SWIG_fail; | |
15233 | } | |
093d3ff1 | 15234 | { |
32fe5131 | 15235 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15236 | } |
d14a1e28 RD |
15237 | return resultobj; |
15238 | fail: | |
15239 | return NULL; | |
15240 | } | |
15241 | ||
15242 | ||
c32bde28 | 15243 | static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15244 | PyObject *obj; |
15245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15246 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
15247 | Py_INCREF(obj); | |
15248 | return Py_BuildValue((char *)""); | |
15249 | } | |
c32bde28 | 15250 | static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15251 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15252 | wxFileTypeInfo *arg1 = 0 ; |
15253 | wxFileType *result; | |
15254 | PyObject * obj0 = 0 ; | |
15255 | char *kwnames[] = { | |
15256 | (char *) "ftInfo", NULL | |
15257 | }; | |
15258 | ||
15259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15260 | { |
15261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
15262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15263 | if (arg1 == NULL) { | |
15264 | SWIG_null_ref("wxFileTypeInfo"); | |
15265 | } | |
15266 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15267 | } |
15268 | { | |
15269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15270 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
15271 | ||
15272 | wxPyEndAllowThreads(__tstate); | |
15273 | if (PyErr_Occurred()) SWIG_fail; | |
15274 | } | |
15afbcd0 | 15275 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
15276 | return resultobj; |
15277 | fail: | |
15278 | return NULL; | |
15279 | } | |
15280 | ||
15281 | ||
c32bde28 | 15282 | static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15283 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15284 | wxFileType *arg1 = (wxFileType *) 0 ; |
15285 | PyObject * obj0 = 0 ; | |
15286 | char *kwnames[] = { | |
15287 | (char *) "self", NULL | |
15288 | }; | |
15289 | ||
15290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15293 | { |
15294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15295 | delete arg1; | |
15296 | ||
15297 | wxPyEndAllowThreads(__tstate); | |
15298 | if (PyErr_Occurred()) SWIG_fail; | |
15299 | } | |
15300 | Py_INCREF(Py_None); resultobj = Py_None; | |
15301 | return resultobj; | |
15302 | fail: | |
15303 | return NULL; | |
15304 | } | |
15305 | ||
15306 | ||
c32bde28 | 15307 | static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15308 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15309 | wxFileType *arg1 = (wxFileType *) 0 ; |
15310 | PyObject *result; | |
15311 | PyObject * obj0 = 0 ; | |
15312 | char *kwnames[] = { | |
15313 | (char *) "self", NULL | |
15314 | }; | |
15315 | ||
15316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15317 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15318 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15319 | { |
15320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15321 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
15322 | ||
15323 | wxPyEndAllowThreads(__tstate); | |
15324 | if (PyErr_Occurred()) SWIG_fail; | |
15325 | } | |
15326 | resultobj = result; | |
15327 | return resultobj; | |
15328 | fail: | |
15329 | return NULL; | |
15330 | } | |
15331 | ||
15332 | ||
c32bde28 | 15333 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15334 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15335 | wxFileType *arg1 = (wxFileType *) 0 ; |
15336 | PyObject *result; | |
15337 | PyObject * obj0 = 0 ; | |
15338 | char *kwnames[] = { | |
15339 | (char *) "self", NULL | |
15340 | }; | |
15341 | ||
15342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15345 | { |
15346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15347 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
15348 | ||
15349 | wxPyEndAllowThreads(__tstate); | |
15350 | if (PyErr_Occurred()) SWIG_fail; | |
15351 | } | |
15352 | resultobj = result; | |
15353 | return resultobj; | |
15354 | fail: | |
15355 | return NULL; | |
15356 | } | |
15357 | ||
15358 | ||
c32bde28 | 15359 | static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15360 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15361 | wxFileType *arg1 = (wxFileType *) 0 ; |
15362 | PyObject *result; | |
15363 | PyObject * obj0 = 0 ; | |
15364 | char *kwnames[] = { | |
15365 | (char *) "self", NULL | |
15366 | }; | |
15367 | ||
15368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15371 | { |
15372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15373 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
15374 | ||
15375 | wxPyEndAllowThreads(__tstate); | |
15376 | if (PyErr_Occurred()) SWIG_fail; | |
15377 | } | |
15378 | resultobj = result; | |
15379 | return resultobj; | |
15380 | fail: | |
15381 | return NULL; | |
15382 | } | |
15383 | ||
15384 | ||
c32bde28 | 15385 | static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15386 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15387 | wxFileType *arg1 = (wxFileType *) 0 ; |
15388 | wxIcon *result; | |
15389 | PyObject * obj0 = 0 ; | |
15390 | char *kwnames[] = { | |
15391 | (char *) "self", NULL | |
15392 | }; | |
15393 | ||
15394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15397 | { |
15398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15399 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
15400 | ||
15401 | wxPyEndAllowThreads(__tstate); | |
15402 | if (PyErr_Occurred()) SWIG_fail; | |
15403 | } | |
15afbcd0 | 15404 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
15405 | return resultobj; |
15406 | fail: | |
15407 | return NULL; | |
15408 | } | |
15409 | ||
15410 | ||
c32bde28 | 15411 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15412 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15413 | wxFileType *arg1 = (wxFileType *) 0 ; |
15414 | PyObject *result; | |
15415 | PyObject * obj0 = 0 ; | |
15416 | char *kwnames[] = { | |
15417 | (char *) "self", NULL | |
15418 | }; | |
15419 | ||
15420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15421 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15422 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15423 | { |
15424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15425 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
15426 | ||
15427 | wxPyEndAllowThreads(__tstate); | |
15428 | if (PyErr_Occurred()) SWIG_fail; | |
15429 | } | |
15430 | resultobj = result; | |
15431 | return resultobj; | |
15432 | fail: | |
15433 | return NULL; | |
15434 | } | |
15435 | ||
15436 | ||
c32bde28 | 15437 | static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15438 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15439 | wxFileType *arg1 = (wxFileType *) 0 ; |
15440 | PyObject *result; | |
15441 | PyObject * obj0 = 0 ; | |
15442 | char *kwnames[] = { | |
15443 | (char *) "self", NULL | |
15444 | }; | |
15445 | ||
15446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15447 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15449 | { |
15450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15451 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
15452 | ||
15453 | wxPyEndAllowThreads(__tstate); | |
15454 | if (PyErr_Occurred()) SWIG_fail; | |
15455 | } | |
15456 | resultobj = result; | |
15457 | return resultobj; | |
15458 | fail: | |
15459 | return NULL; | |
15460 | } | |
15461 | ||
15462 | ||
c32bde28 | 15463 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15464 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15465 | wxFileType *arg1 = (wxFileType *) 0 ; |
15466 | wxString *arg2 = 0 ; | |
15467 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15468 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15469 | PyObject *result; | |
ae8162c8 RD |
15470 | bool temp2 = false ; |
15471 | bool temp3 = false ; | |
d14a1e28 RD |
15472 | PyObject * obj0 = 0 ; |
15473 | PyObject * obj1 = 0 ; | |
15474 | PyObject * obj2 = 0 ; | |
15475 | char *kwnames[] = { | |
15476 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
15477 | }; | |
15478 | ||
15479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15482 | { |
15483 | arg2 = wxString_in_helper(obj1); | |
15484 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15485 | temp2 = true; |
d14a1e28 RD |
15486 | } |
15487 | if (obj2) { | |
15488 | { | |
15489 | arg3 = wxString_in_helper(obj2); | |
15490 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15491 | temp3 = true; |
d14a1e28 RD |
15492 | } |
15493 | } | |
15494 | { | |
15495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15496 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
15497 | ||
15498 | wxPyEndAllowThreads(__tstate); | |
15499 | if (PyErr_Occurred()) SWIG_fail; | |
15500 | } | |
15501 | resultobj = result; | |
15502 | { | |
15503 | if (temp2) | |
15504 | delete arg2; | |
15505 | } | |
15506 | { | |
15507 | if (temp3) | |
15508 | delete arg3; | |
15509 | } | |
15510 | return resultobj; | |
15511 | fail: | |
15512 | { | |
15513 | if (temp2) | |
15514 | delete arg2; | |
15515 | } | |
15516 | { | |
15517 | if (temp3) | |
15518 | delete arg3; | |
15519 | } | |
15520 | return NULL; | |
15521 | } | |
15522 | ||
15523 | ||
c32bde28 | 15524 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15525 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15526 | wxFileType *arg1 = (wxFileType *) 0 ; |
15527 | wxString *arg2 = 0 ; | |
15528 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15529 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15530 | PyObject *result; | |
ae8162c8 RD |
15531 | bool temp2 = false ; |
15532 | bool temp3 = false ; | |
d14a1e28 RD |
15533 | PyObject * obj0 = 0 ; |
15534 | PyObject * obj1 = 0 ; | |
15535 | PyObject * obj2 = 0 ; | |
15536 | char *kwnames[] = { | |
15537 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
15538 | }; | |
15539 | ||
15540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15543 | { |
15544 | arg2 = wxString_in_helper(obj1); | |
15545 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15546 | temp2 = true; |
d14a1e28 RD |
15547 | } |
15548 | if (obj2) { | |
15549 | { | |
15550 | arg3 = wxString_in_helper(obj2); | |
15551 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15552 | temp3 = true; |
d14a1e28 RD |
15553 | } |
15554 | } | |
15555 | { | |
15556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15557 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
15558 | ||
15559 | wxPyEndAllowThreads(__tstate); | |
15560 | if (PyErr_Occurred()) SWIG_fail; | |
15561 | } | |
15562 | resultobj = result; | |
15563 | { | |
15564 | if (temp2) | |
15565 | delete arg2; | |
15566 | } | |
15567 | { | |
15568 | if (temp3) | |
15569 | delete arg3; | |
15570 | } | |
15571 | return resultobj; | |
15572 | fail: | |
15573 | { | |
15574 | if (temp2) | |
15575 | delete arg2; | |
15576 | } | |
15577 | { | |
15578 | if (temp3) | |
15579 | delete arg3; | |
15580 | } | |
15581 | return NULL; | |
15582 | } | |
15583 | ||
15584 | ||
c32bde28 | 15585 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15586 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15587 | wxFileType *arg1 = (wxFileType *) 0 ; |
15588 | wxString *arg2 = 0 ; | |
15589 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15590 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15591 | PyObject *result; | |
ae8162c8 RD |
15592 | bool temp2 = false ; |
15593 | bool temp3 = false ; | |
d14a1e28 RD |
15594 | PyObject * obj0 = 0 ; |
15595 | PyObject * obj1 = 0 ; | |
15596 | PyObject * obj2 = 0 ; | |
15597 | char *kwnames[] = { | |
15598 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
15599 | }; | |
15600 | ||
15601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15602 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15603 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15604 | { |
15605 | arg2 = wxString_in_helper(obj1); | |
15606 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15607 | temp2 = true; |
d14a1e28 RD |
15608 | } |
15609 | if (obj2) { | |
15610 | { | |
15611 | arg3 = wxString_in_helper(obj2); | |
15612 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15613 | temp3 = true; |
d14a1e28 RD |
15614 | } |
15615 | } | |
15616 | { | |
15617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15618 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
15619 | ||
15620 | wxPyEndAllowThreads(__tstate); | |
15621 | if (PyErr_Occurred()) SWIG_fail; | |
15622 | } | |
15623 | resultobj = result; | |
15624 | { | |
15625 | if (temp2) | |
15626 | delete arg2; | |
15627 | } | |
15628 | { | |
15629 | if (temp3) | |
15630 | delete arg3; | |
15631 | } | |
15632 | return resultobj; | |
15633 | fail: | |
15634 | { | |
15635 | if (temp2) | |
15636 | delete arg2; | |
15637 | } | |
15638 | { | |
15639 | if (temp3) | |
15640 | delete arg3; | |
15641 | } | |
15642 | return NULL; | |
15643 | } | |
15644 | ||
15645 | ||
c32bde28 | 15646 | static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15647 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15648 | wxFileType *arg1 = (wxFileType *) 0 ; |
15649 | wxString *arg2 = 0 ; | |
15650 | wxString *arg3 = 0 ; | |
ae8162c8 | 15651 | bool arg4 = (bool) true ; |
d14a1e28 | 15652 | bool result; |
ae8162c8 RD |
15653 | bool temp2 = false ; |
15654 | bool temp3 = false ; | |
d14a1e28 RD |
15655 | PyObject * obj0 = 0 ; |
15656 | PyObject * obj1 = 0 ; | |
15657 | PyObject * obj2 = 0 ; | |
15658 | PyObject * obj3 = 0 ; | |
15659 | char *kwnames[] = { | |
15660 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
15661 | }; | |
15662 | ||
15663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
15664 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15665 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15666 | { |
15667 | arg2 = wxString_in_helper(obj1); | |
15668 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15669 | temp2 = true; |
d14a1e28 RD |
15670 | } |
15671 | { | |
15672 | arg3 = wxString_in_helper(obj2); | |
15673 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15674 | temp3 = true; |
d14a1e28 RD |
15675 | } |
15676 | if (obj3) { | |
093d3ff1 | 15677 | { |
32fe5131 | 15678 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
15679 | if (SWIG_arg_fail(4)) SWIG_fail; |
15680 | } | |
d14a1e28 RD |
15681 | } |
15682 | { | |
15683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15684 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
15685 | ||
15686 | wxPyEndAllowThreads(__tstate); | |
15687 | if (PyErr_Occurred()) SWIG_fail; | |
15688 | } | |
4f89f6a3 RD |
15689 | { |
15690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15691 | } | |
d14a1e28 RD |
15692 | { |
15693 | if (temp2) | |
15694 | delete arg2; | |
15695 | } | |
15696 | { | |
15697 | if (temp3) | |
15698 | delete arg3; | |
15699 | } | |
15700 | return resultobj; | |
15701 | fail: | |
15702 | { | |
15703 | if (temp2) | |
15704 | delete arg2; | |
15705 | } | |
15706 | { | |
15707 | if (temp3) | |
15708 | delete arg3; | |
15709 | } | |
15710 | return NULL; | |
15711 | } | |
15712 | ||
15713 | ||
c32bde28 | 15714 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15715 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15716 | wxFileType *arg1 = (wxFileType *) 0 ; |
15717 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15718 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15719 | int arg3 = (int) 0 ; | |
15720 | bool result; | |
ae8162c8 | 15721 | bool temp2 = false ; |
d14a1e28 RD |
15722 | PyObject * obj0 = 0 ; |
15723 | PyObject * obj1 = 0 ; | |
994141e6 | 15724 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15725 | char *kwnames[] = { |
15726 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
15727 | }; | |
15728 | ||
994141e6 | 15729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15730 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15731 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15732 | if (obj1) { |
15733 | { | |
15734 | arg2 = wxString_in_helper(obj1); | |
15735 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15736 | temp2 = true; |
d14a1e28 RD |
15737 | } |
15738 | } | |
994141e6 | 15739 | if (obj2) { |
093d3ff1 | 15740 | { |
32fe5131 | 15741 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
15742 | if (SWIG_arg_fail(3)) SWIG_fail; |
15743 | } | |
994141e6 | 15744 | } |
d14a1e28 RD |
15745 | { |
15746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15747 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
15748 | ||
15749 | wxPyEndAllowThreads(__tstate); | |
15750 | if (PyErr_Occurred()) SWIG_fail; | |
15751 | } | |
4f89f6a3 RD |
15752 | { |
15753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15754 | } | |
d14a1e28 RD |
15755 | { |
15756 | if (temp2) | |
15757 | delete arg2; | |
15758 | } | |
15759 | return resultobj; | |
15760 | fail: | |
15761 | { | |
15762 | if (temp2) | |
15763 | delete arg2; | |
15764 | } | |
15765 | return NULL; | |
15766 | } | |
15767 | ||
15768 | ||
c32bde28 | 15769 | static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15770 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15771 | wxFileType *arg1 = (wxFileType *) 0 ; |
15772 | bool result; | |
15773 | PyObject * obj0 = 0 ; | |
15774 | char *kwnames[] = { | |
15775 | (char *) "self", NULL | |
15776 | }; | |
15777 | ||
15778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
15780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15781 | { |
15782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15783 | result = (bool)(arg1)->Unassociate(); | |
15784 | ||
15785 | wxPyEndAllowThreads(__tstate); | |
15786 | if (PyErr_Occurred()) SWIG_fail; | |
15787 | } | |
4f89f6a3 RD |
15788 | { |
15789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15790 | } | |
d14a1e28 RD |
15791 | return resultobj; |
15792 | fail: | |
15793 | return NULL; | |
15794 | } | |
15795 | ||
15796 | ||
c32bde28 | 15797 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15798 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15799 | wxString *arg1 = 0 ; |
15800 | wxString *arg2 = 0 ; | |
15801 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15802 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15803 | wxString result; | |
ae8162c8 RD |
15804 | bool temp1 = false ; |
15805 | bool temp2 = false ; | |
15806 | bool temp3 = false ; | |
d14a1e28 RD |
15807 | PyObject * obj0 = 0 ; |
15808 | PyObject * obj1 = 0 ; | |
15809 | PyObject * obj2 = 0 ; | |
15810 | char *kwnames[] = { | |
15811 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
15812 | }; | |
15813 | ||
15814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15815 | { | |
15816 | arg1 = wxString_in_helper(obj0); | |
15817 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 15818 | temp1 = true; |
d14a1e28 RD |
15819 | } |
15820 | { | |
15821 | arg2 = wxString_in_helper(obj1); | |
15822 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15823 | temp2 = true; |
d14a1e28 RD |
15824 | } |
15825 | if (obj2) { | |
15826 | { | |
15827 | arg3 = wxString_in_helper(obj2); | |
15828 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15829 | temp3 = true; |
d14a1e28 RD |
15830 | } |
15831 | } | |
15832 | { | |
15833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 15834 | result = wxFileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); |
d14a1e28 RD |
15835 | |
15836 | wxPyEndAllowThreads(__tstate); | |
15837 | if (PyErr_Occurred()) SWIG_fail; | |
15838 | } | |
15839 | { | |
15840 | #if wxUSE_UNICODE | |
15841 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15842 | #else | |
15843 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15844 | #endif | |
15845 | } | |
15846 | { | |
15847 | if (temp1) | |
15848 | delete arg1; | |
15849 | } | |
15850 | { | |
15851 | if (temp2) | |
15852 | delete arg2; | |
15853 | } | |
15854 | { | |
15855 | if (temp3) | |
15856 | delete arg3; | |
15857 | } | |
15858 | return resultobj; | |
15859 | fail: | |
15860 | { | |
15861 | if (temp1) | |
15862 | delete arg1; | |
15863 | } | |
15864 | { | |
15865 | if (temp2) | |
15866 | delete arg2; | |
15867 | } | |
15868 | { | |
15869 | if (temp3) | |
15870 | delete arg3; | |
15871 | } | |
15872 | return NULL; | |
15873 | } | |
15874 | ||
15875 | ||
c32bde28 | 15876 | static PyObject * FileType_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15877 | PyObject *obj; |
15878 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15879 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
15880 | Py_INCREF(obj); | |
15881 | return Py_BuildValue((char *)""); | |
15882 | } | |
c32bde28 | 15883 | static int _wrap_TheMimeTypesManager_set(PyObject *) { |
d14a1e28 RD |
15884 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); |
15885 | return 1; | |
15886 | } | |
15887 | ||
15888 | ||
093d3ff1 | 15889 | static PyObject *_wrap_TheMimeTypesManager_get(void) { |
32fe5131 | 15890 | PyObject *pyobj = NULL; |
d14a1e28 | 15891 | |
15afbcd0 | 15892 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); |
d14a1e28 RD |
15893 | return pyobj; |
15894 | } | |
15895 | ||
15896 | ||
c32bde28 | 15897 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15898 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15899 | wxString *arg1 = 0 ; |
15900 | wxString *arg2 = 0 ; | |
15901 | bool result; | |
ae8162c8 RD |
15902 | bool temp1 = false ; |
15903 | bool temp2 = false ; | |
d14a1e28 RD |
15904 | PyObject * obj0 = 0 ; |
15905 | PyObject * obj1 = 0 ; | |
15906 | char *kwnames[] = { | |
15907 | (char *) "mimeType",(char *) "wildcard", NULL | |
15908 | }; | |
15909 | ||
15910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
15911 | { | |
15912 | arg1 = wxString_in_helper(obj0); | |
15913 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 15914 | temp1 = true; |
d14a1e28 RD |
15915 | } |
15916 | { | |
15917 | arg2 = wxString_in_helper(obj1); | |
15918 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15919 | temp2 = true; |
d14a1e28 RD |
15920 | } |
15921 | { | |
15922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15923 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
15924 | ||
15925 | wxPyEndAllowThreads(__tstate); | |
15926 | if (PyErr_Occurred()) SWIG_fail; | |
15927 | } | |
4f89f6a3 RD |
15928 | { |
15929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15930 | } | |
d14a1e28 RD |
15931 | { |
15932 | if (temp1) | |
15933 | delete arg1; | |
15934 | } | |
15935 | { | |
15936 | if (temp2) | |
15937 | delete arg2; | |
15938 | } | |
15939 | return resultobj; | |
15940 | fail: | |
15941 | { | |
15942 | if (temp1) | |
15943 | delete arg1; | |
15944 | } | |
15945 | { | |
15946 | if (temp2) | |
15947 | delete arg2; | |
15948 | } | |
15949 | return NULL; | |
15950 | } | |
15951 | ||
15952 | ||
c32bde28 | 15953 | static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15954 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15955 | wxMimeTypesManager *result; |
15956 | char *kwnames[] = { | |
15957 | NULL | |
15958 | }; | |
15959 | ||
15960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
15961 | { | |
15962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15963 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
15964 | ||
15965 | wxPyEndAllowThreads(__tstate); | |
15966 | if (PyErr_Occurred()) SWIG_fail; | |
15967 | } | |
15afbcd0 | 15968 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); |
d14a1e28 RD |
15969 | return resultobj; |
15970 | fail: | |
15971 | return NULL; | |
15972 | } | |
15973 | ||
15974 | ||
c32bde28 | 15975 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15976 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15977 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
15978 | int arg2 = (int) wxMAILCAP_ALL ; | |
15979 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15980 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
ae8162c8 | 15981 | bool temp3 = false ; |
d14a1e28 | 15982 | PyObject * obj0 = 0 ; |
994141e6 | 15983 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15984 | PyObject * obj2 = 0 ; |
15985 | char *kwnames[] = { | |
15986 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
15987 | }; | |
15988 | ||
994141e6 | 15989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 15992 | if (obj1) { |
093d3ff1 | 15993 | { |
32fe5131 | 15994 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15995 | if (SWIG_arg_fail(2)) SWIG_fail; |
15996 | } | |
994141e6 | 15997 | } |
d14a1e28 RD |
15998 | if (obj2) { |
15999 | { | |
16000 | arg3 = wxString_in_helper(obj2); | |
16001 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16002 | temp3 = true; |
d14a1e28 RD |
16003 | } |
16004 | } | |
16005 | { | |
16006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16007 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
16008 | ||
16009 | wxPyEndAllowThreads(__tstate); | |
16010 | if (PyErr_Occurred()) SWIG_fail; | |
16011 | } | |
16012 | Py_INCREF(Py_None); resultobj = Py_None; | |
16013 | { | |
16014 | if (temp3) | |
16015 | delete arg3; | |
16016 | } | |
16017 | return resultobj; | |
16018 | fail: | |
16019 | { | |
16020 | if (temp3) | |
16021 | delete arg3; | |
16022 | } | |
16023 | return NULL; | |
16024 | } | |
16025 | ||
16026 | ||
c32bde28 | 16027 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16028 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16029 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16030 | PyObject * obj0 = 0 ; | |
16031 | char *kwnames[] = { | |
16032 | (char *) "self", NULL | |
16033 | }; | |
16034 | ||
16035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16038 | { |
16039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16040 | (arg1)->ClearData(); | |
16041 | ||
16042 | wxPyEndAllowThreads(__tstate); | |
16043 | if (PyErr_Occurred()) SWIG_fail; | |
16044 | } | |
16045 | Py_INCREF(Py_None); resultobj = Py_None; | |
16046 | return resultobj; | |
16047 | fail: | |
16048 | return NULL; | |
16049 | } | |
16050 | ||
16051 | ||
c32bde28 | 16052 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16053 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16054 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16055 | wxString *arg2 = 0 ; | |
16056 | wxFileType *result; | |
ae8162c8 | 16057 | bool temp2 = false ; |
d14a1e28 RD |
16058 | PyObject * obj0 = 0 ; |
16059 | PyObject * obj1 = 0 ; | |
16060 | char *kwnames[] = { | |
16061 | (char *) "self",(char *) "ext", NULL | |
16062 | }; | |
16063 | ||
16064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16065 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16066 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16067 | { |
16068 | arg2 = wxString_in_helper(obj1); | |
16069 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16070 | temp2 = true; |
d14a1e28 RD |
16071 | } |
16072 | { | |
16073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16074 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
16075 | ||
16076 | wxPyEndAllowThreads(__tstate); | |
16077 | if (PyErr_Occurred()) SWIG_fail; | |
16078 | } | |
15afbcd0 | 16079 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
16080 | { |
16081 | if (temp2) | |
16082 | delete arg2; | |
16083 | } | |
16084 | return resultobj; | |
16085 | fail: | |
16086 | { | |
16087 | if (temp2) | |
16088 | delete arg2; | |
16089 | } | |
16090 | return NULL; | |
16091 | } | |
16092 | ||
16093 | ||
c32bde28 | 16094 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16095 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16096 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16097 | wxString *arg2 = 0 ; | |
16098 | wxFileType *result; | |
ae8162c8 | 16099 | bool temp2 = false ; |
d14a1e28 RD |
16100 | PyObject * obj0 = 0 ; |
16101 | PyObject * obj1 = 0 ; | |
16102 | char *kwnames[] = { | |
16103 | (char *) "self",(char *) "mimeType", NULL | |
16104 | }; | |
16105 | ||
16106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16107 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16108 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16109 | { |
16110 | arg2 = wxString_in_helper(obj1); | |
16111 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16112 | temp2 = true; |
d14a1e28 RD |
16113 | } |
16114 | { | |
16115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16116 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
16117 | ||
16118 | wxPyEndAllowThreads(__tstate); | |
16119 | if (PyErr_Occurred()) SWIG_fail; | |
16120 | } | |
15afbcd0 | 16121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
16122 | { |
16123 | if (temp2) | |
16124 | delete arg2; | |
16125 | } | |
16126 | return resultobj; | |
16127 | fail: | |
16128 | { | |
16129 | if (temp2) | |
16130 | delete arg2; | |
16131 | } | |
16132 | return NULL; | |
16133 | } | |
16134 | ||
16135 | ||
c32bde28 | 16136 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16137 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16138 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16139 | wxString *arg2 = 0 ; | |
ae8162c8 | 16140 | bool arg3 = (bool) false ; |
d14a1e28 | 16141 | bool result; |
ae8162c8 | 16142 | bool temp2 = false ; |
d14a1e28 RD |
16143 | PyObject * obj0 = 0 ; |
16144 | PyObject * obj1 = 0 ; | |
16145 | PyObject * obj2 = 0 ; | |
16146 | char *kwnames[] = { | |
16147 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
16148 | }; | |
16149 | ||
16150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
16151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16153 | { |
16154 | arg2 = wxString_in_helper(obj1); | |
16155 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16156 | temp2 = true; |
d14a1e28 RD |
16157 | } |
16158 | if (obj2) { | |
093d3ff1 | 16159 | { |
32fe5131 | 16160 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
16161 | if (SWIG_arg_fail(3)) SWIG_fail; |
16162 | } | |
d14a1e28 RD |
16163 | } |
16164 | { | |
16165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16166 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
16167 | ||
16168 | wxPyEndAllowThreads(__tstate); | |
16169 | if (PyErr_Occurred()) SWIG_fail; | |
16170 | } | |
4f89f6a3 RD |
16171 | { |
16172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16173 | } | |
d14a1e28 RD |
16174 | { |
16175 | if (temp2) | |
16176 | delete arg2; | |
16177 | } | |
16178 | return resultobj; | |
16179 | fail: | |
16180 | { | |
16181 | if (temp2) | |
16182 | delete arg2; | |
16183 | } | |
16184 | return NULL; | |
16185 | } | |
16186 | ||
16187 | ||
c32bde28 | 16188 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16189 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16190 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16191 | wxString *arg2 = 0 ; | |
16192 | bool result; | |
ae8162c8 | 16193 | bool temp2 = false ; |
d14a1e28 RD |
16194 | PyObject * obj0 = 0 ; |
16195 | PyObject * obj1 = 0 ; | |
16196 | char *kwnames[] = { | |
16197 | (char *) "self",(char *) "filename", NULL | |
16198 | }; | |
16199 | ||
16200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16203 | { |
16204 | arg2 = wxString_in_helper(obj1); | |
16205 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16206 | temp2 = true; |
d14a1e28 RD |
16207 | } |
16208 | { | |
16209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16210 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
16211 | ||
16212 | wxPyEndAllowThreads(__tstate); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | } | |
4f89f6a3 RD |
16215 | { |
16216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16217 | } | |
d14a1e28 RD |
16218 | { |
16219 | if (temp2) | |
16220 | delete arg2; | |
16221 | } | |
16222 | return resultobj; | |
16223 | fail: | |
16224 | { | |
16225 | if (temp2) | |
16226 | delete arg2; | |
16227 | } | |
16228 | return NULL; | |
16229 | } | |
16230 | ||
16231 | ||
c32bde28 | 16232 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16233 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16234 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16235 | PyObject *result; | |
16236 | PyObject * obj0 = 0 ; | |
16237 | char *kwnames[] = { | |
16238 | (char *) "self", NULL | |
16239 | }; | |
16240 | ||
16241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16244 | { |
16245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16246 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
16247 | ||
16248 | wxPyEndAllowThreads(__tstate); | |
16249 | if (PyErr_Occurred()) SWIG_fail; | |
16250 | } | |
16251 | resultobj = result; | |
16252 | return resultobj; | |
16253 | fail: | |
16254 | return NULL; | |
16255 | } | |
16256 | ||
16257 | ||
c32bde28 | 16258 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16259 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16260 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16261 | wxFileTypeInfo *arg2 = 0 ; | |
16262 | PyObject * obj0 = 0 ; | |
16263 | PyObject * obj1 = 0 ; | |
16264 | char *kwnames[] = { | |
16265 | (char *) "self",(char *) "ft", NULL | |
16266 | }; | |
16267 | ||
16268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16271 | { | |
16272 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
16273 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16274 | if (arg2 == NULL) { | |
16275 | SWIG_null_ref("wxFileTypeInfo"); | |
16276 | } | |
16277 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16278 | } |
16279 | { | |
16280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16281 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
16282 | ||
16283 | wxPyEndAllowThreads(__tstate); | |
16284 | if (PyErr_Occurred()) SWIG_fail; | |
16285 | } | |
16286 | Py_INCREF(Py_None); resultobj = Py_None; | |
16287 | return resultobj; | |
16288 | fail: | |
16289 | return NULL; | |
16290 | } | |
16291 | ||
16292 | ||
c32bde28 | 16293 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16294 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16295 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16296 | wxFileTypeInfo *arg2 = 0 ; | |
16297 | wxFileType *result; | |
16298 | PyObject * obj0 = 0 ; | |
16299 | PyObject * obj1 = 0 ; | |
16300 | char *kwnames[] = { | |
16301 | (char *) "self",(char *) "ftInfo", NULL | |
16302 | }; | |
16303 | ||
16304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16307 | { | |
16308 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
16309 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16310 | if (arg2 == NULL) { | |
16311 | SWIG_null_ref("wxFileTypeInfo"); | |
16312 | } | |
16313 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16314 | } |
16315 | { | |
16316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16317 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
16318 | ||
16319 | wxPyEndAllowThreads(__tstate); | |
16320 | if (PyErr_Occurred()) SWIG_fail; | |
16321 | } | |
15afbcd0 | 16322 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
16323 | return resultobj; |
16324 | fail: | |
16325 | return NULL; | |
16326 | } | |
16327 | ||
16328 | ||
c32bde28 | 16329 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16330 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16331 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16332 | wxFileType *arg2 = (wxFileType *) 0 ; | |
16333 | bool result; | |
16334 | PyObject * obj0 = 0 ; | |
16335 | PyObject * obj1 = 0 ; | |
16336 | char *kwnames[] = { | |
16337 | (char *) "self",(char *) "ft", NULL | |
16338 | }; | |
16339 | ||
16340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16343 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); | |
16344 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16345 | { |
16346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16347 | result = (bool)(arg1)->Unassociate(arg2); | |
16348 | ||
16349 | wxPyEndAllowThreads(__tstate); | |
16350 | if (PyErr_Occurred()) SWIG_fail; | |
16351 | } | |
4f89f6a3 RD |
16352 | { |
16353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16354 | } | |
d14a1e28 RD |
16355 | return resultobj; |
16356 | fail: | |
16357 | return NULL; | |
16358 | } | |
16359 | ||
16360 | ||
c32bde28 | 16361 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16362 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16363 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; |
16364 | PyObject * obj0 = 0 ; | |
16365 | char *kwnames[] = { | |
16366 | (char *) "self", NULL | |
16367 | }; | |
16368 | ||
16369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
16371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16372 | { |
16373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16374 | delete arg1; | |
16375 | ||
16376 | wxPyEndAllowThreads(__tstate); | |
16377 | if (PyErr_Occurred()) SWIG_fail; | |
16378 | } | |
16379 | Py_INCREF(Py_None); resultobj = Py_None; | |
16380 | return resultobj; | |
16381 | fail: | |
16382 | return NULL; | |
16383 | } | |
16384 | ||
16385 | ||
c32bde28 | 16386 | static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16387 | PyObject *obj; |
16388 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16389 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
16390 | Py_INCREF(obj); | |
16391 | return Py_BuildValue((char *)""); | |
16392 | } | |
c32bde28 | 16393 | static int _wrap_ART_TOOLBAR_set(PyObject *) { |
d14a1e28 RD |
16394 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); |
16395 | return 1; | |
16396 | } | |
16397 | ||
16398 | ||
093d3ff1 | 16399 | static PyObject *_wrap_ART_TOOLBAR_get(void) { |
32fe5131 | 16400 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16401 | |
16402 | { | |
16403 | #if wxUSE_UNICODE | |
16404 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
16405 | #else | |
16406 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
16407 | #endif | |
16408 | } | |
16409 | return pyobj; | |
16410 | } | |
16411 | ||
16412 | ||
c32bde28 | 16413 | static int _wrap_ART_MENU_set(PyObject *) { |
d14a1e28 RD |
16414 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); |
16415 | return 1; | |
16416 | } | |
16417 | ||
16418 | ||
093d3ff1 | 16419 | static PyObject *_wrap_ART_MENU_get(void) { |
32fe5131 | 16420 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16421 | |
16422 | { | |
16423 | #if wxUSE_UNICODE | |
16424 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
16425 | #else | |
16426 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
16427 | #endif | |
16428 | } | |
16429 | return pyobj; | |
16430 | } | |
16431 | ||
16432 | ||
c32bde28 | 16433 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { |
d14a1e28 RD |
16434 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); |
16435 | return 1; | |
16436 | } | |
16437 | ||
16438 | ||
093d3ff1 | 16439 | static PyObject *_wrap_ART_FRAME_ICON_get(void) { |
32fe5131 | 16440 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16441 | |
16442 | { | |
16443 | #if wxUSE_UNICODE | |
16444 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
16445 | #else | |
16446 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
16447 | #endif | |
16448 | } | |
16449 | return pyobj; | |
16450 | } | |
16451 | ||
16452 | ||
c32bde28 | 16453 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { |
d14a1e28 RD |
16454 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); |
16455 | return 1; | |
16456 | } | |
16457 | ||
16458 | ||
093d3ff1 | 16459 | static PyObject *_wrap_ART_CMN_DIALOG_get(void) { |
32fe5131 | 16460 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16461 | |
16462 | { | |
16463 | #if wxUSE_UNICODE | |
16464 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
16465 | #else | |
16466 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
16467 | #endif | |
16468 | } | |
16469 | return pyobj; | |
16470 | } | |
16471 | ||
16472 | ||
c32bde28 | 16473 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { |
d14a1e28 RD |
16474 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); |
16475 | return 1; | |
16476 | } | |
16477 | ||
16478 | ||
093d3ff1 | 16479 | static PyObject *_wrap_ART_HELP_BROWSER_get(void) { |
32fe5131 | 16480 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16481 | |
16482 | { | |
16483 | #if wxUSE_UNICODE | |
16484 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
16485 | #else | |
16486 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
16487 | #endif | |
16488 | } | |
16489 | return pyobj; | |
16490 | } | |
16491 | ||
16492 | ||
c32bde28 | 16493 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { |
d14a1e28 RD |
16494 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); |
16495 | return 1; | |
16496 | } | |
16497 | ||
16498 | ||
093d3ff1 | 16499 | static PyObject *_wrap_ART_MESSAGE_BOX_get(void) { |
32fe5131 | 16500 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16501 | |
16502 | { | |
16503 | #if wxUSE_UNICODE | |
16504 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
16505 | #else | |
16506 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
16507 | #endif | |
16508 | } | |
16509 | return pyobj; | |
16510 | } | |
16511 | ||
16512 | ||
c32bde28 | 16513 | static int _wrap_ART_BUTTON_set(PyObject *) { |
4cf4100f RD |
16514 | PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only."); |
16515 | return 1; | |
16516 | } | |
16517 | ||
16518 | ||
093d3ff1 | 16519 | static PyObject *_wrap_ART_BUTTON_get(void) { |
32fe5131 | 16520 | PyObject *pyobj = NULL; |
4cf4100f RD |
16521 | |
16522 | { | |
16523 | #if wxUSE_UNICODE | |
16524 | pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
16525 | #else | |
16526 | pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
16527 | #endif | |
16528 | } | |
16529 | return pyobj; | |
16530 | } | |
16531 | ||
16532 | ||
c32bde28 | 16533 | static int _wrap_ART_OTHER_set(PyObject *) { |
d14a1e28 RD |
16534 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); |
16535 | return 1; | |
16536 | } | |
16537 | ||
16538 | ||
093d3ff1 | 16539 | static PyObject *_wrap_ART_OTHER_get(void) { |
32fe5131 | 16540 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16541 | |
16542 | { | |
16543 | #if wxUSE_UNICODE | |
16544 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
16545 | #else | |
16546 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
16547 | #endif | |
16548 | } | |
16549 | return pyobj; | |
16550 | } | |
16551 | ||
16552 | ||
c32bde28 | 16553 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { |
d14a1e28 RD |
16554 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); |
16555 | return 1; | |
16556 | } | |
16557 | ||
16558 | ||
093d3ff1 | 16559 | static PyObject *_wrap_ART_ADD_BOOKMARK_get(void) { |
32fe5131 | 16560 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16561 | |
16562 | { | |
16563 | #if wxUSE_UNICODE | |
16564 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
16565 | #else | |
16566 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
16567 | #endif | |
16568 | } | |
16569 | return pyobj; | |
16570 | } | |
16571 | ||
16572 | ||
c32bde28 | 16573 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { |
d14a1e28 RD |
16574 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); |
16575 | return 1; | |
16576 | } | |
16577 | ||
16578 | ||
093d3ff1 | 16579 | static PyObject *_wrap_ART_DEL_BOOKMARK_get(void) { |
32fe5131 | 16580 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16581 | |
16582 | { | |
16583 | #if wxUSE_UNICODE | |
16584 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
16585 | #else | |
16586 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
16587 | #endif | |
16588 | } | |
16589 | return pyobj; | |
16590 | } | |
16591 | ||
16592 | ||
c32bde28 | 16593 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { |
d14a1e28 RD |
16594 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); |
16595 | return 1; | |
16596 | } | |
16597 | ||
16598 | ||
093d3ff1 | 16599 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get(void) { |
32fe5131 | 16600 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16601 | |
16602 | { | |
16603 | #if wxUSE_UNICODE | |
16604 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
16605 | #else | |
16606 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
16607 | #endif | |
16608 | } | |
16609 | return pyobj; | |
16610 | } | |
16611 | ||
16612 | ||
c32bde28 | 16613 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { |
d14a1e28 RD |
16614 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); |
16615 | return 1; | |
16616 | } | |
16617 | ||
16618 | ||
093d3ff1 | 16619 | static PyObject *_wrap_ART_HELP_SETTINGS_get(void) { |
32fe5131 | 16620 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16621 | |
16622 | { | |
16623 | #if wxUSE_UNICODE | |
16624 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
16625 | #else | |
16626 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
16627 | #endif | |
16628 | } | |
16629 | return pyobj; | |
16630 | } | |
16631 | ||
16632 | ||
c32bde28 | 16633 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { |
d14a1e28 RD |
16634 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); |
16635 | return 1; | |
16636 | } | |
16637 | ||
16638 | ||
093d3ff1 | 16639 | static PyObject *_wrap_ART_HELP_BOOK_get(void) { |
32fe5131 | 16640 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16641 | |
16642 | { | |
16643 | #if wxUSE_UNICODE | |
16644 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
16645 | #else | |
16646 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
16647 | #endif | |
16648 | } | |
16649 | return pyobj; | |
16650 | } | |
16651 | ||
16652 | ||
c32bde28 | 16653 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { |
d14a1e28 RD |
16654 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); |
16655 | return 1; | |
16656 | } | |
16657 | ||
16658 | ||
093d3ff1 | 16659 | static PyObject *_wrap_ART_HELP_FOLDER_get(void) { |
32fe5131 | 16660 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16661 | |
16662 | { | |
16663 | #if wxUSE_UNICODE | |
16664 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
16665 | #else | |
16666 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
16667 | #endif | |
16668 | } | |
16669 | return pyobj; | |
16670 | } | |
16671 | ||
16672 | ||
c32bde28 | 16673 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { |
d14a1e28 RD |
16674 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); |
16675 | return 1; | |
16676 | } | |
16677 | ||
16678 | ||
093d3ff1 | 16679 | static PyObject *_wrap_ART_HELP_PAGE_get(void) { |
32fe5131 | 16680 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16681 | |
16682 | { | |
16683 | #if wxUSE_UNICODE | |
16684 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
16685 | #else | |
16686 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
16687 | #endif | |
16688 | } | |
16689 | return pyobj; | |
16690 | } | |
16691 | ||
16692 | ||
c32bde28 | 16693 | static int _wrap_ART_GO_BACK_set(PyObject *) { |
d14a1e28 RD |
16694 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); |
16695 | return 1; | |
16696 | } | |
16697 | ||
16698 | ||
093d3ff1 | 16699 | static PyObject *_wrap_ART_GO_BACK_get(void) { |
32fe5131 | 16700 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16701 | |
16702 | { | |
16703 | #if wxUSE_UNICODE | |
16704 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
16705 | #else | |
16706 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
16707 | #endif | |
16708 | } | |
16709 | return pyobj; | |
16710 | } | |
16711 | ||
16712 | ||
c32bde28 | 16713 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { |
d14a1e28 RD |
16714 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); |
16715 | return 1; | |
16716 | } | |
16717 | ||
16718 | ||
093d3ff1 | 16719 | static PyObject *_wrap_ART_GO_FORWARD_get(void) { |
32fe5131 | 16720 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16721 | |
16722 | { | |
16723 | #if wxUSE_UNICODE | |
16724 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
16725 | #else | |
16726 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
16727 | #endif | |
16728 | } | |
16729 | return pyobj; | |
16730 | } | |
16731 | ||
16732 | ||
c32bde28 | 16733 | static int _wrap_ART_GO_UP_set(PyObject *) { |
d14a1e28 RD |
16734 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); |
16735 | return 1; | |
16736 | } | |
16737 | ||
16738 | ||
093d3ff1 | 16739 | static PyObject *_wrap_ART_GO_UP_get(void) { |
32fe5131 | 16740 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16741 | |
16742 | { | |
16743 | #if wxUSE_UNICODE | |
16744 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
16745 | #else | |
16746 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
16747 | #endif | |
16748 | } | |
16749 | return pyobj; | |
16750 | } | |
16751 | ||
16752 | ||
c32bde28 | 16753 | static int _wrap_ART_GO_DOWN_set(PyObject *) { |
d14a1e28 RD |
16754 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); |
16755 | return 1; | |
16756 | } | |
16757 | ||
16758 | ||
093d3ff1 | 16759 | static PyObject *_wrap_ART_GO_DOWN_get(void) { |
32fe5131 | 16760 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16761 | |
16762 | { | |
16763 | #if wxUSE_UNICODE | |
16764 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
16765 | #else | |
16766 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
16767 | #endif | |
16768 | } | |
16769 | return pyobj; | |
16770 | } | |
16771 | ||
16772 | ||
c32bde28 | 16773 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { |
d14a1e28 RD |
16774 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); |
16775 | return 1; | |
16776 | } | |
16777 | ||
16778 | ||
093d3ff1 | 16779 | static PyObject *_wrap_ART_GO_TO_PARENT_get(void) { |
32fe5131 | 16780 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16781 | |
16782 | { | |
16783 | #if wxUSE_UNICODE | |
16784 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
16785 | #else | |
16786 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
16787 | #endif | |
16788 | } | |
16789 | return pyobj; | |
16790 | } | |
16791 | ||
16792 | ||
c32bde28 | 16793 | static int _wrap_ART_GO_HOME_set(PyObject *) { |
d14a1e28 RD |
16794 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); |
16795 | return 1; | |
16796 | } | |
16797 | ||
16798 | ||
093d3ff1 | 16799 | static PyObject *_wrap_ART_GO_HOME_get(void) { |
32fe5131 | 16800 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16801 | |
16802 | { | |
16803 | #if wxUSE_UNICODE | |
16804 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
16805 | #else | |
16806 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
16807 | #endif | |
16808 | } | |
16809 | return pyobj; | |
16810 | } | |
16811 | ||
16812 | ||
c32bde28 | 16813 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { |
d14a1e28 RD |
16814 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); |
16815 | return 1; | |
16816 | } | |
16817 | ||
16818 | ||
093d3ff1 | 16819 | static PyObject *_wrap_ART_FILE_OPEN_get(void) { |
32fe5131 | 16820 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16821 | |
16822 | { | |
16823 | #if wxUSE_UNICODE | |
16824 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
16825 | #else | |
16826 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
16827 | #endif | |
16828 | } | |
16829 | return pyobj; | |
16830 | } | |
16831 | ||
16832 | ||
0c243d93 RD |
16833 | static int _wrap_ART_FILE_SAVE_set(PyObject *) { |
16834 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE is read-only."); | |
16835 | return 1; | |
16836 | } | |
16837 | ||
16838 | ||
16839 | static PyObject *_wrap_ART_FILE_SAVE_get(void) { | |
32fe5131 | 16840 | PyObject *pyobj = NULL; |
0c243d93 RD |
16841 | |
16842 | { | |
16843 | #if wxUSE_UNICODE | |
16844 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len()); | |
16845 | #else | |
16846 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len()); | |
16847 | #endif | |
16848 | } | |
16849 | return pyobj; | |
16850 | } | |
16851 | ||
16852 | ||
16853 | static int _wrap_ART_FILE_SAVE_AS_set(PyObject *) { | |
16854 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE_AS is read-only."); | |
16855 | return 1; | |
16856 | } | |
16857 | ||
16858 | ||
16859 | static PyObject *_wrap_ART_FILE_SAVE_AS_get(void) { | |
32fe5131 | 16860 | PyObject *pyobj = NULL; |
0c243d93 RD |
16861 | |
16862 | { | |
16863 | #if wxUSE_UNICODE | |
16864 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len()); | |
16865 | #else | |
16866 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len()); | |
16867 | #endif | |
16868 | } | |
16869 | return pyobj; | |
16870 | } | |
16871 | ||
16872 | ||
c32bde28 | 16873 | static int _wrap_ART_PRINT_set(PyObject *) { |
d14a1e28 RD |
16874 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); |
16875 | return 1; | |
16876 | } | |
16877 | ||
16878 | ||
093d3ff1 | 16879 | static PyObject *_wrap_ART_PRINT_get(void) { |
32fe5131 | 16880 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16881 | |
16882 | { | |
16883 | #if wxUSE_UNICODE | |
16884 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
16885 | #else | |
16886 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
16887 | #endif | |
16888 | } | |
16889 | return pyobj; | |
16890 | } | |
16891 | ||
16892 | ||
c32bde28 | 16893 | static int _wrap_ART_HELP_set(PyObject *) { |
d14a1e28 RD |
16894 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); |
16895 | return 1; | |
16896 | } | |
16897 | ||
16898 | ||
093d3ff1 | 16899 | static PyObject *_wrap_ART_HELP_get(void) { |
32fe5131 | 16900 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16901 | |
16902 | { | |
16903 | #if wxUSE_UNICODE | |
16904 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
16905 | #else | |
16906 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
16907 | #endif | |
16908 | } | |
16909 | return pyobj; | |
16910 | } | |
16911 | ||
16912 | ||
c32bde28 | 16913 | static int _wrap_ART_TIP_set(PyObject *) { |
d14a1e28 RD |
16914 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); |
16915 | return 1; | |
16916 | } | |
16917 | ||
16918 | ||
093d3ff1 | 16919 | static PyObject *_wrap_ART_TIP_get(void) { |
32fe5131 | 16920 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16921 | |
16922 | { | |
16923 | #if wxUSE_UNICODE | |
16924 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
16925 | #else | |
16926 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
16927 | #endif | |
16928 | } | |
16929 | return pyobj; | |
16930 | } | |
16931 | ||
16932 | ||
c32bde28 | 16933 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { |
d14a1e28 RD |
16934 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); |
16935 | return 1; | |
16936 | } | |
16937 | ||
16938 | ||
093d3ff1 | 16939 | static PyObject *_wrap_ART_REPORT_VIEW_get(void) { |
32fe5131 | 16940 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16941 | |
16942 | { | |
16943 | #if wxUSE_UNICODE | |
16944 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
16945 | #else | |
16946 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
16947 | #endif | |
16948 | } | |
16949 | return pyobj; | |
16950 | } | |
16951 | ||
16952 | ||
c32bde28 | 16953 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { |
d14a1e28 RD |
16954 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); |
16955 | return 1; | |
16956 | } | |
16957 | ||
16958 | ||
093d3ff1 | 16959 | static PyObject *_wrap_ART_LIST_VIEW_get(void) { |
32fe5131 | 16960 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16961 | |
16962 | { | |
16963 | #if wxUSE_UNICODE | |
16964 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
16965 | #else | |
16966 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
16967 | #endif | |
16968 | } | |
16969 | return pyobj; | |
16970 | } | |
16971 | ||
16972 | ||
c32bde28 | 16973 | static int _wrap_ART_NEW_DIR_set(PyObject *) { |
d14a1e28 RD |
16974 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); |
16975 | return 1; | |
16976 | } | |
16977 | ||
16978 | ||
093d3ff1 | 16979 | static PyObject *_wrap_ART_NEW_DIR_get(void) { |
32fe5131 | 16980 | PyObject *pyobj = NULL; |
d14a1e28 RD |
16981 | |
16982 | { | |
16983 | #if wxUSE_UNICODE | |
16984 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
16985 | #else | |
16986 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
16987 | #endif | |
16988 | } | |
16989 | return pyobj; | |
16990 | } | |
16991 | ||
16992 | ||
f78cc896 RD |
16993 | static int _wrap_ART_HARDDISK_set(PyObject *) { |
16994 | PyErr_SetString(PyExc_TypeError,"Variable ART_HARDDISK is read-only."); | |
16995 | return 1; | |
16996 | } | |
16997 | ||
16998 | ||
093d3ff1 | 16999 | static PyObject *_wrap_ART_HARDDISK_get(void) { |
32fe5131 | 17000 | PyObject *pyobj = NULL; |
f78cc896 RD |
17001 | |
17002 | { | |
17003 | #if wxUSE_UNICODE | |
17004 | pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
17005 | #else | |
17006 | pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
17007 | #endif | |
17008 | } | |
17009 | return pyobj; | |
17010 | } | |
17011 | ||
17012 | ||
17013 | static int _wrap_ART_FLOPPY_set(PyObject *) { | |
17014 | PyErr_SetString(PyExc_TypeError,"Variable ART_FLOPPY is read-only."); | |
17015 | return 1; | |
17016 | } | |
17017 | ||
17018 | ||
093d3ff1 | 17019 | static PyObject *_wrap_ART_FLOPPY_get(void) { |
32fe5131 | 17020 | PyObject *pyobj = NULL; |
f78cc896 RD |
17021 | |
17022 | { | |
17023 | #if wxUSE_UNICODE | |
17024 | pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
17025 | #else | |
17026 | pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
17027 | #endif | |
17028 | } | |
17029 | return pyobj; | |
17030 | } | |
17031 | ||
17032 | ||
17033 | static int _wrap_ART_CDROM_set(PyObject *) { | |
17034 | PyErr_SetString(PyExc_TypeError,"Variable ART_CDROM is read-only."); | |
17035 | return 1; | |
17036 | } | |
17037 | ||
17038 | ||
093d3ff1 | 17039 | static PyObject *_wrap_ART_CDROM_get(void) { |
32fe5131 | 17040 | PyObject *pyobj = NULL; |
f78cc896 RD |
17041 | |
17042 | { | |
17043 | #if wxUSE_UNICODE | |
17044 | pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
17045 | #else | |
17046 | pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
17047 | #endif | |
17048 | } | |
17049 | return pyobj; | |
17050 | } | |
17051 | ||
17052 | ||
17053 | static int _wrap_ART_REMOVABLE_set(PyObject *) { | |
17054 | PyErr_SetString(PyExc_TypeError,"Variable ART_REMOVABLE is read-only."); | |
17055 | return 1; | |
17056 | } | |
17057 | ||
17058 | ||
093d3ff1 | 17059 | static PyObject *_wrap_ART_REMOVABLE_get(void) { |
32fe5131 | 17060 | PyObject *pyobj = NULL; |
f78cc896 RD |
17061 | |
17062 | { | |
17063 | #if wxUSE_UNICODE | |
17064 | pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
17065 | #else | |
17066 | pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
17067 | #endif | |
17068 | } | |
17069 | return pyobj; | |
17070 | } | |
17071 | ||
17072 | ||
c32bde28 | 17073 | static int _wrap_ART_FOLDER_set(PyObject *) { |
d14a1e28 RD |
17074 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); |
17075 | return 1; | |
17076 | } | |
17077 | ||
17078 | ||
093d3ff1 | 17079 | static PyObject *_wrap_ART_FOLDER_get(void) { |
32fe5131 | 17080 | PyObject *pyobj = NULL; |
d14a1e28 RD |
17081 | |
17082 | { | |
17083 | #if wxUSE_UNICODE | |
17084 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
17085 | #else | |
17086 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
17087 | #endif | |
17088 | } | |
17089 | return pyobj; | |
17090 | } | |
17091 | ||
17092 | ||
f78cc896 RD |
17093 | static int _wrap_ART_FOLDER_OPEN_set(PyObject *) { |
17094 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER_OPEN is read-only."); | |
17095 | return 1; | |
17096 | } | |
17097 | ||
17098 | ||
093d3ff1 | 17099 | static PyObject *_wrap_ART_FOLDER_OPEN_get(void) { |
32fe5131 | 17100 | PyObject *pyobj = NULL; |
f78cc896 RD |
17101 | |
17102 | { | |
17103 | #if wxUSE_UNICODE | |
17104 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
17105 | #else | |
17106 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
17107 | #endif | |
17108 | } | |
17109 | return pyobj; | |
17110 | } | |
17111 | ||
17112 | ||
c32bde28 | 17113 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { |
d14a1e28 RD |
17114 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); |
17115 | return 1; | |
17116 | } | |
17117 | ||
17118 | ||
093d3ff1 | 17119 | static PyObject *_wrap_ART_GO_DIR_UP_get(void) { |
32fe5131 | 17120 | PyObject *pyobj = NULL; |
d14a1e28 RD |
17121 | |
17122 | { | |
17123 | #if wxUSE_UNICODE | |
17124 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
17125 | #else | |
17126 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
17127 | #endif | |
17128 | } | |
17129 | return pyobj; | |
17130 | } | |
17131 | ||
17132 | ||
c32bde28 | 17133 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { |
d14a1e28 RD |
17134 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); |
17135 | return 1; | |
17136 | } | |
17137 | ||
17138 | ||
093d3ff1 | 17139 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get(void) { |
32fe5131 | 17140 | PyObject *pyobj = NULL; |
d14a1e28 RD |
17141 | |
17142 | { | |
17143 | #if wxUSE_UNICODE | |
17144 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
17145 | #else | |
17146 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
17147 | #endif | |
17148 | } | |
17149 | return pyobj; | |
17150 | } | |
17151 | ||
17152 | ||
c32bde28 | 17153 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { |
d14a1e28 RD |
17154 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); |
17155 | return 1; | |
17156 | } | |
17157 | ||
17158 | ||
093d3ff1 | 17159 | static PyObject *_wrap_ART_NORMAL_FILE_get(void) { |
32fe5131 | 17160 | PyObject *pyobj = NULL; |
d14a1e28 RD |
17161 | |
17162 | { | |
17163 | #if wxUSE_UNICODE | |
17164 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
17165 | #else | |
17166 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
17167 | #endif | |
17168 | } | |
17169 | return pyobj; | |
17170 | } | |
17171 | ||
17172 | ||
c32bde28 | 17173 | static int _wrap_ART_TICK_MARK_set(PyObject *) { |
d14a1e28 RD |
17174 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); |
17175 | return 1; | |
17176 | } | |
17177 | ||
17178 | ||
093d3ff1 | 17179 | static PyObject *_wrap_ART_TICK_MARK_get(void) { |
32fe5131 | 17180 | PyObject *pyobj = NULL; |
d14a1e28 RD |
17181 | |
17182 | { | |
17183 | #if wxUSE_UNICODE | |
17184 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
17185 | #else | |
17186 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
17187 | #endif | |
17188 | } | |
17189 | return pyobj; | |
17190 | } | |
17191 | ||
17192 | ||
c32bde28 | 17193 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { |
d14a1e28 RD |
17194 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); |
17195 | return 1; | |
17196 | } | |
17197 | ||
17198 | ||
093d3ff1 | 17199 | static PyObject *_wrap_ART_CROSS_MARK_get(void) { |
32fe5131 | 17200 | PyObject *pyobj = NULL; |
d14a1e28 RD |
17201 | |
17202 | { | |
17203 | #if wxUSE_UNICODE | |
17204 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
17205 | #else | |
17206 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
17207 | #endif | |
17208 | } | |
17209 | return pyobj; | |
17210 | } | |
17211 | ||
17212 | ||
c32bde28 | 17213 | static int _wrap_ART_ERROR_set(PyObject *) { |
d14a1e28 RD |
17214 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); |
17215 | return 1; | |
17216 | } | |
17217 | ||
17218 | ||
093d3ff1 | 17219 | static PyObject *_wrap_ART_ERROR_get(void) { |
32fe5131 | 17220 | PyObject *pyobj = NULL; |
d14a1e28 RD |
17221 | |
17222 | { | |
17223 | #if wxUSE_UNICODE | |
17224 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
17225 | #else | |
17226 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
17227 | #endif | |
17228 | } | |
17229 | return pyobj; | |
17230 | } | |
17231 | ||
17232 | ||
c32bde28 | 17233 | static int _wrap_ART_QUESTION_set(PyObject *) { |
d14a1e28 RD |
17234 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); |
17235 | return 1; | |
17236 | } | |
17237 | ||
17238 | ||
093d3ff1 | 17239 | static PyObject *_wrap_ART_QUESTION_get(void) { |
32fe5131 | 17240 | PyObject *pyobj = NULL; |
d14a1e28 RD |
17241 | |
17242 | { | |
17243 | #if wxUSE_UNICODE | |
17244 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
17245 | #else | |
17246 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
17247 | #endif | |
17248 | } | |
17249 | return pyobj; | |
17250 | } | |
17251 | ||
17252 | ||
c32bde28 | 17253 | static int _wrap_ART_WARNING_set(PyObject *) { |
d14a1e28 RD |
17254 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); |
17255 | return 1; | |
17256 | } | |
17257 | ||
17258 | ||
093d3ff1 | 17259 | static PyObject *_wrap_ART_WARNING_get(void) { |
32fe5131 | 17260 | PyObject *pyobj = NULL; |
d14a1e28 RD |
17261 | |
17262 | { | |
17263 | #if wxUSE_UNICODE | |
17264 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
17265 | #else | |
17266 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
17267 | #endif | |
17268 | } | |
17269 | return pyobj; | |
17270 | } | |
17271 | ||
17272 | ||
c32bde28 | 17273 | static int _wrap_ART_INFORMATION_set(PyObject *) { |
d14a1e28 RD |
17274 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); |
17275 | return 1; | |
17276 | } | |
17277 | ||
17278 | ||
093d3ff1 | 17279 | static PyObject *_wrap_ART_INFORMATION_get(void) { |
32fe5131 | 17280 | PyObject *pyobj = NULL; |
d14a1e28 RD |
17281 | |
17282 | { | |
17283 | #if wxUSE_UNICODE | |
17284 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
17285 | #else | |
17286 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
17287 | #endif | |
17288 | } | |
17289 | return pyobj; | |
17290 | } | |
17291 | ||
17292 | ||
c32bde28 | 17293 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { |
d14a1e28 RD |
17294 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); |
17295 | return 1; | |
17296 | } | |
17297 | ||
17298 | ||
093d3ff1 | 17299 | static PyObject *_wrap_ART_MISSING_IMAGE_get(void) { |
32fe5131 | 17300 | PyObject *pyobj = NULL; |
d14a1e28 RD |
17301 | |
17302 | { | |
17303 | #if wxUSE_UNICODE | |
17304 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
17305 | #else | |
17306 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
17307 | #endif | |
17308 | } | |
17309 | return pyobj; | |
17310 | } | |
17311 | ||
17312 | ||
0c243d93 RD |
17313 | static int _wrap_ART_COPY_set(PyObject *) { |
17314 | PyErr_SetString(PyExc_TypeError,"Variable ART_COPY is read-only."); | |
17315 | return 1; | |
17316 | } | |
17317 | ||
17318 | ||
17319 | static PyObject *_wrap_ART_COPY_get(void) { | |
32fe5131 | 17320 | PyObject *pyobj = NULL; |
0c243d93 RD |
17321 | |
17322 | { | |
17323 | #if wxUSE_UNICODE | |
17324 | pyobj = PyUnicode_FromWideChar((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len()); | |
17325 | #else | |
17326 | pyobj = PyString_FromStringAndSize((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len()); | |
17327 | #endif | |
17328 | } | |
17329 | return pyobj; | |
17330 | } | |
17331 | ||
17332 | ||
17333 | static int _wrap_ART_CUT_set(PyObject *) { | |
17334 | PyErr_SetString(PyExc_TypeError,"Variable ART_CUT is read-only."); | |
17335 | return 1; | |
17336 | } | |
17337 | ||
17338 | ||
17339 | static PyObject *_wrap_ART_CUT_get(void) { | |
32fe5131 | 17340 | PyObject *pyobj = NULL; |
0c243d93 RD |
17341 | |
17342 | { | |
17343 | #if wxUSE_UNICODE | |
17344 | pyobj = PyUnicode_FromWideChar((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len()); | |
17345 | #else | |
17346 | pyobj = PyString_FromStringAndSize((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len()); | |
17347 | #endif | |
17348 | } | |
17349 | return pyobj; | |
17350 | } | |
17351 | ||
17352 | ||
17353 | static int _wrap_ART_PASTE_set(PyObject *) { | |
17354 | PyErr_SetString(PyExc_TypeError,"Variable ART_PASTE is read-only."); | |
17355 | return 1; | |
17356 | } | |
17357 | ||
17358 | ||
17359 | static PyObject *_wrap_ART_PASTE_get(void) { | |
32fe5131 | 17360 | PyObject *pyobj = NULL; |
0c243d93 RD |
17361 | |
17362 | { | |
17363 | #if wxUSE_UNICODE | |
17364 | pyobj = PyUnicode_FromWideChar((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len()); | |
17365 | #else | |
17366 | pyobj = PyString_FromStringAndSize((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len()); | |
17367 | #endif | |
17368 | } | |
17369 | return pyobj; | |
17370 | } | |
17371 | ||
17372 | ||
17373 | static int _wrap_ART_DELETE_set(PyObject *) { | |
17374 | PyErr_SetString(PyExc_TypeError,"Variable ART_DELETE is read-only."); | |
17375 | return 1; | |
17376 | } | |
17377 | ||
17378 | ||
17379 | static PyObject *_wrap_ART_DELETE_get(void) { | |
32fe5131 | 17380 | PyObject *pyobj = NULL; |
0c243d93 RD |
17381 | |
17382 | { | |
17383 | #if wxUSE_UNICODE | |
17384 | pyobj = PyUnicode_FromWideChar((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len()); | |
17385 | #else | |
17386 | pyobj = PyString_FromStringAndSize((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len()); | |
17387 | #endif | |
17388 | } | |
17389 | return pyobj; | |
17390 | } | |
17391 | ||
17392 | ||
a187dc0b RD |
17393 | static int _wrap_ART_NEW_set(PyObject *) { |
17394 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW is read-only."); | |
17395 | return 1; | |
17396 | } | |
17397 | ||
17398 | ||
17399 | static PyObject *_wrap_ART_NEW_get(void) { | |
32fe5131 | 17400 | PyObject *pyobj = NULL; |
a187dc0b RD |
17401 | |
17402 | { | |
17403 | #if wxUSE_UNICODE | |
17404 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len()); | |
17405 | #else | |
17406 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len()); | |
17407 | #endif | |
17408 | } | |
17409 | return pyobj; | |
17410 | } | |
17411 | ||
17412 | ||
0c243d93 RD |
17413 | static int _wrap_ART_UNDO_set(PyObject *) { |
17414 | PyErr_SetString(PyExc_TypeError,"Variable ART_UNDO is read-only."); | |
17415 | return 1; | |
17416 | } | |
17417 | ||
17418 | ||
17419 | static PyObject *_wrap_ART_UNDO_get(void) { | |
32fe5131 | 17420 | PyObject *pyobj = NULL; |
0c243d93 RD |
17421 | |
17422 | { | |
17423 | #if wxUSE_UNICODE | |
17424 | pyobj = PyUnicode_FromWideChar((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len()); | |
17425 | #else | |
17426 | pyobj = PyString_FromStringAndSize((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len()); | |
17427 | #endif | |
17428 | } | |
17429 | return pyobj; | |
17430 | } | |
17431 | ||
17432 | ||
17433 | static int _wrap_ART_REDO_set(PyObject *) { | |
17434 | PyErr_SetString(PyExc_TypeError,"Variable ART_REDO is read-only."); | |
17435 | return 1; | |
17436 | } | |
17437 | ||
17438 | ||
17439 | static PyObject *_wrap_ART_REDO_get(void) { | |
32fe5131 | 17440 | PyObject *pyobj = NULL; |
0c243d93 RD |
17441 | |
17442 | { | |
17443 | #if wxUSE_UNICODE | |
17444 | pyobj = PyUnicode_FromWideChar((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len()); | |
17445 | #else | |
17446 | pyobj = PyString_FromStringAndSize((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len()); | |
17447 | #endif | |
17448 | } | |
17449 | return pyobj; | |
17450 | } | |
17451 | ||
17452 | ||
17453 | static int _wrap_ART_QUIT_set(PyObject *) { | |
17454 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUIT is read-only."); | |
17455 | return 1; | |
17456 | } | |
17457 | ||
17458 | ||
17459 | static PyObject *_wrap_ART_QUIT_get(void) { | |
32fe5131 | 17460 | PyObject *pyobj = NULL; |
0c243d93 RD |
17461 | |
17462 | { | |
17463 | #if wxUSE_UNICODE | |
17464 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len()); | |
17465 | #else | |
17466 | pyobj = PyString_FromStringAndSize((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len()); | |
17467 | #endif | |
17468 | } | |
17469 | return pyobj; | |
17470 | } | |
17471 | ||
17472 | ||
17473 | static int _wrap_ART_FIND_set(PyObject *) { | |
17474 | PyErr_SetString(PyExc_TypeError,"Variable ART_FIND is read-only."); | |
17475 | return 1; | |
17476 | } | |
17477 | ||
17478 | ||
17479 | static PyObject *_wrap_ART_FIND_get(void) { | |
32fe5131 | 17480 | PyObject *pyobj = NULL; |
0c243d93 RD |
17481 | |
17482 | { | |
17483 | #if wxUSE_UNICODE | |
17484 | pyobj = PyUnicode_FromWideChar((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len()); | |
17485 | #else | |
17486 | pyobj = PyString_FromStringAndSize((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len()); | |
17487 | #endif | |
17488 | } | |
17489 | return pyobj; | |
17490 | } | |
17491 | ||
17492 | ||
17493 | static int _wrap_ART_FIND_AND_REPLACE_set(PyObject *) { | |
17494 | PyErr_SetString(PyExc_TypeError,"Variable ART_FIND_AND_REPLACE is read-only."); | |
17495 | return 1; | |
17496 | } | |
17497 | ||
17498 | ||
17499 | static PyObject *_wrap_ART_FIND_AND_REPLACE_get(void) { | |
32fe5131 | 17500 | PyObject *pyobj = NULL; |
0c243d93 RD |
17501 | |
17502 | { | |
17503 | #if wxUSE_UNICODE | |
17504 | pyobj = PyUnicode_FromWideChar((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len()); | |
17505 | #else | |
17506 | pyobj = PyString_FromStringAndSize((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len()); | |
17507 | #endif | |
17508 | } | |
17509 | return pyobj; | |
17510 | } | |
17511 | ||
17512 | ||
c32bde28 | 17513 | static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17514 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17515 | wxPyArtProvider *result; |
17516 | char *kwnames[] = { | |
17517 | NULL | |
17518 | }; | |
17519 | ||
17520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
17521 | { | |
e3b71cb8 | 17522 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17524 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
17525 | ||
17526 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17527 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17528 | } |
15afbcd0 | 17529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); |
d14a1e28 RD |
17530 | return resultobj; |
17531 | fail: | |
17532 | return NULL; | |
17533 | } | |
17534 | ||
17535 | ||
7e08d4ef RD |
17536 | static PyObject *_wrap_delete_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
17537 | PyObject *resultobj = NULL; | |
17538 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
17539 | PyObject * obj0 = 0 ; | |
17540 | char *kwnames[] = { | |
17541 | (char *) "self", NULL | |
17542 | }; | |
17543 | ||
17544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ArtProvider",kwnames,&obj0)) goto fail; | |
17545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); | |
17546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17547 | { | |
17548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17549 | delete arg1; | |
17550 | ||
17551 | wxPyEndAllowThreads(__tstate); | |
17552 | if (PyErr_Occurred()) SWIG_fail; | |
17553 | } | |
17554 | Py_INCREF(Py_None); resultobj = Py_None; | |
17555 | return resultobj; | |
17556 | fail: | |
17557 | return NULL; | |
17558 | } | |
17559 | ||
17560 | ||
c32bde28 | 17561 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17562 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17563 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; |
17564 | PyObject *arg2 = (PyObject *) 0 ; | |
17565 | PyObject *arg3 = (PyObject *) 0 ; | |
17566 | PyObject * obj0 = 0 ; | |
17567 | PyObject * obj1 = 0 ; | |
17568 | PyObject * obj2 = 0 ; | |
17569 | char *kwnames[] = { | |
17570 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17571 | }; | |
17572 | ||
17573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
17574 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
17575 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17576 | arg2 = obj1; |
17577 | arg3 = obj2; | |
17578 | { | |
17579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17580 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17581 | ||
17582 | wxPyEndAllowThreads(__tstate); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
17584 | } | |
17585 | Py_INCREF(Py_None); resultobj = Py_None; | |
17586 | return resultobj; | |
17587 | fail: | |
17588 | return NULL; | |
17589 | } | |
17590 | ||
17591 | ||
c32bde28 | 17592 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17593 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17594 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; |
17595 | PyObject * obj0 = 0 ; | |
17596 | char *kwnames[] = { | |
17597 | (char *) "provider", NULL | |
17598 | }; | |
17599 | ||
17600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
7e08d4ef | 17601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
093d3ff1 | 17602 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 RD |
17603 | { |
17604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17605 | wxPyArtProvider::PushProvider(arg1); | |
17606 | ||
17607 | wxPyEndAllowThreads(__tstate); | |
17608 | if (PyErr_Occurred()) SWIG_fail; | |
17609 | } | |
17610 | Py_INCREF(Py_None); resultobj = Py_None; | |
17611 | return resultobj; | |
17612 | fail: | |
17613 | return NULL; | |
17614 | } | |
17615 | ||
17616 | ||
c32bde28 | 17617 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17618 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17619 | bool result; |
17620 | char *kwnames[] = { | |
17621 | NULL | |
17622 | }; | |
17623 | ||
17624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
17625 | { | |
17626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17627 | result = (bool)wxPyArtProvider::PopProvider(); | |
17628 | ||
17629 | wxPyEndAllowThreads(__tstate); | |
17630 | if (PyErr_Occurred()) SWIG_fail; | |
17631 | } | |
4f89f6a3 RD |
17632 | { |
17633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17634 | } | |
d14a1e28 RD |
17635 | return resultobj; |
17636 | fail: | |
17637 | return NULL; | |
17638 | } | |
17639 | ||
17640 | ||
c32bde28 | 17641 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17642 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17643 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; |
17644 | bool result; | |
17645 | PyObject * obj0 = 0 ; | |
17646 | char *kwnames[] = { | |
17647 | (char *) "provider", NULL | |
17648 | }; | |
17649 | ||
17650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
17652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17653 | { |
17654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17655 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
17656 | ||
17657 | wxPyEndAllowThreads(__tstate); | |
17658 | if (PyErr_Occurred()) SWIG_fail; | |
17659 | } | |
4f89f6a3 RD |
17660 | { |
17661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17662 | } | |
d14a1e28 RD |
17663 | return resultobj; |
17664 | fail: | |
17665 | return NULL; | |
17666 | } | |
17667 | ||
17668 | ||
c32bde28 | 17669 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17670 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17671 | wxString *arg1 = 0 ; |
17672 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
17673 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
17674 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
17675 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
17676 | wxBitmap result; | |
ae8162c8 RD |
17677 | bool temp1 = false ; |
17678 | bool temp2 = false ; | |
d14a1e28 RD |
17679 | wxSize temp3 ; |
17680 | PyObject * obj0 = 0 ; | |
17681 | PyObject * obj1 = 0 ; | |
17682 | PyObject * obj2 = 0 ; | |
17683 | char *kwnames[] = { | |
17684 | (char *) "id",(char *) "client",(char *) "size", NULL | |
17685 | }; | |
17686 | ||
17687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17688 | { | |
17689 | arg1 = wxString_in_helper(obj0); | |
17690 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17691 | temp1 = true; |
d14a1e28 RD |
17692 | } |
17693 | if (obj1) { | |
17694 | { | |
17695 | arg2 = wxString_in_helper(obj1); | |
17696 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17697 | temp2 = true; |
d14a1e28 RD |
17698 | } |
17699 | } | |
17700 | if (obj2) { | |
17701 | { | |
17702 | arg3 = &temp3; | |
17703 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
17704 | } | |
17705 | } | |
17706 | { | |
e3b71cb8 | 17707 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17709 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
17710 | ||
17711 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17712 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17713 | } |
17714 | { | |
17715 | wxBitmap * resultptr; | |
32fe5131 | 17716 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 17717 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
17718 | } |
17719 | { | |
17720 | if (temp1) | |
17721 | delete arg1; | |
17722 | } | |
17723 | { | |
17724 | if (temp2) | |
17725 | delete arg2; | |
17726 | } | |
17727 | return resultobj; | |
17728 | fail: | |
17729 | { | |
17730 | if (temp1) | |
17731 | delete arg1; | |
17732 | } | |
17733 | { | |
17734 | if (temp2) | |
17735 | delete arg2; | |
17736 | } | |
17737 | return NULL; | |
17738 | } | |
17739 | ||
17740 | ||
c32bde28 | 17741 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17742 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17743 | wxString *arg1 = 0 ; |
17744 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
17745 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
17746 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
17747 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
17748 | wxIcon result; | |
ae8162c8 RD |
17749 | bool temp1 = false ; |
17750 | bool temp2 = false ; | |
d14a1e28 RD |
17751 | wxSize temp3 ; |
17752 | PyObject * obj0 = 0 ; | |
17753 | PyObject * obj1 = 0 ; | |
17754 | PyObject * obj2 = 0 ; | |
17755 | char *kwnames[] = { | |
17756 | (char *) "id",(char *) "client",(char *) "size", NULL | |
17757 | }; | |
17758 | ||
17759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17760 | { | |
17761 | arg1 = wxString_in_helper(obj0); | |
17762 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17763 | temp1 = true; |
d14a1e28 RD |
17764 | } |
17765 | if (obj1) { | |
17766 | { | |
17767 | arg2 = wxString_in_helper(obj1); | |
17768 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17769 | temp2 = true; |
d14a1e28 RD |
17770 | } |
17771 | } | |
17772 | if (obj2) { | |
17773 | { | |
17774 | arg3 = &temp3; | |
17775 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
17776 | } | |
17777 | } | |
17778 | { | |
e3b71cb8 | 17779 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17781 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
17782 | ||
17783 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17784 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17785 | } |
17786 | { | |
17787 | wxIcon * resultptr; | |
32fe5131 | 17788 | resultptr = new wxIcon(static_cast<wxIcon & >(result)); |
15afbcd0 | 17789 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
17790 | } |
17791 | { | |
17792 | if (temp1) | |
17793 | delete arg1; | |
17794 | } | |
17795 | { | |
17796 | if (temp2) | |
17797 | delete arg2; | |
17798 | } | |
17799 | return resultobj; | |
17800 | fail: | |
17801 | { | |
17802 | if (temp1) | |
17803 | delete arg1; | |
17804 | } | |
17805 | { | |
17806 | if (temp2) | |
17807 | delete arg2; | |
17808 | } | |
17809 | return NULL; | |
17810 | } | |
17811 | ||
17812 | ||
85ee4fe9 | 17813 | static PyObject *_wrap_ArtProvider_GetSizeHint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17814 | PyObject *resultobj = NULL; |
9c874b48 RD |
17815 | wxString *arg1 = 0 ; |
17816 | bool arg2 = (bool) false ; | |
17817 | wxSize result; | |
17818 | bool temp1 = false ; | |
17819 | PyObject * obj0 = 0 ; | |
17820 | PyObject * obj1 = 0 ; | |
17821 | char *kwnames[] = { | |
17822 | (char *) "client",(char *) "platform_dependent", NULL | |
17823 | }; | |
17824 | ||
85ee4fe9 | 17825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ArtProvider_GetSizeHint",kwnames,&obj0,&obj1)) goto fail; |
9c874b48 RD |
17826 | { |
17827 | arg1 = wxString_in_helper(obj0); | |
17828 | if (arg1 == NULL) SWIG_fail; | |
17829 | temp1 = true; | |
17830 | } | |
17831 | if (obj1) { | |
17832 | { | |
32fe5131 | 17833 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
9c874b48 RD |
17834 | if (SWIG_arg_fail(2)) SWIG_fail; |
17835 | } | |
17836 | } | |
17837 | { | |
17838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
85ee4fe9 | 17839 | result = wxPyArtProvider::GetSizeHint((wxString const &)*arg1,arg2); |
9c874b48 RD |
17840 | |
17841 | wxPyEndAllowThreads(__tstate); | |
17842 | if (PyErr_Occurred()) SWIG_fail; | |
17843 | } | |
17844 | { | |
17845 | wxSize * resultptr; | |
32fe5131 | 17846 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
9c874b48 RD |
17847 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
17848 | } | |
17849 | { | |
17850 | if (temp1) | |
17851 | delete arg1; | |
17852 | } | |
17853 | return resultobj; | |
17854 | fail: | |
17855 | { | |
17856 | if (temp1) | |
17857 | delete arg1; | |
17858 | } | |
17859 | return NULL; | |
17860 | } | |
17861 | ||
17862 | ||
c32bde28 | 17863 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17864 | PyObject *resultobj = NULL; |
1e0c8722 RD |
17865 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; |
17866 | PyObject * obj0 = 0 ; | |
17867 | char *kwnames[] = { | |
17868 | (char *) "self", NULL | |
17869 | }; | |
17870 | ||
17871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
17873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1e0c8722 RD |
17874 | { |
17875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17876 | wxPyArtProvider_Destroy(arg1); | |
17877 | ||
17878 | wxPyEndAllowThreads(__tstate); | |
17879 | if (PyErr_Occurred()) SWIG_fail; | |
17880 | } | |
17881 | Py_INCREF(Py_None); resultobj = Py_None; | |
17882 | return resultobj; | |
17883 | fail: | |
17884 | return NULL; | |
17885 | } | |
17886 | ||
17887 | ||
c32bde28 | 17888 | static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17889 | PyObject *obj; |
17890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17891 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
17892 | Py_INCREF(obj); | |
17893 | return Py_BuildValue((char *)""); | |
17894 | } | |
c32bde28 | 17895 | static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17896 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17897 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
17898 | PyObject * obj0 = 0 ; | |
17899 | char *kwnames[] = { | |
17900 | (char *) "self", NULL | |
17901 | }; | |
17902 | ||
17903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17906 | { |
17907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17908 | delete arg1; | |
17909 | ||
17910 | wxPyEndAllowThreads(__tstate); | |
17911 | if (PyErr_Occurred()) SWIG_fail; | |
17912 | } | |
17913 | Py_INCREF(Py_None); resultobj = Py_None; | |
17914 | return resultobj; | |
17915 | fail: | |
17916 | return NULL; | |
17917 | } | |
17918 | ||
17919 | ||
c32bde28 | 17920 | static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17921 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17922 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
17923 | wxConfigBase *result; | |
17924 | PyObject * obj0 = 0 ; | |
17925 | char *kwnames[] = { | |
b88bce5f | 17926 | (char *) "config", NULL |
d14a1e28 RD |
17927 | }; |
17928 | ||
17929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
5ba5649b | 17930 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
093d3ff1 | 17931 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 RD |
17932 | { |
17933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17934 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
17935 | ||
17936 | wxPyEndAllowThreads(__tstate); | |
17937 | if (PyErr_Occurred()) SWIG_fail; | |
17938 | } | |
15afbcd0 | 17939 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
17940 | return resultobj; |
17941 | fail: | |
17942 | return NULL; | |
17943 | } | |
17944 | ||
17945 | ||
c32bde28 | 17946 | static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17947 | PyObject *resultobj = NULL; |
ae8162c8 | 17948 | bool arg1 = (bool) true ; |
d14a1e28 RD |
17949 | wxConfigBase *result; |
17950 | PyObject * obj0 = 0 ; | |
17951 | char *kwnames[] = { | |
17952 | (char *) "createOnDemand", NULL | |
17953 | }; | |
17954 | ||
17955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
17956 | if (obj0) { | |
093d3ff1 | 17957 | { |
32fe5131 | 17958 | arg1 = static_cast<bool >(SWIG_As_bool(obj0)); |
093d3ff1 RD |
17959 | if (SWIG_arg_fail(1)) SWIG_fail; |
17960 | } | |
d14a1e28 RD |
17961 | } |
17962 | { | |
17963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17964 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
17965 | ||
17966 | wxPyEndAllowThreads(__tstate); | |
17967 | if (PyErr_Occurred()) SWIG_fail; | |
17968 | } | |
15afbcd0 | 17969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
17970 | return resultobj; |
17971 | fail: | |
17972 | return NULL; | |
17973 | } | |
17974 | ||
17975 | ||
c32bde28 | 17976 | static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17977 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17978 | wxConfigBase *result; |
17979 | char *kwnames[] = { | |
17980 | NULL | |
17981 | }; | |
17982 | ||
17983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
17984 | { | |
17985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17986 | result = (wxConfigBase *)wxConfigBase::Create(); | |
17987 | ||
17988 | wxPyEndAllowThreads(__tstate); | |
17989 | if (PyErr_Occurred()) SWIG_fail; | |
17990 | } | |
15afbcd0 | 17991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
17992 | return resultobj; |
17993 | fail: | |
17994 | return NULL; | |
17995 | } | |
17996 | ||
17997 | ||
c32bde28 | 17998 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17999 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18000 | char *kwnames[] = { |
18001 | NULL | |
18002 | }; | |
18003 | ||
18004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
18005 | { | |
18006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18007 | wxConfigBase::DontCreateOnDemand(); | |
18008 | ||
18009 | wxPyEndAllowThreads(__tstate); | |
18010 | if (PyErr_Occurred()) SWIG_fail; | |
18011 | } | |
18012 | Py_INCREF(Py_None); resultobj = Py_None; | |
18013 | return resultobj; | |
18014 | fail: | |
18015 | return NULL; | |
18016 | } | |
18017 | ||
18018 | ||
c32bde28 | 18019 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18020 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18021 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18022 | wxString *arg2 = 0 ; | |
ae8162c8 | 18023 | bool temp2 = false ; |
d14a1e28 RD |
18024 | PyObject * obj0 = 0 ; |
18025 | PyObject * obj1 = 0 ; | |
18026 | char *kwnames[] = { | |
b88bce5f | 18027 | (char *) "self",(char *) "path", NULL |
d14a1e28 RD |
18028 | }; |
18029 | ||
18030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18031 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18032 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18033 | { |
18034 | arg2 = wxString_in_helper(obj1); | |
18035 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18036 | temp2 = true; |
d14a1e28 RD |
18037 | } |
18038 | { | |
18039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18040 | (arg1)->SetPath((wxString const &)*arg2); | |
18041 | ||
18042 | wxPyEndAllowThreads(__tstate); | |
18043 | if (PyErr_Occurred()) SWIG_fail; | |
18044 | } | |
18045 | Py_INCREF(Py_None); resultobj = Py_None; | |
18046 | { | |
18047 | if (temp2) | |
18048 | delete arg2; | |
18049 | } | |
18050 | return resultobj; | |
18051 | fail: | |
18052 | { | |
18053 | if (temp2) | |
18054 | delete arg2; | |
18055 | } | |
18056 | return NULL; | |
18057 | } | |
18058 | ||
18059 | ||
c32bde28 | 18060 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18061 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18062 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18063 | wxString *result; | |
18064 | PyObject * obj0 = 0 ; | |
18065 | char *kwnames[] = { | |
18066 | (char *) "self", NULL | |
18067 | }; | |
18068 | ||
18069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18072 | { |
18073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18074 | { | |
18075 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
18076 | result = (wxString *) &_result_ref; | |
18077 | } | |
18078 | ||
18079 | wxPyEndAllowThreads(__tstate); | |
18080 | if (PyErr_Occurred()) SWIG_fail; | |
18081 | } | |
cc6dd355 RD |
18082 | { |
18083 | #if wxUSE_UNICODE | |
18084 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18085 | #else | |
18086 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18087 | #endif | |
18088 | } | |
d14a1e28 RD |
18089 | return resultobj; |
18090 | fail: | |
18091 | return NULL; | |
18092 | } | |
18093 | ||
18094 | ||
c32bde28 | 18095 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18096 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18097 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18098 | PyObject *result; | |
18099 | PyObject * obj0 = 0 ; | |
18100 | char *kwnames[] = { | |
18101 | (char *) "self", NULL | |
18102 | }; | |
18103 | ||
18104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18105 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18107 | { |
18108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18109 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
18110 | ||
18111 | wxPyEndAllowThreads(__tstate); | |
18112 | if (PyErr_Occurred()) SWIG_fail; | |
18113 | } | |
18114 | resultobj = result; | |
18115 | return resultobj; | |
18116 | fail: | |
18117 | return NULL; | |
18118 | } | |
18119 | ||
18120 | ||
c32bde28 | 18121 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18122 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18123 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18124 | long arg2 ; | |
18125 | PyObject *result; | |
18126 | PyObject * obj0 = 0 ; | |
994141e6 | 18127 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18128 | char *kwnames[] = { |
18129 | (char *) "self",(char *) "index", NULL | |
18130 | }; | |
18131 | ||
994141e6 | 18132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
18133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18135 | { | |
32fe5131 | 18136 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
18137 | if (SWIG_arg_fail(2)) SWIG_fail; |
18138 | } | |
d14a1e28 RD |
18139 | { |
18140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18141 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
18142 | ||
18143 | wxPyEndAllowThreads(__tstate); | |
18144 | if (PyErr_Occurred()) SWIG_fail; | |
18145 | } | |
18146 | resultobj = result; | |
18147 | return resultobj; | |
18148 | fail: | |
18149 | return NULL; | |
18150 | } | |
18151 | ||
18152 | ||
c32bde28 | 18153 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18154 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18155 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18156 | PyObject *result; | |
18157 | PyObject * obj0 = 0 ; | |
18158 | char *kwnames[] = { | |
18159 | (char *) "self", NULL | |
18160 | }; | |
18161 | ||
18162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18163 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18164 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18165 | { |
18166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18167 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
18168 | ||
18169 | wxPyEndAllowThreads(__tstate); | |
18170 | if (PyErr_Occurred()) SWIG_fail; | |
18171 | } | |
18172 | resultobj = result; | |
18173 | return resultobj; | |
18174 | fail: | |
18175 | return NULL; | |
18176 | } | |
18177 | ||
18178 | ||
c32bde28 | 18179 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18180 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18181 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18182 | long arg2 ; | |
18183 | PyObject *result; | |
18184 | PyObject * obj0 = 0 ; | |
994141e6 | 18185 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18186 | char *kwnames[] = { |
18187 | (char *) "self",(char *) "index", NULL | |
18188 | }; | |
18189 | ||
994141e6 | 18190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
18191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18193 | { | |
32fe5131 | 18194 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
18195 | if (SWIG_arg_fail(2)) SWIG_fail; |
18196 | } | |
d14a1e28 RD |
18197 | { |
18198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18199 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
18200 | ||
18201 | wxPyEndAllowThreads(__tstate); | |
18202 | if (PyErr_Occurred()) SWIG_fail; | |
18203 | } | |
18204 | resultobj = result; | |
18205 | return resultobj; | |
18206 | fail: | |
18207 | return NULL; | |
18208 | } | |
18209 | ||
18210 | ||
c32bde28 | 18211 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18212 | PyObject *resultobj = NULL; |
d14a1e28 | 18213 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
ae8162c8 | 18214 | bool arg2 = (bool) false ; |
d14a1e28 RD |
18215 | size_t result; |
18216 | PyObject * obj0 = 0 ; | |
18217 | PyObject * obj1 = 0 ; | |
18218 | char *kwnames[] = { | |
b88bce5f | 18219 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
18220 | }; |
18221 | ||
18222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 18225 | if (obj1) { |
093d3ff1 | 18226 | { |
32fe5131 | 18227 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
18228 | if (SWIG_arg_fail(2)) SWIG_fail; |
18229 | } | |
d14a1e28 RD |
18230 | } |
18231 | { | |
18232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18233 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
18234 | ||
18235 | wxPyEndAllowThreads(__tstate); | |
18236 | if (PyErr_Occurred()) SWIG_fail; | |
18237 | } | |
093d3ff1 | 18238 | { |
32fe5131 | 18239 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 18240 | } |
d14a1e28 RD |
18241 | return resultobj; |
18242 | fail: | |
18243 | return NULL; | |
18244 | } | |
18245 | ||
18246 | ||
c32bde28 | 18247 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18248 | PyObject *resultobj = NULL; |
d14a1e28 | 18249 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
ae8162c8 | 18250 | bool arg2 = (bool) false ; |
d14a1e28 RD |
18251 | size_t result; |
18252 | PyObject * obj0 = 0 ; | |
18253 | PyObject * obj1 = 0 ; | |
18254 | char *kwnames[] = { | |
b88bce5f | 18255 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
18256 | }; |
18257 | ||
18258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 18261 | if (obj1) { |
093d3ff1 | 18262 | { |
32fe5131 | 18263 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
18264 | if (SWIG_arg_fail(2)) SWIG_fail; |
18265 | } | |
d14a1e28 RD |
18266 | } |
18267 | { | |
18268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18269 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
18270 | ||
18271 | wxPyEndAllowThreads(__tstate); | |
18272 | if (PyErr_Occurred()) SWIG_fail; | |
18273 | } | |
093d3ff1 | 18274 | { |
32fe5131 | 18275 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 18276 | } |
d14a1e28 RD |
18277 | return resultobj; |
18278 | fail: | |
18279 | return NULL; | |
18280 | } | |
18281 | ||
18282 | ||
c32bde28 | 18283 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18284 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18285 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18286 | wxString *arg2 = 0 ; | |
18287 | bool result; | |
ae8162c8 | 18288 | bool temp2 = false ; |
d14a1e28 RD |
18289 | PyObject * obj0 = 0 ; |
18290 | PyObject * obj1 = 0 ; | |
18291 | char *kwnames[] = { | |
b88bce5f | 18292 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
18293 | }; |
18294 | ||
18295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18298 | { |
18299 | arg2 = wxString_in_helper(obj1); | |
18300 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18301 | temp2 = true; |
d14a1e28 RD |
18302 | } |
18303 | { | |
18304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18305 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
18306 | ||
18307 | wxPyEndAllowThreads(__tstate); | |
18308 | if (PyErr_Occurred()) SWIG_fail; | |
18309 | } | |
4f89f6a3 RD |
18310 | { |
18311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18312 | } | |
d14a1e28 RD |
18313 | { |
18314 | if (temp2) | |
18315 | delete arg2; | |
18316 | } | |
18317 | return resultobj; | |
18318 | fail: | |
18319 | { | |
18320 | if (temp2) | |
18321 | delete arg2; | |
18322 | } | |
18323 | return NULL; | |
18324 | } | |
18325 | ||
18326 | ||
c32bde28 | 18327 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18328 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18329 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18330 | wxString *arg2 = 0 ; | |
18331 | bool result; | |
ae8162c8 | 18332 | bool temp2 = false ; |
d14a1e28 RD |
18333 | PyObject * obj0 = 0 ; |
18334 | PyObject * obj1 = 0 ; | |
18335 | char *kwnames[] = { | |
b88bce5f | 18336 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
18337 | }; |
18338 | ||
18339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18340 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18341 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18342 | { |
18343 | arg2 = wxString_in_helper(obj1); | |
18344 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18345 | temp2 = true; |
d14a1e28 RD |
18346 | } |
18347 | { | |
18348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18349 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
18350 | ||
18351 | wxPyEndAllowThreads(__tstate); | |
18352 | if (PyErr_Occurred()) SWIG_fail; | |
18353 | } | |
4f89f6a3 RD |
18354 | { |
18355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18356 | } | |
d14a1e28 RD |
18357 | { |
18358 | if (temp2) | |
18359 | delete arg2; | |
18360 | } | |
18361 | return resultobj; | |
18362 | fail: | |
18363 | { | |
18364 | if (temp2) | |
18365 | delete arg2; | |
18366 | } | |
18367 | return NULL; | |
18368 | } | |
18369 | ||
18370 | ||
c32bde28 | 18371 | static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18372 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18373 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18374 | wxString *arg2 = 0 ; | |
18375 | bool result; | |
ae8162c8 | 18376 | bool temp2 = false ; |
d14a1e28 RD |
18377 | PyObject * obj0 = 0 ; |
18378 | PyObject * obj1 = 0 ; | |
18379 | char *kwnames[] = { | |
b88bce5f | 18380 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
18381 | }; |
18382 | ||
18383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18386 | { |
18387 | arg2 = wxString_in_helper(obj1); | |
18388 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18389 | temp2 = true; |
d14a1e28 RD |
18390 | } |
18391 | { | |
18392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18393 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
18394 | ||
18395 | wxPyEndAllowThreads(__tstate); | |
18396 | if (PyErr_Occurred()) SWIG_fail; | |
18397 | } | |
4f89f6a3 RD |
18398 | { |
18399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18400 | } | |
d14a1e28 RD |
18401 | { |
18402 | if (temp2) | |
18403 | delete arg2; | |
18404 | } | |
18405 | return resultobj; | |
18406 | fail: | |
18407 | { | |
18408 | if (temp2) | |
18409 | delete arg2; | |
18410 | } | |
18411 | return NULL; | |
18412 | } | |
18413 | ||
18414 | ||
c32bde28 | 18415 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18416 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18417 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18418 | wxString *arg2 = 0 ; | |
093d3ff1 | 18419 | wxConfigBase::EntryType result; |
ae8162c8 | 18420 | bool temp2 = false ; |
d14a1e28 RD |
18421 | PyObject * obj0 = 0 ; |
18422 | PyObject * obj1 = 0 ; | |
18423 | char *kwnames[] = { | |
18424 | (char *) "self",(char *) "name", NULL | |
18425 | }; | |
18426 | ||
18427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18430 | { |
18431 | arg2 = wxString_in_helper(obj1); | |
18432 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18433 | temp2 = true; |
d14a1e28 RD |
18434 | } |
18435 | { | |
18436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 18437 | result = (wxConfigBase::EntryType)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); |
d14a1e28 RD |
18438 | |
18439 | wxPyEndAllowThreads(__tstate); | |
18440 | if (PyErr_Occurred()) SWIG_fail; | |
18441 | } | |
093d3ff1 | 18442 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
18443 | { |
18444 | if (temp2) | |
18445 | delete arg2; | |
18446 | } | |
18447 | return resultobj; | |
18448 | fail: | |
18449 | { | |
18450 | if (temp2) | |
18451 | delete arg2; | |
18452 | } | |
18453 | return NULL; | |
18454 | } | |
18455 | ||
18456 | ||
c32bde28 | 18457 | static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18458 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18459 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18460 | wxString *arg2 = 0 ; | |
18461 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18462 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18463 | wxString result; | |
ae8162c8 RD |
18464 | bool temp2 = false ; |
18465 | bool temp3 = false ; | |
d14a1e28 RD |
18466 | PyObject * obj0 = 0 ; |
18467 | PyObject * obj1 = 0 ; | |
18468 | PyObject * obj2 = 0 ; | |
18469 | char *kwnames[] = { | |
18470 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
18471 | }; | |
18472 | ||
18473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18476 | { |
18477 | arg2 = wxString_in_helper(obj1); | |
18478 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18479 | temp2 = true; |
d14a1e28 RD |
18480 | } |
18481 | if (obj2) { | |
18482 | { | |
18483 | arg3 = wxString_in_helper(obj2); | |
18484 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18485 | temp3 = true; |
d14a1e28 RD |
18486 | } |
18487 | } | |
18488 | { | |
18489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18490 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
18491 | ||
18492 | wxPyEndAllowThreads(__tstate); | |
18493 | if (PyErr_Occurred()) SWIG_fail; | |
18494 | } | |
18495 | { | |
18496 | #if wxUSE_UNICODE | |
18497 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18498 | #else | |
18499 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18500 | #endif | |
18501 | } | |
18502 | { | |
18503 | if (temp2) | |
18504 | delete arg2; | |
18505 | } | |
18506 | { | |
18507 | if (temp3) | |
18508 | delete arg3; | |
18509 | } | |
18510 | return resultobj; | |
18511 | fail: | |
18512 | { | |
18513 | if (temp2) | |
18514 | delete arg2; | |
18515 | } | |
18516 | { | |
18517 | if (temp3) | |
18518 | delete arg3; | |
18519 | } | |
18520 | return NULL; | |
18521 | } | |
18522 | ||
18523 | ||
c32bde28 | 18524 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18525 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18526 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18527 | wxString *arg2 = 0 ; | |
18528 | long arg3 = (long) 0 ; | |
18529 | long result; | |
ae8162c8 | 18530 | bool temp2 = false ; |
d14a1e28 RD |
18531 | PyObject * obj0 = 0 ; |
18532 | PyObject * obj1 = 0 ; | |
994141e6 | 18533 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
18534 | char *kwnames[] = { |
18535 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
18536 | }; | |
18537 | ||
994141e6 | 18538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
18539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18541 | { |
18542 | arg2 = wxString_in_helper(obj1); | |
18543 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18544 | temp2 = true; |
d14a1e28 | 18545 | } |
994141e6 | 18546 | if (obj2) { |
093d3ff1 | 18547 | { |
32fe5131 | 18548 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
18549 | if (SWIG_arg_fail(3)) SWIG_fail; |
18550 | } | |
994141e6 | 18551 | } |
d14a1e28 RD |
18552 | { |
18553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18554 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
18555 | ||
18556 | wxPyEndAllowThreads(__tstate); | |
18557 | if (PyErr_Occurred()) SWIG_fail; | |
18558 | } | |
093d3ff1 | 18559 | { |
32fe5131 | 18560 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 18561 | } |
d14a1e28 RD |
18562 | { |
18563 | if (temp2) | |
18564 | delete arg2; | |
18565 | } | |
18566 | return resultobj; | |
18567 | fail: | |
18568 | { | |
18569 | if (temp2) | |
18570 | delete arg2; | |
18571 | } | |
18572 | return NULL; | |
18573 | } | |
18574 | ||
18575 | ||
c32bde28 | 18576 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18577 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18578 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18579 | wxString *arg2 = 0 ; | |
18580 | double arg3 = (double) 0.0 ; | |
18581 | double result; | |
ae8162c8 | 18582 | bool temp2 = false ; |
d14a1e28 RD |
18583 | PyObject * obj0 = 0 ; |
18584 | PyObject * obj1 = 0 ; | |
994141e6 | 18585 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
18586 | char *kwnames[] = { |
18587 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
18588 | }; | |
18589 | ||
994141e6 | 18590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
18591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18593 | { |
18594 | arg2 = wxString_in_helper(obj1); | |
18595 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18596 | temp2 = true; |
d14a1e28 | 18597 | } |
994141e6 | 18598 | if (obj2) { |
093d3ff1 | 18599 | { |
32fe5131 | 18600 | arg3 = static_cast<double >(SWIG_As_double(obj2)); |
093d3ff1 RD |
18601 | if (SWIG_arg_fail(3)) SWIG_fail; |
18602 | } | |
994141e6 | 18603 | } |
d14a1e28 RD |
18604 | { |
18605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18606 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
18607 | ||
18608 | wxPyEndAllowThreads(__tstate); | |
18609 | if (PyErr_Occurred()) SWIG_fail; | |
18610 | } | |
093d3ff1 | 18611 | { |
32fe5131 | 18612 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 18613 | } |
d14a1e28 RD |
18614 | { |
18615 | if (temp2) | |
18616 | delete arg2; | |
18617 | } | |
18618 | return resultobj; | |
18619 | fail: | |
18620 | { | |
18621 | if (temp2) | |
18622 | delete arg2; | |
18623 | } | |
18624 | return NULL; | |
18625 | } | |
18626 | ||
18627 | ||
c32bde28 | 18628 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18629 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18630 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18631 | wxString *arg2 = 0 ; | |
ae8162c8 | 18632 | bool arg3 = (bool) false ; |
d14a1e28 | 18633 | bool result; |
ae8162c8 | 18634 | bool temp2 = false ; |
d14a1e28 RD |
18635 | PyObject * obj0 = 0 ; |
18636 | PyObject * obj1 = 0 ; | |
18637 | PyObject * obj2 = 0 ; | |
18638 | char *kwnames[] = { | |
18639 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
18640 | }; | |
18641 | ||
18642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18645 | { |
18646 | arg2 = wxString_in_helper(obj1); | |
18647 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18648 | temp2 = true; |
d14a1e28 RD |
18649 | } |
18650 | if (obj2) { | |
093d3ff1 | 18651 | { |
32fe5131 | 18652 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
18653 | if (SWIG_arg_fail(3)) SWIG_fail; |
18654 | } | |
d14a1e28 RD |
18655 | } |
18656 | { | |
18657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18658 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
18659 | ||
18660 | wxPyEndAllowThreads(__tstate); | |
18661 | if (PyErr_Occurred()) SWIG_fail; | |
18662 | } | |
4f89f6a3 RD |
18663 | { |
18664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18665 | } | |
d14a1e28 RD |
18666 | { |
18667 | if (temp2) | |
18668 | delete arg2; | |
18669 | } | |
18670 | return resultobj; | |
18671 | fail: | |
18672 | { | |
18673 | if (temp2) | |
18674 | delete arg2; | |
18675 | } | |
18676 | return NULL; | |
18677 | } | |
18678 | ||
18679 | ||
c32bde28 | 18680 | static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18681 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18682 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18683 | wxString *arg2 = 0 ; | |
18684 | wxString *arg3 = 0 ; | |
18685 | bool result; | |
ae8162c8 RD |
18686 | bool temp2 = false ; |
18687 | bool temp3 = false ; | |
d14a1e28 RD |
18688 | PyObject * obj0 = 0 ; |
18689 | PyObject * obj1 = 0 ; | |
18690 | PyObject * obj2 = 0 ; | |
18691 | char *kwnames[] = { | |
18692 | (char *) "self",(char *) "key",(char *) "value", NULL | |
18693 | }; | |
18694 | ||
18695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18696 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18697 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18698 | { |
18699 | arg2 = wxString_in_helper(obj1); | |
18700 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18701 | temp2 = true; |
d14a1e28 RD |
18702 | } |
18703 | { | |
18704 | arg3 = wxString_in_helper(obj2); | |
18705 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18706 | temp3 = true; |
d14a1e28 RD |
18707 | } |
18708 | { | |
18709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18710 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
18711 | ||
18712 | wxPyEndAllowThreads(__tstate); | |
18713 | if (PyErr_Occurred()) SWIG_fail; | |
18714 | } | |
4f89f6a3 RD |
18715 | { |
18716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18717 | } | |
d14a1e28 RD |
18718 | { |
18719 | if (temp2) | |
18720 | delete arg2; | |
18721 | } | |
18722 | { | |
18723 | if (temp3) | |
18724 | delete arg3; | |
18725 | } | |
18726 | return resultobj; | |
18727 | fail: | |
18728 | { | |
18729 | if (temp2) | |
18730 | delete arg2; | |
18731 | } | |
18732 | { | |
18733 | if (temp3) | |
18734 | delete arg3; | |
18735 | } | |
18736 | return NULL; | |
18737 | } | |
18738 | ||
18739 | ||
c32bde28 | 18740 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18741 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18742 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18743 | wxString *arg2 = 0 ; | |
18744 | long arg3 ; | |
18745 | bool result; | |
ae8162c8 | 18746 | bool temp2 = false ; |
d14a1e28 RD |
18747 | PyObject * obj0 = 0 ; |
18748 | PyObject * obj1 = 0 ; | |
994141e6 | 18749 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
18750 | char *kwnames[] = { |
18751 | (char *) "self",(char *) "key",(char *) "value", NULL | |
18752 | }; | |
18753 | ||
994141e6 | 18754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
18755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18757 | { |
18758 | arg2 = wxString_in_helper(obj1); | |
18759 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18760 | temp2 = true; |
d14a1e28 | 18761 | } |
093d3ff1 | 18762 | { |
32fe5131 | 18763 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
18764 | if (SWIG_arg_fail(3)) SWIG_fail; |
18765 | } | |
d14a1e28 RD |
18766 | { |
18767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18768 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
18769 | ||
18770 | wxPyEndAllowThreads(__tstate); | |
18771 | if (PyErr_Occurred()) SWIG_fail; | |
18772 | } | |
4f89f6a3 RD |
18773 | { |
18774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18775 | } | |
d14a1e28 RD |
18776 | { |
18777 | if (temp2) | |
18778 | delete arg2; | |
18779 | } | |
18780 | return resultobj; | |
18781 | fail: | |
18782 | { | |
18783 | if (temp2) | |
18784 | delete arg2; | |
18785 | } | |
18786 | return NULL; | |
18787 | } | |
18788 | ||
18789 | ||
c32bde28 | 18790 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18791 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18792 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18793 | wxString *arg2 = 0 ; | |
18794 | double arg3 ; | |
18795 | bool result; | |
ae8162c8 | 18796 | bool temp2 = false ; |
d14a1e28 RD |
18797 | PyObject * obj0 = 0 ; |
18798 | PyObject * obj1 = 0 ; | |
994141e6 | 18799 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
18800 | char *kwnames[] = { |
18801 | (char *) "self",(char *) "key",(char *) "value", NULL | |
18802 | }; | |
18803 | ||
994141e6 | 18804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
18805 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18806 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18807 | { |
18808 | arg2 = wxString_in_helper(obj1); | |
18809 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18810 | temp2 = true; |
d14a1e28 | 18811 | } |
093d3ff1 | 18812 | { |
32fe5131 | 18813 | arg3 = static_cast<double >(SWIG_As_double(obj2)); |
093d3ff1 RD |
18814 | if (SWIG_arg_fail(3)) SWIG_fail; |
18815 | } | |
d14a1e28 RD |
18816 | { |
18817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18818 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
18819 | ||
18820 | wxPyEndAllowThreads(__tstate); | |
18821 | if (PyErr_Occurred()) SWIG_fail; | |
18822 | } | |
4f89f6a3 RD |
18823 | { |
18824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18825 | } | |
d14a1e28 RD |
18826 | { |
18827 | if (temp2) | |
18828 | delete arg2; | |
18829 | } | |
18830 | return resultobj; | |
18831 | fail: | |
18832 | { | |
18833 | if (temp2) | |
18834 | delete arg2; | |
18835 | } | |
18836 | return NULL; | |
18837 | } | |
18838 | ||
18839 | ||
c32bde28 | 18840 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18841 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18842 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18843 | wxString *arg2 = 0 ; | |
18844 | bool arg3 ; | |
18845 | bool result; | |
ae8162c8 | 18846 | bool temp2 = false ; |
d14a1e28 RD |
18847 | PyObject * obj0 = 0 ; |
18848 | PyObject * obj1 = 0 ; | |
18849 | PyObject * obj2 = 0 ; | |
18850 | char *kwnames[] = { | |
18851 | (char *) "self",(char *) "key",(char *) "value", NULL | |
18852 | }; | |
18853 | ||
18854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18857 | { |
18858 | arg2 = wxString_in_helper(obj1); | |
18859 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18860 | temp2 = true; |
d14a1e28 | 18861 | } |
093d3ff1 | 18862 | { |
32fe5131 | 18863 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
18864 | if (SWIG_arg_fail(3)) SWIG_fail; |
18865 | } | |
d14a1e28 RD |
18866 | { |
18867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18868 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
18869 | ||
18870 | wxPyEndAllowThreads(__tstate); | |
18871 | if (PyErr_Occurred()) SWIG_fail; | |
18872 | } | |
4f89f6a3 RD |
18873 | { |
18874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18875 | } | |
d14a1e28 RD |
18876 | { |
18877 | if (temp2) | |
18878 | delete arg2; | |
18879 | } | |
18880 | return resultobj; | |
18881 | fail: | |
18882 | { | |
18883 | if (temp2) | |
18884 | delete arg2; | |
18885 | } | |
18886 | return NULL; | |
18887 | } | |
18888 | ||
18889 | ||
c32bde28 | 18890 | static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18891 | PyObject *resultobj = NULL; |
d14a1e28 | 18892 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
ae8162c8 | 18893 | bool arg2 = (bool) false ; |
d14a1e28 RD |
18894 | bool result; |
18895 | PyObject * obj0 = 0 ; | |
18896 | PyObject * obj1 = 0 ; | |
18897 | char *kwnames[] = { | |
b88bce5f | 18898 | (char *) "self",(char *) "currentOnly", NULL |
d14a1e28 RD |
18899 | }; |
18900 | ||
18901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18902 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18903 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 18904 | if (obj1) { |
093d3ff1 | 18905 | { |
32fe5131 | 18906 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
18907 | if (SWIG_arg_fail(2)) SWIG_fail; |
18908 | } | |
d14a1e28 RD |
18909 | } |
18910 | { | |
18911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18912 | result = (bool)(arg1)->Flush(arg2); | |
18913 | ||
18914 | wxPyEndAllowThreads(__tstate); | |
18915 | if (PyErr_Occurred()) SWIG_fail; | |
18916 | } | |
4f89f6a3 RD |
18917 | { |
18918 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18919 | } | |
d14a1e28 RD |
18920 | return resultobj; |
18921 | fail: | |
18922 | return NULL; | |
18923 | } | |
18924 | ||
18925 | ||
c32bde28 | 18926 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18927 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18928 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18929 | wxString *arg2 = 0 ; | |
18930 | wxString *arg3 = 0 ; | |
18931 | bool result; | |
ae8162c8 RD |
18932 | bool temp2 = false ; |
18933 | bool temp3 = false ; | |
d14a1e28 RD |
18934 | PyObject * obj0 = 0 ; |
18935 | PyObject * obj1 = 0 ; | |
18936 | PyObject * obj2 = 0 ; | |
18937 | char *kwnames[] = { | |
18938 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
18939 | }; | |
18940 | ||
18941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18942 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18943 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18944 | { |
18945 | arg2 = wxString_in_helper(obj1); | |
18946 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18947 | temp2 = true; |
d14a1e28 RD |
18948 | } |
18949 | { | |
18950 | arg3 = wxString_in_helper(obj2); | |
18951 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18952 | temp3 = true; |
d14a1e28 RD |
18953 | } |
18954 | { | |
18955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18956 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
18957 | ||
18958 | wxPyEndAllowThreads(__tstate); | |
18959 | if (PyErr_Occurred()) SWIG_fail; | |
18960 | } | |
4f89f6a3 RD |
18961 | { |
18962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18963 | } | |
d14a1e28 RD |
18964 | { |
18965 | if (temp2) | |
18966 | delete arg2; | |
18967 | } | |
18968 | { | |
18969 | if (temp3) | |
18970 | delete arg3; | |
18971 | } | |
18972 | return resultobj; | |
18973 | fail: | |
18974 | { | |
18975 | if (temp2) | |
18976 | delete arg2; | |
18977 | } | |
18978 | { | |
18979 | if (temp3) | |
18980 | delete arg3; | |
18981 | } | |
18982 | return NULL; | |
18983 | } | |
18984 | ||
18985 | ||
c32bde28 | 18986 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18987 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18988 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
18989 | wxString *arg2 = 0 ; | |
18990 | wxString *arg3 = 0 ; | |
18991 | bool result; | |
ae8162c8 RD |
18992 | bool temp2 = false ; |
18993 | bool temp3 = false ; | |
d14a1e28 RD |
18994 | PyObject * obj0 = 0 ; |
18995 | PyObject * obj1 = 0 ; | |
18996 | PyObject * obj2 = 0 ; | |
18997 | char *kwnames[] = { | |
18998 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
18999 | }; | |
19000 | ||
19001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19002 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19003 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19004 | { |
19005 | arg2 = wxString_in_helper(obj1); | |
19006 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19007 | temp2 = true; |
d14a1e28 RD |
19008 | } |
19009 | { | |
19010 | arg3 = wxString_in_helper(obj2); | |
19011 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 19012 | temp3 = true; |
d14a1e28 RD |
19013 | } |
19014 | { | |
19015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19016 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
19017 | ||
19018 | wxPyEndAllowThreads(__tstate); | |
19019 | if (PyErr_Occurred()) SWIG_fail; | |
19020 | } | |
4f89f6a3 RD |
19021 | { |
19022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19023 | } | |
d14a1e28 RD |
19024 | { |
19025 | if (temp2) | |
19026 | delete arg2; | |
19027 | } | |
19028 | { | |
19029 | if (temp3) | |
19030 | delete arg3; | |
19031 | } | |
19032 | return resultobj; | |
19033 | fail: | |
19034 | { | |
19035 | if (temp2) | |
19036 | delete arg2; | |
19037 | } | |
19038 | { | |
19039 | if (temp3) | |
19040 | delete arg3; | |
19041 | } | |
19042 | return NULL; | |
19043 | } | |
19044 | ||
19045 | ||
c32bde28 | 19046 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19047 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19048 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19049 | wxString *arg2 = 0 ; | |
ae8162c8 | 19050 | bool arg3 = (bool) true ; |
d14a1e28 | 19051 | bool result; |
ae8162c8 | 19052 | bool temp2 = false ; |
d14a1e28 RD |
19053 | PyObject * obj0 = 0 ; |
19054 | PyObject * obj1 = 0 ; | |
19055 | PyObject * obj2 = 0 ; | |
19056 | char *kwnames[] = { | |
b88bce5f | 19057 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL |
d14a1e28 RD |
19058 | }; |
19059 | ||
19060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19063 | { |
19064 | arg2 = wxString_in_helper(obj1); | |
19065 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19066 | temp2 = true; |
d14a1e28 RD |
19067 | } |
19068 | if (obj2) { | |
093d3ff1 | 19069 | { |
32fe5131 | 19070 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
19071 | if (SWIG_arg_fail(3)) SWIG_fail; |
19072 | } | |
d14a1e28 RD |
19073 | } |
19074 | { | |
19075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19076 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
19077 | ||
19078 | wxPyEndAllowThreads(__tstate); | |
19079 | if (PyErr_Occurred()) SWIG_fail; | |
19080 | } | |
4f89f6a3 RD |
19081 | { |
19082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19083 | } | |
d14a1e28 RD |
19084 | { |
19085 | if (temp2) | |
19086 | delete arg2; | |
19087 | } | |
19088 | return resultobj; | |
19089 | fail: | |
19090 | { | |
19091 | if (temp2) | |
19092 | delete arg2; | |
19093 | } | |
19094 | return NULL; | |
19095 | } | |
19096 | ||
19097 | ||
c32bde28 | 19098 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19099 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19100 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19101 | wxString *arg2 = 0 ; | |
19102 | bool result; | |
ae8162c8 | 19103 | bool temp2 = false ; |
d14a1e28 RD |
19104 | PyObject * obj0 = 0 ; |
19105 | PyObject * obj1 = 0 ; | |
19106 | char *kwnames[] = { | |
19107 | (char *) "self",(char *) "key", NULL | |
19108 | }; | |
19109 | ||
19110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19113 | { |
19114 | arg2 = wxString_in_helper(obj1); | |
19115 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19116 | temp2 = true; |
d14a1e28 RD |
19117 | } |
19118 | { | |
19119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19120 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
19121 | ||
19122 | wxPyEndAllowThreads(__tstate); | |
19123 | if (PyErr_Occurred()) SWIG_fail; | |
19124 | } | |
4f89f6a3 RD |
19125 | { |
19126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19127 | } | |
d14a1e28 RD |
19128 | { |
19129 | if (temp2) | |
19130 | delete arg2; | |
19131 | } | |
19132 | return resultobj; | |
19133 | fail: | |
19134 | { | |
19135 | if (temp2) | |
19136 | delete arg2; | |
19137 | } | |
19138 | return NULL; | |
19139 | } | |
19140 | ||
19141 | ||
c32bde28 | 19142 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19143 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19144 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19145 | bool result; | |
19146 | PyObject * obj0 = 0 ; | |
19147 | char *kwnames[] = { | |
19148 | (char *) "self", NULL | |
19149 | }; | |
19150 | ||
19151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19154 | { |
19155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19156 | result = (bool)(arg1)->DeleteAll(); | |
19157 | ||
19158 | wxPyEndAllowThreads(__tstate); | |
19159 | if (PyErr_Occurred()) SWIG_fail; | |
19160 | } | |
4f89f6a3 RD |
19161 | { |
19162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19163 | } | |
d14a1e28 RD |
19164 | return resultobj; |
19165 | fail: | |
19166 | return NULL; | |
19167 | } | |
19168 | ||
19169 | ||
c32bde28 | 19170 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19171 | PyObject *resultobj = NULL; |
d14a1e28 | 19172 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
ae8162c8 | 19173 | bool arg2 = (bool) true ; |
d14a1e28 | 19174 | PyObject * obj0 = 0 ; |
b88bce5f | 19175 | PyObject * obj1 = 0 ; |
d14a1e28 | 19176 | char *kwnames[] = { |
b88bce5f | 19177 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
19178 | }; |
19179 | ||
b88bce5f | 19180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19181 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19182 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b88bce5f | 19183 | if (obj1) { |
093d3ff1 | 19184 | { |
32fe5131 | 19185 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
19186 | if (SWIG_arg_fail(2)) SWIG_fail; |
19187 | } | |
b88bce5f | 19188 | } |
d14a1e28 RD |
19189 | { |
19190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 19191 | (arg1)->SetExpandEnvVars(arg2); |
d14a1e28 RD |
19192 | |
19193 | wxPyEndAllowThreads(__tstate); | |
19194 | if (PyErr_Occurred()) SWIG_fail; | |
19195 | } | |
b88bce5f | 19196 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
19197 | return resultobj; |
19198 | fail: | |
19199 | return NULL; | |
19200 | } | |
19201 | ||
19202 | ||
c32bde28 | 19203 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19204 | PyObject *resultobj = NULL; |
d14a1e28 | 19205 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
b88bce5f | 19206 | bool result; |
d14a1e28 | 19207 | PyObject * obj0 = 0 ; |
d14a1e28 | 19208 | char *kwnames[] = { |
b88bce5f | 19209 | (char *) "self", NULL |
d14a1e28 RD |
19210 | }; |
19211 | ||
b88bce5f | 19212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
19213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19215 | { |
19216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 19217 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); |
d14a1e28 RD |
19218 | |
19219 | wxPyEndAllowThreads(__tstate); | |
19220 | if (PyErr_Occurred()) SWIG_fail; | |
19221 | } | |
4f89f6a3 RD |
19222 | { |
19223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19224 | } | |
d14a1e28 RD |
19225 | return resultobj; |
19226 | fail: | |
19227 | return NULL; | |
19228 | } | |
19229 | ||
19230 | ||
c32bde28 | 19231 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19232 | PyObject *resultobj = NULL; |
d14a1e28 | 19233 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
ae8162c8 | 19234 | bool arg2 = (bool) true ; |
d14a1e28 RD |
19235 | PyObject * obj0 = 0 ; |
19236 | PyObject * obj1 = 0 ; | |
19237 | char *kwnames[] = { | |
b88bce5f | 19238 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
19239 | }; |
19240 | ||
19241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 19244 | if (obj1) { |
093d3ff1 | 19245 | { |
32fe5131 | 19246 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
19247 | if (SWIG_arg_fail(2)) SWIG_fail; |
19248 | } | |
d14a1e28 RD |
19249 | } |
19250 | { | |
19251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19252 | (arg1)->SetRecordDefaults(arg2); | |
19253 | ||
19254 | wxPyEndAllowThreads(__tstate); | |
19255 | if (PyErr_Occurred()) SWIG_fail; | |
19256 | } | |
19257 | Py_INCREF(Py_None); resultobj = Py_None; | |
19258 | return resultobj; | |
19259 | fail: | |
19260 | return NULL; | |
19261 | } | |
19262 | ||
19263 | ||
c32bde28 | 19264 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19265 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19266 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19267 | bool result; | |
19268 | PyObject * obj0 = 0 ; | |
19269 | char *kwnames[] = { | |
19270 | (char *) "self", NULL | |
19271 | }; | |
19272 | ||
19273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19276 | { |
19277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19278 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
19279 | ||
19280 | wxPyEndAllowThreads(__tstate); | |
19281 | if (PyErr_Occurred()) SWIG_fail; | |
19282 | } | |
4f89f6a3 RD |
19283 | { |
19284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19285 | } | |
d14a1e28 RD |
19286 | return resultobj; |
19287 | fail: | |
19288 | return NULL; | |
19289 | } | |
19290 | ||
19291 | ||
c32bde28 | 19292 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19293 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19294 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19295 | wxString *arg2 = 0 ; | |
19296 | wxString result; | |
ae8162c8 | 19297 | bool temp2 = false ; |
d14a1e28 RD |
19298 | PyObject * obj0 = 0 ; |
19299 | PyObject * obj1 = 0 ; | |
19300 | char *kwnames[] = { | |
19301 | (char *) "self",(char *) "str", NULL | |
19302 | }; | |
19303 | ||
19304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19307 | { |
19308 | arg2 = wxString_in_helper(obj1); | |
19309 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19310 | temp2 = true; |
d14a1e28 RD |
19311 | } |
19312 | { | |
19313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19314 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
19315 | ||
19316 | wxPyEndAllowThreads(__tstate); | |
19317 | if (PyErr_Occurred()) SWIG_fail; | |
19318 | } | |
19319 | { | |
19320 | #if wxUSE_UNICODE | |
19321 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19322 | #else | |
19323 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19324 | #endif | |
19325 | } | |
19326 | { | |
19327 | if (temp2) | |
19328 | delete arg2; | |
19329 | } | |
19330 | return resultobj; | |
19331 | fail: | |
19332 | { | |
19333 | if (temp2) | |
19334 | delete arg2; | |
19335 | } | |
19336 | return NULL; | |
19337 | } | |
19338 | ||
19339 | ||
c32bde28 | 19340 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19341 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19342 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19343 | wxString result; | |
19344 | PyObject * obj0 = 0 ; | |
19345 | char *kwnames[] = { | |
19346 | (char *) "self", NULL | |
19347 | }; | |
19348 | ||
19349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19350 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19351 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19352 | { |
19353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19354 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
19355 | ||
19356 | wxPyEndAllowThreads(__tstate); | |
19357 | if (PyErr_Occurred()) SWIG_fail; | |
19358 | } | |
19359 | { | |
19360 | #if wxUSE_UNICODE | |
19361 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19362 | #else | |
19363 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19364 | #endif | |
19365 | } | |
19366 | return resultobj; | |
19367 | fail: | |
19368 | return NULL; | |
19369 | } | |
19370 | ||
19371 | ||
c32bde28 | 19372 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19373 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19374 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19375 | wxString result; | |
19376 | PyObject * obj0 = 0 ; | |
19377 | char *kwnames[] = { | |
19378 | (char *) "self", NULL | |
19379 | }; | |
19380 | ||
19381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19384 | { |
19385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19386 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
19387 | ||
19388 | wxPyEndAllowThreads(__tstate); | |
19389 | if (PyErr_Occurred()) SWIG_fail; | |
19390 | } | |
19391 | { | |
19392 | #if wxUSE_UNICODE | |
19393 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19394 | #else | |
19395 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19396 | #endif | |
19397 | } | |
19398 | return resultobj; | |
19399 | fail: | |
19400 | return NULL; | |
19401 | } | |
19402 | ||
19403 | ||
c32bde28 | 19404 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19405 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19406 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19407 | wxString *arg2 = 0 ; | |
ae8162c8 | 19408 | bool temp2 = false ; |
d14a1e28 RD |
19409 | PyObject * obj0 = 0 ; |
19410 | PyObject * obj1 = 0 ; | |
19411 | char *kwnames[] = { | |
19412 | (char *) "self",(char *) "appName", NULL | |
19413 | }; | |
19414 | ||
19415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19418 | { |
19419 | arg2 = wxString_in_helper(obj1); | |
19420 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19421 | temp2 = true; |
d14a1e28 RD |
19422 | } |
19423 | { | |
19424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19425 | (arg1)->SetAppName((wxString const &)*arg2); | |
19426 | ||
19427 | wxPyEndAllowThreads(__tstate); | |
19428 | if (PyErr_Occurred()) SWIG_fail; | |
19429 | } | |
19430 | Py_INCREF(Py_None); resultobj = Py_None; | |
19431 | { | |
19432 | if (temp2) | |
19433 | delete arg2; | |
19434 | } | |
19435 | return resultobj; | |
19436 | fail: | |
19437 | { | |
19438 | if (temp2) | |
19439 | delete arg2; | |
19440 | } | |
19441 | return NULL; | |
19442 | } | |
19443 | ||
19444 | ||
c32bde28 | 19445 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19446 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19447 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19448 | wxString *arg2 = 0 ; | |
ae8162c8 | 19449 | bool temp2 = false ; |
d14a1e28 RD |
19450 | PyObject * obj0 = 0 ; |
19451 | PyObject * obj1 = 0 ; | |
19452 | char *kwnames[] = { | |
19453 | (char *) "self",(char *) "vendorName", NULL | |
19454 | }; | |
19455 | ||
19456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19459 | { |
19460 | arg2 = wxString_in_helper(obj1); | |
19461 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19462 | temp2 = true; |
d14a1e28 RD |
19463 | } |
19464 | { | |
19465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19466 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19467 | ||
19468 | wxPyEndAllowThreads(__tstate); | |
19469 | if (PyErr_Occurred()) SWIG_fail; | |
19470 | } | |
19471 | Py_INCREF(Py_None); resultobj = Py_None; | |
19472 | { | |
19473 | if (temp2) | |
19474 | delete arg2; | |
19475 | } | |
19476 | return resultobj; | |
19477 | fail: | |
19478 | { | |
19479 | if (temp2) | |
19480 | delete arg2; | |
19481 | } | |
19482 | return NULL; | |
19483 | } | |
19484 | ||
19485 | ||
c32bde28 | 19486 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19487 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19488 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19489 | long arg2 ; | |
19490 | PyObject * obj0 = 0 ; | |
994141e6 | 19491 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19492 | char *kwnames[] = { |
19493 | (char *) "self",(char *) "style", NULL | |
19494 | }; | |
19495 | ||
994141e6 | 19496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19497 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19499 | { | |
32fe5131 | 19500 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
19501 | if (SWIG_arg_fail(2)) SWIG_fail; |
19502 | } | |
d14a1e28 RD |
19503 | { |
19504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19505 | (arg1)->SetStyle(arg2); | |
19506 | ||
19507 | wxPyEndAllowThreads(__tstate); | |
19508 | if (PyErr_Occurred()) SWIG_fail; | |
19509 | } | |
19510 | Py_INCREF(Py_None); resultobj = Py_None; | |
19511 | return resultobj; | |
19512 | fail: | |
19513 | return NULL; | |
19514 | } | |
19515 | ||
19516 | ||
c32bde28 | 19517 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19518 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19519 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19520 | long result; | |
19521 | PyObject * obj0 = 0 ; | |
19522 | char *kwnames[] = { | |
19523 | (char *) "self", NULL | |
19524 | }; | |
19525 | ||
19526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19529 | { |
19530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19531 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
19532 | ||
19533 | wxPyEndAllowThreads(__tstate); | |
19534 | if (PyErr_Occurred()) SWIG_fail; | |
19535 | } | |
093d3ff1 | 19536 | { |
32fe5131 | 19537 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 19538 | } |
d14a1e28 RD |
19539 | return resultobj; |
19540 | fail: | |
19541 | return NULL; | |
19542 | } | |
19543 | ||
19544 | ||
c32bde28 | 19545 | static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19546 | PyObject *obj; |
19547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19548 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
19549 | Py_INCREF(obj); | |
19550 | return Py_BuildValue((char *)""); | |
19551 | } | |
c32bde28 | 19552 | static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19553 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19554 | wxString const &arg1_defvalue = wxPyEmptyString ; |
19555 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
19556 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
19557 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
19558 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19559 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19560 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
19561 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4f89f6a3 | 19562 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 19563 | wxConfig *result; |
ae8162c8 RD |
19564 | bool temp1 = false ; |
19565 | bool temp2 = false ; | |
19566 | bool temp3 = false ; | |
19567 | bool temp4 = false ; | |
d14a1e28 RD |
19568 | PyObject * obj0 = 0 ; |
19569 | PyObject * obj1 = 0 ; | |
19570 | PyObject * obj2 = 0 ; | |
19571 | PyObject * obj3 = 0 ; | |
994141e6 | 19572 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
19573 | char *kwnames[] = { |
19574 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
19575 | }; | |
19576 | ||
994141e6 | 19577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
19578 | if (obj0) { |
19579 | { | |
19580 | arg1 = wxString_in_helper(obj0); | |
19581 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 19582 | temp1 = true; |
d14a1e28 RD |
19583 | } |
19584 | } | |
19585 | if (obj1) { | |
19586 | { | |
19587 | arg2 = wxString_in_helper(obj1); | |
19588 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19589 | temp2 = true; |
d14a1e28 RD |
19590 | } |
19591 | } | |
19592 | if (obj2) { | |
19593 | { | |
19594 | arg3 = wxString_in_helper(obj2); | |
19595 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 19596 | temp3 = true; |
d14a1e28 RD |
19597 | } |
19598 | } | |
19599 | if (obj3) { | |
19600 | { | |
19601 | arg4 = wxString_in_helper(obj3); | |
19602 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 19603 | temp4 = true; |
d14a1e28 RD |
19604 | } |
19605 | } | |
994141e6 | 19606 | if (obj4) { |
093d3ff1 | 19607 | { |
32fe5131 | 19608 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
19609 | if (SWIG_arg_fail(5)) SWIG_fail; |
19610 | } | |
994141e6 | 19611 | } |
d14a1e28 RD |
19612 | { |
19613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19614 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
19615 | ||
19616 | wxPyEndAllowThreads(__tstate); | |
19617 | if (PyErr_Occurred()) SWIG_fail; | |
19618 | } | |
15afbcd0 | 19619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); |
d14a1e28 RD |
19620 | { |
19621 | if (temp1) | |
19622 | delete arg1; | |
19623 | } | |
19624 | { | |
19625 | if (temp2) | |
19626 | delete arg2; | |
19627 | } | |
19628 | { | |
19629 | if (temp3) | |
19630 | delete arg3; | |
19631 | } | |
19632 | { | |
19633 | if (temp4) | |
19634 | delete arg4; | |
19635 | } | |
19636 | return resultobj; | |
19637 | fail: | |
19638 | { | |
19639 | if (temp1) | |
19640 | delete arg1; | |
19641 | } | |
19642 | { | |
19643 | if (temp2) | |
19644 | delete arg2; | |
19645 | } | |
19646 | { | |
19647 | if (temp3) | |
19648 | delete arg3; | |
19649 | } | |
19650 | { | |
19651 | if (temp4) | |
19652 | delete arg4; | |
19653 | } | |
19654 | return NULL; | |
19655 | } | |
19656 | ||
19657 | ||
c32bde28 | 19658 | static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19659 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19660 | wxConfig *arg1 = (wxConfig *) 0 ; |
19661 | PyObject * obj0 = 0 ; | |
19662 | char *kwnames[] = { | |
19663 | (char *) "self", NULL | |
19664 | }; | |
19665 | ||
19666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19667 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfig, SWIG_POINTER_EXCEPTION | 0); |
19668 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19669 | { |
19670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19671 | delete arg1; | |
19672 | ||
19673 | wxPyEndAllowThreads(__tstate); | |
19674 | if (PyErr_Occurred()) SWIG_fail; | |
19675 | } | |
19676 | Py_INCREF(Py_None); resultobj = Py_None; | |
19677 | return resultobj; | |
19678 | fail: | |
19679 | return NULL; | |
19680 | } | |
19681 | ||
19682 | ||
c32bde28 | 19683 | static PyObject * Config_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19684 | PyObject *obj; |
19685 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19686 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
19687 | Py_INCREF(obj); | |
19688 | return Py_BuildValue((char *)""); | |
19689 | } | |
c32bde28 | 19690 | static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19691 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19692 | wxString const &arg1_defvalue = wxPyEmptyString ; |
19693 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
19694 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
19695 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
19696 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19697 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19698 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
19699 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4276dc52 | 19700 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 19701 | wxFileConfig *result; |
ae8162c8 RD |
19702 | bool temp1 = false ; |
19703 | bool temp2 = false ; | |
19704 | bool temp3 = false ; | |
19705 | bool temp4 = false ; | |
d14a1e28 RD |
19706 | PyObject * obj0 = 0 ; |
19707 | PyObject * obj1 = 0 ; | |
19708 | PyObject * obj2 = 0 ; | |
19709 | PyObject * obj3 = 0 ; | |
994141e6 | 19710 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
19711 | char *kwnames[] = { |
19712 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
19713 | }; | |
19714 | ||
994141e6 | 19715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
19716 | if (obj0) { |
19717 | { | |
19718 | arg1 = wxString_in_helper(obj0); | |
19719 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 19720 | temp1 = true; |
d14a1e28 RD |
19721 | } |
19722 | } | |
19723 | if (obj1) { | |
19724 | { | |
19725 | arg2 = wxString_in_helper(obj1); | |
19726 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19727 | temp2 = true; |
d14a1e28 RD |
19728 | } |
19729 | } | |
19730 | if (obj2) { | |
19731 | { | |
19732 | arg3 = wxString_in_helper(obj2); | |
19733 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 19734 | temp3 = true; |
d14a1e28 RD |
19735 | } |
19736 | } | |
19737 | if (obj3) { | |
19738 | { | |
19739 | arg4 = wxString_in_helper(obj3); | |
19740 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 19741 | temp4 = true; |
d14a1e28 RD |
19742 | } |
19743 | } | |
994141e6 | 19744 | if (obj4) { |
093d3ff1 | 19745 | { |
32fe5131 | 19746 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
19747 | if (SWIG_arg_fail(5)) SWIG_fail; |
19748 | } | |
994141e6 | 19749 | } |
d14a1e28 RD |
19750 | { |
19751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19752 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
19753 | ||
19754 | wxPyEndAllowThreads(__tstate); | |
19755 | if (PyErr_Occurred()) SWIG_fail; | |
19756 | } | |
15afbcd0 | 19757 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); |
d14a1e28 RD |
19758 | { |
19759 | if (temp1) | |
19760 | delete arg1; | |
19761 | } | |
19762 | { | |
19763 | if (temp2) | |
19764 | delete arg2; | |
19765 | } | |
19766 | { | |
19767 | if (temp3) | |
19768 | delete arg3; | |
19769 | } | |
19770 | { | |
19771 | if (temp4) | |
19772 | delete arg4; | |
19773 | } | |
19774 | return resultobj; | |
19775 | fail: | |
19776 | { | |
19777 | if (temp1) | |
19778 | delete arg1; | |
19779 | } | |
19780 | { | |
19781 | if (temp2) | |
19782 | delete arg2; | |
19783 | } | |
19784 | { | |
19785 | if (temp3) | |
19786 | delete arg3; | |
19787 | } | |
19788 | { | |
19789 | if (temp4) | |
19790 | delete arg4; | |
19791 | } | |
19792 | return NULL; | |
19793 | } | |
19794 | ||
19795 | ||
c32bde28 | 19796 | static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19797 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19798 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; |
19799 | PyObject * obj0 = 0 ; | |
19800 | char *kwnames[] = { | |
19801 | (char *) "self", NULL | |
19802 | }; | |
19803 | ||
19804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19805 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileConfig, SWIG_POINTER_EXCEPTION | 0); |
19806 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19807 | { |
19808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19809 | delete arg1; | |
19810 | ||
19811 | wxPyEndAllowThreads(__tstate); | |
19812 | if (PyErr_Occurred()) SWIG_fail; | |
19813 | } | |
19814 | Py_INCREF(Py_None); resultobj = Py_None; | |
19815 | return resultobj; | |
19816 | fail: | |
19817 | return NULL; | |
19818 | } | |
19819 | ||
19820 | ||
c32bde28 | 19821 | static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19822 | PyObject *obj; |
19823 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19824 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
19825 | Py_INCREF(obj); | |
19826 | return Py_BuildValue((char *)""); | |
19827 | } | |
c32bde28 | 19828 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19829 | PyObject *resultobj = NULL; |
b88bce5f RD |
19830 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; |
19831 | wxString *arg2 = 0 ; | |
19832 | wxConfigPathChanger *result; | |
ae8162c8 | 19833 | bool temp2 = false ; |
b88bce5f RD |
19834 | PyObject * obj0 = 0 ; |
19835 | PyObject * obj1 = 0 ; | |
19836 | char *kwnames[] = { | |
19837 | (char *) "config",(char *) "entry", NULL | |
19838 | }; | |
19839 | ||
19840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
19842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b88bce5f RD |
19843 | { |
19844 | arg2 = wxString_in_helper(obj1); | |
19845 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19846 | temp2 = true; |
b88bce5f RD |
19847 | } |
19848 | { | |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
19851 | ||
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
15afbcd0 | 19855 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); |
b88bce5f RD |
19856 | { |
19857 | if (temp2) | |
19858 | delete arg2; | |
19859 | } | |
19860 | return resultobj; | |
19861 | fail: | |
19862 | { | |
19863 | if (temp2) | |
19864 | delete arg2; | |
19865 | } | |
19866 | return NULL; | |
19867 | } | |
19868 | ||
19869 | ||
c32bde28 | 19870 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19871 | PyObject *resultobj = NULL; |
b88bce5f RD |
19872 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; |
19873 | PyObject * obj0 = 0 ; | |
19874 | char *kwnames[] = { | |
19875 | (char *) "self", NULL | |
19876 | }; | |
19877 | ||
19878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0); |
19880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b88bce5f RD |
19881 | { |
19882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19883 | delete arg1; | |
19884 | ||
19885 | wxPyEndAllowThreads(__tstate); | |
19886 | if (PyErr_Occurred()) SWIG_fail; | |
19887 | } | |
19888 | Py_INCREF(Py_None); resultobj = Py_None; | |
19889 | return resultobj; | |
19890 | fail: | |
19891 | return NULL; | |
19892 | } | |
19893 | ||
19894 | ||
c32bde28 | 19895 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19896 | PyObject *resultobj = NULL; |
b88bce5f RD |
19897 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; |
19898 | wxString *result; | |
19899 | PyObject * obj0 = 0 ; | |
19900 | char *kwnames[] = { | |
19901 | (char *) "self", NULL | |
19902 | }; | |
19903 | ||
19904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0); |
19906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b88bce5f RD |
19907 | { |
19908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19909 | { | |
19910 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
19911 | result = (wxString *) &_result_ref; | |
19912 | } | |
19913 | ||
19914 | wxPyEndAllowThreads(__tstate); | |
19915 | if (PyErr_Occurred()) SWIG_fail; | |
19916 | } | |
19917 | { | |
19918 | #if wxUSE_UNICODE | |
19919 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19920 | #else | |
19921 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19922 | #endif | |
19923 | } | |
19924 | return resultobj; | |
19925 | fail: | |
19926 | return NULL; | |
19927 | } | |
19928 | ||
19929 | ||
c32bde28 | 19930 | static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) { |
b88bce5f RD |
19931 | PyObject *obj; |
19932 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19933 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
19934 | Py_INCREF(obj); | |
19935 | return Py_BuildValue((char *)""); | |
19936 | } | |
c32bde28 | 19937 | static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19938 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19939 | wxString *arg1 = 0 ; |
19940 | wxString result; | |
ae8162c8 | 19941 | bool temp1 = false ; |
d14a1e28 RD |
19942 | PyObject * obj0 = 0 ; |
19943 | char *kwnames[] = { | |
19944 | (char *) "sz", NULL | |
19945 | }; | |
19946 | ||
19947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
19948 | { | |
19949 | arg1 = wxString_in_helper(obj0); | |
19950 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 19951 | temp1 = true; |
d14a1e28 RD |
19952 | } |
19953 | { | |
19954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19955 | result = wxExpandEnvVars((wxString const &)*arg1); | |
19956 | ||
19957 | wxPyEndAllowThreads(__tstate); | |
19958 | if (PyErr_Occurred()) SWIG_fail; | |
19959 | } | |
19960 | { | |
19961 | #if wxUSE_UNICODE | |
19962 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19963 | #else | |
19964 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19965 | #endif | |
19966 | } | |
19967 | { | |
19968 | if (temp1) | |
19969 | delete arg1; | |
19970 | } | |
19971 | return resultobj; | |
19972 | fail: | |
19973 | { | |
19974 | if (temp1) | |
19975 | delete arg1; | |
19976 | } | |
19977 | return NULL; | |
19978 | } | |
19979 | ||
19980 | ||
7557b9b5 RD |
19981 | static int _wrap_DefaultDateTimeFormat_set(PyObject *) { |
19982 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTimeFormat is read-only."); | |
b2dc1044 RD |
19983 | return 1; |
19984 | } | |
19985 | ||
19986 | ||
7557b9b5 | 19987 | static PyObject *_wrap_DefaultDateTimeFormat_get(void) { |
32fe5131 | 19988 | PyObject *pyobj = NULL; |
b2dc1044 RD |
19989 | |
19990 | { | |
19991 | #if wxUSE_UNICODE | |
7557b9b5 | 19992 | pyobj = PyUnicode_FromWideChar((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len()); |
b2dc1044 | 19993 | #else |
7557b9b5 | 19994 | pyobj = PyString_FromStringAndSize((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len()); |
b2dc1044 RD |
19995 | #endif |
19996 | } | |
19997 | return pyobj; | |
19998 | } | |
19999 | ||
20000 | ||
7557b9b5 RD |
20001 | static int _wrap_DefaultTimeSpanFormat_set(PyObject *) { |
20002 | PyErr_SetString(PyExc_TypeError,"Variable DefaultTimeSpanFormat is read-only."); | |
b2dc1044 RD |
20003 | return 1; |
20004 | } | |
20005 | ||
20006 | ||
7557b9b5 | 20007 | static PyObject *_wrap_DefaultTimeSpanFormat_get(void) { |
32fe5131 | 20008 | PyObject *pyobj = NULL; |
b2dc1044 RD |
20009 | |
20010 | { | |
20011 | #if wxUSE_UNICODE | |
7557b9b5 | 20012 | pyobj = PyUnicode_FromWideChar((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len()); |
b2dc1044 | 20013 | #else |
7557b9b5 | 20014 | pyobj = PyString_FromStringAndSize((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len()); |
b2dc1044 RD |
20015 | #endif |
20016 | } | |
20017 | return pyobj; | |
20018 | } | |
20019 | ||
20020 | ||
c32bde28 | 20021 | static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20022 | PyObject *resultobj = NULL; |
093d3ff1 | 20023 | wxDateTime::Country arg1 ; |
994141e6 | 20024 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20025 | char *kwnames[] = { |
20026 | (char *) "country", NULL | |
20027 | }; | |
20028 | ||
994141e6 | 20029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; |
093d3ff1 | 20030 | { |
32fe5131 | 20031 | arg1 = static_cast<wxDateTime::Country >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20032 | if (SWIG_arg_fail(1)) SWIG_fail; |
20033 | } | |
d14a1e28 RD |
20034 | { |
20035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20036 | wxDateTime::SetCountry(arg1); |
d14a1e28 RD |
20037 | |
20038 | wxPyEndAllowThreads(__tstate); | |
20039 | if (PyErr_Occurred()) SWIG_fail; | |
20040 | } | |
20041 | Py_INCREF(Py_None); resultobj = Py_None; | |
20042 | return resultobj; | |
20043 | fail: | |
20044 | return NULL; | |
20045 | } | |
20046 | ||
20047 | ||
c32bde28 | 20048 | static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20049 | PyObject *resultobj = NULL; |
093d3ff1 | 20050 | wxDateTime::Country result; |
d14a1e28 RD |
20051 | char *kwnames[] = { |
20052 | NULL | |
20053 | }; | |
20054 | ||
20055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
20056 | { | |
20057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 20058 | result = (wxDateTime::Country)wxDateTime::GetCountry(); |
d14a1e28 RD |
20059 | |
20060 | wxPyEndAllowThreads(__tstate); | |
20061 | if (PyErr_Occurred()) SWIG_fail; | |
20062 | } | |
093d3ff1 | 20063 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
20064 | return resultobj; |
20065 | fail: | |
20066 | return NULL; | |
20067 | } | |
20068 | ||
20069 | ||
c32bde28 | 20070 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20071 | PyObject *resultobj = NULL; |
093d3ff1 | 20072 | wxDateTime::Country arg1 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 | 20073 | bool result; |
994141e6 | 20074 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20075 | char *kwnames[] = { |
20076 | (char *) "country", NULL | |
20077 | }; | |
20078 | ||
994141e6 RD |
20079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; |
20080 | if (obj0) { | |
093d3ff1 | 20081 | { |
32fe5131 | 20082 | arg1 = static_cast<wxDateTime::Country >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20083 | if (SWIG_arg_fail(1)) SWIG_fail; |
20084 | } | |
994141e6 | 20085 | } |
d14a1e28 RD |
20086 | { |
20087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20088 | result = (bool)wxDateTime::IsWestEuropeanCountry(arg1); |
d14a1e28 RD |
20089 | |
20090 | wxPyEndAllowThreads(__tstate); | |
20091 | if (PyErr_Occurred()) SWIG_fail; | |
20092 | } | |
4f89f6a3 RD |
20093 | { |
20094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20095 | } | |
d14a1e28 RD |
20096 | return resultobj; |
20097 | fail: | |
20098 | return NULL; | |
20099 | } | |
20100 | ||
20101 | ||
c32bde28 | 20102 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20103 | PyObject *resultobj = NULL; |
093d3ff1 | 20104 | wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d14a1e28 | 20105 | int result; |
994141e6 | 20106 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20107 | char *kwnames[] = { |
20108 | (char *) "cal", NULL | |
20109 | }; | |
20110 | ||
994141e6 RD |
20111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; |
20112 | if (obj0) { | |
093d3ff1 | 20113 | { |
32fe5131 | 20114 | arg1 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20115 | if (SWIG_arg_fail(1)) SWIG_fail; |
20116 | } | |
994141e6 | 20117 | } |
d14a1e28 RD |
20118 | { |
20119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20120 | result = (int)wxDateTime::GetCurrentYear(arg1); |
d14a1e28 RD |
20121 | |
20122 | wxPyEndAllowThreads(__tstate); | |
20123 | if (PyErr_Occurred()) SWIG_fail; | |
20124 | } | |
093d3ff1 | 20125 | { |
32fe5131 | 20126 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20127 | } |
d14a1e28 RD |
20128 | return resultobj; |
20129 | fail: | |
20130 | return NULL; | |
20131 | } | |
20132 | ||
20133 | ||
c32bde28 | 20134 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20135 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20136 | int arg1 ; |
20137 | int result; | |
994141e6 | 20138 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20139 | char *kwnames[] = { |
20140 | (char *) "year", NULL | |
20141 | }; | |
20142 | ||
994141e6 | 20143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; |
093d3ff1 | 20144 | { |
32fe5131 | 20145 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20146 | if (SWIG_arg_fail(1)) SWIG_fail; |
20147 | } | |
d14a1e28 RD |
20148 | { |
20149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20150 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
20151 | ||
20152 | wxPyEndAllowThreads(__tstate); | |
20153 | if (PyErr_Occurred()) SWIG_fail; | |
20154 | } | |
093d3ff1 | 20155 | { |
32fe5131 | 20156 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20157 | } |
d14a1e28 RD |
20158 | return resultobj; |
20159 | fail: | |
20160 | return NULL; | |
20161 | } | |
20162 | ||
20163 | ||
c32bde28 | 20164 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20165 | PyObject *resultobj = NULL; |
093d3ff1 RD |
20166 | wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
20167 | wxDateTime::Month result; | |
994141e6 | 20168 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20169 | char *kwnames[] = { |
20170 | (char *) "cal", NULL | |
20171 | }; | |
20172 | ||
994141e6 RD |
20173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; |
20174 | if (obj0) { | |
093d3ff1 | 20175 | { |
32fe5131 | 20176 | arg1 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20177 | if (SWIG_arg_fail(1)) SWIG_fail; |
20178 | } | |
994141e6 | 20179 | } |
d14a1e28 RD |
20180 | { |
20181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20182 | result = (wxDateTime::Month)wxDateTime::GetCurrentMonth(arg1); |
d14a1e28 RD |
20183 | |
20184 | wxPyEndAllowThreads(__tstate); | |
20185 | if (PyErr_Occurred()) SWIG_fail; | |
20186 | } | |
093d3ff1 | 20187 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
20188 | return resultobj; |
20189 | fail: | |
20190 | return NULL; | |
20191 | } | |
20192 | ||
20193 | ||
c32bde28 | 20194 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20195 | PyObject *resultobj = NULL; |
d14a1e28 | 20196 | int arg1 = (int) wxDateTime::Inv_Year ; |
093d3ff1 | 20197 | wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d14a1e28 | 20198 | bool result; |
994141e6 RD |
20199 | PyObject * obj0 = 0 ; |
20200 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20201 | char *kwnames[] = { |
20202 | (char *) "year",(char *) "cal", NULL | |
20203 | }; | |
20204 | ||
994141e6 RD |
20205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; |
20206 | if (obj0) { | |
093d3ff1 | 20207 | { |
32fe5131 | 20208 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20209 | if (SWIG_arg_fail(1)) SWIG_fail; |
20210 | } | |
994141e6 RD |
20211 | } |
20212 | if (obj1) { | |
093d3ff1 | 20213 | { |
32fe5131 | 20214 | arg2 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20215 | if (SWIG_arg_fail(2)) SWIG_fail; |
20216 | } | |
994141e6 | 20217 | } |
d14a1e28 RD |
20218 | { |
20219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20220 | result = (bool)wxDateTime::IsLeapYear(arg1,arg2); |
d14a1e28 RD |
20221 | |
20222 | wxPyEndAllowThreads(__tstate); | |
20223 | if (PyErr_Occurred()) SWIG_fail; | |
20224 | } | |
4f89f6a3 RD |
20225 | { |
20226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20227 | } | |
d14a1e28 RD |
20228 | return resultobj; |
20229 | fail: | |
20230 | return NULL; | |
20231 | } | |
20232 | ||
20233 | ||
c32bde28 | 20234 | static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20235 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20236 | int arg1 = (int) wxDateTime::Inv_Year ; |
20237 | int result; | |
994141e6 | 20238 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20239 | char *kwnames[] = { |
20240 | (char *) "year", NULL | |
20241 | }; | |
20242 | ||
994141e6 RD |
20243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; |
20244 | if (obj0) { | |
093d3ff1 | 20245 | { |
32fe5131 | 20246 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20247 | if (SWIG_arg_fail(1)) SWIG_fail; |
20248 | } | |
994141e6 | 20249 | } |
d14a1e28 RD |
20250 | { |
20251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20252 | result = (int)wxDateTime::GetCentury(arg1); | |
20253 | ||
20254 | wxPyEndAllowThreads(__tstate); | |
20255 | if (PyErr_Occurred()) SWIG_fail; | |
20256 | } | |
093d3ff1 | 20257 | { |
32fe5131 | 20258 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20259 | } |
d14a1e28 RD |
20260 | return resultobj; |
20261 | fail: | |
20262 | return NULL; | |
20263 | } | |
20264 | ||
20265 | ||
c32bde28 | 20266 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20267 | PyObject *resultobj = NULL; |
d14a1e28 | 20268 | int arg1 ; |
093d3ff1 | 20269 | wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
322913ce | 20270 | int result; |
994141e6 RD |
20271 | PyObject * obj0 = 0 ; |
20272 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20273 | char *kwnames[] = { |
20274 | (char *) "year",(char *) "cal", NULL | |
20275 | }; | |
20276 | ||
994141e6 | 20277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 | 20278 | { |
32fe5131 | 20279 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20280 | if (SWIG_arg_fail(1)) SWIG_fail; |
20281 | } | |
994141e6 | 20282 | if (obj1) { |
093d3ff1 | 20283 | { |
32fe5131 | 20284 | arg2 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20285 | if (SWIG_arg_fail(2)) SWIG_fail; |
20286 | } | |
994141e6 | 20287 | } |
d14a1e28 RD |
20288 | { |
20289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20290 | result = (int)wxDateTime::GetNumberOfDays(arg1,arg2); |
d14a1e28 RD |
20291 | |
20292 | wxPyEndAllowThreads(__tstate); | |
20293 | if (PyErr_Occurred()) SWIG_fail; | |
20294 | } | |
093d3ff1 | 20295 | { |
32fe5131 | 20296 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20297 | } |
d14a1e28 RD |
20298 | return resultobj; |
20299 | fail: | |
20300 | return NULL; | |
20301 | } | |
20302 | ||
20303 | ||
c32bde28 | 20304 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20305 | PyObject *resultobj = NULL; |
093d3ff1 | 20306 | wxDateTime::Month arg1 ; |
d14a1e28 | 20307 | int arg2 = (int) wxDateTime::Inv_Year ; |
093d3ff1 | 20308 | wxDateTime::Calendar arg3 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
322913ce | 20309 | int result; |
994141e6 RD |
20310 | PyObject * obj0 = 0 ; |
20311 | PyObject * obj1 = 0 ; | |
20312 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20313 | char *kwnames[] = { |
20314 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
20315 | }; | |
20316 | ||
994141e6 | 20317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 | 20318 | { |
32fe5131 | 20319 | arg1 = static_cast<wxDateTime::Month >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20320 | if (SWIG_arg_fail(1)) SWIG_fail; |
20321 | } | |
994141e6 | 20322 | if (obj1) { |
093d3ff1 | 20323 | { |
32fe5131 | 20324 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20325 | if (SWIG_arg_fail(2)) SWIG_fail; |
20326 | } | |
994141e6 RD |
20327 | } |
20328 | if (obj2) { | |
093d3ff1 | 20329 | { |
32fe5131 | 20330 | arg3 = static_cast<wxDateTime::Calendar >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20331 | if (SWIG_arg_fail(3)) SWIG_fail; |
20332 | } | |
994141e6 | 20333 | } |
d14a1e28 RD |
20334 | { |
20335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20336 | result = (int)wxDateTime::GetNumberOfDays(arg1,arg2,arg3); |
d14a1e28 RD |
20337 | |
20338 | wxPyEndAllowThreads(__tstate); | |
20339 | if (PyErr_Occurred()) SWIG_fail; | |
20340 | } | |
093d3ff1 | 20341 | { |
32fe5131 | 20342 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20343 | } |
d14a1e28 RD |
20344 | return resultobj; |
20345 | fail: | |
20346 | return NULL; | |
20347 | } | |
20348 | ||
20349 | ||
c32bde28 | 20350 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20351 | PyObject *resultobj = NULL; |
093d3ff1 RD |
20352 | wxDateTime::Month arg1 ; |
20353 | wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ; | |
d14a1e28 | 20354 | wxString result; |
994141e6 RD |
20355 | PyObject * obj0 = 0 ; |
20356 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20357 | char *kwnames[] = { |
20358 | (char *) "month",(char *) "flags", NULL | |
20359 | }; | |
20360 | ||
994141e6 | 20361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 | 20362 | { |
32fe5131 | 20363 | arg1 = static_cast<wxDateTime::Month >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20364 | if (SWIG_arg_fail(1)) SWIG_fail; |
20365 | } | |
994141e6 | 20366 | if (obj1) { |
093d3ff1 | 20367 | { |
32fe5131 | 20368 | arg2 = static_cast<wxDateTime::NameFlags >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20369 | if (SWIG_arg_fail(2)) SWIG_fail; |
20370 | } | |
994141e6 | 20371 | } |
d14a1e28 RD |
20372 | { |
20373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20374 | result = wxDateTime::GetMonthName(arg1,arg2); |
d14a1e28 RD |
20375 | |
20376 | wxPyEndAllowThreads(__tstate); | |
20377 | if (PyErr_Occurred()) SWIG_fail; | |
20378 | } | |
20379 | { | |
20380 | #if wxUSE_UNICODE | |
20381 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20382 | #else | |
20383 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20384 | #endif | |
20385 | } | |
20386 | return resultobj; | |
20387 | fail: | |
20388 | return NULL; | |
20389 | } | |
20390 | ||
20391 | ||
c32bde28 | 20392 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20393 | PyObject *resultobj = NULL; |
093d3ff1 RD |
20394 | wxDateTime::WeekDay arg1 ; |
20395 | wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ; | |
d14a1e28 | 20396 | wxString result; |
994141e6 RD |
20397 | PyObject * obj0 = 0 ; |
20398 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20399 | char *kwnames[] = { |
20400 | (char *) "weekday",(char *) "flags", NULL | |
20401 | }; | |
20402 | ||
994141e6 | 20403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 | 20404 | { |
32fe5131 | 20405 | arg1 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20406 | if (SWIG_arg_fail(1)) SWIG_fail; |
20407 | } | |
994141e6 | 20408 | if (obj1) { |
093d3ff1 | 20409 | { |
32fe5131 | 20410 | arg2 = static_cast<wxDateTime::NameFlags >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20411 | if (SWIG_arg_fail(2)) SWIG_fail; |
20412 | } | |
994141e6 | 20413 | } |
d14a1e28 RD |
20414 | { |
20415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20416 | result = wxDateTime::GetWeekDayName(arg1,arg2); |
d14a1e28 RD |
20417 | |
20418 | wxPyEndAllowThreads(__tstate); | |
20419 | if (PyErr_Occurred()) SWIG_fail; | |
20420 | } | |
20421 | { | |
20422 | #if wxUSE_UNICODE | |
20423 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20424 | #else | |
20425 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20426 | #endif | |
20427 | } | |
20428 | return resultobj; | |
20429 | fail: | |
20430 | return NULL; | |
20431 | } | |
20432 | ||
20433 | ||
c32bde28 | 20434 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20435 | PyObject *resultobj = NULL; |
b9d6a5f3 | 20436 | PyObject *result; |
d14a1e28 | 20437 | char *kwnames[] = { |
b9d6a5f3 | 20438 | NULL |
d14a1e28 RD |
20439 | }; |
20440 | ||
b9d6a5f3 | 20441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetAmPmStrings",kwnames)) goto fail; |
d14a1e28 RD |
20442 | { |
20443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20444 | result = (PyObject *)wxDateTime_GetAmPmStrings(); |
d14a1e28 RD |
20445 | |
20446 | wxPyEndAllowThreads(__tstate); | |
20447 | if (PyErr_Occurred()) SWIG_fail; | |
20448 | } | |
b9d6a5f3 | 20449 | resultobj = result; |
d14a1e28 RD |
20450 | return resultobj; |
20451 | fail: | |
20452 | return NULL; | |
20453 | } | |
20454 | ||
20455 | ||
c32bde28 | 20456 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20457 | PyObject *resultobj = NULL; |
d14a1e28 | 20458 | int arg1 = (int) wxDateTime::Inv_Year ; |
093d3ff1 | 20459 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 | 20460 | bool result; |
994141e6 RD |
20461 | PyObject * obj0 = 0 ; |
20462 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20463 | char *kwnames[] = { |
20464 | (char *) "year",(char *) "country", NULL | |
20465 | }; | |
20466 | ||
994141e6 RD |
20467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; |
20468 | if (obj0) { | |
093d3ff1 | 20469 | { |
32fe5131 | 20470 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20471 | if (SWIG_arg_fail(1)) SWIG_fail; |
20472 | } | |
994141e6 RD |
20473 | } |
20474 | if (obj1) { | |
093d3ff1 | 20475 | { |
32fe5131 | 20476 | arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20477 | if (SWIG_arg_fail(2)) SWIG_fail; |
20478 | } | |
994141e6 | 20479 | } |
d14a1e28 RD |
20480 | { |
20481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20482 | result = (bool)wxDateTime::IsDSTApplicable(arg1,arg2); |
d14a1e28 RD |
20483 | |
20484 | wxPyEndAllowThreads(__tstate); | |
20485 | if (PyErr_Occurred()) SWIG_fail; | |
20486 | } | |
4f89f6a3 RD |
20487 | { |
20488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20489 | } | |
d14a1e28 RD |
20490 | return resultobj; |
20491 | fail: | |
20492 | return NULL; | |
20493 | } | |
20494 | ||
20495 | ||
c32bde28 | 20496 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20497 | PyObject *resultobj = NULL; |
d14a1e28 | 20498 | int arg1 = (int) wxDateTime::Inv_Year ; |
093d3ff1 | 20499 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 | 20500 | wxDateTime result; |
994141e6 RD |
20501 | PyObject * obj0 = 0 ; |
20502 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20503 | char *kwnames[] = { |
20504 | (char *) "year",(char *) "country", NULL | |
20505 | }; | |
20506 | ||
994141e6 RD |
20507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; |
20508 | if (obj0) { | |
093d3ff1 | 20509 | { |
32fe5131 | 20510 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20511 | if (SWIG_arg_fail(1)) SWIG_fail; |
20512 | } | |
994141e6 RD |
20513 | } |
20514 | if (obj1) { | |
093d3ff1 | 20515 | { |
32fe5131 | 20516 | arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20517 | if (SWIG_arg_fail(2)) SWIG_fail; |
20518 | } | |
994141e6 | 20519 | } |
d14a1e28 RD |
20520 | { |
20521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20522 | result = wxDateTime::GetBeginDST(arg1,arg2); |
d14a1e28 RD |
20523 | |
20524 | wxPyEndAllowThreads(__tstate); | |
20525 | if (PyErr_Occurred()) SWIG_fail; | |
20526 | } | |
20527 | { | |
20528 | wxDateTime * resultptr; | |
32fe5131 | 20529 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 20530 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20531 | } |
20532 | return resultobj; | |
20533 | fail: | |
20534 | return NULL; | |
20535 | } | |
20536 | ||
20537 | ||
c32bde28 | 20538 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20539 | PyObject *resultobj = NULL; |
d14a1e28 | 20540 | int arg1 = (int) wxDateTime::Inv_Year ; |
093d3ff1 | 20541 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 | 20542 | wxDateTime result; |
994141e6 RD |
20543 | PyObject * obj0 = 0 ; |
20544 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20545 | char *kwnames[] = { |
20546 | (char *) "year",(char *) "country", NULL | |
20547 | }; | |
20548 | ||
994141e6 RD |
20549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; |
20550 | if (obj0) { | |
093d3ff1 | 20551 | { |
32fe5131 | 20552 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20553 | if (SWIG_arg_fail(1)) SWIG_fail; |
20554 | } | |
994141e6 RD |
20555 | } |
20556 | if (obj1) { | |
093d3ff1 | 20557 | { |
32fe5131 | 20558 | arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20559 | if (SWIG_arg_fail(2)) SWIG_fail; |
20560 | } | |
994141e6 | 20561 | } |
d14a1e28 RD |
20562 | { |
20563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20564 | result = wxDateTime::GetEndDST(arg1,arg2); |
d14a1e28 RD |
20565 | |
20566 | wxPyEndAllowThreads(__tstate); | |
20567 | if (PyErr_Occurred()) SWIG_fail; | |
20568 | } | |
20569 | { | |
20570 | wxDateTime * resultptr; | |
32fe5131 | 20571 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 20572 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20573 | } |
20574 | return resultobj; | |
20575 | fail: | |
20576 | return NULL; | |
20577 | } | |
20578 | ||
20579 | ||
c32bde28 | 20580 | static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20581 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20582 | wxDateTime result; |
20583 | char *kwnames[] = { | |
20584 | NULL | |
20585 | }; | |
20586 | ||
20587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
20588 | { | |
20589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20590 | result = wxDateTime::Now(); | |
20591 | ||
20592 | wxPyEndAllowThreads(__tstate); | |
20593 | if (PyErr_Occurred()) SWIG_fail; | |
20594 | } | |
20595 | { | |
20596 | wxDateTime * resultptr; | |
32fe5131 | 20597 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 20598 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20599 | } |
20600 | return resultobj; | |
20601 | fail: | |
20602 | return NULL; | |
20603 | } | |
20604 | ||
20605 | ||
c32bde28 | 20606 | static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20607 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20608 | wxDateTime result; |
20609 | char *kwnames[] = { | |
20610 | NULL | |
20611 | }; | |
20612 | ||
20613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
20614 | { | |
20615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20616 | result = wxDateTime::UNow(); | |
20617 | ||
20618 | wxPyEndAllowThreads(__tstate); | |
20619 | if (PyErr_Occurred()) SWIG_fail; | |
20620 | } | |
20621 | { | |
20622 | wxDateTime * resultptr; | |
32fe5131 | 20623 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 20624 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20625 | } |
20626 | return resultobj; | |
20627 | fail: | |
20628 | return NULL; | |
20629 | } | |
20630 | ||
20631 | ||
c32bde28 | 20632 | static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20633 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20634 | wxDateTime result; |
20635 | char *kwnames[] = { | |
20636 | NULL | |
20637 | }; | |
20638 | ||
20639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
20640 | { | |
20641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20642 | result = wxDateTime::Today(); | |
20643 | ||
20644 | wxPyEndAllowThreads(__tstate); | |
20645 | if (PyErr_Occurred()) SWIG_fail; | |
20646 | } | |
20647 | { | |
20648 | wxDateTime * resultptr; | |
32fe5131 | 20649 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 20650 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20651 | } |
20652 | return resultobj; | |
20653 | fail: | |
20654 | return NULL; | |
20655 | } | |
20656 | ||
20657 | ||
c32bde28 | 20658 | static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20659 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20660 | wxDateTime *result; |
20661 | char *kwnames[] = { | |
20662 | NULL | |
20663 | }; | |
20664 | ||
20665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
20666 | { | |
20667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20668 | result = (wxDateTime *)new wxDateTime(); | |
20669 | ||
20670 | wxPyEndAllowThreads(__tstate); | |
20671 | if (PyErr_Occurred()) SWIG_fail; | |
20672 | } | |
15afbcd0 | 20673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20674 | return resultobj; |
20675 | fail: | |
20676 | return NULL; | |
20677 | } | |
20678 | ||
20679 | ||
c32bde28 | 20680 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20681 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20682 | time_t arg1 ; |
20683 | wxDateTime *result; | |
20684 | PyObject * obj0 = 0 ; | |
20685 | char *kwnames[] = { | |
20686 | (char *) "timet", NULL | |
20687 | }; | |
20688 | ||
20689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
093d3ff1 | 20690 | { |
32fe5131 | 20691 | arg1 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj0)); |
093d3ff1 RD |
20692 | if (SWIG_arg_fail(1)) SWIG_fail; |
20693 | } | |
d14a1e28 RD |
20694 | { |
20695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20696 | result = (wxDateTime *)new wxDateTime(arg1); | |
20697 | ||
20698 | wxPyEndAllowThreads(__tstate); | |
20699 | if (PyErr_Occurred()) SWIG_fail; | |
20700 | } | |
15afbcd0 | 20701 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20702 | return resultobj; |
20703 | fail: | |
20704 | return NULL; | |
20705 | } | |
20706 | ||
20707 | ||
c32bde28 | 20708 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20709 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20710 | double arg1 ; |
20711 | wxDateTime *result; | |
994141e6 | 20712 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20713 | char *kwnames[] = { |
20714 | (char *) "jdn", NULL | |
20715 | }; | |
20716 | ||
994141e6 | 20717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; |
093d3ff1 | 20718 | { |
32fe5131 | 20719 | arg1 = static_cast<double >(SWIG_As_double(obj0)); |
093d3ff1 RD |
20720 | if (SWIG_arg_fail(1)) SWIG_fail; |
20721 | } | |
d14a1e28 RD |
20722 | { |
20723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20724 | result = (wxDateTime *)new wxDateTime(arg1); | |
20725 | ||
20726 | wxPyEndAllowThreads(__tstate); | |
20727 | if (PyErr_Occurred()) SWIG_fail; | |
20728 | } | |
15afbcd0 | 20729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20730 | return resultobj; |
20731 | fail: | |
20732 | return NULL; | |
20733 | } | |
20734 | ||
20735 | ||
c32bde28 | 20736 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20737 | PyObject *resultobj = NULL; |
322913ce RD |
20738 | int arg1 ; |
20739 | int arg2 = (int) 0 ; | |
20740 | int arg3 = (int) 0 ; | |
20741 | int arg4 = (int) 0 ; | |
d14a1e28 | 20742 | wxDateTime *result; |
994141e6 RD |
20743 | PyObject * obj0 = 0 ; |
20744 | PyObject * obj1 = 0 ; | |
20745 | PyObject * obj2 = 0 ; | |
20746 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20747 | char *kwnames[] = { |
20748 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
20749 | }; | |
20750 | ||
994141e6 | 20751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 | 20752 | { |
32fe5131 | 20753 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20754 | if (SWIG_arg_fail(1)) SWIG_fail; |
20755 | } | |
994141e6 | 20756 | if (obj1) { |
093d3ff1 | 20757 | { |
32fe5131 | 20758 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20759 | if (SWIG_arg_fail(2)) SWIG_fail; |
20760 | } | |
994141e6 RD |
20761 | } |
20762 | if (obj2) { | |
093d3ff1 | 20763 | { |
32fe5131 | 20764 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20765 | if (SWIG_arg_fail(3)) SWIG_fail; |
20766 | } | |
994141e6 RD |
20767 | } |
20768 | if (obj3) { | |
093d3ff1 | 20769 | { |
32fe5131 | 20770 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
20771 | if (SWIG_arg_fail(4)) SWIG_fail; |
20772 | } | |
994141e6 | 20773 | } |
d14a1e28 RD |
20774 | { |
20775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20776 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
20777 | ||
20778 | wxPyEndAllowThreads(__tstate); | |
20779 | if (PyErr_Occurred()) SWIG_fail; | |
20780 | } | |
15afbcd0 | 20781 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20782 | return resultobj; |
20783 | fail: | |
20784 | return NULL; | |
20785 | } | |
20786 | ||
20787 | ||
c32bde28 | 20788 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20789 | PyObject *resultobj = NULL; |
322913ce | 20790 | int arg1 ; |
093d3ff1 | 20791 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d14a1e28 | 20792 | int arg3 = (int) wxDateTime::Inv_Year ; |
322913ce RD |
20793 | int arg4 = (int) 0 ; |
20794 | int arg5 = (int) 0 ; | |
20795 | int arg6 = (int) 0 ; | |
20796 | int arg7 = (int) 0 ; | |
d14a1e28 | 20797 | wxDateTime *result; |
994141e6 RD |
20798 | PyObject * obj0 = 0 ; |
20799 | PyObject * obj1 = 0 ; | |
20800 | PyObject * obj2 = 0 ; | |
20801 | PyObject * obj3 = 0 ; | |
20802 | PyObject * obj4 = 0 ; | |
20803 | PyObject * obj5 = 0 ; | |
20804 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
20805 | char *kwnames[] = { |
20806 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
20807 | }; | |
20808 | ||
994141e6 | 20809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 | 20810 | { |
32fe5131 | 20811 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
20812 | if (SWIG_arg_fail(1)) SWIG_fail; |
20813 | } | |
994141e6 | 20814 | if (obj1) { |
093d3ff1 | 20815 | { |
32fe5131 | 20816 | arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20817 | if (SWIG_arg_fail(2)) SWIG_fail; |
20818 | } | |
994141e6 RD |
20819 | } |
20820 | if (obj2) { | |
093d3ff1 | 20821 | { |
32fe5131 | 20822 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20823 | if (SWIG_arg_fail(3)) SWIG_fail; |
20824 | } | |
994141e6 RD |
20825 | } |
20826 | if (obj3) { | |
093d3ff1 | 20827 | { |
32fe5131 | 20828 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
20829 | if (SWIG_arg_fail(4)) SWIG_fail; |
20830 | } | |
994141e6 RD |
20831 | } |
20832 | if (obj4) { | |
093d3ff1 | 20833 | { |
32fe5131 | 20834 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
20835 | if (SWIG_arg_fail(5)) SWIG_fail; |
20836 | } | |
994141e6 RD |
20837 | } |
20838 | if (obj5) { | |
093d3ff1 | 20839 | { |
32fe5131 | 20840 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
20841 | if (SWIG_arg_fail(6)) SWIG_fail; |
20842 | } | |
994141e6 RD |
20843 | } |
20844 | if (obj6) { | |
093d3ff1 | 20845 | { |
32fe5131 | 20846 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
093d3ff1 RD |
20847 | if (SWIG_arg_fail(7)) SWIG_fail; |
20848 | } | |
994141e6 | 20849 | } |
d14a1e28 RD |
20850 | { |
20851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20852 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
d14a1e28 RD |
20853 | |
20854 | wxPyEndAllowThreads(__tstate); | |
20855 | if (PyErr_Occurred()) SWIG_fail; | |
20856 | } | |
15afbcd0 | 20857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20858 | return resultobj; |
20859 | fail: | |
20860 | return NULL; | |
20861 | } | |
20862 | ||
20863 | ||
c32bde28 | 20864 | static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20865 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20866 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
20867 | PyObject * obj0 = 0 ; | |
20868 | char *kwnames[] = { | |
20869 | (char *) "self", NULL | |
20870 | }; | |
20871 | ||
20872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20873 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20874 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20875 | { |
20876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20877 | delete arg1; | |
20878 | ||
20879 | wxPyEndAllowThreads(__tstate); | |
20880 | if (PyErr_Occurred()) SWIG_fail; | |
20881 | } | |
20882 | Py_INCREF(Py_None); resultobj = Py_None; | |
20883 | return resultobj; | |
20884 | fail: | |
20885 | return NULL; | |
20886 | } | |
20887 | ||
20888 | ||
c32bde28 | 20889 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20890 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20891 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
20892 | wxDateTime *result; | |
20893 | PyObject * obj0 = 0 ; | |
20894 | char *kwnames[] = { | |
20895 | (char *) "self", NULL | |
20896 | }; | |
20897 | ||
20898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20901 | { |
20902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20903 | { | |
20904 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
20905 | result = (wxDateTime *) &_result_ref; | |
20906 | } | |
20907 | ||
20908 | wxPyEndAllowThreads(__tstate); | |
20909 | if (PyErr_Occurred()) SWIG_fail; | |
20910 | } | |
15afbcd0 | 20911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20912 | return resultobj; |
20913 | fail: | |
20914 | return NULL; | |
20915 | } | |
20916 | ||
20917 | ||
c32bde28 | 20918 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20919 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20920 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
20921 | time_t arg2 ; | |
20922 | wxDateTime *result; | |
20923 | PyObject * obj0 = 0 ; | |
20924 | PyObject * obj1 = 0 ; | |
20925 | char *kwnames[] = { | |
20926 | (char *) "self",(char *) "timet", NULL | |
20927 | }; | |
20928 | ||
20929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20930 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20931 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20932 | { | |
32fe5131 | 20933 | arg2 = static_cast<time_t >(SWIG_As_unsigned_SS_int(obj1)); |
093d3ff1 RD |
20934 | if (SWIG_arg_fail(2)) SWIG_fail; |
20935 | } | |
d14a1e28 RD |
20936 | { |
20937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20938 | { | |
20939 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
20940 | result = (wxDateTime *) &_result_ref; | |
20941 | } | |
20942 | ||
20943 | wxPyEndAllowThreads(__tstate); | |
20944 | if (PyErr_Occurred()) SWIG_fail; | |
20945 | } | |
15afbcd0 | 20946 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20947 | return resultobj; |
20948 | fail: | |
20949 | return NULL; | |
20950 | } | |
20951 | ||
20952 | ||
c32bde28 | 20953 | static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20954 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20955 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
20956 | double arg2 ; | |
20957 | wxDateTime *result; | |
20958 | PyObject * obj0 = 0 ; | |
994141e6 | 20959 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20960 | char *kwnames[] = { |
20961 | (char *) "self",(char *) "jdn", NULL | |
20962 | }; | |
20963 | ||
994141e6 | 20964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20965 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20967 | { | |
32fe5131 | 20968 | arg2 = static_cast<double >(SWIG_As_double(obj1)); |
093d3ff1 RD |
20969 | if (SWIG_arg_fail(2)) SWIG_fail; |
20970 | } | |
d14a1e28 RD |
20971 | { |
20972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20973 | { | |
20974 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
20975 | result = (wxDateTime *) &_result_ref; | |
20976 | } | |
20977 | ||
20978 | wxPyEndAllowThreads(__tstate); | |
20979 | if (PyErr_Occurred()) SWIG_fail; | |
20980 | } | |
15afbcd0 | 20981 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20982 | return resultobj; |
20983 | fail: | |
20984 | return NULL; | |
20985 | } | |
20986 | ||
20987 | ||
c32bde28 | 20988 | static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20989 | PyObject *resultobj = NULL; |
d14a1e28 | 20990 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
322913ce RD |
20991 | int arg2 ; |
20992 | int arg3 = (int) 0 ; | |
20993 | int arg4 = (int) 0 ; | |
20994 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
20995 | wxDateTime *result; |
20996 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20997 | PyObject * obj1 = 0 ; |
20998 | PyObject * obj2 = 0 ; | |
20999 | PyObject * obj3 = 0 ; | |
21000 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
21001 | char *kwnames[] = { |
21002 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
21003 | }; | |
21004 | ||
994141e6 | 21005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
21006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21008 | { | |
32fe5131 | 21009 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21010 | if (SWIG_arg_fail(2)) SWIG_fail; |
21011 | } | |
994141e6 | 21012 | if (obj2) { |
093d3ff1 | 21013 | { |
32fe5131 | 21014 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21015 | if (SWIG_arg_fail(3)) SWIG_fail; |
21016 | } | |
994141e6 RD |
21017 | } |
21018 | if (obj3) { | |
093d3ff1 | 21019 | { |
32fe5131 | 21020 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21021 | if (SWIG_arg_fail(4)) SWIG_fail; |
21022 | } | |
994141e6 RD |
21023 | } |
21024 | if (obj4) { | |
093d3ff1 | 21025 | { |
32fe5131 | 21026 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
21027 | if (SWIG_arg_fail(5)) SWIG_fail; |
21028 | } | |
994141e6 | 21029 | } |
d14a1e28 RD |
21030 | { |
21031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21032 | { | |
21033 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
21034 | result = (wxDateTime *) &_result_ref; | |
21035 | } | |
21036 | ||
21037 | wxPyEndAllowThreads(__tstate); | |
21038 | if (PyErr_Occurred()) SWIG_fail; | |
21039 | } | |
15afbcd0 | 21040 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21041 | return resultobj; |
21042 | fail: | |
21043 | return NULL; | |
21044 | } | |
21045 | ||
21046 | ||
c32bde28 | 21047 | static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21048 | PyObject *resultobj = NULL; |
d14a1e28 | 21049 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
322913ce | 21050 | int arg2 ; |
093d3ff1 | 21051 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d14a1e28 | 21052 | int arg4 = (int) wxDateTime::Inv_Year ; |
322913ce RD |
21053 | int arg5 = (int) 0 ; |
21054 | int arg6 = (int) 0 ; | |
21055 | int arg7 = (int) 0 ; | |
21056 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
21057 | wxDateTime *result; |
21058 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21059 | PyObject * obj1 = 0 ; |
21060 | PyObject * obj2 = 0 ; | |
21061 | PyObject * obj3 = 0 ; | |
21062 | PyObject * obj4 = 0 ; | |
21063 | PyObject * obj5 = 0 ; | |
21064 | PyObject * obj6 = 0 ; | |
21065 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
21066 | char *kwnames[] = { |
21067 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
21068 | }; | |
21069 | ||
994141e6 | 21070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
21071 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21072 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21073 | { | |
32fe5131 | 21074 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21075 | if (SWIG_arg_fail(2)) SWIG_fail; |
21076 | } | |
994141e6 | 21077 | if (obj2) { |
093d3ff1 | 21078 | { |
32fe5131 | 21079 | arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21080 | if (SWIG_arg_fail(3)) SWIG_fail; |
21081 | } | |
994141e6 RD |
21082 | } |
21083 | if (obj3) { | |
093d3ff1 | 21084 | { |
32fe5131 | 21085 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21086 | if (SWIG_arg_fail(4)) SWIG_fail; |
21087 | } | |
21088 | } | |
994141e6 | 21089 | if (obj4) { |
093d3ff1 | 21090 | { |
32fe5131 | 21091 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
21092 | if (SWIG_arg_fail(5)) SWIG_fail; |
21093 | } | |
994141e6 RD |
21094 | } |
21095 | if (obj5) { | |
093d3ff1 | 21096 | { |
32fe5131 | 21097 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
21098 | if (SWIG_arg_fail(6)) SWIG_fail; |
21099 | } | |
994141e6 RD |
21100 | } |
21101 | if (obj6) { | |
093d3ff1 | 21102 | { |
32fe5131 | 21103 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
093d3ff1 RD |
21104 | if (SWIG_arg_fail(7)) SWIG_fail; |
21105 | } | |
994141e6 RD |
21106 | } |
21107 | if (obj7) { | |
093d3ff1 | 21108 | { |
32fe5131 | 21109 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
21110 | if (SWIG_arg_fail(8)) SWIG_fail; |
21111 | } | |
994141e6 | 21112 | } |
d14a1e28 RD |
21113 | { |
21114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21115 | { | |
32fe5131 | 21116 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7,arg8); |
d14a1e28 RD |
21117 | result = (wxDateTime *) &_result_ref; |
21118 | } | |
21119 | ||
21120 | wxPyEndAllowThreads(__tstate); | |
21121 | if (PyErr_Occurred()) SWIG_fail; | |
21122 | } | |
15afbcd0 | 21123 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21124 | return resultobj; |
21125 | fail: | |
21126 | return NULL; | |
21127 | } | |
21128 | ||
21129 | ||
c32bde28 | 21130 | static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21131 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21132 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21133 | wxDateTime *result; | |
21134 | PyObject * obj0 = 0 ; | |
21135 | char *kwnames[] = { | |
21136 | (char *) "self", NULL | |
21137 | }; | |
21138 | ||
21139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21142 | { |
21143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21144 | { | |
21145 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
21146 | result = (wxDateTime *) &_result_ref; | |
21147 | } | |
21148 | ||
21149 | wxPyEndAllowThreads(__tstate); | |
21150 | if (PyErr_Occurred()) SWIG_fail; | |
21151 | } | |
15afbcd0 | 21152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21153 | return resultobj; |
21154 | fail: | |
21155 | return NULL; | |
21156 | } | |
21157 | ||
21158 | ||
c32bde28 | 21159 | static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21160 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21161 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
21162 | int arg2 ; | |
21163 | wxDateTime *result; | |
21164 | PyObject * obj0 = 0 ; | |
994141e6 | 21165 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21166 | char *kwnames[] = { |
21167 | (char *) "self",(char *) "year", NULL | |
21168 | }; | |
21169 | ||
994141e6 | 21170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21173 | { | |
32fe5131 | 21174 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21175 | if (SWIG_arg_fail(2)) SWIG_fail; |
21176 | } | |
d14a1e28 RD |
21177 | { |
21178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21179 | { | |
21180 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
21181 | result = (wxDateTime *) &_result_ref; | |
21182 | } | |
21183 | ||
21184 | wxPyEndAllowThreads(__tstate); | |
21185 | if (PyErr_Occurred()) SWIG_fail; | |
21186 | } | |
15afbcd0 | 21187 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21188 | return resultobj; |
21189 | fail: | |
21190 | return NULL; | |
21191 | } | |
21192 | ||
21193 | ||
c32bde28 | 21194 | static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21195 | PyObject *resultobj = NULL; |
d14a1e28 | 21196 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21197 | wxDateTime::Month arg2 ; |
d14a1e28 RD |
21198 | wxDateTime *result; |
21199 | PyObject * obj0 = 0 ; | |
994141e6 | 21200 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21201 | char *kwnames[] = { |
21202 | (char *) "self",(char *) "month", NULL | |
21203 | }; | |
21204 | ||
994141e6 | 21205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21206 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21207 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21208 | { | |
32fe5131 | 21209 | arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21210 | if (SWIG_arg_fail(2)) SWIG_fail; |
21211 | } | |
d14a1e28 RD |
21212 | { |
21213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21214 | { | |
32fe5131 | 21215 | wxDateTime &_result_ref = (arg1)->SetMonth(arg2); |
d14a1e28 RD |
21216 | result = (wxDateTime *) &_result_ref; |
21217 | } | |
21218 | ||
21219 | wxPyEndAllowThreads(__tstate); | |
21220 | if (PyErr_Occurred()) SWIG_fail; | |
21221 | } | |
15afbcd0 | 21222 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21223 | return resultobj; |
21224 | fail: | |
21225 | return NULL; | |
21226 | } | |
21227 | ||
21228 | ||
c32bde28 | 21229 | static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21230 | PyObject *resultobj = NULL; |
d14a1e28 | 21231 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
322913ce | 21232 | int arg2 ; |
d14a1e28 RD |
21233 | wxDateTime *result; |
21234 | PyObject * obj0 = 0 ; | |
994141e6 | 21235 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21236 | char *kwnames[] = { |
21237 | (char *) "self",(char *) "day", NULL | |
21238 | }; | |
21239 | ||
994141e6 | 21240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21241 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21242 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21243 | { | |
32fe5131 | 21244 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21245 | if (SWIG_arg_fail(2)) SWIG_fail; |
21246 | } | |
d14a1e28 RD |
21247 | { |
21248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21249 | { | |
21250 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
21251 | result = (wxDateTime *) &_result_ref; | |
21252 | } | |
21253 | ||
21254 | wxPyEndAllowThreads(__tstate); | |
21255 | if (PyErr_Occurred()) SWIG_fail; | |
21256 | } | |
15afbcd0 | 21257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21258 | return resultobj; |
21259 | fail: | |
21260 | return NULL; | |
21261 | } | |
21262 | ||
21263 | ||
c32bde28 | 21264 | static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21265 | PyObject *resultobj = NULL; |
d14a1e28 | 21266 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
322913ce | 21267 | int arg2 ; |
d14a1e28 RD |
21268 | wxDateTime *result; |
21269 | PyObject * obj0 = 0 ; | |
994141e6 | 21270 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21271 | char *kwnames[] = { |
21272 | (char *) "self",(char *) "hour", NULL | |
21273 | }; | |
21274 | ||
994141e6 | 21275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21276 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21277 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21278 | { | |
32fe5131 | 21279 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21280 | if (SWIG_arg_fail(2)) SWIG_fail; |
21281 | } | |
d14a1e28 RD |
21282 | { |
21283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21284 | { | |
21285 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
21286 | result = (wxDateTime *) &_result_ref; | |
21287 | } | |
21288 | ||
21289 | wxPyEndAllowThreads(__tstate); | |
21290 | if (PyErr_Occurred()) SWIG_fail; | |
21291 | } | |
15afbcd0 | 21292 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21293 | return resultobj; |
21294 | fail: | |
21295 | return NULL; | |
21296 | } | |
21297 | ||
21298 | ||
c32bde28 | 21299 | static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21300 | PyObject *resultobj = NULL; |
d14a1e28 | 21301 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
322913ce | 21302 | int arg2 ; |
d14a1e28 RD |
21303 | wxDateTime *result; |
21304 | PyObject * obj0 = 0 ; | |
994141e6 | 21305 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21306 | char *kwnames[] = { |
21307 | (char *) "self",(char *) "minute", NULL | |
21308 | }; | |
21309 | ||
994141e6 | 21310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21313 | { | |
32fe5131 | 21314 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21315 | if (SWIG_arg_fail(2)) SWIG_fail; |
21316 | } | |
d14a1e28 RD |
21317 | { |
21318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21319 | { | |
21320 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
21321 | result = (wxDateTime *) &_result_ref; | |
21322 | } | |
21323 | ||
21324 | wxPyEndAllowThreads(__tstate); | |
21325 | if (PyErr_Occurred()) SWIG_fail; | |
21326 | } | |
15afbcd0 | 21327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21328 | return resultobj; |
21329 | fail: | |
21330 | return NULL; | |
21331 | } | |
21332 | ||
21333 | ||
c32bde28 | 21334 | static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21335 | PyObject *resultobj = NULL; |
d14a1e28 | 21336 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
322913ce | 21337 | int arg2 ; |
d14a1e28 RD |
21338 | wxDateTime *result; |
21339 | PyObject * obj0 = 0 ; | |
994141e6 | 21340 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21341 | char *kwnames[] = { |
21342 | (char *) "self",(char *) "second", NULL | |
21343 | }; | |
21344 | ||
994141e6 | 21345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21346 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21347 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21348 | { | |
32fe5131 | 21349 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21350 | if (SWIG_arg_fail(2)) SWIG_fail; |
21351 | } | |
d14a1e28 RD |
21352 | { |
21353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21354 | { | |
21355 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
21356 | result = (wxDateTime *) &_result_ref; | |
21357 | } | |
21358 | ||
21359 | wxPyEndAllowThreads(__tstate); | |
21360 | if (PyErr_Occurred()) SWIG_fail; | |
21361 | } | |
15afbcd0 | 21362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21363 | return resultobj; |
21364 | fail: | |
21365 | return NULL; | |
21366 | } | |
21367 | ||
21368 | ||
c32bde28 | 21369 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21370 | PyObject *resultobj = NULL; |
d14a1e28 | 21371 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
322913ce | 21372 | int arg2 ; |
d14a1e28 RD |
21373 | wxDateTime *result; |
21374 | PyObject * obj0 = 0 ; | |
994141e6 | 21375 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21376 | char *kwnames[] = { |
21377 | (char *) "self",(char *) "millisecond", NULL | |
21378 | }; | |
21379 | ||
994141e6 | 21380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21383 | { | |
32fe5131 | 21384 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21385 | if (SWIG_arg_fail(2)) SWIG_fail; |
21386 | } | |
d14a1e28 RD |
21387 | { |
21388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21389 | { | |
21390 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
21391 | result = (wxDateTime *) &_result_ref; | |
21392 | } | |
21393 | ||
21394 | wxPyEndAllowThreads(__tstate); | |
21395 | if (PyErr_Occurred()) SWIG_fail; | |
21396 | } | |
15afbcd0 | 21397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21398 | return resultobj; |
21399 | fail: | |
21400 | return NULL; | |
21401 | } | |
21402 | ||
21403 | ||
c32bde28 | 21404 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21405 | PyObject *resultobj = NULL; |
d14a1e28 | 21406 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 RD |
21407 | wxDateTime::WeekDay arg2 ; |
21408 | wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d14a1e28 RD |
21409 | wxDateTime *result; |
21410 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21411 | PyObject * obj1 = 0 ; |
21412 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21413 | char *kwnames[] = { |
21414 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
21415 | }; | |
21416 | ||
994141e6 | 21417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21418 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21419 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21420 | { | |
32fe5131 | 21421 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21422 | if (SWIG_arg_fail(2)) SWIG_fail; |
21423 | } | |
994141e6 | 21424 | if (obj2) { |
093d3ff1 | 21425 | { |
32fe5131 | 21426 | arg3 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21427 | if (SWIG_arg_fail(3)) SWIG_fail; |
21428 | } | |
994141e6 | 21429 | } |
d14a1e28 RD |
21430 | { |
21431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21432 | { | |
32fe5131 | 21433 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek(arg2,arg3); |
d14a1e28 RD |
21434 | result = (wxDateTime *) &_result_ref; |
21435 | } | |
21436 | ||
21437 | wxPyEndAllowThreads(__tstate); | |
21438 | if (PyErr_Occurred()) SWIG_fail; | |
21439 | } | |
15afbcd0 | 21440 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21441 | return resultobj; |
21442 | fail: | |
21443 | return NULL; | |
21444 | } | |
21445 | ||
21446 | ||
c32bde28 | 21447 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21448 | PyObject *resultobj = NULL; |
d14a1e28 | 21449 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 RD |
21450 | wxDateTime::WeekDay arg2 ; |
21451 | wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d14a1e28 RD |
21452 | wxDateTime result; |
21453 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21454 | PyObject * obj1 = 0 ; |
21455 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21456 | char *kwnames[] = { |
21457 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
21458 | }; | |
21459 | ||
994141e6 | 21460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21461 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21463 | { | |
32fe5131 | 21464 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21465 | if (SWIG_arg_fail(2)) SWIG_fail; |
21466 | } | |
994141e6 | 21467 | if (obj2) { |
093d3ff1 | 21468 | { |
32fe5131 | 21469 | arg3 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21470 | if (SWIG_arg_fail(3)) SWIG_fail; |
21471 | } | |
994141e6 | 21472 | } |
d14a1e28 RD |
21473 | { |
21474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 21475 | result = (arg1)->GetWeekDayInSameWeek(arg2,arg3); |
d14a1e28 RD |
21476 | |
21477 | wxPyEndAllowThreads(__tstate); | |
21478 | if (PyErr_Occurred()) SWIG_fail; | |
21479 | } | |
21480 | { | |
21481 | wxDateTime * resultptr; | |
32fe5131 | 21482 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 21483 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
21484 | } |
21485 | return resultobj; | |
21486 | fail: | |
21487 | return NULL; | |
21488 | } | |
21489 | ||
21490 | ||
c32bde28 | 21491 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21492 | PyObject *resultobj = NULL; |
d14a1e28 | 21493 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21494 | wxDateTime::WeekDay arg2 ; |
d14a1e28 RD |
21495 | wxDateTime *result; |
21496 | PyObject * obj0 = 0 ; | |
994141e6 | 21497 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21498 | char *kwnames[] = { |
21499 | (char *) "self",(char *) "weekday", NULL | |
21500 | }; | |
21501 | ||
994141e6 | 21502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21505 | { | |
32fe5131 | 21506 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21507 | if (SWIG_arg_fail(2)) SWIG_fail; |
21508 | } | |
d14a1e28 RD |
21509 | { |
21510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21511 | { | |
32fe5131 | 21512 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay(arg2); |
d14a1e28 RD |
21513 | result = (wxDateTime *) &_result_ref; |
21514 | } | |
21515 | ||
21516 | wxPyEndAllowThreads(__tstate); | |
21517 | if (PyErr_Occurred()) SWIG_fail; | |
21518 | } | |
15afbcd0 | 21519 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21520 | return resultobj; |
21521 | fail: | |
21522 | return NULL; | |
21523 | } | |
21524 | ||
21525 | ||
c32bde28 | 21526 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21527 | PyObject *resultobj = NULL; |
d14a1e28 | 21528 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21529 | wxDateTime::WeekDay arg2 ; |
d14a1e28 RD |
21530 | wxDateTime result; |
21531 | PyObject * obj0 = 0 ; | |
994141e6 | 21532 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21533 | char *kwnames[] = { |
21534 | (char *) "self",(char *) "weekday", NULL | |
21535 | }; | |
21536 | ||
994141e6 | 21537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21540 | { | |
32fe5131 | 21541 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21542 | if (SWIG_arg_fail(2)) SWIG_fail; |
21543 | } | |
d14a1e28 RD |
21544 | { |
21545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 21546 | result = (arg1)->GetNextWeekDay(arg2); |
d14a1e28 RD |
21547 | |
21548 | wxPyEndAllowThreads(__tstate); | |
21549 | if (PyErr_Occurred()) SWIG_fail; | |
21550 | } | |
21551 | { | |
21552 | wxDateTime * resultptr; | |
32fe5131 | 21553 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 21554 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
21555 | } |
21556 | return resultobj; | |
21557 | fail: | |
21558 | return NULL; | |
21559 | } | |
21560 | ||
21561 | ||
c32bde28 | 21562 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21563 | PyObject *resultobj = NULL; |
d14a1e28 | 21564 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21565 | wxDateTime::WeekDay arg2 ; |
d14a1e28 RD |
21566 | wxDateTime *result; |
21567 | PyObject * obj0 = 0 ; | |
994141e6 | 21568 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21569 | char *kwnames[] = { |
21570 | (char *) "self",(char *) "weekday", NULL | |
21571 | }; | |
21572 | ||
994141e6 | 21573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21574 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21575 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21576 | { | |
32fe5131 | 21577 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21578 | if (SWIG_arg_fail(2)) SWIG_fail; |
21579 | } | |
d14a1e28 RD |
21580 | { |
21581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21582 | { | |
32fe5131 | 21583 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay(arg2); |
d14a1e28 RD |
21584 | result = (wxDateTime *) &_result_ref; |
21585 | } | |
21586 | ||
21587 | wxPyEndAllowThreads(__tstate); | |
21588 | if (PyErr_Occurred()) SWIG_fail; | |
21589 | } | |
15afbcd0 | 21590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21591 | return resultobj; |
21592 | fail: | |
21593 | return NULL; | |
21594 | } | |
21595 | ||
21596 | ||
c32bde28 | 21597 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21598 | PyObject *resultobj = NULL; |
d14a1e28 | 21599 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21600 | wxDateTime::WeekDay arg2 ; |
d14a1e28 RD |
21601 | wxDateTime result; |
21602 | PyObject * obj0 = 0 ; | |
994141e6 | 21603 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21604 | char *kwnames[] = { |
21605 | (char *) "self",(char *) "weekday", NULL | |
21606 | }; | |
21607 | ||
994141e6 | 21608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21609 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21610 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21611 | { | |
32fe5131 | 21612 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21613 | if (SWIG_arg_fail(2)) SWIG_fail; |
21614 | } | |
d14a1e28 RD |
21615 | { |
21616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 21617 | result = (arg1)->GetPrevWeekDay(arg2); |
d14a1e28 RD |
21618 | |
21619 | wxPyEndAllowThreads(__tstate); | |
21620 | if (PyErr_Occurred()) SWIG_fail; | |
21621 | } | |
21622 | { | |
21623 | wxDateTime * resultptr; | |
32fe5131 | 21624 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 21625 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
21626 | } |
21627 | return resultobj; | |
21628 | fail: | |
21629 | return NULL; | |
21630 | } | |
21631 | ||
21632 | ||
c32bde28 | 21633 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21634 | PyObject *resultobj = NULL; |
d14a1e28 | 21635 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21636 | wxDateTime::WeekDay arg2 ; |
d14a1e28 | 21637 | int arg3 = (int) 1 ; |
093d3ff1 | 21638 | wxDateTime::Month arg4 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d14a1e28 RD |
21639 | int arg5 = (int) wxDateTime::Inv_Year ; |
21640 | bool result; | |
21641 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21642 | PyObject * obj1 = 0 ; |
21643 | PyObject * obj2 = 0 ; | |
21644 | PyObject * obj3 = 0 ; | |
21645 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
21646 | char *kwnames[] = { |
21647 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
21648 | }; | |
21649 | ||
994141e6 | 21650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
21651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21653 | { | |
32fe5131 | 21654 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21655 | if (SWIG_arg_fail(2)) SWIG_fail; |
21656 | } | |
994141e6 | 21657 | if (obj2) { |
093d3ff1 | 21658 | { |
32fe5131 | 21659 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21660 | if (SWIG_arg_fail(3)) SWIG_fail; |
21661 | } | |
994141e6 RD |
21662 | } |
21663 | if (obj3) { | |
093d3ff1 | 21664 | { |
32fe5131 | 21665 | arg4 = static_cast<wxDateTime::Month >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21666 | if (SWIG_arg_fail(4)) SWIG_fail; |
21667 | } | |
994141e6 RD |
21668 | } |
21669 | if (obj4) { | |
093d3ff1 | 21670 | { |
32fe5131 | 21671 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
21672 | if (SWIG_arg_fail(5)) SWIG_fail; |
21673 | } | |
994141e6 | 21674 | } |
d14a1e28 RD |
21675 | { |
21676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 21677 | result = (bool)(arg1)->SetToWeekDay(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
21678 | |
21679 | wxPyEndAllowThreads(__tstate); | |
21680 | if (PyErr_Occurred()) SWIG_fail; | |
21681 | } | |
4f89f6a3 RD |
21682 | { |
21683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21684 | } | |
d14a1e28 RD |
21685 | return resultobj; |
21686 | fail: | |
21687 | return NULL; | |
21688 | } | |
21689 | ||
21690 | ||
c32bde28 | 21691 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21692 | PyObject *resultobj = NULL; |
d14a1e28 | 21693 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 RD |
21694 | wxDateTime::WeekDay arg2 ; |
21695 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; | |
d14a1e28 RD |
21696 | int arg4 = (int) wxDateTime::Inv_Year ; |
21697 | bool result; | |
21698 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21699 | PyObject * obj1 = 0 ; |
21700 | PyObject * obj2 = 0 ; | |
21701 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21702 | char *kwnames[] = { |
21703 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
21704 | }; | |
21705 | ||
994141e6 | 21706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
21707 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21709 | { | |
32fe5131 | 21710 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21711 | if (SWIG_arg_fail(2)) SWIG_fail; |
21712 | } | |
994141e6 | 21713 | if (obj2) { |
093d3ff1 | 21714 | { |
32fe5131 | 21715 | arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21716 | if (SWIG_arg_fail(3)) SWIG_fail; |
21717 | } | |
994141e6 RD |
21718 | } |
21719 | if (obj3) { | |
093d3ff1 | 21720 | { |
32fe5131 | 21721 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21722 | if (SWIG_arg_fail(4)) SWIG_fail; |
21723 | } | |
994141e6 | 21724 | } |
d14a1e28 RD |
21725 | { |
21726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 21727 | result = (bool)(arg1)->SetToLastWeekDay(arg2,arg3,arg4); |
d14a1e28 RD |
21728 | |
21729 | wxPyEndAllowThreads(__tstate); | |
21730 | if (PyErr_Occurred()) SWIG_fail; | |
21731 | } | |
4f89f6a3 RD |
21732 | { |
21733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21734 | } | |
d14a1e28 RD |
21735 | return resultobj; |
21736 | fail: | |
21737 | return NULL; | |
21738 | } | |
21739 | ||
21740 | ||
c32bde28 | 21741 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21742 | PyObject *resultobj = NULL; |
d14a1e28 | 21743 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 RD |
21744 | wxDateTime::WeekDay arg2 ; |
21745 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; | |
d14a1e28 RD |
21746 | int arg4 = (int) wxDateTime::Inv_Year ; |
21747 | wxDateTime result; | |
21748 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21749 | PyObject * obj1 = 0 ; |
21750 | PyObject * obj2 = 0 ; | |
21751 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21752 | char *kwnames[] = { |
21753 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
21754 | }; | |
21755 | ||
994141e6 | 21756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
21757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21759 | { | |
32fe5131 | 21760 | arg2 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21761 | if (SWIG_arg_fail(2)) SWIG_fail; |
21762 | } | |
994141e6 | 21763 | if (obj2) { |
093d3ff1 | 21764 | { |
32fe5131 | 21765 | arg3 = static_cast<wxDateTime::Month >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21766 | if (SWIG_arg_fail(3)) SWIG_fail; |
21767 | } | |
994141e6 RD |
21768 | } |
21769 | if (obj3) { | |
093d3ff1 | 21770 | { |
32fe5131 | 21771 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21772 | if (SWIG_arg_fail(4)) SWIG_fail; |
21773 | } | |
994141e6 | 21774 | } |
d14a1e28 RD |
21775 | { |
21776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 21777 | result = (arg1)->GetLastWeekDay(arg2,arg3,arg4); |
d14a1e28 RD |
21778 | |
21779 | wxPyEndAllowThreads(__tstate); | |
21780 | if (PyErr_Occurred()) SWIG_fail; | |
21781 | } | |
21782 | { | |
21783 | wxDateTime * resultptr; | |
32fe5131 | 21784 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 21785 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
21786 | } |
21787 | return resultobj; | |
21788 | fail: | |
21789 | return NULL; | |
21790 | } | |
21791 | ||
21792 | ||
c32bde28 | 21793 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21794 | PyObject *resultobj = NULL; |
d14a1e28 | 21795 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
322913ce | 21796 | int arg2 ; |
093d3ff1 RD |
21797 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
21798 | wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d14a1e28 RD |
21799 | bool result; |
21800 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21801 | PyObject * obj1 = 0 ; |
21802 | PyObject * obj2 = 0 ; | |
21803 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21804 | char *kwnames[] = { |
21805 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
21806 | }; | |
21807 | ||
994141e6 | 21808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
21809 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21810 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21811 | { | |
32fe5131 | 21812 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21813 | if (SWIG_arg_fail(2)) SWIG_fail; |
21814 | } | |
994141e6 | 21815 | if (obj2) { |
093d3ff1 | 21816 | { |
32fe5131 | 21817 | arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21818 | if (SWIG_arg_fail(3)) SWIG_fail; |
21819 | } | |
994141e6 RD |
21820 | } |
21821 | if (obj3) { | |
093d3ff1 | 21822 | { |
32fe5131 | 21823 | arg4 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21824 | if (SWIG_arg_fail(4)) SWIG_fail; |
21825 | } | |
994141e6 | 21826 | } |
d14a1e28 RD |
21827 | { |
21828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 21829 | result = (bool)(arg1)->SetToTheWeek(arg2,arg3,arg4); |
d14a1e28 RD |
21830 | |
21831 | wxPyEndAllowThreads(__tstate); | |
21832 | if (PyErr_Occurred()) SWIG_fail; | |
21833 | } | |
4f89f6a3 RD |
21834 | { |
21835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21836 | } | |
d14a1e28 RD |
21837 | return resultobj; |
21838 | fail: | |
21839 | return NULL; | |
21840 | } | |
21841 | ||
21842 | ||
c32bde28 | 21843 | static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21844 | PyObject *resultobj = NULL; |
d14a1e28 | 21845 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
322913ce | 21846 | int arg2 ; |
093d3ff1 RD |
21847 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
21848 | wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d14a1e28 RD |
21849 | wxDateTime result; |
21850 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21851 | PyObject * obj1 = 0 ; |
21852 | PyObject * obj2 = 0 ; | |
21853 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21854 | char *kwnames[] = { |
21855 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
21856 | }; | |
21857 | ||
994141e6 | 21858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
21859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21861 | { | |
32fe5131 | 21862 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21863 | if (SWIG_arg_fail(2)) SWIG_fail; |
21864 | } | |
994141e6 | 21865 | if (obj2) { |
093d3ff1 | 21866 | { |
32fe5131 | 21867 | arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21868 | if (SWIG_arg_fail(3)) SWIG_fail; |
21869 | } | |
994141e6 RD |
21870 | } |
21871 | if (obj3) { | |
093d3ff1 | 21872 | { |
32fe5131 | 21873 | arg4 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj3)); |
093d3ff1 RD |
21874 | if (SWIG_arg_fail(4)) SWIG_fail; |
21875 | } | |
994141e6 | 21876 | } |
d14a1e28 RD |
21877 | { |
21878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 21879 | result = (arg1)->GetWeek(arg2,arg3,arg4); |
d14a1e28 RD |
21880 | |
21881 | wxPyEndAllowThreads(__tstate); | |
21882 | if (PyErr_Occurred()) SWIG_fail; | |
21883 | } | |
21884 | { | |
21885 | wxDateTime * resultptr; | |
32fe5131 | 21886 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 21887 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
21888 | } |
21889 | return resultobj; | |
21890 | fail: | |
21891 | return NULL; | |
21892 | } | |
21893 | ||
21894 | ||
7e63a440 | 21895 | static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21896 | PyObject *resultobj = NULL; |
7e63a440 RD |
21897 | int arg1 ; |
21898 | int arg2 ; | |
093d3ff1 | 21899 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
7e63a440 RD |
21900 | wxDateTime result; |
21901 | PyObject * obj0 = 0 ; | |
21902 | PyObject * obj1 = 0 ; | |
21903 | PyObject * obj2 = 0 ; | |
21904 | char *kwnames[] = { | |
21905 | (char *) "year",(char *) "numWeek",(char *) "weekday", NULL | |
21906 | }; | |
21907 | ||
21908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 | 21909 | { |
32fe5131 | 21910 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
21911 | if (SWIG_arg_fail(1)) SWIG_fail; |
21912 | } | |
21913 | { | |
32fe5131 | 21914 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21915 | if (SWIG_arg_fail(2)) SWIG_fail; |
21916 | } | |
7e63a440 | 21917 | if (obj2) { |
093d3ff1 | 21918 | { |
32fe5131 | 21919 | arg3 = static_cast<wxDateTime::WeekDay >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21920 | if (SWIG_arg_fail(3)) SWIG_fail; |
21921 | } | |
7e63a440 RD |
21922 | } |
21923 | { | |
21924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 21925 | result = wxDateTime::SetToWeekOfYear(arg1,arg2,arg3); |
7e63a440 RD |
21926 | |
21927 | wxPyEndAllowThreads(__tstate); | |
21928 | if (PyErr_Occurred()) SWIG_fail; | |
21929 | } | |
21930 | { | |
21931 | wxDateTime * resultptr; | |
32fe5131 | 21932 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
7e63a440 RD |
21933 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21934 | } | |
21935 | return resultobj; | |
21936 | fail: | |
21937 | return NULL; | |
21938 | } | |
21939 | ||
21940 | ||
c32bde28 | 21941 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21942 | PyObject *resultobj = NULL; |
d14a1e28 | 21943 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21944 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d14a1e28 RD |
21945 | int arg3 = (int) wxDateTime::Inv_Year ; |
21946 | wxDateTime *result; | |
21947 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21948 | PyObject * obj1 = 0 ; |
21949 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21950 | char *kwnames[] = { |
21951 | (char *) "self",(char *) "month",(char *) "year", NULL | |
21952 | }; | |
21953 | ||
994141e6 | 21954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 21957 | if (obj1) { |
093d3ff1 | 21958 | { |
32fe5131 | 21959 | arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21960 | if (SWIG_arg_fail(2)) SWIG_fail; |
21961 | } | |
994141e6 RD |
21962 | } |
21963 | if (obj2) { | |
093d3ff1 | 21964 | { |
32fe5131 | 21965 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21966 | if (SWIG_arg_fail(3)) SWIG_fail; |
21967 | } | |
994141e6 | 21968 | } |
d14a1e28 RD |
21969 | { |
21970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21971 | { | |
32fe5131 | 21972 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay(arg2,arg3); |
d14a1e28 RD |
21973 | result = (wxDateTime *) &_result_ref; |
21974 | } | |
21975 | ||
21976 | wxPyEndAllowThreads(__tstate); | |
21977 | if (PyErr_Occurred()) SWIG_fail; | |
21978 | } | |
15afbcd0 | 21979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21980 | return resultobj; |
21981 | fail: | |
21982 | return NULL; | |
21983 | } | |
21984 | ||
21985 | ||
c32bde28 | 21986 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21987 | PyObject *resultobj = NULL; |
d14a1e28 | 21988 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 21989 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d14a1e28 RD |
21990 | int arg3 = (int) wxDateTime::Inv_Year ; |
21991 | wxDateTime result; | |
21992 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21993 | PyObject * obj1 = 0 ; |
21994 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21995 | char *kwnames[] = { |
21996 | (char *) "self",(char *) "month",(char *) "year", NULL | |
21997 | }; | |
21998 | ||
994141e6 | 21999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
22000 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22001 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 22002 | if (obj1) { |
093d3ff1 | 22003 | { |
32fe5131 | 22004 | arg2 = static_cast<wxDateTime::Month >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22005 | if (SWIG_arg_fail(2)) SWIG_fail; |
22006 | } | |
994141e6 RD |
22007 | } |
22008 | if (obj2) { | |
093d3ff1 | 22009 | { |
32fe5131 | 22010 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
22011 | if (SWIG_arg_fail(3)) SWIG_fail; |
22012 | } | |
994141e6 | 22013 | } |
d14a1e28 RD |
22014 | { |
22015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 22016 | result = (arg1)->GetLastMonthDay(arg2,arg3); |
d14a1e28 RD |
22017 | |
22018 | wxPyEndAllowThreads(__tstate); | |
22019 | if (PyErr_Occurred()) SWIG_fail; | |
22020 | } | |
22021 | { | |
22022 | wxDateTime * resultptr; | |
32fe5131 | 22023 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 22024 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
22025 | } |
22026 | return resultobj; | |
22027 | fail: | |
22028 | return NULL; | |
22029 | } | |
22030 | ||
22031 | ||
c32bde28 | 22032 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22033 | PyObject *resultobj = NULL; |
d14a1e28 | 22034 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
322913ce | 22035 | int arg2 ; |
d14a1e28 RD |
22036 | wxDateTime *result; |
22037 | PyObject * obj0 = 0 ; | |
994141e6 | 22038 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22039 | char *kwnames[] = { |
22040 | (char *) "self",(char *) "yday", NULL | |
22041 | }; | |
22042 | ||
994141e6 | 22043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22046 | { | |
32fe5131 | 22047 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22048 | if (SWIG_arg_fail(2)) SWIG_fail; |
22049 | } | |
d14a1e28 RD |
22050 | { |
22051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22052 | { | |
22053 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
22054 | result = (wxDateTime *) &_result_ref; | |
22055 | } | |
22056 | ||
22057 | wxPyEndAllowThreads(__tstate); | |
22058 | if (PyErr_Occurred()) SWIG_fail; | |
22059 | } | |
15afbcd0 | 22060 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
22061 | return resultobj; |
22062 | fail: | |
22063 | return NULL; | |
22064 | } | |
22065 | ||
22066 | ||
c32bde28 | 22067 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22068 | PyObject *resultobj = NULL; |
d14a1e28 | 22069 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
322913ce | 22070 | int arg2 ; |
d14a1e28 RD |
22071 | wxDateTime result; |
22072 | PyObject * obj0 = 0 ; | |
994141e6 | 22073 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22074 | char *kwnames[] = { |
22075 | (char *) "self",(char *) "yday", NULL | |
22076 | }; | |
22077 | ||
994141e6 | 22078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22079 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22080 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22081 | { | |
32fe5131 | 22082 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22083 | if (SWIG_arg_fail(2)) SWIG_fail; |
22084 | } | |
d14a1e28 RD |
22085 | { |
22086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22087 | result = (arg1)->GetYearDay(arg2); | |
22088 | ||
22089 | wxPyEndAllowThreads(__tstate); | |
22090 | if (PyErr_Occurred()) SWIG_fail; | |
22091 | } | |
22092 | { | |
22093 | wxDateTime * resultptr; | |
32fe5131 | 22094 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 22095 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
22096 | } |
22097 | return resultobj; | |
22098 | fail: | |
22099 | return NULL; | |
22100 | } | |
22101 | ||
22102 | ||
c32bde28 | 22103 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22104 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22105 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22106 | double result; | |
22107 | PyObject * obj0 = 0 ; | |
22108 | char *kwnames[] = { | |
22109 | (char *) "self", NULL | |
22110 | }; | |
22111 | ||
22112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22113 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22114 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22115 | { |
22116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22117 | result = (double)(arg1)->GetJulianDayNumber(); | |
22118 | ||
22119 | wxPyEndAllowThreads(__tstate); | |
22120 | if (PyErr_Occurred()) SWIG_fail; | |
22121 | } | |
093d3ff1 | 22122 | { |
32fe5131 | 22123 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 22124 | } |
d14a1e28 RD |
22125 | return resultobj; |
22126 | fail: | |
22127 | return NULL; | |
22128 | } | |
22129 | ||
22130 | ||
c32bde28 | 22131 | static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22132 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22133 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22134 | double result; | |
22135 | PyObject * obj0 = 0 ; | |
22136 | char *kwnames[] = { | |
22137 | (char *) "self", NULL | |
22138 | }; | |
22139 | ||
22140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22141 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22142 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22143 | { |
22144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22145 | result = (double)(arg1)->GetJDN(); | |
22146 | ||
22147 | wxPyEndAllowThreads(__tstate); | |
22148 | if (PyErr_Occurred()) SWIG_fail; | |
22149 | } | |
093d3ff1 | 22150 | { |
32fe5131 | 22151 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 22152 | } |
d14a1e28 RD |
22153 | return resultobj; |
22154 | fail: | |
22155 | return NULL; | |
22156 | } | |
22157 | ||
22158 | ||
c32bde28 | 22159 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22160 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22161 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22162 | double result; | |
22163 | PyObject * obj0 = 0 ; | |
22164 | char *kwnames[] = { | |
22165 | (char *) "self", NULL | |
22166 | }; | |
22167 | ||
22168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22171 | { |
22172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22173 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
22174 | ||
22175 | wxPyEndAllowThreads(__tstate); | |
22176 | if (PyErr_Occurred()) SWIG_fail; | |
22177 | } | |
093d3ff1 | 22178 | { |
32fe5131 | 22179 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 22180 | } |
d14a1e28 RD |
22181 | return resultobj; |
22182 | fail: | |
22183 | return NULL; | |
22184 | } | |
22185 | ||
22186 | ||
c32bde28 | 22187 | static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22188 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22189 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22190 | double result; | |
22191 | PyObject * obj0 = 0 ; | |
22192 | char *kwnames[] = { | |
22193 | (char *) "self", NULL | |
22194 | }; | |
22195 | ||
22196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22199 | { |
22200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22201 | result = (double)(arg1)->GetMJD(); | |
22202 | ||
22203 | wxPyEndAllowThreads(__tstate); | |
22204 | if (PyErr_Occurred()) SWIG_fail; | |
22205 | } | |
093d3ff1 | 22206 | { |
32fe5131 | 22207 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 22208 | } |
d14a1e28 RD |
22209 | return resultobj; |
22210 | fail: | |
22211 | return NULL; | |
22212 | } | |
22213 | ||
22214 | ||
c32bde28 | 22215 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22216 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22217 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22218 | double result; | |
22219 | PyObject * obj0 = 0 ; | |
22220 | char *kwnames[] = { | |
22221 | (char *) "self", NULL | |
22222 | }; | |
22223 | ||
22224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22227 | { |
22228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22229 | result = (double)(arg1)->GetRataDie(); | |
22230 | ||
22231 | wxPyEndAllowThreads(__tstate); | |
22232 | if (PyErr_Occurred()) SWIG_fail; | |
22233 | } | |
093d3ff1 | 22234 | { |
32fe5131 | 22235 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 22236 | } |
d14a1e28 RD |
22237 | return resultobj; |
22238 | fail: | |
22239 | return NULL; | |
22240 | } | |
22241 | ||
22242 | ||
c32bde28 | 22243 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22244 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22245 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22246 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 22247 | bool arg3 = (bool) false ; |
d14a1e28 | 22248 | wxDateTime result; |
ae8162c8 | 22249 | bool temp2 = false ; |
d14a1e28 RD |
22250 | PyObject * obj0 = 0 ; |
22251 | PyObject * obj1 = 0 ; | |
22252 | PyObject * obj2 = 0 ; | |
22253 | char *kwnames[] = { | |
22254 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
22255 | }; | |
22256 | ||
22257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
22258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22260 | { |
22261 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22262 | temp2 = true; |
d14a1e28 RD |
22263 | } |
22264 | if (obj2) { | |
093d3ff1 | 22265 | { |
32fe5131 | 22266 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
22267 | if (SWIG_arg_fail(3)) SWIG_fail; |
22268 | } | |
d14a1e28 RD |
22269 | } |
22270 | { | |
22271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22272 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
22273 | ||
22274 | wxPyEndAllowThreads(__tstate); | |
22275 | if (PyErr_Occurred()) SWIG_fail; | |
22276 | } | |
22277 | { | |
22278 | wxDateTime * resultptr; | |
32fe5131 | 22279 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 22280 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
22281 | } |
22282 | { | |
7722248d | 22283 | if (temp2) delete arg2; |
d14a1e28 RD |
22284 | } |
22285 | return resultobj; | |
22286 | fail: | |
22287 | { | |
7722248d | 22288 | if (temp2) delete arg2; |
d14a1e28 RD |
22289 | } |
22290 | return NULL; | |
22291 | } | |
22292 | ||
22293 | ||
c32bde28 | 22294 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22295 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22296 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22297 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 22298 | bool arg3 = (bool) false ; |
d14a1e28 | 22299 | wxDateTime *result; |
ae8162c8 | 22300 | bool temp2 = false ; |
d14a1e28 RD |
22301 | PyObject * obj0 = 0 ; |
22302 | PyObject * obj1 = 0 ; | |
22303 | PyObject * obj2 = 0 ; | |
22304 | char *kwnames[] = { | |
22305 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
22306 | }; | |
22307 | ||
22308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
22309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22311 | { |
22312 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22313 | temp2 = true; |
d14a1e28 RD |
22314 | } |
22315 | if (obj2) { | |
093d3ff1 | 22316 | { |
32fe5131 | 22317 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
22318 | if (SWIG_arg_fail(3)) SWIG_fail; |
22319 | } | |
d14a1e28 RD |
22320 | } |
22321 | { | |
22322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22323 | { | |
22324 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
22325 | result = (wxDateTime *) &_result_ref; | |
22326 | } | |
22327 | ||
22328 | wxPyEndAllowThreads(__tstate); | |
22329 | if (PyErr_Occurred()) SWIG_fail; | |
22330 | } | |
15afbcd0 | 22331 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 | 22332 | { |
7722248d | 22333 | if (temp2) delete arg2; |
d14a1e28 RD |
22334 | } |
22335 | return resultobj; | |
22336 | fail: | |
22337 | { | |
7722248d | 22338 | if (temp2) delete arg2; |
d14a1e28 RD |
22339 | } |
22340 | return NULL; | |
22341 | } | |
22342 | ||
22343 | ||
943e8dfd | 22344 | static PyObject *_wrap_DateTime_FromTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22345 | PyObject *resultobj = NULL; |
943e8dfd RD |
22346 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22347 | wxDateTime::TimeZone *arg2 = 0 ; | |
22348 | bool arg3 = (bool) false ; | |
22349 | wxDateTime result; | |
22350 | bool temp2 = false ; | |
22351 | PyObject * obj0 = 0 ; | |
22352 | PyObject * obj1 = 0 ; | |
22353 | PyObject * obj2 = 0 ; | |
22354 | char *kwnames[] = { | |
22355 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
22356 | }; | |
22357 | ||
22358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_FromTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22359 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22360 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22361 | { | |
22362 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
22363 | temp2 = true; | |
22364 | } | |
22365 | if (obj2) { | |
22366 | { | |
32fe5131 | 22367 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
943e8dfd RD |
22368 | if (SWIG_arg_fail(3)) SWIG_fail; |
22369 | } | |
22370 | } | |
22371 | { | |
22372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22373 | result = ((wxDateTime const *)arg1)->FromTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
22374 | ||
22375 | wxPyEndAllowThreads(__tstate); | |
22376 | if (PyErr_Occurred()) SWIG_fail; | |
22377 | } | |
22378 | { | |
22379 | wxDateTime * resultptr; | |
32fe5131 | 22380 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
943e8dfd RD |
22381 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
22382 | } | |
22383 | { | |
22384 | if (temp2) delete arg2; | |
22385 | } | |
22386 | return resultobj; | |
22387 | fail: | |
22388 | { | |
22389 | if (temp2) delete arg2; | |
22390 | } | |
22391 | return NULL; | |
22392 | } | |
22393 | ||
22394 | ||
22395 | static PyObject *_wrap_DateTime_MakeFromTimezone(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 22396 | PyObject *resultobj = NULL; |
943e8dfd RD |
22397 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22398 | wxDateTime::TimeZone *arg2 = 0 ; | |
22399 | bool arg3 = (bool) false ; | |
22400 | wxDateTime *result; | |
22401 | bool temp2 = false ; | |
22402 | PyObject * obj0 = 0 ; | |
22403 | PyObject * obj1 = 0 ; | |
22404 | PyObject * obj2 = 0 ; | |
22405 | char *kwnames[] = { | |
22406 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
22407 | }; | |
22408 | ||
22409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeFromTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22412 | { | |
22413 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
22414 | temp2 = true; | |
22415 | } | |
22416 | if (obj2) { | |
22417 | { | |
32fe5131 | 22418 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
943e8dfd RD |
22419 | if (SWIG_arg_fail(3)) SWIG_fail; |
22420 | } | |
22421 | } | |
22422 | { | |
22423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22424 | { | |
22425 | wxDateTime &_result_ref = (arg1)->MakeFromTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
22426 | result = (wxDateTime *) &_result_ref; | |
22427 | } | |
22428 | ||
22429 | wxPyEndAllowThreads(__tstate); | |
22430 | if (PyErr_Occurred()) SWIG_fail; | |
22431 | } | |
22432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22433 | { | |
22434 | if (temp2) delete arg2; | |
22435 | } | |
22436 | return resultobj; | |
22437 | fail: | |
22438 | { | |
22439 | if (temp2) delete arg2; | |
22440 | } | |
22441 | return NULL; | |
22442 | } | |
22443 | ||
22444 | ||
22445 | static PyObject *_wrap_DateTime_ToUTC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 22446 | PyObject *resultobj = NULL; |
943e8dfd RD |
22447 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22448 | bool arg2 = (bool) false ; | |
22449 | wxDateTime result; | |
22450 | PyObject * obj0 = 0 ; | |
22451 | PyObject * obj1 = 0 ; | |
22452 | char *kwnames[] = { | |
22453 | (char *) "self",(char *) "noDST", NULL | |
22454 | }; | |
22455 | ||
22456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToUTC",kwnames,&obj0,&obj1)) goto fail; | |
22457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22459 | if (obj1) { | |
22460 | { | |
32fe5131 | 22461 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
943e8dfd RD |
22462 | if (SWIG_arg_fail(2)) SWIG_fail; |
22463 | } | |
22464 | } | |
22465 | { | |
22466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22467 | result = ((wxDateTime const *)arg1)->ToUTC(arg2); | |
22468 | ||
22469 | wxPyEndAllowThreads(__tstate); | |
22470 | if (PyErr_Occurred()) SWIG_fail; | |
22471 | } | |
22472 | { | |
22473 | wxDateTime * resultptr; | |
32fe5131 | 22474 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
943e8dfd RD |
22475 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
22476 | } | |
22477 | return resultobj; | |
22478 | fail: | |
22479 | return NULL; | |
22480 | } | |
22481 | ||
22482 | ||
22483 | static PyObject *_wrap_DateTime_MakeUTC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 22484 | PyObject *resultobj = NULL; |
943e8dfd RD |
22485 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22486 | bool arg2 = (bool) false ; | |
22487 | wxDateTime *result; | |
22488 | PyObject * obj0 = 0 ; | |
22489 | PyObject * obj1 = 0 ; | |
22490 | char *kwnames[] = { | |
22491 | (char *) "self",(char *) "noDST", NULL | |
22492 | }; | |
22493 | ||
22494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeUTC",kwnames,&obj0,&obj1)) goto fail; | |
22495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22497 | if (obj1) { | |
22498 | { | |
32fe5131 | 22499 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
943e8dfd RD |
22500 | if (SWIG_arg_fail(2)) SWIG_fail; |
22501 | } | |
22502 | } | |
22503 | { | |
22504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22505 | { | |
22506 | wxDateTime &_result_ref = (arg1)->MakeUTC(arg2); | |
22507 | result = (wxDateTime *) &_result_ref; | |
22508 | } | |
22509 | ||
22510 | wxPyEndAllowThreads(__tstate); | |
22511 | if (PyErr_Occurred()) SWIG_fail; | |
22512 | } | |
22513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22514 | return resultobj; | |
22515 | fail: | |
22516 | return NULL; | |
22517 | } | |
22518 | ||
22519 | ||
c32bde28 | 22520 | static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22521 | PyObject *resultobj = NULL; |
d14a1e28 | 22522 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
ae8162c8 | 22523 | bool arg2 = (bool) false ; |
d14a1e28 RD |
22524 | wxDateTime result; |
22525 | PyObject * obj0 = 0 ; | |
22526 | PyObject * obj1 = 0 ; | |
22527 | char *kwnames[] = { | |
22528 | (char *) "self",(char *) "noDST", NULL | |
22529 | }; | |
22530 | ||
22531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22532 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22533 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 22534 | if (obj1) { |
093d3ff1 | 22535 | { |
32fe5131 | 22536 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
22537 | if (SWIG_arg_fail(2)) SWIG_fail; |
22538 | } | |
d14a1e28 RD |
22539 | } |
22540 | { | |
22541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
943e8dfd | 22542 | result = ((wxDateTime const *)arg1)->ToGMT(arg2); |
d14a1e28 RD |
22543 | |
22544 | wxPyEndAllowThreads(__tstate); | |
22545 | if (PyErr_Occurred()) SWIG_fail; | |
22546 | } | |
22547 | { | |
22548 | wxDateTime * resultptr; | |
32fe5131 | 22549 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 22550 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
22551 | } |
22552 | return resultobj; | |
22553 | fail: | |
22554 | return NULL; | |
22555 | } | |
22556 | ||
22557 | ||
c32bde28 | 22558 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22559 | PyObject *resultobj = NULL; |
d14a1e28 | 22560 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
ae8162c8 | 22561 | bool arg2 = (bool) false ; |
d14a1e28 RD |
22562 | wxDateTime *result; |
22563 | PyObject * obj0 = 0 ; | |
22564 | PyObject * obj1 = 0 ; | |
22565 | char *kwnames[] = { | |
22566 | (char *) "self",(char *) "noDST", NULL | |
22567 | }; | |
22568 | ||
22569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 22572 | if (obj1) { |
093d3ff1 | 22573 | { |
32fe5131 | 22574 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
22575 | if (SWIG_arg_fail(2)) SWIG_fail; |
22576 | } | |
d14a1e28 RD |
22577 | } |
22578 | { | |
22579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22580 | { | |
22581 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
22582 | result = (wxDateTime *) &_result_ref; | |
22583 | } | |
22584 | ||
22585 | wxPyEndAllowThreads(__tstate); | |
22586 | if (PyErr_Occurred()) SWIG_fail; | |
22587 | } | |
15afbcd0 | 22588 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
22589 | return resultobj; |
22590 | fail: | |
22591 | return NULL; | |
22592 | } | |
22593 | ||
22594 | ||
943e8dfd | 22595 | static PyObject *_wrap_DateTime_FromUTC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22596 | PyObject *resultobj = NULL; |
943e8dfd RD |
22597 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22598 | bool arg2 = (bool) false ; | |
22599 | wxDateTime result; | |
22600 | PyObject * obj0 = 0 ; | |
22601 | PyObject * obj1 = 0 ; | |
22602 | char *kwnames[] = { | |
22603 | (char *) "self",(char *) "noDST", NULL | |
22604 | }; | |
22605 | ||
22606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_FromUTC",kwnames,&obj0,&obj1)) goto fail; | |
22607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22609 | if (obj1) { | |
22610 | { | |
32fe5131 | 22611 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
943e8dfd RD |
22612 | if (SWIG_arg_fail(2)) SWIG_fail; |
22613 | } | |
22614 | } | |
22615 | { | |
22616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22617 | result = ((wxDateTime const *)arg1)->FromUTC(arg2); | |
22618 | ||
22619 | wxPyEndAllowThreads(__tstate); | |
22620 | if (PyErr_Occurred()) SWIG_fail; | |
22621 | } | |
22622 | { | |
22623 | wxDateTime * resultptr; | |
32fe5131 | 22624 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
943e8dfd RD |
22625 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
22626 | } | |
22627 | return resultobj; | |
22628 | fail: | |
22629 | return NULL; | |
22630 | } | |
22631 | ||
22632 | ||
22633 | static PyObject *_wrap_DateTime_MakeFromUTC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 22634 | PyObject *resultobj = NULL; |
943e8dfd RD |
22635 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22636 | bool arg2 = (bool) false ; | |
22637 | wxDateTime *result; | |
22638 | PyObject * obj0 = 0 ; | |
22639 | PyObject * obj1 = 0 ; | |
22640 | char *kwnames[] = { | |
22641 | (char *) "self",(char *) "noDST", NULL | |
22642 | }; | |
22643 | ||
22644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeFromUTC",kwnames,&obj0,&obj1)) goto fail; | |
22645 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22646 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22647 | if (obj1) { | |
22648 | { | |
32fe5131 | 22649 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
943e8dfd RD |
22650 | if (SWIG_arg_fail(2)) SWIG_fail; |
22651 | } | |
22652 | } | |
22653 | { | |
22654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22655 | { | |
22656 | wxDateTime &_result_ref = (arg1)->MakeFromUTC(arg2); | |
22657 | result = (wxDateTime *) &_result_ref; | |
22658 | } | |
22659 | ||
22660 | wxPyEndAllowThreads(__tstate); | |
22661 | if (PyErr_Occurred()) SWIG_fail; | |
22662 | } | |
22663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22664 | return resultobj; | |
22665 | fail: | |
22666 | return NULL; | |
22667 | } | |
22668 | ||
22669 | ||
c32bde28 | 22670 | static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22671 | PyObject *resultobj = NULL; |
d14a1e28 | 22672 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 22673 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 RD |
22674 | int result; |
22675 | PyObject * obj0 = 0 ; | |
994141e6 | 22676 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22677 | char *kwnames[] = { |
22678 | (char *) "self",(char *) "country", NULL | |
22679 | }; | |
22680 | ||
994141e6 | 22681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 22684 | if (obj1) { |
093d3ff1 | 22685 | { |
32fe5131 | 22686 | arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22687 | if (SWIG_arg_fail(2)) SWIG_fail; |
22688 | } | |
994141e6 | 22689 | } |
d14a1e28 RD |
22690 | { |
22691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 22692 | result = (int)(arg1)->IsDST(arg2); |
d14a1e28 RD |
22693 | |
22694 | wxPyEndAllowThreads(__tstate); | |
22695 | if (PyErr_Occurred()) SWIG_fail; | |
22696 | } | |
093d3ff1 | 22697 | { |
32fe5131 | 22698 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22699 | } |
d14a1e28 RD |
22700 | return resultobj; |
22701 | fail: | |
22702 | return NULL; | |
22703 | } | |
22704 | ||
22705 | ||
c32bde28 | 22706 | static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22707 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22708 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22709 | bool result; | |
22710 | PyObject * obj0 = 0 ; | |
22711 | char *kwnames[] = { | |
22712 | (char *) "self", NULL | |
22713 | }; | |
22714 | ||
22715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22718 | { |
22719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22720 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
22721 | ||
22722 | wxPyEndAllowThreads(__tstate); | |
22723 | if (PyErr_Occurred()) SWIG_fail; | |
22724 | } | |
4f89f6a3 RD |
22725 | { |
22726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22727 | } | |
d14a1e28 RD |
22728 | return resultobj; |
22729 | fail: | |
22730 | return NULL; | |
22731 | } | |
22732 | ||
22733 | ||
c32bde28 | 22734 | static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22735 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22736 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22737 | time_t result; | |
22738 | PyObject * obj0 = 0 ; | |
22739 | char *kwnames[] = { | |
22740 | (char *) "self", NULL | |
22741 | }; | |
22742 | ||
22743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22746 | { |
22747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22748 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
22749 | ||
22750 | wxPyEndAllowThreads(__tstate); | |
22751 | if (PyErr_Occurred()) SWIG_fail; | |
22752 | } | |
093d3ff1 | 22753 | { |
32fe5131 | 22754 | resultobj = SWIG_From_unsigned_SS_int(static_cast<unsigned int >(result)); |
093d3ff1 | 22755 | } |
d14a1e28 RD |
22756 | return resultobj; |
22757 | fail: | |
22758 | return NULL; | |
22759 | } | |
22760 | ||
22761 | ||
c32bde28 | 22762 | static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22763 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22764 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22765 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22766 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
22767 | int result; | |
ae8162c8 | 22768 | bool temp2 = false ; |
d14a1e28 RD |
22769 | PyObject * obj0 = 0 ; |
22770 | PyObject * obj1 = 0 ; | |
22771 | char *kwnames[] = { | |
22772 | (char *) "self",(char *) "tz", NULL | |
22773 | }; | |
22774 | ||
22775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22778 | if (obj1) { |
22779 | { | |
22780 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22781 | temp2 = true; |
d14a1e28 RD |
22782 | } |
22783 | } | |
22784 | { | |
22785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22786 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
22787 | ||
22788 | wxPyEndAllowThreads(__tstate); | |
22789 | if (PyErr_Occurred()) SWIG_fail; | |
22790 | } | |
093d3ff1 | 22791 | { |
32fe5131 | 22792 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22793 | } |
d14a1e28 | 22794 | { |
7722248d | 22795 | if (temp2) delete arg2; |
d14a1e28 RD |
22796 | } |
22797 | return resultobj; | |
22798 | fail: | |
22799 | { | |
7722248d | 22800 | if (temp2) delete arg2; |
d14a1e28 RD |
22801 | } |
22802 | return NULL; | |
22803 | } | |
22804 | ||
22805 | ||
c32bde28 | 22806 | static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22807 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22808 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22809 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22810 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
093d3ff1 | 22811 | wxDateTime::Month result; |
ae8162c8 | 22812 | bool temp2 = false ; |
d14a1e28 RD |
22813 | PyObject * obj0 = 0 ; |
22814 | PyObject * obj1 = 0 ; | |
22815 | char *kwnames[] = { | |
22816 | (char *) "self",(char *) "tz", NULL | |
22817 | }; | |
22818 | ||
22819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22820 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22821 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22822 | if (obj1) { |
22823 | { | |
22824 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22825 | temp2 = true; |
d14a1e28 RD |
22826 | } |
22827 | } | |
22828 | { | |
22829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22830 | result = (wxDateTime::Month)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
22831 | |
22832 | wxPyEndAllowThreads(__tstate); | |
22833 | if (PyErr_Occurred()) SWIG_fail; | |
22834 | } | |
093d3ff1 | 22835 | resultobj = SWIG_From_int((result)); |
d14a1e28 | 22836 | { |
7722248d | 22837 | if (temp2) delete arg2; |
d14a1e28 RD |
22838 | } |
22839 | return resultobj; | |
22840 | fail: | |
22841 | { | |
7722248d | 22842 | if (temp2) delete arg2; |
d14a1e28 RD |
22843 | } |
22844 | return NULL; | |
22845 | } | |
22846 | ||
22847 | ||
c32bde28 | 22848 | static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22849 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22850 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22851 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22852 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 22853 | int result; |
ae8162c8 | 22854 | bool temp2 = false ; |
d14a1e28 RD |
22855 | PyObject * obj0 = 0 ; |
22856 | PyObject * obj1 = 0 ; | |
22857 | char *kwnames[] = { | |
22858 | (char *) "self",(char *) "tz", NULL | |
22859 | }; | |
22860 | ||
22861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22862 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22863 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22864 | if (obj1) { |
22865 | { | |
22866 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22867 | temp2 = true; |
d14a1e28 RD |
22868 | } |
22869 | } | |
22870 | { | |
22871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 22872 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
22873 | |
22874 | wxPyEndAllowThreads(__tstate); | |
22875 | if (PyErr_Occurred()) SWIG_fail; | |
22876 | } | |
093d3ff1 | 22877 | { |
32fe5131 | 22878 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22879 | } |
d14a1e28 | 22880 | { |
7722248d | 22881 | if (temp2) delete arg2; |
d14a1e28 RD |
22882 | } |
22883 | return resultobj; | |
22884 | fail: | |
22885 | { | |
7722248d | 22886 | if (temp2) delete arg2; |
d14a1e28 RD |
22887 | } |
22888 | return NULL; | |
22889 | } | |
22890 | ||
22891 | ||
c32bde28 | 22892 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22893 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22894 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22895 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22896 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
093d3ff1 | 22897 | wxDateTime::WeekDay result; |
ae8162c8 | 22898 | bool temp2 = false ; |
d14a1e28 RD |
22899 | PyObject * obj0 = 0 ; |
22900 | PyObject * obj1 = 0 ; | |
22901 | char *kwnames[] = { | |
22902 | (char *) "self",(char *) "tz", NULL | |
22903 | }; | |
22904 | ||
22905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22908 | if (obj1) { |
22909 | { | |
22910 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22911 | temp2 = true; |
d14a1e28 RD |
22912 | } |
22913 | } | |
22914 | { | |
22915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22916 | result = (wxDateTime::WeekDay)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
22917 | |
22918 | wxPyEndAllowThreads(__tstate); | |
22919 | if (PyErr_Occurred()) SWIG_fail; | |
22920 | } | |
093d3ff1 | 22921 | resultobj = SWIG_From_int((result)); |
d14a1e28 | 22922 | { |
7722248d | 22923 | if (temp2) delete arg2; |
d14a1e28 RD |
22924 | } |
22925 | return resultobj; | |
22926 | fail: | |
22927 | { | |
7722248d | 22928 | if (temp2) delete arg2; |
d14a1e28 RD |
22929 | } |
22930 | return NULL; | |
22931 | } | |
22932 | ||
22933 | ||
c32bde28 | 22934 | static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22935 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22936 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22937 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22938 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 22939 | int result; |
ae8162c8 | 22940 | bool temp2 = false ; |
d14a1e28 RD |
22941 | PyObject * obj0 = 0 ; |
22942 | PyObject * obj1 = 0 ; | |
22943 | char *kwnames[] = { | |
22944 | (char *) "self",(char *) "tz", NULL | |
22945 | }; | |
22946 | ||
22947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22950 | if (obj1) { |
22951 | { | |
22952 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22953 | temp2 = true; |
d14a1e28 RD |
22954 | } |
22955 | } | |
22956 | { | |
22957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 22958 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
22959 | |
22960 | wxPyEndAllowThreads(__tstate); | |
22961 | if (PyErr_Occurred()) SWIG_fail; | |
22962 | } | |
093d3ff1 | 22963 | { |
32fe5131 | 22964 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 22965 | } |
d14a1e28 | 22966 | { |
7722248d | 22967 | if (temp2) delete arg2; |
d14a1e28 RD |
22968 | } |
22969 | return resultobj; | |
22970 | fail: | |
22971 | { | |
7722248d | 22972 | if (temp2) delete arg2; |
d14a1e28 RD |
22973 | } |
22974 | return NULL; | |
22975 | } | |
22976 | ||
22977 | ||
c32bde28 | 22978 | static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22979 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22980 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22981 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
22982 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 22983 | int result; |
ae8162c8 | 22984 | bool temp2 = false ; |
d14a1e28 RD |
22985 | PyObject * obj0 = 0 ; |
22986 | PyObject * obj1 = 0 ; | |
22987 | char *kwnames[] = { | |
22988 | (char *) "self",(char *) "tz", NULL | |
22989 | }; | |
22990 | ||
22991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22992 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22993 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22994 | if (obj1) { |
22995 | { | |
22996 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 22997 | temp2 = true; |
d14a1e28 RD |
22998 | } |
22999 | } | |
23000 | { | |
23001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 23002 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
23003 | |
23004 | wxPyEndAllowThreads(__tstate); | |
23005 | if (PyErr_Occurred()) SWIG_fail; | |
23006 | } | |
093d3ff1 | 23007 | { |
32fe5131 | 23008 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23009 | } |
d14a1e28 | 23010 | { |
7722248d | 23011 | if (temp2) delete arg2; |
d14a1e28 RD |
23012 | } |
23013 | return resultobj; | |
23014 | fail: | |
23015 | { | |
7722248d | 23016 | if (temp2) delete arg2; |
d14a1e28 RD |
23017 | } |
23018 | return NULL; | |
23019 | } | |
23020 | ||
23021 | ||
c32bde28 | 23022 | static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23023 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23024 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23025 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
23026 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 23027 | int result; |
ae8162c8 | 23028 | bool temp2 = false ; |
d14a1e28 RD |
23029 | PyObject * obj0 = 0 ; |
23030 | PyObject * obj1 = 0 ; | |
23031 | char *kwnames[] = { | |
23032 | (char *) "self",(char *) "tz", NULL | |
23033 | }; | |
23034 | ||
23035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23038 | if (obj1) { |
23039 | { | |
23040 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 23041 | temp2 = true; |
d14a1e28 RD |
23042 | } |
23043 | } | |
23044 | { | |
23045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 23046 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
23047 | |
23048 | wxPyEndAllowThreads(__tstate); | |
23049 | if (PyErr_Occurred()) SWIG_fail; | |
23050 | } | |
093d3ff1 | 23051 | { |
32fe5131 | 23052 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23053 | } |
d14a1e28 | 23054 | { |
7722248d | 23055 | if (temp2) delete arg2; |
d14a1e28 RD |
23056 | } |
23057 | return resultobj; | |
23058 | fail: | |
23059 | { | |
7722248d | 23060 | if (temp2) delete arg2; |
d14a1e28 RD |
23061 | } |
23062 | return NULL; | |
23063 | } | |
23064 | ||
23065 | ||
c32bde28 | 23066 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23067 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23068 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23069 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
23070 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 23071 | int result; |
ae8162c8 | 23072 | bool temp2 = false ; |
d14a1e28 RD |
23073 | PyObject * obj0 = 0 ; |
23074 | PyObject * obj1 = 0 ; | |
23075 | char *kwnames[] = { | |
23076 | (char *) "self",(char *) "tz", NULL | |
23077 | }; | |
23078 | ||
23079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23080 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23081 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23082 | if (obj1) { |
23083 | { | |
23084 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 23085 | temp2 = true; |
d14a1e28 RD |
23086 | } |
23087 | } | |
23088 | { | |
23089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 23090 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
23091 | |
23092 | wxPyEndAllowThreads(__tstate); | |
23093 | if (PyErr_Occurred()) SWIG_fail; | |
23094 | } | |
093d3ff1 | 23095 | { |
32fe5131 | 23096 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23097 | } |
d14a1e28 | 23098 | { |
7722248d | 23099 | if (temp2) delete arg2; |
d14a1e28 RD |
23100 | } |
23101 | return resultobj; | |
23102 | fail: | |
23103 | { | |
7722248d | 23104 | if (temp2) delete arg2; |
d14a1e28 RD |
23105 | } |
23106 | return NULL; | |
23107 | } | |
23108 | ||
23109 | ||
c32bde28 | 23110 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23111 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23112 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23113 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
23114 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 23115 | int result; |
ae8162c8 | 23116 | bool temp2 = false ; |
d14a1e28 RD |
23117 | PyObject * obj0 = 0 ; |
23118 | PyObject * obj1 = 0 ; | |
23119 | char *kwnames[] = { | |
23120 | (char *) "self",(char *) "tz", NULL | |
23121 | }; | |
23122 | ||
23123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23124 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23125 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23126 | if (obj1) { |
23127 | { | |
23128 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 23129 | temp2 = true; |
d14a1e28 RD |
23130 | } |
23131 | } | |
23132 | { | |
23133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 23134 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
23135 | |
23136 | wxPyEndAllowThreads(__tstate); | |
23137 | if (PyErr_Occurred()) SWIG_fail; | |
23138 | } | |
093d3ff1 | 23139 | { |
32fe5131 | 23140 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23141 | } |
d14a1e28 | 23142 | { |
7722248d | 23143 | if (temp2) delete arg2; |
d14a1e28 RD |
23144 | } |
23145 | return resultobj; | |
23146 | fail: | |
23147 | { | |
7722248d | 23148 | if (temp2) delete arg2; |
d14a1e28 RD |
23149 | } |
23150 | return NULL; | |
23151 | } | |
23152 | ||
23153 | ||
c32bde28 | 23154 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23155 | PyObject *resultobj = NULL; |
d14a1e28 | 23156 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 23157 | wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; |
d14a1e28 RD |
23158 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; |
23159 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 23160 | int result; |
ae8162c8 | 23161 | bool temp3 = false ; |
d14a1e28 | 23162 | PyObject * obj0 = 0 ; |
994141e6 | 23163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23164 | PyObject * obj2 = 0 ; |
23165 | char *kwnames[] = { | |
23166 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
23167 | }; | |
23168 | ||
994141e6 | 23169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
23170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 23172 | if (obj1) { |
093d3ff1 | 23173 | { |
32fe5131 | 23174 | arg2 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23175 | if (SWIG_arg_fail(2)) SWIG_fail; |
23176 | } | |
994141e6 | 23177 | } |
d14a1e28 RD |
23178 | if (obj2) { |
23179 | { | |
23180 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 23181 | temp3 = true; |
d14a1e28 RD |
23182 | } |
23183 | } | |
23184 | { | |
23185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 23186 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear(arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
23187 | |
23188 | wxPyEndAllowThreads(__tstate); | |
23189 | if (PyErr_Occurred()) SWIG_fail; | |
23190 | } | |
093d3ff1 | 23191 | { |
32fe5131 | 23192 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23193 | } |
d14a1e28 | 23194 | { |
7722248d | 23195 | if (temp3) delete arg3; |
d14a1e28 RD |
23196 | } |
23197 | return resultobj; | |
23198 | fail: | |
23199 | { | |
7722248d | 23200 | if (temp3) delete arg3; |
d14a1e28 RD |
23201 | } |
23202 | return NULL; | |
23203 | } | |
23204 | ||
23205 | ||
c32bde28 | 23206 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23207 | PyObject *resultobj = NULL; |
d14a1e28 | 23208 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 23209 | wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; |
d14a1e28 RD |
23210 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; |
23211 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 23212 | int result; |
ae8162c8 | 23213 | bool temp3 = false ; |
d14a1e28 | 23214 | PyObject * obj0 = 0 ; |
994141e6 | 23215 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23216 | PyObject * obj2 = 0 ; |
23217 | char *kwnames[] = { | |
23218 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
23219 | }; | |
23220 | ||
994141e6 | 23221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
23222 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23223 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 23224 | if (obj1) { |
093d3ff1 | 23225 | { |
32fe5131 | 23226 | arg2 = static_cast<wxDateTime::WeekFlags >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23227 | if (SWIG_arg_fail(2)) SWIG_fail; |
23228 | } | |
994141e6 | 23229 | } |
d14a1e28 RD |
23230 | if (obj2) { |
23231 | { | |
23232 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 23233 | temp3 = true; |
d14a1e28 RD |
23234 | } |
23235 | } | |
23236 | { | |
23237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 23238 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth(arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
23239 | |
23240 | wxPyEndAllowThreads(__tstate); | |
23241 | if (PyErr_Occurred()) SWIG_fail; | |
23242 | } | |
093d3ff1 | 23243 | { |
32fe5131 | 23244 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23245 | } |
d14a1e28 | 23246 | { |
7722248d | 23247 | if (temp3) delete arg3; |
d14a1e28 RD |
23248 | } |
23249 | return resultobj; | |
23250 | fail: | |
23251 | { | |
7722248d | 23252 | if (temp3) delete arg3; |
d14a1e28 RD |
23253 | } |
23254 | return NULL; | |
23255 | } | |
23256 | ||
23257 | ||
c32bde28 | 23258 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23259 | PyObject *resultobj = NULL; |
d14a1e28 | 23260 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
093d3ff1 | 23261 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 RD |
23262 | bool result; |
23263 | PyObject * obj0 = 0 ; | |
994141e6 | 23264 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23265 | char *kwnames[] = { |
23266 | (char *) "self",(char *) "country", NULL | |
23267 | }; | |
23268 | ||
994141e6 | 23269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 23272 | if (obj1) { |
093d3ff1 | 23273 | { |
32fe5131 | 23274 | arg2 = static_cast<wxDateTime::Country >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23275 | if (SWIG_arg_fail(2)) SWIG_fail; |
23276 | } | |
994141e6 | 23277 | } |
d14a1e28 RD |
23278 | { |
23279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 23280 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay(arg2); |
d14a1e28 RD |
23281 | |
23282 | wxPyEndAllowThreads(__tstate); | |
23283 | if (PyErr_Occurred()) SWIG_fail; | |
23284 | } | |
4f89f6a3 RD |
23285 | { |
23286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23287 | } | |
d14a1e28 RD |
23288 | return resultobj; |
23289 | fail: | |
23290 | return NULL; | |
23291 | } | |
23292 | ||
23293 | ||
c32bde28 | 23294 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23295 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23296 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23297 | wxDateTime *arg2 = 0 ; | |
23298 | bool result; | |
23299 | PyObject * obj0 = 0 ; | |
23300 | PyObject * obj1 = 0 ; | |
23301 | char *kwnames[] = { | |
23302 | (char *) "self",(char *) "datetime", NULL | |
23303 | }; | |
23304 | ||
23305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23308 | { | |
23309 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23310 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23311 | if (arg2 == NULL) { | |
23312 | SWIG_null_ref("wxDateTime"); | |
23313 | } | |
23314 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23315 | } |
23316 | { | |
23317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23318 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
23319 | ||
23320 | wxPyEndAllowThreads(__tstate); | |
23321 | if (PyErr_Occurred()) SWIG_fail; | |
23322 | } | |
4f89f6a3 RD |
23323 | { |
23324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23325 | } | |
d14a1e28 RD |
23326 | return resultobj; |
23327 | fail: | |
23328 | return NULL; | |
23329 | } | |
23330 | ||
23331 | ||
c32bde28 | 23332 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23333 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23334 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23335 | wxDateTime *arg2 = 0 ; | |
23336 | bool result; | |
23337 | PyObject * obj0 = 0 ; | |
23338 | PyObject * obj1 = 0 ; | |
23339 | char *kwnames[] = { | |
23340 | (char *) "self",(char *) "datetime", NULL | |
23341 | }; | |
23342 | ||
23343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23346 | { | |
23347 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23348 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23349 | if (arg2 == NULL) { | |
23350 | SWIG_null_ref("wxDateTime"); | |
23351 | } | |
23352 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23353 | } |
23354 | { | |
23355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23356 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
23357 | ||
23358 | wxPyEndAllowThreads(__tstate); | |
23359 | if (PyErr_Occurred()) SWIG_fail; | |
23360 | } | |
4f89f6a3 RD |
23361 | { |
23362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23363 | } | |
d14a1e28 RD |
23364 | return resultobj; |
23365 | fail: | |
23366 | return NULL; | |
23367 | } | |
23368 | ||
23369 | ||
c32bde28 | 23370 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23371 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23372 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23373 | wxDateTime *arg2 = 0 ; | |
23374 | bool result; | |
23375 | PyObject * obj0 = 0 ; | |
23376 | PyObject * obj1 = 0 ; | |
23377 | char *kwnames[] = { | |
23378 | (char *) "self",(char *) "datetime", NULL | |
23379 | }; | |
23380 | ||
23381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23384 | { | |
23385 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23386 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23387 | if (arg2 == NULL) { | |
23388 | SWIG_null_ref("wxDateTime"); | |
23389 | } | |
23390 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23391 | } |
23392 | { | |
23393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23394 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
23395 | ||
23396 | wxPyEndAllowThreads(__tstate); | |
23397 | if (PyErr_Occurred()) SWIG_fail; | |
23398 | } | |
4f89f6a3 RD |
23399 | { |
23400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23401 | } | |
d14a1e28 RD |
23402 | return resultobj; |
23403 | fail: | |
23404 | return NULL; | |
23405 | } | |
23406 | ||
23407 | ||
c32bde28 | 23408 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23409 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23410 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23411 | wxDateTime *arg2 = 0 ; | |
23412 | wxDateTime *arg3 = 0 ; | |
23413 | bool result; | |
23414 | PyObject * obj0 = 0 ; | |
23415 | PyObject * obj1 = 0 ; | |
23416 | PyObject * obj2 = 0 ; | |
23417 | char *kwnames[] = { | |
23418 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
23419 | }; | |
23420 | ||
23421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23422 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23423 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23424 | { | |
23425 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23426 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23427 | if (arg2 == NULL) { | |
23428 | SWIG_null_ref("wxDateTime"); | |
23429 | } | |
23430 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 23431 | } |
093d3ff1 RD |
23432 | { |
23433 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23434 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23435 | if (arg3 == NULL) { | |
23436 | SWIG_null_ref("wxDateTime"); | |
23437 | } | |
23438 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
23439 | } |
23440 | { | |
23441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23442 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
23443 | ||
23444 | wxPyEndAllowThreads(__tstate); | |
23445 | if (PyErr_Occurred()) SWIG_fail; | |
23446 | } | |
4f89f6a3 RD |
23447 | { |
23448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23449 | } | |
d14a1e28 RD |
23450 | return resultobj; |
23451 | fail: | |
23452 | return NULL; | |
23453 | } | |
23454 | ||
23455 | ||
c32bde28 | 23456 | static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23457 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23458 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23459 | wxDateTime *arg2 = 0 ; | |
23460 | wxDateTime *arg3 = 0 ; | |
23461 | bool result; | |
23462 | PyObject * obj0 = 0 ; | |
23463 | PyObject * obj1 = 0 ; | |
23464 | PyObject * obj2 = 0 ; | |
23465 | char *kwnames[] = { | |
23466 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
23467 | }; | |
23468 | ||
23469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23470 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23471 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23472 | { | |
23473 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23474 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23475 | if (arg2 == NULL) { | |
23476 | SWIG_null_ref("wxDateTime"); | |
23477 | } | |
23478 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 23479 | } |
093d3ff1 RD |
23480 | { |
23481 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23482 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23483 | if (arg3 == NULL) { | |
23484 | SWIG_null_ref("wxDateTime"); | |
23485 | } | |
23486 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
23487 | } |
23488 | { | |
23489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23490 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
23491 | ||
23492 | wxPyEndAllowThreads(__tstate); | |
23493 | if (PyErr_Occurred()) SWIG_fail; | |
23494 | } | |
4f89f6a3 RD |
23495 | { |
23496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23497 | } | |
d14a1e28 RD |
23498 | return resultobj; |
23499 | fail: | |
23500 | return NULL; | |
23501 | } | |
23502 | ||
23503 | ||
c32bde28 | 23504 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23505 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23506 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23507 | wxDateTime *arg2 = 0 ; | |
23508 | bool result; | |
23509 | PyObject * obj0 = 0 ; | |
23510 | PyObject * obj1 = 0 ; | |
23511 | char *kwnames[] = { | |
23512 | (char *) "self",(char *) "dt", NULL | |
23513 | }; | |
23514 | ||
23515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23518 | { | |
23519 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23520 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23521 | if (arg2 == NULL) { | |
23522 | SWIG_null_ref("wxDateTime"); | |
23523 | } | |
23524 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23525 | } |
23526 | { | |
23527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23528 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
23529 | ||
23530 | wxPyEndAllowThreads(__tstate); | |
23531 | if (PyErr_Occurred()) SWIG_fail; | |
23532 | } | |
4f89f6a3 RD |
23533 | { |
23534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23535 | } | |
d14a1e28 RD |
23536 | return resultobj; |
23537 | fail: | |
23538 | return NULL; | |
23539 | } | |
23540 | ||
23541 | ||
c32bde28 | 23542 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23543 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23544 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23545 | wxDateTime *arg2 = 0 ; | |
23546 | bool result; | |
23547 | PyObject * obj0 = 0 ; | |
23548 | PyObject * obj1 = 0 ; | |
23549 | char *kwnames[] = { | |
23550 | (char *) "self",(char *) "dt", NULL | |
23551 | }; | |
23552 | ||
23553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23556 | { | |
23557 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23558 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23559 | if (arg2 == NULL) { | |
23560 | SWIG_null_ref("wxDateTime"); | |
23561 | } | |
23562 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23563 | } |
23564 | { | |
23565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23566 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
23567 | ||
23568 | wxPyEndAllowThreads(__tstate); | |
23569 | if (PyErr_Occurred()) SWIG_fail; | |
23570 | } | |
4f89f6a3 RD |
23571 | { |
23572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23573 | } | |
d14a1e28 RD |
23574 | return resultobj; |
23575 | fail: | |
23576 | return NULL; | |
23577 | } | |
23578 | ||
23579 | ||
c32bde28 | 23580 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23581 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23582 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23583 | wxDateTime *arg2 = 0 ; | |
23584 | wxTimeSpan *arg3 = 0 ; | |
23585 | bool result; | |
23586 | PyObject * obj0 = 0 ; | |
23587 | PyObject * obj1 = 0 ; | |
23588 | PyObject * obj2 = 0 ; | |
23589 | char *kwnames[] = { | |
23590 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
23591 | }; | |
23592 | ||
23593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23596 | { | |
23597 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23598 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23599 | if (arg2 == NULL) { | |
23600 | SWIG_null_ref("wxDateTime"); | |
23601 | } | |
23602 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 23603 | } |
093d3ff1 RD |
23604 | { |
23605 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
23606 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23607 | if (arg3 == NULL) { | |
23608 | SWIG_null_ref("wxTimeSpan"); | |
23609 | } | |
23610 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
23611 | } |
23612 | { | |
23613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23614 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
23615 | ||
23616 | wxPyEndAllowThreads(__tstate); | |
23617 | if (PyErr_Occurred()) SWIG_fail; | |
23618 | } | |
4f89f6a3 RD |
23619 | { |
23620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23621 | } | |
d14a1e28 RD |
23622 | return resultobj; |
23623 | fail: | |
23624 | return NULL; | |
23625 | } | |
23626 | ||
23627 | ||
c32bde28 | 23628 | static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23629 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23630 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23631 | wxTimeSpan *arg2 = 0 ; | |
23632 | wxDateTime *result; | |
23633 | PyObject * obj0 = 0 ; | |
23634 | PyObject * obj1 = 0 ; | |
23635 | char *kwnames[] = { | |
23636 | (char *) "self",(char *) "diff", NULL | |
23637 | }; | |
23638 | ||
23639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23642 | { | |
23643 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
23644 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23645 | if (arg2 == NULL) { | |
23646 | SWIG_null_ref("wxTimeSpan"); | |
23647 | } | |
23648 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23649 | } |
23650 | { | |
23651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23652 | { | |
23653 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
23654 | result = (wxDateTime *) &_result_ref; | |
23655 | } | |
23656 | ||
23657 | wxPyEndAllowThreads(__tstate); | |
23658 | if (PyErr_Occurred()) SWIG_fail; | |
23659 | } | |
15afbcd0 | 23660 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
23661 | return resultobj; |
23662 | fail: | |
23663 | return NULL; | |
23664 | } | |
23665 | ||
23666 | ||
c32bde28 | 23667 | static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23668 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23669 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23670 | wxDateSpan *arg2 = 0 ; | |
23671 | wxDateTime *result; | |
23672 | PyObject * obj0 = 0 ; | |
23673 | PyObject * obj1 = 0 ; | |
23674 | char *kwnames[] = { | |
23675 | (char *) "self",(char *) "diff", NULL | |
23676 | }; | |
23677 | ||
23678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23679 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23681 | { | |
23682 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
23683 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23684 | if (arg2 == NULL) { | |
23685 | SWIG_null_ref("wxDateSpan"); | |
23686 | } | |
23687 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23688 | } |
23689 | { | |
23690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23691 | { | |
23692 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23693 | result = (wxDateTime *) &_result_ref; | |
23694 | } | |
23695 | ||
23696 | wxPyEndAllowThreads(__tstate); | |
23697 | if (PyErr_Occurred()) SWIG_fail; | |
23698 | } | |
15afbcd0 | 23699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
23700 | return resultobj; |
23701 | fail: | |
23702 | return NULL; | |
23703 | } | |
23704 | ||
23705 | ||
c32bde28 | 23706 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23707 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23708 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23709 | wxTimeSpan *arg2 = 0 ; | |
23710 | wxDateTime *result; | |
23711 | PyObject * obj0 = 0 ; | |
23712 | PyObject * obj1 = 0 ; | |
23713 | char *kwnames[] = { | |
23714 | (char *) "self",(char *) "diff", NULL | |
23715 | }; | |
23716 | ||
23717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23720 | { | |
23721 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
23722 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23723 | if (arg2 == NULL) { | |
23724 | SWIG_null_ref("wxTimeSpan"); | |
23725 | } | |
23726 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23727 | } |
23728 | { | |
23729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23730 | { | |
23731 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
23732 | result = (wxDateTime *) &_result_ref; | |
23733 | } | |
23734 | ||
23735 | wxPyEndAllowThreads(__tstate); | |
23736 | if (PyErr_Occurred()) SWIG_fail; | |
23737 | } | |
15afbcd0 | 23738 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
23739 | return resultobj; |
23740 | fail: | |
23741 | return NULL; | |
23742 | } | |
23743 | ||
23744 | ||
c32bde28 | 23745 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23746 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23747 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23748 | wxDateSpan *arg2 = 0 ; | |
23749 | wxDateTime *result; | |
23750 | PyObject * obj0 = 0 ; | |
23751 | PyObject * obj1 = 0 ; | |
23752 | char *kwnames[] = { | |
23753 | (char *) "self",(char *) "diff", NULL | |
23754 | }; | |
23755 | ||
23756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23759 | { | |
23760 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
23761 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23762 | if (arg2 == NULL) { | |
23763 | SWIG_null_ref("wxDateSpan"); | |
23764 | } | |
23765 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23766 | } |
23767 | { | |
23768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23769 | { | |
23770 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23771 | result = (wxDateTime *) &_result_ref; | |
23772 | } | |
23773 | ||
23774 | wxPyEndAllowThreads(__tstate); | |
23775 | if (PyErr_Occurred()) SWIG_fail; | |
23776 | } | |
15afbcd0 | 23777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
23778 | return resultobj; |
23779 | fail: | |
23780 | return NULL; | |
23781 | } | |
23782 | ||
23783 | ||
c32bde28 | 23784 | static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23785 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23786 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23787 | wxDateTime *arg2 = 0 ; | |
23788 | wxTimeSpan result; | |
23789 | PyObject * obj0 = 0 ; | |
23790 | PyObject * obj1 = 0 ; | |
23791 | char *kwnames[] = { | |
23792 | (char *) "self",(char *) "dt", NULL | |
23793 | }; | |
23794 | ||
23795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23798 | { | |
23799 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23800 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23801 | if (arg2 == NULL) { | |
23802 | SWIG_null_ref("wxDateTime"); | |
23803 | } | |
23804 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23805 | } |
23806 | { | |
23807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23808 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
23809 | ||
23810 | wxPyEndAllowThreads(__tstate); | |
23811 | if (PyErr_Occurred()) SWIG_fail; | |
23812 | } | |
23813 | { | |
23814 | wxTimeSpan * resultptr; | |
32fe5131 | 23815 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 23816 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
23817 | } |
23818 | return resultobj; | |
23819 | fail: | |
23820 | return NULL; | |
23821 | } | |
23822 | ||
23823 | ||
c32bde28 | 23824 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 23825 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23826 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23827 | wxTimeSpan *arg2 = 0 ; | |
23828 | wxDateTime *result; | |
23829 | PyObject * obj0 = 0 ; | |
23830 | PyObject * obj1 = 0 ; | |
23831 | ||
23832 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23833 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
23834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23835 | { | |
23836 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
23837 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23838 | if (arg2 == NULL) { | |
23839 | SWIG_null_ref("wxTimeSpan"); | |
23840 | } | |
23841 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23842 | } |
23843 | { | |
23844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23845 | { | |
23846 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
23847 | result = (wxDateTime *) &_result_ref; | |
23848 | } | |
23849 | ||
23850 | wxPyEndAllowThreads(__tstate); | |
23851 | if (PyErr_Occurred()) SWIG_fail; | |
23852 | } | |
c32bde28 | 23853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
23854 | return resultobj; |
23855 | fail: | |
23856 | return NULL; | |
23857 | } | |
23858 | ||
23859 | ||
c32bde28 | 23860 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) { |
32fe5131 | 23861 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23862 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23863 | wxDateSpan *arg2 = 0 ; | |
23864 | wxDateTime *result; | |
23865 | PyObject * obj0 = 0 ; | |
23866 | PyObject * obj1 = 0 ; | |
23867 | ||
23868 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23869 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
23870 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23871 | { | |
23872 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
23873 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23874 | if (arg2 == NULL) { | |
23875 | SWIG_null_ref("wxDateSpan"); | |
23876 | } | |
23877 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23878 | } |
23879 | { | |
23880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23881 | { | |
23882 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23883 | result = (wxDateTime *) &_result_ref; | |
23884 | } | |
23885 | ||
23886 | wxPyEndAllowThreads(__tstate); | |
23887 | if (PyErr_Occurred()) SWIG_fail; | |
23888 | } | |
c32bde28 | 23889 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
23890 | return resultobj; |
23891 | fail: | |
23892 | return NULL; | |
23893 | } | |
23894 | ||
23895 | ||
23896 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
23897 | int argc; | |
23898 | PyObject *argv[3]; | |
23899 | int ii; | |
23900 | ||
23901 | argc = PyObject_Length(args); | |
23902 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23903 | argv[ii] = PyTuple_GetItem(args,ii); | |
23904 | } | |
23905 | if (argc == 2) { | |
23906 | int _v; | |
23907 | { | |
23908 | void *ptr; | |
15afbcd0 | 23909 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
23910 | _v = 0; |
23911 | PyErr_Clear(); | |
23912 | } else { | |
23913 | _v = 1; | |
23914 | } | |
23915 | } | |
23916 | if (_v) { | |
23917 | { | |
093d3ff1 | 23918 | void *ptr = 0; |
15afbcd0 | 23919 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
23920 | _v = 0; |
23921 | PyErr_Clear(); | |
23922 | } else { | |
093d3ff1 | 23923 | _v = (ptr != 0); |
d14a1e28 RD |
23924 | } |
23925 | } | |
23926 | if (_v) { | |
23927 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
23928 | } | |
23929 | } | |
23930 | } | |
23931 | if (argc == 2) { | |
23932 | int _v; | |
23933 | { | |
23934 | void *ptr; | |
15afbcd0 | 23935 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
23936 | _v = 0; |
23937 | PyErr_Clear(); | |
23938 | } else { | |
23939 | _v = 1; | |
23940 | } | |
23941 | } | |
23942 | if (_v) { | |
23943 | { | |
093d3ff1 | 23944 | void *ptr = 0; |
15afbcd0 | 23945 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
23946 | _v = 0; |
23947 | PyErr_Clear(); | |
23948 | } else { | |
093d3ff1 | 23949 | _v = (ptr != 0); |
d14a1e28 RD |
23950 | } |
23951 | } | |
23952 | if (_v) { | |
23953 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
23954 | } | |
23955 | } | |
23956 | } | |
23957 | ||
093d3ff1 | 23958 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___iadd__'"); |
d14a1e28 RD |
23959 | return NULL; |
23960 | } | |
23961 | ||
23962 | ||
c32bde28 | 23963 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 23964 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23965 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
23966 | wxTimeSpan *arg2 = 0 ; | |
23967 | wxDateTime *result; | |
23968 | PyObject * obj0 = 0 ; | |
23969 | PyObject * obj1 = 0 ; | |
23970 | ||
23971 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
23973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23974 | { | |
23975 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
23976 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23977 | if (arg2 == NULL) { | |
23978 | SWIG_null_ref("wxTimeSpan"); | |
23979 | } | |
23980 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23981 | } |
23982 | { | |
23983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23984 | { | |
23985 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
23986 | result = (wxDateTime *) &_result_ref; | |
23987 | } | |
23988 | ||
23989 | wxPyEndAllowThreads(__tstate); | |
23990 | if (PyErr_Occurred()) SWIG_fail; | |
23991 | } | |
c32bde28 | 23992 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
23993 | return resultobj; |
23994 | fail: | |
23995 | return NULL; | |
23996 | } | |
23997 | ||
23998 | ||
c32bde28 | 23999 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) { |
32fe5131 | 24000 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24001 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24002 | wxDateSpan *arg2 = 0 ; | |
24003 | wxDateTime *result; | |
24004 | PyObject * obj0 = 0 ; | |
24005 | PyObject * obj1 = 0 ; | |
24006 | ||
24007 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
24009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24010 | { | |
24011 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
24012 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24013 | if (arg2 == NULL) { | |
24014 | SWIG_null_ref("wxDateSpan"); | |
24015 | } | |
24016 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24017 | } |
24018 | { | |
24019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24020 | { | |
24021 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
24022 | result = (wxDateTime *) &_result_ref; | |
24023 | } | |
24024 | ||
24025 | wxPyEndAllowThreads(__tstate); | |
24026 | if (PyErr_Occurred()) SWIG_fail; | |
24027 | } | |
c32bde28 | 24028 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
24029 | return resultobj; |
24030 | fail: | |
24031 | return NULL; | |
24032 | } | |
24033 | ||
24034 | ||
24035 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
24036 | int argc; | |
24037 | PyObject *argv[3]; | |
24038 | int ii; | |
24039 | ||
24040 | argc = PyObject_Length(args); | |
24041 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24042 | argv[ii] = PyTuple_GetItem(args,ii); | |
24043 | } | |
24044 | if (argc == 2) { | |
24045 | int _v; | |
24046 | { | |
24047 | void *ptr; | |
15afbcd0 | 24048 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
24049 | _v = 0; |
24050 | PyErr_Clear(); | |
24051 | } else { | |
24052 | _v = 1; | |
24053 | } | |
24054 | } | |
24055 | if (_v) { | |
24056 | { | |
093d3ff1 | 24057 | void *ptr = 0; |
15afbcd0 | 24058 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
24059 | _v = 0; |
24060 | PyErr_Clear(); | |
24061 | } else { | |
093d3ff1 | 24062 | _v = (ptr != 0); |
d14a1e28 RD |
24063 | } |
24064 | } | |
24065 | if (_v) { | |
24066 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
24067 | } | |
24068 | } | |
24069 | } | |
24070 | if (argc == 2) { | |
24071 | int _v; | |
24072 | { | |
24073 | void *ptr; | |
15afbcd0 | 24074 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
24075 | _v = 0; |
24076 | PyErr_Clear(); | |
24077 | } else { | |
24078 | _v = 1; | |
24079 | } | |
24080 | } | |
24081 | if (_v) { | |
24082 | { | |
093d3ff1 | 24083 | void *ptr = 0; |
15afbcd0 | 24084 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
24085 | _v = 0; |
24086 | PyErr_Clear(); | |
24087 | } else { | |
093d3ff1 | 24088 | _v = (ptr != 0); |
d14a1e28 RD |
24089 | } |
24090 | } | |
24091 | if (_v) { | |
24092 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
24093 | } | |
24094 | } | |
24095 | } | |
24096 | ||
093d3ff1 | 24097 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___isub__'"); |
d14a1e28 RD |
24098 | return NULL; |
24099 | } | |
24100 | ||
24101 | ||
c32bde28 | 24102 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 24103 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24104 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24105 | wxTimeSpan *arg2 = 0 ; | |
24106 | wxDateTime result; | |
24107 | PyObject * obj0 = 0 ; | |
24108 | PyObject * obj1 = 0 ; | |
24109 | ||
24110 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24113 | { | |
24114 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24115 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24116 | if (arg2 == NULL) { | |
24117 | SWIG_null_ref("wxTimeSpan"); | |
24118 | } | |
24119 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24120 | } |
24121 | { | |
24122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24123 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
24124 | ||
24125 | wxPyEndAllowThreads(__tstate); | |
24126 | if (PyErr_Occurred()) SWIG_fail; | |
24127 | } | |
24128 | { | |
24129 | wxDateTime * resultptr; | |
32fe5131 | 24130 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 24131 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
24132 | } |
24133 | return resultobj; | |
24134 | fail: | |
24135 | return NULL; | |
24136 | } | |
24137 | ||
24138 | ||
c32bde28 | 24139 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) { |
32fe5131 | 24140 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24141 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24142 | wxDateSpan *arg2 = 0 ; | |
24143 | wxDateTime result; | |
24144 | PyObject * obj0 = 0 ; | |
24145 | PyObject * obj1 = 0 ; | |
24146 | ||
24147 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24150 | { | |
24151 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
24152 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24153 | if (arg2 == NULL) { | |
24154 | SWIG_null_ref("wxDateSpan"); | |
24155 | } | |
24156 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24157 | } |
24158 | { | |
24159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24160 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
24161 | ||
24162 | wxPyEndAllowThreads(__tstate); | |
24163 | if (PyErr_Occurred()) SWIG_fail; | |
24164 | } | |
24165 | { | |
24166 | wxDateTime * resultptr; | |
32fe5131 | 24167 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 24168 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
24169 | } |
24170 | return resultobj; | |
24171 | fail: | |
24172 | return NULL; | |
24173 | } | |
24174 | ||
24175 | ||
24176 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
24177 | int argc; | |
24178 | PyObject *argv[3]; | |
24179 | int ii; | |
24180 | ||
24181 | argc = PyObject_Length(args); | |
24182 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24183 | argv[ii] = PyTuple_GetItem(args,ii); | |
24184 | } | |
24185 | if (argc == 2) { | |
24186 | int _v; | |
24187 | { | |
24188 | void *ptr; | |
15afbcd0 | 24189 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
24190 | _v = 0; |
24191 | PyErr_Clear(); | |
24192 | } else { | |
24193 | _v = 1; | |
24194 | } | |
24195 | } | |
24196 | if (_v) { | |
24197 | { | |
093d3ff1 | 24198 | void *ptr = 0; |
15afbcd0 | 24199 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
24200 | _v = 0; |
24201 | PyErr_Clear(); | |
24202 | } else { | |
093d3ff1 | 24203 | _v = (ptr != 0); |
d14a1e28 RD |
24204 | } |
24205 | } | |
24206 | if (_v) { | |
24207 | return _wrap_DateTime___add____SWIG_0(self,args); | |
24208 | } | |
24209 | } | |
24210 | } | |
24211 | if (argc == 2) { | |
24212 | int _v; | |
24213 | { | |
24214 | void *ptr; | |
15afbcd0 | 24215 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
24216 | _v = 0; |
24217 | PyErr_Clear(); | |
24218 | } else { | |
24219 | _v = 1; | |
24220 | } | |
24221 | } | |
24222 | if (_v) { | |
24223 | { | |
093d3ff1 | 24224 | void *ptr = 0; |
15afbcd0 | 24225 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
24226 | _v = 0; |
24227 | PyErr_Clear(); | |
24228 | } else { | |
093d3ff1 | 24229 | _v = (ptr != 0); |
d14a1e28 RD |
24230 | } |
24231 | } | |
24232 | if (_v) { | |
24233 | return _wrap_DateTime___add____SWIG_1(self,args); | |
24234 | } | |
24235 | } | |
24236 | } | |
24237 | ||
093d3ff1 RD |
24238 | Py_INCREF(Py_NotImplemented); |
24239 | return Py_NotImplemented; | |
d14a1e28 RD |
24240 | } |
24241 | ||
24242 | ||
c32bde28 | 24243 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 24244 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24245 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24246 | wxDateTime *arg2 = 0 ; | |
24247 | wxTimeSpan result; | |
24248 | PyObject * obj0 = 0 ; | |
24249 | PyObject * obj1 = 0 ; | |
24250 | ||
24251 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24252 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24254 | { | |
24255 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24256 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24257 | if (arg2 == NULL) { | |
24258 | SWIG_null_ref("wxDateTime"); | |
24259 | } | |
24260 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24261 | } |
24262 | { | |
24263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24264 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
24265 | ||
24266 | wxPyEndAllowThreads(__tstate); | |
24267 | if (PyErr_Occurred()) SWIG_fail; | |
24268 | } | |
24269 | { | |
24270 | wxTimeSpan * resultptr; | |
32fe5131 | 24271 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 24272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24273 | } |
24274 | return resultobj; | |
24275 | fail: | |
24276 | return NULL; | |
24277 | } | |
24278 | ||
24279 | ||
c32bde28 | 24280 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) { |
32fe5131 | 24281 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24282 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24283 | wxTimeSpan *arg2 = 0 ; | |
24284 | wxDateTime result; | |
24285 | PyObject * obj0 = 0 ; | |
24286 | PyObject * obj1 = 0 ; | |
24287 | ||
24288 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24291 | { | |
24292 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24293 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24294 | if (arg2 == NULL) { | |
24295 | SWIG_null_ref("wxTimeSpan"); | |
24296 | } | |
24297 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24298 | } |
24299 | { | |
24300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24301 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
24302 | ||
24303 | wxPyEndAllowThreads(__tstate); | |
24304 | if (PyErr_Occurred()) SWIG_fail; | |
24305 | } | |
24306 | { | |
24307 | wxDateTime * resultptr; | |
32fe5131 | 24308 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 24309 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
24310 | } |
24311 | return resultobj; | |
24312 | fail: | |
24313 | return NULL; | |
24314 | } | |
24315 | ||
24316 | ||
c32bde28 | 24317 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) { |
32fe5131 | 24318 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24319 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24320 | wxDateSpan *arg2 = 0 ; | |
24321 | wxDateTime result; | |
24322 | PyObject * obj0 = 0 ; | |
24323 | PyObject * obj1 = 0 ; | |
24324 | ||
24325 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24326 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 24328 | { |
093d3ff1 RD |
24329 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
24330 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24331 | if (arg2 == NULL) { | |
24332 | SWIG_null_ref("wxDateSpan"); | |
24333 | } | |
24334 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24335 | } | |
24336 | { | |
24337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 RD |
24338 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); |
24339 | ||
24340 | wxPyEndAllowThreads(__tstate); | |
24341 | if (PyErr_Occurred()) SWIG_fail; | |
24342 | } | |
24343 | { | |
24344 | wxDateTime * resultptr; | |
32fe5131 | 24345 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
15afbcd0 | 24346 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
24347 | } |
24348 | return resultobj; | |
24349 | fail: | |
24350 | return NULL; | |
24351 | } | |
24352 | ||
24353 | ||
24354 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
24355 | int argc; | |
24356 | PyObject *argv[3]; | |
24357 | int ii; | |
24358 | ||
24359 | argc = PyObject_Length(args); | |
24360 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24361 | argv[ii] = PyTuple_GetItem(args,ii); | |
24362 | } | |
24363 | if (argc == 2) { | |
24364 | int _v; | |
24365 | { | |
24366 | void *ptr; | |
15afbcd0 | 24367 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
24368 | _v = 0; |
24369 | PyErr_Clear(); | |
24370 | } else { | |
24371 | _v = 1; | |
24372 | } | |
24373 | } | |
24374 | if (_v) { | |
24375 | { | |
093d3ff1 | 24376 | void *ptr = 0; |
15afbcd0 | 24377 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
24378 | _v = 0; |
24379 | PyErr_Clear(); | |
24380 | } else { | |
093d3ff1 | 24381 | _v = (ptr != 0); |
d14a1e28 RD |
24382 | } |
24383 | } | |
24384 | if (_v) { | |
24385 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
24386 | } | |
24387 | } | |
24388 | } | |
24389 | if (argc == 2) { | |
24390 | int _v; | |
24391 | { | |
24392 | void *ptr; | |
15afbcd0 | 24393 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
24394 | _v = 0; |
24395 | PyErr_Clear(); | |
24396 | } else { | |
24397 | _v = 1; | |
24398 | } | |
24399 | } | |
24400 | if (_v) { | |
24401 | { | |
093d3ff1 | 24402 | void *ptr = 0; |
15afbcd0 | 24403 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
24404 | _v = 0; |
24405 | PyErr_Clear(); | |
24406 | } else { | |
093d3ff1 | 24407 | _v = (ptr != 0); |
d14a1e28 RD |
24408 | } |
24409 | } | |
24410 | if (_v) { | |
24411 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
24412 | } | |
24413 | } | |
24414 | } | |
24415 | if (argc == 2) { | |
24416 | int _v; | |
24417 | { | |
24418 | void *ptr; | |
15afbcd0 | 24419 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
24420 | _v = 0; |
24421 | PyErr_Clear(); | |
24422 | } else { | |
24423 | _v = 1; | |
24424 | } | |
24425 | } | |
24426 | if (_v) { | |
24427 | { | |
093d3ff1 | 24428 | void *ptr = 0; |
15afbcd0 | 24429 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
24430 | _v = 0; |
24431 | PyErr_Clear(); | |
24432 | } else { | |
093d3ff1 | 24433 | _v = (ptr != 0); |
d14a1e28 RD |
24434 | } |
24435 | } | |
24436 | if (_v) { | |
24437 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
24438 | } | |
24439 | } | |
24440 | } | |
24441 | ||
093d3ff1 RD |
24442 | Py_INCREF(Py_NotImplemented); |
24443 | return Py_NotImplemented; | |
d14a1e28 RD |
24444 | } |
24445 | ||
24446 | ||
fef4c27a | 24447 | static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24448 | PyObject *resultobj = NULL; |
d14a1e28 | 24449 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22faec7d | 24450 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
24451 | bool result; |
24452 | PyObject * obj0 = 0 ; | |
24453 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24454 | char *kwnames[] = { |
24455 | (char *) "self",(char *) "other", NULL | |
24456 | }; | |
d14a1e28 | 24457 | |
fef4c27a | 24458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___lt__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24461 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24462 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24463 | { |
24464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24465 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
24466 | |
24467 | wxPyEndAllowThreads(__tstate); | |
24468 | if (PyErr_Occurred()) SWIG_fail; | |
24469 | } | |
4f89f6a3 RD |
24470 | { |
24471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24472 | } | |
d14a1e28 RD |
24473 | return resultobj; |
24474 | fail: | |
24475 | return NULL; | |
24476 | } | |
24477 | ||
24478 | ||
fef4c27a | 24479 | static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24480 | PyObject *resultobj = NULL; |
d14a1e28 | 24481 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22faec7d | 24482 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
24483 | bool result; |
24484 | PyObject * obj0 = 0 ; | |
24485 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24486 | char *kwnames[] = { |
24487 | (char *) "self",(char *) "other", NULL | |
24488 | }; | |
d14a1e28 | 24489 | |
fef4c27a | 24490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___le__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24491 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24493 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24494 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24495 | { |
24496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24497 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
24498 | |
24499 | wxPyEndAllowThreads(__tstate); | |
24500 | if (PyErr_Occurred()) SWIG_fail; | |
24501 | } | |
4f89f6a3 RD |
24502 | { |
24503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24504 | } | |
d14a1e28 RD |
24505 | return resultobj; |
24506 | fail: | |
24507 | return NULL; | |
24508 | } | |
24509 | ||
24510 | ||
fef4c27a | 24511 | static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24512 | PyObject *resultobj = NULL; |
d14a1e28 | 24513 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22faec7d | 24514 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
24515 | bool result; |
24516 | PyObject * obj0 = 0 ; | |
24517 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24518 | char *kwnames[] = { |
24519 | (char *) "self",(char *) "other", NULL | |
24520 | }; | |
d14a1e28 | 24521 | |
fef4c27a | 24522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___gt__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24523 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24524 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24525 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24526 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24527 | { |
24528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24529 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
24530 | |
24531 | wxPyEndAllowThreads(__tstate); | |
24532 | if (PyErr_Occurred()) SWIG_fail; | |
24533 | } | |
4f89f6a3 RD |
24534 | { |
24535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24536 | } | |
d14a1e28 RD |
24537 | return resultobj; |
24538 | fail: | |
24539 | return NULL; | |
24540 | } | |
24541 | ||
24542 | ||
fef4c27a | 24543 | static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24544 | PyObject *resultobj = NULL; |
d14a1e28 | 24545 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22faec7d | 24546 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
24547 | bool result; |
24548 | PyObject * obj0 = 0 ; | |
24549 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24550 | char *kwnames[] = { |
24551 | (char *) "self",(char *) "other", NULL | |
24552 | }; | |
d14a1e28 | 24553 | |
fef4c27a | 24554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ge__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24555 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24556 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24557 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24558 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24559 | { |
24560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24561 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
24562 | |
24563 | wxPyEndAllowThreads(__tstate); | |
24564 | if (PyErr_Occurred()) SWIG_fail; | |
24565 | } | |
4f89f6a3 RD |
24566 | { |
24567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24568 | } | |
d14a1e28 RD |
24569 | return resultobj; |
24570 | fail: | |
24571 | return NULL; | |
24572 | } | |
24573 | ||
24574 | ||
fef4c27a | 24575 | static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24576 | PyObject *resultobj = NULL; |
d14a1e28 | 24577 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22faec7d | 24578 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
24579 | bool result; |
24580 | PyObject * obj0 = 0 ; | |
24581 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24582 | char *kwnames[] = { |
24583 | (char *) "self",(char *) "other", NULL | |
24584 | }; | |
d14a1e28 | 24585 | |
fef4c27a | 24586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___eq__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24589 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24590 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24591 | { |
24592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24593 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
24594 | |
24595 | wxPyEndAllowThreads(__tstate); | |
24596 | if (PyErr_Occurred()) SWIG_fail; | |
24597 | } | |
4f89f6a3 RD |
24598 | { |
24599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24600 | } | |
d14a1e28 RD |
24601 | return resultobj; |
24602 | fail: | |
24603 | return NULL; | |
24604 | } | |
24605 | ||
24606 | ||
fef4c27a | 24607 | static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24608 | PyObject *resultobj = NULL; |
d14a1e28 | 24609 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
22faec7d | 24610 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
24611 | bool result; |
24612 | PyObject * obj0 = 0 ; | |
24613 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
24614 | char *kwnames[] = { |
24615 | (char *) "self",(char *) "other", NULL | |
24616 | }; | |
d14a1e28 | 24617 | |
fef4c27a | 24618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ne__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24621 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24622 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24623 | { |
24624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24625 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
24626 | |
24627 | wxPyEndAllowThreads(__tstate); | |
24628 | if (PyErr_Occurred()) SWIG_fail; | |
24629 | } | |
4f89f6a3 RD |
24630 | { |
24631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24632 | } | |
d14a1e28 RD |
24633 | return resultobj; |
24634 | fail: | |
24635 | return NULL; | |
24636 | } | |
24637 | ||
24638 | ||
c32bde28 | 24639 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24640 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24641 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24642 | wxString *arg2 = 0 ; | |
24643 | int result; | |
ae8162c8 | 24644 | bool temp2 = false ; |
d14a1e28 RD |
24645 | PyObject * obj0 = 0 ; |
24646 | PyObject * obj1 = 0 ; | |
24647 | char *kwnames[] = { | |
24648 | (char *) "self",(char *) "date", NULL | |
24649 | }; | |
24650 | ||
24651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24654 | { |
24655 | arg2 = wxString_in_helper(obj1); | |
24656 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24657 | temp2 = true; |
d14a1e28 RD |
24658 | } |
24659 | { | |
24660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24661 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
24662 | ||
24663 | wxPyEndAllowThreads(__tstate); | |
24664 | if (PyErr_Occurred()) SWIG_fail; | |
24665 | } | |
093d3ff1 | 24666 | { |
32fe5131 | 24667 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24668 | } |
d14a1e28 RD |
24669 | { |
24670 | if (temp2) | |
24671 | delete arg2; | |
24672 | } | |
24673 | return resultobj; | |
24674 | fail: | |
24675 | { | |
24676 | if (temp2) | |
24677 | delete arg2; | |
24678 | } | |
24679 | return NULL; | |
24680 | } | |
24681 | ||
24682 | ||
c32bde28 | 24683 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24684 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24685 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24686 | wxString *arg2 = 0 ; | |
7557b9b5 | 24687 | wxString const &arg3_defvalue = wxPyDefaultDateTimeFormat ; |
d14a1e28 RD |
24688 | wxString *arg3 = (wxString *) &arg3_defvalue ; |
24689 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
24690 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
24691 | int result; | |
ae8162c8 RD |
24692 | bool temp2 = false ; |
24693 | bool temp3 = false ; | |
d14a1e28 RD |
24694 | PyObject * obj0 = 0 ; |
24695 | PyObject * obj1 = 0 ; | |
24696 | PyObject * obj2 = 0 ; | |
24697 | PyObject * obj3 = 0 ; | |
24698 | char *kwnames[] = { | |
24699 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
24700 | }; | |
24701 | ||
24702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
24703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24705 | { |
24706 | arg2 = wxString_in_helper(obj1); | |
24707 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24708 | temp2 = true; |
d14a1e28 RD |
24709 | } |
24710 | if (obj2) { | |
24711 | { | |
24712 | arg3 = wxString_in_helper(obj2); | |
24713 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 24714 | temp3 = true; |
d14a1e28 RD |
24715 | } |
24716 | } | |
24717 | if (obj3) { | |
093d3ff1 RD |
24718 | { |
24719 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
24720 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24721 | if (arg4 == NULL) { | |
24722 | SWIG_null_ref("wxDateTime"); | |
24723 | } | |
24724 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
24725 | } |
24726 | } | |
24727 | { | |
24728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24729 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
24730 | ||
24731 | wxPyEndAllowThreads(__tstate); | |
24732 | if (PyErr_Occurred()) SWIG_fail; | |
24733 | } | |
093d3ff1 | 24734 | { |
32fe5131 | 24735 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24736 | } |
d14a1e28 RD |
24737 | { |
24738 | if (temp2) | |
24739 | delete arg2; | |
24740 | } | |
24741 | { | |
24742 | if (temp3) | |
24743 | delete arg3; | |
24744 | } | |
24745 | return resultobj; | |
24746 | fail: | |
24747 | { | |
24748 | if (temp2) | |
24749 | delete arg2; | |
24750 | } | |
24751 | { | |
24752 | if (temp3) | |
24753 | delete arg3; | |
24754 | } | |
24755 | return NULL; | |
24756 | } | |
24757 | ||
24758 | ||
c32bde28 | 24759 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24760 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24761 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24762 | wxString *arg2 = 0 ; | |
24763 | int result; | |
ae8162c8 | 24764 | bool temp2 = false ; |
d14a1e28 RD |
24765 | PyObject * obj0 = 0 ; |
24766 | PyObject * obj1 = 0 ; | |
24767 | char *kwnames[] = { | |
24768 | (char *) "self",(char *) "datetime", NULL | |
24769 | }; | |
24770 | ||
24771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24774 | { |
24775 | arg2 = wxString_in_helper(obj1); | |
24776 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24777 | temp2 = true; |
d14a1e28 RD |
24778 | } |
24779 | { | |
24780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24781 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
24782 | ||
24783 | wxPyEndAllowThreads(__tstate); | |
24784 | if (PyErr_Occurred()) SWIG_fail; | |
24785 | } | |
093d3ff1 | 24786 | { |
32fe5131 | 24787 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24788 | } |
d14a1e28 RD |
24789 | { |
24790 | if (temp2) | |
24791 | delete arg2; | |
24792 | } | |
24793 | return resultobj; | |
24794 | fail: | |
24795 | { | |
24796 | if (temp2) | |
24797 | delete arg2; | |
24798 | } | |
24799 | return NULL; | |
24800 | } | |
24801 | ||
24802 | ||
c32bde28 | 24803 | static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24804 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24805 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24806 | wxString *arg2 = 0 ; | |
24807 | int result; | |
ae8162c8 | 24808 | bool temp2 = false ; |
d14a1e28 RD |
24809 | PyObject * obj0 = 0 ; |
24810 | PyObject * obj1 = 0 ; | |
24811 | char *kwnames[] = { | |
24812 | (char *) "self",(char *) "date", NULL | |
24813 | }; | |
24814 | ||
24815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24816 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24817 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24818 | { |
24819 | arg2 = wxString_in_helper(obj1); | |
24820 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24821 | temp2 = true; |
d14a1e28 RD |
24822 | } |
24823 | { | |
24824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24825 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
24826 | ||
24827 | wxPyEndAllowThreads(__tstate); | |
24828 | if (PyErr_Occurred()) SWIG_fail; | |
24829 | } | |
093d3ff1 | 24830 | { |
32fe5131 | 24831 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24832 | } |
d14a1e28 RD |
24833 | { |
24834 | if (temp2) | |
24835 | delete arg2; | |
24836 | } | |
24837 | return resultobj; | |
24838 | fail: | |
24839 | { | |
24840 | if (temp2) | |
24841 | delete arg2; | |
24842 | } | |
24843 | return NULL; | |
24844 | } | |
24845 | ||
24846 | ||
c32bde28 | 24847 | static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24848 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24849 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24850 | wxString *arg2 = 0 ; | |
24851 | int result; | |
ae8162c8 | 24852 | bool temp2 = false ; |
d14a1e28 RD |
24853 | PyObject * obj0 = 0 ; |
24854 | PyObject * obj1 = 0 ; | |
24855 | char *kwnames[] = { | |
24856 | (char *) "self",(char *) "time", NULL | |
24857 | }; | |
24858 | ||
24859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24862 | { |
24863 | arg2 = wxString_in_helper(obj1); | |
24864 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24865 | temp2 = true; |
d14a1e28 RD |
24866 | } |
24867 | { | |
24868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24869 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
24870 | ||
24871 | wxPyEndAllowThreads(__tstate); | |
24872 | if (PyErr_Occurred()) SWIG_fail; | |
24873 | } | |
093d3ff1 | 24874 | { |
32fe5131 | 24875 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24876 | } |
d14a1e28 RD |
24877 | { |
24878 | if (temp2) | |
24879 | delete arg2; | |
24880 | } | |
24881 | return resultobj; | |
24882 | fail: | |
24883 | { | |
24884 | if (temp2) | |
24885 | delete arg2; | |
24886 | } | |
24887 | return NULL; | |
24888 | } | |
24889 | ||
24890 | ||
c32bde28 | 24891 | static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24892 | PyObject *resultobj = NULL; |
d14a1e28 | 24893 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
7557b9b5 | 24894 | wxString const &arg2_defvalue = wxPyDefaultDateTimeFormat ; |
d14a1e28 RD |
24895 | wxString *arg2 = (wxString *) &arg2_defvalue ; |
24896 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
24897 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
24898 | wxString result; | |
ae8162c8 RD |
24899 | bool temp2 = false ; |
24900 | bool temp3 = false ; | |
d14a1e28 RD |
24901 | PyObject * obj0 = 0 ; |
24902 | PyObject * obj1 = 0 ; | |
24903 | PyObject * obj2 = 0 ; | |
24904 | char *kwnames[] = { | |
24905 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
24906 | }; | |
24907 | ||
24908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) 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; | |
d14a1e28 RD |
24911 | if (obj1) { |
24912 | { | |
24913 | arg2 = wxString_in_helper(obj1); | |
24914 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24915 | temp2 = true; |
d14a1e28 RD |
24916 | } |
24917 | } | |
24918 | if (obj2) { | |
24919 | { | |
24920 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 24921 | temp3 = true; |
d14a1e28 RD |
24922 | } |
24923 | } | |
24924 | { | |
24925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24926 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
24927 | ||
24928 | wxPyEndAllowThreads(__tstate); | |
24929 | if (PyErr_Occurred()) SWIG_fail; | |
24930 | } | |
24931 | { | |
24932 | #if wxUSE_UNICODE | |
24933 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24934 | #else | |
24935 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24936 | #endif | |
24937 | } | |
24938 | { | |
24939 | if (temp2) | |
24940 | delete arg2; | |
24941 | } | |
24942 | { | |
7722248d | 24943 | if (temp3) delete arg3; |
d14a1e28 RD |
24944 | } |
24945 | return resultobj; | |
24946 | fail: | |
24947 | { | |
24948 | if (temp2) | |
24949 | delete arg2; | |
24950 | } | |
24951 | { | |
7722248d | 24952 | if (temp3) delete arg3; |
d14a1e28 RD |
24953 | } |
24954 | return NULL; | |
24955 | } | |
24956 | ||
24957 | ||
c32bde28 | 24958 | static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24959 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24960 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24961 | wxString result; | |
24962 | PyObject * obj0 = 0 ; | |
24963 | char *kwnames[] = { | |
24964 | (char *) "self", NULL | |
24965 | }; | |
24966 | ||
24967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
24969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24970 | { |
24971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24972 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
24973 | ||
24974 | wxPyEndAllowThreads(__tstate); | |
24975 | if (PyErr_Occurred()) SWIG_fail; | |
24976 | } | |
24977 | { | |
24978 | #if wxUSE_UNICODE | |
24979 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24980 | #else | |
24981 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24982 | #endif | |
24983 | } | |
24984 | return resultobj; | |
24985 | fail: | |
24986 | return NULL; | |
24987 | } | |
24988 | ||
24989 | ||
c32bde28 | 24990 | static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24991 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24992 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
24993 | wxString result; | |
24994 | PyObject * obj0 = 0 ; | |
24995 | char *kwnames[] = { | |
24996 | (char *) "self", NULL | |
24997 | }; | |
24998 | ||
24999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25000 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
25001 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25002 | { |
25003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25004 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
25005 | ||
25006 | wxPyEndAllowThreads(__tstate); | |
25007 | if (PyErr_Occurred()) SWIG_fail; | |
25008 | } | |
25009 | { | |
25010 | #if wxUSE_UNICODE | |
25011 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25012 | #else | |
25013 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25014 | #endif | |
25015 | } | |
25016 | return resultobj; | |
25017 | fail: | |
25018 | return NULL; | |
25019 | } | |
25020 | ||
25021 | ||
c32bde28 | 25022 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25023 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25024 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
25025 | wxString result; | |
25026 | PyObject * obj0 = 0 ; | |
25027 | char *kwnames[] = { | |
25028 | (char *) "self", NULL | |
25029 | }; | |
25030 | ||
25031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25032 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
25033 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25034 | { |
25035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25036 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
25037 | ||
25038 | wxPyEndAllowThreads(__tstate); | |
25039 | if (PyErr_Occurred()) SWIG_fail; | |
25040 | } | |
25041 | { | |
25042 | #if wxUSE_UNICODE | |
25043 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25044 | #else | |
25045 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25046 | #endif | |
25047 | } | |
25048 | return resultobj; | |
25049 | fail: | |
25050 | return NULL; | |
25051 | } | |
25052 | ||
25053 | ||
c32bde28 | 25054 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25055 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25056 | wxDateTime *arg1 = (wxDateTime *) 0 ; |
25057 | wxString result; | |
25058 | PyObject * obj0 = 0 ; | |
25059 | char *kwnames[] = { | |
25060 | (char *) "self", NULL | |
25061 | }; | |
25062 | ||
25063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
25065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25066 | { |
25067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25068 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
25069 | ||
25070 | wxPyEndAllowThreads(__tstate); | |
25071 | if (PyErr_Occurred()) SWIG_fail; | |
25072 | } | |
25073 | { | |
25074 | #if wxUSE_UNICODE | |
25075 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25076 | #else | |
25077 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25078 | #endif | |
25079 | } | |
25080 | return resultobj; | |
25081 | fail: | |
25082 | return NULL; | |
25083 | } | |
25084 | ||
25085 | ||
c32bde28 | 25086 | static PyObject * DateTime_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
25087 | PyObject *obj; |
25088 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25089 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
25090 | Py_INCREF(obj); | |
25091 | return Py_BuildValue((char *)""); | |
25092 | } | |
c32bde28 | 25093 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25094 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25095 | long arg1 ; |
25096 | wxTimeSpan result; | |
994141e6 | 25097 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25098 | char *kwnames[] = { |
25099 | (char *) "sec", NULL | |
25100 | }; | |
25101 | ||
994141e6 | 25102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; |
093d3ff1 | 25103 | { |
32fe5131 | 25104 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
25105 | if (SWIG_arg_fail(1)) SWIG_fail; |
25106 | } | |
d14a1e28 RD |
25107 | { |
25108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25109 | result = wxTimeSpan::Seconds(arg1); | |
25110 | ||
25111 | wxPyEndAllowThreads(__tstate); | |
25112 | if (PyErr_Occurred()) SWIG_fail; | |
25113 | } | |
25114 | { | |
25115 | wxTimeSpan * resultptr; | |
32fe5131 | 25116 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25117 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25118 | } |
25119 | return resultobj; | |
25120 | fail: | |
25121 | return NULL; | |
25122 | } | |
25123 | ||
25124 | ||
c32bde28 | 25125 | static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25126 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25127 | wxTimeSpan result; |
25128 | char *kwnames[] = { | |
25129 | NULL | |
25130 | }; | |
25131 | ||
25132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
25133 | { | |
25134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25135 | result = wxTimeSpan::Second(); | |
25136 | ||
25137 | wxPyEndAllowThreads(__tstate); | |
25138 | if (PyErr_Occurred()) SWIG_fail; | |
25139 | } | |
25140 | { | |
25141 | wxTimeSpan * resultptr; | |
32fe5131 | 25142 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25143 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25144 | } |
25145 | return resultobj; | |
25146 | fail: | |
25147 | return NULL; | |
25148 | } | |
25149 | ||
25150 | ||
c32bde28 | 25151 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25152 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25153 | long arg1 ; |
25154 | wxTimeSpan result; | |
994141e6 | 25155 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25156 | char *kwnames[] = { |
25157 | (char *) "min", NULL | |
25158 | }; | |
25159 | ||
994141e6 | 25160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; |
093d3ff1 | 25161 | { |
32fe5131 | 25162 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
25163 | if (SWIG_arg_fail(1)) SWIG_fail; |
25164 | } | |
d14a1e28 RD |
25165 | { |
25166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25167 | result = wxTimeSpan::Minutes(arg1); | |
25168 | ||
25169 | wxPyEndAllowThreads(__tstate); | |
25170 | if (PyErr_Occurred()) SWIG_fail; | |
25171 | } | |
25172 | { | |
25173 | wxTimeSpan * resultptr; | |
32fe5131 | 25174 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25175 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25176 | } |
25177 | return resultobj; | |
25178 | fail: | |
25179 | return NULL; | |
25180 | } | |
25181 | ||
25182 | ||
c32bde28 | 25183 | static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25184 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25185 | wxTimeSpan result; |
25186 | char *kwnames[] = { | |
25187 | NULL | |
25188 | }; | |
25189 | ||
25190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
25191 | { | |
25192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25193 | result = wxTimeSpan::Minute(); | |
25194 | ||
25195 | wxPyEndAllowThreads(__tstate); | |
25196 | if (PyErr_Occurred()) SWIG_fail; | |
25197 | } | |
25198 | { | |
25199 | wxTimeSpan * resultptr; | |
32fe5131 | 25200 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25201 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25202 | } |
25203 | return resultobj; | |
25204 | fail: | |
25205 | return NULL; | |
25206 | } | |
25207 | ||
25208 | ||
c32bde28 | 25209 | static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25210 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25211 | long arg1 ; |
25212 | wxTimeSpan result; | |
994141e6 | 25213 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25214 | char *kwnames[] = { |
25215 | (char *) "hours", NULL | |
25216 | }; | |
25217 | ||
994141e6 | 25218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; |
093d3ff1 | 25219 | { |
32fe5131 | 25220 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
25221 | if (SWIG_arg_fail(1)) SWIG_fail; |
25222 | } | |
d14a1e28 RD |
25223 | { |
25224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25225 | result = wxTimeSpan::Hours(arg1); | |
25226 | ||
25227 | wxPyEndAllowThreads(__tstate); | |
25228 | if (PyErr_Occurred()) SWIG_fail; | |
25229 | } | |
25230 | { | |
25231 | wxTimeSpan * resultptr; | |
32fe5131 | 25232 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25233 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25234 | } |
25235 | return resultobj; | |
25236 | fail: | |
25237 | return NULL; | |
25238 | } | |
25239 | ||
25240 | ||
c32bde28 | 25241 | static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25242 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25243 | wxTimeSpan result; |
25244 | char *kwnames[] = { | |
25245 | NULL | |
25246 | }; | |
25247 | ||
25248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
25249 | { | |
25250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25251 | result = wxTimeSpan::Hour(); | |
25252 | ||
25253 | wxPyEndAllowThreads(__tstate); | |
25254 | if (PyErr_Occurred()) SWIG_fail; | |
25255 | } | |
25256 | { | |
25257 | wxTimeSpan * resultptr; | |
32fe5131 | 25258 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25259 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25260 | } |
25261 | return resultobj; | |
25262 | fail: | |
25263 | return NULL; | |
25264 | } | |
25265 | ||
25266 | ||
c32bde28 | 25267 | static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25268 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25269 | long arg1 ; |
25270 | wxTimeSpan result; | |
994141e6 | 25271 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25272 | char *kwnames[] = { |
25273 | (char *) "days", NULL | |
25274 | }; | |
25275 | ||
994141e6 | 25276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; |
093d3ff1 | 25277 | { |
32fe5131 | 25278 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
25279 | if (SWIG_arg_fail(1)) SWIG_fail; |
25280 | } | |
d14a1e28 RD |
25281 | { |
25282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25283 | result = wxTimeSpan::Days(arg1); | |
25284 | ||
25285 | wxPyEndAllowThreads(__tstate); | |
25286 | if (PyErr_Occurred()) SWIG_fail; | |
25287 | } | |
25288 | { | |
25289 | wxTimeSpan * resultptr; | |
32fe5131 | 25290 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25291 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25292 | } |
25293 | return resultobj; | |
25294 | fail: | |
25295 | return NULL; | |
25296 | } | |
25297 | ||
25298 | ||
c32bde28 | 25299 | static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25300 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25301 | wxTimeSpan result; |
25302 | char *kwnames[] = { | |
25303 | NULL | |
25304 | }; | |
25305 | ||
25306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
25307 | { | |
25308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25309 | result = wxTimeSpan::Day(); | |
25310 | ||
25311 | wxPyEndAllowThreads(__tstate); | |
25312 | if (PyErr_Occurred()) SWIG_fail; | |
25313 | } | |
25314 | { | |
25315 | wxTimeSpan * resultptr; | |
32fe5131 | 25316 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25317 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25318 | } |
25319 | return resultobj; | |
25320 | fail: | |
25321 | return NULL; | |
25322 | } | |
25323 | ||
25324 | ||
c32bde28 | 25325 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25326 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25327 | long arg1 ; |
25328 | wxTimeSpan result; | |
994141e6 | 25329 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25330 | char *kwnames[] = { |
25331 | (char *) "days", NULL | |
25332 | }; | |
25333 | ||
994141e6 | 25334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; |
093d3ff1 | 25335 | { |
32fe5131 | 25336 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
25337 | if (SWIG_arg_fail(1)) SWIG_fail; |
25338 | } | |
d14a1e28 RD |
25339 | { |
25340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25341 | result = wxTimeSpan::Weeks(arg1); | |
25342 | ||
25343 | wxPyEndAllowThreads(__tstate); | |
25344 | if (PyErr_Occurred()) SWIG_fail; | |
25345 | } | |
25346 | { | |
25347 | wxTimeSpan * resultptr; | |
32fe5131 | 25348 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25349 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25350 | } |
25351 | return resultobj; | |
25352 | fail: | |
25353 | return NULL; | |
25354 | } | |
25355 | ||
25356 | ||
c32bde28 | 25357 | static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25358 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25359 | wxTimeSpan result; |
25360 | char *kwnames[] = { | |
25361 | NULL | |
25362 | }; | |
25363 | ||
25364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
25365 | { | |
25366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25367 | result = wxTimeSpan::Week(); | |
25368 | ||
25369 | wxPyEndAllowThreads(__tstate); | |
25370 | if (PyErr_Occurred()) SWIG_fail; | |
25371 | } | |
25372 | { | |
25373 | wxTimeSpan * resultptr; | |
32fe5131 | 25374 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25375 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25376 | } |
25377 | return resultobj; | |
25378 | fail: | |
25379 | return NULL; | |
25380 | } | |
25381 | ||
25382 | ||
c32bde28 | 25383 | static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25384 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25385 | long arg1 = (long) 0 ; |
25386 | long arg2 = (long) 0 ; | |
25387 | long arg3 = (long) 0 ; | |
25388 | long arg4 = (long) 0 ; | |
25389 | wxTimeSpan *result; | |
994141e6 RD |
25390 | PyObject * obj0 = 0 ; |
25391 | PyObject * obj1 = 0 ; | |
25392 | PyObject * obj2 = 0 ; | |
25393 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25394 | char *kwnames[] = { |
25395 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
25396 | }; | |
25397 | ||
994141e6 RD |
25398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
25399 | if (obj0) { | |
093d3ff1 | 25400 | { |
32fe5131 | 25401 | arg1 = static_cast<long >(SWIG_As_long(obj0)); |
093d3ff1 RD |
25402 | if (SWIG_arg_fail(1)) SWIG_fail; |
25403 | } | |
994141e6 RD |
25404 | } |
25405 | if (obj1) { | |
093d3ff1 | 25406 | { |
32fe5131 | 25407 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25408 | if (SWIG_arg_fail(2)) SWIG_fail; |
25409 | } | |
994141e6 RD |
25410 | } |
25411 | if (obj2) { | |
093d3ff1 | 25412 | { |
32fe5131 | 25413 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
25414 | if (SWIG_arg_fail(3)) SWIG_fail; |
25415 | } | |
994141e6 RD |
25416 | } |
25417 | if (obj3) { | |
093d3ff1 | 25418 | { |
32fe5131 | 25419 | arg4 = static_cast<long >(SWIG_As_long(obj3)); |
093d3ff1 RD |
25420 | if (SWIG_arg_fail(4)) SWIG_fail; |
25421 | } | |
994141e6 | 25422 | } |
d14a1e28 RD |
25423 | { |
25424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25425 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
25426 | ||
25427 | wxPyEndAllowThreads(__tstate); | |
25428 | if (PyErr_Occurred()) SWIG_fail; | |
25429 | } | |
15afbcd0 | 25430 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25431 | return resultobj; |
25432 | fail: | |
25433 | return NULL; | |
25434 | } | |
25435 | ||
25436 | ||
c32bde28 | 25437 | static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25438 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25439 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25440 | PyObject * obj0 = 0 ; | |
25441 | char *kwnames[] = { | |
25442 | (char *) "self", NULL | |
25443 | }; | |
25444 | ||
25445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25448 | { |
25449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25450 | delete arg1; | |
25451 | ||
25452 | wxPyEndAllowThreads(__tstate); | |
25453 | if (PyErr_Occurred()) SWIG_fail; | |
25454 | } | |
25455 | Py_INCREF(Py_None); resultobj = Py_None; | |
25456 | return resultobj; | |
25457 | fail: | |
25458 | return NULL; | |
25459 | } | |
25460 | ||
25461 | ||
c32bde28 | 25462 | static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25463 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25464 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25465 | wxTimeSpan *arg2 = 0 ; | |
25466 | wxTimeSpan *result; | |
25467 | PyObject * obj0 = 0 ; | |
25468 | PyObject * obj1 = 0 ; | |
25469 | char *kwnames[] = { | |
25470 | (char *) "self",(char *) "diff", NULL | |
25471 | }; | |
25472 | ||
25473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25476 | { | |
25477 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25478 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25479 | if (arg2 == NULL) { | |
25480 | SWIG_null_ref("wxTimeSpan"); | |
25481 | } | |
25482 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25483 | } |
25484 | { | |
25485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25486 | { | |
25487 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
25488 | result = (wxTimeSpan *) &_result_ref; | |
25489 | } | |
25490 | ||
25491 | wxPyEndAllowThreads(__tstate); | |
25492 | if (PyErr_Occurred()) SWIG_fail; | |
25493 | } | |
15afbcd0 | 25494 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
25495 | return resultobj; |
25496 | fail: | |
25497 | return NULL; | |
25498 | } | |
25499 | ||
25500 | ||
c32bde28 | 25501 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25502 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25503 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25504 | wxTimeSpan *arg2 = 0 ; | |
25505 | wxTimeSpan *result; | |
25506 | PyObject * obj0 = 0 ; | |
25507 | PyObject * obj1 = 0 ; | |
25508 | char *kwnames[] = { | |
25509 | (char *) "self",(char *) "diff", NULL | |
25510 | }; | |
25511 | ||
25512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25513 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25514 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25515 | { | |
25516 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25517 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25518 | if (arg2 == NULL) { | |
25519 | SWIG_null_ref("wxTimeSpan"); | |
25520 | } | |
25521 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25522 | } |
25523 | { | |
25524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25525 | { | |
25526 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
25527 | result = (wxTimeSpan *) &_result_ref; | |
25528 | } | |
25529 | ||
25530 | wxPyEndAllowThreads(__tstate); | |
25531 | if (PyErr_Occurred()) SWIG_fail; | |
25532 | } | |
15afbcd0 | 25533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
25534 | return resultobj; |
25535 | fail: | |
25536 | return NULL; | |
25537 | } | |
25538 | ||
25539 | ||
c32bde28 | 25540 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25541 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25542 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25543 | int arg2 ; | |
25544 | wxTimeSpan *result; | |
25545 | PyObject * obj0 = 0 ; | |
994141e6 | 25546 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25547 | char *kwnames[] = { |
25548 | (char *) "self",(char *) "n", NULL | |
25549 | }; | |
25550 | ||
994141e6 | 25551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25552 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25553 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25554 | { | |
32fe5131 | 25555 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25556 | if (SWIG_arg_fail(2)) SWIG_fail; |
25557 | } | |
d14a1e28 RD |
25558 | { |
25559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25560 | { | |
25561 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
25562 | result = (wxTimeSpan *) &_result_ref; | |
25563 | } | |
25564 | ||
25565 | wxPyEndAllowThreads(__tstate); | |
25566 | if (PyErr_Occurred()) SWIG_fail; | |
25567 | } | |
15afbcd0 | 25568 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
25569 | return resultobj; |
25570 | fail: | |
25571 | return NULL; | |
25572 | } | |
25573 | ||
25574 | ||
c32bde28 | 25575 | static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25576 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25577 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25578 | wxTimeSpan *result; | |
25579 | PyObject * obj0 = 0 ; | |
25580 | char *kwnames[] = { | |
25581 | (char *) "self", NULL | |
25582 | }; | |
25583 | ||
25584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25587 | { |
25588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25589 | { | |
25590 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
25591 | result = (wxTimeSpan *) &_result_ref; | |
25592 | } | |
25593 | ||
25594 | wxPyEndAllowThreads(__tstate); | |
25595 | if (PyErr_Occurred()) SWIG_fail; | |
25596 | } | |
15afbcd0 | 25597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
25598 | return resultobj; |
25599 | fail: | |
25600 | return NULL; | |
25601 | } | |
25602 | ||
25603 | ||
c32bde28 | 25604 | static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25605 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25606 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25607 | wxTimeSpan result; | |
25608 | PyObject * obj0 = 0 ; | |
25609 | char *kwnames[] = { | |
25610 | (char *) "self", NULL | |
25611 | }; | |
25612 | ||
25613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25614 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25615 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25616 | { |
25617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25618 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
25619 | ||
25620 | wxPyEndAllowThreads(__tstate); | |
25621 | if (PyErr_Occurred()) SWIG_fail; | |
25622 | } | |
25623 | { | |
25624 | wxTimeSpan * resultptr; | |
32fe5131 | 25625 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25626 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25627 | } |
25628 | return resultobj; | |
25629 | fail: | |
25630 | return NULL; | |
25631 | } | |
25632 | ||
25633 | ||
c32bde28 | 25634 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25635 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25636 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25637 | wxTimeSpan *arg2 = 0 ; | |
25638 | wxTimeSpan *result; | |
25639 | PyObject * obj0 = 0 ; | |
25640 | PyObject * obj1 = 0 ; | |
25641 | char *kwnames[] = { | |
25642 | (char *) "self",(char *) "diff", NULL | |
25643 | }; | |
25644 | ||
25645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
25647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25648 | { | |
25649 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25650 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25651 | if (arg2 == NULL) { | |
25652 | SWIG_null_ref("wxTimeSpan"); | |
25653 | } | |
25654 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25655 | } |
25656 | { | |
25657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25658 | { | |
25659 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
25660 | result = (wxTimeSpan *) &_result_ref; | |
25661 | } | |
25662 | ||
25663 | wxPyEndAllowThreads(__tstate); | |
25664 | if (PyErr_Occurred()) SWIG_fail; | |
25665 | } | |
c32bde28 | 25666 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25667 | return resultobj; |
25668 | fail: | |
25669 | return NULL; | |
25670 | } | |
25671 | ||
25672 | ||
c32bde28 | 25673 | static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25674 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25675 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25676 | wxTimeSpan *arg2 = 0 ; | |
25677 | wxTimeSpan *result; | |
25678 | PyObject * obj0 = 0 ; | |
25679 | PyObject * obj1 = 0 ; | |
25680 | char *kwnames[] = { | |
25681 | (char *) "self",(char *) "diff", NULL | |
25682 | }; | |
25683 | ||
25684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25685 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
25686 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25687 | { | |
25688 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25689 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25690 | if (arg2 == NULL) { | |
25691 | SWIG_null_ref("wxTimeSpan"); | |
25692 | } | |
25693 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25694 | } |
25695 | { | |
25696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25697 | { | |
25698 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
25699 | result = (wxTimeSpan *) &_result_ref; | |
25700 | } | |
25701 | ||
25702 | wxPyEndAllowThreads(__tstate); | |
25703 | if (PyErr_Occurred()) SWIG_fail; | |
25704 | } | |
c32bde28 | 25705 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25706 | return resultobj; |
25707 | fail: | |
25708 | return NULL; | |
25709 | } | |
25710 | ||
25711 | ||
c32bde28 | 25712 | static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25713 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25714 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25715 | int arg2 ; | |
25716 | wxTimeSpan *result; | |
25717 | PyObject * obj0 = 0 ; | |
994141e6 | 25718 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25719 | char *kwnames[] = { |
25720 | (char *) "self",(char *) "n", NULL | |
25721 | }; | |
25722 | ||
994141e6 | 25723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
25725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25726 | { | |
32fe5131 | 25727 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25728 | if (SWIG_arg_fail(2)) SWIG_fail; |
25729 | } | |
d14a1e28 RD |
25730 | { |
25731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25732 | { | |
25733 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
25734 | result = (wxTimeSpan *) &_result_ref; | |
25735 | } | |
25736 | ||
25737 | wxPyEndAllowThreads(__tstate); | |
25738 | if (PyErr_Occurred()) SWIG_fail; | |
25739 | } | |
c32bde28 | 25740 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25741 | return resultobj; |
25742 | fail: | |
25743 | return NULL; | |
25744 | } | |
25745 | ||
25746 | ||
c32bde28 | 25747 | static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25748 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25749 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25750 | wxTimeSpan *result; | |
25751 | PyObject * obj0 = 0 ; | |
25752 | char *kwnames[] = { | |
25753 | (char *) "self", NULL | |
25754 | }; | |
25755 | ||
25756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25759 | { |
25760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25761 | { | |
25762 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
25763 | result = (wxTimeSpan *) &_result_ref; | |
25764 | } | |
25765 | ||
25766 | wxPyEndAllowThreads(__tstate); | |
25767 | if (PyErr_Occurred()) SWIG_fail; | |
25768 | } | |
15afbcd0 | 25769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
25770 | return resultobj; |
25771 | fail: | |
25772 | return NULL; | |
25773 | } | |
25774 | ||
25775 | ||
c32bde28 | 25776 | static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25777 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25778 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25779 | wxTimeSpan *arg2 = 0 ; | |
25780 | wxTimeSpan result; | |
25781 | PyObject * obj0 = 0 ; | |
25782 | PyObject * obj1 = 0 ; | |
25783 | char *kwnames[] = { | |
25784 | (char *) "self",(char *) "other", NULL | |
25785 | }; | |
25786 | ||
25787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25790 | { | |
25791 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25792 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25793 | if (arg2 == NULL) { | |
25794 | SWIG_null_ref("wxTimeSpan"); | |
25795 | } | |
25796 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25797 | } |
25798 | { | |
25799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25800 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
25801 | ||
25802 | wxPyEndAllowThreads(__tstate); | |
25803 | if (PyErr_Occurred()) SWIG_fail; | |
25804 | } | |
25805 | { | |
25806 | wxTimeSpan * resultptr; | |
32fe5131 | 25807 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25808 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25809 | } |
25810 | return resultobj; | |
25811 | fail: | |
25812 | return NULL; | |
25813 | } | |
25814 | ||
25815 | ||
c32bde28 | 25816 | static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25817 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25818 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25819 | wxTimeSpan *arg2 = 0 ; | |
25820 | wxTimeSpan result; | |
25821 | PyObject * obj0 = 0 ; | |
25822 | PyObject * obj1 = 0 ; | |
25823 | char *kwnames[] = { | |
25824 | (char *) "self",(char *) "other", NULL | |
25825 | }; | |
25826 | ||
25827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25828 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25829 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25830 | { | |
25831 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25832 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25833 | if (arg2 == NULL) { | |
25834 | SWIG_null_ref("wxTimeSpan"); | |
25835 | } | |
25836 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25837 | } |
25838 | { | |
25839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25840 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
25841 | ||
25842 | wxPyEndAllowThreads(__tstate); | |
25843 | if (PyErr_Occurred()) SWIG_fail; | |
25844 | } | |
25845 | { | |
25846 | wxTimeSpan * resultptr; | |
32fe5131 | 25847 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25848 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25849 | } |
25850 | return resultobj; | |
25851 | fail: | |
25852 | return NULL; | |
25853 | } | |
25854 | ||
25855 | ||
c32bde28 | 25856 | static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25857 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25858 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25859 | int arg2 ; | |
25860 | wxTimeSpan result; | |
25861 | PyObject * obj0 = 0 ; | |
994141e6 | 25862 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25863 | char *kwnames[] = { |
25864 | (char *) "self",(char *) "n", NULL | |
25865 | }; | |
25866 | ||
994141e6 | 25867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25870 | { | |
32fe5131 | 25871 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25872 | if (SWIG_arg_fail(2)) SWIG_fail; |
25873 | } | |
d14a1e28 RD |
25874 | { |
25875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25876 | result = wxTimeSpan___mul__(arg1,arg2); | |
25877 | ||
25878 | wxPyEndAllowThreads(__tstate); | |
25879 | if (PyErr_Occurred()) SWIG_fail; | |
25880 | } | |
25881 | { | |
25882 | wxTimeSpan * resultptr; | |
32fe5131 | 25883 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25884 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25885 | } |
25886 | return resultobj; | |
25887 | fail: | |
25888 | return NULL; | |
25889 | } | |
25890 | ||
25891 | ||
c32bde28 | 25892 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25893 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25894 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
25895 | int arg2 ; | |
25896 | wxTimeSpan result; | |
25897 | PyObject * obj0 = 0 ; | |
994141e6 | 25898 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25899 | char *kwnames[] = { |
25900 | (char *) "self",(char *) "n", NULL | |
25901 | }; | |
25902 | ||
994141e6 | 25903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25906 | { | |
32fe5131 | 25907 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25908 | if (SWIG_arg_fail(2)) SWIG_fail; |
25909 | } | |
d14a1e28 RD |
25910 | { |
25911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25912 | result = wxTimeSpan___rmul__(arg1,arg2); | |
25913 | ||
25914 | wxPyEndAllowThreads(__tstate); | |
25915 | if (PyErr_Occurred()) SWIG_fail; | |
25916 | } | |
25917 | { | |
25918 | wxTimeSpan * resultptr; | |
32fe5131 | 25919 | resultptr = new wxTimeSpan(static_cast<wxTimeSpan & >(result)); |
15afbcd0 | 25920 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
25921 | } |
25922 | return resultobj; | |
25923 | fail: | |
25924 | return NULL; | |
25925 | } | |
25926 | ||
25927 | ||
c32bde28 | 25928 | static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25929 | PyObject *resultobj = NULL; |
d14a1e28 | 25930 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
22faec7d | 25931 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
25932 | bool result; |
25933 | PyObject * obj0 = 0 ; | |
25934 | PyObject * obj1 = 0 ; | |
25935 | char *kwnames[] = { | |
25936 | (char *) "self",(char *) "other", NULL | |
25937 | }; | |
25938 | ||
25939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25942 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25943 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25944 | { |
25945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 25946 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
25947 | |
25948 | wxPyEndAllowThreads(__tstate); | |
25949 | if (PyErr_Occurred()) SWIG_fail; | |
25950 | } | |
4f89f6a3 RD |
25951 | { |
25952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25953 | } | |
d14a1e28 RD |
25954 | return resultobj; |
25955 | fail: | |
25956 | return NULL; | |
25957 | } | |
25958 | ||
25959 | ||
c32bde28 | 25960 | static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25961 | PyObject *resultobj = NULL; |
d14a1e28 | 25962 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
22faec7d | 25963 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
25964 | bool result; |
25965 | PyObject * obj0 = 0 ; | |
25966 | PyObject * obj1 = 0 ; | |
25967 | char *kwnames[] = { | |
25968 | (char *) "self",(char *) "other", NULL | |
25969 | }; | |
25970 | ||
25971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25974 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
25975 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25976 | { |
25977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 25978 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
25979 | |
25980 | wxPyEndAllowThreads(__tstate); | |
25981 | if (PyErr_Occurred()) SWIG_fail; | |
25982 | } | |
4f89f6a3 RD |
25983 | { |
25984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25985 | } | |
d14a1e28 RD |
25986 | return resultobj; |
25987 | fail: | |
25988 | return NULL; | |
25989 | } | |
25990 | ||
25991 | ||
c32bde28 | 25992 | static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25993 | PyObject *resultobj = NULL; |
d14a1e28 | 25994 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
22faec7d | 25995 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
25996 | bool result; |
25997 | PyObject * obj0 = 0 ; | |
25998 | PyObject * obj1 = 0 ; | |
25999 | char *kwnames[] = { | |
26000 | (char *) "self",(char *) "other", NULL | |
26001 | }; | |
26002 | ||
26003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26006 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
26007 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26008 | { |
26009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 26010 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
26011 | |
26012 | wxPyEndAllowThreads(__tstate); | |
26013 | if (PyErr_Occurred()) SWIG_fail; | |
26014 | } | |
4f89f6a3 RD |
26015 | { |
26016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26017 | } | |
d14a1e28 RD |
26018 | return resultobj; |
26019 | fail: | |
26020 | return NULL; | |
26021 | } | |
26022 | ||
26023 | ||
c32bde28 | 26024 | static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26025 | PyObject *resultobj = NULL; |
d14a1e28 | 26026 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
22faec7d | 26027 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
26028 | bool result; |
26029 | PyObject * obj0 = 0 ; | |
26030 | PyObject * obj1 = 0 ; | |
26031 | char *kwnames[] = { | |
26032 | (char *) "self",(char *) "other", NULL | |
26033 | }; | |
26034 | ||
26035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26038 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
26039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26040 | { |
26041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 26042 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
26043 | |
26044 | wxPyEndAllowThreads(__tstate); | |
26045 | if (PyErr_Occurred()) SWIG_fail; | |
26046 | } | |
4f89f6a3 RD |
26047 | { |
26048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26049 | } | |
d14a1e28 RD |
26050 | return resultobj; |
26051 | fail: | |
26052 | return NULL; | |
26053 | } | |
26054 | ||
26055 | ||
c32bde28 | 26056 | static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26057 | PyObject *resultobj = NULL; |
d14a1e28 | 26058 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
22faec7d | 26059 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
26060 | bool result; |
26061 | PyObject * obj0 = 0 ; | |
26062 | PyObject * obj1 = 0 ; | |
26063 | char *kwnames[] = { | |
26064 | (char *) "self",(char *) "other", NULL | |
26065 | }; | |
26066 | ||
26067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26070 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
26071 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26072 | { |
26073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 26074 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
26075 | |
26076 | wxPyEndAllowThreads(__tstate); | |
26077 | if (PyErr_Occurred()) SWIG_fail; | |
26078 | } | |
4f89f6a3 RD |
26079 | { |
26080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26081 | } | |
d14a1e28 RD |
26082 | return resultobj; |
26083 | fail: | |
26084 | return NULL; | |
26085 | } | |
26086 | ||
26087 | ||
c32bde28 | 26088 | static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26089 | PyObject *resultobj = NULL; |
d14a1e28 | 26090 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
22faec7d | 26091 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
26092 | bool result; |
26093 | PyObject * obj0 = 0 ; | |
26094 | PyObject * obj1 = 0 ; | |
26095 | char *kwnames[] = { | |
26096 | (char *) "self",(char *) "other", NULL | |
26097 | }; | |
26098 | ||
26099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26102 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
26103 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26104 | { |
26105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 26106 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
26107 | |
26108 | wxPyEndAllowThreads(__tstate); | |
26109 | if (PyErr_Occurred()) SWIG_fail; | |
26110 | } | |
4f89f6a3 RD |
26111 | { |
26112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26113 | } | |
d14a1e28 RD |
26114 | return resultobj; |
26115 | fail: | |
26116 | return NULL; | |
26117 | } | |
26118 | ||
26119 | ||
c32bde28 | 26120 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26121 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26122 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26123 | bool result; | |
26124 | PyObject * obj0 = 0 ; | |
26125 | char *kwnames[] = { | |
26126 | (char *) "self", NULL | |
26127 | }; | |
26128 | ||
26129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26132 | { |
26133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26134 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
26135 | ||
26136 | wxPyEndAllowThreads(__tstate); | |
26137 | if (PyErr_Occurred()) SWIG_fail; | |
26138 | } | |
4f89f6a3 RD |
26139 | { |
26140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26141 | } | |
d14a1e28 RD |
26142 | return resultobj; |
26143 | fail: | |
26144 | return NULL; | |
26145 | } | |
26146 | ||
26147 | ||
c32bde28 | 26148 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26149 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26150 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26151 | bool result; | |
26152 | PyObject * obj0 = 0 ; | |
26153 | char *kwnames[] = { | |
26154 | (char *) "self", NULL | |
26155 | }; | |
26156 | ||
26157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26160 | { |
26161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26162 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
26163 | ||
26164 | wxPyEndAllowThreads(__tstate); | |
26165 | if (PyErr_Occurred()) SWIG_fail; | |
26166 | } | |
4f89f6a3 RD |
26167 | { |
26168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26169 | } | |
d14a1e28 RD |
26170 | return resultobj; |
26171 | fail: | |
26172 | return NULL; | |
26173 | } | |
26174 | ||
26175 | ||
c32bde28 | 26176 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26177 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26178 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26179 | bool result; | |
26180 | PyObject * obj0 = 0 ; | |
26181 | char *kwnames[] = { | |
26182 | (char *) "self", NULL | |
26183 | }; | |
26184 | ||
26185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26186 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26187 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26188 | { |
26189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26190 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
26191 | ||
26192 | wxPyEndAllowThreads(__tstate); | |
26193 | if (PyErr_Occurred()) SWIG_fail; | |
26194 | } | |
4f89f6a3 RD |
26195 | { |
26196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26197 | } | |
d14a1e28 RD |
26198 | return resultobj; |
26199 | fail: | |
26200 | return NULL; | |
26201 | } | |
26202 | ||
26203 | ||
c32bde28 | 26204 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26205 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26206 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26207 | wxTimeSpan *arg2 = 0 ; | |
26208 | bool result; | |
26209 | PyObject * obj0 = 0 ; | |
26210 | PyObject * obj1 = 0 ; | |
26211 | char *kwnames[] = { | |
26212 | (char *) "self",(char *) "ts", NULL | |
26213 | }; | |
26214 | ||
26215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26218 | { | |
26219 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
26220 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26221 | if (arg2 == NULL) { | |
26222 | SWIG_null_ref("wxTimeSpan"); | |
26223 | } | |
26224 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26225 | } |
26226 | { | |
26227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26228 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
26229 | ||
26230 | wxPyEndAllowThreads(__tstate); | |
26231 | if (PyErr_Occurred()) SWIG_fail; | |
26232 | } | |
4f89f6a3 RD |
26233 | { |
26234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26235 | } | |
d14a1e28 RD |
26236 | return resultobj; |
26237 | fail: | |
26238 | return NULL; | |
26239 | } | |
26240 | ||
26241 | ||
c32bde28 | 26242 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26243 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26244 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26245 | wxTimeSpan *arg2 = 0 ; | |
26246 | bool result; | |
26247 | PyObject * obj0 = 0 ; | |
26248 | PyObject * obj1 = 0 ; | |
26249 | char *kwnames[] = { | |
26250 | (char *) "self",(char *) "ts", NULL | |
26251 | }; | |
26252 | ||
26253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26256 | { | |
26257 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
26258 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26259 | if (arg2 == NULL) { | |
26260 | SWIG_null_ref("wxTimeSpan"); | |
26261 | } | |
26262 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26263 | } |
26264 | { | |
26265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26266 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
26267 | ||
26268 | wxPyEndAllowThreads(__tstate); | |
26269 | if (PyErr_Occurred()) SWIG_fail; | |
26270 | } | |
4f89f6a3 RD |
26271 | { |
26272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26273 | } | |
d14a1e28 RD |
26274 | return resultobj; |
26275 | fail: | |
26276 | return NULL; | |
26277 | } | |
26278 | ||
26279 | ||
c32bde28 | 26280 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26281 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26282 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26283 | wxTimeSpan *arg2 = 0 ; | |
26284 | bool result; | |
26285 | PyObject * obj0 = 0 ; | |
26286 | PyObject * obj1 = 0 ; | |
26287 | char *kwnames[] = { | |
26288 | (char *) "self",(char *) "t", NULL | |
26289 | }; | |
26290 | ||
26291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26294 | { | |
26295 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
26296 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26297 | if (arg2 == NULL) { | |
26298 | SWIG_null_ref("wxTimeSpan"); | |
26299 | } | |
26300 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26301 | } |
26302 | { | |
26303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26304 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
26305 | ||
26306 | wxPyEndAllowThreads(__tstate); | |
26307 | if (PyErr_Occurred()) SWIG_fail; | |
26308 | } | |
4f89f6a3 RD |
26309 | { |
26310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26311 | } | |
d14a1e28 RD |
26312 | return resultobj; |
26313 | fail: | |
26314 | return NULL; | |
26315 | } | |
26316 | ||
26317 | ||
c32bde28 | 26318 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26319 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26320 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26321 | int result; | |
26322 | PyObject * obj0 = 0 ; | |
26323 | char *kwnames[] = { | |
26324 | (char *) "self", NULL | |
26325 | }; | |
26326 | ||
26327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26330 | { |
26331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26332 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
26333 | ||
26334 | wxPyEndAllowThreads(__tstate); | |
26335 | if (PyErr_Occurred()) SWIG_fail; | |
26336 | } | |
093d3ff1 | 26337 | { |
32fe5131 | 26338 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26339 | } |
d14a1e28 RD |
26340 | return resultobj; |
26341 | fail: | |
26342 | return NULL; | |
26343 | } | |
26344 | ||
26345 | ||
c32bde28 | 26346 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26347 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26348 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26349 | int result; | |
26350 | PyObject * obj0 = 0 ; | |
26351 | char *kwnames[] = { | |
26352 | (char *) "self", NULL | |
26353 | }; | |
26354 | ||
26355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26358 | { |
26359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26360 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
26361 | ||
26362 | wxPyEndAllowThreads(__tstate); | |
26363 | if (PyErr_Occurred()) SWIG_fail; | |
26364 | } | |
093d3ff1 | 26365 | { |
32fe5131 | 26366 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26367 | } |
d14a1e28 RD |
26368 | return resultobj; |
26369 | fail: | |
26370 | return NULL; | |
26371 | } | |
26372 | ||
26373 | ||
c32bde28 | 26374 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26375 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26376 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26377 | int result; | |
26378 | PyObject * obj0 = 0 ; | |
26379 | char *kwnames[] = { | |
26380 | (char *) "self", NULL | |
26381 | }; | |
26382 | ||
26383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26386 | { |
26387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26388 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
26389 | ||
26390 | wxPyEndAllowThreads(__tstate); | |
26391 | if (PyErr_Occurred()) SWIG_fail; | |
26392 | } | |
093d3ff1 | 26393 | { |
32fe5131 | 26394 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26395 | } |
d14a1e28 RD |
26396 | return resultobj; |
26397 | fail: | |
26398 | return NULL; | |
26399 | } | |
26400 | ||
26401 | ||
c32bde28 | 26402 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26403 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26404 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26405 | int result; | |
26406 | PyObject * obj0 = 0 ; | |
26407 | char *kwnames[] = { | |
26408 | (char *) "self", NULL | |
26409 | }; | |
26410 | ||
26411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26412 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26413 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26414 | { |
26415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26416 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
26417 | ||
26418 | wxPyEndAllowThreads(__tstate); | |
26419 | if (PyErr_Occurred()) SWIG_fail; | |
26420 | } | |
093d3ff1 | 26421 | { |
32fe5131 | 26422 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26423 | } |
d14a1e28 RD |
26424 | return resultobj; |
26425 | fail: | |
26426 | return NULL; | |
26427 | } | |
26428 | ||
26429 | ||
c32bde28 | 26430 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26431 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26432 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26433 | wxLongLong result; | |
26434 | PyObject * obj0 = 0 ; | |
26435 | char *kwnames[] = { | |
26436 | (char *) "self", NULL | |
26437 | }; | |
26438 | ||
26439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26442 | { |
26443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26444 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
26445 | ||
26446 | wxPyEndAllowThreads(__tstate); | |
26447 | if (PyErr_Occurred()) SWIG_fail; | |
26448 | } | |
26449 | { | |
26450 | PyObject *hi, *lo, *shifter, *shifted; | |
26451 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
26452 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
26453 | shifter = PyLong_FromLong(32); | |
26454 | shifted = PyNumber_Lshift(hi, shifter); | |
26455 | resultobj = PyNumber_Or(shifted, lo); | |
26456 | Py_DECREF(hi); | |
26457 | Py_DECREF(lo); | |
26458 | Py_DECREF(shifter); | |
26459 | Py_DECREF(shifted); | |
26460 | } | |
26461 | return resultobj; | |
26462 | fail: | |
26463 | return NULL; | |
26464 | } | |
26465 | ||
26466 | ||
c32bde28 | 26467 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26468 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26469 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
26470 | wxLongLong result; | |
26471 | PyObject * obj0 = 0 ; | |
26472 | char *kwnames[] = { | |
26473 | (char *) "self", NULL | |
26474 | }; | |
26475 | ||
26476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26479 | { |
26480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26481 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
26482 | ||
26483 | wxPyEndAllowThreads(__tstate); | |
26484 | if (PyErr_Occurred()) SWIG_fail; | |
26485 | } | |
26486 | { | |
26487 | PyObject *hi, *lo, *shifter, *shifted; | |
26488 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
26489 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
26490 | shifter = PyLong_FromLong(32); | |
26491 | shifted = PyNumber_Lshift(hi, shifter); | |
26492 | resultobj = PyNumber_Or(shifted, lo); | |
26493 | Py_DECREF(hi); | |
26494 | Py_DECREF(lo); | |
26495 | Py_DECREF(shifter); | |
26496 | Py_DECREF(shifted); | |
26497 | } | |
26498 | return resultobj; | |
26499 | fail: | |
26500 | return NULL; | |
26501 | } | |
26502 | ||
26503 | ||
c32bde28 | 26504 | static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26505 | PyObject *resultobj = NULL; |
d14a1e28 | 26506 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; |
7557b9b5 | 26507 | wxString const &arg2_defvalue = wxPyDefaultTimeSpanFormat ; |
d14a1e28 RD |
26508 | wxString *arg2 = (wxString *) &arg2_defvalue ; |
26509 | wxString result; | |
ae8162c8 | 26510 | bool temp2 = false ; |
d14a1e28 RD |
26511 | PyObject * obj0 = 0 ; |
26512 | PyObject * obj1 = 0 ; | |
26513 | char *kwnames[] = { | |
26514 | (char *) "self",(char *) "format", NULL | |
26515 | }; | |
26516 | ||
26517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
26519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26520 | if (obj1) { |
26521 | { | |
26522 | arg2 = wxString_in_helper(obj1); | |
26523 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 26524 | temp2 = true; |
d14a1e28 RD |
26525 | } |
26526 | } | |
26527 | { | |
26528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26529 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
26530 | ||
26531 | wxPyEndAllowThreads(__tstate); | |
26532 | if (PyErr_Occurred()) SWIG_fail; | |
26533 | } | |
26534 | { | |
26535 | #if wxUSE_UNICODE | |
26536 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26537 | #else | |
26538 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26539 | #endif | |
26540 | } | |
26541 | { | |
26542 | if (temp2) | |
26543 | delete arg2; | |
26544 | } | |
26545 | return resultobj; | |
26546 | fail: | |
26547 | { | |
26548 | if (temp2) | |
26549 | delete arg2; | |
26550 | } | |
26551 | return NULL; | |
26552 | } | |
26553 | ||
26554 | ||
c32bde28 | 26555 | static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
26556 | PyObject *obj; |
26557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26558 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
26559 | Py_INCREF(obj); | |
26560 | return Py_BuildValue((char *)""); | |
26561 | } | |
c32bde28 | 26562 | static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26563 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26564 | int arg1 = (int) 0 ; |
26565 | int arg2 = (int) 0 ; | |
26566 | int arg3 = (int) 0 ; | |
26567 | int arg4 = (int) 0 ; | |
26568 | wxDateSpan *result; | |
994141e6 RD |
26569 | PyObject * obj0 = 0 ; |
26570 | PyObject * obj1 = 0 ; | |
26571 | PyObject * obj2 = 0 ; | |
26572 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26573 | char *kwnames[] = { |
26574 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
26575 | }; | |
26576 | ||
994141e6 RD |
26577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
26578 | if (obj0) { | |
093d3ff1 | 26579 | { |
32fe5131 | 26580 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
26581 | if (SWIG_arg_fail(1)) SWIG_fail; |
26582 | } | |
994141e6 RD |
26583 | } |
26584 | if (obj1) { | |
093d3ff1 | 26585 | { |
32fe5131 | 26586 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26587 | if (SWIG_arg_fail(2)) SWIG_fail; |
26588 | } | |
994141e6 RD |
26589 | } |
26590 | if (obj2) { | |
093d3ff1 | 26591 | { |
32fe5131 | 26592 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
26593 | if (SWIG_arg_fail(3)) SWIG_fail; |
26594 | } | |
994141e6 RD |
26595 | } |
26596 | if (obj3) { | |
093d3ff1 | 26597 | { |
32fe5131 | 26598 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
26599 | if (SWIG_arg_fail(4)) SWIG_fail; |
26600 | } | |
994141e6 | 26601 | } |
d14a1e28 RD |
26602 | { |
26603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26604 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
26605 | ||
26606 | wxPyEndAllowThreads(__tstate); | |
26607 | if (PyErr_Occurred()) SWIG_fail; | |
26608 | } | |
15afbcd0 | 26609 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26610 | return resultobj; |
26611 | fail: | |
26612 | return NULL; | |
26613 | } | |
26614 | ||
26615 | ||
c32bde28 | 26616 | static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26617 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26618 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26619 | PyObject * obj0 = 0 ; | |
26620 | char *kwnames[] = { | |
26621 | (char *) "self", NULL | |
26622 | }; | |
26623 | ||
26624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26627 | { |
26628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26629 | delete arg1; | |
26630 | ||
26631 | wxPyEndAllowThreads(__tstate); | |
26632 | if (PyErr_Occurred()) SWIG_fail; | |
26633 | } | |
26634 | Py_INCREF(Py_None); resultobj = Py_None; | |
26635 | return resultobj; | |
26636 | fail: | |
26637 | return NULL; | |
26638 | } | |
26639 | ||
26640 | ||
c32bde28 | 26641 | static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26642 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26643 | int arg1 ; |
26644 | wxDateSpan result; | |
994141e6 | 26645 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26646 | char *kwnames[] = { |
26647 | (char *) "days", NULL | |
26648 | }; | |
26649 | ||
994141e6 | 26650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; |
093d3ff1 | 26651 | { |
32fe5131 | 26652 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
26653 | if (SWIG_arg_fail(1)) SWIG_fail; |
26654 | } | |
d14a1e28 RD |
26655 | { |
26656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26657 | result = wxDateSpan::Days(arg1); | |
26658 | ||
26659 | wxPyEndAllowThreads(__tstate); | |
26660 | if (PyErr_Occurred()) SWIG_fail; | |
26661 | } | |
26662 | { | |
26663 | wxDateSpan * resultptr; | |
32fe5131 | 26664 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 26665 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26666 | } |
26667 | return resultobj; | |
26668 | fail: | |
26669 | return NULL; | |
26670 | } | |
26671 | ||
26672 | ||
c32bde28 | 26673 | static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26674 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26675 | wxDateSpan result; |
26676 | char *kwnames[] = { | |
26677 | NULL | |
26678 | }; | |
26679 | ||
26680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
26681 | { | |
26682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26683 | result = wxDateSpan::Day(); | |
26684 | ||
26685 | wxPyEndAllowThreads(__tstate); | |
26686 | if (PyErr_Occurred()) SWIG_fail; | |
26687 | } | |
26688 | { | |
26689 | wxDateSpan * resultptr; | |
32fe5131 | 26690 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 26691 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26692 | } |
26693 | return resultobj; | |
26694 | fail: | |
26695 | return NULL; | |
26696 | } | |
26697 | ||
26698 | ||
c32bde28 | 26699 | static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26700 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26701 | int arg1 ; |
26702 | wxDateSpan result; | |
994141e6 | 26703 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26704 | char *kwnames[] = { |
26705 | (char *) "weeks", NULL | |
26706 | }; | |
26707 | ||
994141e6 | 26708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; |
093d3ff1 | 26709 | { |
32fe5131 | 26710 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
26711 | if (SWIG_arg_fail(1)) SWIG_fail; |
26712 | } | |
d14a1e28 RD |
26713 | { |
26714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26715 | result = wxDateSpan::Weeks(arg1); | |
26716 | ||
26717 | wxPyEndAllowThreads(__tstate); | |
26718 | if (PyErr_Occurred()) SWIG_fail; | |
26719 | } | |
26720 | { | |
26721 | wxDateSpan * resultptr; | |
32fe5131 | 26722 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 26723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26724 | } |
26725 | return resultobj; | |
26726 | fail: | |
26727 | return NULL; | |
26728 | } | |
26729 | ||
26730 | ||
c32bde28 | 26731 | static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26732 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26733 | wxDateSpan result; |
26734 | char *kwnames[] = { | |
26735 | NULL | |
26736 | }; | |
26737 | ||
26738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
26739 | { | |
26740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26741 | result = wxDateSpan::Week(); | |
26742 | ||
26743 | wxPyEndAllowThreads(__tstate); | |
26744 | if (PyErr_Occurred()) SWIG_fail; | |
26745 | } | |
26746 | { | |
26747 | wxDateSpan * resultptr; | |
32fe5131 | 26748 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 26749 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26750 | } |
26751 | return resultobj; | |
26752 | fail: | |
26753 | return NULL; | |
26754 | } | |
26755 | ||
26756 | ||
c32bde28 | 26757 | static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26758 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26759 | int arg1 ; |
26760 | wxDateSpan result; | |
994141e6 | 26761 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26762 | char *kwnames[] = { |
26763 | (char *) "mon", NULL | |
26764 | }; | |
26765 | ||
994141e6 | 26766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; |
093d3ff1 | 26767 | { |
32fe5131 | 26768 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
26769 | if (SWIG_arg_fail(1)) SWIG_fail; |
26770 | } | |
d14a1e28 RD |
26771 | { |
26772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26773 | result = wxDateSpan::Months(arg1); | |
26774 | ||
26775 | wxPyEndAllowThreads(__tstate); | |
26776 | if (PyErr_Occurred()) SWIG_fail; | |
26777 | } | |
26778 | { | |
26779 | wxDateSpan * resultptr; | |
32fe5131 | 26780 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 26781 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26782 | } |
26783 | return resultobj; | |
26784 | fail: | |
26785 | return NULL; | |
26786 | } | |
26787 | ||
26788 | ||
c32bde28 | 26789 | static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26790 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26791 | wxDateSpan result; |
26792 | char *kwnames[] = { | |
26793 | NULL | |
26794 | }; | |
26795 | ||
26796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
26797 | { | |
26798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26799 | result = wxDateSpan::Month(); | |
26800 | ||
26801 | wxPyEndAllowThreads(__tstate); | |
26802 | if (PyErr_Occurred()) SWIG_fail; | |
26803 | } | |
26804 | { | |
26805 | wxDateSpan * resultptr; | |
32fe5131 | 26806 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 26807 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26808 | } |
26809 | return resultobj; | |
26810 | fail: | |
26811 | return NULL; | |
26812 | } | |
26813 | ||
26814 | ||
c32bde28 | 26815 | static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26816 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26817 | int arg1 ; |
26818 | wxDateSpan result; | |
994141e6 | 26819 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26820 | char *kwnames[] = { |
26821 | (char *) "years", NULL | |
26822 | }; | |
26823 | ||
994141e6 | 26824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; |
093d3ff1 | 26825 | { |
32fe5131 | 26826 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
26827 | if (SWIG_arg_fail(1)) SWIG_fail; |
26828 | } | |
d14a1e28 RD |
26829 | { |
26830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26831 | result = wxDateSpan::Years(arg1); | |
26832 | ||
26833 | wxPyEndAllowThreads(__tstate); | |
26834 | if (PyErr_Occurred()) SWIG_fail; | |
26835 | } | |
26836 | { | |
26837 | wxDateSpan * resultptr; | |
32fe5131 | 26838 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 26839 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26840 | } |
26841 | return resultobj; | |
26842 | fail: | |
26843 | return NULL; | |
26844 | } | |
26845 | ||
26846 | ||
c32bde28 | 26847 | static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26848 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26849 | wxDateSpan result; |
26850 | char *kwnames[] = { | |
26851 | NULL | |
26852 | }; | |
26853 | ||
26854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
26855 | { | |
26856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26857 | result = wxDateSpan::Year(); | |
26858 | ||
26859 | wxPyEndAllowThreads(__tstate); | |
26860 | if (PyErr_Occurred()) SWIG_fail; | |
26861 | } | |
26862 | { | |
26863 | wxDateSpan * resultptr; | |
32fe5131 | 26864 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 26865 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26866 | } |
26867 | return resultobj; | |
26868 | fail: | |
26869 | return NULL; | |
26870 | } | |
26871 | ||
26872 | ||
c32bde28 | 26873 | static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26874 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26875 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26876 | int arg2 ; | |
26877 | wxDateSpan *result; | |
26878 | PyObject * obj0 = 0 ; | |
994141e6 | 26879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26880 | char *kwnames[] = { |
26881 | (char *) "self",(char *) "n", NULL | |
26882 | }; | |
26883 | ||
994141e6 | 26884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26887 | { | |
32fe5131 | 26888 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26889 | if (SWIG_arg_fail(2)) SWIG_fail; |
26890 | } | |
d14a1e28 RD |
26891 | { |
26892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26893 | { | |
26894 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
26895 | result = (wxDateSpan *) &_result_ref; | |
26896 | } | |
26897 | ||
26898 | wxPyEndAllowThreads(__tstate); | |
26899 | if (PyErr_Occurred()) SWIG_fail; | |
26900 | } | |
15afbcd0 | 26901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
26902 | return resultobj; |
26903 | fail: | |
26904 | return NULL; | |
26905 | } | |
26906 | ||
26907 | ||
c32bde28 | 26908 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26909 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26910 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26911 | int arg2 ; | |
26912 | wxDateSpan *result; | |
26913 | PyObject * obj0 = 0 ; | |
994141e6 | 26914 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26915 | char *kwnames[] = { |
26916 | (char *) "self",(char *) "n", NULL | |
26917 | }; | |
26918 | ||
994141e6 | 26919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26920 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26921 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26922 | { | |
32fe5131 | 26923 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26924 | if (SWIG_arg_fail(2)) SWIG_fail; |
26925 | } | |
d14a1e28 RD |
26926 | { |
26927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26928 | { | |
26929 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
26930 | result = (wxDateSpan *) &_result_ref; | |
26931 | } | |
26932 | ||
26933 | wxPyEndAllowThreads(__tstate); | |
26934 | if (PyErr_Occurred()) SWIG_fail; | |
26935 | } | |
15afbcd0 | 26936 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
26937 | return resultobj; |
26938 | fail: | |
26939 | return NULL; | |
26940 | } | |
26941 | ||
26942 | ||
c32bde28 | 26943 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26944 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26945 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26946 | int arg2 ; | |
26947 | wxDateSpan *result; | |
26948 | PyObject * obj0 = 0 ; | |
994141e6 | 26949 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26950 | char *kwnames[] = { |
26951 | (char *) "self",(char *) "n", NULL | |
26952 | }; | |
26953 | ||
994141e6 | 26954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26957 | { | |
32fe5131 | 26958 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26959 | if (SWIG_arg_fail(2)) SWIG_fail; |
26960 | } | |
d14a1e28 RD |
26961 | { |
26962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26963 | { | |
26964 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
26965 | result = (wxDateSpan *) &_result_ref; | |
26966 | } | |
26967 | ||
26968 | wxPyEndAllowThreads(__tstate); | |
26969 | if (PyErr_Occurred()) SWIG_fail; | |
26970 | } | |
15afbcd0 | 26971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
26972 | return resultobj; |
26973 | fail: | |
26974 | return NULL; | |
26975 | } | |
26976 | ||
26977 | ||
c32bde28 | 26978 | static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26979 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26980 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
26981 | int arg2 ; | |
26982 | wxDateSpan *result; | |
26983 | PyObject * obj0 = 0 ; | |
994141e6 | 26984 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26985 | char *kwnames[] = { |
26986 | (char *) "self",(char *) "n", NULL | |
26987 | }; | |
26988 | ||
994141e6 | 26989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26992 | { | |
32fe5131 | 26993 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26994 | if (SWIG_arg_fail(2)) SWIG_fail; |
26995 | } | |
d14a1e28 RD |
26996 | { |
26997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26998 | { | |
26999 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
27000 | result = (wxDateSpan *) &_result_ref; | |
27001 | } | |
27002 | ||
27003 | wxPyEndAllowThreads(__tstate); | |
27004 | if (PyErr_Occurred()) SWIG_fail; | |
27005 | } | |
15afbcd0 | 27006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
27007 | return resultobj; |
27008 | fail: | |
27009 | return NULL; | |
27010 | } | |
27011 | ||
27012 | ||
c32bde28 | 27013 | static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27014 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27015 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27016 | int result; | |
27017 | PyObject * obj0 = 0 ; | |
27018 | char *kwnames[] = { | |
27019 | (char *) "self", NULL | |
27020 | }; | |
27021 | ||
27022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27025 | { |
27026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27027 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
27028 | ||
27029 | wxPyEndAllowThreads(__tstate); | |
27030 | if (PyErr_Occurred()) SWIG_fail; | |
27031 | } | |
093d3ff1 | 27032 | { |
32fe5131 | 27033 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 27034 | } |
d14a1e28 RD |
27035 | return resultobj; |
27036 | fail: | |
27037 | return NULL; | |
27038 | } | |
27039 | ||
27040 | ||
c32bde28 | 27041 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27042 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27043 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27044 | int result; | |
27045 | PyObject * obj0 = 0 ; | |
27046 | char *kwnames[] = { | |
27047 | (char *) "self", NULL | |
27048 | }; | |
27049 | ||
27050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27053 | { |
27054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27055 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
27056 | ||
27057 | wxPyEndAllowThreads(__tstate); | |
27058 | if (PyErr_Occurred()) SWIG_fail; | |
27059 | } | |
093d3ff1 | 27060 | { |
32fe5131 | 27061 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 27062 | } |
d14a1e28 RD |
27063 | return resultobj; |
27064 | fail: | |
27065 | return NULL; | |
27066 | } | |
27067 | ||
27068 | ||
c32bde28 | 27069 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27070 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27071 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27072 | int result; | |
27073 | PyObject * obj0 = 0 ; | |
27074 | char *kwnames[] = { | |
27075 | (char *) "self", NULL | |
27076 | }; | |
27077 | ||
27078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27079 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27080 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27081 | { |
27082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27083 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
27084 | ||
27085 | wxPyEndAllowThreads(__tstate); | |
27086 | if (PyErr_Occurred()) SWIG_fail; | |
27087 | } | |
093d3ff1 | 27088 | { |
32fe5131 | 27089 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 27090 | } |
d14a1e28 RD |
27091 | return resultobj; |
27092 | fail: | |
27093 | return NULL; | |
27094 | } | |
27095 | ||
27096 | ||
c32bde28 | 27097 | static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27098 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27099 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27100 | int result; | |
27101 | PyObject * obj0 = 0 ; | |
27102 | char *kwnames[] = { | |
27103 | (char *) "self", NULL | |
27104 | }; | |
27105 | ||
27106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27107 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27108 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27109 | { |
27110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27111 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
27112 | ||
27113 | wxPyEndAllowThreads(__tstate); | |
27114 | if (PyErr_Occurred()) SWIG_fail; | |
27115 | } | |
093d3ff1 | 27116 | { |
32fe5131 | 27117 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 27118 | } |
d14a1e28 RD |
27119 | return resultobj; |
27120 | fail: | |
27121 | return NULL; | |
27122 | } | |
27123 | ||
27124 | ||
c32bde28 | 27125 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27126 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27127 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27128 | int result; | |
27129 | PyObject * obj0 = 0 ; | |
27130 | char *kwnames[] = { | |
27131 | (char *) "self", NULL | |
27132 | }; | |
27133 | ||
27134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27135 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27136 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27137 | { |
27138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27139 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
27140 | ||
27141 | wxPyEndAllowThreads(__tstate); | |
27142 | if (PyErr_Occurred()) SWIG_fail; | |
27143 | } | |
093d3ff1 | 27144 | { |
32fe5131 | 27145 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 27146 | } |
d14a1e28 RD |
27147 | return resultobj; |
27148 | fail: | |
27149 | return NULL; | |
27150 | } | |
27151 | ||
27152 | ||
c32bde28 | 27153 | static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27154 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27155 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27156 | wxDateSpan *arg2 = 0 ; | |
27157 | wxDateSpan *result; | |
27158 | PyObject * obj0 = 0 ; | |
27159 | PyObject * obj1 = 0 ; | |
27160 | char *kwnames[] = { | |
27161 | (char *) "self",(char *) "other", NULL | |
27162 | }; | |
27163 | ||
27164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27165 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27166 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27167 | { | |
27168 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27169 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27170 | if (arg2 == NULL) { | |
27171 | SWIG_null_ref("wxDateSpan"); | |
27172 | } | |
27173 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27174 | } |
27175 | { | |
27176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27177 | { | |
27178 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
27179 | result = (wxDateSpan *) &_result_ref; | |
27180 | } | |
27181 | ||
27182 | wxPyEndAllowThreads(__tstate); | |
27183 | if (PyErr_Occurred()) SWIG_fail; | |
27184 | } | |
15afbcd0 | 27185 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
27186 | return resultobj; |
27187 | fail: | |
27188 | return NULL; | |
27189 | } | |
27190 | ||
27191 | ||
c32bde28 | 27192 | static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27193 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27194 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27195 | wxDateSpan *arg2 = 0 ; | |
27196 | wxDateSpan *result; | |
27197 | PyObject * obj0 = 0 ; | |
27198 | PyObject * obj1 = 0 ; | |
27199 | char *kwnames[] = { | |
27200 | (char *) "self",(char *) "other", NULL | |
27201 | }; | |
27202 | ||
27203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27204 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27205 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27206 | { | |
27207 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27208 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27209 | if (arg2 == NULL) { | |
27210 | SWIG_null_ref("wxDateSpan"); | |
27211 | } | |
27212 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27213 | } |
27214 | { | |
27215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27216 | { | |
27217 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
27218 | result = (wxDateSpan *) &_result_ref; | |
27219 | } | |
27220 | ||
27221 | wxPyEndAllowThreads(__tstate); | |
27222 | if (PyErr_Occurred()) SWIG_fail; | |
27223 | } | |
15afbcd0 | 27224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
27225 | return resultobj; |
27226 | fail: | |
27227 | return NULL; | |
27228 | } | |
27229 | ||
27230 | ||
c32bde28 | 27231 | static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27232 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27233 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27234 | wxDateSpan *result; | |
27235 | PyObject * obj0 = 0 ; | |
27236 | char *kwnames[] = { | |
27237 | (char *) "self", NULL | |
27238 | }; | |
27239 | ||
27240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27241 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27242 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27243 | { |
27244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27245 | { | |
27246 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
27247 | result = (wxDateSpan *) &_result_ref; | |
27248 | } | |
27249 | ||
27250 | wxPyEndAllowThreads(__tstate); | |
27251 | if (PyErr_Occurred()) SWIG_fail; | |
27252 | } | |
15afbcd0 | 27253 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
27254 | return resultobj; |
27255 | fail: | |
27256 | return NULL; | |
27257 | } | |
27258 | ||
27259 | ||
c32bde28 | 27260 | static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27261 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27262 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27263 | int arg2 ; | |
27264 | wxDateSpan *result; | |
27265 | PyObject * obj0 = 0 ; | |
994141e6 | 27266 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27267 | char *kwnames[] = { |
27268 | (char *) "self",(char *) "factor", NULL | |
27269 | }; | |
27270 | ||
994141e6 | 27271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27274 | { | |
32fe5131 | 27275 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27276 | if (SWIG_arg_fail(2)) SWIG_fail; |
27277 | } | |
d14a1e28 RD |
27278 | { |
27279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27280 | { | |
27281 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
27282 | result = (wxDateSpan *) &_result_ref; | |
27283 | } | |
27284 | ||
27285 | wxPyEndAllowThreads(__tstate); | |
27286 | if (PyErr_Occurred()) SWIG_fail; | |
27287 | } | |
15afbcd0 | 27288 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
27289 | return resultobj; |
27290 | fail: | |
27291 | return NULL; | |
27292 | } | |
27293 | ||
27294 | ||
c32bde28 | 27295 | static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27296 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27297 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27298 | wxDateSpan *arg2 = 0 ; | |
27299 | wxDateSpan *result; | |
27300 | PyObject * obj0 = 0 ; | |
27301 | PyObject * obj1 = 0 ; | |
27302 | char *kwnames[] = { | |
27303 | (char *) "self",(char *) "other", NULL | |
27304 | }; | |
27305 | ||
27306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27307 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
27308 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27309 | { | |
27310 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27311 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27312 | if (arg2 == NULL) { | |
27313 | SWIG_null_ref("wxDateSpan"); | |
27314 | } | |
27315 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27316 | } |
27317 | { | |
27318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27319 | { | |
27320 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
27321 | result = (wxDateSpan *) &_result_ref; | |
27322 | } | |
27323 | ||
27324 | wxPyEndAllowThreads(__tstate); | |
27325 | if (PyErr_Occurred()) SWIG_fail; | |
27326 | } | |
c32bde28 | 27327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
27328 | return resultobj; |
27329 | fail: | |
27330 | return NULL; | |
27331 | } | |
27332 | ||
27333 | ||
c32bde28 | 27334 | static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27335 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27336 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27337 | wxDateSpan *arg2 = 0 ; | |
27338 | wxDateSpan *result; | |
27339 | PyObject * obj0 = 0 ; | |
27340 | PyObject * obj1 = 0 ; | |
27341 | char *kwnames[] = { | |
27342 | (char *) "self",(char *) "other", NULL | |
27343 | }; | |
27344 | ||
27345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27346 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
27347 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27348 | { | |
27349 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27350 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27351 | if (arg2 == NULL) { | |
27352 | SWIG_null_ref("wxDateSpan"); | |
27353 | } | |
27354 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27355 | } |
27356 | { | |
27357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27358 | { | |
27359 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
27360 | result = (wxDateSpan *) &_result_ref; | |
27361 | } | |
27362 | ||
27363 | wxPyEndAllowThreads(__tstate); | |
27364 | if (PyErr_Occurred()) SWIG_fail; | |
27365 | } | |
c32bde28 | 27366 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
27367 | return resultobj; |
27368 | fail: | |
27369 | return NULL; | |
27370 | } | |
27371 | ||
27372 | ||
c32bde28 | 27373 | static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27374 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27375 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27376 | wxDateSpan *result; | |
27377 | PyObject * obj0 = 0 ; | |
27378 | char *kwnames[] = { | |
27379 | (char *) "self", NULL | |
27380 | }; | |
27381 | ||
27382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27383 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27385 | { |
27386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27387 | { | |
27388 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
27389 | result = (wxDateSpan *) &_result_ref; | |
27390 | } | |
27391 | ||
27392 | wxPyEndAllowThreads(__tstate); | |
27393 | if (PyErr_Occurred()) SWIG_fail; | |
27394 | } | |
15afbcd0 | 27395 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
27396 | return resultobj; |
27397 | fail: | |
27398 | return NULL; | |
27399 | } | |
27400 | ||
27401 | ||
c32bde28 | 27402 | static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27403 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27404 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27405 | int arg2 ; | |
27406 | wxDateSpan *result; | |
27407 | PyObject * obj0 = 0 ; | |
994141e6 | 27408 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27409 | char *kwnames[] = { |
27410 | (char *) "self",(char *) "factor", NULL | |
27411 | }; | |
27412 | ||
994141e6 | 27413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27414 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
27415 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27416 | { | |
32fe5131 | 27417 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27418 | if (SWIG_arg_fail(2)) SWIG_fail; |
27419 | } | |
d14a1e28 RD |
27420 | { |
27421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27422 | { | |
27423 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
27424 | result = (wxDateSpan *) &_result_ref; | |
27425 | } | |
27426 | ||
27427 | wxPyEndAllowThreads(__tstate); | |
27428 | if (PyErr_Occurred()) SWIG_fail; | |
27429 | } | |
c32bde28 | 27430 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
27431 | return resultobj; |
27432 | fail: | |
27433 | return NULL; | |
27434 | } | |
27435 | ||
27436 | ||
c32bde28 | 27437 | static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27438 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27439 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27440 | wxDateSpan *arg2 = 0 ; | |
27441 | wxDateSpan result; | |
27442 | PyObject * obj0 = 0 ; | |
27443 | PyObject * obj1 = 0 ; | |
27444 | char *kwnames[] = { | |
27445 | (char *) "self",(char *) "other", NULL | |
27446 | }; | |
27447 | ||
27448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27451 | { | |
27452 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27453 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27454 | if (arg2 == NULL) { | |
27455 | SWIG_null_ref("wxDateSpan"); | |
27456 | } | |
27457 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27458 | } |
27459 | { | |
27460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27461 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
27462 | ||
27463 | wxPyEndAllowThreads(__tstate); | |
27464 | if (PyErr_Occurred()) SWIG_fail; | |
27465 | } | |
27466 | { | |
27467 | wxDateSpan * resultptr; | |
32fe5131 | 27468 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 27469 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
27470 | } |
27471 | return resultobj; | |
27472 | fail: | |
27473 | return NULL; | |
27474 | } | |
27475 | ||
27476 | ||
c32bde28 | 27477 | static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27478 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27479 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27480 | wxDateSpan *arg2 = 0 ; | |
27481 | wxDateSpan result; | |
27482 | PyObject * obj0 = 0 ; | |
27483 | PyObject * obj1 = 0 ; | |
27484 | char *kwnames[] = { | |
27485 | (char *) "self",(char *) "other", NULL | |
27486 | }; | |
27487 | ||
27488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27489 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27490 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27491 | { | |
27492 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27493 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27494 | if (arg2 == NULL) { | |
27495 | SWIG_null_ref("wxDateSpan"); | |
27496 | } | |
27497 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27498 | } |
27499 | { | |
27500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27501 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
27502 | ||
27503 | wxPyEndAllowThreads(__tstate); | |
27504 | if (PyErr_Occurred()) SWIG_fail; | |
27505 | } | |
27506 | { | |
27507 | wxDateSpan * resultptr; | |
32fe5131 | 27508 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 27509 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
27510 | } |
27511 | return resultobj; | |
27512 | fail: | |
27513 | return NULL; | |
27514 | } | |
27515 | ||
27516 | ||
c32bde28 | 27517 | static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27518 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27519 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27520 | int arg2 ; | |
27521 | wxDateSpan result; | |
27522 | PyObject * obj0 = 0 ; | |
994141e6 | 27523 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27524 | char *kwnames[] = { |
27525 | (char *) "self",(char *) "n", NULL | |
27526 | }; | |
27527 | ||
994141e6 | 27528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27531 | { | |
32fe5131 | 27532 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27533 | if (SWIG_arg_fail(2)) SWIG_fail; |
27534 | } | |
d14a1e28 RD |
27535 | { |
27536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27537 | result = wxDateSpan___mul__(arg1,arg2); | |
27538 | ||
27539 | wxPyEndAllowThreads(__tstate); | |
27540 | if (PyErr_Occurred()) SWIG_fail; | |
27541 | } | |
27542 | { | |
27543 | wxDateSpan * resultptr; | |
32fe5131 | 27544 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 27545 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
27546 | } |
27547 | return resultobj; | |
27548 | fail: | |
27549 | return NULL; | |
27550 | } | |
27551 | ||
27552 | ||
c32bde28 | 27553 | static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27554 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27555 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
27556 | int arg2 ; | |
27557 | wxDateSpan result; | |
27558 | PyObject * obj0 = 0 ; | |
994141e6 | 27559 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27560 | char *kwnames[] = { |
27561 | (char *) "self",(char *) "n", NULL | |
27562 | }; | |
27563 | ||
994141e6 | 27564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27567 | { | |
32fe5131 | 27568 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27569 | if (SWIG_arg_fail(2)) SWIG_fail; |
27570 | } | |
d14a1e28 RD |
27571 | { |
27572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27573 | result = wxDateSpan___rmul__(arg1,arg2); | |
27574 | ||
27575 | wxPyEndAllowThreads(__tstate); | |
27576 | if (PyErr_Occurred()) SWIG_fail; | |
27577 | } | |
27578 | { | |
27579 | wxDateSpan * resultptr; | |
32fe5131 | 27580 | resultptr = new wxDateSpan(static_cast<wxDateSpan & >(result)); |
15afbcd0 | 27581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
27582 | } |
27583 | return resultobj; | |
27584 | fail: | |
27585 | return NULL; | |
27586 | } | |
27587 | ||
27588 | ||
c32bde28 | 27589 | static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27590 | PyObject *resultobj = NULL; |
d14a1e28 | 27591 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
22faec7d | 27592 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
27593 | bool result; |
27594 | PyObject * obj0 = 0 ; | |
27595 | PyObject * obj1 = 0 ; | |
27596 | char *kwnames[] = { | |
27597 | (char *) "self",(char *) "other", NULL | |
27598 | }; | |
27599 | ||
27600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27603 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27604 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27605 | { |
27606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 27607 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
27608 | |
27609 | wxPyEndAllowThreads(__tstate); | |
27610 | if (PyErr_Occurred()) SWIG_fail; | |
27611 | } | |
4f89f6a3 RD |
27612 | { |
27613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27614 | } | |
d14a1e28 RD |
27615 | return resultobj; |
27616 | fail: | |
27617 | return NULL; | |
27618 | } | |
27619 | ||
27620 | ||
c32bde28 | 27621 | static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27622 | PyObject *resultobj = NULL; |
d14a1e28 | 27623 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; |
22faec7d | 27624 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
27625 | bool result; |
27626 | PyObject * obj0 = 0 ; | |
27627 | PyObject * obj1 = 0 ; | |
27628 | char *kwnames[] = { | |
27629 | (char *) "self",(char *) "other", NULL | |
27630 | }; | |
27631 | ||
27632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
27634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27635 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
27636 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27637 | { |
27638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 27639 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
27640 | |
27641 | wxPyEndAllowThreads(__tstate); | |
27642 | if (PyErr_Occurred()) SWIG_fail; | |
27643 | } | |
4f89f6a3 RD |
27644 | { |
27645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27646 | } | |
d14a1e28 RD |
27647 | return resultobj; |
27648 | fail: | |
27649 | return NULL; | |
27650 | } | |
27651 | ||
27652 | ||
c32bde28 | 27653 | static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27654 | PyObject *obj; |
27655 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27656 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
27657 | Py_INCREF(obj); | |
27658 | return Py_BuildValue((char *)""); | |
27659 | } | |
c32bde28 | 27660 | static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27661 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27662 | long result; |
27663 | char *kwnames[] = { | |
27664 | NULL | |
27665 | }; | |
27666 | ||
27667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
27668 | { | |
27669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27670 | result = (long)wxGetLocalTime(); | |
27671 | ||
27672 | wxPyEndAllowThreads(__tstate); | |
27673 | if (PyErr_Occurred()) SWIG_fail; | |
27674 | } | |
093d3ff1 | 27675 | { |
32fe5131 | 27676 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27677 | } |
d14a1e28 RD |
27678 | return resultobj; |
27679 | fail: | |
27680 | return NULL; | |
27681 | } | |
27682 | ||
27683 | ||
c32bde28 | 27684 | static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27685 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27686 | long result; |
27687 | char *kwnames[] = { | |
27688 | NULL | |
27689 | }; | |
27690 | ||
27691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
27692 | { | |
27693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27694 | result = (long)wxGetUTCTime(); | |
27695 | ||
27696 | wxPyEndAllowThreads(__tstate); | |
27697 | if (PyErr_Occurred()) SWIG_fail; | |
27698 | } | |
093d3ff1 | 27699 | { |
32fe5131 | 27700 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27701 | } |
d14a1e28 RD |
27702 | return resultobj; |
27703 | fail: | |
27704 | return NULL; | |
27705 | } | |
27706 | ||
27707 | ||
c32bde28 | 27708 | static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27709 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27710 | long result; |
27711 | char *kwnames[] = { | |
27712 | NULL | |
27713 | }; | |
27714 | ||
27715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
27716 | { | |
27717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27718 | result = (long)wxGetCurrentTime(); | |
27719 | ||
27720 | wxPyEndAllowThreads(__tstate); | |
27721 | if (PyErr_Occurred()) SWIG_fail; | |
27722 | } | |
093d3ff1 | 27723 | { |
32fe5131 | 27724 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27725 | } |
d14a1e28 RD |
27726 | return resultobj; |
27727 | fail: | |
27728 | return NULL; | |
27729 | } | |
27730 | ||
27731 | ||
c32bde28 | 27732 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27733 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27734 | wxLongLong result; |
27735 | char *kwnames[] = { | |
27736 | NULL | |
27737 | }; | |
27738 | ||
27739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
27740 | { | |
27741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27742 | result = wxGetLocalTimeMillis(); | |
27743 | ||
27744 | wxPyEndAllowThreads(__tstate); | |
27745 | if (PyErr_Occurred()) SWIG_fail; | |
27746 | } | |
27747 | { | |
27748 | PyObject *hi, *lo, *shifter, *shifted; | |
27749 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
27750 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
27751 | shifter = PyLong_FromLong(32); | |
27752 | shifted = PyNumber_Lshift(hi, shifter); | |
27753 | resultobj = PyNumber_Or(shifted, lo); | |
27754 | Py_DECREF(hi); | |
27755 | Py_DECREF(lo); | |
27756 | Py_DECREF(shifter); | |
27757 | Py_DECREF(shifted); | |
27758 | } | |
27759 | return resultobj; | |
27760 | fail: | |
27761 | return NULL; | |
27762 | } | |
27763 | ||
27764 | ||
c32bde28 | 27765 | static int _wrap_DefaultDateTime_set(PyObject *) { |
98e665d3 RD |
27766 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); |
27767 | return 1; | |
27768 | } | |
27769 | ||
27770 | ||
093d3ff1 | 27771 | static PyObject *_wrap_DefaultDateTime_get(void) { |
32fe5131 | 27772 | PyObject *pyobj = NULL; |
98e665d3 | 27773 | |
15afbcd0 | 27774 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); |
98e665d3 RD |
27775 | return pyobj; |
27776 | } | |
27777 | ||
27778 | ||
c32bde28 | 27779 | static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27780 | PyObject *resultobj = NULL; |
093d3ff1 | 27781 | wxDataFormatId arg1 ; |
d14a1e28 | 27782 | wxDataFormat *result; |
994141e6 | 27783 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
27784 | char *kwnames[] = { |
27785 | (char *) "type", NULL | |
27786 | }; | |
27787 | ||
994141e6 | 27788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; |
093d3ff1 | 27789 | { |
32fe5131 | 27790 | arg1 = static_cast<wxDataFormatId >(SWIG_As_int(obj0)); |
093d3ff1 RD |
27791 | if (SWIG_arg_fail(1)) SWIG_fail; |
27792 | } | |
d14a1e28 RD |
27793 | { |
27794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 27795 | result = (wxDataFormat *)new wxDataFormat(arg1); |
d14a1e28 RD |
27796 | |
27797 | wxPyEndAllowThreads(__tstate); | |
27798 | if (PyErr_Occurred()) SWIG_fail; | |
27799 | } | |
15afbcd0 | 27800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
27801 | return resultobj; |
27802 | fail: | |
27803 | return NULL; | |
27804 | } | |
27805 | ||
27806 | ||
c32bde28 | 27807 | static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27808 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27809 | wxString *arg1 = 0 ; |
27810 | wxDataFormat *result; | |
ae8162c8 | 27811 | bool temp1 = false ; |
d14a1e28 RD |
27812 | PyObject * obj0 = 0 ; |
27813 | char *kwnames[] = { | |
27814 | (char *) "format", NULL | |
27815 | }; | |
27816 | ||
27817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
27818 | { | |
27819 | arg1 = wxString_in_helper(obj0); | |
27820 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 27821 | temp1 = true; |
d14a1e28 RD |
27822 | } |
27823 | { | |
27824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27825 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
27826 | ||
27827 | wxPyEndAllowThreads(__tstate); | |
27828 | if (PyErr_Occurred()) SWIG_fail; | |
27829 | } | |
15afbcd0 | 27830 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
27831 | { |
27832 | if (temp1) | |
27833 | delete arg1; | |
27834 | } | |
27835 | return resultobj; | |
27836 | fail: | |
27837 | { | |
27838 | if (temp1) | |
27839 | delete arg1; | |
27840 | } | |
27841 | return NULL; | |
27842 | } | |
27843 | ||
27844 | ||
c32bde28 | 27845 | static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27846 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27847 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
27848 | PyObject * obj0 = 0 ; | |
27849 | char *kwnames[] = { | |
27850 | (char *) "self", NULL | |
27851 | }; | |
27852 | ||
27853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
27855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27856 | { |
27857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27858 | delete arg1; | |
27859 | ||
27860 | wxPyEndAllowThreads(__tstate); | |
27861 | if (PyErr_Occurred()) SWIG_fail; | |
27862 | } | |
27863 | Py_INCREF(Py_None); resultobj = Py_None; | |
27864 | return resultobj; | |
27865 | fail: | |
27866 | return NULL; | |
27867 | } | |
27868 | ||
27869 | ||
c32bde28 | 27870 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 27871 | PyObject *resultobj = NULL; |
d14a1e28 | 27872 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
093d3ff1 | 27873 | wxDataFormatId arg2 ; |
d14a1e28 RD |
27874 | bool result; |
27875 | PyObject * obj0 = 0 ; | |
994141e6 | 27876 | PyObject * obj1 = 0 ; |
d14a1e28 | 27877 | |
994141e6 | 27878 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
27880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27881 | { | |
32fe5131 | 27882 | arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27883 | if (SWIG_arg_fail(2)) SWIG_fail; |
27884 | } | |
d14a1e28 RD |
27885 | { |
27886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 27887 | result = (bool)((wxDataFormat const *)arg1)->operator ==(arg2); |
d14a1e28 RD |
27888 | |
27889 | wxPyEndAllowThreads(__tstate); | |
27890 | if (PyErr_Occurred()) SWIG_fail; | |
27891 | } | |
4f89f6a3 RD |
27892 | { |
27893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27894 | } | |
d14a1e28 RD |
27895 | return resultobj; |
27896 | fail: | |
27897 | return NULL; | |
27898 | } | |
27899 | ||
27900 | ||
c32bde28 | 27901 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 27902 | PyObject *resultobj = NULL; |
d14a1e28 | 27903 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
093d3ff1 | 27904 | wxDataFormatId arg2 ; |
d14a1e28 RD |
27905 | bool result; |
27906 | PyObject * obj0 = 0 ; | |
994141e6 | 27907 | PyObject * obj1 = 0 ; |
d14a1e28 | 27908 | |
994141e6 | 27909 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
27911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27912 | { | |
32fe5131 | 27913 | arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27914 | if (SWIG_arg_fail(2)) SWIG_fail; |
27915 | } | |
d14a1e28 RD |
27916 | { |
27917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 27918 | result = (bool)((wxDataFormat const *)arg1)->operator !=(arg2); |
d14a1e28 RD |
27919 | |
27920 | wxPyEndAllowThreads(__tstate); | |
27921 | if (PyErr_Occurred()) SWIG_fail; | |
27922 | } | |
4f89f6a3 RD |
27923 | { |
27924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27925 | } | |
d14a1e28 RD |
27926 | return resultobj; |
27927 | fail: | |
27928 | return NULL; | |
27929 | } | |
27930 | ||
27931 | ||
c32bde28 | 27932 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) { |
32fe5131 | 27933 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27934 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
27935 | wxDataFormat *arg2 = 0 ; | |
27936 | bool result; | |
27937 | PyObject * obj0 = 0 ; | |
27938 | PyObject * obj1 = 0 ; | |
27939 | ||
27940 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
27942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27943 | { | |
27944 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27945 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27946 | if (arg2 == NULL) { | |
27947 | SWIG_null_ref("wxDataFormat"); | |
27948 | } | |
27949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27950 | } |
27951 | { | |
27952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27953 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
27954 | ||
27955 | wxPyEndAllowThreads(__tstate); | |
27956 | if (PyErr_Occurred()) SWIG_fail; | |
27957 | } | |
4f89f6a3 RD |
27958 | { |
27959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27960 | } | |
d14a1e28 RD |
27961 | return resultobj; |
27962 | fail: | |
27963 | return NULL; | |
27964 | } | |
27965 | ||
27966 | ||
27967 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
27968 | int argc; | |
27969 | PyObject *argv[3]; | |
27970 | int ii; | |
27971 | ||
27972 | argc = PyObject_Length(args); | |
27973 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27974 | argv[ii] = PyTuple_GetItem(args,ii); | |
27975 | } | |
27976 | if (argc == 2) { | |
27977 | int _v; | |
27978 | { | |
27979 | void *ptr; | |
15afbcd0 | 27980 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
27981 | _v = 0; |
27982 | PyErr_Clear(); | |
27983 | } else { | |
27984 | _v = 1; | |
27985 | } | |
27986 | } | |
27987 | if (_v) { | |
27988 | { | |
093d3ff1 | 27989 | void *ptr = 0; |
15afbcd0 | 27990 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
27991 | _v = 0; |
27992 | PyErr_Clear(); | |
27993 | } else { | |
093d3ff1 | 27994 | _v = (ptr != 0); |
d14a1e28 RD |
27995 | } |
27996 | } | |
27997 | if (_v) { | |
27998 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
27999 | } | |
28000 | } | |
28001 | } | |
28002 | if (argc == 2) { | |
28003 | int _v; | |
28004 | { | |
28005 | void *ptr; | |
15afbcd0 | 28006 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
28007 | _v = 0; |
28008 | PyErr_Clear(); | |
28009 | } else { | |
28010 | _v = 1; | |
28011 | } | |
28012 | } | |
28013 | if (_v) { | |
c32bde28 | 28014 | _v = SWIG_Check_int(argv[1]); |
d14a1e28 RD |
28015 | if (_v) { |
28016 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
28017 | } | |
28018 | } | |
28019 | } | |
28020 | ||
093d3ff1 RD |
28021 | Py_INCREF(Py_NotImplemented); |
28022 | return Py_NotImplemented; | |
d14a1e28 RD |
28023 | } |
28024 | ||
28025 | ||
c32bde28 | 28026 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) { |
32fe5131 | 28027 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28028 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
28029 | wxDataFormat *arg2 = 0 ; | |
28030 | bool result; | |
28031 | PyObject * obj0 = 0 ; | |
28032 | PyObject * obj1 = 0 ; | |
28033 | ||
28034 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28035 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
28036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28037 | { | |
28038 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28040 | if (arg2 == NULL) { | |
28041 | SWIG_null_ref("wxDataFormat"); | |
28042 | } | |
28043 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28044 | } |
28045 | { | |
28046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28047 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
28048 | ||
28049 | wxPyEndAllowThreads(__tstate); | |
28050 | if (PyErr_Occurred()) SWIG_fail; | |
28051 | } | |
4f89f6a3 RD |
28052 | { |
28053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28054 | } | |
d14a1e28 RD |
28055 | return resultobj; |
28056 | fail: | |
28057 | return NULL; | |
28058 | } | |
28059 | ||
28060 | ||
28061 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
28062 | int argc; | |
28063 | PyObject *argv[3]; | |
28064 | int ii; | |
28065 | ||
28066 | argc = PyObject_Length(args); | |
28067 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
28068 | argv[ii] = PyTuple_GetItem(args,ii); | |
28069 | } | |
28070 | if (argc == 2) { | |
28071 | int _v; | |
28072 | { | |
28073 | void *ptr; | |
15afbcd0 | 28074 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
28075 | _v = 0; |
28076 | PyErr_Clear(); | |
28077 | } else { | |
28078 | _v = 1; | |
28079 | } | |
28080 | } | |
28081 | if (_v) { | |
28082 | { | |
093d3ff1 | 28083 | void *ptr = 0; |
15afbcd0 | 28084 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
28085 | _v = 0; |
28086 | PyErr_Clear(); | |
28087 | } else { | |
093d3ff1 | 28088 | _v = (ptr != 0); |
d14a1e28 RD |
28089 | } |
28090 | } | |
28091 | if (_v) { | |
28092 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
28093 | } | |
28094 | } | |
28095 | } | |
28096 | if (argc == 2) { | |
28097 | int _v; | |
28098 | { | |
28099 | void *ptr; | |
15afbcd0 | 28100 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
28101 | _v = 0; |
28102 | PyErr_Clear(); | |
28103 | } else { | |
28104 | _v = 1; | |
28105 | } | |
28106 | } | |
28107 | if (_v) { | |
c32bde28 | 28108 | _v = SWIG_Check_int(argv[1]); |
d14a1e28 RD |
28109 | if (_v) { |
28110 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
28111 | } | |
28112 | } | |
28113 | } | |
28114 | ||
093d3ff1 RD |
28115 | Py_INCREF(Py_NotImplemented); |
28116 | return Py_NotImplemented; | |
d14a1e28 RD |
28117 | } |
28118 | ||
28119 | ||
c32bde28 | 28120 | static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28121 | PyObject *resultobj = NULL; |
d14a1e28 | 28122 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
093d3ff1 | 28123 | wxDataFormatId arg2 ; |
d14a1e28 | 28124 | PyObject * obj0 = 0 ; |
994141e6 | 28125 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28126 | char *kwnames[] = { |
28127 | (char *) "self",(char *) "format", NULL | |
28128 | }; | |
28129 | ||
994141e6 | 28130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
28132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28133 | { | |
32fe5131 | 28134 | arg2 = static_cast<wxDataFormatId >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28135 | if (SWIG_arg_fail(2)) SWIG_fail; |
28136 | } | |
d14a1e28 RD |
28137 | { |
28138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 28139 | (arg1)->SetType(arg2); |
d14a1e28 RD |
28140 | |
28141 | wxPyEndAllowThreads(__tstate); | |
28142 | if (PyErr_Occurred()) SWIG_fail; | |
28143 | } | |
28144 | Py_INCREF(Py_None); resultobj = Py_None; | |
28145 | return resultobj; | |
28146 | fail: | |
28147 | return NULL; | |
28148 | } | |
28149 | ||
28150 | ||
c32bde28 | 28151 | static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28152 | PyObject *resultobj = NULL; |
d14a1e28 | 28153 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
093d3ff1 | 28154 | wxDataFormatId result; |
d14a1e28 RD |
28155 | PyObject * obj0 = 0 ; |
28156 | char *kwnames[] = { | |
28157 | (char *) "self", NULL | |
28158 | }; | |
28159 | ||
28160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28161 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
28162 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28163 | { |
28164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 28165 | result = (wxDataFormatId)((wxDataFormat const *)arg1)->GetType(); |
d14a1e28 RD |
28166 | |
28167 | wxPyEndAllowThreads(__tstate); | |
28168 | if (PyErr_Occurred()) SWIG_fail; | |
28169 | } | |
093d3ff1 | 28170 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
28171 | return resultobj; |
28172 | fail: | |
28173 | return NULL; | |
28174 | } | |
28175 | ||
28176 | ||
c32bde28 | 28177 | static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28178 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28179 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
28180 | wxString result; | |
28181 | PyObject * obj0 = 0 ; | |
28182 | char *kwnames[] = { | |
28183 | (char *) "self", NULL | |
28184 | }; | |
28185 | ||
28186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
28188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28189 | { |
28190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28191 | result = ((wxDataFormat const *)arg1)->GetId(); | |
28192 | ||
28193 | wxPyEndAllowThreads(__tstate); | |
28194 | if (PyErr_Occurred()) SWIG_fail; | |
28195 | } | |
28196 | { | |
28197 | #if wxUSE_UNICODE | |
28198 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28199 | #else | |
28200 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28201 | #endif | |
28202 | } | |
28203 | return resultobj; | |
28204 | fail: | |
28205 | return NULL; | |
28206 | } | |
28207 | ||
28208 | ||
c32bde28 | 28209 | static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28210 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28211 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; |
28212 | wxString *arg2 = 0 ; | |
ae8162c8 | 28213 | bool temp2 = false ; |
d14a1e28 RD |
28214 | PyObject * obj0 = 0 ; |
28215 | PyObject * obj1 = 0 ; | |
28216 | char *kwnames[] = { | |
28217 | (char *) "self",(char *) "format", NULL | |
28218 | }; | |
28219 | ||
28220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
28222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28223 | { |
28224 | arg2 = wxString_in_helper(obj1); | |
28225 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28226 | temp2 = true; |
d14a1e28 RD |
28227 | } |
28228 | { | |
28229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28230 | (arg1)->SetId((wxString const &)*arg2); | |
28231 | ||
28232 | wxPyEndAllowThreads(__tstate); | |
28233 | if (PyErr_Occurred()) SWIG_fail; | |
28234 | } | |
28235 | Py_INCREF(Py_None); resultobj = Py_None; | |
28236 | { | |
28237 | if (temp2) | |
28238 | delete arg2; | |
28239 | } | |
28240 | return resultobj; | |
28241 | fail: | |
28242 | { | |
28243 | if (temp2) | |
28244 | delete arg2; | |
28245 | } | |
28246 | return NULL; | |
28247 | } | |
28248 | ||
28249 | ||
c32bde28 | 28250 | static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28251 | PyObject *obj; |
28252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28253 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
28254 | Py_INCREF(obj); | |
28255 | return Py_BuildValue((char *)""); | |
28256 | } | |
c32bde28 | 28257 | static int _wrap_FormatInvalid_set(PyObject *) { |
d14a1e28 RD |
28258 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); |
28259 | return 1; | |
28260 | } | |
28261 | ||
28262 | ||
093d3ff1 | 28263 | static PyObject *_wrap_FormatInvalid_get(void) { |
32fe5131 | 28264 | PyObject *pyobj = NULL; |
d14a1e28 | 28265 | |
15afbcd0 | 28266 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
28267 | return pyobj; |
28268 | } | |
28269 | ||
28270 | ||
c32bde28 | 28271 | static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28272 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28273 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
28274 | PyObject * obj0 = 0 ; | |
28275 | char *kwnames[] = { | |
28276 | (char *) "self", NULL | |
28277 | }; | |
28278 | ||
28279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28282 | { |
28283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28284 | delete arg1; | |
28285 | ||
28286 | wxPyEndAllowThreads(__tstate); | |
28287 | if (PyErr_Occurred()) SWIG_fail; | |
28288 | } | |
28289 | Py_INCREF(Py_None); resultobj = Py_None; | |
28290 | return resultobj; | |
28291 | fail: | |
28292 | return NULL; | |
28293 | } | |
28294 | ||
28295 | ||
c32bde28 | 28296 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28297 | PyObject *resultobj = NULL; |
d14a1e28 | 28298 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
093d3ff1 RD |
28299 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
28300 | SwigValueWrapper<wxDataFormat > result; | |
d14a1e28 | 28301 | PyObject * obj0 = 0 ; |
994141e6 | 28302 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28303 | char *kwnames[] = { |
28304 | (char *) "self",(char *) "dir", NULL | |
28305 | }; | |
28306 | ||
994141e6 | 28307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 28310 | if (obj1) { |
093d3ff1 | 28311 | { |
32fe5131 | 28312 | arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28313 | if (SWIG_arg_fail(2)) SWIG_fail; |
28314 | } | |
994141e6 | 28315 | } |
d14a1e28 RD |
28316 | { |
28317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 28318 | result = ((wxDataObject const *)arg1)->GetPreferredFormat(arg2); |
d14a1e28 RD |
28319 | |
28320 | wxPyEndAllowThreads(__tstate); | |
28321 | if (PyErr_Occurred()) SWIG_fail; | |
28322 | } | |
28323 | { | |
28324 | wxDataFormat * resultptr; | |
32fe5131 | 28325 | resultptr = new wxDataFormat(static_cast<wxDataFormat & >(result)); |
15afbcd0 | 28326 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
28327 | } |
28328 | return resultobj; | |
28329 | fail: | |
28330 | return NULL; | |
28331 | } | |
28332 | ||
28333 | ||
c32bde28 | 28334 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28335 | PyObject *resultobj = NULL; |
d14a1e28 | 28336 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
093d3ff1 | 28337 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
d14a1e28 RD |
28338 | size_t result; |
28339 | PyObject * obj0 = 0 ; | |
994141e6 | 28340 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28341 | char *kwnames[] = { |
28342 | (char *) "self",(char *) "dir", NULL | |
28343 | }; | |
28344 | ||
994141e6 | 28345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28346 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28347 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 28348 | if (obj1) { |
093d3ff1 | 28349 | { |
32fe5131 | 28350 | arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28351 | if (SWIG_arg_fail(2)) SWIG_fail; |
28352 | } | |
994141e6 | 28353 | } |
d14a1e28 RD |
28354 | { |
28355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 28356 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount(arg2); |
d14a1e28 RD |
28357 | |
28358 | wxPyEndAllowThreads(__tstate); | |
28359 | if (PyErr_Occurred()) SWIG_fail; | |
28360 | } | |
093d3ff1 | 28361 | { |
32fe5131 | 28362 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 28363 | } |
d14a1e28 RD |
28364 | return resultobj; |
28365 | fail: | |
28366 | return NULL; | |
28367 | } | |
28368 | ||
28369 | ||
c32bde28 | 28370 | static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28371 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28372 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
28373 | wxDataFormat *arg2 = 0 ; | |
093d3ff1 | 28374 | wxDataObject::Direction arg3 = (wxDataObject::Direction) wxDataObject::Get ; |
d14a1e28 RD |
28375 | bool result; |
28376 | PyObject * obj0 = 0 ; | |
28377 | PyObject * obj1 = 0 ; | |
994141e6 | 28378 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28379 | char *kwnames[] = { |
28380 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
28381 | }; | |
28382 | ||
994141e6 | 28383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
28384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28386 | { | |
28387 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28388 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28389 | if (arg2 == NULL) { | |
28390 | SWIG_null_ref("wxDataFormat"); | |
28391 | } | |
28392 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 28393 | } |
994141e6 | 28394 | if (obj2) { |
093d3ff1 | 28395 | { |
32fe5131 | 28396 | arg3 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj2)); |
093d3ff1 RD |
28397 | if (SWIG_arg_fail(3)) SWIG_fail; |
28398 | } | |
994141e6 | 28399 | } |
d14a1e28 RD |
28400 | { |
28401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 28402 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,arg3); |
d14a1e28 RD |
28403 | |
28404 | wxPyEndAllowThreads(__tstate); | |
28405 | if (PyErr_Occurred()) SWIG_fail; | |
28406 | } | |
4f89f6a3 RD |
28407 | { |
28408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28409 | } | |
d14a1e28 RD |
28410 | return resultobj; |
28411 | fail: | |
28412 | return NULL; | |
28413 | } | |
28414 | ||
28415 | ||
c32bde28 | 28416 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28417 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28418 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
28419 | wxDataFormat *arg2 = 0 ; | |
28420 | size_t result; | |
28421 | PyObject * obj0 = 0 ; | |
28422 | PyObject * obj1 = 0 ; | |
28423 | char *kwnames[] = { | |
28424 | (char *) "self",(char *) "format", NULL | |
28425 | }; | |
28426 | ||
28427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28430 | { | |
28431 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28432 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28433 | if (arg2 == NULL) { | |
28434 | SWIG_null_ref("wxDataFormat"); | |
28435 | } | |
28436 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28437 | } |
28438 | { | |
28439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28440 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
28441 | ||
28442 | wxPyEndAllowThreads(__tstate); | |
28443 | if (PyErr_Occurred()) SWIG_fail; | |
28444 | } | |
093d3ff1 | 28445 | { |
32fe5131 | 28446 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 28447 | } |
d14a1e28 RD |
28448 | return resultobj; |
28449 | fail: | |
28450 | return NULL; | |
28451 | } | |
28452 | ||
28453 | ||
c32bde28 | 28454 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28455 | PyObject *resultobj = NULL; |
d14a1e28 | 28456 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
093d3ff1 | 28457 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
1a10c483 | 28458 | PyObject *result; |
d14a1e28 RD |
28459 | PyObject * obj0 = 0 ; |
28460 | PyObject * obj1 = 0 ; | |
28461 | char *kwnames[] = { | |
1a10c483 | 28462 | (char *) "self",(char *) "dir", NULL |
d14a1e28 RD |
28463 | }; |
28464 | ||
1a10c483 | 28465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a10c483 | 28468 | if (obj1) { |
093d3ff1 | 28469 | { |
32fe5131 | 28470 | arg2 = static_cast<wxDataObject::Direction >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28471 | if (SWIG_arg_fail(2)) SWIG_fail; |
28472 | } | |
994141e6 | 28473 | } |
d14a1e28 RD |
28474 | { |
28475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 28476 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,arg2); |
d14a1e28 RD |
28477 | |
28478 | wxPyEndAllowThreads(__tstate); | |
28479 | if (PyErr_Occurred()) SWIG_fail; | |
28480 | } | |
1a10c483 | 28481 | resultobj = result; |
d14a1e28 RD |
28482 | return resultobj; |
28483 | fail: | |
28484 | return NULL; | |
28485 | } | |
28486 | ||
28487 | ||
c32bde28 | 28488 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28489 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28490 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
28491 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 28492 | PyObject *result; |
d14a1e28 RD |
28493 | PyObject * obj0 = 0 ; |
28494 | PyObject * obj1 = 0 ; | |
d14a1e28 | 28495 | char *kwnames[] = { |
1a10c483 | 28496 | (char *) "self",(char *) "format", NULL |
d14a1e28 RD |
28497 | }; |
28498 | ||
1a10c483 | 28499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28500 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28501 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28502 | { | |
28503 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28504 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28505 | if (arg2 == NULL) { | |
28506 | SWIG_null_ref("wxDataFormat"); | |
28507 | } | |
28508 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 28509 | } |
d14a1e28 RD |
28510 | { |
28511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 28512 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d14a1e28 RD |
28513 | |
28514 | wxPyEndAllowThreads(__tstate); | |
28515 | if (PyErr_Occurred()) SWIG_fail; | |
28516 | } | |
1a10c483 | 28517 | resultobj = result; |
d14a1e28 RD |
28518 | return resultobj; |
28519 | fail: | |
28520 | return NULL; | |
28521 | } | |
28522 | ||
28523 | ||
c32bde28 | 28524 | static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28525 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28526 | wxDataObject *arg1 = (wxDataObject *) 0 ; |
28527 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 28528 | PyObject *arg3 = (PyObject *) 0 ; |
d14a1e28 RD |
28529 | bool result; |
28530 | PyObject * obj0 = 0 ; | |
28531 | PyObject * obj1 = 0 ; | |
28532 | PyObject * obj2 = 0 ; | |
d14a1e28 | 28533 | char *kwnames[] = { |
1a10c483 | 28534 | (char *) "self",(char *) "format",(char *) "data", NULL |
d14a1e28 RD |
28535 | }; |
28536 | ||
1a10c483 | 28537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
28538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28540 | { | |
28541 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28542 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28543 | if (arg2 == NULL) { | |
28544 | SWIG_null_ref("wxDataFormat"); | |
28545 | } | |
28546 | if (SWIG_arg_fail(2)) SWIG_fail; | |
a41e16b6 | 28547 | } |
1a10c483 | 28548 | arg3 = obj2; |
d14a1e28 RD |
28549 | { |
28550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 28551 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d14a1e28 RD |
28552 | |
28553 | wxPyEndAllowThreads(__tstate); | |
28554 | if (PyErr_Occurred()) SWIG_fail; | |
28555 | } | |
4f89f6a3 RD |
28556 | { |
28557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28558 | } | |
d14a1e28 RD |
28559 | return resultobj; |
28560 | fail: | |
28561 | return NULL; | |
28562 | } | |
28563 | ||
28564 | ||
c32bde28 | 28565 | static PyObject * DataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28566 | PyObject *obj; |
28567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28568 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
28569 | Py_INCREF(obj); | |
28570 | return Py_BuildValue((char *)""); | |
28571 | } | |
c32bde28 | 28572 | static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28573 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28574 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; |
28575 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
28576 | wxDataObjectSimple *result; | |
28577 | PyObject * obj0 = 0 ; | |
28578 | char *kwnames[] = { | |
28579 | (char *) "format", NULL | |
28580 | }; | |
28581 | ||
28582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
28583 | if (obj0) { | |
093d3ff1 RD |
28584 | { |
28585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28587 | if (arg1 == NULL) { | |
28588 | SWIG_null_ref("wxDataFormat"); | |
28589 | } | |
28590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28591 | } |
28592 | } | |
28593 | { | |
28594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28595 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
28596 | ||
28597 | wxPyEndAllowThreads(__tstate); | |
28598 | if (PyErr_Occurred()) SWIG_fail; | |
28599 | } | |
15afbcd0 | 28600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); |
d14a1e28 RD |
28601 | return resultobj; |
28602 | fail: | |
28603 | return NULL; | |
28604 | } | |
28605 | ||
28606 | ||
c32bde28 | 28607 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28608 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28609 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; |
28610 | wxDataFormat *result; | |
28611 | PyObject * obj0 = 0 ; | |
28612 | char *kwnames[] = { | |
28613 | (char *) "self", NULL | |
28614 | }; | |
28615 | ||
28616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28617 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28618 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28619 | { |
28620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28621 | { | |
28622 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
28623 | result = (wxDataFormat *) &_result_ref; | |
28624 | } | |
28625 | ||
28626 | wxPyEndAllowThreads(__tstate); | |
28627 | if (PyErr_Occurred()) SWIG_fail; | |
28628 | } | |
15afbcd0 | 28629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
28630 | return resultobj; |
28631 | fail: | |
28632 | return NULL; | |
28633 | } | |
28634 | ||
28635 | ||
c32bde28 | 28636 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28637 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28638 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; |
28639 | wxDataFormat *arg2 = 0 ; | |
28640 | PyObject * obj0 = 0 ; | |
28641 | PyObject * obj1 = 0 ; | |
28642 | char *kwnames[] = { | |
28643 | (char *) "self",(char *) "format", NULL | |
28644 | }; | |
28645 | ||
28646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28647 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28649 | { | |
28650 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28651 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28652 | if (arg2 == NULL) { | |
28653 | SWIG_null_ref("wxDataFormat"); | |
28654 | } | |
28655 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28656 | } |
28657 | { | |
28658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28659 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
28660 | ||
28661 | wxPyEndAllowThreads(__tstate); | |
28662 | if (PyErr_Occurred()) SWIG_fail; | |
28663 | } | |
28664 | Py_INCREF(Py_None); resultobj = Py_None; | |
28665 | return resultobj; | |
28666 | fail: | |
28667 | return NULL; | |
28668 | } | |
28669 | ||
28670 | ||
c32bde28 | 28671 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28672 | PyObject *resultobj = NULL; |
1a10c483 RD |
28673 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; |
28674 | size_t result; | |
28675 | PyObject * obj0 = 0 ; | |
28676 | char *kwnames[] = { | |
28677 | (char *) "self", NULL | |
28678 | }; | |
28679 | ||
28680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28681 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28682 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a10c483 RD |
28683 | { |
28684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28685 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
28686 | ||
28687 | wxPyEndAllowThreads(__tstate); | |
28688 | if (PyErr_Occurred()) SWIG_fail; | |
28689 | } | |
093d3ff1 | 28690 | { |
32fe5131 | 28691 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 28692 | } |
1a10c483 RD |
28693 | return resultobj; |
28694 | fail: | |
28695 | return NULL; | |
28696 | } | |
28697 | ||
28698 | ||
c32bde28 | 28699 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28700 | PyObject *resultobj = NULL; |
1a10c483 RD |
28701 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; |
28702 | PyObject *result; | |
28703 | PyObject * obj0 = 0 ; | |
28704 | char *kwnames[] = { | |
28705 | (char *) "self", NULL | |
28706 | }; | |
28707 | ||
28708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28709 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28710 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a10c483 RD |
28711 | { |
28712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28713 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
28714 | ||
28715 | wxPyEndAllowThreads(__tstate); | |
28716 | if (PyErr_Occurred()) SWIG_fail; | |
28717 | } | |
28718 | resultobj = result; | |
28719 | return resultobj; | |
28720 | fail: | |
28721 | return NULL; | |
28722 | } | |
28723 | ||
28724 | ||
c32bde28 | 28725 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28726 | PyObject *resultobj = NULL; |
1a10c483 RD |
28727 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; |
28728 | PyObject *arg2 = (PyObject *) 0 ; | |
28729 | bool result; | |
28730 | PyObject * obj0 = 0 ; | |
28731 | PyObject * obj1 = 0 ; | |
28732 | char *kwnames[] = { | |
28733 | (char *) "self",(char *) "data", NULL | |
28734 | }; | |
28735 | ||
28736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a10c483 RD |
28739 | arg2 = obj1; |
28740 | { | |
28741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28742 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
28743 | ||
28744 | wxPyEndAllowThreads(__tstate); | |
28745 | if (PyErr_Occurred()) SWIG_fail; | |
28746 | } | |
28747 | { | |
28748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28749 | } | |
28750 | return resultobj; | |
28751 | fail: | |
28752 | return NULL; | |
28753 | } | |
28754 | ||
28755 | ||
c32bde28 | 28756 | static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28757 | PyObject *obj; |
28758 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28759 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
28760 | Py_INCREF(obj); | |
28761 | return Py_BuildValue((char *)""); | |
28762 | } | |
c32bde28 | 28763 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28764 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28765 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; |
28766 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
28767 | wxPyDataObjectSimple *result; | |
28768 | PyObject * obj0 = 0 ; | |
28769 | char *kwnames[] = { | |
28770 | (char *) "format", NULL | |
28771 | }; | |
28772 | ||
28773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
28774 | if (obj0) { | |
093d3ff1 RD |
28775 | { |
28776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28778 | if (arg1 == NULL) { | |
28779 | SWIG_null_ref("wxDataFormat"); | |
28780 | } | |
28781 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28782 | } |
28783 | } | |
28784 | { | |
28785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28786 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
28787 | ||
28788 | wxPyEndAllowThreads(__tstate); | |
28789 | if (PyErr_Occurred()) SWIG_fail; | |
28790 | } | |
15afbcd0 | 28791 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); |
d14a1e28 RD |
28792 | return resultobj; |
28793 | fail: | |
28794 | return NULL; | |
28795 | } | |
28796 | ||
28797 | ||
c32bde28 | 28798 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28799 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28800 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; |
28801 | PyObject *arg2 = (PyObject *) 0 ; | |
28802 | PyObject *arg3 = (PyObject *) 0 ; | |
28803 | PyObject * obj0 = 0 ; | |
28804 | PyObject * obj1 = 0 ; | |
28805 | PyObject * obj2 = 0 ; | |
28806 | char *kwnames[] = { | |
28807 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28808 | }; | |
28809 | ||
28810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28811 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
28812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28813 | arg2 = obj1; |
28814 | arg3 = obj2; | |
28815 | { | |
28816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28817 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28818 | ||
28819 | wxPyEndAllowThreads(__tstate); | |
28820 | if (PyErr_Occurred()) SWIG_fail; | |
28821 | } | |
28822 | Py_INCREF(Py_None); resultobj = Py_None; | |
28823 | return resultobj; | |
28824 | fail: | |
28825 | return NULL; | |
28826 | } | |
28827 | ||
28828 | ||
c32bde28 | 28829 | static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28830 | PyObject *obj; |
28831 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28832 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
28833 | Py_INCREF(obj); | |
28834 | return Py_BuildValue((char *)""); | |
28835 | } | |
c32bde28 | 28836 | static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28837 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28838 | wxDataObjectComposite *result; |
28839 | char *kwnames[] = { | |
28840 | NULL | |
28841 | }; | |
28842 | ||
28843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
28844 | { | |
28845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28846 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
28847 | ||
28848 | wxPyEndAllowThreads(__tstate); | |
28849 | if (PyErr_Occurred()) SWIG_fail; | |
28850 | } | |
15afbcd0 | 28851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); |
d14a1e28 RD |
28852 | return resultobj; |
28853 | fail: | |
28854 | return NULL; | |
28855 | } | |
28856 | ||
28857 | ||
c32bde28 | 28858 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28859 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28860 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; |
28861 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
ae8162c8 | 28862 | bool arg3 = (bool) false ; |
d14a1e28 RD |
28863 | PyObject * obj0 = 0 ; |
28864 | PyObject * obj1 = 0 ; | |
994141e6 | 28865 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28866 | char *kwnames[] = { |
28867 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
28868 | }; | |
28869 | ||
994141e6 | 28870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
28871 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectComposite, SWIG_POINTER_EXCEPTION | 0); |
28872 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28873 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28874 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 28875 | if (obj2) { |
093d3ff1 | 28876 | { |
32fe5131 | 28877 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
28878 | if (SWIG_arg_fail(3)) SWIG_fail; |
28879 | } | |
994141e6 | 28880 | } |
d14a1e28 RD |
28881 | { |
28882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28883 | (arg1)->Add(arg2,arg3); | |
28884 | ||
28885 | wxPyEndAllowThreads(__tstate); | |
28886 | if (PyErr_Occurred()) SWIG_fail; | |
28887 | } | |
28888 | Py_INCREF(Py_None); resultobj = Py_None; | |
28889 | return resultobj; | |
28890 | fail: | |
28891 | return NULL; | |
28892 | } | |
28893 | ||
28894 | ||
c32bde28 | 28895 | static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28896 | PyObject *obj; |
28897 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28898 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
28899 | Py_INCREF(obj); | |
28900 | return Py_BuildValue((char *)""); | |
28901 | } | |
c32bde28 | 28902 | static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28903 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28904 | wxString const &arg1_defvalue = wxPyEmptyString ; |
28905 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28906 | wxTextDataObject *result; | |
ae8162c8 | 28907 | bool temp1 = false ; |
d14a1e28 RD |
28908 | PyObject * obj0 = 0 ; |
28909 | char *kwnames[] = { | |
28910 | (char *) "text", NULL | |
28911 | }; | |
28912 | ||
28913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
28914 | if (obj0) { | |
28915 | { | |
28916 | arg1 = wxString_in_helper(obj0); | |
28917 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 28918 | temp1 = true; |
d14a1e28 RD |
28919 | } |
28920 | } | |
28921 | { | |
28922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28923 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
28924 | ||
28925 | wxPyEndAllowThreads(__tstate); | |
28926 | if (PyErr_Occurred()) SWIG_fail; | |
28927 | } | |
15afbcd0 | 28928 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); |
d14a1e28 RD |
28929 | { |
28930 | if (temp1) | |
28931 | delete arg1; | |
28932 | } | |
28933 | return resultobj; | |
28934 | fail: | |
28935 | { | |
28936 | if (temp1) | |
28937 | delete arg1; | |
28938 | } | |
28939 | return NULL; | |
28940 | } | |
28941 | ||
28942 | ||
c32bde28 | 28943 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28944 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28945 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; |
28946 | size_t result; | |
28947 | PyObject * obj0 = 0 ; | |
28948 | char *kwnames[] = { | |
28949 | (char *) "self", NULL | |
28950 | }; | |
28951 | ||
28952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
28954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28955 | { |
28956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28957 | result = (size_t)(arg1)->GetTextLength(); | |
28958 | ||
28959 | wxPyEndAllowThreads(__tstate); | |
28960 | if (PyErr_Occurred()) SWIG_fail; | |
28961 | } | |
093d3ff1 | 28962 | { |
32fe5131 | 28963 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 28964 | } |
d14a1e28 RD |
28965 | return resultobj; |
28966 | fail: | |
28967 | return NULL; | |
28968 | } | |
28969 | ||
28970 | ||
c32bde28 | 28971 | static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28972 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28973 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; |
28974 | wxString result; | |
28975 | PyObject * obj0 = 0 ; | |
28976 | char *kwnames[] = { | |
28977 | (char *) "self", NULL | |
28978 | }; | |
28979 | ||
28980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28981 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
28982 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28983 | { |
28984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28985 | result = (arg1)->GetText(); | |
28986 | ||
28987 | wxPyEndAllowThreads(__tstate); | |
28988 | if (PyErr_Occurred()) SWIG_fail; | |
28989 | } | |
28990 | { | |
28991 | #if wxUSE_UNICODE | |
28992 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28993 | #else | |
28994 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28995 | #endif | |
28996 | } | |
28997 | return resultobj; | |
28998 | fail: | |
28999 | return NULL; | |
29000 | } | |
29001 | ||
29002 | ||
c32bde28 | 29003 | static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29004 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29005 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; |
29006 | wxString *arg2 = 0 ; | |
ae8162c8 | 29007 | bool temp2 = false ; |
d14a1e28 RD |
29008 | PyObject * obj0 = 0 ; |
29009 | PyObject * obj1 = 0 ; | |
29010 | char *kwnames[] = { | |
29011 | (char *) "self",(char *) "text", NULL | |
29012 | }; | |
29013 | ||
29014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29015 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
29016 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29017 | { |
29018 | arg2 = wxString_in_helper(obj1); | |
29019 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29020 | temp2 = true; |
d14a1e28 RD |
29021 | } |
29022 | { | |
29023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29024 | (arg1)->SetText((wxString const &)*arg2); | |
29025 | ||
29026 | wxPyEndAllowThreads(__tstate); | |
29027 | if (PyErr_Occurred()) SWIG_fail; | |
29028 | } | |
29029 | Py_INCREF(Py_None); resultobj = Py_None; | |
29030 | { | |
29031 | if (temp2) | |
29032 | delete arg2; | |
29033 | } | |
29034 | return resultobj; | |
29035 | fail: | |
29036 | { | |
29037 | if (temp2) | |
29038 | delete arg2; | |
29039 | } | |
29040 | return NULL; | |
29041 | } | |
29042 | ||
29043 | ||
c32bde28 | 29044 | static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29045 | PyObject *obj; |
29046 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29047 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
29048 | Py_INCREF(obj); | |
29049 | return Py_BuildValue((char *)""); | |
29050 | } | |
c32bde28 | 29051 | static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29052 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29053 | wxString const &arg1_defvalue = wxPyEmptyString ; |
29054 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
29055 | wxPyTextDataObject *result; | |
ae8162c8 | 29056 | bool temp1 = false ; |
d14a1e28 RD |
29057 | PyObject * obj0 = 0 ; |
29058 | char *kwnames[] = { | |
29059 | (char *) "text", NULL | |
29060 | }; | |
29061 | ||
29062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
29063 | if (obj0) { | |
29064 | { | |
29065 | arg1 = wxString_in_helper(obj0); | |
29066 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29067 | temp1 = true; |
d14a1e28 RD |
29068 | } |
29069 | } | |
29070 | { | |
29071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29072 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
29073 | ||
29074 | wxPyEndAllowThreads(__tstate); | |
29075 | if (PyErr_Occurred()) SWIG_fail; | |
29076 | } | |
15afbcd0 | 29077 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); |
d14a1e28 RD |
29078 | { |
29079 | if (temp1) | |
29080 | delete arg1; | |
29081 | } | |
29082 | return resultobj; | |
29083 | fail: | |
29084 | { | |
29085 | if (temp1) | |
29086 | delete arg1; | |
29087 | } | |
29088 | return NULL; | |
29089 | } | |
29090 | ||
29091 | ||
c32bde28 | 29092 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29093 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29094 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; |
29095 | PyObject *arg2 = (PyObject *) 0 ; | |
29096 | PyObject *arg3 = (PyObject *) 0 ; | |
29097 | PyObject * obj0 = 0 ; | |
29098 | PyObject * obj1 = 0 ; | |
29099 | PyObject * obj2 = 0 ; | |
29100 | char *kwnames[] = { | |
29101 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29102 | }; | |
29103 | ||
29104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29105 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
29106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29107 | arg2 = obj1; |
29108 | arg3 = obj2; | |
29109 | { | |
29110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29111 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29112 | ||
29113 | wxPyEndAllowThreads(__tstate); | |
29114 | if (PyErr_Occurred()) SWIG_fail; | |
29115 | } | |
29116 | Py_INCREF(Py_None); resultobj = Py_None; | |
29117 | return resultobj; | |
29118 | fail: | |
29119 | return NULL; | |
29120 | } | |
29121 | ||
29122 | ||
c32bde28 | 29123 | static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29124 | PyObject *obj; |
29125 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29126 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
29127 | Py_INCREF(obj); | |
29128 | return Py_BuildValue((char *)""); | |
29129 | } | |
c32bde28 | 29130 | static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29131 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29132 | wxBitmap const &arg1_defvalue = wxNullBitmap ; |
29133 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
29134 | wxBitmapDataObject *result; | |
29135 | PyObject * obj0 = 0 ; | |
29136 | char *kwnames[] = { | |
29137 | (char *) "bitmap", NULL | |
29138 | }; | |
29139 | ||
29140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
29141 | if (obj0) { | |
093d3ff1 RD |
29142 | { |
29143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
29144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29145 | if (arg1 == NULL) { | |
29146 | SWIG_null_ref("wxBitmap"); | |
29147 | } | |
29148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29149 | } |
29150 | } | |
29151 | { | |
29152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29153 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
29154 | ||
29155 | wxPyEndAllowThreads(__tstate); | |
29156 | if (PyErr_Occurred()) SWIG_fail; | |
29157 | } | |
15afbcd0 | 29158 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); |
d14a1e28 RD |
29159 | return resultobj; |
29160 | fail: | |
29161 | return NULL; | |
29162 | } | |
29163 | ||
29164 | ||
c32bde28 | 29165 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29166 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29167 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; |
29168 | wxBitmap result; | |
29169 | PyObject * obj0 = 0 ; | |
29170 | char *kwnames[] = { | |
29171 | (char *) "self", NULL | |
29172 | }; | |
29173 | ||
29174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
29176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29177 | { |
29178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29179 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
29180 | ||
29181 | wxPyEndAllowThreads(__tstate); | |
29182 | if (PyErr_Occurred()) SWIG_fail; | |
29183 | } | |
29184 | { | |
29185 | wxBitmap * resultptr; | |
32fe5131 | 29186 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 29187 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
29188 | } |
29189 | return resultobj; | |
29190 | fail: | |
29191 | return NULL; | |
29192 | } | |
29193 | ||
29194 | ||
c32bde28 | 29195 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29196 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29197 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; |
29198 | wxBitmap *arg2 = 0 ; | |
29199 | PyObject * obj0 = 0 ; | |
29200 | PyObject * obj1 = 0 ; | |
29201 | char *kwnames[] = { | |
29202 | (char *) "self",(char *) "bitmap", NULL | |
29203 | }; | |
29204 | ||
29205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29206 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
29207 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29208 | { | |
29209 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
29210 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29211 | if (arg2 == NULL) { | |
29212 | SWIG_null_ref("wxBitmap"); | |
29213 | } | |
29214 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29215 | } |
29216 | { | |
29217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29218 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
29219 | ||
29220 | wxPyEndAllowThreads(__tstate); | |
29221 | if (PyErr_Occurred()) SWIG_fail; | |
29222 | } | |
29223 | Py_INCREF(Py_None); resultobj = Py_None; | |
29224 | return resultobj; | |
29225 | fail: | |
29226 | return NULL; | |
29227 | } | |
29228 | ||
29229 | ||
c32bde28 | 29230 | static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29231 | PyObject *obj; |
29232 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29233 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
29234 | Py_INCREF(obj); | |
29235 | return Py_BuildValue((char *)""); | |
29236 | } | |
c32bde28 | 29237 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29238 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29239 | wxBitmap const &arg1_defvalue = wxNullBitmap ; |
29240 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
29241 | wxPyBitmapDataObject *result; | |
29242 | PyObject * obj0 = 0 ; | |
29243 | char *kwnames[] = { | |
29244 | (char *) "bitmap", NULL | |
29245 | }; | |
29246 | ||
29247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
29248 | if (obj0) { | |
093d3ff1 RD |
29249 | { |
29250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
29251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29252 | if (arg1 == NULL) { | |
29253 | SWIG_null_ref("wxBitmap"); | |
29254 | } | |
29255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29256 | } |
29257 | } | |
29258 | { | |
29259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29260 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
29261 | ||
29262 | wxPyEndAllowThreads(__tstate); | |
29263 | if (PyErr_Occurred()) SWIG_fail; | |
29264 | } | |
15afbcd0 | 29265 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); |
d14a1e28 RD |
29266 | return resultobj; |
29267 | fail: | |
29268 | return NULL; | |
29269 | } | |
29270 | ||
29271 | ||
c32bde28 | 29272 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29273 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29274 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; |
29275 | PyObject *arg2 = (PyObject *) 0 ; | |
29276 | PyObject *arg3 = (PyObject *) 0 ; | |
29277 | PyObject * obj0 = 0 ; | |
29278 | PyObject * obj1 = 0 ; | |
29279 | PyObject * obj2 = 0 ; | |
29280 | char *kwnames[] = { | |
29281 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29282 | }; | |
29283 | ||
29284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
29286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29287 | arg2 = obj1; |
29288 | arg3 = obj2; | |
29289 | { | |
29290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29291 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29292 | ||
29293 | wxPyEndAllowThreads(__tstate); | |
29294 | if (PyErr_Occurred()) SWIG_fail; | |
29295 | } | |
29296 | Py_INCREF(Py_None); resultobj = Py_None; | |
29297 | return resultobj; | |
29298 | fail: | |
29299 | return NULL; | |
29300 | } | |
29301 | ||
29302 | ||
c32bde28 | 29303 | static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29304 | PyObject *obj; |
29305 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29306 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
29307 | Py_INCREF(obj); | |
29308 | return Py_BuildValue((char *)""); | |
29309 | } | |
c32bde28 | 29310 | static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29311 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29312 | wxFileDataObject *result; |
29313 | char *kwnames[] = { | |
29314 | NULL | |
29315 | }; | |
29316 | ||
29317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
29318 | { | |
29319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29320 | result = (wxFileDataObject *)new wxFileDataObject(); | |
29321 | ||
29322 | wxPyEndAllowThreads(__tstate); | |
29323 | if (PyErr_Occurred()) SWIG_fail; | |
29324 | } | |
15afbcd0 | 29325 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); |
d14a1e28 RD |
29326 | return resultobj; |
29327 | fail: | |
29328 | return NULL; | |
29329 | } | |
29330 | ||
29331 | ||
c32bde28 | 29332 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29333 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29334 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; |
29335 | wxArrayString *result; | |
29336 | PyObject * obj0 = 0 ; | |
29337 | char *kwnames[] = { | |
29338 | (char *) "self", NULL | |
29339 | }; | |
29340 | ||
29341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0); |
29343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29344 | { |
29345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29346 | { | |
29347 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
29348 | result = (wxArrayString *) &_result_ref; | |
29349 | } | |
29350 | ||
29351 | wxPyEndAllowThreads(__tstate); | |
29352 | if (PyErr_Occurred()) SWIG_fail; | |
29353 | } | |
29354 | { | |
29355 | resultobj = wxArrayString2PyList_helper(*result); | |
29356 | } | |
29357 | return resultobj; | |
29358 | fail: | |
29359 | return NULL; | |
29360 | } | |
29361 | ||
29362 | ||
c32bde28 | 29363 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29364 | PyObject *resultobj = NULL; |
15afbcd0 RD |
29365 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; |
29366 | wxString *arg2 = 0 ; | |
ae8162c8 | 29367 | bool temp2 = false ; |
15afbcd0 RD |
29368 | PyObject * obj0 = 0 ; |
29369 | PyObject * obj1 = 0 ; | |
29370 | char *kwnames[] = { | |
29371 | (char *) "self",(char *) "filename", NULL | |
29372 | }; | |
29373 | ||
29374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29375 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0); |
29376 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15afbcd0 RD |
29377 | { |
29378 | arg2 = wxString_in_helper(obj1); | |
29379 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29380 | temp2 = true; |
15afbcd0 RD |
29381 | } |
29382 | { | |
29383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29384 | (arg1)->AddFile((wxString const &)*arg2); | |
29385 | ||
29386 | wxPyEndAllowThreads(__tstate); | |
29387 | if (PyErr_Occurred()) SWIG_fail; | |
29388 | } | |
29389 | Py_INCREF(Py_None); resultobj = Py_None; | |
29390 | { | |
29391 | if (temp2) | |
29392 | delete arg2; | |
29393 | } | |
29394 | return resultobj; | |
29395 | fail: | |
29396 | { | |
29397 | if (temp2) | |
29398 | delete arg2; | |
29399 | } | |
29400 | return NULL; | |
29401 | } | |
29402 | ||
29403 | ||
c32bde28 | 29404 | static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29405 | PyObject *obj; |
29406 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29407 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
29408 | Py_INCREF(obj); | |
29409 | return Py_BuildValue((char *)""); | |
29410 | } | |
7557b9b5 | 29411 | static PyObject *_wrap_new_CustomDataObject__SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 29412 | PyObject *resultobj = NULL; |
7557b9b5 | 29413 | wxDataFormat *arg1 = 0 ; |
d14a1e28 RD |
29414 | wxCustomDataObject *result; |
29415 | PyObject * obj0 = 0 ; | |
d14a1e28 | 29416 | |
7557b9b5 RD |
29417 | if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail; |
29418 | { | |
29419 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
29420 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29421 | if (arg1 == NULL) { | |
29422 | SWIG_null_ref("wxDataFormat"); | |
d14a1e28 | 29423 | } |
7557b9b5 | 29424 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 RD |
29425 | } |
29426 | { | |
29427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29428 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
29429 | ||
29430 | wxPyEndAllowThreads(__tstate); | |
29431 | if (PyErr_Occurred()) SWIG_fail; | |
29432 | } | |
15afbcd0 | 29433 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); |
d14a1e28 RD |
29434 | return resultobj; |
29435 | fail: | |
29436 | return NULL; | |
29437 | } | |
29438 | ||
29439 | ||
7557b9b5 | 29440 | static PyObject *_wrap_new_CustomDataObject__SWIG_1(PyObject *, PyObject *args) { |
32fe5131 | 29441 | PyObject *resultobj = NULL; |
7557b9b5 RD |
29442 | wxString *arg1 = 0 ; |
29443 | wxCustomDataObject *result; | |
29444 | bool temp1 = false ; | |
29445 | PyObject * obj0 = 0 ; | |
29446 | ||
29447 | if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail; | |
29448 | { | |
29449 | arg1 = wxString_in_helper(obj0); | |
29450 | if (arg1 == NULL) SWIG_fail; | |
29451 | temp1 = true; | |
29452 | } | |
29453 | { | |
29454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29455 | result = (wxCustomDataObject *)new_wxCustomDataObject__SWIG_1((wxString const &)*arg1); | |
29456 | ||
29457 | wxPyEndAllowThreads(__tstate); | |
29458 | if (PyErr_Occurred()) SWIG_fail; | |
29459 | } | |
29460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
29461 | { | |
29462 | if (temp1) | |
29463 | delete arg1; | |
29464 | } | |
29465 | return resultobj; | |
29466 | fail: | |
29467 | { | |
29468 | if (temp1) | |
29469 | delete arg1; | |
29470 | } | |
29471 | return NULL; | |
29472 | } | |
29473 | ||
29474 | ||
29475 | static PyObject *_wrap_new_CustomDataObject__SWIG_2(PyObject *, PyObject *args) { | |
32fe5131 | 29476 | PyObject *resultobj = NULL; |
7557b9b5 RD |
29477 | wxCustomDataObject *result; |
29478 | ||
29479 | if(!PyArg_ParseTuple(args,(char *)":new_CustomDataObject")) goto fail; | |
29480 | { | |
29481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29482 | result = (wxCustomDataObject *)new wxCustomDataObject(); | |
29483 | ||
29484 | wxPyEndAllowThreads(__tstate); | |
29485 | if (PyErr_Occurred()) SWIG_fail; | |
29486 | } | |
29487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
29488 | return resultobj; | |
29489 | fail: | |
29490 | return NULL; | |
29491 | } | |
29492 | ||
29493 | ||
29494 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args) { | |
29495 | int argc; | |
29496 | PyObject *argv[2]; | |
29497 | int ii; | |
29498 | ||
29499 | argc = PyObject_Length(args); | |
29500 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
29501 | argv[ii] = PyTuple_GetItem(args,ii); | |
29502 | } | |
29503 | if (argc == 0) { | |
29504 | return _wrap_new_CustomDataObject__SWIG_2(self,args); | |
29505 | } | |
29506 | if (argc == 1) { | |
29507 | int _v; | |
29508 | { | |
29509 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
29510 | } | |
29511 | if (_v) { | |
29512 | return _wrap_new_CustomDataObject__SWIG_1(self,args); | |
29513 | } | |
29514 | } | |
29515 | if (argc == 1) { | |
29516 | int _v; | |
29517 | { | |
29518 | void *ptr = 0; | |
29519 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
29520 | _v = 0; | |
29521 | PyErr_Clear(); | |
29522 | } else { | |
29523 | _v = (ptr != 0); | |
29524 | } | |
29525 | } | |
29526 | if (_v) { | |
29527 | return _wrap_new_CustomDataObject__SWIG_0(self,args); | |
29528 | } | |
29529 | } | |
29530 | ||
29531 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_CustomDataObject'"); | |
29532 | return NULL; | |
29533 | } | |
29534 | ||
29535 | ||
c32bde28 | 29536 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29537 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29538 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; |
29539 | PyObject *arg2 = (PyObject *) 0 ; | |
29540 | bool result; | |
29541 | PyObject * obj0 = 0 ; | |
29542 | PyObject * obj1 = 0 ; | |
29543 | char *kwnames[] = { | |
29544 | (char *) "self",(char *) "data", NULL | |
29545 | }; | |
29546 | ||
29547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
29549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29550 | arg2 = obj1; |
29551 | { | |
29552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29553 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
29554 | ||
29555 | wxPyEndAllowThreads(__tstate); | |
29556 | if (PyErr_Occurred()) SWIG_fail; | |
29557 | } | |
4f89f6a3 RD |
29558 | { |
29559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29560 | } | |
d14a1e28 RD |
29561 | return resultobj; |
29562 | fail: | |
29563 | return NULL; | |
29564 | } | |
29565 | ||
29566 | ||
c32bde28 | 29567 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29568 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29569 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; |
29570 | size_t result; | |
29571 | PyObject * obj0 = 0 ; | |
29572 | char *kwnames[] = { | |
29573 | (char *) "self", NULL | |
29574 | }; | |
29575 | ||
29576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29577 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
29578 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29579 | { |
29580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29581 | result = (size_t)(arg1)->GetSize(); | |
29582 | ||
29583 | wxPyEndAllowThreads(__tstate); | |
29584 | if (PyErr_Occurred()) SWIG_fail; | |
29585 | } | |
093d3ff1 | 29586 | { |
32fe5131 | 29587 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 29588 | } |
d14a1e28 RD |
29589 | return resultobj; |
29590 | fail: | |
29591 | return NULL; | |
29592 | } | |
29593 | ||
29594 | ||
c32bde28 | 29595 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29596 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29597 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; |
29598 | PyObject *result; | |
29599 | PyObject * obj0 = 0 ; | |
29600 | char *kwnames[] = { | |
29601 | (char *) "self", NULL | |
29602 | }; | |
29603 | ||
29604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
29606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29607 | { |
29608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29609 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
29610 | ||
29611 | wxPyEndAllowThreads(__tstate); | |
29612 | if (PyErr_Occurred()) SWIG_fail; | |
29613 | } | |
29614 | resultobj = result; | |
29615 | return resultobj; | |
29616 | fail: | |
29617 | return NULL; | |
29618 | } | |
29619 | ||
29620 | ||
c32bde28 | 29621 | static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29622 | PyObject *obj; |
29623 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29624 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
29625 | Py_INCREF(obj); | |
29626 | return Py_BuildValue((char *)""); | |
29627 | } | |
c32bde28 | 29628 | static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29629 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29630 | wxURLDataObject *result; |
29631 | char *kwnames[] = { | |
29632 | NULL | |
29633 | }; | |
29634 | ||
29635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
29636 | { | |
29637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29638 | result = (wxURLDataObject *)new wxURLDataObject(); | |
29639 | ||
29640 | wxPyEndAllowThreads(__tstate); | |
29641 | if (PyErr_Occurred()) SWIG_fail; | |
29642 | } | |
15afbcd0 | 29643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); |
d14a1e28 RD |
29644 | return resultobj; |
29645 | fail: | |
29646 | return NULL; | |
29647 | } | |
29648 | ||
29649 | ||
c32bde28 | 29650 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29651 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29652 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; |
29653 | wxString result; | |
29654 | PyObject * obj0 = 0 ; | |
29655 | char *kwnames[] = { | |
29656 | (char *) "self", NULL | |
29657 | }; | |
29658 | ||
29659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0); |
29661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29662 | { |
29663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29664 | result = (arg1)->GetURL(); | |
29665 | ||
29666 | wxPyEndAllowThreads(__tstate); | |
29667 | if (PyErr_Occurred()) SWIG_fail; | |
29668 | } | |
29669 | { | |
29670 | #if wxUSE_UNICODE | |
29671 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29672 | #else | |
29673 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29674 | #endif | |
29675 | } | |
29676 | return resultobj; | |
29677 | fail: | |
29678 | return NULL; | |
29679 | } | |
29680 | ||
29681 | ||
c32bde28 | 29682 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29683 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29684 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; |
29685 | wxString *arg2 = 0 ; | |
ae8162c8 | 29686 | bool temp2 = false ; |
d14a1e28 RD |
29687 | PyObject * obj0 = 0 ; |
29688 | PyObject * obj1 = 0 ; | |
29689 | char *kwnames[] = { | |
29690 | (char *) "self",(char *) "url", NULL | |
29691 | }; | |
29692 | ||
29693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29694 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0); |
29695 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29696 | { |
29697 | arg2 = wxString_in_helper(obj1); | |
29698 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29699 | temp2 = true; |
d14a1e28 RD |
29700 | } |
29701 | { | |
29702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29703 | (arg1)->SetURL((wxString const &)*arg2); | |
29704 | ||
29705 | wxPyEndAllowThreads(__tstate); | |
29706 | if (PyErr_Occurred()) SWIG_fail; | |
29707 | } | |
29708 | Py_INCREF(Py_None); resultobj = Py_None; | |
29709 | { | |
29710 | if (temp2) | |
29711 | delete arg2; | |
29712 | } | |
29713 | return resultobj; | |
29714 | fail: | |
29715 | { | |
29716 | if (temp2) | |
29717 | delete arg2; | |
29718 | } | |
29719 | return NULL; | |
29720 | } | |
29721 | ||
29722 | ||
c32bde28 | 29723 | static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29724 | PyObject *obj; |
29725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29726 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
29727 | Py_INCREF(obj); | |
29728 | return Py_BuildValue((char *)""); | |
29729 | } | |
c32bde28 | 29730 | static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29731 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29732 | wxMetafileDataObject *result; |
29733 | char *kwnames[] = { | |
29734 | NULL | |
29735 | }; | |
29736 | ||
29737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
29738 | { | |
29739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29740 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
29741 | ||
29742 | wxPyEndAllowThreads(__tstate); | |
29743 | if (PyErr_Occurred()) SWIG_fail; | |
29744 | } | |
15afbcd0 | 29745 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); |
d14a1e28 RD |
29746 | return resultobj; |
29747 | fail: | |
29748 | return NULL; | |
29749 | } | |
29750 | ||
29751 | ||
c32bde28 | 29752 | static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29753 | PyObject *obj; |
29754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29755 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
29756 | Py_INCREF(obj); | |
29757 | return Py_BuildValue((char *)""); | |
29758 | } | |
c32bde28 | 29759 | static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29760 | PyObject *resultobj = NULL; |
093d3ff1 | 29761 | wxDragResult arg1 ; |
d14a1e28 | 29762 | bool result; |
994141e6 | 29763 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
29764 | char *kwnames[] = { |
29765 | (char *) "res", NULL | |
29766 | }; | |
29767 | ||
994141e6 | 29768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; |
093d3ff1 | 29769 | { |
32fe5131 | 29770 | arg1 = static_cast<wxDragResult >(SWIG_As_int(obj0)); |
093d3ff1 RD |
29771 | if (SWIG_arg_fail(1)) SWIG_fail; |
29772 | } | |
d14a1e28 RD |
29773 | { |
29774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 29775 | result = (bool)wxIsDragResultOk(arg1); |
d14a1e28 RD |
29776 | |
29777 | wxPyEndAllowThreads(__tstate); | |
29778 | if (PyErr_Occurred()) SWIG_fail; | |
29779 | } | |
4f89f6a3 RD |
29780 | { |
29781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29782 | } | |
d14a1e28 RD |
29783 | return resultobj; |
29784 | fail: | |
29785 | return NULL; | |
29786 | } | |
29787 | ||
29788 | ||
c32bde28 | 29789 | static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29790 | PyObject *resultobj = NULL; |
d1e20054 | 29791 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
29792 | wxIcon const &arg2_defvalue = wxNullIcon ; |
29793 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
29794 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
29795 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
29796 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
29797 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
29798 | wxPyDropSource *result; | |
29799 | PyObject * obj0 = 0 ; | |
29800 | PyObject * obj1 = 0 ; | |
29801 | PyObject * obj2 = 0 ; | |
29802 | PyObject * obj3 = 0 ; | |
29803 | char *kwnames[] = { | |
29804 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
29805 | }; | |
29806 | ||
d1e20054 | 29807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
29808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 29810 | if (obj1) { |
093d3ff1 RD |
29811 | { |
29812 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
29813 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29814 | if (arg2 == NULL) { | |
29815 | SWIG_null_ref("wxIcon"); | |
29816 | } | |
29817 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29818 | } |
29819 | } | |
29820 | if (obj2) { | |
093d3ff1 RD |
29821 | { |
29822 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
29823 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29824 | if (arg3 == NULL) { | |
29825 | SWIG_null_ref("wxIcon"); | |
29826 | } | |
29827 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
29828 | } |
29829 | } | |
29830 | if (obj3) { | |
093d3ff1 RD |
29831 | { |
29832 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
29833 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29834 | if (arg4 == NULL) { | |
29835 | SWIG_null_ref("wxIcon"); | |
29836 | } | |
29837 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
29838 | } |
29839 | } | |
29840 | { | |
29841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29842 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
29843 | ||
29844 | wxPyEndAllowThreads(__tstate); | |
29845 | if (PyErr_Occurred()) SWIG_fail; | |
29846 | } | |
15afbcd0 | 29847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); |
d14a1e28 RD |
29848 | return resultobj; |
29849 | fail: | |
29850 | return NULL; | |
29851 | } | |
29852 | ||
29853 | ||
c32bde28 | 29854 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29855 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29856 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
29857 | PyObject *arg2 = (PyObject *) 0 ; | |
29858 | PyObject *arg3 = (PyObject *) 0 ; | |
29859 | int arg4 ; | |
29860 | PyObject * obj0 = 0 ; | |
29861 | PyObject * obj1 = 0 ; | |
29862 | PyObject * obj2 = 0 ; | |
994141e6 | 29863 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
29864 | char *kwnames[] = { |
29865 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
29866 | }; | |
29867 | ||
994141e6 | 29868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) 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; | |
d14a1e28 RD |
29871 | arg2 = obj1; |
29872 | arg3 = obj2; | |
093d3ff1 | 29873 | { |
32fe5131 | 29874 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
29875 | if (SWIG_arg_fail(4)) SWIG_fail; |
29876 | } | |
d14a1e28 RD |
29877 | { |
29878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29879 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
29880 | ||
29881 | wxPyEndAllowThreads(__tstate); | |
29882 | if (PyErr_Occurred()) SWIG_fail; | |
29883 | } | |
29884 | Py_INCREF(Py_None); resultobj = Py_None; | |
29885 | return resultobj; | |
29886 | fail: | |
29887 | return NULL; | |
29888 | } | |
29889 | ||
29890 | ||
c32bde28 | 29891 | static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29892 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29893 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
29894 | PyObject * obj0 = 0 ; | |
29895 | char *kwnames[] = { | |
29896 | (char *) "self", NULL | |
29897 | }; | |
29898 | ||
29899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29900 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
29901 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29902 | { |
29903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29904 | delete arg1; | |
29905 | ||
29906 | wxPyEndAllowThreads(__tstate); | |
29907 | if (PyErr_Occurred()) SWIG_fail; | |
29908 | } | |
29909 | Py_INCREF(Py_None); resultobj = Py_None; | |
29910 | return resultobj; | |
29911 | fail: | |
29912 | return NULL; | |
29913 | } | |
29914 | ||
29915 | ||
c32bde28 | 29916 | static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29917 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29918 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
29919 | wxDataObject *arg2 = 0 ; | |
29920 | PyObject * obj0 = 0 ; | |
29921 | PyObject * obj1 = 0 ; | |
29922 | char *kwnames[] = { | |
29923 | (char *) "self",(char *) "data", NULL | |
29924 | }; | |
29925 | ||
29926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29927 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
29928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 29929 | { |
093d3ff1 RD |
29930 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
29931 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29932 | if (arg2 == NULL) { | |
29933 | SWIG_null_ref("wxDataObject"); | |
29934 | } | |
29935 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29936 | } | |
29937 | { | |
29938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 RD |
29939 | (arg1)->SetData(*arg2); |
29940 | ||
29941 | wxPyEndAllowThreads(__tstate); | |
29942 | if (PyErr_Occurred()) SWIG_fail; | |
29943 | } | |
29944 | Py_INCREF(Py_None); resultobj = Py_None; | |
29945 | return resultobj; | |
29946 | fail: | |
29947 | return NULL; | |
29948 | } | |
29949 | ||
29950 | ||
c32bde28 | 29951 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29952 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29953 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
29954 | wxDataObject *result; | |
29955 | PyObject * obj0 = 0 ; | |
29956 | char *kwnames[] = { | |
29957 | (char *) "self", NULL | |
29958 | }; | |
29959 | ||
29960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
29962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29963 | { |
29964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29965 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
29966 | ||
29967 | wxPyEndAllowThreads(__tstate); | |
29968 | if (PyErr_Occurred()) SWIG_fail; | |
29969 | } | |
15afbcd0 | 29970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
29971 | return resultobj; |
29972 | fail: | |
29973 | return NULL; | |
29974 | } | |
29975 | ||
29976 | ||
c32bde28 | 29977 | static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29978 | PyObject *resultobj = NULL; |
d14a1e28 | 29979 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
093d3ff1 | 29980 | wxDragResult arg2 ; |
d14a1e28 RD |
29981 | wxCursor *arg3 = 0 ; |
29982 | PyObject * obj0 = 0 ; | |
994141e6 | 29983 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29984 | PyObject * obj2 = 0 ; |
29985 | char *kwnames[] = { | |
29986 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
29987 | }; | |
29988 | ||
994141e6 | 29989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
29990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
29991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29992 | { | |
32fe5131 | 29993 | arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1)); |
093d3ff1 RD |
29994 | if (SWIG_arg_fail(2)) SWIG_fail; |
29995 | } | |
29996 | { | |
29997 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
29998 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29999 | if (arg3 == NULL) { | |
30000 | SWIG_null_ref("wxCursor"); | |
30001 | } | |
30002 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
30003 | } |
30004 | { | |
30005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 30006 | (arg1)->SetCursor(arg2,(wxCursor const &)*arg3); |
d14a1e28 RD |
30007 | |
30008 | wxPyEndAllowThreads(__tstate); | |
30009 | if (PyErr_Occurred()) SWIG_fail; | |
30010 | } | |
30011 | Py_INCREF(Py_None); resultobj = Py_None; | |
30012 | return resultobj; | |
30013 | fail: | |
30014 | return NULL; | |
30015 | } | |
30016 | ||
30017 | ||
c32bde28 | 30018 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30019 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30020 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
30021 | int arg2 = (int) wxDrag_CopyOnly ; | |
093d3ff1 | 30022 | wxDragResult result; |
d14a1e28 | 30023 | PyObject * obj0 = 0 ; |
994141e6 | 30024 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30025 | char *kwnames[] = { |
30026 | (char *) "self",(char *) "flags", NULL | |
30027 | }; | |
30028 | ||
994141e6 | 30029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
30031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 30032 | if (obj1) { |
093d3ff1 | 30033 | { |
32fe5131 | 30034 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30035 | if (SWIG_arg_fail(2)) SWIG_fail; |
30036 | } | |
994141e6 | 30037 | } |
d14a1e28 RD |
30038 | { |
30039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 30040 | result = (wxDragResult)(arg1)->DoDragDrop(arg2); |
d14a1e28 RD |
30041 | |
30042 | wxPyEndAllowThreads(__tstate); | |
30043 | if (PyErr_Occurred()) SWIG_fail; | |
30044 | } | |
093d3ff1 | 30045 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30046 | return resultobj; |
30047 | fail: | |
30048 | return NULL; | |
30049 | } | |
30050 | ||
30051 | ||
c26d9ab4 | 30052 | static PyObject *_wrap_DropSource_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30053 | PyObject *resultobj = NULL; |
d14a1e28 | 30054 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; |
093d3ff1 | 30055 | wxDragResult arg2 ; |
d14a1e28 RD |
30056 | bool result; |
30057 | PyObject * obj0 = 0 ; | |
994141e6 | 30058 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30059 | char *kwnames[] = { |
30060 | (char *) "self",(char *) "effect", NULL | |
30061 | }; | |
30062 | ||
c26d9ab4 | 30063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
30065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30066 | { | |
32fe5131 | 30067 | arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30068 | if (SWIG_arg_fail(2)) SWIG_fail; |
30069 | } | |
d14a1e28 RD |
30070 | { |
30071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30072 | result = (bool)(arg1)->GiveFeedback(arg2); |
d14a1e28 RD |
30073 | |
30074 | wxPyEndAllowThreads(__tstate); | |
30075 | if (PyErr_Occurred()) SWIG_fail; | |
30076 | } | |
4f89f6a3 RD |
30077 | { |
30078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30079 | } | |
d14a1e28 RD |
30080 | return resultobj; |
30081 | fail: | |
30082 | return NULL; | |
30083 | } | |
30084 | ||
30085 | ||
c32bde28 | 30086 | static PyObject * DropSource_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30087 | PyObject *obj; |
30088 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30089 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
30090 | Py_INCREF(obj); | |
30091 | return Py_BuildValue((char *)""); | |
30092 | } | |
c32bde28 | 30093 | static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30094 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30095 | wxDataObject *arg1 = (wxDataObject *) NULL ; |
30096 | wxPyDropTarget *result; | |
30097 | PyObject * obj0 = 0 ; | |
30098 | char *kwnames[] = { | |
30099 | (char *) "dataObject", NULL | |
30100 | }; | |
30101 | ||
15afbcd0 | 30102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 | 30103 | if (obj0) { |
093d3ff1 RD |
30104 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
30105 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30106 | } |
30107 | { | |
30108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30109 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
30110 | ||
30111 | wxPyEndAllowThreads(__tstate); | |
30112 | if (PyErr_Occurred()) SWIG_fail; | |
30113 | } | |
15afbcd0 | 30114 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); |
d14a1e28 RD |
30115 | return resultobj; |
30116 | fail: | |
30117 | return NULL; | |
30118 | } | |
30119 | ||
30120 | ||
c32bde28 | 30121 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30122 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30123 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30124 | PyObject *arg2 = (PyObject *) 0 ; | |
30125 | PyObject *arg3 = (PyObject *) 0 ; | |
30126 | PyObject * obj0 = 0 ; | |
30127 | PyObject * obj1 = 0 ; | |
30128 | PyObject * obj2 = 0 ; | |
30129 | char *kwnames[] = { | |
30130 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30131 | }; | |
30132 | ||
30133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30134 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30135 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30136 | arg2 = obj1; |
30137 | arg3 = obj2; | |
30138 | { | |
30139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30140 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30141 | ||
30142 | wxPyEndAllowThreads(__tstate); | |
30143 | if (PyErr_Occurred()) SWIG_fail; | |
30144 | } | |
30145 | Py_INCREF(Py_None); resultobj = Py_None; | |
30146 | return resultobj; | |
30147 | fail: | |
30148 | return NULL; | |
30149 | } | |
30150 | ||
30151 | ||
c32bde28 | 30152 | static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30153 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30154 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30155 | PyObject * obj0 = 0 ; | |
30156 | char *kwnames[] = { | |
30157 | (char *) "self", NULL | |
30158 | }; | |
30159 | ||
30160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30161 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30162 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30163 | { |
30164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30165 | delete arg1; | |
30166 | ||
30167 | wxPyEndAllowThreads(__tstate); | |
30168 | if (PyErr_Occurred()) SWIG_fail; | |
30169 | } | |
30170 | Py_INCREF(Py_None); resultobj = Py_None; | |
30171 | return resultobj; | |
30172 | fail: | |
30173 | return NULL; | |
30174 | } | |
30175 | ||
30176 | ||
c32bde28 | 30177 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30178 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30179 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30180 | wxDataObject *result; | |
30181 | PyObject * obj0 = 0 ; | |
30182 | char *kwnames[] = { | |
30183 | (char *) "self", NULL | |
30184 | }; | |
30185 | ||
30186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30189 | { |
30190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30191 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
30192 | ||
30193 | wxPyEndAllowThreads(__tstate); | |
30194 | if (PyErr_Occurred()) SWIG_fail; | |
30195 | } | |
15afbcd0 | 30196 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
30197 | return resultobj; |
30198 | fail: | |
30199 | return NULL; | |
30200 | } | |
30201 | ||
30202 | ||
c32bde28 | 30203 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30204 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30205 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30206 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
30207 | PyObject * obj0 = 0 ; | |
30208 | PyObject * obj1 = 0 ; | |
30209 | char *kwnames[] = { | |
30210 | (char *) "self",(char *) "dataObject", NULL | |
30211 | }; | |
30212 | ||
30213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30214 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30215 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30216 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
30217 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30218 | { |
30219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30220 | (arg1)->SetDataObject(arg2); | |
30221 | ||
30222 | wxPyEndAllowThreads(__tstate); | |
30223 | if (PyErr_Occurred()) SWIG_fail; | |
30224 | } | |
30225 | Py_INCREF(Py_None); resultobj = Py_None; | |
30226 | return resultobj; | |
30227 | fail: | |
30228 | return NULL; | |
30229 | } | |
30230 | ||
30231 | ||
c26d9ab4 | 30232 | static PyObject *_wrap_DropTarget_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30233 | PyObject *resultobj = NULL; |
d14a1e28 | 30234 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
e811c8ce RD |
30235 | int arg2 ; |
30236 | int arg3 ; | |
093d3ff1 RD |
30237 | wxDragResult arg4 ; |
30238 | wxDragResult result; | |
d14a1e28 | 30239 | PyObject * obj0 = 0 ; |
994141e6 RD |
30240 | PyObject * obj1 = 0 ; |
30241 | PyObject * obj2 = 0 ; | |
30242 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
30243 | char *kwnames[] = { |
30244 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30245 | }; | |
30246 | ||
c26d9ab4 | 30247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
30248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30250 | { | |
32fe5131 | 30251 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30252 | if (SWIG_arg_fail(2)) SWIG_fail; |
30253 | } | |
30254 | { | |
32fe5131 | 30255 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30256 | if (SWIG_arg_fail(3)) SWIG_fail; |
30257 | } | |
30258 | { | |
32fe5131 | 30259 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30260 | if (SWIG_arg_fail(4)) SWIG_fail; |
30261 | } | |
d14a1e28 RD |
30262 | { |
30263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30264 | result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4); |
d14a1e28 RD |
30265 | |
30266 | wxPyEndAllowThreads(__tstate); | |
30267 | if (PyErr_Occurred()) SWIG_fail; | |
30268 | } | |
093d3ff1 | 30269 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30270 | return resultobj; |
30271 | fail: | |
30272 | return NULL; | |
30273 | } | |
30274 | ||
30275 | ||
c26d9ab4 | 30276 | static PyObject *_wrap_DropTarget_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30277 | PyObject *resultobj = NULL; |
d14a1e28 | 30278 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
e811c8ce RD |
30279 | int arg2 ; |
30280 | int arg3 ; | |
093d3ff1 RD |
30281 | wxDragResult arg4 ; |
30282 | wxDragResult result; | |
d14a1e28 | 30283 | PyObject * obj0 = 0 ; |
994141e6 RD |
30284 | PyObject * obj1 = 0 ; |
30285 | PyObject * obj2 = 0 ; | |
30286 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
30287 | char *kwnames[] = { |
30288 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30289 | }; | |
30290 | ||
c26d9ab4 | 30291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
30292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30294 | { | |
32fe5131 | 30295 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30296 | if (SWIG_arg_fail(2)) SWIG_fail; |
30297 | } | |
30298 | { | |
32fe5131 | 30299 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30300 | if (SWIG_arg_fail(3)) SWIG_fail; |
30301 | } | |
30302 | { | |
32fe5131 | 30303 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30304 | if (SWIG_arg_fail(4)) SWIG_fail; |
30305 | } | |
d14a1e28 RD |
30306 | { |
30307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30308 | result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4); |
d14a1e28 RD |
30309 | |
30310 | wxPyEndAllowThreads(__tstate); | |
30311 | if (PyErr_Occurred()) SWIG_fail; | |
30312 | } | |
093d3ff1 | 30313 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30314 | return resultobj; |
30315 | fail: | |
30316 | return NULL; | |
30317 | } | |
30318 | ||
30319 | ||
c26d9ab4 | 30320 | static PyObject *_wrap_DropTarget_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30321 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30322 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30323 | PyObject * obj0 = 0 ; | |
30324 | char *kwnames[] = { | |
30325 | (char *) "self", NULL | |
30326 | }; | |
30327 | ||
c26d9ab4 | 30328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_OnLeave",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
30329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30331 | { |
30332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30333 | (arg1)->OnLeave(); |
d14a1e28 RD |
30334 | |
30335 | wxPyEndAllowThreads(__tstate); | |
30336 | if (PyErr_Occurred()) SWIG_fail; | |
30337 | } | |
30338 | Py_INCREF(Py_None); resultobj = Py_None; | |
30339 | return resultobj; | |
30340 | fail: | |
30341 | return NULL; | |
30342 | } | |
30343 | ||
30344 | ||
c26d9ab4 | 30345 | static PyObject *_wrap_DropTarget_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30346 | PyObject *resultobj = NULL; |
d14a1e28 | 30347 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
e811c8ce RD |
30348 | int arg2 ; |
30349 | int arg3 ; | |
d14a1e28 RD |
30350 | bool result; |
30351 | PyObject * obj0 = 0 ; | |
994141e6 RD |
30352 | PyObject * obj1 = 0 ; |
30353 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
30354 | char *kwnames[] = { |
30355 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30356 | }; | |
30357 | ||
c26d9ab4 | 30358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
30359 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30360 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30361 | { | |
32fe5131 | 30362 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30363 | if (SWIG_arg_fail(2)) SWIG_fail; |
30364 | } | |
30365 | { | |
32fe5131 | 30366 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30367 | if (SWIG_arg_fail(3)) SWIG_fail; |
30368 | } | |
d14a1e28 RD |
30369 | { |
30370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30371 | result = (bool)(arg1)->OnDrop(arg2,arg3); |
d14a1e28 RD |
30372 | |
30373 | wxPyEndAllowThreads(__tstate); | |
30374 | if (PyErr_Occurred()) SWIG_fail; | |
30375 | } | |
4f89f6a3 RD |
30376 | { |
30377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30378 | } | |
d14a1e28 RD |
30379 | return resultobj; |
30380 | fail: | |
30381 | return NULL; | |
30382 | } | |
30383 | ||
30384 | ||
c32bde28 | 30385 | static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30386 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30387 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30388 | bool result; | |
30389 | PyObject * obj0 = 0 ; | |
30390 | char *kwnames[] = { | |
30391 | (char *) "self", NULL | |
30392 | }; | |
30393 | ||
30394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30397 | { |
30398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30399 | result = (bool)(arg1)->GetData(); | |
30400 | ||
30401 | wxPyEndAllowThreads(__tstate); | |
30402 | if (PyErr_Occurred()) SWIG_fail; | |
30403 | } | |
4f89f6a3 RD |
30404 | { |
30405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30406 | } | |
d14a1e28 RD |
30407 | return resultobj; |
30408 | fail: | |
30409 | return NULL; | |
30410 | } | |
30411 | ||
30412 | ||
c9caa6bb | 30413 | static PyObject *_wrap_DropTarget_SetDefaultAction(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30414 | PyObject *resultobj = NULL; |
c9caa6bb RD |
30415 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30416 | wxDragResult arg2 ; | |
30417 | PyObject * obj0 = 0 ; | |
30418 | PyObject * obj1 = 0 ; | |
30419 | char *kwnames[] = { | |
30420 | (char *) "self",(char *) "action", NULL | |
30421 | }; | |
30422 | ||
30423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDefaultAction",kwnames,&obj0,&obj1)) goto fail; | |
30424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); | |
30425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30426 | { | |
32fe5131 | 30427 | arg2 = static_cast<wxDragResult >(SWIG_As_int(obj1)); |
c9caa6bb RD |
30428 | if (SWIG_arg_fail(2)) SWIG_fail; |
30429 | } | |
30430 | { | |
30431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 30432 | (arg1)->SetDefaultAction(arg2); |
c9caa6bb RD |
30433 | |
30434 | wxPyEndAllowThreads(__tstate); | |
30435 | if (PyErr_Occurred()) SWIG_fail; | |
30436 | } | |
30437 | Py_INCREF(Py_None); resultobj = Py_None; | |
30438 | return resultobj; | |
30439 | fail: | |
30440 | return NULL; | |
30441 | } | |
30442 | ||
30443 | ||
30444 | static PyObject *_wrap_DropTarget_GetDefaultAction(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 30445 | PyObject *resultobj = NULL; |
c9caa6bb RD |
30446 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; |
30447 | wxDragResult result; | |
30448 | PyObject * obj0 = 0 ; | |
30449 | char *kwnames[] = { | |
30450 | (char *) "self", NULL | |
30451 | }; | |
30452 | ||
30453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDefaultAction",kwnames,&obj0)) goto fail; | |
30454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); | |
30455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30456 | { | |
30457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30458 | result = (wxDragResult)(arg1)->GetDefaultAction(); | |
30459 | ||
30460 | wxPyEndAllowThreads(__tstate); | |
30461 | if (PyErr_Occurred()) SWIG_fail; | |
30462 | } | |
30463 | resultobj = SWIG_From_int((result)); | |
30464 | return resultobj; | |
30465 | fail: | |
30466 | return NULL; | |
30467 | } | |
30468 | ||
30469 | ||
c32bde28 | 30470 | static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30471 | PyObject *obj; |
30472 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30473 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
30474 | Py_INCREF(obj); | |
30475 | return Py_BuildValue((char *)""); | |
30476 | } | |
c32bde28 | 30477 | static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30478 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30479 | wxPyTextDropTarget *result; |
30480 | char *kwnames[] = { | |
30481 | NULL | |
30482 | }; | |
30483 | ||
30484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
30485 | { | |
30486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30487 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
30488 | ||
30489 | wxPyEndAllowThreads(__tstate); | |
30490 | if (PyErr_Occurred()) SWIG_fail; | |
30491 | } | |
15afbcd0 | 30492 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); |
d14a1e28 RD |
30493 | return resultobj; |
30494 | fail: | |
30495 | return NULL; | |
30496 | } | |
30497 | ||
30498 | ||
c32bde28 | 30499 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30500 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30501 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
30502 | PyObject *arg2 = (PyObject *) 0 ; | |
30503 | PyObject *arg3 = (PyObject *) 0 ; | |
30504 | PyObject * obj0 = 0 ; | |
30505 | PyObject * obj1 = 0 ; | |
30506 | PyObject * obj2 = 0 ; | |
30507 | char *kwnames[] = { | |
30508 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30509 | }; | |
30510 | ||
30511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30514 | arg2 = obj1; |
30515 | arg3 = obj2; | |
30516 | { | |
30517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30518 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30519 | ||
30520 | wxPyEndAllowThreads(__tstate); | |
30521 | if (PyErr_Occurred()) SWIG_fail; | |
30522 | } | |
30523 | Py_INCREF(Py_None); resultobj = Py_None; | |
30524 | return resultobj; | |
30525 | fail: | |
30526 | return NULL; | |
30527 | } | |
30528 | ||
30529 | ||
c26d9ab4 RD |
30530 | static PyObject *_wrap_TextDropTarget_OnDropText(PyObject *, PyObject *args, PyObject *kwargs) { |
30531 | PyObject *resultobj = NULL; | |
30532 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
30533 | int arg2 ; | |
30534 | int arg3 ; | |
30535 | wxString *arg4 = 0 ; | |
30536 | bool result; | |
30537 | bool temp4 = false ; | |
30538 | PyObject * obj0 = 0 ; | |
30539 | PyObject * obj1 = 0 ; | |
30540 | PyObject * obj2 = 0 ; | |
30541 | PyObject * obj3 = 0 ; | |
30542 | char *kwnames[] = { | |
30543 | (char *) "self",(char *) "x",(char *) "y",(char *) "text", NULL | |
30544 | }; | |
30545 | ||
30546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnDropText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); | |
30548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30549 | { | |
30550 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
30551 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30552 | } | |
30553 | { | |
30554 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
30555 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30556 | } | |
30557 | { | |
30558 | arg4 = wxString_in_helper(obj3); | |
30559 | if (arg4 == NULL) SWIG_fail; | |
30560 | temp4 = true; | |
30561 | } | |
30562 | { | |
30563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30564 | result = (bool)(arg1)->OnDropText(arg2,arg3,(wxString const &)*arg4); | |
30565 | ||
30566 | wxPyEndAllowThreads(__tstate); | |
30567 | if (PyErr_Occurred()) SWIG_fail; | |
30568 | } | |
30569 | { | |
30570 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30571 | } | |
30572 | { | |
30573 | if (temp4) | |
30574 | delete arg4; | |
30575 | } | |
30576 | return resultobj; | |
30577 | fail: | |
30578 | { | |
30579 | if (temp4) | |
30580 | delete arg4; | |
30581 | } | |
30582 | return NULL; | |
30583 | } | |
30584 | ||
30585 | ||
30586 | static PyObject *_wrap_TextDropTarget_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 30587 | PyObject *resultobj = NULL; |
d14a1e28 | 30588 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
e811c8ce RD |
30589 | int arg2 ; |
30590 | int arg3 ; | |
093d3ff1 RD |
30591 | wxDragResult arg4 ; |
30592 | wxDragResult result; | |
d14a1e28 | 30593 | PyObject * obj0 = 0 ; |
994141e6 RD |
30594 | PyObject * obj1 = 0 ; |
30595 | PyObject * obj2 = 0 ; | |
30596 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
30597 | char *kwnames[] = { |
30598 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30599 | }; | |
30600 | ||
c26d9ab4 | 30601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
30602 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30603 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30604 | { | |
32fe5131 | 30605 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30606 | if (SWIG_arg_fail(2)) SWIG_fail; |
30607 | } | |
30608 | { | |
32fe5131 | 30609 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30610 | if (SWIG_arg_fail(3)) SWIG_fail; |
30611 | } | |
30612 | { | |
32fe5131 | 30613 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30614 | if (SWIG_arg_fail(4)) SWIG_fail; |
30615 | } | |
d14a1e28 RD |
30616 | { |
30617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30618 | result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4); |
d14a1e28 RD |
30619 | |
30620 | wxPyEndAllowThreads(__tstate); | |
30621 | if (PyErr_Occurred()) SWIG_fail; | |
30622 | } | |
093d3ff1 | 30623 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30624 | return resultobj; |
30625 | fail: | |
30626 | return NULL; | |
30627 | } | |
30628 | ||
30629 | ||
c26d9ab4 | 30630 | static PyObject *_wrap_TextDropTarget_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30631 | PyObject *resultobj = NULL; |
d14a1e28 | 30632 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
e811c8ce RD |
30633 | int arg2 ; |
30634 | int arg3 ; | |
093d3ff1 RD |
30635 | wxDragResult arg4 ; |
30636 | wxDragResult result; | |
d14a1e28 | 30637 | PyObject * obj0 = 0 ; |
994141e6 RD |
30638 | PyObject * obj1 = 0 ; |
30639 | PyObject * obj2 = 0 ; | |
30640 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
30641 | char *kwnames[] = { |
30642 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30643 | }; | |
30644 | ||
c26d9ab4 | 30645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
30646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30648 | { | |
32fe5131 | 30649 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30650 | if (SWIG_arg_fail(2)) SWIG_fail; |
30651 | } | |
30652 | { | |
32fe5131 | 30653 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30654 | if (SWIG_arg_fail(3)) SWIG_fail; |
30655 | } | |
30656 | { | |
32fe5131 | 30657 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30658 | if (SWIG_arg_fail(4)) SWIG_fail; |
30659 | } | |
d14a1e28 RD |
30660 | { |
30661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30662 | result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4); |
d14a1e28 RD |
30663 | |
30664 | wxPyEndAllowThreads(__tstate); | |
30665 | if (PyErr_Occurred()) SWIG_fail; | |
30666 | } | |
093d3ff1 | 30667 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30668 | return resultobj; |
30669 | fail: | |
30670 | return NULL; | |
30671 | } | |
30672 | ||
30673 | ||
c26d9ab4 | 30674 | static PyObject *_wrap_TextDropTarget_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30675 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30676 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
30677 | PyObject * obj0 = 0 ; | |
30678 | char *kwnames[] = { | |
30679 | (char *) "self", NULL | |
30680 | }; | |
30681 | ||
c26d9ab4 | 30682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_OnLeave",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
30683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30685 | { |
30686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30687 | (arg1)->OnLeave(); |
d14a1e28 RD |
30688 | |
30689 | wxPyEndAllowThreads(__tstate); | |
30690 | if (PyErr_Occurred()) SWIG_fail; | |
30691 | } | |
30692 | Py_INCREF(Py_None); resultobj = Py_None; | |
30693 | return resultobj; | |
30694 | fail: | |
30695 | return NULL; | |
30696 | } | |
30697 | ||
30698 | ||
c26d9ab4 | 30699 | static PyObject *_wrap_TextDropTarget_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30700 | PyObject *resultobj = NULL; |
d14a1e28 | 30701 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
e811c8ce RD |
30702 | int arg2 ; |
30703 | int arg3 ; | |
d14a1e28 RD |
30704 | bool result; |
30705 | PyObject * obj0 = 0 ; | |
994141e6 RD |
30706 | PyObject * obj1 = 0 ; |
30707 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
30708 | char *kwnames[] = { |
30709 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30710 | }; | |
30711 | ||
c26d9ab4 | 30712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
30713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30715 | { | |
32fe5131 | 30716 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30717 | if (SWIG_arg_fail(2)) SWIG_fail; |
30718 | } | |
30719 | { | |
32fe5131 | 30720 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30721 | if (SWIG_arg_fail(3)) SWIG_fail; |
30722 | } | |
d14a1e28 RD |
30723 | { |
30724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30725 | result = (bool)(arg1)->OnDrop(arg2,arg3); |
d14a1e28 RD |
30726 | |
30727 | wxPyEndAllowThreads(__tstate); | |
30728 | if (PyErr_Occurred()) SWIG_fail; | |
30729 | } | |
4f89f6a3 RD |
30730 | { |
30731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30732 | } | |
d14a1e28 RD |
30733 | return resultobj; |
30734 | fail: | |
30735 | return NULL; | |
30736 | } | |
30737 | ||
30738 | ||
c26d9ab4 | 30739 | static PyObject *_wrap_TextDropTarget_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30740 | PyObject *resultobj = NULL; |
d14a1e28 | 30741 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; |
e811c8ce RD |
30742 | int arg2 ; |
30743 | int arg3 ; | |
093d3ff1 RD |
30744 | wxDragResult arg4 ; |
30745 | wxDragResult result; | |
d14a1e28 | 30746 | PyObject * obj0 = 0 ; |
994141e6 RD |
30747 | PyObject * obj1 = 0 ; |
30748 | PyObject * obj2 = 0 ; | |
30749 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
30750 | char *kwnames[] = { |
30751 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30752 | }; | |
30753 | ||
c26d9ab4 | 30754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
30755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30757 | { | |
32fe5131 | 30758 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30759 | if (SWIG_arg_fail(2)) SWIG_fail; |
30760 | } | |
30761 | { | |
32fe5131 | 30762 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30763 | if (SWIG_arg_fail(3)) SWIG_fail; |
30764 | } | |
30765 | { | |
32fe5131 | 30766 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30767 | if (SWIG_arg_fail(4)) SWIG_fail; |
30768 | } | |
d14a1e28 RD |
30769 | { |
30770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30771 | result = (wxDragResult)(arg1)->OnData(arg2,arg3,arg4); |
d14a1e28 RD |
30772 | |
30773 | wxPyEndAllowThreads(__tstate); | |
30774 | if (PyErr_Occurred()) SWIG_fail; | |
30775 | } | |
093d3ff1 | 30776 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30777 | return resultobj; |
30778 | fail: | |
30779 | return NULL; | |
30780 | } | |
30781 | ||
30782 | ||
c32bde28 | 30783 | static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30784 | PyObject *obj; |
30785 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30786 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
30787 | Py_INCREF(obj); | |
30788 | return Py_BuildValue((char *)""); | |
30789 | } | |
c32bde28 | 30790 | static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30791 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30792 | wxPyFileDropTarget *result; |
30793 | char *kwnames[] = { | |
30794 | NULL | |
30795 | }; | |
30796 | ||
30797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
30798 | { | |
30799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30800 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
30801 | ||
30802 | wxPyEndAllowThreads(__tstate); | |
30803 | if (PyErr_Occurred()) SWIG_fail; | |
30804 | } | |
15afbcd0 | 30805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); |
d14a1e28 RD |
30806 | return resultobj; |
30807 | fail: | |
30808 | return NULL; | |
30809 | } | |
30810 | ||
30811 | ||
c32bde28 | 30812 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30813 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30814 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
30815 | PyObject *arg2 = (PyObject *) 0 ; | |
30816 | PyObject *arg3 = (PyObject *) 0 ; | |
30817 | PyObject * obj0 = 0 ; | |
30818 | PyObject * obj1 = 0 ; | |
30819 | PyObject * obj2 = 0 ; | |
30820 | char *kwnames[] = { | |
30821 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30822 | }; | |
30823 | ||
30824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30827 | arg2 = obj1; |
30828 | arg3 = obj2; | |
30829 | { | |
30830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30831 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30832 | ||
30833 | wxPyEndAllowThreads(__tstate); | |
30834 | if (PyErr_Occurred()) SWIG_fail; | |
30835 | } | |
30836 | Py_INCREF(Py_None); resultobj = Py_None; | |
30837 | return resultobj; | |
30838 | fail: | |
30839 | return NULL; | |
30840 | } | |
30841 | ||
30842 | ||
c26d9ab4 RD |
30843 | static PyObject *_wrap_FileDropTarget_OnDropFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
30844 | PyObject *resultobj = NULL; | |
30845 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
30846 | int arg2 ; | |
30847 | int arg3 ; | |
30848 | wxArrayString *arg4 = 0 ; | |
30849 | bool result; | |
30850 | bool temp4 = false ; | |
30851 | PyObject * obj0 = 0 ; | |
30852 | PyObject * obj1 = 0 ; | |
30853 | PyObject * obj2 = 0 ; | |
30854 | PyObject * obj3 = 0 ; | |
30855 | char *kwnames[] = { | |
30856 | (char *) "self",(char *) "x",(char *) "y",(char *) "filenames", NULL | |
30857 | }; | |
30858 | ||
30859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnDropFiles",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); | |
30861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30862 | { | |
30863 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
30864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30865 | } | |
30866 | { | |
30867 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
30868 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30869 | } | |
30870 | { | |
30871 | if (! PySequence_Check(obj3)) { | |
30872 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
30873 | SWIG_fail; | |
30874 | } | |
30875 | arg4 = new wxArrayString; | |
30876 | temp4 = true; | |
30877 | int i, len=PySequence_Length(obj3); | |
30878 | for (i=0; i<len; i++) { | |
30879 | PyObject* item = PySequence_GetItem(obj3, i); | |
30880 | wxString* s = wxString_in_helper(item); | |
30881 | if (PyErr_Occurred()) SWIG_fail; | |
30882 | arg4->Add(*s); | |
30883 | delete s; | |
30884 | Py_DECREF(item); | |
30885 | } | |
30886 | } | |
30887 | { | |
30888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30889 | result = (bool)(arg1)->OnDropFiles(arg2,arg3,(wxArrayString const &)*arg4); | |
30890 | ||
30891 | wxPyEndAllowThreads(__tstate); | |
30892 | if (PyErr_Occurred()) SWIG_fail; | |
30893 | } | |
30894 | { | |
30895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30896 | } | |
30897 | { | |
30898 | if (temp4) delete arg4; | |
30899 | } | |
30900 | return resultobj; | |
30901 | fail: | |
30902 | { | |
30903 | if (temp4) delete arg4; | |
30904 | } | |
30905 | return NULL; | |
30906 | } | |
30907 | ||
30908 | ||
30909 | static PyObject *_wrap_FileDropTarget_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 30910 | PyObject *resultobj = NULL; |
d14a1e28 | 30911 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
e811c8ce RD |
30912 | int arg2 ; |
30913 | int arg3 ; | |
093d3ff1 RD |
30914 | wxDragResult arg4 ; |
30915 | wxDragResult result; | |
d14a1e28 | 30916 | PyObject * obj0 = 0 ; |
994141e6 RD |
30917 | PyObject * obj1 = 0 ; |
30918 | PyObject * obj2 = 0 ; | |
30919 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
30920 | char *kwnames[] = { |
30921 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30922 | }; | |
30923 | ||
c26d9ab4 | 30924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
30925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30927 | { | |
32fe5131 | 30928 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30929 | if (SWIG_arg_fail(2)) SWIG_fail; |
30930 | } | |
30931 | { | |
32fe5131 | 30932 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30933 | if (SWIG_arg_fail(3)) SWIG_fail; |
30934 | } | |
30935 | { | |
32fe5131 | 30936 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30937 | if (SWIG_arg_fail(4)) SWIG_fail; |
30938 | } | |
d14a1e28 RD |
30939 | { |
30940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30941 | result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4); |
d14a1e28 RD |
30942 | |
30943 | wxPyEndAllowThreads(__tstate); | |
30944 | if (PyErr_Occurred()) SWIG_fail; | |
30945 | } | |
093d3ff1 | 30946 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30947 | return resultobj; |
30948 | fail: | |
30949 | return NULL; | |
30950 | } | |
30951 | ||
30952 | ||
c26d9ab4 | 30953 | static PyObject *_wrap_FileDropTarget_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30954 | PyObject *resultobj = NULL; |
d14a1e28 | 30955 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
e811c8ce RD |
30956 | int arg2 ; |
30957 | int arg3 ; | |
093d3ff1 RD |
30958 | wxDragResult arg4 ; |
30959 | wxDragResult result; | |
d14a1e28 | 30960 | PyObject * obj0 = 0 ; |
994141e6 RD |
30961 | PyObject * obj1 = 0 ; |
30962 | PyObject * obj2 = 0 ; | |
30963 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
30964 | char *kwnames[] = { |
30965 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
30966 | }; | |
30967 | ||
c26d9ab4 | 30968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
30969 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
30970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30971 | { | |
32fe5131 | 30972 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
30973 | if (SWIG_arg_fail(2)) SWIG_fail; |
30974 | } | |
30975 | { | |
32fe5131 | 30976 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30977 | if (SWIG_arg_fail(3)) SWIG_fail; |
30978 | } | |
30979 | { | |
32fe5131 | 30980 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30981 | if (SWIG_arg_fail(4)) SWIG_fail; |
30982 | } | |
d14a1e28 RD |
30983 | { |
30984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 30985 | result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4); |
d14a1e28 RD |
30986 | |
30987 | wxPyEndAllowThreads(__tstate); | |
30988 | if (PyErr_Occurred()) SWIG_fail; | |
30989 | } | |
093d3ff1 | 30990 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30991 | return resultobj; |
30992 | fail: | |
30993 | return NULL; | |
30994 | } | |
30995 | ||
30996 | ||
c26d9ab4 | 30997 | static PyObject *_wrap_FileDropTarget_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30998 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30999 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
31000 | PyObject * obj0 = 0 ; | |
31001 | char *kwnames[] = { | |
31002 | (char *) "self", NULL | |
31003 | }; | |
31004 | ||
c26d9ab4 | 31005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_OnLeave",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
31006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
31007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31008 | { |
31009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 31010 | (arg1)->OnLeave(); |
d14a1e28 RD |
31011 | |
31012 | wxPyEndAllowThreads(__tstate); | |
31013 | if (PyErr_Occurred()) SWIG_fail; | |
31014 | } | |
31015 | Py_INCREF(Py_None); resultobj = Py_None; | |
31016 | return resultobj; | |
31017 | fail: | |
31018 | return NULL; | |
31019 | } | |
31020 | ||
31021 | ||
c26d9ab4 | 31022 | static PyObject *_wrap_FileDropTarget_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31023 | PyObject *resultobj = NULL; |
d14a1e28 | 31024 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
e811c8ce RD |
31025 | int arg2 ; |
31026 | int arg3 ; | |
d14a1e28 RD |
31027 | bool result; |
31028 | PyObject * obj0 = 0 ; | |
994141e6 RD |
31029 | PyObject * obj1 = 0 ; |
31030 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
31031 | char *kwnames[] = { |
31032 | (char *) "self",(char *) "x",(char *) "y", NULL | |
31033 | }; | |
31034 | ||
c26d9ab4 | 31035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
31036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
31037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31038 | { | |
32fe5131 | 31039 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31040 | if (SWIG_arg_fail(2)) SWIG_fail; |
31041 | } | |
31042 | { | |
32fe5131 | 31043 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
31044 | if (SWIG_arg_fail(3)) SWIG_fail; |
31045 | } | |
d14a1e28 RD |
31046 | { |
31047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 31048 | result = (bool)(arg1)->OnDrop(arg2,arg3); |
d14a1e28 RD |
31049 | |
31050 | wxPyEndAllowThreads(__tstate); | |
31051 | if (PyErr_Occurred()) SWIG_fail; | |
31052 | } | |
4f89f6a3 RD |
31053 | { |
31054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31055 | } | |
d14a1e28 RD |
31056 | return resultobj; |
31057 | fail: | |
31058 | return NULL; | |
31059 | } | |
31060 | ||
31061 | ||
c26d9ab4 | 31062 | static PyObject *_wrap_FileDropTarget_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31063 | PyObject *resultobj = NULL; |
d14a1e28 | 31064 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; |
e811c8ce RD |
31065 | int arg2 ; |
31066 | int arg3 ; | |
093d3ff1 RD |
31067 | wxDragResult arg4 ; |
31068 | wxDragResult result; | |
d14a1e28 | 31069 | PyObject * obj0 = 0 ; |
994141e6 RD |
31070 | PyObject * obj1 = 0 ; |
31071 | PyObject * obj2 = 0 ; | |
31072 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
31073 | char *kwnames[] = { |
31074 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
31075 | }; | |
31076 | ||
c26d9ab4 | 31077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
31078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
31079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31080 | { | |
32fe5131 | 31081 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31082 | if (SWIG_arg_fail(2)) SWIG_fail; |
31083 | } | |
31084 | { | |
32fe5131 | 31085 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
31086 | if (SWIG_arg_fail(3)) SWIG_fail; |
31087 | } | |
31088 | { | |
32fe5131 | 31089 | arg4 = static_cast<wxDragResult >(SWIG_As_int(obj3)); |
093d3ff1 RD |
31090 | if (SWIG_arg_fail(4)) SWIG_fail; |
31091 | } | |
d14a1e28 RD |
31092 | { |
31093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 31094 | result = (wxDragResult)(arg1)->OnData(arg2,arg3,arg4); |
d14a1e28 RD |
31095 | |
31096 | wxPyEndAllowThreads(__tstate); | |
31097 | if (PyErr_Occurred()) SWIG_fail; | |
31098 | } | |
093d3ff1 | 31099 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
31100 | return resultobj; |
31101 | fail: | |
31102 | return NULL; | |
31103 | } | |
31104 | ||
31105 | ||
c32bde28 | 31106 | static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31107 | PyObject *obj; |
31108 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31109 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
31110 | Py_INCREF(obj); | |
31111 | return Py_BuildValue((char *)""); | |
31112 | } | |
c32bde28 | 31113 | static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31114 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31115 | wxClipboard *result; |
31116 | char *kwnames[] = { | |
31117 | NULL | |
31118 | }; | |
31119 | ||
31120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
31121 | { | |
31122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31123 | result = (wxClipboard *)new wxClipboard(); | |
31124 | ||
31125 | wxPyEndAllowThreads(__tstate); | |
31126 | if (PyErr_Occurred()) SWIG_fail; | |
31127 | } | |
15afbcd0 | 31128 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); |
d14a1e28 RD |
31129 | return resultobj; |
31130 | fail: | |
31131 | return NULL; | |
31132 | } | |
31133 | ||
31134 | ||
c32bde28 | 31135 | static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31136 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31137 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31138 | PyObject * obj0 = 0 ; | |
31139 | char *kwnames[] = { | |
31140 | (char *) "self", NULL | |
31141 | }; | |
31142 | ||
31143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31146 | { |
31147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31148 | delete arg1; | |
31149 | ||
31150 | wxPyEndAllowThreads(__tstate); | |
31151 | if (PyErr_Occurred()) SWIG_fail; | |
31152 | } | |
31153 | Py_INCREF(Py_None); resultobj = Py_None; | |
31154 | return resultobj; | |
31155 | fail: | |
31156 | return NULL; | |
31157 | } | |
31158 | ||
31159 | ||
c32bde28 | 31160 | static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31161 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31162 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31163 | bool result; | |
31164 | PyObject * obj0 = 0 ; | |
31165 | char *kwnames[] = { | |
31166 | (char *) "self", NULL | |
31167 | }; | |
31168 | ||
31169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31172 | { |
31173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31174 | result = (bool)(arg1)->Open(); | |
31175 | ||
31176 | wxPyEndAllowThreads(__tstate); | |
31177 | if (PyErr_Occurred()) SWIG_fail; | |
31178 | } | |
4f89f6a3 RD |
31179 | { |
31180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31181 | } | |
d14a1e28 RD |
31182 | return resultobj; |
31183 | fail: | |
31184 | return NULL; | |
31185 | } | |
31186 | ||
31187 | ||
c32bde28 | 31188 | static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31189 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31190 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31191 | PyObject * obj0 = 0 ; | |
31192 | char *kwnames[] = { | |
31193 | (char *) "self", NULL | |
31194 | }; | |
31195 | ||
31196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31199 | { |
31200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31201 | (arg1)->Close(); | |
31202 | ||
31203 | wxPyEndAllowThreads(__tstate); | |
31204 | if (PyErr_Occurred()) SWIG_fail; | |
31205 | } | |
31206 | Py_INCREF(Py_None); resultobj = Py_None; | |
31207 | return resultobj; | |
31208 | fail: | |
31209 | return NULL; | |
31210 | } | |
31211 | ||
31212 | ||
c32bde28 | 31213 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31214 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31215 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31216 | bool result; | |
31217 | PyObject * obj0 = 0 ; | |
31218 | char *kwnames[] = { | |
31219 | (char *) "self", NULL | |
31220 | }; | |
31221 | ||
31222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31225 | { |
31226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31227 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
31228 | ||
31229 | wxPyEndAllowThreads(__tstate); | |
31230 | if (PyErr_Occurred()) SWIG_fail; | |
31231 | } | |
4f89f6a3 RD |
31232 | { |
31233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31234 | } | |
d14a1e28 RD |
31235 | return resultobj; |
31236 | fail: | |
31237 | return NULL; | |
31238 | } | |
31239 | ||
31240 | ||
c32bde28 | 31241 | static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31242 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31243 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31244 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
31245 | bool result; | |
31246 | PyObject * obj0 = 0 ; | |
31247 | PyObject * obj1 = 0 ; | |
31248 | char *kwnames[] = { | |
31249 | (char *) "self",(char *) "data", NULL | |
31250 | }; | |
31251 | ||
31252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31253 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31255 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
31256 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31257 | { |
31258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31259 | result = (bool)(arg1)->AddData(arg2); | |
31260 | ||
31261 | wxPyEndAllowThreads(__tstate); | |
31262 | if (PyErr_Occurred()) SWIG_fail; | |
31263 | } | |
4f89f6a3 RD |
31264 | { |
31265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31266 | } | |
d14a1e28 RD |
31267 | return resultobj; |
31268 | fail: | |
31269 | return NULL; | |
31270 | } | |
31271 | ||
31272 | ||
c32bde28 | 31273 | static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31274 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31275 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31276 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
31277 | bool result; | |
31278 | PyObject * obj0 = 0 ; | |
31279 | PyObject * obj1 = 0 ; | |
31280 | char *kwnames[] = { | |
31281 | (char *) "self",(char *) "data", NULL | |
31282 | }; | |
31283 | ||
31284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31287 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
31288 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31289 | { |
31290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31291 | result = (bool)(arg1)->SetData(arg2); | |
31292 | ||
31293 | wxPyEndAllowThreads(__tstate); | |
31294 | if (PyErr_Occurred()) SWIG_fail; | |
31295 | } | |
4f89f6a3 RD |
31296 | { |
31297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31298 | } | |
d14a1e28 RD |
31299 | return resultobj; |
31300 | fail: | |
31301 | return NULL; | |
31302 | } | |
31303 | ||
31304 | ||
c32bde28 | 31305 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31306 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31307 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31308 | wxDataFormat *arg2 = 0 ; | |
31309 | bool result; | |
31310 | PyObject * obj0 = 0 ; | |
31311 | PyObject * obj1 = 0 ; | |
31312 | char *kwnames[] = { | |
31313 | (char *) "self",(char *) "format", NULL | |
31314 | }; | |
31315 | ||
31316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31317 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31318 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31319 | { | |
31320 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
31321 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31322 | if (arg2 == NULL) { | |
31323 | SWIG_null_ref("wxDataFormat"); | |
31324 | } | |
31325 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31326 | } |
31327 | { | |
31328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31329 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
31330 | ||
31331 | wxPyEndAllowThreads(__tstate); | |
31332 | if (PyErr_Occurred()) SWIG_fail; | |
31333 | } | |
4f89f6a3 RD |
31334 | { |
31335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31336 | } | |
d14a1e28 RD |
31337 | return resultobj; |
31338 | fail: | |
31339 | return NULL; | |
31340 | } | |
31341 | ||
31342 | ||
c32bde28 | 31343 | static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31344 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31345 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31346 | wxDataObject *arg2 = 0 ; | |
31347 | bool result; | |
31348 | PyObject * obj0 = 0 ; | |
31349 | PyObject * obj1 = 0 ; | |
31350 | char *kwnames[] = { | |
31351 | (char *) "self",(char *) "data", NULL | |
31352 | }; | |
31353 | ||
31354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31355 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31356 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31357 | { | |
31358 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); | |
31359 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31360 | if (arg2 == NULL) { | |
31361 | SWIG_null_ref("wxDataObject"); | |
31362 | } | |
31363 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31364 | } |
31365 | { | |
31366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31367 | result = (bool)(arg1)->GetData(*arg2); | |
31368 | ||
31369 | wxPyEndAllowThreads(__tstate); | |
31370 | if (PyErr_Occurred()) SWIG_fail; | |
31371 | } | |
4f89f6a3 RD |
31372 | { |
31373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31374 | } | |
d14a1e28 RD |
31375 | return resultobj; |
31376 | fail: | |
31377 | return NULL; | |
31378 | } | |
31379 | ||
31380 | ||
c32bde28 | 31381 | static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31382 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31383 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31384 | PyObject * obj0 = 0 ; | |
31385 | char *kwnames[] = { | |
31386 | (char *) "self", NULL | |
31387 | }; | |
31388 | ||
31389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31392 | { |
31393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31394 | (arg1)->Clear(); | |
31395 | ||
31396 | wxPyEndAllowThreads(__tstate); | |
31397 | if (PyErr_Occurred()) SWIG_fail; | |
31398 | } | |
31399 | Py_INCREF(Py_None); resultobj = Py_None; | |
31400 | return resultobj; | |
31401 | fail: | |
31402 | return NULL; | |
31403 | } | |
31404 | ||
31405 | ||
c32bde28 | 31406 | static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31407 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31408 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
31409 | bool result; | |
31410 | PyObject * obj0 = 0 ; | |
31411 | char *kwnames[] = { | |
31412 | (char *) "self", NULL | |
31413 | }; | |
31414 | ||
31415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31418 | { |
31419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31420 | result = (bool)(arg1)->Flush(); | |
31421 | ||
31422 | wxPyEndAllowThreads(__tstate); | |
31423 | if (PyErr_Occurred()) SWIG_fail; | |
31424 | } | |
4f89f6a3 RD |
31425 | { |
31426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31427 | } | |
d14a1e28 RD |
31428 | return resultobj; |
31429 | fail: | |
31430 | return NULL; | |
31431 | } | |
31432 | ||
31433 | ||
c32bde28 | 31434 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31435 | PyObject *resultobj = NULL; |
d14a1e28 | 31436 | wxClipboard *arg1 = (wxClipboard *) 0 ; |
ae8162c8 | 31437 | bool arg2 = (bool) true ; |
d14a1e28 RD |
31438 | PyObject * obj0 = 0 ; |
31439 | PyObject * obj1 = 0 ; | |
31440 | char *kwnames[] = { | |
31441 | (char *) "self",(char *) "primary", NULL | |
31442 | }; | |
31443 | ||
31444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 31447 | if (obj1) { |
093d3ff1 | 31448 | { |
32fe5131 | 31449 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
31450 | if (SWIG_arg_fail(2)) SWIG_fail; |
31451 | } | |
d14a1e28 RD |
31452 | } |
31453 | { | |
31454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31455 | (arg1)->UsePrimarySelection(arg2); | |
31456 | ||
31457 | wxPyEndAllowThreads(__tstate); | |
31458 | if (PyErr_Occurred()) SWIG_fail; | |
31459 | } | |
31460 | Py_INCREF(Py_None); resultobj = Py_None; | |
31461 | return resultobj; | |
31462 | fail: | |
31463 | return NULL; | |
31464 | } | |
31465 | ||
31466 | ||
c32bde28 | 31467 | static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31468 | PyObject *resultobj = NULL; |
dfbb5885 RD |
31469 | wxClipboard *result; |
31470 | char *kwnames[] = { | |
31471 | NULL | |
31472 | }; | |
31473 | ||
31474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
31475 | { | |
31476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31477 | result = (wxClipboard *)wxClipboard::Get(); | |
31478 | ||
31479 | wxPyEndAllowThreads(__tstate); | |
31480 | if (PyErr_Occurred()) SWIG_fail; | |
31481 | } | |
31482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
31483 | return resultobj; | |
31484 | fail: | |
31485 | return NULL; | |
31486 | } | |
31487 | ||
31488 | ||
c32bde28 | 31489 | static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31490 | PyObject *obj; |
31491 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31492 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
31493 | Py_INCREF(obj); | |
31494 | return Py_BuildValue((char *)""); | |
31495 | } | |
c32bde28 | 31496 | static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31497 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31498 | wxClipboard *arg1 = (wxClipboard *) NULL ; |
31499 | wxClipboardLocker *result; | |
31500 | PyObject * obj0 = 0 ; | |
31501 | char *kwnames[] = { | |
31502 | (char *) "clipboard", NULL | |
31503 | }; | |
31504 | ||
31505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
31506 | if (obj0) { | |
093d3ff1 RD |
31507 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
31508 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31509 | } |
31510 | { | |
31511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31512 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
31513 | ||
31514 | wxPyEndAllowThreads(__tstate); | |
31515 | if (PyErr_Occurred()) SWIG_fail; | |
31516 | } | |
15afbcd0 | 31517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); |
d14a1e28 RD |
31518 | return resultobj; |
31519 | fail: | |
31520 | return NULL; | |
31521 | } | |
31522 | ||
31523 | ||
c32bde28 | 31524 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31525 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31526 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; |
31527 | PyObject * obj0 = 0 ; | |
31528 | char *kwnames[] = { | |
31529 | (char *) "self", NULL | |
31530 | }; | |
31531 | ||
31532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31533 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0); |
31534 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31535 | { |
31536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31537 | delete arg1; | |
31538 | ||
31539 | wxPyEndAllowThreads(__tstate); | |
31540 | if (PyErr_Occurred()) SWIG_fail; | |
31541 | } | |
31542 | Py_INCREF(Py_None); resultobj = Py_None; | |
31543 | return resultobj; | |
31544 | fail: | |
31545 | return NULL; | |
31546 | } | |
31547 | ||
31548 | ||
c32bde28 | 31549 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31550 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31551 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; |
31552 | bool result; | |
31553 | PyObject * obj0 = 0 ; | |
31554 | char *kwnames[] = { | |
31555 | (char *) "self", NULL | |
31556 | }; | |
31557 | ||
31558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0); |
31560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31561 | { |
31562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31563 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
31564 | ||
31565 | wxPyEndAllowThreads(__tstate); | |
31566 | if (PyErr_Occurred()) SWIG_fail; | |
31567 | } | |
4f89f6a3 RD |
31568 | { |
31569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31570 | } | |
d14a1e28 RD |
31571 | return resultobj; |
31572 | fail: | |
31573 | return NULL; | |
31574 | } | |
31575 | ||
31576 | ||
c32bde28 | 31577 | static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31578 | PyObject *obj; |
31579 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31580 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
31581 | Py_INCREF(obj); | |
31582 | return Py_BuildValue((char *)""); | |
31583 | } | |
c32bde28 | 31584 | static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31585 | PyObject *resultobj = NULL; |
4276dc52 RD |
31586 | int arg1 = (int) 0 ; |
31587 | int arg2 = (int) 0 ; | |
31588 | int arg3 = (int) 0 ; | |
31589 | int arg4 = (int) 0 ; | |
31590 | wxVideoMode *result; | |
31591 | PyObject * obj0 = 0 ; | |
31592 | PyObject * obj1 = 0 ; | |
31593 | PyObject * obj2 = 0 ; | |
31594 | PyObject * obj3 = 0 ; | |
31595 | char *kwnames[] = { | |
31596 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
31597 | }; | |
31598 | ||
31599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31600 | if (obj0) { | |
093d3ff1 | 31601 | { |
32fe5131 | 31602 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
31603 | if (SWIG_arg_fail(1)) SWIG_fail; |
31604 | } | |
4276dc52 RD |
31605 | } |
31606 | if (obj1) { | |
093d3ff1 | 31607 | { |
32fe5131 | 31608 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31609 | if (SWIG_arg_fail(2)) SWIG_fail; |
31610 | } | |
4276dc52 RD |
31611 | } |
31612 | if (obj2) { | |
093d3ff1 | 31613 | { |
32fe5131 | 31614 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
31615 | if (SWIG_arg_fail(3)) SWIG_fail; |
31616 | } | |
4276dc52 RD |
31617 | } |
31618 | if (obj3) { | |
093d3ff1 | 31619 | { |
32fe5131 | 31620 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
31621 | if (SWIG_arg_fail(4)) SWIG_fail; |
31622 | } | |
4276dc52 RD |
31623 | } |
31624 | { | |
31625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31626 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
31627 | ||
31628 | wxPyEndAllowThreads(__tstate); | |
31629 | if (PyErr_Occurred()) SWIG_fail; | |
31630 | } | |
31631 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
31632 | return resultobj; | |
31633 | fail: | |
31634 | return NULL; | |
31635 | } | |
31636 | ||
31637 | ||
c32bde28 | 31638 | static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31639 | PyObject *resultobj = NULL; |
4276dc52 RD |
31640 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31641 | PyObject * obj0 = 0 ; | |
31642 | char *kwnames[] = { | |
31643 | (char *) "self", NULL | |
31644 | }; | |
31645 | ||
31646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31647 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
31649 | { |
31650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31651 | delete arg1; | |
31652 | ||
31653 | wxPyEndAllowThreads(__tstate); | |
31654 | if (PyErr_Occurred()) SWIG_fail; | |
31655 | } | |
31656 | Py_INCREF(Py_None); resultobj = Py_None; | |
31657 | return resultobj; | |
31658 | fail: | |
31659 | return NULL; | |
31660 | } | |
31661 | ||
31662 | ||
c32bde28 | 31663 | static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31664 | PyObject *resultobj = NULL; |
4276dc52 RD |
31665 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31666 | wxVideoMode *arg2 = 0 ; | |
31667 | bool result; | |
31668 | PyObject * obj0 = 0 ; | |
31669 | PyObject * obj1 = 0 ; | |
31670 | char *kwnames[] = { | |
31671 | (char *) "self",(char *) "other", NULL | |
31672 | }; | |
31673 | ||
31674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31675 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31676 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31677 | { | |
31678 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
31679 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31680 | if (arg2 == NULL) { | |
31681 | SWIG_null_ref("wxVideoMode"); | |
31682 | } | |
31683 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4276dc52 RD |
31684 | } |
31685 | { | |
31686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31687 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
31688 | ||
31689 | wxPyEndAllowThreads(__tstate); | |
31690 | if (PyErr_Occurred()) SWIG_fail; | |
31691 | } | |
4f89f6a3 RD |
31692 | { |
31693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31694 | } | |
4276dc52 RD |
31695 | return resultobj; |
31696 | fail: | |
31697 | return NULL; | |
31698 | } | |
31699 | ||
31700 | ||
c32bde28 | 31701 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31702 | PyObject *resultobj = NULL; |
4276dc52 RD |
31703 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31704 | int result; | |
31705 | PyObject * obj0 = 0 ; | |
31706 | char *kwnames[] = { | |
31707 | (char *) "self", NULL | |
31708 | }; | |
31709 | ||
31710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31711 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
31713 | { |
31714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31715 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
31716 | ||
31717 | wxPyEndAllowThreads(__tstate); | |
31718 | if (PyErr_Occurred()) SWIG_fail; | |
31719 | } | |
093d3ff1 | 31720 | { |
32fe5131 | 31721 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31722 | } |
4276dc52 RD |
31723 | return resultobj; |
31724 | fail: | |
31725 | return NULL; | |
31726 | } | |
31727 | ||
31728 | ||
c32bde28 | 31729 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31730 | PyObject *resultobj = NULL; |
4276dc52 RD |
31731 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31732 | int result; | |
31733 | PyObject * obj0 = 0 ; | |
31734 | char *kwnames[] = { | |
31735 | (char *) "self", NULL | |
31736 | }; | |
31737 | ||
31738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
31741 | { |
31742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31743 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
31744 | ||
31745 | wxPyEndAllowThreads(__tstate); | |
31746 | if (PyErr_Occurred()) SWIG_fail; | |
31747 | } | |
093d3ff1 | 31748 | { |
32fe5131 | 31749 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31750 | } |
4276dc52 RD |
31751 | return resultobj; |
31752 | fail: | |
31753 | return NULL; | |
31754 | } | |
31755 | ||
31756 | ||
c32bde28 | 31757 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31758 | PyObject *resultobj = NULL; |
4276dc52 RD |
31759 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31760 | int result; | |
31761 | PyObject * obj0 = 0 ; | |
31762 | char *kwnames[] = { | |
31763 | (char *) "self", NULL | |
31764 | }; | |
31765 | ||
31766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
31769 | { |
31770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31771 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
31772 | ||
31773 | wxPyEndAllowThreads(__tstate); | |
31774 | if (PyErr_Occurred()) SWIG_fail; | |
31775 | } | |
093d3ff1 | 31776 | { |
32fe5131 | 31777 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31778 | } |
4276dc52 RD |
31779 | return resultobj; |
31780 | fail: | |
31781 | return NULL; | |
31782 | } | |
31783 | ||
31784 | ||
c32bde28 | 31785 | static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31786 | PyObject *resultobj = NULL; |
4276dc52 RD |
31787 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31788 | bool result; | |
31789 | PyObject * obj0 = 0 ; | |
31790 | char *kwnames[] = { | |
31791 | (char *) "self", NULL | |
31792 | }; | |
31793 | ||
31794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
31797 | { |
31798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31799 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
31800 | ||
31801 | wxPyEndAllowThreads(__tstate); | |
31802 | if (PyErr_Occurred()) SWIG_fail; | |
31803 | } | |
4f89f6a3 RD |
31804 | { |
31805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31806 | } | |
4276dc52 RD |
31807 | return resultobj; |
31808 | fail: | |
31809 | return NULL; | |
31810 | } | |
31811 | ||
31812 | ||
c32bde28 | 31813 | static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31814 | PyObject *resultobj = NULL; |
4276dc52 RD |
31815 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31816 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
31817 | bool result; | |
31818 | PyObject * obj0 = 0 ; | |
31819 | PyObject * obj1 = 0 ; | |
31820 | char *kwnames[] = { | |
31821 | (char *) "self",(char *) "other", NULL | |
31822 | }; | |
31823 | ||
31824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31827 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
31828 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4276dc52 RD |
31829 | { |
31830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31831 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
31832 | ||
31833 | wxPyEndAllowThreads(__tstate); | |
31834 | if (PyErr_Occurred()) SWIG_fail; | |
31835 | } | |
4f89f6a3 RD |
31836 | { |
31837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31838 | } | |
4276dc52 RD |
31839 | return resultobj; |
31840 | fail: | |
31841 | return NULL; | |
31842 | } | |
31843 | ||
31844 | ||
c32bde28 | 31845 | static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31846 | PyObject *resultobj = NULL; |
4276dc52 RD |
31847 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31848 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
31849 | bool result; | |
31850 | PyObject * obj0 = 0 ; | |
31851 | PyObject * obj1 = 0 ; | |
31852 | char *kwnames[] = { | |
31853 | (char *) "self",(char *) "other", NULL | |
31854 | }; | |
31855 | ||
31856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31859 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
31860 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4276dc52 RD |
31861 | { |
31862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31863 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
31864 | ||
31865 | wxPyEndAllowThreads(__tstate); | |
31866 | if (PyErr_Occurred()) SWIG_fail; | |
31867 | } | |
4f89f6a3 RD |
31868 | { |
31869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31870 | } | |
4276dc52 RD |
31871 | return resultobj; |
31872 | fail: | |
31873 | return NULL; | |
31874 | } | |
31875 | ||
31876 | ||
c32bde28 | 31877 | static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31878 | PyObject *resultobj = NULL; |
4276dc52 RD |
31879 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31880 | int arg2 ; | |
31881 | PyObject * obj0 = 0 ; | |
31882 | PyObject * obj1 = 0 ; | |
31883 | char *kwnames[] = { | |
31884 | (char *) "self",(char *) "w", NULL | |
31885 | }; | |
31886 | ||
31887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31888 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31889 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31890 | { | |
32fe5131 | 31891 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31892 | if (SWIG_arg_fail(2)) SWIG_fail; |
31893 | } | |
4276dc52 RD |
31894 | if (arg1) (arg1)->w = arg2; |
31895 | ||
31896 | Py_INCREF(Py_None); resultobj = Py_None; | |
31897 | return resultobj; | |
31898 | fail: | |
31899 | return NULL; | |
31900 | } | |
31901 | ||
31902 | ||
c32bde28 | 31903 | static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31904 | PyObject *resultobj = NULL; |
4276dc52 RD |
31905 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31906 | int result; | |
31907 | PyObject * obj0 = 0 ; | |
31908 | char *kwnames[] = { | |
31909 | (char *) "self", NULL | |
31910 | }; | |
31911 | ||
31912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
31915 | result = (int) ((arg1)->w); |
31916 | ||
093d3ff1 | 31917 | { |
32fe5131 | 31918 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31919 | } |
4276dc52 RD |
31920 | return resultobj; |
31921 | fail: | |
31922 | return NULL; | |
31923 | } | |
31924 | ||
31925 | ||
c32bde28 | 31926 | static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31927 | PyObject *resultobj = NULL; |
4276dc52 RD |
31928 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31929 | int arg2 ; | |
31930 | PyObject * obj0 = 0 ; | |
31931 | PyObject * obj1 = 0 ; | |
31932 | char *kwnames[] = { | |
31933 | (char *) "self",(char *) "h", NULL | |
31934 | }; | |
31935 | ||
31936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31939 | { | |
32fe5131 | 31940 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31941 | if (SWIG_arg_fail(2)) SWIG_fail; |
31942 | } | |
4276dc52 RD |
31943 | if (arg1) (arg1)->h = arg2; |
31944 | ||
31945 | Py_INCREF(Py_None); resultobj = Py_None; | |
31946 | return resultobj; | |
31947 | fail: | |
31948 | return NULL; | |
31949 | } | |
31950 | ||
31951 | ||
c32bde28 | 31952 | static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31953 | PyObject *resultobj = NULL; |
4276dc52 RD |
31954 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31955 | int result; | |
31956 | PyObject * obj0 = 0 ; | |
31957 | char *kwnames[] = { | |
31958 | (char *) "self", NULL | |
31959 | }; | |
31960 | ||
31961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31962 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
31964 | result = (int) ((arg1)->h); |
31965 | ||
093d3ff1 | 31966 | { |
32fe5131 | 31967 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 31968 | } |
4276dc52 RD |
31969 | return resultobj; |
31970 | fail: | |
31971 | return NULL; | |
31972 | } | |
31973 | ||
31974 | ||
c32bde28 | 31975 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31976 | PyObject *resultobj = NULL; |
4276dc52 RD |
31977 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
31978 | int arg2 ; | |
31979 | PyObject * obj0 = 0 ; | |
31980 | PyObject * obj1 = 0 ; | |
31981 | char *kwnames[] = { | |
31982 | (char *) "self",(char *) "bpp", NULL | |
31983 | }; | |
31984 | ||
31985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
31987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31988 | { | |
32fe5131 | 31989 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
31990 | if (SWIG_arg_fail(2)) SWIG_fail; |
31991 | } | |
4276dc52 RD |
31992 | if (arg1) (arg1)->bpp = arg2; |
31993 | ||
31994 | Py_INCREF(Py_None); resultobj = Py_None; | |
31995 | return resultobj; | |
31996 | fail: | |
31997 | return NULL; | |
31998 | } | |
31999 | ||
32000 | ||
c32bde28 | 32001 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32002 | PyObject *resultobj = NULL; |
4276dc52 RD |
32003 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
32004 | int result; | |
32005 | PyObject * obj0 = 0 ; | |
32006 | char *kwnames[] = { | |
32007 | (char *) "self", NULL | |
32008 | }; | |
32009 | ||
32010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
32012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
32013 | result = (int) ((arg1)->bpp); |
32014 | ||
093d3ff1 | 32015 | { |
32fe5131 | 32016 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 32017 | } |
4276dc52 RD |
32018 | return resultobj; |
32019 | fail: | |
32020 | return NULL; | |
32021 | } | |
32022 | ||
32023 | ||
c32bde28 | 32024 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32025 | PyObject *resultobj = NULL; |
4276dc52 RD |
32026 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
32027 | int arg2 ; | |
32028 | PyObject * obj0 = 0 ; | |
32029 | PyObject * obj1 = 0 ; | |
32030 | char *kwnames[] = { | |
32031 | (char *) "self",(char *) "refresh", NULL | |
32032 | }; | |
32033 | ||
32034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32035 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
32036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32037 | { | |
32fe5131 | 32038 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
32039 | if (SWIG_arg_fail(2)) SWIG_fail; |
32040 | } | |
4276dc52 RD |
32041 | if (arg1) (arg1)->refresh = arg2; |
32042 | ||
32043 | Py_INCREF(Py_None); resultobj = Py_None; | |
32044 | return resultobj; | |
32045 | fail: | |
32046 | return NULL; | |
32047 | } | |
32048 | ||
32049 | ||
c32bde28 | 32050 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32051 | PyObject *resultobj = NULL; |
4276dc52 RD |
32052 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; |
32053 | int result; | |
32054 | PyObject * obj0 = 0 ; | |
32055 | char *kwnames[] = { | |
32056 | (char *) "self", NULL | |
32057 | }; | |
32058 | ||
32059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32060 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
32061 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
32062 | result = (int) ((arg1)->refresh); |
32063 | ||
093d3ff1 | 32064 | { |
32fe5131 | 32065 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 32066 | } |
4276dc52 RD |
32067 | return resultobj; |
32068 | fail: | |
32069 | return NULL; | |
32070 | } | |
32071 | ||
32072 | ||
c32bde28 | 32073 | static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) { |
4276dc52 RD |
32074 | PyObject *obj; |
32075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32076 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
32077 | Py_INCREF(obj); | |
32078 | return Py_BuildValue((char *)""); | |
32079 | } | |
c32bde28 | 32080 | static int _wrap_DefaultVideoMode_set(PyObject *) { |
4276dc52 RD |
32081 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); |
32082 | return 1; | |
32083 | } | |
32084 | ||
32085 | ||
093d3ff1 | 32086 | static PyObject *_wrap_DefaultVideoMode_get(void) { |
32fe5131 | 32087 | PyObject *pyobj = NULL; |
4276dc52 RD |
32088 | |
32089 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
32090 | return pyobj; | |
32091 | } | |
32092 | ||
32093 | ||
c32bde28 | 32094 | static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32095 | PyObject *resultobj = NULL; |
4276dc52 RD |
32096 | size_t arg1 = (size_t) 0 ; |
32097 | wxDisplay *result; | |
32098 | PyObject * obj0 = 0 ; | |
32099 | char *kwnames[] = { | |
32100 | (char *) "index", NULL | |
32101 | }; | |
32102 | ||
32103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
32104 | if (obj0) { | |
093d3ff1 | 32105 | { |
32fe5131 | 32106 | arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
32107 | if (SWIG_arg_fail(1)) SWIG_fail; |
32108 | } | |
4276dc52 RD |
32109 | } |
32110 | { | |
32111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32112 | result = (wxDisplay *)new wxDisplay(arg1); | |
32113 | ||
32114 | wxPyEndAllowThreads(__tstate); | |
32115 | if (PyErr_Occurred()) SWIG_fail; | |
32116 | } | |
32117 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
32118 | return resultobj; | |
32119 | fail: | |
32120 | return NULL; | |
32121 | } | |
32122 | ||
32123 | ||
c32bde28 | 32124 | static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32125 | PyObject *resultobj = NULL; |
4276dc52 RD |
32126 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32127 | PyObject * obj0 = 0 ; | |
32128 | char *kwnames[] = { | |
32129 | (char *) "self", NULL | |
32130 | }; | |
32131 | ||
32132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
32135 | { |
32136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32137 | delete arg1; | |
32138 | ||
32139 | wxPyEndAllowThreads(__tstate); | |
32140 | if (PyErr_Occurred()) SWIG_fail; | |
32141 | } | |
32142 | Py_INCREF(Py_None); resultobj = Py_None; | |
32143 | return resultobj; | |
32144 | fail: | |
32145 | return NULL; | |
32146 | } | |
32147 | ||
32148 | ||
c32bde28 | 32149 | static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32150 | PyObject *resultobj = NULL; |
4276dc52 RD |
32151 | size_t result; |
32152 | char *kwnames[] = { | |
32153 | NULL | |
32154 | }; | |
32155 | ||
32156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
32157 | { | |
32158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32159 | result = (size_t)wxDisplay::GetCount(); | |
32160 | ||
32161 | wxPyEndAllowThreads(__tstate); | |
32162 | if (PyErr_Occurred()) SWIG_fail; | |
32163 | } | |
093d3ff1 | 32164 | { |
32fe5131 | 32165 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 32166 | } |
4276dc52 RD |
32167 | return resultobj; |
32168 | fail: | |
32169 | return NULL; | |
32170 | } | |
32171 | ||
32172 | ||
c32bde28 | 32173 | static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32174 | PyObject *resultobj = NULL; |
4276dc52 RD |
32175 | wxPoint *arg1 = 0 ; |
32176 | int result; | |
32177 | wxPoint temp1 ; | |
32178 | PyObject * obj0 = 0 ; | |
32179 | char *kwnames[] = { | |
32180 | (char *) "pt", NULL | |
32181 | }; | |
32182 | ||
32183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
32184 | { | |
32185 | arg1 = &temp1; | |
32186 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
32187 | } | |
32188 | { | |
32189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32190 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
32191 | ||
32192 | wxPyEndAllowThreads(__tstate); | |
32193 | if (PyErr_Occurred()) SWIG_fail; | |
32194 | } | |
093d3ff1 | 32195 | { |
32fe5131 | 32196 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 32197 | } |
4276dc52 RD |
32198 | return resultobj; |
32199 | fail: | |
32200 | return NULL; | |
32201 | } | |
32202 | ||
32203 | ||
c32bde28 | 32204 | static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32205 | PyObject *resultobj = NULL; |
4276dc52 RD |
32206 | wxWindow *arg1 = (wxWindow *) 0 ; |
32207 | int result; | |
32208 | PyObject * obj0 = 0 ; | |
32209 | char *kwnames[] = { | |
32210 | (char *) "window", NULL | |
32211 | }; | |
32212 | ||
32213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32214 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32215 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
32216 | { |
32217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 32218 | result = (int)wxDisplay_GetFromWindow(arg1); |
4276dc52 RD |
32219 | |
32220 | wxPyEndAllowThreads(__tstate); | |
32221 | if (PyErr_Occurred()) SWIG_fail; | |
32222 | } | |
093d3ff1 | 32223 | { |
32fe5131 | 32224 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 32225 | } |
4276dc52 RD |
32226 | return resultobj; |
32227 | fail: | |
32228 | return NULL; | |
32229 | } | |
32230 | ||
32231 | ||
c32bde28 | 32232 | static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32233 | PyObject *resultobj = NULL; |
4276dc52 RD |
32234 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32235 | bool result; | |
32236 | PyObject * obj0 = 0 ; | |
32237 | char *kwnames[] = { | |
32238 | (char *) "self", NULL | |
32239 | }; | |
32240 | ||
32241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
32244 | { |
32245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32246 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
32247 | ||
32248 | wxPyEndAllowThreads(__tstate); | |
32249 | if (PyErr_Occurred()) SWIG_fail; | |
32250 | } | |
4f89f6a3 RD |
32251 | { |
32252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32253 | } | |
4276dc52 RD |
32254 | return resultobj; |
32255 | fail: | |
32256 | return NULL; | |
32257 | } | |
32258 | ||
32259 | ||
c32bde28 | 32260 | static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32261 | PyObject *resultobj = NULL; |
4276dc52 RD |
32262 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32263 | wxRect result; | |
32264 | PyObject * obj0 = 0 ; | |
32265 | char *kwnames[] = { | |
32266 | (char *) "self", NULL | |
32267 | }; | |
32268 | ||
32269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
32272 | { |
32273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32274 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
32275 | ||
32276 | wxPyEndAllowThreads(__tstate); | |
32277 | if (PyErr_Occurred()) SWIG_fail; | |
32278 | } | |
32279 | { | |
32280 | wxRect * resultptr; | |
32fe5131 | 32281 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
4276dc52 RD |
32282 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
32283 | } | |
32284 | return resultobj; | |
32285 | fail: | |
32286 | return NULL; | |
32287 | } | |
32288 | ||
32289 | ||
c32bde28 | 32290 | static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32291 | PyObject *resultobj = NULL; |
4276dc52 RD |
32292 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32293 | wxString result; | |
32294 | PyObject * obj0 = 0 ; | |
32295 | char *kwnames[] = { | |
32296 | (char *) "self", NULL | |
32297 | }; | |
32298 | ||
32299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32300 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32301 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
32302 | { |
32303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32304 | result = ((wxDisplay const *)arg1)->GetName(); | |
32305 | ||
32306 | wxPyEndAllowThreads(__tstate); | |
32307 | if (PyErr_Occurred()) SWIG_fail; | |
32308 | } | |
32309 | { | |
32310 | #if wxUSE_UNICODE | |
32311 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32312 | #else | |
32313 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32314 | #endif | |
32315 | } | |
32316 | return resultobj; | |
32317 | fail: | |
32318 | return NULL; | |
32319 | } | |
32320 | ||
32321 | ||
c32bde28 | 32322 | static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32323 | PyObject *resultobj = NULL; |
4276dc52 RD |
32324 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32325 | bool result; | |
32326 | PyObject * obj0 = 0 ; | |
32327 | char *kwnames[] = { | |
32328 | (char *) "self", NULL | |
32329 | }; | |
32330 | ||
32331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32332 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32333 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
32334 | { |
32335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32336 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
32337 | ||
32338 | wxPyEndAllowThreads(__tstate); | |
32339 | if (PyErr_Occurred()) SWIG_fail; | |
32340 | } | |
4f89f6a3 RD |
32341 | { |
32342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32343 | } | |
4276dc52 RD |
32344 | return resultobj; |
32345 | fail: | |
32346 | return NULL; | |
32347 | } | |
32348 | ||
32349 | ||
c32bde28 | 32350 | static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32351 | PyObject *resultobj = NULL; |
4276dc52 RD |
32352 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32353 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
32354 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
32355 | PyObject *result; | |
32356 | PyObject * obj0 = 0 ; | |
32357 | PyObject * obj1 = 0 ; | |
32358 | char *kwnames[] = { | |
32359 | (char *) "self",(char *) "mode", NULL | |
32360 | }; | |
32361 | ||
32362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 | 32365 | if (obj1) { |
093d3ff1 RD |
32366 | { |
32367 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
32368 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32369 | if (arg2 == NULL) { | |
32370 | SWIG_null_ref("wxVideoMode"); | |
32371 | } | |
32372 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4276dc52 RD |
32373 | } |
32374 | } | |
32375 | { | |
32376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32377 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
32378 | ||
32379 | wxPyEndAllowThreads(__tstate); | |
32380 | if (PyErr_Occurred()) SWIG_fail; | |
32381 | } | |
32382 | resultobj = result; | |
32383 | return resultobj; | |
32384 | fail: | |
32385 | return NULL; | |
32386 | } | |
32387 | ||
32388 | ||
c32bde28 | 32389 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32390 | PyObject *resultobj = NULL; |
4276dc52 RD |
32391 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32392 | wxVideoMode result; | |
32393 | PyObject * obj0 = 0 ; | |
32394 | char *kwnames[] = { | |
32395 | (char *) "self", NULL | |
32396 | }; | |
32397 | ||
32398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
32401 | { |
32402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32403 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
32404 | ||
32405 | wxPyEndAllowThreads(__tstate); | |
32406 | if (PyErr_Occurred()) SWIG_fail; | |
32407 | } | |
32408 | { | |
32409 | wxVideoMode * resultptr; | |
32fe5131 | 32410 | resultptr = new wxVideoMode(static_cast<wxVideoMode & >(result)); |
4276dc52 RD |
32411 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); |
32412 | } | |
32413 | return resultobj; | |
32414 | fail: | |
32415 | return NULL; | |
32416 | } | |
32417 | ||
32418 | ||
c32bde28 | 32419 | static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32420 | PyObject *resultobj = NULL; |
4276dc52 RD |
32421 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32422 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
32423 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
32424 | bool result; | |
32425 | PyObject * obj0 = 0 ; | |
32426 | PyObject * obj1 = 0 ; | |
32427 | char *kwnames[] = { | |
32428 | (char *) "self",(char *) "mode", NULL | |
32429 | }; | |
32430 | ||
32431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 | 32434 | if (obj1) { |
093d3ff1 RD |
32435 | { |
32436 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
32437 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32438 | if (arg2 == NULL) { | |
32439 | SWIG_null_ref("wxVideoMode"); | |
32440 | } | |
32441 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4276dc52 RD |
32442 | } |
32443 | } | |
32444 | { | |
32445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32446 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
32447 | ||
32448 | wxPyEndAllowThreads(__tstate); | |
32449 | if (PyErr_Occurred()) SWIG_fail; | |
32450 | } | |
4f89f6a3 RD |
32451 | { |
32452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32453 | } | |
4276dc52 RD |
32454 | return resultobj; |
32455 | fail: | |
32456 | return NULL; | |
32457 | } | |
32458 | ||
32459 | ||
c32bde28 | 32460 | static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32461 | PyObject *resultobj = NULL; |
4276dc52 RD |
32462 | wxDisplay *arg1 = (wxDisplay *) 0 ; |
32463 | PyObject * obj0 = 0 ; | |
32464 | char *kwnames[] = { | |
32465 | (char *) "self", NULL | |
32466 | }; | |
32467 | ||
32468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32469 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
32470 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
32471 | { |
32472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32473 | (arg1)->ResetMode(); | |
32474 | ||
32475 | wxPyEndAllowThreads(__tstate); | |
32476 | if (PyErr_Occurred()) SWIG_fail; | |
32477 | } | |
32478 | Py_INCREF(Py_None); resultobj = Py_None; | |
32479 | return resultobj; | |
32480 | fail: | |
32481 | return NULL; | |
32482 | } | |
32483 | ||
32484 | ||
c32bde28 | 32485 | static PyObject * Display_swigregister(PyObject *, PyObject *args) { |
4276dc52 RD |
32486 | PyObject *obj; |
32487 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32488 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
32489 | Py_INCREF(obj); | |
32490 | return Py_BuildValue((char *)""); | |
32491 | } | |
d3b6e4ff | 32492 | static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32493 | PyObject *resultobj = NULL; |
d3b6e4ff RD |
32494 | wxStandardPaths *result; |
32495 | char *kwnames[] = { | |
32496 | NULL | |
32497 | }; | |
32498 | ||
32499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail; | |
32500 | { | |
32501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 32502 | result = (wxStandardPaths *)wxStandardPaths_Get(); |
d3b6e4ff RD |
32503 | |
32504 | wxPyEndAllowThreads(__tstate); | |
32505 | if (PyErr_Occurred()) SWIG_fail; | |
32506 | } | |
32507 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0); | |
32508 | return resultobj; | |
32509 | fail: | |
32510 | return NULL; | |
32511 | } | |
32512 | ||
32513 | ||
32514 | static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 32515 | PyObject *resultobj = NULL; |
d3b6e4ff RD |
32516 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32517 | wxString result; | |
32518 | PyObject * obj0 = 0 ; | |
32519 | char *kwnames[] = { | |
32520 | (char *) "self", NULL | |
32521 | }; | |
32522 | ||
32523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
32526 | { |
32527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32528 | result = ((wxStandardPaths const *)arg1)->GetConfigDir(); | |
32529 | ||
32530 | wxPyEndAllowThreads(__tstate); | |
32531 | if (PyErr_Occurred()) SWIG_fail; | |
32532 | } | |
32533 | { | |
32534 | #if wxUSE_UNICODE | |
32535 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32536 | #else | |
32537 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32538 | #endif | |
32539 | } | |
32540 | return resultobj; | |
32541 | fail: | |
32542 | return NULL; | |
32543 | } | |
32544 | ||
32545 | ||
32546 | static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 32547 | PyObject *resultobj = NULL; |
d3b6e4ff RD |
32548 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32549 | wxString result; | |
32550 | PyObject * obj0 = 0 ; | |
32551 | char *kwnames[] = { | |
32552 | (char *) "self", NULL | |
32553 | }; | |
32554 | ||
32555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32556 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32557 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
32558 | { |
32559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32560 | result = ((wxStandardPaths const *)arg1)->GetUserConfigDir(); | |
32561 | ||
32562 | wxPyEndAllowThreads(__tstate); | |
32563 | if (PyErr_Occurred()) SWIG_fail; | |
32564 | } | |
32565 | { | |
32566 | #if wxUSE_UNICODE | |
32567 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32568 | #else | |
32569 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32570 | #endif | |
32571 | } | |
32572 | return resultobj; | |
32573 | fail: | |
32574 | return NULL; | |
32575 | } | |
32576 | ||
32577 | ||
32578 | static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 32579 | PyObject *resultobj = NULL; |
d3b6e4ff RD |
32580 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32581 | wxString result; | |
32582 | PyObject * obj0 = 0 ; | |
32583 | char *kwnames[] = { | |
32584 | (char *) "self", NULL | |
32585 | }; | |
32586 | ||
32587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
32590 | { |
32591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32592 | result = ((wxStandardPaths const *)arg1)->GetDataDir(); | |
32593 | ||
32594 | wxPyEndAllowThreads(__tstate); | |
32595 | if (PyErr_Occurred()) SWIG_fail; | |
32596 | } | |
32597 | { | |
32598 | #if wxUSE_UNICODE | |
32599 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32600 | #else | |
32601 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32602 | #endif | |
32603 | } | |
32604 | return resultobj; | |
32605 | fail: | |
32606 | return NULL; | |
32607 | } | |
32608 | ||
32609 | ||
32610 | static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 32611 | PyObject *resultobj = NULL; |
d3b6e4ff RD |
32612 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32613 | wxString result; | |
32614 | PyObject * obj0 = 0 ; | |
32615 | char *kwnames[] = { | |
32616 | (char *) "self", NULL | |
32617 | }; | |
32618 | ||
32619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32620 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
32622 | { |
32623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32624 | result = ((wxStandardPaths const *)arg1)->GetLocalDataDir(); | |
32625 | ||
32626 | wxPyEndAllowThreads(__tstate); | |
32627 | if (PyErr_Occurred()) SWIG_fail; | |
32628 | } | |
32629 | { | |
32630 | #if wxUSE_UNICODE | |
32631 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32632 | #else | |
32633 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32634 | #endif | |
32635 | } | |
32636 | return resultobj; | |
32637 | fail: | |
32638 | return NULL; | |
32639 | } | |
32640 | ||
32641 | ||
32642 | static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 32643 | PyObject *resultobj = NULL; |
d3b6e4ff RD |
32644 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32645 | wxString result; | |
32646 | PyObject * obj0 = 0 ; | |
32647 | char *kwnames[] = { | |
32648 | (char *) "self", NULL | |
32649 | }; | |
32650 | ||
32651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
32654 | { |
32655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32656 | result = ((wxStandardPaths const *)arg1)->GetUserDataDir(); | |
32657 | ||
32658 | wxPyEndAllowThreads(__tstate); | |
32659 | if (PyErr_Occurred()) SWIG_fail; | |
32660 | } | |
32661 | { | |
32662 | #if wxUSE_UNICODE | |
32663 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32664 | #else | |
32665 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32666 | #endif | |
32667 | } | |
32668 | return resultobj; | |
32669 | fail: | |
32670 | return NULL; | |
32671 | } | |
32672 | ||
32673 | ||
32674 | static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 32675 | PyObject *resultobj = NULL; |
d3b6e4ff RD |
32676 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32677 | wxString result; | |
32678 | PyObject * obj0 = 0 ; | |
32679 | char *kwnames[] = { | |
32680 | (char *) "self", NULL | |
32681 | }; | |
32682 | ||
32683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32684 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32685 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
32686 | { |
32687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32688 | result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir(); | |
32689 | ||
32690 | wxPyEndAllowThreads(__tstate); | |
32691 | if (PyErr_Occurred()) SWIG_fail; | |
32692 | } | |
32693 | { | |
32694 | #if wxUSE_UNICODE | |
32695 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32696 | #else | |
32697 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32698 | #endif | |
32699 | } | |
32700 | return resultobj; | |
32701 | fail: | |
32702 | return NULL; | |
32703 | } | |
32704 | ||
32705 | ||
32706 | static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 32707 | PyObject *resultobj = NULL; |
d3b6e4ff RD |
32708 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32709 | wxString result; | |
32710 | PyObject * obj0 = 0 ; | |
32711 | char *kwnames[] = { | |
32712 | (char *) "self", NULL | |
32713 | }; | |
32714 | ||
32715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
32718 | { |
32719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32720 | result = ((wxStandardPaths const *)arg1)->GetPluginsDir(); | |
32721 | ||
32722 | wxPyEndAllowThreads(__tstate); | |
32723 | if (PyErr_Occurred()) SWIG_fail; | |
32724 | } | |
32725 | { | |
32726 | #if wxUSE_UNICODE | |
32727 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32728 | #else | |
32729 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32730 | #endif | |
32731 | } | |
32732 | return resultobj; | |
32733 | fail: | |
32734 | return NULL; | |
32735 | } | |
32736 | ||
32737 | ||
32738 | static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 32739 | PyObject *resultobj = NULL; |
d3b6e4ff RD |
32740 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32741 | wxString *arg2 = 0 ; | |
32742 | bool temp2 = false ; | |
32743 | PyObject * obj0 = 0 ; | |
32744 | PyObject * obj1 = 0 ; | |
32745 | char *kwnames[] = { | |
32746 | (char *) "self",(char *) "prefix", NULL | |
32747 | }; | |
32748 | ||
32749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32750 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32751 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
32752 | { |
32753 | arg2 = wxString_in_helper(obj1); | |
32754 | if (arg2 == NULL) SWIG_fail; | |
32755 | temp2 = true; | |
32756 | } | |
32757 | { | |
32758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32759 | (arg1)->SetInstallPrefix((wxString const &)*arg2); | |
32760 | ||
32761 | wxPyEndAllowThreads(__tstate); | |
32762 | if (PyErr_Occurred()) SWIG_fail; | |
32763 | } | |
32764 | Py_INCREF(Py_None); resultobj = Py_None; | |
32765 | { | |
32766 | if (temp2) | |
32767 | delete arg2; | |
32768 | } | |
32769 | return resultobj; | |
32770 | fail: | |
32771 | { | |
32772 | if (temp2) | |
32773 | delete arg2; | |
32774 | } | |
32775 | return NULL; | |
32776 | } | |
32777 | ||
32778 | ||
32779 | static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 32780 | PyObject *resultobj = NULL; |
d3b6e4ff RD |
32781 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; |
32782 | wxString result; | |
32783 | PyObject * obj0 = 0 ; | |
32784 | char *kwnames[] = { | |
32785 | (char *) "self", NULL | |
32786 | }; | |
32787 | ||
32788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
32790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
32791 | { |
32792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32793 | result = ((wxStandardPaths const *)arg1)->GetInstallPrefix(); | |
32794 | ||
32795 | wxPyEndAllowThreads(__tstate); | |
32796 | if (PyErr_Occurred()) SWIG_fail; | |
32797 | } | |
32798 | { | |
32799 | #if wxUSE_UNICODE | |
32800 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32801 | #else | |
32802 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32803 | #endif | |
32804 | } | |
32805 | return resultobj; | |
32806 | fail: | |
32807 | return NULL; | |
32808 | } | |
32809 | ||
32810 | ||
32811 | static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) { | |
32812 | PyObject *obj; | |
32813 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32814 | SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj); | |
32815 | Py_INCREF(obj); | |
32816 | return Py_BuildValue((char *)""); | |
32817 | } | |
d14a1e28 | 32818 | static PyMethodDef SwigMethods[] = { |
093d3ff1 RD |
32819 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
32820 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32821 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32822 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32823 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32824 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32825 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL}, | |
32826 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32827 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32828 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32829 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32830 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32831 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
396fb509 | 32832 | { (char *)"SystemOptions_IsFalse", (PyCFunction) _wrap_SystemOptions_IsFalse, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
32833 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL}, |
32834 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32835 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32836 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32837 | { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32838 | { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32839 | { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32840 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32841 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32842 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
32843 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL}, |
32844 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32845 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32846 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32847 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32848 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32849 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32850 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32851 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32852 | { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32853 | { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32854 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32855 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32856 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32857 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32858 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32859 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32860 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32861 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32862 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32863 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32864 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32865 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32866 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32867 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32868 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32869 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32870 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32871 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32872 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32873 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
32874 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL}, |
32875 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32876 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32877 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32878 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32879 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32880 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32881 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32882 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32883 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
73c8ef6a | 32884 | { (char *)"GetXDisplay", (PyCFunction) _wrap_GetXDisplay, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 32885 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, |
32fe5131 RD |
32886 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
32887 | { (char *)"FindWindowAtPointer", (PyCFunction) _wrap_FindWindowAtPointer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
32888 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
32889 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32890 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32891 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
d04418a7 | 32892 | { (char *)"LaunchDefaultBrowser", (PyCFunction) _wrap_LaunchDefaultBrowser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 32893 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL}, |
32fe5131 RD |
32894 | { (char *)"new_MouseState", (PyCFunction) _wrap_new_MouseState, METH_VARARGS | METH_KEYWORDS, NULL}, |
32895 | { (char *)"delete_MouseState", (PyCFunction) _wrap_delete_MouseState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32896 | { (char *)"MouseState_GetX", (PyCFunction) _wrap_MouseState_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32897 | { (char *)"MouseState_GetY", (PyCFunction) _wrap_MouseState_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32898 | { (char *)"MouseState_LeftDown", (PyCFunction) _wrap_MouseState_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32899 | { (char *)"MouseState_MiddleDown", (PyCFunction) _wrap_MouseState_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32900 | { (char *)"MouseState_RightDown", (PyCFunction) _wrap_MouseState_RightDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32901 | { (char *)"MouseState_ControlDown", (PyCFunction) _wrap_MouseState_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32902 | { (char *)"MouseState_ShiftDown", (PyCFunction) _wrap_MouseState_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32903 | { (char *)"MouseState_AltDown", (PyCFunction) _wrap_MouseState_AltDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32904 | { (char *)"MouseState_MetaDown", (PyCFunction) _wrap_MouseState_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32905 | { (char *)"MouseState_CmdDown", (PyCFunction) _wrap_MouseState_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32906 | { (char *)"MouseState_SetX", (PyCFunction) _wrap_MouseState_SetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32907 | { (char *)"MouseState_SetY", (PyCFunction) _wrap_MouseState_SetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32908 | { (char *)"MouseState_SetLeftDown", (PyCFunction) _wrap_MouseState_SetLeftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32909 | { (char *)"MouseState_SetMiddleDown", (PyCFunction) _wrap_MouseState_SetMiddleDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32910 | { (char *)"MouseState_SetRightDown", (PyCFunction) _wrap_MouseState_SetRightDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32911 | { (char *)"MouseState_SetControlDown", (PyCFunction) _wrap_MouseState_SetControlDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32912 | { (char *)"MouseState_SetShiftDown", (PyCFunction) _wrap_MouseState_SetShiftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32913 | { (char *)"MouseState_SetAltDown", (PyCFunction) _wrap_MouseState_SetAltDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32914 | { (char *)"MouseState_SetMetaDown", (PyCFunction) _wrap_MouseState_SetMetaDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32915 | { (char *)"MouseState_swigregister", MouseState_swigregister, METH_VARARGS, NULL}, | |
32916 | { (char *)"GetMouseState", (PyCFunction) _wrap_GetMouseState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
32917 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL}, |
32918 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32919 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32920 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32921 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32922 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL}, | |
32923 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32924 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
7e08d4ef | 32925 | { (char *)"delete_ToolTip", (PyCFunction) _wrap_delete_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
32926 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL}, |
32927 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32928 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32929 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32930 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32931 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL}, | |
32932 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
7e08d4ef | 32933 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL}, |
8e738329 | 32934 | { (char *)"Caret_Destroy", (PyCFunction) _wrap_Caret_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
32935 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, |
32936 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32937 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32938 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32939 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32940 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32941 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32942 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32943 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32944 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32945 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32946 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32947 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
32948 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL}, |
32949 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8e738329 | 32950 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL}, |
093d3ff1 RD |
32951 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, |
32952 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32953 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL}, | |
32954 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32955 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32956 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL}, | |
32957 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32958 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32959 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL}, | |
32960 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32961 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32962 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32963 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32964 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32965 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL}, | |
32966 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32967 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32968 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32969 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32970 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32971 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32972 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32973 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32974 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32975 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32976 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32977 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32978 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32979 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL}, | |
32980 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32981 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32982 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32983 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32984 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32985 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL}, | |
68350608 | 32986 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
32987 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, |
32988 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32989 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32990 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32991 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL}, | |
32992 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32993 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32994 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL}, | |
32995 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32996 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32997 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32998 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32999 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33000 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33001 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33002 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33003 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
c26d9ab4 | 33004 | { (char *)"Timer_Notify", (PyCFunction) _wrap_Timer_Notify, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
33005 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL}, |
33006 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33007 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33008 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33009 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL}, | |
33010 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33011 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33012 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL}, | |
33013 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL}, | |
33014 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33015 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33016 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL}, | |
33017 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL}, | |
7e08d4ef | 33018 | { (char *)"delete_Log", (PyCFunction) _wrap_delete_Log, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
33019 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, |
33020 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33021 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33022 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33023 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33024 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33025 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33026 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33027 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33028 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33029 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33030 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33031 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33032 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33033 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33034 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33035 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33036 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33037 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33038 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33039 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33040 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33041 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33042 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33043 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33044 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL}, | |
33045 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33046 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL}, | |
33047 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33048 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL}, | |
33049 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33050 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL}, | |
33051 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33052 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33053 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33054 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33055 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33056 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33057 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL}, | |
33058 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33059 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33060 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33061 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33062 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33063 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL}, | |
53307de4 RD |
33064 | { (char *)"new_LogBuffer", (PyCFunction) _wrap_new_LogBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, |
33065 | { (char *)"LogBuffer_GetBuffer", (PyCFunction) _wrap_LogBuffer_GetBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33066 | { (char *)"LogBuffer_Flush", (PyCFunction) _wrap_LogBuffer_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33067 | { (char *)"LogBuffer_swigregister", LogBuffer_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
33068 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL}, |
33069 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33070 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33071 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33072 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33073 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33074 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33075 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33076 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33077 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33078 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33079 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33080 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33081 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL}, | |
33082 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33083 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33084 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33085 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL}, | |
33086 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33087 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33088 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL}, | |
33089 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33090 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33091 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33092 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33093 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
c26d9ab4 | 33094 | { (char *)"Process_OnTerminate", (PyCFunction) _wrap_Process_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
33095 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL}, |
33096 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33097 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33098 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33099 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33100 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33101 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33102 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33103 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33104 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33105 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL}, | |
33106 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33107 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33108 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33109 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33110 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33111 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33112 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33113 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL}, | |
33114 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33115 | { (char *)"Kill", (PyCFunction) _wrap_Kill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33116 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33117 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33118 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33119 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33120 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33121 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33122 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33123 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33124 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33125 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33126 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33127 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33128 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33129 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33130 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33131 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33132 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33133 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33134 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33135 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33136 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33137 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33138 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33139 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33140 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33141 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33142 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33143 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33144 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33145 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33146 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33147 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33148 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33149 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33150 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33151 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33152 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33153 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33154 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33155 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33156 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33157 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33158 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33159 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33160 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
33161 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
33162 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33163 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33164 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33165 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33166 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33167 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33168 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33169 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33170 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33171 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33172 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33173 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33174 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33175 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33176 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33177 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33178 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL}, | |
33179 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33180 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33181 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33182 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33183 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33184 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33185 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33186 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33187 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33188 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL}, | |
33189 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33190 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33191 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33192 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33193 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33194 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33195 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33196 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33197 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33198 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33199 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33200 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33201 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33202 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33203 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33204 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL}, | |
33205 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33206 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33207 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33208 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33209 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33210 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33211 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33212 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33213 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33214 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33215 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33216 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33217 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33218 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33219 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33220 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL}, | |
33221 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33222 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33223 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33224 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33225 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33226 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33227 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33228 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33229 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33230 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33231 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33232 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33233 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33234 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL}, | |
33235 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
7e08d4ef | 33236 | { (char *)"delete_ArtProvider", (PyCFunction) _wrap_delete_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
33237 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
33238 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33239 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33240 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33241 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33242 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
85ee4fe9 | 33243 | { (char *)"ArtProvider_GetSizeHint", (PyCFunction) _wrap_ArtProvider_GetSizeHint, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
33244 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, |
33245 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL}, | |
33246 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33247 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33248 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33249 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33250 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33251 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33252 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33253 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33254 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33255 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33256 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33257 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33258 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33259 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33260 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33261 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33262 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33263 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33264 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33265 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33266 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33267 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33268 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33269 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33270 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33271 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33272 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33273 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33274 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33275 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33276 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33277 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33278 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33279 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33280 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33281 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33282 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33283 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33284 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33285 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33286 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33287 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33288 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL}, | |
33289 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33290 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33291 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL}, | |
33292 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33293 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33294 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL}, | |
33295 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33296 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33297 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33298 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL}, | |
33299 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33300 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33301 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33302 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33303 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33304 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33305 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33306 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33307 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33308 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33309 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33310 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33311 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33312 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33313 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33314 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33315 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33316 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33317 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33318 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33319 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33320 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33321 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33322 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33323 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33324 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33325 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33326 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33327 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33328 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33329 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33330 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33331 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33332 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33333 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33334 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33335 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33336 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33337 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33338 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33339 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33340 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33341 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33342 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33343 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33344 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33345 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33346 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33347 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33348 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33349 | { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33350 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33351 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33352 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33353 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33354 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33355 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33356 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33357 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33358 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33359 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33360 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd RD |
33361 | { (char *)"DateTime_FromTimezone", (PyCFunction) _wrap_DateTime_FromTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, |
33362 | { (char *)"DateTime_MakeFromTimezone", (PyCFunction) _wrap_DateTime_MakeFromTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33363 | { (char *)"DateTime_ToUTC", (PyCFunction) _wrap_DateTime_ToUTC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33364 | { (char *)"DateTime_MakeUTC", (PyCFunction) _wrap_DateTime_MakeUTC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
33365 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL}, |
33366 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd RD |
33367 | { (char *)"DateTime_FromUTC", (PyCFunction) _wrap_DateTime_FromUTC, METH_VARARGS | METH_KEYWORDS, NULL}, |
33368 | { (char *)"DateTime_MakeFromUTC", (PyCFunction) _wrap_DateTime_MakeFromUTC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
33369 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL}, |
33370 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33371 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33372 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33373 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33374 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33375 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33376 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33377 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33378 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33379 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33380 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33381 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33382 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33383 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33384 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33385 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33386 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33387 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33388 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33389 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33390 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33391 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33392 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33393 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33394 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33395 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33396 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33397 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL}, | |
33398 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL}, | |
33399 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL}, | |
33400 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL}, | |
fef4c27a RD |
33401 | { (char *)"DateTime___lt__", (PyCFunction) _wrap_DateTime___lt__, METH_VARARGS | METH_KEYWORDS, NULL}, |
33402 | { (char *)"DateTime___le__", (PyCFunction) _wrap_DateTime___le__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33403 | { (char *)"DateTime___gt__", (PyCFunction) _wrap_DateTime___gt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33404 | { (char *)"DateTime___ge__", (PyCFunction) _wrap_DateTime___ge__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33405 | { (char *)"DateTime___eq__", (PyCFunction) _wrap_DateTime___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33406 | { (char *)"DateTime___ne__", (PyCFunction) _wrap_DateTime___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
33407 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL}, |
33408 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33409 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33410 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33411 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33412 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33413 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33414 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33415 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33416 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33417 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL}, | |
33418 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33419 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33420 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33421 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33422 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33423 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33424 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33425 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33426 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33427 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33428 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33429 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33430 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33431 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33432 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33433 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33434 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33435 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33436 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33437 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33438 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33439 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33440 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33441 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33442 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33443 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33444 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33445 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33446 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33447 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33448 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33449 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33450 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33451 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33452 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33453 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33454 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33455 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33456 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33457 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33458 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33459 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33460 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33461 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33462 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL}, | |
33463 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33464 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33465 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33466 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33467 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33468 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33469 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33470 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33471 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33472 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33473 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33474 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33475 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33476 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33477 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33478 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33479 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33480 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33481 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33482 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33483 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33484 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33485 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33486 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33487 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33488 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33489 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33490 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33491 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33492 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33493 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33494 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33495 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33496 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL}, | |
33497 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33498 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33499 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33500 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33501 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33502 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33503 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33504 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL}, | |
33505 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL}, | |
33506 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33507 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33508 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33509 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33510 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL}, | |
33511 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33512 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33513 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33514 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33515 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33516 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33517 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33518 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33519 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL}, | |
33520 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33521 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33522 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33523 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33524 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33525 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33526 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL}, | |
33527 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33528 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33529 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL}, | |
33530 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33531 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33532 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL}, | |
33533 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33534 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33535 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33536 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33537 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL}, | |
33538 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33539 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33540 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL}, | |
33541 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33542 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33543 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33544 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL}, | |
33545 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33546 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33547 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL}, | |
33548 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33549 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33550 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33551 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL}, | |
7557b9b5 | 33552 | { (char *)"new_CustomDataObject", _wrap_new_CustomDataObject, METH_VARARGS, NULL}, |
093d3ff1 RD |
33553 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
33554 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33555 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33556 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL}, | |
33557 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33558 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33559 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33560 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL}, | |
33561 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33562 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL}, | |
33563 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33564 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33565 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33566 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33567 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33568 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33569 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33570 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
c26d9ab4 | 33571 | { (char *)"DropSource_GiveFeedback", (PyCFunction) _wrap_DropSource_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
33572 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL}, |
33573 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33574 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33575 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33576 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33577 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
c26d9ab4 RD |
33578 | { (char *)"DropTarget_OnEnter", (PyCFunction) _wrap_DropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, |
33579 | { (char *)"DropTarget_OnDragOver", (PyCFunction) _wrap_DropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33580 | { (char *)"DropTarget_OnLeave", (PyCFunction) _wrap_DropTarget_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33581 | { (char *)"DropTarget_OnDrop", (PyCFunction) _wrap_DropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 33582 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
c9caa6bb RD |
33583 | { (char *)"DropTarget_SetDefaultAction", (PyCFunction) _wrap_DropTarget_SetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL}, |
33584 | { (char *)"DropTarget_GetDefaultAction", (PyCFunction) _wrap_DropTarget_GetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
33585 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL}, |
33586 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33587 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
c26d9ab4 RD |
33588 | { (char *)"TextDropTarget_OnDropText", (PyCFunction) _wrap_TextDropTarget_OnDropText, METH_VARARGS | METH_KEYWORDS, NULL}, |
33589 | { (char *)"TextDropTarget_OnEnter", (PyCFunction) _wrap_TextDropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33590 | { (char *)"TextDropTarget_OnDragOver", (PyCFunction) _wrap_TextDropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33591 | { (char *)"TextDropTarget_OnLeave", (PyCFunction) _wrap_TextDropTarget_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33592 | { (char *)"TextDropTarget_OnDrop", (PyCFunction) _wrap_TextDropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33593 | { (char *)"TextDropTarget_OnData", (PyCFunction) _wrap_TextDropTarget_OnData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
33594 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL}, |
33595 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33596 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
c26d9ab4 RD |
33597 | { (char *)"FileDropTarget_OnDropFiles", (PyCFunction) _wrap_FileDropTarget_OnDropFiles, METH_VARARGS | METH_KEYWORDS, NULL}, |
33598 | { (char *)"FileDropTarget_OnEnter", (PyCFunction) _wrap_FileDropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33599 | { (char *)"FileDropTarget_OnDragOver", (PyCFunction) _wrap_FileDropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33600 | { (char *)"FileDropTarget_OnLeave", (PyCFunction) _wrap_FileDropTarget_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33601 | { (char *)"FileDropTarget_OnDrop", (PyCFunction) _wrap_FileDropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33602 | { (char *)"FileDropTarget_OnData", (PyCFunction) _wrap_FileDropTarget_OnData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
33603 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL}, |
33604 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33605 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33606 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33607 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33608 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33609 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33610 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33611 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33612 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33613 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33614 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33615 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33616 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33617 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL}, | |
33618 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33619 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33620 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33621 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL}, | |
33622 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33623 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33624 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33625 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33626 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33627 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33628 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33629 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33630 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33631 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33632 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33633 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33634 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33635 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33636 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33637 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33638 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33639 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL}, | |
33640 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33641 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33642 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33643 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33644 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33645 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33646 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33647 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33648 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33649 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33650 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33651 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33652 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33653 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL}, | |
33654 | { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33655 | { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33656 | { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33657 | { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33658 | { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33659 | { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33660 | { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33661 | { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33662 | { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33663 | { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33664 | { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 33665 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
33666 | }; |
33667 | ||
33668 | ||
33669 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
33670 | ||
33671 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
33672 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33673 | } | |
33674 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
33675 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
33676 | } | |
33677 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
33678 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
33679 | } | |
33680 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
33681 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
33682 | } | |
33683 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
33684 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
33685 | } | |
33686 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
33687 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
33688 | } | |
33689 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
33690 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
33691 | } | |
33692 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
33693 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
33694 | } | |
33695 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
33696 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
33697 | } | |
33698 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
33699 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
33700 | } | |
33701 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
33702 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33703 | } | |
33704 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
33705 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
33706 | } | |
33707 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
33708 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
33709 | } | |
33710 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
33711 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33712 | } | |
33713 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
33714 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
33715 | } | |
33716 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
33717 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
33718 | } | |
33719 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
33720 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
33721 | } | |
33722 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
33723 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
33724 | } | |
33725 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
33726 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
33727 | } | |
33728 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
33729 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
33730 | } | |
53aa7709 RD |
33731 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
33732 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
33733 | } | |
d14a1e28 RD |
33734 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
33735 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
33736 | } | |
33737 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
33738 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
33739 | } | |
33740 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
33741 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33742 | } | |
33743 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
33744 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
33745 | } | |
33746 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
33747 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
33748 | } | |
33749 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
33750 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
33751 | } | |
33752 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
33753 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
33754 | } | |
33755 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
33756 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
33757 | } | |
33758 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
33759 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
33760 | } | |
33761 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
33762 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33763 | } | |
33764 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
33765 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
33766 | } | |
33767 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
33768 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
33769 | } | |
33770 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
33771 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
33772 | } | |
33773 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
33774 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33775 | } | |
33776 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
33777 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33778 | } | |
33779 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
33780 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
33781 | } | |
33782 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
33783 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
33784 | } | |
33785 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
33786 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
33787 | } | |
33788 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
33789 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
33790 | } | |
33791 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
33792 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
33793 | } | |
33794 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
33795 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
33796 | } | |
33797 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
33798 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
33799 | } | |
33800 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
33801 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
33802 | } | |
33803 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
33804 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
33805 | } | |
33806 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
33807 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
33808 | } | |
33809 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
33810 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
33811 | } | |
33812 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
33813 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
33814 | } | |
33815 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
33816 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
33817 | } | |
33818 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
33819 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
33820 | } | |
33821 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
33822 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
33823 | } | |
33824 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
33825 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
33826 | } | |
33827 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
32fe5131 | 33828 | return (void *)((wxDataObject *) ((wxURLDataObject *) x)); |
d14a1e28 RD |
33829 | } |
33830 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
33831 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
33832 | } | |
d14a1e28 RD |
33833 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { |
33834 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
33835 | } | |
33836 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33837 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
33838 | } | |
33839 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33840 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
33841 | } | |
33842 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33843 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
33844 | } | |
33845 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33846 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
33847 | } | |
33848 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33849 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
33850 | } | |
33851 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33852 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
33853 | } | |
33854 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
33855 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
33856 | } | |
33857 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
33858 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
33859 | } | |
33860 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
33861 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
33862 | } | |
33863 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
33864 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
33865 | } | |
33866 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
33867 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
33868 | } | |
33869 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
33870 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
33871 | } | |
33872 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
33873 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
33874 | } | |
33875 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
33876 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
33877 | } | |
33878 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
33879 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
33880 | } | |
33881 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
33882 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
33883 | } | |
33884 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
33885 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
33886 | } | |
33887 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
33888 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
33889 | } | |
33890 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
33891 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
33892 | } | |
33893 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
33894 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
33895 | } | |
33896 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
33897 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
33898 | } | |
33899 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
33900 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
33901 | } | |
33902 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
33903 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
33904 | } | |
33905 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
33906 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
33907 | } | |
33908 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
33909 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
33910 | } | |
33911 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
33912 | return (void *)((wxObject *) ((wxSizer *) x)); | |
33913 | } | |
33914 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
33915 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
33916 | } | |
33917 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
33918 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
33919 | } | |
33920 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
33921 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33922 | } | |
33923 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
33924 | return (void *)((wxObject *) ((wxEvent *) x)); | |
33925 | } | |
33926 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
33927 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
33928 | } | |
33929 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
33930 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
33931 | } | |
33932 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
33933 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
33934 | } | |
33935 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
33936 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
33937 | } | |
33938 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
33939 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
33940 | } | |
33941 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
33942 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
33943 | } | |
33944 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
33945 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
33946 | } | |
33947 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
33948 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
33949 | } | |
33950 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
33951 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
33952 | } | |
33953 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
33954 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
33955 | } | |
33956 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
33957 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
33958 | } | |
33959 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
33960 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
33961 | } | |
33962 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
33963 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
33964 | } | |
33965 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
33966 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
33967 | } | |
33968 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
33969 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
33970 | } | |
33971 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
33972 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
33973 | } | |
33974 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
33975 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33976 | } | |
33977 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
33978 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
33979 | } | |
33980 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
33981 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
33982 | } | |
33983 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
33984 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
33985 | } | |
53aa7709 RD |
33986 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
33987 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
33988 | } | |
d14a1e28 RD |
33989 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
33990 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
33991 | } | |
33992 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
33993 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33994 | } | |
33995 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
33996 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
33997 | } | |
33998 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
33999 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
34000 | } | |
34001 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
34002 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
34003 | } | |
34004 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
34005 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
34006 | } | |
34007 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
34008 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
34009 | } | |
34010 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
34011 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
34012 | } | |
d14a1e28 RD |
34013 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
34014 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
34015 | } | |
34016 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
34017 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
34018 | } | |
34019 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
34020 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
34021 | } | |
34022 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
34023 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
34024 | } | |
34025 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
34026 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
34027 | } | |
34028 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
34029 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
34030 | } | |
34031 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
34032 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
34033 | } | |
34034 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
34035 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
34036 | } | |
34037 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
34038 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
34039 | } | |
943e8dfd RD |
34040 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
34041 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
34042 | } | |
d14a1e28 RD |
34043 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
34044 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
34045 | } | |
943e8dfd RD |
34046 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
34047 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
34048 | } | |
d14a1e28 RD |
34049 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
34050 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
34051 | } | |
34052 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
34053 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
34054 | } | |
51b83b37 RD |
34055 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
34056 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
34057 | } | |
1e0c8722 RD |
34058 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
34059 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
34060 | } | |
d14a1e28 RD |
34061 | static void *_p_wxImageTo_p_wxObject(void *x) { |
34062 | return (void *)((wxObject *) ((wxImage *) x)); | |
34063 | } | |
34064 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
34065 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
34066 | } | |
34067 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
34068 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
34069 | } | |
34070 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
34071 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
34072 | } | |
34073 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
34074 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
34075 | } | |
34076 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
34077 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
34078 | } | |
34079 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
34080 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
34081 | } | |
34082 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
34083 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
34084 | } | |
34085 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
34086 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
34087 | } | |
34088 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
34089 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
34090 | } | |
34091 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
34092 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
34093 | } | |
34094 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
34095 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
34096 | } | |
34097 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
34098 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
34099 | } | |
34100 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
34101 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
34102 | } | |
34103 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
34104 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
34105 | } | |
34106 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
34107 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
34108 | } | |
34109 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
34110 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
34111 | } | |
34112 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
34113 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
34114 | } | |
34115 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
34116 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
34117 | } | |
34118 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
34119 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
34120 | } | |
34121 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
34122 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
34123 | } | |
34124 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
34125 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
34126 | } | |
34127 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
34128 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
34129 | } | |
34130 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
34131 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
34132 | } | |
34133 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
34134 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
34135 | } | |
34136 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
34137 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
34138 | } | |
34139 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
34140 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
34141 | } | |
34142 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
34143 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
34144 | } | |
34145 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
34146 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
34147 | } | |
53307de4 RD |
34148 | static void *_p_wxLogBufferTo_p_wxLog(void *x) { |
34149 | return (void *)((wxLog *) ((wxLogBuffer *) x)); | |
34150 | } | |
d14a1e28 RD |
34151 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { |
34152 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
34153 | } | |
34154 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
34155 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
34156 | } | |
34157 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
34158 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
34159 | } | |
34160 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
34161 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
34162 | } | |
34163 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
34164 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
34165 | } | |
34166 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
34167 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
34168 | } | |
34169 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
34170 | return (void *)((wxWindow *) ((wxControl *) x)); | |
34171 | } | |
34172 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
34173 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
34174 | } | |
34175 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
34176 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
34177 | } | |
34178 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
34179 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
34180 | } | |
34181 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
34182 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
34183 | } | |
32fe5131 RD |
34184 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0}; |
34185 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0}; | |
34186 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0}; | |
34187 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0}; | |
34188 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0}; | |
34189 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxLogLevel *", 0, 0, 0}; | |
34190 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, 0}; | |
34191 | static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, 0}; | |
34192 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0}; | |
34193 | static swig_type_info _swigt__p_wxBitmapDataObject = {"_p_wxBitmapDataObject", "wxBitmapDataObject *", 0, 0, 0}; | |
34194 | static swig_type_info _swigt__p_wxBusyCursor = {"_p_wxBusyCursor", "wxBusyCursor *", 0, 0, 0}; | |
34195 | static swig_type_info _swigt__p_wxBusyInfo = {"_p_wxBusyInfo", "wxBusyInfo *", 0, 0, 0}; | |
34196 | static swig_type_info _swigt__p_wxCaret = {"_p_wxCaret", "wxCaret *", 0, 0, 0}; | |
34197 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, 0}; | |
34198 | static swig_type_info _swigt__p_wxClipboard = {"_p_wxClipboard", "wxClipboard *", 0, 0, 0}; | |
34199 | static swig_type_info _swigt__p_wxClipboardLocker = {"_p_wxClipboardLocker", "wxClipboardLocker *", 0, 0, 0}; | |
34200 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0}; | |
34201 | static swig_type_info _swigt__p_wxConfig = {"_p_wxConfig", "wxConfig *", 0, 0, 0}; | |
34202 | static swig_type_info _swigt__p_wxConfigBase = {"_p_wxConfigBase", "wxConfigBase *", 0, 0, 0}; | |
34203 | static swig_type_info _swigt__p_wxConfigPathChanger = {"_p_wxConfigPathChanger", "wxConfigPathChanger *", 0, 0, 0}; | |
34204 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0}; | |
34205 | static swig_type_info _swigt__p_wxCustomDataObject = {"_p_wxCustomDataObject", "wxCustomDataObject *", 0, 0, 0}; | |
34206 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0}; | |
34207 | static swig_type_info _swigt__p_wxDataFormat = {"_p_wxDataFormat", "wxDataFormat *", 0, 0, 0}; | |
34208 | static swig_type_info _swigt__p_wxDataObject = {"_p_wxDataObject", "wxDataObject *", 0, 0, 0}; | |
34209 | static swig_type_info _swigt__p_wxDataObjectComposite = {"_p_wxDataObjectComposite", "wxDataObjectComposite *", 0, 0, 0}; | |
34210 | static swig_type_info _swigt__p_wxDataObjectSimple = {"_p_wxDataObjectSimple", "wxDataObjectSimple *", 0, 0, 0}; | |
34211 | static swig_type_info _swigt__p_wxDateSpan = {"_p_wxDateSpan", "wxDateSpan *", 0, 0, 0}; | |
34212 | static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, 0}; | |
34213 | static swig_type_info _swigt__p_wxDateTime__TimeZone = {"_p_wxDateTime__TimeZone", "wxDateTime::TimeZone *", 0, 0, 0}; | |
34214 | static swig_type_info _swigt__p_wxDisplay = {"_p_wxDisplay", "wxDisplay *", 0, 0, 0}; | |
34215 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0}; | |
34216 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0}; | |
34217 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0}; | |
34218 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0}; | |
34219 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0}; | |
34220 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0}; | |
34221 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0}; | |
34222 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0}; | |
34223 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0}; | |
34224 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0}; | |
34225 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0}; | |
34226 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0}; | |
34227 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0}; | |
34228 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0}; | |
34229 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0}; | |
34230 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0}; | |
34231 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0}; | |
34232 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0}; | |
34233 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0}; | |
34234 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0}; | |
34235 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0}; | |
34236 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0}; | |
34237 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0}; | |
34238 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0}; | |
34239 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0}; | |
34240 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0}; | |
34241 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0}; | |
34242 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0}; | |
34243 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0}; | |
34244 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0}; | |
34245 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0}; | |
34246 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0}; | |
34247 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0}; | |
34248 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0}; | |
34249 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0}; | |
34250 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0}; | |
34251 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0}; | |
34252 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0}; | |
34253 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0}; | |
34254 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0}; | |
34255 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0}; | |
34256 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0}; | |
34257 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0}; | |
34258 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0}; | |
34259 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0}; | |
34260 | static swig_type_info _swigt__p_wxFileConfig = {"_p_wxFileConfig", "wxFileConfig *", 0, 0, 0}; | |
34261 | static swig_type_info _swigt__p_wxFileDataObject = {"_p_wxFileDataObject", "wxFileDataObject *", 0, 0, 0}; | |
34262 | static swig_type_info _swigt__p_wxFileHistory = {"_p_wxFileHistory", "wxFileHistory *", 0, 0, 0}; | |
34263 | static swig_type_info _swigt__p_wxFileType = {"_p_wxFileType", "wxFileType *", 0, 0, 0}; | |
34264 | static swig_type_info _swigt__p_wxFileTypeInfo = {"_p_wxFileTypeInfo", "wxFileTypeInfo *", 0, 0, 0}; | |
34265 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0}; | |
34266 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, 0}; | |
34267 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0}; | |
34268 | static swig_type_info _swigt__p_wxJoystick = {"_p_wxJoystick", "wxJoystick *", 0, 0, 0}; | |
34269 | static swig_type_info _swigt__p_wxJoystickEvent = {"_p_wxJoystickEvent", "wxJoystickEvent *", 0, 0, 0}; | |
34270 | static swig_type_info _swigt__p_wxKillError = {"_p_wxKillError", "enum wxKillError *|wxKillError *", 0, 0, 0}; | |
34271 | static swig_type_info _swigt__p_wxLog = {"_p_wxLog", "wxLog *", 0, 0, 0}; | |
34272 | static swig_type_info _swigt__p_wxLogBuffer = {"_p_wxLogBuffer", "wxLogBuffer *", 0, 0, 0}; | |
34273 | static swig_type_info _swigt__p_wxLogChain = {"_p_wxLogChain", "wxLogChain *", 0, 0, 0}; | |
34274 | static swig_type_info _swigt__p_wxLogGui = {"_p_wxLogGui", "wxLogGui *", 0, 0, 0}; | |
34275 | static swig_type_info _swigt__p_wxLogNull = {"_p_wxLogNull", "wxLogNull *", 0, 0, 0}; | |
34276 | static swig_type_info _swigt__p_wxLogStderr = {"_p_wxLogStderr", "wxLogStderr *", 0, 0, 0}; | |
34277 | static swig_type_info _swigt__p_wxLogTextCtrl = {"_p_wxLogTextCtrl", "wxLogTextCtrl *", 0, 0, 0}; | |
34278 | static swig_type_info _swigt__p_wxLogWindow = {"_p_wxLogWindow", "wxLogWindow *", 0, 0, 0}; | |
34279 | static swig_type_info _swigt__p_wxMemorySize = {"_p_wxMemorySize", "wxMemorySize *", 0, 0, 0}; | |
34280 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, 0}; | |
34281 | static swig_type_info _swigt__p_wxMetafileDataObject = {"_p_wxMetafileDataObject", "wxMetafileDataObject *", 0, 0, 0}; | |
34282 | static swig_type_info _swigt__p_wxMimeTypesManager = {"_p_wxMimeTypesManager", "wxMimeTypesManager *", 0, 0, 0}; | |
34283 | static swig_type_info _swigt__p_wxMouseState = {"_p_wxMouseState", "wxMouseState *", 0, 0, 0}; | |
34284 | static swig_type_info _swigt__p_wxMutexGuiLocker = {"_p_wxMutexGuiLocker", "wxMutexGuiLocker *", 0, 0, 0}; | |
34285 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0}; | |
34286 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0}; | |
34287 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0}; | |
34288 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0}; | |
34289 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0}; | |
34290 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0}; | |
34291 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0}; | |
34292 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0}; | |
34293 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0}; | |
34294 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0}; | |
34295 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0}; | |
34296 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0}; | |
34297 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0}; | |
34298 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0}; | |
34299 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0}; | |
34300 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0}; | |
34301 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0}; | |
34302 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0}; | |
34303 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0}; | |
34304 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0}; | |
34305 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0}; | |
34306 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0}; | |
34307 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0}; | |
34308 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0}; | |
34309 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0}; | |
34310 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0}; | |
34311 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0}; | |
34312 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0}; | |
34313 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0}; | |
34314 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0}; | |
34315 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0}; | |
34316 | static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, 0}; | |
34317 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0}; | |
34318 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0}; | |
34319 | static swig_type_info _swigt__p_wxProcessEvent = {"_p_wxProcessEvent", "wxProcessEvent *", 0, 0, 0}; | |
34320 | static swig_type_info _swigt__p_wxPyArtProvider = {"_p_wxPyArtProvider", "wxPyArtProvider *", 0, 0, 0}; | |
34321 | static swig_type_info _swigt__p_wxPyBitmapDataObject = {"_p_wxPyBitmapDataObject", "wxPyBitmapDataObject *", 0, 0, 0}; | |
34322 | static swig_type_info _swigt__p_wxPyDataObjectSimple = {"_p_wxPyDataObjectSimple", "wxPyDataObjectSimple *", 0, 0, 0}; | |
34323 | static swig_type_info _swigt__p_wxPyDropSource = {"_p_wxPyDropSource", "wxPyDropSource *", 0, 0, 0}; | |
34324 | static swig_type_info _swigt__p_wxPyDropTarget = {"_p_wxPyDropTarget", "wxPyDropTarget *", 0, 0, 0}; | |
34325 | static swig_type_info _swigt__p_wxPyFileDropTarget = {"_p_wxPyFileDropTarget", "wxPyFileDropTarget *", 0, 0, 0}; | |
34326 | static swig_type_info _swigt__p_wxPyLog = {"_p_wxPyLog", "wxPyLog *", 0, 0, 0}; | |
34327 | static swig_type_info _swigt__p_wxPyProcess = {"_p_wxPyProcess", "wxPyProcess *", 0, 0, 0}; | |
34328 | static swig_type_info _swigt__p_wxPyTextDataObject = {"_p_wxPyTextDataObject", "wxPyTextDataObject *", 0, 0, 0}; | |
34329 | static swig_type_info _swigt__p_wxPyTextDropTarget = {"_p_wxPyTextDropTarget", "wxPyTextDropTarget *", 0, 0, 0}; | |
34330 | static swig_type_info _swigt__p_wxPyTimer = {"_p_wxPyTimer", "wxPyTimer *", 0, 0, 0}; | |
34331 | static swig_type_info _swigt__p_wxPyTipProvider = {"_p_wxPyTipProvider", "wxPyTipProvider *", 0, 0, 0}; | |
34332 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0}; | |
34333 | static swig_type_info _swigt__p_wxSingleInstanceChecker = {"_p_wxSingleInstanceChecker", "wxSingleInstanceChecker *", 0, 0, 0}; | |
34334 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0}; | |
34335 | static swig_type_info _swigt__p_wxSound = {"_p_wxSound", "wxSound *", 0, 0, 0}; | |
34336 | static swig_type_info _swigt__p_wxStandardPaths = {"_p_wxStandardPaths", "wxStandardPaths *", 0, 0, 0}; | |
34337 | static swig_type_info _swigt__p_wxStopWatch = {"_p_wxStopWatch", "wxStopWatch *", 0, 0, 0}; | |
34338 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0}; | |
34339 | static swig_type_info _swigt__p_wxSystemOptions = {"_p_wxSystemOptions", "wxSystemOptions *", 0, 0, 0}; | |
34340 | static swig_type_info _swigt__p_wxSystemSettings = {"_p_wxSystemSettings", "wxSystemSettings *", 0, 0, 0}; | |
34341 | static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, 0}; | |
34342 | static swig_type_info _swigt__p_wxTextDataObject = {"_p_wxTextDataObject", "wxTextDataObject *", 0, 0, 0}; | |
34343 | static swig_type_info _swigt__p_wxTimeSpan = {"_p_wxTimeSpan", "wxTimeSpan *", 0, 0, 0}; | |
34344 | static swig_type_info _swigt__p_wxTimer = {"_p_wxTimer", "wxTimer *", 0, 0, 0}; | |
34345 | static swig_type_info _swigt__p_wxTimerEvent = {"_p_wxTimerEvent", "wxTimerEvent *", 0, 0, 0}; | |
34346 | static swig_type_info _swigt__p_wxTimerRunner = {"_p_wxTimerRunner", "wxTimerRunner *", 0, 0, 0}; | |
34347 | static swig_type_info _swigt__p_wxTipProvider = {"_p_wxTipProvider", "wxTipProvider *", 0, 0, 0}; | |
34348 | static swig_type_info _swigt__p_wxToolTip = {"_p_wxToolTip", "wxToolTip *", 0, 0, 0}; | |
34349 | static swig_type_info _swigt__p_wxURLDataObject = {"_p_wxURLDataObject", "wxURLDataObject *", 0, 0, 0}; | |
34350 | static swig_type_info _swigt__p_wxVideoMode = {"_p_wxVideoMode", "wxVideoMode *", 0, 0, 0}; | |
34351 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0}; | |
34352 | static swig_type_info _swigt__p_wxWindowDisabler = {"_p_wxWindowDisabler", "wxWindowDisabler *", 0, 0, 0}; | |
34353 | static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0}; | |
34354 | static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0}; | |
34355 | static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0}; | |
34356 | ||
34357 | static swig_type_info *swig_type_initial[] = { | |
34358 | &_swigt__p_char, | |
34359 | &_swigt__p_form_ops_t, | |
34360 | &_swigt__p_int, | |
34361 | &_swigt__p_unsigned_char, | |
34362 | &_swigt__p_unsigned_int, | |
34363 | &_swigt__p_unsigned_long, | |
34364 | &_swigt__p_void, | |
34365 | &_swigt__p_wxANIHandler, | |
34366 | &_swigt__p_wxAcceleratorTable, | |
34367 | &_swigt__p_wxActivateEvent, | |
34368 | &_swigt__p_wxArrayString, | |
34369 | &_swigt__p_wxBMPHandler, | |
34370 | &_swigt__p_wxBitmap, | |
34371 | &_swigt__p_wxBitmapDataObject, | |
34372 | &_swigt__p_wxBoxSizer, | |
34373 | &_swigt__p_wxBusyCursor, | |
34374 | &_swigt__p_wxBusyInfo, | |
34375 | &_swigt__p_wxCURHandler, | |
34376 | &_swigt__p_wxCaret, | |
34377 | &_swigt__p_wxChar, | |
34378 | &_swigt__p_wxChildFocusEvent, | |
34379 | &_swigt__p_wxClipboard, | |
34380 | &_swigt__p_wxClipboardLocker, | |
34381 | &_swigt__p_wxCloseEvent, | |
34382 | &_swigt__p_wxColour, | |
34383 | &_swigt__p_wxCommandEvent, | |
34384 | &_swigt__p_wxConfig, | |
34385 | &_swigt__p_wxConfigBase, | |
34386 | &_swigt__p_wxConfigPathChanger, | |
34387 | &_swigt__p_wxContextMenuEvent, | |
34388 | &_swigt__p_wxControl, | |
34389 | &_swigt__p_wxControlWithItems, | |
34390 | &_swigt__p_wxCursor, | |
34391 | &_swigt__p_wxCustomDataObject, | |
34392 | &_swigt__p_wxDC, | |
34393 | &_swigt__p_wxDataFormat, | |
34394 | &_swigt__p_wxDataObject, | |
34395 | &_swigt__p_wxDataObjectComposite, | |
34396 | &_swigt__p_wxDataObjectSimple, | |
34397 | &_swigt__p_wxDateEvent, | |
34398 | &_swigt__p_wxDateSpan, | |
34399 | &_swigt__p_wxDateTime, | |
34400 | &_swigt__p_wxDateTime__TimeZone, | |
34401 | &_swigt__p_wxDisplay, | |
34402 | &_swigt__p_wxDisplayChangedEvent, | |
34403 | &_swigt__p_wxDropFilesEvent, | |
34404 | &_swigt__p_wxDuplexMode, | |
34405 | &_swigt__p_wxEraseEvent, | |
34406 | &_swigt__p_wxEvent, | |
34407 | &_swigt__p_wxEvtHandler, | |
34408 | &_swigt__p_wxFSFile, | |
34409 | &_swigt__p_wxFileConfig, | |
34410 | &_swigt__p_wxFileDataObject, | |
34411 | &_swigt__p_wxFileHistory, | |
34412 | &_swigt__p_wxFileSystem, | |
34413 | &_swigt__p_wxFileType, | |
34414 | &_swigt__p_wxFileTypeInfo, | |
34415 | &_swigt__p_wxFlexGridSizer, | |
34416 | &_swigt__p_wxFocusEvent, | |
34417 | &_swigt__p_wxFont, | |
34418 | &_swigt__p_wxFrame, | |
34419 | &_swigt__p_wxGBSizerItem, | |
34420 | &_swigt__p_wxGIFHandler, | |
34421 | &_swigt__p_wxGridBagSizer, | |
34422 | &_swigt__p_wxGridSizer, | |
34423 | &_swigt__p_wxICOHandler, | |
34424 | &_swigt__p_wxIcon, | |
34425 | &_swigt__p_wxIconizeEvent, | |
34426 | &_swigt__p_wxIdleEvent, | |
34427 | &_swigt__p_wxImage, | |
34428 | &_swigt__p_wxImageHandler, | |
34429 | &_swigt__p_wxIndividualLayoutConstraint, | |
34430 | &_swigt__p_wxInitDialogEvent, | |
34431 | &_swigt__p_wxJPEGHandler, | |
34432 | &_swigt__p_wxJoystick, | |
34433 | &_swigt__p_wxJoystickEvent, | |
34434 | &_swigt__p_wxKeyEvent, | |
34435 | &_swigt__p_wxKillError, | |
34436 | &_swigt__p_wxLayoutConstraints, | |
34437 | &_swigt__p_wxLog, | |
34438 | &_swigt__p_wxLogBuffer, | |
34439 | &_swigt__p_wxLogChain, | |
34440 | &_swigt__p_wxLogGui, | |
34441 | &_swigt__p_wxLogNull, | |
34442 | &_swigt__p_wxLogStderr, | |
34443 | &_swigt__p_wxLogTextCtrl, | |
34444 | &_swigt__p_wxLogWindow, | |
34445 | &_swigt__p_wxMaximizeEvent, | |
34446 | &_swigt__p_wxMemorySize, | |
34447 | &_swigt__p_wxMenu, | |
34448 | &_swigt__p_wxMenuBar, | |
34449 | &_swigt__p_wxMenuEvent, | |
34450 | &_swigt__p_wxMenuItem, | |
34451 | &_swigt__p_wxMetafileDataObject, | |
34452 | &_swigt__p_wxMimeTypesManager, | |
34453 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34454 | &_swigt__p_wxMouseEvent, | |
34455 | &_swigt__p_wxMouseState, | |
34456 | &_swigt__p_wxMoveEvent, | |
34457 | &_swigt__p_wxMutexGuiLocker, | |
34458 | &_swigt__p_wxNavigationKeyEvent, | |
34459 | &_swigt__p_wxNcPaintEvent, | |
34460 | &_swigt__p_wxNotifyEvent, | |
34461 | &_swigt__p_wxObject, | |
34462 | &_swigt__p_wxOutputStream, | |
34463 | &_swigt__p_wxPCXHandler, | |
34464 | &_swigt__p_wxPNGHandler, | |
34465 | &_swigt__p_wxPNMHandler, | |
34466 | &_swigt__p_wxPaintEvent, | |
34467 | &_swigt__p_wxPaletteChangedEvent, | |
34468 | &_swigt__p_wxPaperSize, | |
34469 | &_swigt__p_wxPoint, | |
34470 | &_swigt__p_wxProcessEvent, | |
34471 | &_swigt__p_wxPyApp, | |
34472 | &_swigt__p_wxPyArtProvider, | |
34473 | &_swigt__p_wxPyBitmapDataObject, | |
34474 | &_swigt__p_wxPyCommandEvent, | |
34475 | &_swigt__p_wxPyDataObjectSimple, | |
34476 | &_swigt__p_wxPyDropSource, | |
34477 | &_swigt__p_wxPyDropTarget, | |
34478 | &_swigt__p_wxPyEvent, | |
34479 | &_swigt__p_wxPyFileDropTarget, | |
34480 | &_swigt__p_wxPyImageHandler, | |
34481 | &_swigt__p_wxPyLog, | |
34482 | &_swigt__p_wxPyProcess, | |
34483 | &_swigt__p_wxPySizer, | |
34484 | &_swigt__p_wxPyTextDataObject, | |
34485 | &_swigt__p_wxPyTextDropTarget, | |
34486 | &_swigt__p_wxPyTimer, | |
34487 | &_swigt__p_wxPyTipProvider, | |
34488 | &_swigt__p_wxPyValidator, | |
34489 | &_swigt__p_wxQueryNewPaletteEvent, | |
34490 | &_swigt__p_wxRect, | |
34491 | &_swigt__p_wxScrollEvent, | |
34492 | &_swigt__p_wxScrollWinEvent, | |
34493 | &_swigt__p_wxSetCursorEvent, | |
34494 | &_swigt__p_wxShowEvent, | |
34495 | &_swigt__p_wxSingleInstanceChecker, | |
34496 | &_swigt__p_wxSize, | |
34497 | &_swigt__p_wxSizeEvent, | |
34498 | &_swigt__p_wxSizer, | |
34499 | &_swigt__p_wxSizerItem, | |
34500 | &_swigt__p_wxSound, | |
34501 | &_swigt__p_wxStandardPaths, | |
34502 | &_swigt__p_wxStaticBoxSizer, | |
34503 | &_swigt__p_wxStdDialogButtonSizer, | |
34504 | &_swigt__p_wxStopWatch, | |
34505 | &_swigt__p_wxString, | |
34506 | &_swigt__p_wxSysColourChangedEvent, | |
34507 | &_swigt__p_wxSystemOptions, | |
34508 | &_swigt__p_wxSystemSettings, | |
34509 | &_swigt__p_wxTIFFHandler, | |
34510 | &_swigt__p_wxTextCtrl, | |
34511 | &_swigt__p_wxTextDataObject, | |
34512 | &_swigt__p_wxTimeSpan, | |
34513 | &_swigt__p_wxTimer, | |
34514 | &_swigt__p_wxTimerEvent, | |
34515 | &_swigt__p_wxTimerRunner, | |
34516 | &_swigt__p_wxTipProvider, | |
34517 | &_swigt__p_wxToolTip, | |
34518 | &_swigt__p_wxURLDataObject, | |
34519 | &_swigt__p_wxUpdateUIEvent, | |
34520 | &_swigt__p_wxValidator, | |
34521 | &_swigt__p_wxVideoMode, | |
34522 | &_swigt__p_wxWindow, | |
34523 | &_swigt__p_wxWindowCreateEvent, | |
34524 | &_swigt__p_wxWindowDestroyEvent, | |
34525 | &_swigt__p_wxWindowDisabler, | |
34526 | &_swigt__p_wxXPMHandler, | |
34527 | &_swigt__ptrdiff_t, | |
34528 | &_swigt__std__ptrdiff_t, | |
34529 | &_swigt__unsigned_int, | |
34530 | }; | |
34531 | ||
34532 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
34533 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
34534 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
34535 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
34536 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
34537 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
34538 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; | |
34539 | static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}}; | |
34540 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
34541 | 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}}; | |
34542 | static swig_cast_info _swigc__p_wxBusyCursor[] = { {&_swigt__p_wxBusyCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
34543 | static swig_cast_info _swigc__p_wxBusyInfo[] = { {&_swigt__p_wxBusyInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
34544 | static swig_cast_info _swigc__p_wxCaret[] = { {&_swigt__p_wxCaret, 0, 0, 0},{0, 0, 0, 0}}; | |
34545 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; | |
34546 | static swig_cast_info _swigc__p_wxClipboard[] = { {&_swigt__p_wxClipboard, 0, 0, 0},{0, 0, 0, 0}}; | |
34547 | static swig_cast_info _swigc__p_wxClipboardLocker[] = { {&_swigt__p_wxClipboardLocker, 0, 0, 0},{0, 0, 0, 0}}; | |
34548 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
34549 | static swig_cast_info _swigc__p_wxConfig[] = { {&_swigt__p_wxConfig, 0, 0, 0},{0, 0, 0, 0}}; | |
34550 | 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}}; | |
34551 | static swig_cast_info _swigc__p_wxConfigPathChanger[] = { {&_swigt__p_wxConfigPathChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
34552 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
34553 | static swig_cast_info _swigc__p_wxCustomDataObject[] = { {&_swigt__p_wxCustomDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34554 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
34555 | static swig_cast_info _swigc__p_wxDataFormat[] = { {&_swigt__p_wxDataFormat, 0, 0, 0},{0, 0, 0, 0}}; | |
34556 | 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}}; | |
34557 | static swig_cast_info _swigc__p_wxDataObjectComposite[] = { {&_swigt__p_wxDataObjectComposite, 0, 0, 0},{0, 0, 0, 0}}; | |
34558 | 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}}; | |
34559 | static swig_cast_info _swigc__p_wxDateSpan[] = { {&_swigt__p_wxDateSpan, 0, 0, 0},{0, 0, 0, 0}}; | |
34560 | static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}}; | |
34561 | static swig_cast_info _swigc__p_wxDateTime__TimeZone[] = { {&_swigt__p_wxDateTime__TimeZone, 0, 0, 0},{0, 0, 0, 0}}; | |
34562 | static swig_cast_info _swigc__p_wxDisplay[] = { {&_swigt__p_wxDisplay, 0, 0, 0},{0, 0, 0, 0}}; | |
34563 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
34564 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34565 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34566 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34567 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34568 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34569 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34570 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34571 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34572 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34573 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34574 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34575 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34576 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34577 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34578 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34579 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34580 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34581 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34582 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34583 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34584 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34585 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34586 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34587 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34588 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34589 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34590 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34591 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34592 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34593 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34594 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34595 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34596 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34597 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34598 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34599 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34600 | 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}}; | |
34601 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
34602 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
34603 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
34604 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
34605 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
34606 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
34607 | 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}}; | |
34608 | static swig_cast_info _swigc__p_wxFileConfig[] = { {&_swigt__p_wxFileConfig, 0, 0, 0},{0, 0, 0, 0}}; | |
34609 | static swig_cast_info _swigc__p_wxFileDataObject[] = { {&_swigt__p_wxFileDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34610 | static swig_cast_info _swigc__p_wxFileHistory[] = { {&_swigt__p_wxFileHistory, 0, 0, 0},{0, 0, 0, 0}}; | |
34611 | static swig_cast_info _swigc__p_wxFileType[] = { {&_swigt__p_wxFileType, 0, 0, 0},{0, 0, 0, 0}}; | |
34612 | static swig_cast_info _swigc__p_wxFileTypeInfo[] = { {&_swigt__p_wxFileTypeInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
34613 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
34614 | static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
34615 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
34616 | static swig_cast_info _swigc__p_wxJoystick[] = { {&_swigt__p_wxJoystick, 0, 0, 0},{0, 0, 0, 0}}; | |
34617 | static swig_cast_info _swigc__p_wxJoystickEvent[] = { {&_swigt__p_wxJoystickEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34618 | static swig_cast_info _swigc__p_wxKillError[] = { {&_swigt__p_wxKillError, 0, 0, 0},{0, 0, 0, 0}}; | |
34619 | 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}}; | |
34620 | static swig_cast_info _swigc__p_wxLogBuffer[] = { {&_swigt__p_wxLogBuffer, 0, 0, 0},{0, 0, 0, 0}}; | |
34621 | static swig_cast_info _swigc__p_wxLogChain[] = { {&_swigt__p_wxLogChain, 0, 0, 0},{0, 0, 0, 0}}; | |
34622 | static swig_cast_info _swigc__p_wxLogGui[] = { {&_swigt__p_wxLogGui, 0, 0, 0},{0, 0, 0, 0}}; | |
34623 | static swig_cast_info _swigc__p_wxLogNull[] = { {&_swigt__p_wxLogNull, 0, 0, 0},{0, 0, 0, 0}}; | |
34624 | static swig_cast_info _swigc__p_wxLogStderr[] = { {&_swigt__p_wxLogStderr, 0, 0, 0},{0, 0, 0, 0}}; | |
34625 | static swig_cast_info _swigc__p_wxLogTextCtrl[] = { {&_swigt__p_wxLogTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
34626 | static swig_cast_info _swigc__p_wxLogWindow[] = { {&_swigt__p_wxLogWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
34627 | static swig_cast_info _swigc__p_wxMemorySize[] = { {&_swigt__p_wxMemorySize, 0, 0, 0},{0, 0, 0, 0}}; | |
34628 | static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
34629 | static swig_cast_info _swigc__p_wxMetafileDataObject[] = { {&_swigt__p_wxMetafileDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34630 | static swig_cast_info _swigc__p_wxMimeTypesManager[] = { {&_swigt__p_wxMimeTypesManager, 0, 0, 0},{0, 0, 0, 0}}; | |
34631 | static swig_cast_info _swigc__p_wxMouseState[] = { {&_swigt__p_wxMouseState, 0, 0, 0},{0, 0, 0, 0}}; | |
34632 | static swig_cast_info _swigc__p_wxMutexGuiLocker[] = { {&_swigt__p_wxMutexGuiLocker, 0, 0, 0},{0, 0, 0, 0}}; | |
34633 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
34634 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
34635 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
34636 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
34637 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34638 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34639 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34640 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34641 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34642 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34643 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
34644 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34645 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
34646 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34647 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34648 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34649 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34650 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34651 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34652 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34653 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34654 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34655 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34656 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34657 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34658 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34659 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34660 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
34661 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
34662 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
34663 | 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}}; | |
34664 | static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}}; | |
34665 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
34666 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
34667 | static swig_cast_info _swigc__p_wxProcessEvent[] = { {&_swigt__p_wxProcessEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34668 | static swig_cast_info _swigc__p_wxPyArtProvider[] = { {&_swigt__p_wxPyArtProvider, 0, 0, 0},{0, 0, 0, 0}}; | |
34669 | static swig_cast_info _swigc__p_wxPyBitmapDataObject[] = { {&_swigt__p_wxPyBitmapDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34670 | static swig_cast_info _swigc__p_wxPyDataObjectSimple[] = { {&_swigt__p_wxPyDataObjectSimple, 0, 0, 0},{0, 0, 0, 0}}; | |
34671 | static swig_cast_info _swigc__p_wxPyDropSource[] = { {&_swigt__p_wxPyDropSource, 0, 0, 0},{0, 0, 0, 0}}; | |
34672 | 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}}; | |
34673 | static swig_cast_info _swigc__p_wxPyFileDropTarget[] = { {&_swigt__p_wxPyFileDropTarget, 0, 0, 0},{0, 0, 0, 0}}; | |
34674 | static swig_cast_info _swigc__p_wxPyLog[] = { {&_swigt__p_wxPyLog, 0, 0, 0},{0, 0, 0, 0}}; | |
34675 | static swig_cast_info _swigc__p_wxPyProcess[] = { {&_swigt__p_wxPyProcess, 0, 0, 0},{0, 0, 0, 0}}; | |
34676 | static swig_cast_info _swigc__p_wxPyTextDataObject[] = { {&_swigt__p_wxPyTextDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34677 | static swig_cast_info _swigc__p_wxPyTextDropTarget[] = { {&_swigt__p_wxPyTextDropTarget, 0, 0, 0},{0, 0, 0, 0}}; | |
34678 | static swig_cast_info _swigc__p_wxPyTimer[] = { {&_swigt__p_wxPyTimer, 0, 0, 0},{0, 0, 0, 0}}; | |
34679 | static swig_cast_info _swigc__p_wxPyTipProvider[] = { {&_swigt__p_wxPyTipProvider, 0, 0, 0},{0, 0, 0, 0}}; | |
34680 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
34681 | static swig_cast_info _swigc__p_wxSingleInstanceChecker[] = { {&_swigt__p_wxSingleInstanceChecker, 0, 0, 0},{0, 0, 0, 0}}; | |
34682 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
34683 | static swig_cast_info _swigc__p_wxSound[] = { {&_swigt__p_wxSound, 0, 0, 0},{0, 0, 0, 0}}; | |
34684 | static swig_cast_info _swigc__p_wxStandardPaths[] = { {&_swigt__p_wxStandardPaths, 0, 0, 0},{0, 0, 0, 0}}; | |
34685 | static swig_cast_info _swigc__p_wxStopWatch[] = { {&_swigt__p_wxStopWatch, 0, 0, 0},{0, 0, 0, 0}}; | |
34686 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
34687 | static swig_cast_info _swigc__p_wxSystemOptions[] = { {&_swigt__p_wxSystemOptions, 0, 0, 0},{0, 0, 0, 0}}; | |
34688 | static swig_cast_info _swigc__p_wxSystemSettings[] = { {&_swigt__p_wxSystemSettings, 0, 0, 0},{0, 0, 0, 0}}; | |
34689 | static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
34690 | 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}}; | |
34691 | static swig_cast_info _swigc__p_wxTimeSpan[] = { {&_swigt__p_wxTimeSpan, 0, 0, 0},{0, 0, 0, 0}}; | |
34692 | static swig_cast_info _swigc__p_wxTimer[] = { {&_swigt__p_wxTimer, 0, 0, 0},{0, 0, 0, 0}}; | |
34693 | static swig_cast_info _swigc__p_wxTimerEvent[] = { {&_swigt__p_wxTimerEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34694 | static swig_cast_info _swigc__p_wxTimerRunner[] = { {&_swigt__p_wxTimerRunner, 0, 0, 0},{0, 0, 0, 0}}; | |
34695 | 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}}; | |
34696 | static swig_cast_info _swigc__p_wxToolTip[] = { {&_swigt__p_wxToolTip, 0, 0, 0},{0, 0, 0, 0}}; | |
34697 | static swig_cast_info _swigc__p_wxURLDataObject[] = { {&_swigt__p_wxURLDataObject, 0, 0, 0},{0, 0, 0, 0}}; | |
34698 | static swig_cast_info _swigc__p_wxVideoMode[] = { {&_swigt__p_wxVideoMode, 0, 0, 0},{0, 0, 0, 0}}; | |
34699 | 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}}; | |
34700 | static swig_cast_info _swigc__p_wxWindowDisabler[] = { {&_swigt__p_wxWindowDisabler, 0, 0, 0},{0, 0, 0, 0}}; | |
34701 | static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
34702 | static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
34703 | static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
34704 | ||
34705 | static swig_cast_info *swig_cast_initial[] = { | |
34706 | _swigc__p_char, | |
34707 | _swigc__p_form_ops_t, | |
34708 | _swigc__p_int, | |
34709 | _swigc__p_unsigned_char, | |
34710 | _swigc__p_unsigned_int, | |
34711 | _swigc__p_unsigned_long, | |
34712 | _swigc__p_void, | |
34713 | _swigc__p_wxANIHandler, | |
34714 | _swigc__p_wxAcceleratorTable, | |
34715 | _swigc__p_wxActivateEvent, | |
34716 | _swigc__p_wxArrayString, | |
34717 | _swigc__p_wxBMPHandler, | |
34718 | _swigc__p_wxBitmap, | |
34719 | _swigc__p_wxBitmapDataObject, | |
34720 | _swigc__p_wxBoxSizer, | |
34721 | _swigc__p_wxBusyCursor, | |
34722 | _swigc__p_wxBusyInfo, | |
34723 | _swigc__p_wxCURHandler, | |
34724 | _swigc__p_wxCaret, | |
34725 | _swigc__p_wxChar, | |
34726 | _swigc__p_wxChildFocusEvent, | |
34727 | _swigc__p_wxClipboard, | |
34728 | _swigc__p_wxClipboardLocker, | |
34729 | _swigc__p_wxCloseEvent, | |
34730 | _swigc__p_wxColour, | |
34731 | _swigc__p_wxCommandEvent, | |
34732 | _swigc__p_wxConfig, | |
34733 | _swigc__p_wxConfigBase, | |
34734 | _swigc__p_wxConfigPathChanger, | |
34735 | _swigc__p_wxContextMenuEvent, | |
34736 | _swigc__p_wxControl, | |
34737 | _swigc__p_wxControlWithItems, | |
34738 | _swigc__p_wxCursor, | |
34739 | _swigc__p_wxCustomDataObject, | |
34740 | _swigc__p_wxDC, | |
34741 | _swigc__p_wxDataFormat, | |
34742 | _swigc__p_wxDataObject, | |
34743 | _swigc__p_wxDataObjectComposite, | |
34744 | _swigc__p_wxDataObjectSimple, | |
34745 | _swigc__p_wxDateEvent, | |
34746 | _swigc__p_wxDateSpan, | |
34747 | _swigc__p_wxDateTime, | |
34748 | _swigc__p_wxDateTime__TimeZone, | |
34749 | _swigc__p_wxDisplay, | |
34750 | _swigc__p_wxDisplayChangedEvent, | |
34751 | _swigc__p_wxDropFilesEvent, | |
34752 | _swigc__p_wxDuplexMode, | |
34753 | _swigc__p_wxEraseEvent, | |
34754 | _swigc__p_wxEvent, | |
34755 | _swigc__p_wxEvtHandler, | |
34756 | _swigc__p_wxFSFile, | |
34757 | _swigc__p_wxFileConfig, | |
34758 | _swigc__p_wxFileDataObject, | |
34759 | _swigc__p_wxFileHistory, | |
34760 | _swigc__p_wxFileSystem, | |
34761 | _swigc__p_wxFileType, | |
34762 | _swigc__p_wxFileTypeInfo, | |
34763 | _swigc__p_wxFlexGridSizer, | |
34764 | _swigc__p_wxFocusEvent, | |
34765 | _swigc__p_wxFont, | |
34766 | _swigc__p_wxFrame, | |
34767 | _swigc__p_wxGBSizerItem, | |
34768 | _swigc__p_wxGIFHandler, | |
34769 | _swigc__p_wxGridBagSizer, | |
34770 | _swigc__p_wxGridSizer, | |
34771 | _swigc__p_wxICOHandler, | |
34772 | _swigc__p_wxIcon, | |
34773 | _swigc__p_wxIconizeEvent, | |
34774 | _swigc__p_wxIdleEvent, | |
34775 | _swigc__p_wxImage, | |
34776 | _swigc__p_wxImageHandler, | |
34777 | _swigc__p_wxIndividualLayoutConstraint, | |
34778 | _swigc__p_wxInitDialogEvent, | |
34779 | _swigc__p_wxJPEGHandler, | |
34780 | _swigc__p_wxJoystick, | |
34781 | _swigc__p_wxJoystickEvent, | |
34782 | _swigc__p_wxKeyEvent, | |
34783 | _swigc__p_wxKillError, | |
34784 | _swigc__p_wxLayoutConstraints, | |
34785 | _swigc__p_wxLog, | |
34786 | _swigc__p_wxLogBuffer, | |
34787 | _swigc__p_wxLogChain, | |
34788 | _swigc__p_wxLogGui, | |
34789 | _swigc__p_wxLogNull, | |
34790 | _swigc__p_wxLogStderr, | |
34791 | _swigc__p_wxLogTextCtrl, | |
34792 | _swigc__p_wxLogWindow, | |
34793 | _swigc__p_wxMaximizeEvent, | |
34794 | _swigc__p_wxMemorySize, | |
34795 | _swigc__p_wxMenu, | |
34796 | _swigc__p_wxMenuBar, | |
34797 | _swigc__p_wxMenuEvent, | |
34798 | _swigc__p_wxMenuItem, | |
34799 | _swigc__p_wxMetafileDataObject, | |
34800 | _swigc__p_wxMimeTypesManager, | |
34801 | _swigc__p_wxMouseCaptureChangedEvent, | |
34802 | _swigc__p_wxMouseEvent, | |
34803 | _swigc__p_wxMouseState, | |
34804 | _swigc__p_wxMoveEvent, | |
34805 | _swigc__p_wxMutexGuiLocker, | |
34806 | _swigc__p_wxNavigationKeyEvent, | |
34807 | _swigc__p_wxNcPaintEvent, | |
34808 | _swigc__p_wxNotifyEvent, | |
34809 | _swigc__p_wxObject, | |
34810 | _swigc__p_wxOutputStream, | |
34811 | _swigc__p_wxPCXHandler, | |
34812 | _swigc__p_wxPNGHandler, | |
34813 | _swigc__p_wxPNMHandler, | |
34814 | _swigc__p_wxPaintEvent, | |
34815 | _swigc__p_wxPaletteChangedEvent, | |
34816 | _swigc__p_wxPaperSize, | |
34817 | _swigc__p_wxPoint, | |
34818 | _swigc__p_wxProcessEvent, | |
34819 | _swigc__p_wxPyApp, | |
34820 | _swigc__p_wxPyArtProvider, | |
34821 | _swigc__p_wxPyBitmapDataObject, | |
34822 | _swigc__p_wxPyCommandEvent, | |
34823 | _swigc__p_wxPyDataObjectSimple, | |
34824 | _swigc__p_wxPyDropSource, | |
34825 | _swigc__p_wxPyDropTarget, | |
34826 | _swigc__p_wxPyEvent, | |
34827 | _swigc__p_wxPyFileDropTarget, | |
34828 | _swigc__p_wxPyImageHandler, | |
34829 | _swigc__p_wxPyLog, | |
34830 | _swigc__p_wxPyProcess, | |
34831 | _swigc__p_wxPySizer, | |
34832 | _swigc__p_wxPyTextDataObject, | |
34833 | _swigc__p_wxPyTextDropTarget, | |
34834 | _swigc__p_wxPyTimer, | |
34835 | _swigc__p_wxPyTipProvider, | |
34836 | _swigc__p_wxPyValidator, | |
34837 | _swigc__p_wxQueryNewPaletteEvent, | |
34838 | _swigc__p_wxRect, | |
34839 | _swigc__p_wxScrollEvent, | |
34840 | _swigc__p_wxScrollWinEvent, | |
34841 | _swigc__p_wxSetCursorEvent, | |
34842 | _swigc__p_wxShowEvent, | |
34843 | _swigc__p_wxSingleInstanceChecker, | |
34844 | _swigc__p_wxSize, | |
34845 | _swigc__p_wxSizeEvent, | |
34846 | _swigc__p_wxSizer, | |
34847 | _swigc__p_wxSizerItem, | |
34848 | _swigc__p_wxSound, | |
34849 | _swigc__p_wxStandardPaths, | |
34850 | _swigc__p_wxStaticBoxSizer, | |
34851 | _swigc__p_wxStdDialogButtonSizer, | |
34852 | _swigc__p_wxStopWatch, | |
34853 | _swigc__p_wxString, | |
34854 | _swigc__p_wxSysColourChangedEvent, | |
34855 | _swigc__p_wxSystemOptions, | |
34856 | _swigc__p_wxSystemSettings, | |
34857 | _swigc__p_wxTIFFHandler, | |
34858 | _swigc__p_wxTextCtrl, | |
34859 | _swigc__p_wxTextDataObject, | |
34860 | _swigc__p_wxTimeSpan, | |
34861 | _swigc__p_wxTimer, | |
34862 | _swigc__p_wxTimerEvent, | |
34863 | _swigc__p_wxTimerRunner, | |
34864 | _swigc__p_wxTipProvider, | |
34865 | _swigc__p_wxToolTip, | |
34866 | _swigc__p_wxURLDataObject, | |
34867 | _swigc__p_wxUpdateUIEvent, | |
34868 | _swigc__p_wxValidator, | |
34869 | _swigc__p_wxVideoMode, | |
34870 | _swigc__p_wxWindow, | |
34871 | _swigc__p_wxWindowCreateEvent, | |
34872 | _swigc__p_wxWindowDestroyEvent, | |
34873 | _swigc__p_wxWindowDisabler, | |
34874 | _swigc__p_wxXPMHandler, | |
34875 | _swigc__ptrdiff_t, | |
34876 | _swigc__std__ptrdiff_t, | |
34877 | _swigc__unsigned_int, | |
d14a1e28 RD |
34878 | }; |
34879 | ||
34880 | ||
34881 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
34882 | ||
34883 | static swig_const_info swig_const_table[] = { | |
15afbcd0 RD |
34884 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, |
34885 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
34886 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
34887 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
34888 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
c32bde28 | 34889 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
34890 | |
34891 | #ifdef __cplusplus | |
34892 | } | |
34893 | #endif | |
32fe5131 RD |
34894 | /************************************************************************* |
34895 | * Type initialization: | |
34896 | * This problem is tough by the requirement that no dynamic | |
34897 | * memory is used. Also, since swig_type_info structures store pointers to | |
34898 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
34899 | * to swig_type_info structures, we need some lookup code at initialization. | |
34900 | * The idea is that swig generates all the structures that are needed. | |
34901 | * The runtime then collects these partially filled structures. | |
34902 | * The SWIG_InitializeModule function takes these initial arrays out of | |
34903 | * swig_module, and does all the lookup, filling in the swig_module.types | |
34904 | * array with the correct data and linking the correct swig_cast_info | |
34905 | * structures together. | |
34906 | ||
34907 | * The generated swig_type_info structures are assigned staticly to an initial | |
34908 | * array. We just loop though that array, and handle each type individually. | |
34909 | * First we lookup if this type has been already loaded, and if so, use the | |
34910 | * loaded structure instead of the generated one. Then we have to fill in the | |
34911 | * cast linked list. The cast data is initially stored in something like a | |
34912 | * two-dimensional array. Each row corresponds to a type (there are the same | |
34913 | * number of rows as there are in the swig_type_initial array). Each entry in | |
34914 | * a column is one of the swig_cast_info structures for that type. | |
34915 | * The cast_initial array is actually an array of arrays, because each row has | |
34916 | * a variable number of columns. So to actually build the cast linked list, | |
34917 | * we find the array of casts associated with the type, and loop through it | |
34918 | * adding the casts to the list. The one last trick we need to do is making | |
34919 | * sure the type pointer in the swig_cast_info struct is correct. | |
34920 | ||
34921 | * First off, we lookup the cast->type name to see if it is already loaded. | |
34922 | * There are three cases to handle: | |
34923 | * 1) If the cast->type has already been loaded AND the type we are adding | |
34924 | * casting info to has not been loaded (it is in this module), THEN we | |
34925 | * replace the cast->type pointer with the type pointer that has already | |
34926 | * been loaded. | |
34927 | * 2) If BOTH types (the one we are adding casting info to, and the | |
34928 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
34929 | * the previous module so we just ignore it. | |
34930 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
34931 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
34932 | * be correct. | |
34933 | **/ | |
34934 | ||
34935 | #ifdef __cplusplus | |
34936 | extern "C" { | |
34937 | #if 0 | |
34938 | } /* c-mode */ | |
34939 | #endif | |
34940 | #endif | |
34941 | ||
34942 | #if 0 | |
34943 | #define SWIGRUNTIME_DEBUG | |
34944 | #endif | |
34945 | ||
34946 | SWIGRUNTIME void | |
34947 | SWIG_InitializeModule(void *clientdata) { | |
34948 | size_t i; | |
34949 | swig_module_info *module_head; | |
34950 | static int init_run = 0; | |
34951 | ||
34952 | clientdata = clientdata; | |
34953 | ||
34954 | if (init_run) return; | |
34955 | init_run = 1; | |
34956 | ||
34957 | /* Initialize the swig_module */ | |
34958 | swig_module.type_initial = swig_type_initial; | |
34959 | swig_module.cast_initial = swig_cast_initial; | |
34960 | ||
34961 | /* Try and load any already created modules */ | |
34962 | module_head = SWIG_GetModule(clientdata); | |
34963 | if (module_head) { | |
34964 | swig_module.next = module_head->next; | |
34965 | module_head->next = &swig_module; | |
34966 | } else { | |
34967 | /* This is the first module loaded */ | |
34968 | swig_module.next = &swig_module; | |
34969 | SWIG_SetModule(clientdata, &swig_module); | |
34970 | } | |
34971 | ||
34972 | /* Now work on filling in swig_module.types */ | |
34973 | #ifdef SWIGRUNTIME_DEBUG | |
34974 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
34975 | #endif | |
34976 | for (i = 0; i < swig_module.size; ++i) { | |
34977 | swig_type_info *type = 0; | |
34978 | swig_type_info *ret; | |
34979 | swig_cast_info *cast; | |
34980 | ||
34981 | #ifdef SWIGRUNTIME_DEBUG | |
34982 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
34983 | #endif | |
34984 | ||
34985 | /* if there is another module already loaded */ | |
34986 | if (swig_module.next != &swig_module) { | |
34987 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
34988 | } | |
34989 | if (type) { | |
34990 | /* Overwrite clientdata field */ | |
34991 | #ifdef SWIGRUNTIME_DEBUG | |
34992 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
34993 | #endif | |
34994 | if (swig_module.type_initial[i]->clientdata) { | |
34995 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
34996 | #ifdef SWIGRUNTIME_DEBUG | |
34997 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
34998 | #endif | |
34999 | } | |
35000 | } else { | |
35001 | type = swig_module.type_initial[i]; | |
35002 | } | |
35003 | ||
35004 | /* Insert casting types */ | |
35005 | cast = swig_module.cast_initial[i]; | |
35006 | while (cast->type) { | |
35007 | /* Don't need to add information already in the list */ | |
35008 | ret = 0; | |
35009 | #ifdef SWIGRUNTIME_DEBUG | |
35010 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
35011 | #endif | |
35012 | if (swig_module.next != &swig_module) { | |
35013 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
35014 | #ifdef SWIGRUNTIME_DEBUG | |
35015 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
35016 | #endif | |
35017 | } | |
35018 | if (ret) { | |
35019 | if (type == swig_module.type_initial[i]) { | |
35020 | #ifdef SWIGRUNTIME_DEBUG | |
35021 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
35022 | #endif | |
35023 | cast->type = ret; | |
35024 | ret = 0; | |
35025 | } else { | |
35026 | /* Check for casting already in the list */ | |
35027 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
35028 | #ifdef SWIGRUNTIME_DEBUG | |
35029 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
35030 | #endif | |
35031 | if (!ocast) ret = 0; | |
35032 | } | |
35033 | } | |
35034 | ||
35035 | if (!ret) { | |
35036 | #ifdef SWIGRUNTIME_DEBUG | |
35037 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
35038 | #endif | |
35039 | if (type->cast) { | |
35040 | type->cast->prev = cast; | |
35041 | cast->next = type->cast; | |
35042 | } | |
35043 | type->cast = cast; | |
35044 | } | |
35045 | cast++; | |
35046 | } | |
35047 | /* Set entry in modules->types array equal to the type */ | |
35048 | swig_module.types[i] = type; | |
35049 | } | |
35050 | swig_module.types[i] = 0; | |
35051 | ||
35052 | #ifdef SWIGRUNTIME_DEBUG | |
35053 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
35054 | for (i = 0; i < swig_module.size; ++i) { | |
35055 | int j = 0; | |
35056 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
35057 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
35058 | while (cast->type) { | |
35059 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
35060 | cast++; | |
35061 | ++j; | |
35062 | } | |
35063 | printf("---- Total casts: %d\n",j); | |
35064 | } | |
35065 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
35066 | #endif | |
35067 | } | |
35068 | ||
35069 | /* This function will propagate the clientdata field of type to | |
35070 | * any new swig_type_info structures that have been added into the list | |
35071 | * of equivalent types. It is like calling | |
35072 | * SWIG_TypeClientData(type, clientdata) a second time. | |
35073 | */ | |
35074 | SWIGRUNTIME void | |
35075 | SWIG_PropagateClientData(void) { | |
35076 | size_t i; | |
35077 | swig_cast_info *equiv; | |
35078 | static int init_run = 0; | |
35079 | ||
35080 | if (init_run) return; | |
35081 | init_run = 1; | |
35082 | ||
35083 | for (i = 0; i < swig_module.size; i++) { | |
35084 | if (swig_module.types[i]->clientdata) { | |
35085 | equiv = swig_module.types[i]->cast; | |
35086 | while (equiv) { | |
35087 | if (!equiv->converter) { | |
35088 | if (equiv->type && !equiv->type->clientdata) | |
35089 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
35090 | } | |
35091 | equiv = equiv->next; | |
35092 | } | |
35093 | } | |
35094 | } | |
35095 | } | |
35096 | ||
35097 | #ifdef __cplusplus | |
35098 | #if 0 | |
35099 | { | |
35100 | /* c-mode */ | |
35101 | #endif | |
35102 | } | |
35103 | #endif | |
35104 | ||
d14a1e28 | 35105 | |
093d3ff1 RD |
35106 | |
35107 | #ifdef __cplusplus | |
35108 | extern "C" { | |
35109 | #endif | |
35110 | ||
35111 | /* Python-specific SWIG API */ | |
35112 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
35113 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
35114 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
35115 | ||
35116 | /* ----------------------------------------------------------------------------- | |
35117 | * global variable support code. | |
35118 | * ----------------------------------------------------------------------------- */ | |
35119 | ||
35120 | typedef struct swig_globalvar { | |
35121 | char *name; /* Name of global variable */ | |
32fe5131 | 35122 | PyObject *(*get_attr)(void); /* Return the current value */ |
093d3ff1 RD |
35123 | int (*set_attr)(PyObject *); /* Set the value */ |
35124 | struct swig_globalvar *next; | |
35125 | } swig_globalvar; | |
35126 | ||
35127 | typedef struct swig_varlinkobject { | |
35128 | PyObject_HEAD | |
35129 | swig_globalvar *vars; | |
35130 | } swig_varlinkobject; | |
35131 | ||
32fe5131 | 35132 | SWIGINTERN PyObject * |
093d3ff1 RD |
35133 | swig_varlink_repr(swig_varlinkobject *v) { |
35134 | v = v; | |
35135 | return PyString_FromString("<Swig global variables>"); | |
35136 | } | |
35137 | ||
32fe5131 | 35138 | SWIGINTERN int |
093d3ff1 RD |
35139 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { |
35140 | swig_globalvar *var; | |
35141 | flags = flags; | |
35142 | fprintf(fp,"Swig global variables { "); | |
35143 | for (var = v->vars; var; var=var->next) { | |
35144 | fprintf(fp,"%s", var->name); | |
35145 | if (var->next) fprintf(fp,", "); | |
35146 | } | |
35147 | fprintf(fp," }\n"); | |
35148 | return 0; | |
35149 | } | |
35150 | ||
32fe5131 | 35151 | SWIGINTERN PyObject * |
093d3ff1 RD |
35152 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
35153 | swig_globalvar *var = v->vars; | |
35154 | while (var) { | |
35155 | if (strcmp(var->name,n) == 0) { | |
35156 | return (*var->get_attr)(); | |
35157 | } | |
35158 | var = var->next; | |
35159 | } | |
35160 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
35161 | return NULL; | |
35162 | } | |
35163 | ||
32fe5131 | 35164 | SWIGINTERN int |
093d3ff1 RD |
35165 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
35166 | swig_globalvar *var = v->vars; | |
35167 | while (var) { | |
35168 | if (strcmp(var->name,n) == 0) { | |
35169 | return (*var->set_attr)(p); | |
35170 | } | |
35171 | var = var->next; | |
35172 | } | |
35173 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
35174 | return 1; | |
35175 | } | |
35176 | ||
32fe5131 RD |
35177 | SWIGINTERN PyTypeObject* |
35178 | swig_varlink_type(void) { | |
35179 | static char varlink__doc__[] = "Swig var link object"; | |
35180 | static PyTypeObject varlink_type | |
35181 | #if !defined(__cplusplus) | |
35182 | ; | |
35183 | static int type_init = 0; | |
35184 | if (!type_init) { | |
35185 | PyTypeObject tmp | |
35186 | #endif | |
35187 | = { | |
35188 | PyObject_HEAD_INIT(&PyType_Type) | |
35189 | 0, /* Number of items in variable part (ob_size) */ | |
35190 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
35191 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
35192 | 0, /* Itemsize (tp_itemsize) */ | |
35193 | 0, /* Deallocator (tp_dealloc) */ | |
35194 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
35195 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
35196 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
35197 | 0, /* tp_compare */ | |
35198 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
35199 | 0, /* tp_as_number */ | |
35200 | 0, /* tp_as_sequence */ | |
35201 | 0, /* tp_as_mapping */ | |
35202 | 0, /* tp_hash */ | |
35203 | 0, /* tp_call */ | |
35204 | 0, /* tp_str */ | |
35205 | 0, /* tp_getattro */ | |
35206 | 0, /* tp_setattro */ | |
35207 | 0, /* tp_as_buffer */ | |
35208 | 0, /* tp_flags */ | |
35209 | varlink__doc__, /* tp_doc */ | |
093d3ff1 | 35210 | #if PY_VERSION_HEX >= 0x02000000 |
32fe5131 RD |
35211 | 0, /* tp_traverse */ |
35212 | 0, /* tp_clear */ | |
093d3ff1 RD |
35213 | #endif |
35214 | #if PY_VERSION_HEX >= 0x02010000 | |
32fe5131 RD |
35215 | 0, /* tp_richcompare */ |
35216 | 0, /* tp_weaklistoffset */ | |
093d3ff1 RD |
35217 | #endif |
35218 | #if PY_VERSION_HEX >= 0x02020000 | |
32fe5131 | 35219 | 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 |
35220 | #endif |
35221 | #if PY_VERSION_HEX >= 0x02030000 | |
32fe5131 | 35222 | 0, /* tp_del */ |
093d3ff1 RD |
35223 | #endif |
35224 | #ifdef COUNT_ALLOCS | |
32fe5131 | 35225 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 35226 | #endif |
32fe5131 RD |
35227 | }; |
35228 | #if !defined(__cplusplus) | |
35229 | varlink_type = tmp; | |
35230 | type_init = 1; | |
35231 | } | |
35232 | #endif | |
35233 | return &varlink_type; | |
35234 | } | |
093d3ff1 RD |
35235 | |
35236 | /* Create a variable linking object for use later */ | |
32fe5131 | 35237 | SWIGINTERN PyObject * |
093d3ff1 | 35238 | SWIG_Python_newvarlink(void) { |
32fe5131 RD |
35239 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); |
35240 | if (result) { | |
35241 | result->vars = 0; | |
35242 | } | |
093d3ff1 RD |
35243 | return ((PyObject*) result); |
35244 | } | |
35245 | ||
32fe5131 | 35246 | SWIGINTERN void |
093d3ff1 | 35247 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
32fe5131 RD |
35248 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
35249 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
35250 | if (gv) { | |
35251 | size_t size = strlen(name)+1; | |
35252 | gv->name = (char *)malloc(size); | |
35253 | if (gv->name) { | |
35254 | strncpy(gv->name,name,size); | |
35255 | gv->get_attr = get_attr; | |
35256 | gv->set_attr = set_attr; | |
35257 | gv->next = v->vars; | |
35258 | } | |
35259 | } | |
093d3ff1 RD |
35260 | v->vars = gv; |
35261 | } | |
35262 | ||
35263 | /* ----------------------------------------------------------------------------- | |
35264 | * constants/methods manipulation | |
35265 | * ----------------------------------------------------------------------------- */ | |
35266 | ||
35267 | /* Install Constants */ | |
32fe5131 | 35268 | SWIGINTERN void |
093d3ff1 RD |
35269 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
35270 | PyObject *obj = 0; | |
35271 | size_t i; | |
32fe5131 | 35272 | for (i = 0; constants[i].type; ++i) { |
093d3ff1 RD |
35273 | switch(constants[i].type) { |
35274 | case SWIG_PY_INT: | |
35275 | obj = PyInt_FromLong(constants[i].lvalue); | |
35276 | break; | |
35277 | case SWIG_PY_FLOAT: | |
35278 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
35279 | break; | |
35280 | case SWIG_PY_STRING: | |
35281 | if (constants[i].pvalue) { | |
35282 | obj = PyString_FromString((char *) constants[i].pvalue); | |
35283 | } else { | |
35284 | Py_INCREF(Py_None); | |
35285 | obj = Py_None; | |
35286 | } | |
35287 | break; | |
35288 | case SWIG_PY_POINTER: | |
35289 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
35290 | break; | |
35291 | case SWIG_PY_BINARY: | |
35292 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
35293 | break; | |
35294 | default: | |
35295 | obj = 0; | |
35296 | break; | |
35297 | } | |
35298 | if (obj) { | |
35299 | PyDict_SetItemString(d,constants[i].name,obj); | |
35300 | Py_DECREF(obj); | |
35301 | } | |
35302 | } | |
35303 | } | |
35304 | ||
35305 | /* -----------------------------------------------------------------------------*/ | |
35306 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
35307 | /* -----------------------------------------------------------------------------*/ | |
35308 | ||
32fe5131 | 35309 | SWIGINTERN void |
093d3ff1 RD |
35310 | SWIG_Python_FixMethods(PyMethodDef *methods, |
35311 | swig_const_info *const_table, | |
35312 | swig_type_info **types, | |
35313 | swig_type_info **types_initial) { | |
35314 | size_t i; | |
35315 | for (i = 0; methods[i].ml_name; ++i) { | |
35316 | char *c = methods[i].ml_doc; | |
35317 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
35318 | int j; | |
35319 | swig_const_info *ci = 0; | |
35320 | char *name = c + 10; | |
32fe5131 | 35321 | for (j = 0; const_table[j].type; ++j) { |
093d3ff1 RD |
35322 | if (strncmp(const_table[j].name, name, |
35323 | strlen(const_table[j].name)) == 0) { | |
35324 | ci = &(const_table[j]); | |
35325 | break; | |
35326 | } | |
35327 | } | |
35328 | if (ci) { | |
35329 | size_t shift = (ci->ptype) - types; | |
35330 | swig_type_info *ty = types_initial[shift]; | |
35331 | size_t ldoc = (c - methods[i].ml_doc); | |
35332 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
35333 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
32fe5131 RD |
35334 | if (ndoc) { |
35335 | char *buff = ndoc; | |
35336 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
35337 | if (ptr) { | |
35338 | strncpy(buff, methods[i].ml_doc, ldoc); | |
35339 | buff += ldoc; | |
35340 | strncpy(buff, "swig_ptr: ", 10); | |
35341 | buff += 10; | |
35342 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
35343 | methods[i].ml_doc = ndoc; | |
35344 | } | |
35345 | } | |
093d3ff1 RD |
35346 | } |
35347 | } | |
35348 | } | |
35349 | } | |
35350 | ||
35351 | /* -----------------------------------------------------------------------------* | |
35352 | * Initialize type list | |
35353 | * -----------------------------------------------------------------------------*/ | |
35354 | ||
093d3ff1 RD |
35355 | #ifdef __cplusplus |
35356 | } | |
35357 | #endif | |
35358 | ||
35359 | /* -----------------------------------------------------------------------------* | |
35360 | * Partial Init method | |
35361 | * -----------------------------------------------------------------------------*/ | |
35362 | ||
d14a1e28 RD |
35363 | #ifdef __cplusplus |
35364 | extern "C" | |
35365 | #endif | |
32fe5131 | 35366 | SWIGEXPORT void SWIG_init(void) { |
d14a1e28 | 35367 | static PyObject *SWIG_globals = 0; |
d14a1e28 | 35368 | PyObject *m, *d; |
d14a1e28 | 35369 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); |
093d3ff1 RD |
35370 | |
35371 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
32fe5131 | 35372 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
093d3ff1 | 35373 | |
d14a1e28 RD |
35374 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
35375 | d = PyModule_GetDict(m); | |
35376 | ||
32fe5131 | 35377 | SWIG_InitializeModule(0); |
d14a1e28 RD |
35378 | SWIG_InstallConstants(d,swig_const_table); |
35379 | ||
093d3ff1 | 35380 | { |
32fe5131 | 35381 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_OEM_FIXED_FONT))); |
093d3ff1 RD |
35382 | } |
35383 | { | |
32fe5131 | 35384 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_ANSI_FIXED_FONT))); |
093d3ff1 RD |
35385 | } |
35386 | { | |
32fe5131 | 35387 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int(static_cast<int >(wxSYS_ANSI_VAR_FONT))); |
093d3ff1 RD |
35388 | } |
35389 | { | |
32fe5131 | 35390 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int(static_cast<int >(wxSYS_SYSTEM_FONT))); |
093d3ff1 RD |
35391 | } |
35392 | { | |
32fe5131 | 35393 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int(static_cast<int >(wxSYS_DEVICE_DEFAULT_FONT))); |
093d3ff1 RD |
35394 | } |
35395 | { | |
32fe5131 | 35396 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int(static_cast<int >(wxSYS_DEFAULT_PALETTE))); |
093d3ff1 RD |
35397 | } |
35398 | { | |
32fe5131 | 35399 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int(static_cast<int >(wxSYS_SYSTEM_FIXED_FONT))); |
093d3ff1 RD |
35400 | } |
35401 | { | |
32fe5131 | 35402 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int(static_cast<int >(wxSYS_DEFAULT_GUI_FONT))); |
093d3ff1 RD |
35403 | } |
35404 | { | |
32fe5131 | 35405 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int(static_cast<int >(wxSYS_ICONTITLE_FONT))); |
093d3ff1 RD |
35406 | } |
35407 | { | |
32fe5131 | 35408 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_SCROLLBAR))); |
093d3ff1 RD |
35409 | } |
35410 | { | |
32fe5131 | 35411 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BACKGROUND))); |
093d3ff1 RD |
35412 | } |
35413 | { | |
32fe5131 | 35414 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_DESKTOP))); |
093d3ff1 RD |
35415 | } |
35416 | { | |
32fe5131 | 35417 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_ACTIVECAPTION))); |
093d3ff1 RD |
35418 | } |
35419 | { | |
32fe5131 | 35420 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVECAPTION))); |
093d3ff1 RD |
35421 | } |
35422 | { | |
32fe5131 | 35423 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENU))); |
093d3ff1 RD |
35424 | } |
35425 | { | |
32fe5131 | 35426 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOW))); |
093d3ff1 RD |
35427 | } |
35428 | { | |
32fe5131 | 35429 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOWFRAME))); |
093d3ff1 RD |
35430 | } |
35431 | { | |
32fe5131 | 35432 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUTEXT))); |
093d3ff1 RD |
35433 | } |
35434 | { | |
32fe5131 | 35435 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_WINDOWTEXT))); |
093d3ff1 RD |
35436 | } |
35437 | { | |
32fe5131 | 35438 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_CAPTIONTEXT))); |
093d3ff1 RD |
35439 | } |
35440 | { | |
32fe5131 | 35441 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_ACTIVEBORDER))); |
093d3ff1 RD |
35442 | } |
35443 | { | |
32fe5131 | 35444 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVEBORDER))); |
093d3ff1 RD |
35445 | } |
35446 | { | |
32fe5131 | 35447 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_APPWORKSPACE))); |
093d3ff1 RD |
35448 | } |
35449 | { | |
32fe5131 | 35450 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HIGHLIGHT))); |
093d3ff1 RD |
35451 | } |
35452 | { | |
32fe5131 | 35453 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HIGHLIGHTTEXT))); |
093d3ff1 RD |
35454 | } |
35455 | { | |
32fe5131 | 35456 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNFACE))); |
093d3ff1 RD |
35457 | } |
35458 | { | |
32fe5131 | 35459 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DFACE))); |
093d3ff1 RD |
35460 | } |
35461 | { | |
32fe5131 | 35462 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNSHADOW))); |
093d3ff1 RD |
35463 | } |
35464 | { | |
32fe5131 | 35465 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DSHADOW))); |
093d3ff1 RD |
35466 | } |
35467 | { | |
32fe5131 | 35468 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRAYTEXT))); |
093d3ff1 RD |
35469 | } |
35470 | { | |
32fe5131 | 35471 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNTEXT))); |
093d3ff1 RD |
35472 | } |
35473 | { | |
32fe5131 | 35474 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INACTIVECAPTIONTEXT))); |
093d3ff1 RD |
35475 | } |
35476 | { | |
32fe5131 | 35477 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNHIGHLIGHT))); |
093d3ff1 RD |
35478 | } |
35479 | { | |
32fe5131 | 35480 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_BTNHILIGHT))); |
093d3ff1 RD |
35481 | } |
35482 | { | |
32fe5131 | 35483 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DHIGHLIGHT))); |
093d3ff1 RD |
35484 | } |
35485 | { | |
32fe5131 | 35486 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DHILIGHT))); |
093d3ff1 RD |
35487 | } |
35488 | { | |
32fe5131 | 35489 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DDKSHADOW))); |
093d3ff1 RD |
35490 | } |
35491 | { | |
32fe5131 | 35492 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_3DLIGHT))); |
093d3ff1 RD |
35493 | } |
35494 | { | |
32fe5131 | 35495 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INFOTEXT))); |
093d3ff1 RD |
35496 | } |
35497 | { | |
32fe5131 | 35498 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_INFOBK))); |
093d3ff1 RD |
35499 | } |
35500 | { | |
32fe5131 | 35501 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_LISTBOX))); |
093d3ff1 RD |
35502 | } |
35503 | { | |
32fe5131 | 35504 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_HOTLIGHT))); |
093d3ff1 RD |
35505 | } |
35506 | { | |
32fe5131 | 35507 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRADIENTACTIVECAPTION))); |
093d3ff1 RD |
35508 | } |
35509 | { | |
32fe5131 | 35510 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_GRADIENTINACTIVECAPTION))); |
093d3ff1 RD |
35511 | } |
35512 | { | |
32fe5131 | 35513 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUHILIGHT))); |
093d3ff1 RD |
35514 | } |
35515 | { | |
32fe5131 | 35516 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MENUBAR))); |
093d3ff1 RD |
35517 | } |
35518 | { | |
32fe5131 | 35519 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int(static_cast<int >(wxSYS_COLOUR_MAX))); |
093d3ff1 RD |
35520 | } |
35521 | { | |
32fe5131 | 35522 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int(static_cast<int >(wxSYS_MOUSE_BUTTONS))); |
093d3ff1 RD |
35523 | } |
35524 | { | |
32fe5131 | 35525 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int(static_cast<int >(wxSYS_BORDER_X))); |
093d3ff1 RD |
35526 | } |
35527 | { | |
32fe5131 | 35528 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int(static_cast<int >(wxSYS_BORDER_Y))); |
093d3ff1 RD |
35529 | } |
35530 | { | |
32fe5131 | 35531 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int(static_cast<int >(wxSYS_CURSOR_X))); |
093d3ff1 RD |
35532 | } |
35533 | { | |
32fe5131 | 35534 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int(static_cast<int >(wxSYS_CURSOR_Y))); |
093d3ff1 RD |
35535 | } |
35536 | { | |
32fe5131 | 35537 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int(static_cast<int >(wxSYS_DCLICK_X))); |
093d3ff1 RD |
35538 | } |
35539 | { | |
32fe5131 | 35540 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int(static_cast<int >(wxSYS_DCLICK_Y))); |
093d3ff1 RD |
35541 | } |
35542 | { | |
32fe5131 | 35543 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int(static_cast<int >(wxSYS_DRAG_X))); |
093d3ff1 RD |
35544 | } |
35545 | { | |
32fe5131 | 35546 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int(static_cast<int >(wxSYS_DRAG_Y))); |
093d3ff1 RD |
35547 | } |
35548 | { | |
32fe5131 | 35549 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int(static_cast<int >(wxSYS_EDGE_X))); |
093d3ff1 RD |
35550 | } |
35551 | { | |
32fe5131 | 35552 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int(static_cast<int >(wxSYS_EDGE_Y))); |
093d3ff1 RD |
35553 | } |
35554 | { | |
32fe5131 | 35555 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_ARROW_X))); |
093d3ff1 RD |
35556 | } |
35557 | { | |
32fe5131 | 35558 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_ARROW_Y))); |
093d3ff1 RD |
35559 | } |
35560 | { | |
32fe5131 | 35561 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int(static_cast<int >(wxSYS_HTHUMB_X))); |
093d3ff1 RD |
35562 | } |
35563 | { | |
32fe5131 | 35564 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int(static_cast<int >(wxSYS_ICON_X))); |
093d3ff1 RD |
35565 | } |
35566 | { | |
32fe5131 | 35567 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int(static_cast<int >(wxSYS_ICON_Y))); |
093d3ff1 RD |
35568 | } |
35569 | { | |
32fe5131 | 35570 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int(static_cast<int >(wxSYS_ICONSPACING_X))); |
093d3ff1 RD |
35571 | } |
35572 | { | |
32fe5131 | 35573 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int(static_cast<int >(wxSYS_ICONSPACING_Y))); |
093d3ff1 RD |
35574 | } |
35575 | { | |
32fe5131 | 35576 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int(static_cast<int >(wxSYS_WINDOWMIN_X))); |
093d3ff1 RD |
35577 | } |
35578 | { | |
32fe5131 | 35579 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int(static_cast<int >(wxSYS_WINDOWMIN_Y))); |
093d3ff1 RD |
35580 | } |
35581 | { | |
32fe5131 | 35582 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_X))); |
093d3ff1 RD |
35583 | } |
35584 | { | |
32fe5131 | 35585 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_Y))); |
093d3ff1 RD |
35586 | } |
35587 | { | |
32fe5131 | 35588 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int(static_cast<int >(wxSYS_FRAMESIZE_X))); |
093d3ff1 RD |
35589 | } |
35590 | { | |
32fe5131 | 35591 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int(static_cast<int >(wxSYS_FRAMESIZE_Y))); |
093d3ff1 RD |
35592 | } |
35593 | { | |
32fe5131 | 35594 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int(static_cast<int >(wxSYS_SMALLICON_X))); |
093d3ff1 RD |
35595 | } |
35596 | { | |
32fe5131 | 35597 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int(static_cast<int >(wxSYS_SMALLICON_Y))); |
093d3ff1 RD |
35598 | } |
35599 | { | |
32fe5131 | 35600 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int(static_cast<int >(wxSYS_HSCROLL_Y))); |
093d3ff1 RD |
35601 | } |
35602 | { | |
32fe5131 | 35603 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_X))); |
093d3ff1 RD |
35604 | } |
35605 | { | |
32fe5131 | 35606 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_ARROW_X))); |
093d3ff1 RD |
35607 | } |
35608 | { | |
32fe5131 | 35609 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int(static_cast<int >(wxSYS_VSCROLL_ARROW_Y))); |
093d3ff1 RD |
35610 | } |
35611 | { | |
32fe5131 | 35612 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int(static_cast<int >(wxSYS_VTHUMB_Y))); |
093d3ff1 RD |
35613 | } |
35614 | { | |
32fe5131 | 35615 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int(static_cast<int >(wxSYS_CAPTION_Y))); |
093d3ff1 RD |
35616 | } |
35617 | { | |
32fe5131 | 35618 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int(static_cast<int >(wxSYS_MENU_Y))); |
093d3ff1 RD |
35619 | } |
35620 | { | |
32fe5131 | 35621 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_NETWORK_PRESENT))); |
093d3ff1 RD |
35622 | } |
35623 | { | |
32fe5131 | 35624 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_PENWINDOWS_PRESENT))); |
093d3ff1 RD |
35625 | } |
35626 | { | |
32fe5131 | 35627 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int(static_cast<int >(wxSYS_SHOW_SOUNDS))); |
093d3ff1 RD |
35628 | } |
35629 | { | |
32fe5131 | 35630 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int(static_cast<int >(wxSYS_SWAP_BUTTONS))); |
093d3ff1 RD |
35631 | } |
35632 | { | |
32fe5131 | 35633 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int(static_cast<int >(wxSYS_CAN_DRAW_FRAME_DECORATIONS))); |
093d3ff1 RD |
35634 | } |
35635 | { | |
32fe5131 | 35636 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int(static_cast<int >(wxSYS_CAN_ICONIZE_FRAME))); |
093d3ff1 | 35637 | } |
c26d9ab4 RD |
35638 | { |
35639 | PyDict_SetItemString(d,"SYS_TABLET_PRESENT", SWIG_From_int(static_cast<int >(wxSYS_TABLET_PRESENT))); | |
35640 | } | |
093d3ff1 | 35641 | { |
32fe5131 | 35642 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_NONE))); |
093d3ff1 RD |
35643 | } |
35644 | { | |
32fe5131 | 35645 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_TINY))); |
093d3ff1 RD |
35646 | } |
35647 | { | |
32fe5131 | 35648 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_PDA))); |
093d3ff1 RD |
35649 | } |
35650 | { | |
32fe5131 | 35651 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_SMALL))); |
093d3ff1 RD |
35652 | } |
35653 | { | |
32fe5131 | 35654 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int(static_cast<int >(wxSYS_SCREEN_DESKTOP))); |
093d3ff1 RD |
35655 | } |
35656 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
35657 | SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set); | |
35658 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
35659 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
35660 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
35661 | { | |
32fe5131 | 35662 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int(static_cast<int >(wxSHUTDOWN_POWEROFF))); |
093d3ff1 RD |
35663 | } |
35664 | { | |
32fe5131 | 35665 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int(static_cast<int >(wxSHUTDOWN_REBOOT))); |
093d3ff1 RD |
35666 | } |
35667 | { | |
32fe5131 | 35668 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int(static_cast<int >(wxTIMER_CONTINUOUS))); |
093d3ff1 RD |
35669 | } |
35670 | { | |
32fe5131 | 35671 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int(static_cast<int >(wxTIMER_ONE_SHOT))); |
093d3ff1 RD |
35672 | } |
35673 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
35674 | ||
35675 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
35676 | ||
35677 | { | |
32fe5131 | 35678 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int(static_cast<int >(wxLOG_FatalError))); |
093d3ff1 RD |
35679 | } |
35680 | { | |
32fe5131 | 35681 | PyDict_SetItemString(d,"LOG_Error", SWIG_From_int(static_cast<int >(wxLOG_Error))); |
093d3ff1 RD |
35682 | } |
35683 | { | |
32fe5131 | 35684 | PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int(static_cast<int >(wxLOG_Warning))); |
093d3ff1 RD |
35685 | } |
35686 | { | |
32fe5131 | 35687 | PyDict_SetItemString(d,"LOG_Message", SWIG_From_int(static_cast<int >(wxLOG_Message))); |
093d3ff1 RD |
35688 | } |
35689 | { | |
32fe5131 | 35690 | PyDict_SetItemString(d,"LOG_Status", SWIG_From_int(static_cast<int >(wxLOG_Status))); |
093d3ff1 RD |
35691 | } |
35692 | { | |
32fe5131 | 35693 | PyDict_SetItemString(d,"LOG_Info", SWIG_From_int(static_cast<int >(wxLOG_Info))); |
093d3ff1 RD |
35694 | } |
35695 | { | |
32fe5131 | 35696 | PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int(static_cast<int >(wxLOG_Debug))); |
093d3ff1 RD |
35697 | } |
35698 | { | |
32fe5131 | 35699 | PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int(static_cast<int >(wxLOG_Trace))); |
093d3ff1 RD |
35700 | } |
35701 | { | |
32fe5131 | 35702 | PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int(static_cast<int >(wxLOG_Progress))); |
093d3ff1 RD |
35703 | } |
35704 | { | |
32fe5131 | 35705 | PyDict_SetItemString(d,"LOG_User", SWIG_From_int(static_cast<int >(wxLOG_User))); |
093d3ff1 RD |
35706 | } |
35707 | { | |
32fe5131 | 35708 | PyDict_SetItemString(d,"LOG_Max", SWIG_From_int(static_cast<int >(wxLOG_Max))); |
093d3ff1 RD |
35709 | } |
35710 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
15afbcd0 RD |
35711 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); |
35712 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
35713 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
35714 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
093d3ff1 | 35715 | { |
32fe5131 | 35716 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int(static_cast<int >(0x0001))); |
093d3ff1 RD |
35717 | } |
35718 | { | |
32fe5131 | 35719 | PyDict_SetItemString(d,"TraceMessages", SWIG_From_int(static_cast<int >(0x0002))); |
093d3ff1 RD |
35720 | } |
35721 | { | |
32fe5131 | 35722 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int(static_cast<int >(0x0004))); |
093d3ff1 RD |
35723 | } |
35724 | { | |
32fe5131 | 35725 | PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int(static_cast<int >(0x0008))); |
093d3ff1 RD |
35726 | } |
35727 | { | |
32fe5131 | 35728 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int(static_cast<int >(0x0100))); |
093d3ff1 RD |
35729 | } |
35730 | { | |
32fe5131 | 35731 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int(static_cast<int >(wxPROCESS_DEFAULT))); |
093d3ff1 RD |
35732 | } |
35733 | { | |
32fe5131 | 35734 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int(static_cast<int >(wxPROCESS_REDIRECT))); |
093d3ff1 RD |
35735 | } |
35736 | { | |
32fe5131 | 35737 | PyDict_SetItemString(d,"KILL_OK", SWIG_From_int(static_cast<int >(wxKILL_OK))); |
093d3ff1 RD |
35738 | } |
35739 | { | |
32fe5131 | 35740 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int(static_cast<int >(wxKILL_BAD_SIGNAL))); |
093d3ff1 RD |
35741 | } |
35742 | { | |
32fe5131 | 35743 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int(static_cast<int >(wxKILL_ACCESS_DENIED))); |
093d3ff1 RD |
35744 | } |
35745 | { | |
32fe5131 | 35746 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int(static_cast<int >(wxKILL_NO_PROCESS))); |
093d3ff1 RD |
35747 | } |
35748 | { | |
32fe5131 | 35749 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int(static_cast<int >(wxKILL_ERROR))); |
093d3ff1 RD |
35750 | } |
35751 | { | |
32fe5131 | 35752 | PyDict_SetItemString(d,"KILL_NOCHILDREN", SWIG_From_int(static_cast<int >(wxKILL_NOCHILDREN))); |
093d3ff1 RD |
35753 | } |
35754 | { | |
32fe5131 | 35755 | PyDict_SetItemString(d,"KILL_CHILDREN", SWIG_From_int(static_cast<int >(wxKILL_CHILDREN))); |
093d3ff1 RD |
35756 | } |
35757 | { | |
32fe5131 | 35758 | PyDict_SetItemString(d,"SIGNONE", SWIG_From_int(static_cast<int >(wxSIGNONE))); |
093d3ff1 RD |
35759 | } |
35760 | { | |
32fe5131 | 35761 | PyDict_SetItemString(d,"SIGHUP", SWIG_From_int(static_cast<int >(wxSIGHUP))); |
093d3ff1 RD |
35762 | } |
35763 | { | |
32fe5131 | 35764 | PyDict_SetItemString(d,"SIGINT", SWIG_From_int(static_cast<int >(wxSIGINT))); |
093d3ff1 RD |
35765 | } |
35766 | { | |
32fe5131 | 35767 | PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int(static_cast<int >(wxSIGQUIT))); |
093d3ff1 RD |
35768 | } |
35769 | { | |
32fe5131 | 35770 | PyDict_SetItemString(d,"SIGILL", SWIG_From_int(static_cast<int >(wxSIGILL))); |
093d3ff1 RD |
35771 | } |
35772 | { | |
32fe5131 | 35773 | PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int(static_cast<int >(wxSIGTRAP))); |
093d3ff1 RD |
35774 | } |
35775 | { | |
32fe5131 | 35776 | PyDict_SetItemString(d,"SIGABRT", SWIG_From_int(static_cast<int >(wxSIGABRT))); |
093d3ff1 RD |
35777 | } |
35778 | { | |
32fe5131 | 35779 | PyDict_SetItemString(d,"SIGIOT", SWIG_From_int(static_cast<int >(wxSIGIOT))); |
093d3ff1 RD |
35780 | } |
35781 | { | |
32fe5131 | 35782 | PyDict_SetItemString(d,"SIGEMT", SWIG_From_int(static_cast<int >(wxSIGEMT))); |
093d3ff1 RD |
35783 | } |
35784 | { | |
32fe5131 | 35785 | PyDict_SetItemString(d,"SIGFPE", SWIG_From_int(static_cast<int >(wxSIGFPE))); |
093d3ff1 RD |
35786 | } |
35787 | { | |
32fe5131 | 35788 | PyDict_SetItemString(d,"SIGKILL", SWIG_From_int(static_cast<int >(wxSIGKILL))); |
093d3ff1 RD |
35789 | } |
35790 | { | |
32fe5131 | 35791 | PyDict_SetItemString(d,"SIGBUS", SWIG_From_int(static_cast<int >(wxSIGBUS))); |
093d3ff1 RD |
35792 | } |
35793 | { | |
32fe5131 | 35794 | PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int(static_cast<int >(wxSIGSEGV))); |
093d3ff1 RD |
35795 | } |
35796 | { | |
32fe5131 | 35797 | PyDict_SetItemString(d,"SIGSYS", SWIG_From_int(static_cast<int >(wxSIGSYS))); |
093d3ff1 RD |
35798 | } |
35799 | { | |
32fe5131 | 35800 | PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int(static_cast<int >(wxSIGPIPE))); |
093d3ff1 RD |
35801 | } |
35802 | { | |
32fe5131 | 35803 | PyDict_SetItemString(d,"SIGALRM", SWIG_From_int(static_cast<int >(wxSIGALRM))); |
093d3ff1 RD |
35804 | } |
35805 | { | |
32fe5131 | 35806 | PyDict_SetItemString(d,"SIGTERM", SWIG_From_int(static_cast<int >(wxSIGTERM))); |
093d3ff1 RD |
35807 | } |
35808 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
35809 | { | |
32fe5131 | 35810 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int(static_cast<int >(wxEXEC_ASYNC))); |
093d3ff1 RD |
35811 | } |
35812 | { | |
32fe5131 | 35813 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int(static_cast<int >(wxEXEC_SYNC))); |
093d3ff1 RD |
35814 | } |
35815 | { | |
32fe5131 | 35816 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int(static_cast<int >(wxEXEC_NOHIDE))); |
093d3ff1 RD |
35817 | } |
35818 | { | |
32fe5131 | 35819 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int(static_cast<int >(wxEXEC_MAKE_GROUP_LEADER))); |
093d3ff1 RD |
35820 | } |
35821 | { | |
32fe5131 | 35822 | PyDict_SetItemString(d,"EXEC_NODISABLE", SWIG_From_int(static_cast<int >(wxEXEC_NODISABLE))); |
093d3ff1 RD |
35823 | } |
35824 | ||
35825 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
35826 | ||
35827 | { | |
32fe5131 | 35828 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int(static_cast<int >(wxJOYSTICK1))); |
093d3ff1 RD |
35829 | } |
35830 | { | |
32fe5131 | 35831 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int(static_cast<int >(wxJOYSTICK2))); |
093d3ff1 RD |
35832 | } |
35833 | { | |
32fe5131 | 35834 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int(static_cast<int >(wxJOY_BUTTON_ANY))); |
093d3ff1 RD |
35835 | } |
35836 | { | |
32fe5131 | 35837 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int(static_cast<int >(wxJOY_BUTTON1))); |
093d3ff1 RD |
35838 | } |
35839 | { | |
32fe5131 | 35840 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int(static_cast<int >(wxJOY_BUTTON2))); |
093d3ff1 RD |
35841 | } |
35842 | { | |
32fe5131 | 35843 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int(static_cast<int >(wxJOY_BUTTON3))); |
093d3ff1 RD |
35844 | } |
35845 | { | |
32fe5131 | 35846 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int(static_cast<int >(wxJOY_BUTTON4))); |
093d3ff1 RD |
35847 | } |
35848 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
35849 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
35850 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
35851 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
35852 | { | |
32fe5131 | 35853 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int(static_cast<int >(wxSOUND_SYNC))); |
093d3ff1 RD |
35854 | } |
35855 | { | |
32fe5131 | 35856 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int(static_cast<int >(wxSOUND_ASYNC))); |
093d3ff1 RD |
35857 | } |
35858 | { | |
32fe5131 | 35859 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int(static_cast<int >(wxSOUND_LOOP))); |
093d3ff1 RD |
35860 | } |
35861 | { | |
32fe5131 | 35862 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int(static_cast<int >(wxMAILCAP_STANDARD))); |
093d3ff1 RD |
35863 | } |
35864 | { | |
32fe5131 | 35865 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int(static_cast<int >(wxMAILCAP_NETSCAPE))); |
093d3ff1 RD |
35866 | } |
35867 | { | |
32fe5131 | 35868 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int(static_cast<int >(wxMAILCAP_KDE))); |
093d3ff1 RD |
35869 | } |
35870 | { | |
32fe5131 | 35871 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int(static_cast<int >(wxMAILCAP_GNOME))); |
093d3ff1 RD |
35872 | } |
35873 | { | |
32fe5131 | 35874 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int(static_cast<int >(wxMAILCAP_ALL))); |
093d3ff1 RD |
35875 | } |
35876 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
35877 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
35878 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
35879 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
35880 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
35881 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
35882 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
35883 | SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set); | |
35884 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
35885 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
35886 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
35887 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
35888 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
35889 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
35890 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
35891 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
35892 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
35893 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
35894 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
35895 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
35896 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
35897 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
35898 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
0c243d93 RD |
35899 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE",_wrap_ART_FILE_SAVE_get, _wrap_ART_FILE_SAVE_set); |
35900 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE_AS",_wrap_ART_FILE_SAVE_AS_get, _wrap_ART_FILE_SAVE_AS_set); | |
093d3ff1 RD |
35901 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); |
35902 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
35903 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
d14a1e28 RD |
35904 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); |
35905 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
35906 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
f78cc896 RD |
35907 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HARDDISK",_wrap_ART_HARDDISK_get, _wrap_ART_HARDDISK_set); |
35908 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FLOPPY",_wrap_ART_FLOPPY_get, _wrap_ART_FLOPPY_set); | |
35909 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CDROM",_wrap_ART_CDROM_get, _wrap_ART_CDROM_set); | |
35910 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REMOVABLE",_wrap_ART_REMOVABLE_get, _wrap_ART_REMOVABLE_set); | |
d14a1e28 | 35911 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); |
f78cc896 | 35912 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER_OPEN",_wrap_ART_FOLDER_OPEN_get, _wrap_ART_FOLDER_OPEN_set); |
d14a1e28 RD |
35913 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); |
35914 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
35915 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
35916 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
35917 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
35918 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
35919 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
35920 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
35921 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
35922 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
0c243d93 RD |
35923 | SWIG_addvarlink(SWIG_globals,(char*)"ART_COPY",_wrap_ART_COPY_get, _wrap_ART_COPY_set); |
35924 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CUT",_wrap_ART_CUT_get, _wrap_ART_CUT_set); | |
35925 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PASTE",_wrap_ART_PASTE_get, _wrap_ART_PASTE_set); | |
35926 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DELETE",_wrap_ART_DELETE_get, _wrap_ART_DELETE_set); | |
a187dc0b | 35927 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW",_wrap_ART_NEW_get, _wrap_ART_NEW_set); |
0c243d93 RD |
35928 | SWIG_addvarlink(SWIG_globals,(char*)"ART_UNDO",_wrap_ART_UNDO_get, _wrap_ART_UNDO_set); |
35929 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REDO",_wrap_ART_REDO_get, _wrap_ART_REDO_set); | |
35930 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUIT",_wrap_ART_QUIT_get, _wrap_ART_QUIT_set); | |
35931 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND",_wrap_ART_FIND_get, _wrap_ART_FIND_set); | |
35932 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND_AND_REPLACE",_wrap_ART_FIND_AND_REPLACE_get, _wrap_ART_FIND_AND_REPLACE_set); | |
d14a1e28 RD |
35933 | |
35934 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
35935 | ||
093d3ff1 | 35936 | { |
32fe5131 | 35937 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int(static_cast<int >(wxCONFIG_USE_LOCAL_FILE))); |
093d3ff1 RD |
35938 | } |
35939 | { | |
32fe5131 | 35940 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int(static_cast<int >(wxCONFIG_USE_GLOBAL_FILE))); |
093d3ff1 RD |
35941 | } |
35942 | { | |
32fe5131 | 35943 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int(static_cast<int >(wxCONFIG_USE_RELATIVE_PATH))); |
093d3ff1 RD |
35944 | } |
35945 | { | |
32fe5131 | 35946 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int(static_cast<int >(wxCONFIG_USE_NO_ESCAPE_CHARACTERS))); |
093d3ff1 RD |
35947 | } |
35948 | { | |
32fe5131 | 35949 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Unknown))); |
093d3ff1 RD |
35950 | } |
35951 | { | |
32fe5131 | 35952 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int(static_cast<int >(wxConfigBase::Type_String))); |
093d3ff1 RD |
35953 | } |
35954 | { | |
32fe5131 | 35955 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Boolean))); |
093d3ff1 RD |
35956 | } |
35957 | { | |
32fe5131 | 35958 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Integer))); |
093d3ff1 RD |
35959 | } |
35960 | { | |
32fe5131 | 35961 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int(static_cast<int >(wxConfigBase::Type_Float))); |
093d3ff1 | 35962 | } |
7557b9b5 RD |
35963 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTimeFormat",_wrap_DefaultDateTimeFormat_get, _wrap_DefaultDateTimeFormat_set); |
35964 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultTimeSpanFormat",_wrap_DefaultTimeSpanFormat_get, _wrap_DefaultTimeSpanFormat_set); | |
093d3ff1 | 35965 | { |
32fe5131 | 35966 | PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int(static_cast<int >(wxDateTime::Local))); |
093d3ff1 RD |
35967 | } |
35968 | { | |
32fe5131 | 35969 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int(static_cast<int >(wxDateTime::GMT_12))); |
093d3ff1 RD |
35970 | } |
35971 | { | |
32fe5131 | 35972 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int(static_cast<int >(wxDateTime::GMT_11))); |
093d3ff1 RD |
35973 | } |
35974 | { | |
32fe5131 | 35975 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int(static_cast<int >(wxDateTime::GMT_10))); |
093d3ff1 RD |
35976 | } |
35977 | { | |
32fe5131 | 35978 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int(static_cast<int >(wxDateTime::GMT_9))); |
093d3ff1 RD |
35979 | } |
35980 | { | |
32fe5131 | 35981 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int(static_cast<int >(wxDateTime::GMT_8))); |
093d3ff1 RD |
35982 | } |
35983 | { | |
32fe5131 | 35984 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int(static_cast<int >(wxDateTime::GMT_7))); |
093d3ff1 RD |
35985 | } |
35986 | { | |
32fe5131 | 35987 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int(static_cast<int >(wxDateTime::GMT_6))); |
093d3ff1 RD |
35988 | } |
35989 | { | |
32fe5131 | 35990 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int(static_cast<int >(wxDateTime::GMT_5))); |
093d3ff1 RD |
35991 | } |
35992 | { | |
32fe5131 | 35993 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int(static_cast<int >(wxDateTime::GMT_4))); |
093d3ff1 RD |
35994 | } |
35995 | { | |
32fe5131 | 35996 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int(static_cast<int >(wxDateTime::GMT_3))); |
093d3ff1 RD |
35997 | } |
35998 | { | |
32fe5131 | 35999 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int(static_cast<int >(wxDateTime::GMT_2))); |
093d3ff1 RD |
36000 | } |
36001 | { | |
32fe5131 | 36002 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int(static_cast<int >(wxDateTime::GMT_1))); |
093d3ff1 RD |
36003 | } |
36004 | { | |
32fe5131 | 36005 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int(static_cast<int >(wxDateTime::GMT0))); |
093d3ff1 RD |
36006 | } |
36007 | { | |
32fe5131 | 36008 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int(static_cast<int >(wxDateTime::GMT1))); |
093d3ff1 RD |
36009 | } |
36010 | { | |
32fe5131 | 36011 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int(static_cast<int >(wxDateTime::GMT2))); |
093d3ff1 RD |
36012 | } |
36013 | { | |
32fe5131 | 36014 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int(static_cast<int >(wxDateTime::GMT3))); |
093d3ff1 RD |
36015 | } |
36016 | { | |
32fe5131 | 36017 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int(static_cast<int >(wxDateTime::GMT4))); |
093d3ff1 RD |
36018 | } |
36019 | { | |
32fe5131 | 36020 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int(static_cast<int >(wxDateTime::GMT5))); |
093d3ff1 RD |
36021 | } |
36022 | { | |
32fe5131 | 36023 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int(static_cast<int >(wxDateTime::GMT6))); |
093d3ff1 RD |
36024 | } |
36025 | { | |
32fe5131 | 36026 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int(static_cast<int >(wxDateTime::GMT7))); |
093d3ff1 RD |
36027 | } |
36028 | { | |
32fe5131 | 36029 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int(static_cast<int >(wxDateTime::GMT8))); |
093d3ff1 RD |
36030 | } |
36031 | { | |
32fe5131 | 36032 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int(static_cast<int >(wxDateTime::GMT9))); |
093d3ff1 RD |
36033 | } |
36034 | { | |
32fe5131 | 36035 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int(static_cast<int >(wxDateTime::GMT10))); |
093d3ff1 RD |
36036 | } |
36037 | { | |
32fe5131 | 36038 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int(static_cast<int >(wxDateTime::GMT11))); |
093d3ff1 RD |
36039 | } |
36040 | { | |
32fe5131 | 36041 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int(static_cast<int >(wxDateTime::GMT12))); |
093d3ff1 RD |
36042 | } |
36043 | { | |
32fe5131 | 36044 | PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int(static_cast<int >(wxDateTime::WET))); |
093d3ff1 RD |
36045 | } |
36046 | { | |
32fe5131 | 36047 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int(static_cast<int >(wxDateTime::WEST))); |
093d3ff1 RD |
36048 | } |
36049 | { | |
32fe5131 | 36050 | PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int(static_cast<int >(wxDateTime::CET))); |
093d3ff1 RD |
36051 | } |
36052 | { | |
32fe5131 | 36053 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int(static_cast<int >(wxDateTime::CEST))); |
093d3ff1 RD |
36054 | } |
36055 | { | |
32fe5131 | 36056 | PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int(static_cast<int >(wxDateTime::EET))); |
093d3ff1 RD |
36057 | } |
36058 | { | |
32fe5131 | 36059 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int(static_cast<int >(wxDateTime::EEST))); |
093d3ff1 RD |
36060 | } |
36061 | { | |
32fe5131 | 36062 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int(static_cast<int >(wxDateTime::MSK))); |
093d3ff1 RD |
36063 | } |
36064 | { | |
32fe5131 | 36065 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int(static_cast<int >(wxDateTime::MSD))); |
093d3ff1 RD |
36066 | } |
36067 | { | |
32fe5131 | 36068 | PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int(static_cast<int >(wxDateTime::AST))); |
093d3ff1 RD |
36069 | } |
36070 | { | |
32fe5131 | 36071 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int(static_cast<int >(wxDateTime::ADT))); |
093d3ff1 RD |
36072 | } |
36073 | { | |
32fe5131 | 36074 | PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int(static_cast<int >(wxDateTime::EST))); |
093d3ff1 RD |
36075 | } |
36076 | { | |
32fe5131 | 36077 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int(static_cast<int >(wxDateTime::EDT))); |
093d3ff1 RD |
36078 | } |
36079 | { | |
32fe5131 | 36080 | PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int(static_cast<int >(wxDateTime::CST))); |
093d3ff1 RD |
36081 | } |
36082 | { | |
32fe5131 | 36083 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int(static_cast<int >(wxDateTime::CDT))); |
093d3ff1 RD |
36084 | } |
36085 | { | |
32fe5131 | 36086 | PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int(static_cast<int >(wxDateTime::MST))); |
093d3ff1 RD |
36087 | } |
36088 | { | |
32fe5131 | 36089 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int(static_cast<int >(wxDateTime::MDT))); |
093d3ff1 RD |
36090 | } |
36091 | { | |
32fe5131 | 36092 | PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int(static_cast<int >(wxDateTime::PST))); |
093d3ff1 RD |
36093 | } |
36094 | { | |
32fe5131 | 36095 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int(static_cast<int >(wxDateTime::PDT))); |
093d3ff1 RD |
36096 | } |
36097 | { | |
32fe5131 | 36098 | PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int(static_cast<int >(wxDateTime::HST))); |
093d3ff1 RD |
36099 | } |
36100 | { | |
32fe5131 | 36101 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int(static_cast<int >(wxDateTime::AKST))); |
093d3ff1 RD |
36102 | } |
36103 | { | |
32fe5131 | 36104 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int(static_cast<int >(wxDateTime::AKDT))); |
093d3ff1 RD |
36105 | } |
36106 | { | |
32fe5131 | 36107 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int(static_cast<int >(wxDateTime::A_WST))); |
093d3ff1 RD |
36108 | } |
36109 | { | |
32fe5131 | 36110 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int(static_cast<int >(wxDateTime::A_CST))); |
093d3ff1 RD |
36111 | } |
36112 | { | |
32fe5131 | 36113 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int(static_cast<int >(wxDateTime::A_EST))); |
093d3ff1 RD |
36114 | } |
36115 | { | |
32fe5131 | 36116 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int(static_cast<int >(wxDateTime::A_ESST))); |
093d3ff1 RD |
36117 | } |
36118 | { | |
32fe5131 | 36119 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int(static_cast<int >(wxDateTime::UTC))); |
093d3ff1 RD |
36120 | } |
36121 | { | |
32fe5131 | 36122 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int(static_cast<int >(wxDateTime::Gregorian))); |
093d3ff1 RD |
36123 | } |
36124 | { | |
32fe5131 | 36125 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int(static_cast<int >(wxDateTime::Julian))); |
093d3ff1 RD |
36126 | } |
36127 | { | |
32fe5131 | 36128 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Unknown))); |
093d3ff1 RD |
36129 | } |
36130 | { | |
32fe5131 | 36131 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Standard))); |
093d3ff1 RD |
36132 | } |
36133 | { | |
32fe5131 | 36134 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Alaska))); |
093d3ff1 RD |
36135 | } |
36136 | { | |
32fe5131 | 36137 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Albania))); |
093d3ff1 RD |
36138 | } |
36139 | { | |
32fe5131 | 36140 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria))); |
093d3ff1 RD |
36141 | } |
36142 | { | |
32fe5131 | 36143 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Brixen))); |
093d3ff1 RD |
36144 | } |
36145 | { | |
32fe5131 | 36146 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Salzburg))); |
093d3ff1 RD |
36147 | } |
36148 | { | |
32fe5131 | 36149 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Tyrol))); |
093d3ff1 RD |
36150 | } |
36151 | { | |
32fe5131 | 36152 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Carinthia))); |
093d3ff1 RD |
36153 | } |
36154 | { | |
32fe5131 | 36155 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Austria_Styria))); |
093d3ff1 RD |
36156 | } |
36157 | { | |
32fe5131 | 36158 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Belgium))); |
093d3ff1 RD |
36159 | } |
36160 | { | |
32fe5131 | 36161 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria))); |
093d3ff1 RD |
36162 | } |
36163 | { | |
32fe5131 | 36164 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_1))); |
093d3ff1 RD |
36165 | } |
36166 | { | |
32fe5131 | 36167 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_2))); |
093d3ff1 RD |
36168 | } |
36169 | { | |
32fe5131 | 36170 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Bulgaria_3))); |
093d3ff1 RD |
36171 | } |
36172 | { | |
32fe5131 | 36173 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Canada))); |
093d3ff1 RD |
36174 | } |
36175 | { | |
32fe5131 | 36176 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China))); |
093d3ff1 RD |
36177 | } |
36178 | { | |
32fe5131 | 36179 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China_1))); |
093d3ff1 RD |
36180 | } |
36181 | { | |
32fe5131 | 36182 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_China_2))); |
093d3ff1 RD |
36183 | } |
36184 | { | |
32fe5131 | 36185 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Czechoslovakia))); |
093d3ff1 RD |
36186 | } |
36187 | { | |
32fe5131 | 36188 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Denmark))); |
093d3ff1 RD |
36189 | } |
36190 | { | |
32fe5131 | 36191 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Egypt))); |
093d3ff1 RD |
36192 | } |
36193 | { | |
32fe5131 | 36194 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Estonia))); |
093d3ff1 RD |
36195 | } |
36196 | { | |
32fe5131 | 36197 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Finland))); |
093d3ff1 RD |
36198 | } |
36199 | { | |
32fe5131 | 36200 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France))); |
093d3ff1 RD |
36201 | } |
36202 | { | |
32fe5131 | 36203 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Alsace))); |
093d3ff1 RD |
36204 | } |
36205 | { | |
32fe5131 | 36206 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Lorraine))); |
093d3ff1 RD |
36207 | } |
36208 | { | |
32fe5131 | 36209 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_France_Strasbourg))); |
093d3ff1 RD |
36210 | } |
36211 | { | |
32fe5131 | 36212 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany))); |
093d3ff1 RD |
36213 | } |
36214 | { | |
32fe5131 | 36215 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Catholic))); |
093d3ff1 RD |
36216 | } |
36217 | { | |
32fe5131 | 36218 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Prussia))); |
093d3ff1 RD |
36219 | } |
36220 | { | |
32fe5131 | 36221 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Germany_Protestant))); |
093d3ff1 RD |
36222 | } |
36223 | { | |
32fe5131 | 36224 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int(static_cast<int >(wxDateTime::Gr_GreatBritain))); |
093d3ff1 RD |
36225 | } |
36226 | { | |
32fe5131 | 36227 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Greece))); |
093d3ff1 RD |
36228 | } |
36229 | { | |
32fe5131 | 36230 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Hungary))); |
093d3ff1 RD |
36231 | } |
36232 | { | |
32fe5131 | 36233 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Ireland))); |
093d3ff1 RD |
36234 | } |
36235 | { | |
32fe5131 | 36236 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Italy))); |
093d3ff1 RD |
36237 | } |
36238 | { | |
32fe5131 | 36239 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan))); |
093d3ff1 RD |
36240 | } |
36241 | { | |
32fe5131 | 36242 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_1))); |
093d3ff1 RD |
36243 | } |
36244 | { | |
32fe5131 | 36245 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_2))); |
093d3ff1 RD |
36246 | } |
36247 | { | |
32fe5131 | 36248 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Japan_3))); |
093d3ff1 RD |
36249 | } |
36250 | { | |
32fe5131 | 36251 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Latvia))); |
093d3ff1 RD |
36252 | } |
36253 | { | |
32fe5131 | 36254 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Lithuania))); |
093d3ff1 RD |
36255 | } |
36256 | { | |
32fe5131 | 36257 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Luxemburg))); |
093d3ff1 RD |
36258 | } |
36259 | { | |
32fe5131 | 36260 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands))); |
093d3ff1 RD |
36261 | } |
36262 | { | |
32fe5131 | 36263 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Groningen))); |
093d3ff1 RD |
36264 | } |
36265 | { | |
32fe5131 | 36266 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Gelderland))); |
093d3ff1 RD |
36267 | } |
36268 | { | |
32fe5131 | 36269 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Utrecht))); |
093d3ff1 RD |
36270 | } |
36271 | { | |
32fe5131 | 36272 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Netherlands_Friesland))); |
093d3ff1 RD |
36273 | } |
36274 | { | |
32fe5131 | 36275 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Norway))); |
093d3ff1 RD |
36276 | } |
36277 | { | |
32fe5131 | 36278 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Poland))); |
093d3ff1 RD |
36279 | } |
36280 | { | |
32fe5131 | 36281 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Portugal))); |
093d3ff1 RD |
36282 | } |
36283 | { | |
32fe5131 | 36284 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Romania))); |
093d3ff1 RD |
36285 | } |
36286 | { | |
32fe5131 | 36287 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Russia))); |
093d3ff1 RD |
36288 | } |
36289 | { | |
32fe5131 | 36290 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Scotland))); |
093d3ff1 RD |
36291 | } |
36292 | { | |
32fe5131 | 36293 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Spain))); |
093d3ff1 RD |
36294 | } |
36295 | { | |
32fe5131 | 36296 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Sweden))); |
093d3ff1 RD |
36297 | } |
36298 | { | |
32fe5131 | 36299 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland))); |
093d3ff1 RD |
36300 | } |
36301 | { | |
32fe5131 | 36302 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland_Catholic))); |
093d3ff1 RD |
36303 | } |
36304 | { | |
32fe5131 | 36305 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Switzerland_Protestant))); |
093d3ff1 RD |
36306 | } |
36307 | { | |
32fe5131 | 36308 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Turkey))); |
093d3ff1 RD |
36309 | } |
36310 | { | |
32fe5131 | 36311 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int(static_cast<int >(wxDateTime::Gr_USA))); |
093d3ff1 RD |
36312 | } |
36313 | { | |
32fe5131 | 36314 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Wales))); |
093d3ff1 RD |
36315 | } |
36316 | { | |
32fe5131 | 36317 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int(static_cast<int >(wxDateTime::Gr_Yugoslavia))); |
093d3ff1 RD |
36318 | } |
36319 | { | |
32fe5131 | 36320 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int(static_cast<int >(wxDateTime::Country_Unknown))); |
093d3ff1 RD |
36321 | } |
36322 | { | |
32fe5131 | 36323 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int(static_cast<int >(wxDateTime::Country_Default))); |
093d3ff1 RD |
36324 | } |
36325 | { | |
32fe5131 | 36326 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int(static_cast<int >(wxDateTime::Country_WesternEurope_Start))); |
093d3ff1 RD |
36327 | } |
36328 | { | |
32fe5131 | 36329 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int(static_cast<int >(wxDateTime::Country_EEC))); |
093d3ff1 RD |
36330 | } |
36331 | { | |
32fe5131 | 36332 | PyDict_SetItemString(d,"DateTime_France", SWIG_From_int(static_cast<int >(wxDateTime::France))); |
093d3ff1 RD |
36333 | } |
36334 | { | |
32fe5131 | 36335 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int(static_cast<int >(wxDateTime::Germany))); |
093d3ff1 RD |
36336 | } |
36337 | { | |
32fe5131 | 36338 | PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int(static_cast<int >(wxDateTime::UK))); |
093d3ff1 RD |
36339 | } |
36340 | { | |
32fe5131 | 36341 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int(static_cast<int >(wxDateTime::Country_WesternEurope_End))); |
093d3ff1 RD |
36342 | } |
36343 | { | |
32fe5131 | 36344 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int(static_cast<int >(wxDateTime::Russia))); |
093d3ff1 RD |
36345 | } |
36346 | { | |
32fe5131 | 36347 | PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int(static_cast<int >(wxDateTime::USA))); |
093d3ff1 RD |
36348 | } |
36349 | { | |
32fe5131 | 36350 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int(static_cast<int >(wxDateTime::Jan))); |
093d3ff1 RD |
36351 | } |
36352 | { | |
32fe5131 | 36353 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int(static_cast<int >(wxDateTime::Feb))); |
093d3ff1 RD |
36354 | } |
36355 | { | |
32fe5131 | 36356 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int(static_cast<int >(wxDateTime::Mar))); |
093d3ff1 RD |
36357 | } |
36358 | { | |
32fe5131 | 36359 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int(static_cast<int >(wxDateTime::Apr))); |
093d3ff1 RD |
36360 | } |
36361 | { | |
32fe5131 | 36362 | PyDict_SetItemString(d,"DateTime_May", SWIG_From_int(static_cast<int >(wxDateTime::May))); |
093d3ff1 RD |
36363 | } |
36364 | { | |
32fe5131 | 36365 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int(static_cast<int >(wxDateTime::Jun))); |
093d3ff1 RD |
36366 | } |
36367 | { | |
32fe5131 | 36368 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int(static_cast<int >(wxDateTime::Jul))); |
093d3ff1 RD |
36369 | } |
36370 | { | |
32fe5131 | 36371 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int(static_cast<int >(wxDateTime::Aug))); |
093d3ff1 RD |
36372 | } |
36373 | { | |
32fe5131 | 36374 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int(static_cast<int >(wxDateTime::Sep))); |
093d3ff1 RD |
36375 | } |
36376 | { | |
32fe5131 | 36377 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int(static_cast<int >(wxDateTime::Oct))); |
093d3ff1 RD |
36378 | } |
36379 | { | |
32fe5131 | 36380 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int(static_cast<int >(wxDateTime::Nov))); |
093d3ff1 RD |
36381 | } |
36382 | { | |
32fe5131 | 36383 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int(static_cast<int >(wxDateTime::Dec))); |
093d3ff1 RD |
36384 | } |
36385 | { | |
32fe5131 | 36386 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int(static_cast<int >(wxDateTime::Inv_Month))); |
093d3ff1 RD |
36387 | } |
36388 | { | |
32fe5131 | 36389 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int(static_cast<int >(wxDateTime::Sun))); |
093d3ff1 RD |
36390 | } |
36391 | { | |
32fe5131 | 36392 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int(static_cast<int >(wxDateTime::Mon))); |
093d3ff1 RD |
36393 | } |
36394 | { | |
32fe5131 | 36395 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int(static_cast<int >(wxDateTime::Tue))); |
093d3ff1 RD |
36396 | } |
36397 | { | |
32fe5131 | 36398 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int(static_cast<int >(wxDateTime::Wed))); |
093d3ff1 RD |
36399 | } |
36400 | { | |
32fe5131 | 36401 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int(static_cast<int >(wxDateTime::Thu))); |
093d3ff1 RD |
36402 | } |
36403 | { | |
32fe5131 | 36404 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int(static_cast<int >(wxDateTime::Fri))); |
093d3ff1 RD |
36405 | } |
36406 | { | |
32fe5131 | 36407 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int(static_cast<int >(wxDateTime::Sat))); |
093d3ff1 RD |
36408 | } |
36409 | { | |
32fe5131 | 36410 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int(static_cast<int >(wxDateTime::Inv_WeekDay))); |
093d3ff1 RD |
36411 | } |
36412 | { | |
32fe5131 | 36413 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int(static_cast<int >(wxDateTime::Inv_Year))); |
093d3ff1 RD |
36414 | } |
36415 | { | |
32fe5131 | 36416 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int(static_cast<int >(wxDateTime::Name_Full))); |
093d3ff1 RD |
36417 | } |
36418 | { | |
32fe5131 | 36419 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int(static_cast<int >(wxDateTime::Name_Abbr))); |
093d3ff1 RD |
36420 | } |
36421 | { | |
32fe5131 | 36422 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int(static_cast<int >(wxDateTime::Default_First))); |
093d3ff1 RD |
36423 | } |
36424 | { | |
32fe5131 | 36425 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int(static_cast<int >(wxDateTime::Monday_First))); |
093d3ff1 RD |
36426 | } |
36427 | { | |
32fe5131 | 36428 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int(static_cast<int >(wxDateTime::Sunday_First))); |
093d3ff1 RD |
36429 | } |
36430 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); | |
36431 | { | |
32fe5131 | 36432 | PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int(static_cast<int >(wxDF_INVALID))); |
093d3ff1 RD |
36433 | } |
36434 | { | |
32fe5131 | 36435 | PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int(static_cast<int >(wxDF_TEXT))); |
093d3ff1 RD |
36436 | } |
36437 | { | |
32fe5131 | 36438 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int(static_cast<int >(wxDF_BITMAP))); |
093d3ff1 RD |
36439 | } |
36440 | { | |
32fe5131 | 36441 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int(static_cast<int >(wxDF_METAFILE))); |
093d3ff1 RD |
36442 | } |
36443 | { | |
32fe5131 | 36444 | PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int(static_cast<int >(wxDF_SYLK))); |
093d3ff1 RD |
36445 | } |
36446 | { | |
32fe5131 | 36447 | PyDict_SetItemString(d,"DF_DIF", SWIG_From_int(static_cast<int >(wxDF_DIF))); |
093d3ff1 RD |
36448 | } |
36449 | { | |
32fe5131 | 36450 | PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int(static_cast<int >(wxDF_TIFF))); |
093d3ff1 RD |
36451 | } |
36452 | { | |
32fe5131 | 36453 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int(static_cast<int >(wxDF_OEMTEXT))); |
093d3ff1 RD |
36454 | } |
36455 | { | |
32fe5131 | 36456 | PyDict_SetItemString(d,"DF_DIB", SWIG_From_int(static_cast<int >(wxDF_DIB))); |
093d3ff1 RD |
36457 | } |
36458 | { | |
32fe5131 | 36459 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int(static_cast<int >(wxDF_PALETTE))); |
093d3ff1 RD |
36460 | } |
36461 | { | |
32fe5131 | 36462 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int(static_cast<int >(wxDF_PENDATA))); |
093d3ff1 RD |
36463 | } |
36464 | { | |
32fe5131 | 36465 | PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int(static_cast<int >(wxDF_RIFF))); |
093d3ff1 RD |
36466 | } |
36467 | { | |
32fe5131 | 36468 | PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int(static_cast<int >(wxDF_WAVE))); |
093d3ff1 RD |
36469 | } |
36470 | { | |
32fe5131 | 36471 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int(static_cast<int >(wxDF_UNICODETEXT))); |
093d3ff1 RD |
36472 | } |
36473 | { | |
32fe5131 | 36474 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int(static_cast<int >(wxDF_ENHMETAFILE))); |
093d3ff1 RD |
36475 | } |
36476 | { | |
32fe5131 | 36477 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int(static_cast<int >(wxDF_FILENAME))); |
093d3ff1 RD |
36478 | } |
36479 | { | |
32fe5131 | 36480 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int(static_cast<int >(wxDF_LOCALE))); |
093d3ff1 RD |
36481 | } |
36482 | { | |
32fe5131 | 36483 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int(static_cast<int >(wxDF_PRIVATE))); |
093d3ff1 RD |
36484 | } |
36485 | { | |
32fe5131 | 36486 | PyDict_SetItemString(d,"DF_HTML", SWIG_From_int(static_cast<int >(wxDF_HTML))); |
093d3ff1 RD |
36487 | } |
36488 | { | |
32fe5131 | 36489 | PyDict_SetItemString(d,"DF_MAX", SWIG_From_int(static_cast<int >(wxDF_MAX))); |
093d3ff1 RD |
36490 | } |
36491 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
36492 | { | |
32fe5131 | 36493 | PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int(static_cast<int >(wxDataObject::Get))); |
093d3ff1 RD |
36494 | } |
36495 | { | |
32fe5131 | 36496 | PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int(static_cast<int >(wxDataObject::Set))); |
093d3ff1 RD |
36497 | } |
36498 | { | |
32fe5131 | 36499 | PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int(static_cast<int >(wxDataObject::Both))); |
093d3ff1 RD |
36500 | } |
36501 | { | |
32fe5131 | 36502 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int(static_cast<int >(wxDrag_CopyOnly))); |
093d3ff1 RD |
36503 | } |
36504 | { | |
32fe5131 | 36505 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int(static_cast<int >(wxDrag_AllowMove))); |
093d3ff1 RD |
36506 | } |
36507 | { | |
32fe5131 | 36508 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int(static_cast<int >(wxDrag_DefaultMove))); |
093d3ff1 RD |
36509 | } |
36510 | { | |
32fe5131 | 36511 | PyDict_SetItemString(d,"DragError", SWIG_From_int(static_cast<int >(wxDragError))); |
093d3ff1 RD |
36512 | } |
36513 | { | |
32fe5131 | 36514 | PyDict_SetItemString(d,"DragNone", SWIG_From_int(static_cast<int >(wxDragNone))); |
093d3ff1 RD |
36515 | } |
36516 | { | |
32fe5131 | 36517 | PyDict_SetItemString(d,"DragCopy", SWIG_From_int(static_cast<int >(wxDragCopy))); |
093d3ff1 RD |
36518 | } |
36519 | { | |
32fe5131 | 36520 | PyDict_SetItemString(d,"DragMove", SWIG_From_int(static_cast<int >(wxDragMove))); |
093d3ff1 RD |
36521 | } |
36522 | { | |
32fe5131 | 36523 | PyDict_SetItemString(d,"DragLink", SWIG_From_int(static_cast<int >(wxDragLink))); |
093d3ff1 RD |
36524 | } |
36525 | { | |
32fe5131 | 36526 | PyDict_SetItemString(d,"DragCancel", SWIG_From_int(static_cast<int >(wxDragCancel))); |
093d3ff1 | 36527 | } |
d14a1e28 RD |
36528 | |
36529 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
36530 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
36531 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
36532 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
36533 | ||
4276dc52 | 36534 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
d14a1e28 RD |
36535 | } |
36536 |