]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
36ed4f51 | 3 | * Version 1.3.24 |
d55e5bfc RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
d55e5bfc RD |
12 | |
13 | #ifdef __cplusplus | |
14 | template<class T> class SwigValueWrapper { | |
15 | T *tt; | |
16 | public: | |
17 | SwigValueWrapper() : tt(0) { } | |
18 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
19 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
20 | ~SwigValueWrapper() { delete tt; } | |
21 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
22 | operator T&() const { return *tt; } | |
23 | T *operator&() { return tt; } | |
24 | private: | |
25 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
36ed4f51 | 26 | }; |
d55e5bfc RD |
27 | #endif |
28 | ||
29 | ||
36ed4f51 RD |
30 | #ifndef SWIG_TEMPLATE_DISAMBIGUATOR |
31 | # if defined(__SUNPRO_CC) | |
32 | # define SWIG_TEMPLATE_DISAMBIGUATOR template | |
33 | # else | |
34 | # define SWIG_TEMPLATE_DISAMBIGUATOR | |
35 | # endif | |
36 | #endif | |
d55e5bfc | 37 | |
d55e5bfc | 38 | |
36ed4f51 | 39 | #include <Python.h> |
d55e5bfc RD |
40 | |
41 | /*********************************************************************** | |
36ed4f51 | 42 | * swigrun.swg |
d55e5bfc | 43 | * |
36ed4f51 RD |
44 | * This file contains generic CAPI SWIG runtime support for pointer |
45 | * type checking. | |
d55e5bfc RD |
46 | * |
47 | ************************************************************************/ | |
48 | ||
36ed4f51 RD |
49 | /* This should only be incremented when either the layout of swig_type_info changes, |
50 | or for whatever reason, the runtime changes incompatibly */ | |
51 | #define SWIG_RUNTIME_VERSION "1" | |
d55e5bfc | 52 | |
36ed4f51 RD |
53 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
54 | #ifdef SWIG_TYPE_TABLE | |
55 | #define SWIG_QUOTE_STRING(x) #x | |
56 | #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
57 | #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d55e5bfc | 58 | #else |
36ed4f51 | 59 | #define SWIG_TYPE_TABLE_NAME |
d55e5bfc RD |
60 | #endif |
61 | ||
36ed4f51 RD |
62 | #include <string.h> |
63 | ||
64 | #ifndef SWIGINLINE | |
65 | #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
66 | # define SWIGINLINE inline | |
d55e5bfc | 67 | #else |
36ed4f51 RD |
68 | # define SWIGINLINE |
69 | #endif | |
70 | #endif | |
71 | ||
72 | /* | |
73 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
74 | creating a static or dynamic library from the swig runtime code. | |
75 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
76 | ||
77 | But only do this if is strictly necessary, ie, if you have problems | |
78 | with your compiler or so. | |
79 | */ | |
80 | #ifndef SWIGRUNTIME | |
81 | #define SWIGRUNTIME static | |
82 | #endif | |
83 | #ifndef SWIGRUNTIMEINLINE | |
84 | #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE | |
d55e5bfc RD |
85 | #endif |
86 | ||
87 | #ifdef __cplusplus | |
88 | extern "C" { | |
89 | #endif | |
90 | ||
91 | typedef void *(*swig_converter_func)(void *); | |
92 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
93 | ||
94 | typedef struct swig_type_info { | |
95 | const char *name; | |
96 | swig_converter_func converter; | |
97 | const char *str; | |
98 | void *clientdata; | |
99 | swig_dycast_func dcast; | |
100 | struct swig_type_info *next; | |
101 | struct swig_type_info *prev; | |
102 | } swig_type_info; | |
103 | ||
36ed4f51 RD |
104 | /* |
105 | Compare two type names skipping the space characters, therefore | |
106 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
107 | ||
108 | Return 0 when the two name types are equivalent, as in | |
109 | strncmp, but skipping ' '. | |
110 | */ | |
111 | SWIGRUNTIME int | |
112 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
113 | const char *f2, const char *l2) { | |
114 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
115 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
116 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
117 | if (*f1 != *f2) return *f1 - *f2; | |
118 | } | |
119 | return (l1 - f1) - (l2 - f2); | |
120 | } | |
121 | ||
122 | /* | |
123 | Check type equivalence in a name list like <name1>|<name2>|... | |
124 | */ | |
125 | SWIGRUNTIME int | |
126 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
127 | int equiv = 0; | |
128 | const char* te = tb + strlen(tb); | |
129 | const char* ne = nb; | |
130 | while (!equiv && *ne) { | |
131 | for (nb = ne; *ne; ++ne) { | |
132 | if (*ne == '|') break; | |
133 | } | |
134 | equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0; | |
135 | if (*ne) ++ne; | |
136 | } | |
137 | return equiv; | |
138 | } | |
139 | ||
140 | /* | |
141 | Register a type mapping with the type-checking | |
142 | */ | |
143 | SWIGRUNTIME swig_type_info * | |
144 | SWIG_TypeRegisterTL(swig_type_info **tl, swig_type_info *ti) { | |
145 | swig_type_info *tc, *head, *ret, *next; | |
146 | /* Check to see if this type has already been registered */ | |
147 | tc = *tl; | |
148 | while (tc) { | |
149 | /* check simple type equivalence */ | |
150 | int typeequiv = (strcmp(tc->name, ti->name) == 0); | |
151 | /* check full type equivalence, resolving typedefs */ | |
152 | if (!typeequiv) { | |
153 | /* only if tc is not a typedef (no '|' on it) */ | |
154 | if (tc->str && ti->str && !strstr(tc->str,"|")) { | |
155 | typeequiv = SWIG_TypeEquiv(ti->str,tc->str); | |
156 | } | |
157 | } | |
158 | if (typeequiv) { | |
159 | /* Already exists in the table. Just add additional types to the list */ | |
160 | if (ti->clientdata) tc->clientdata = ti->clientdata; | |
161 | head = tc; | |
162 | next = tc->next; | |
163 | goto l1; | |
164 | } | |
165 | tc = tc->prev; | |
166 | } | |
167 | head = ti; | |
168 | next = 0; | |
169 | ||
170 | /* Place in list */ | |
171 | ti->prev = *tl; | |
172 | *tl = ti; | |
173 | ||
174 | /* Build linked lists */ | |
175 | l1: | |
176 | ret = head; | |
177 | tc = ti + 1; | |
178 | /* Patch up the rest of the links */ | |
179 | while (tc->name) { | |
180 | head->next = tc; | |
181 | tc->prev = head; | |
182 | head = tc; | |
183 | tc++; | |
184 | } | |
185 | if (next) next->prev = head; | |
186 | head->next = next; | |
187 | ||
188 | return ret; | |
189 | } | |
190 | ||
191 | /* | |
192 | Check the typename | |
193 | */ | |
194 | SWIGRUNTIME swig_type_info * | |
195 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { | |
196 | swig_type_info *s; | |
197 | if (!ty) return 0; /* Void pointer */ | |
198 | s = ty->next; /* First element always just a name */ | |
199 | do { | |
200 | if (strcmp(s->name,c) == 0) { | |
201 | if (s == ty->next) return s; | |
202 | /* Move s to the top of the linked list */ | |
203 | s->prev->next = s->next; | |
204 | if (s->next) { | |
205 | s->next->prev = s->prev; | |
206 | } | |
207 | /* Insert s as second element in the list */ | |
208 | s->next = ty->next; | |
209 | if (ty->next) ty->next->prev = s; | |
210 | ty->next = s; | |
211 | s->prev = ty; | |
212 | return s; | |
213 | } | |
214 | s = s->next; | |
215 | } while (s && (s != ty->next)); | |
216 | return 0; | |
217 | } | |
218 | ||
219 | /* | |
220 | Cast a pointer up an inheritance hierarchy | |
221 | */ | |
222 | SWIGRUNTIMEINLINE void * | |
223 | SWIG_TypeCast(swig_type_info *ty, void *ptr) { | |
224 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); | |
225 | } | |
226 | ||
227 | /* | |
228 | Dynamic pointer casting. Down an inheritance hierarchy | |
229 | */ | |
230 | SWIGRUNTIME swig_type_info * | |
231 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
232 | swig_type_info *lastty = ty; | |
233 | if (!ty || !ty->dcast) return ty; | |
234 | while (ty && (ty->dcast)) { | |
235 | ty = (*ty->dcast)(ptr); | |
236 | if (ty) lastty = ty; | |
237 | } | |
238 | return lastty; | |
239 | } | |
240 | ||
241 | /* | |
242 | Return the name associated with this type | |
243 | */ | |
244 | SWIGRUNTIMEINLINE const char * | |
245 | SWIG_TypeName(const swig_type_info *ty) { | |
246 | return ty->name; | |
247 | } | |
248 | ||
249 | /* | |
250 | Return the pretty name associated with this type, | |
251 | that is an unmangled type name in a form presentable to the user. | |
252 | */ | |
253 | SWIGRUNTIME const char * | |
254 | SWIG_TypePrettyName(const swig_type_info *type) { | |
255 | /* The "str" field contains the equivalent pretty names of the | |
256 | type, separated by vertical-bar characters. We choose | |
257 | to print the last name, as it is often (?) the most | |
258 | specific. */ | |
259 | if (type->str != NULL) { | |
260 | const char *last_name = type->str; | |
261 | const char *s; | |
262 | for (s = type->str; *s; s++) | |
263 | if (*s == '|') last_name = s+1; | |
264 | return last_name; | |
265 | } | |
266 | else | |
267 | return type->name; | |
268 | } | |
269 | ||
270 | /* | |
271 | Search for a swig_type_info structure | |
272 | */ | |
273 | SWIGRUNTIME swig_type_info * | |
274 | SWIG_TypeQueryTL(swig_type_info *tl, const char *name) { | |
275 | swig_type_info *ty = tl; | |
276 | while (ty) { | |
277 | if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty; | |
278 | if (ty->name && (strcmp(name,ty->name) == 0)) return ty; | |
279 | ty = ty->prev; | |
280 | } | |
281 | return 0; | |
282 | } | |
283 | ||
284 | /* | |
285 | Set the clientdata field for a type | |
286 | */ | |
287 | SWIGRUNTIME void | |
288 | SWIG_TypeClientDataTL(swig_type_info *tl, swig_type_info *ti, void *clientdata) { | |
289 | swig_type_info *tc, *equiv; | |
290 | if (ti->clientdata) return; | |
291 | /* if (ti->clientdata == clientdata) return; */ | |
292 | ti->clientdata = clientdata; | |
293 | equiv = ti->next; | |
294 | while (equiv) { | |
295 | if (!equiv->converter) { | |
296 | tc = tl; | |
297 | while (tc) { | |
298 | if ((strcmp(tc->name, equiv->name) == 0)) | |
299 | SWIG_TypeClientDataTL(tl,tc,clientdata); | |
300 | tc = tc->prev; | |
301 | } | |
302 | } | |
303 | equiv = equiv->next; | |
304 | } | |
305 | } | |
306 | ||
307 | /* | |
308 | Pack binary data into a string | |
309 | */ | |
310 | SWIGRUNTIME char * | |
311 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
312 | static char hex[17] = "0123456789abcdef"; | |
313 | unsigned char *u = (unsigned char *) ptr; | |
314 | const unsigned char *eu = u + sz; | |
315 | register unsigned char uu; | |
316 | for (; u != eu; ++u) { | |
317 | uu = *u; | |
318 | *(c++) = hex[(uu & 0xf0) >> 4]; | |
319 | *(c++) = hex[uu & 0xf]; | |
320 | } | |
321 | return c; | |
322 | } | |
323 | ||
324 | /* | |
325 | Unpack binary data from a string | |
326 | */ | |
327 | SWIGRUNTIME const char * | |
328 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
329 | register unsigned char *u = (unsigned char *) ptr; | |
330 | register const unsigned char *eu = u + sz; | |
331 | for (; u != eu; ++u) { | |
332 | register int d = *(c++); | |
333 | register unsigned char uu = 0; | |
334 | if ((d >= '0') && (d <= '9')) | |
335 | uu = ((d - '0') << 4); | |
336 | else if ((d >= 'a') && (d <= 'f')) | |
337 | uu = ((d - ('a'-10)) << 4); | |
338 | else | |
339 | return (char *) 0; | |
340 | d = *(c++); | |
341 | if ((d >= '0') && (d <= '9')) | |
342 | uu |= (d - '0'); | |
343 | else if ((d >= 'a') && (d <= 'f')) | |
344 | uu |= (d - ('a'-10)); | |
345 | else | |
346 | return (char *) 0; | |
347 | *u = uu; | |
348 | } | |
349 | return c; | |
350 | } | |
351 | ||
352 | /* | |
353 | This function will propagate the clientdata field of type to any new | |
354 | swig_type_info structures that have been added into the list of | |
355 | equivalent types. It is like calling SWIG_TypeClientData(type, | |
356 | clientdata) a second time. | |
357 | */ | |
358 | SWIGRUNTIME void | |
359 | SWIG_PropagateClientDataTL(swig_type_info *tl, swig_type_info *type) { | |
360 | swig_type_info *equiv = type->next; | |
361 | swig_type_info *tc; | |
362 | if (!type->clientdata) return; | |
363 | while (equiv) { | |
364 | if (!equiv->converter) { | |
365 | tc = tl; | |
366 | while (tc) { | |
367 | if ((strcmp(tc->name, equiv->name) == 0) && !tc->clientdata) | |
368 | SWIG_TypeClientDataTL(tl,tc, type->clientdata); | |
369 | tc = tc->prev; | |
370 | } | |
371 | } | |
372 | equiv = equiv->next; | |
373 | } | |
374 | } | |
d55e5bfc | 375 | |
36ed4f51 RD |
376 | /* |
377 | Pack 'void *' into a string buffer. | |
378 | */ | |
379 | SWIGRUNTIME char * | |
380 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
381 | char *r = buff; | |
382 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
383 | *(r++) = '_'; | |
384 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
385 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
386 | strcpy(r,name); | |
387 | return buff; | |
388 | } | |
389 | ||
390 | SWIGRUNTIME const char * | |
391 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
392 | if (*c != '_') { | |
393 | if (strcmp(c,"NULL") == 0) { | |
394 | *ptr = (void *) 0; | |
395 | return name; | |
396 | } else { | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
401 | } | |
402 | ||
403 | SWIGRUNTIME char * | |
404 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
405 | char *r = buff; | |
406 | size_t lname = (name ? strlen(name) : 0); | |
407 | if ((2*sz + 2 + lname) > bsz) return 0; | |
408 | *(r++) = '_'; | |
409 | r = SWIG_PackData(r,ptr,sz); | |
410 | if (lname) { | |
411 | strncpy(r,name,lname+1); | |
412 | } else { | |
413 | *r = 0; | |
414 | } | |
415 | return buff; | |
416 | } | |
d55e5bfc | 417 | |
36ed4f51 RD |
418 | SWIGRUNTIME const char * |
419 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
420 | if (*c != '_') { | |
421 | if (strcmp(c,"NULL") == 0) { | |
422 | memset(ptr,0,sz); | |
423 | return name; | |
424 | } else { | |
425 | return 0; | |
426 | } | |
427 | } | |
428 | return SWIG_UnpackData(++c,ptr,sz); | |
429 | } | |
d55e5bfc RD |
430 | |
431 | #ifdef __cplusplus | |
432 | } | |
433 | #endif | |
434 | ||
435 | /*********************************************************************** | |
36ed4f51 RD |
436 | * common.swg |
437 | * | |
438 | * This file contains generic SWIG runtime support for pointer | |
439 | * type checking as well as a few commonly used macros to control | |
440 | * external linkage. | |
d55e5bfc | 441 | * |
36ed4f51 | 442 | * Author : David Beazley (beazley@cs.uchicago.edu) |
d55e5bfc | 443 | * |
36ed4f51 RD |
444 | * Copyright (c) 1999-2000, The University of Chicago |
445 | * | |
446 | * This file may be freely redistributed without license or fee provided | |
447 | * this copyright message remains intact. | |
d55e5bfc RD |
448 | ************************************************************************/ |
449 | ||
36ed4f51 RD |
450 | |
451 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
452 | # if !defined(STATIC_LINKED) | |
453 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
454 | # else | |
455 | # define SWIGEXPORT(a) a | |
456 | # endif | |
457 | #else | |
458 | # define SWIGEXPORT(a) a | |
459 | #endif | |
460 | ||
d55e5bfc RD |
461 | #ifdef __cplusplus |
462 | extern "C" { | |
463 | #endif | |
464 | ||
d55e5bfc | 465 | |
36ed4f51 | 466 | /*************************************************************************/ |
d55e5bfc | 467 | |
d55e5bfc | 468 | |
36ed4f51 | 469 | /* The static type info list */ |
d55e5bfc | 470 | |
36ed4f51 RD |
471 | static swig_type_info *swig_type_list = 0; |
472 | static swig_type_info **swig_type_list_handle = &swig_type_list; | |
473 | ||
d55e5bfc | 474 | |
36ed4f51 RD |
475 | /* Register a type mapping with the type-checking */ |
476 | static swig_type_info * | |
477 | SWIG_TypeRegister(swig_type_info *ti) { | |
478 | return SWIG_TypeRegisterTL(swig_type_list_handle, ti); | |
479 | } | |
d55e5bfc | 480 | |
36ed4f51 RD |
481 | /* Search for a swig_type_info structure */ |
482 | static swig_type_info * | |
483 | SWIG_TypeQuery(const char *name) { | |
484 | return SWIG_TypeQueryTL(*swig_type_list_handle, name); | |
485 | } | |
d55e5bfc | 486 | |
36ed4f51 RD |
487 | /* Set the clientdata field for a type */ |
488 | static void | |
489 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { | |
490 | SWIG_TypeClientDataTL(*swig_type_list_handle, ti, clientdata); | |
491 | } | |
d55e5bfc | 492 | |
36ed4f51 RD |
493 | /* This function will propagate the clientdata field of type to |
494 | * any new swig_type_info structures that have been added into the list | |
495 | * of equivalent types. It is like calling | |
496 | * SWIG_TypeClientData(type, clientdata) a second time. | |
497 | */ | |
498 | static void | |
499 | SWIG_PropagateClientData(swig_type_info *type) { | |
500 | SWIG_PropagateClientDataTL(*swig_type_list_handle, type); | |
501 | } | |
d55e5bfc RD |
502 | |
503 | #ifdef __cplusplus | |
504 | } | |
505 | #endif | |
506 | ||
36ed4f51 RD |
507 | /* ----------------------------------------------------------------------------- |
508 | * SWIG API. Portion that goes into the runtime | |
509 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 510 | |
36ed4f51 RD |
511 | #ifdef __cplusplus |
512 | extern "C" { | |
513 | #endif | |
c370783e | 514 | |
36ed4f51 RD |
515 | /* ----------------------------------------------------------------------------- |
516 | * for internal method declarations | |
517 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 518 | |
36ed4f51 RD |
519 | #ifndef SWIGINTERN |
520 | #define SWIGINTERN static | |
521 | #endif | |
d55e5bfc | 522 | |
36ed4f51 RD |
523 | #ifndef SWIGINTERNSHORT |
524 | #ifdef __cplusplus | |
525 | #define SWIGINTERNSHORT static inline | |
526 | #else /* C case */ | |
527 | #define SWIGINTERNSHORT static | |
528 | #endif /* __cplusplus */ | |
529 | #endif | |
d55e5bfc RD |
530 | |
531 | ||
36ed4f51 RD |
532 | /* |
533 | Exception handling in wrappers | |
534 | */ | |
535 | #define SWIG_fail goto fail | |
536 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
537 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
538 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
539 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
540 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
541 | ||
542 | /* | |
543 | Contract support | |
544 | */ | |
545 | #define SWIG_contract_assert(expr, msg) \ | |
546 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
547 | ||
548 | /* ----------------------------------------------------------------------------- | |
549 | * Constant declarations | |
550 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 551 | |
36ed4f51 RD |
552 | /* Constant Types */ |
553 | #define SWIG_PY_INT 1 | |
554 | #define SWIG_PY_FLOAT 2 | |
555 | #define SWIG_PY_STRING 3 | |
556 | #define SWIG_PY_POINTER 4 | |
557 | #define SWIG_PY_BINARY 5 | |
558 | ||
559 | /* Constant information structure */ | |
560 | typedef struct swig_const_info { | |
561 | int type; | |
562 | char *name; | |
563 | long lvalue; | |
564 | double dvalue; | |
565 | void *pvalue; | |
566 | swig_type_info **ptype; | |
567 | } swig_const_info; | |
d55e5bfc | 568 | |
c370783e | 569 | |
36ed4f51 RD |
570 | /* ----------------------------------------------------------------------------- |
571 | * Alloc. memory flags | |
572 | * ----------------------------------------------------------------------------- */ | |
c370783e RD |
573 | #define SWIG_OLDOBJ 1 |
574 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
575 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
576 | |
577 | #ifdef __cplusplus | |
36ed4f51 RD |
578 | } |
579 | #endif | |
d55e5bfc | 580 | |
d55e5bfc | 581 | |
36ed4f51 RD |
582 | /*********************************************************************** |
583 | * pyrun.swg | |
584 | * | |
585 | * This file contains the runtime support for Python modules | |
586 | * and includes code for managing global variables and pointer | |
587 | * type checking. | |
588 | * | |
589 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
590 | ************************************************************************/ | |
d55e5bfc | 591 | |
36ed4f51 RD |
592 | /* Common SWIG API */ |
593 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
594 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
595 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
596 | ||
d55e5bfc | 597 | |
36ed4f51 RD |
598 | /* Python-specific SWIG API */ |
599 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
600 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
d55e5bfc | 601 | |
d55e5bfc | 602 | |
36ed4f51 RD |
603 | /* ----------------------------------------------------------------------------- |
604 | * Pointer declarations | |
605 | * ----------------------------------------------------------------------------- */ | |
606 | /* | |
607 | Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent | |
608 | C/C++ pointers in the python side. Very useful for debugging, but | |
609 | not always safe. | |
610 | */ | |
611 | #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) | |
612 | # define SWIG_COBJECT_TYPES | |
613 | #endif | |
d55e5bfc | 614 | |
36ed4f51 RD |
615 | /* Flags for pointer conversion */ |
616 | #define SWIG_POINTER_EXCEPTION 0x1 | |
617 | #define SWIG_POINTER_DISOWN 0x2 | |
d55e5bfc | 618 | |
d55e5bfc | 619 | |
36ed4f51 RD |
620 | #ifdef __cplusplus |
621 | extern "C" { | |
622 | #endif | |
d55e5bfc | 623 | |
36ed4f51 RD |
624 | /* ----------------------------------------------------------------------------- |
625 | * Create a new pointer string | |
626 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 627 | |
36ed4f51 RD |
628 | #ifndef SWIG_BUFFER_SIZE |
629 | #define SWIG_BUFFER_SIZE 1024 | |
630 | #endif | |
d55e5bfc | 631 | |
36ed4f51 RD |
632 | #if defined(SWIG_COBJECT_TYPES) |
633 | #if !defined(SWIG_COBJECT_PYTHON) | |
634 | /* ----------------------------------------------------------------------------- | |
635 | * Implements a simple Swig Object type, and use it instead of PyCObject | |
636 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 637 | |
36ed4f51 RD |
638 | typedef struct { |
639 | PyObject_HEAD | |
640 | void *ptr; | |
641 | const char *desc; | |
642 | } PySwigObject; | |
643 | ||
644 | /* Declarations for objects of type PySwigObject */ | |
645 | ||
646 | SWIGRUNTIME int | |
647 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
d55e5bfc | 648 | { |
36ed4f51 RD |
649 | char result[SWIG_BUFFER_SIZE]; |
650 | if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) { | |
651 | fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp); | |
652 | return 0; | |
653 | } else { | |
654 | return 1; | |
d55e5bfc | 655 | } |
d55e5bfc | 656 | } |
36ed4f51 RD |
657 | |
658 | SWIGRUNTIME PyObject * | |
659 | PySwigObject_repr(PySwigObject *v) | |
d55e5bfc | 660 | { |
36ed4f51 RD |
661 | char result[SWIG_BUFFER_SIZE]; |
662 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
663 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
d55e5bfc RD |
664 | } |
665 | ||
36ed4f51 RD |
666 | SWIGRUNTIME PyObject * |
667 | PySwigObject_str(PySwigObject *v) | |
668 | { | |
669 | char result[SWIG_BUFFER_SIZE]; | |
670 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
671 | PyString_FromString(result) : 0; | |
672 | } | |
d55e5bfc | 673 | |
36ed4f51 RD |
674 | SWIGRUNTIME PyObject * |
675 | PySwigObject_long(PySwigObject *v) | |
676 | { | |
677 | return PyLong_FromUnsignedLong((unsigned long) v->ptr); | |
d55e5bfc | 678 | } |
36ed4f51 RD |
679 | |
680 | SWIGRUNTIME PyObject * | |
681 | PySwigObject_oct(PySwigObject *v) | |
c370783e | 682 | { |
36ed4f51 RD |
683 | char buf[100]; |
684 | unsigned long x = (unsigned long)v->ptr; | |
685 | if (x == 0) | |
686 | strcpy(buf, "0"); | |
687 | else | |
688 | PyOS_snprintf(buf, sizeof(buf), "0%lo", x); | |
689 | return PyString_FromString(buf); | |
c370783e | 690 | } |
d55e5bfc | 691 | |
36ed4f51 RD |
692 | SWIGRUNTIME PyObject * |
693 | PySwigObject_hex(PySwigObject *v) | |
694 | { | |
695 | char buf[100]; | |
696 | PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr); | |
697 | return PyString_FromString(buf); | |
698 | } | |
d55e5bfc | 699 | |
36ed4f51 RD |
700 | SWIGRUNTIME int |
701 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
d55e5bfc | 702 | { |
36ed4f51 RD |
703 | int c = strcmp(v->desc, w->desc); |
704 | if (c) { | |
705 | return c; | |
706 | } else { | |
707 | void *i = v->ptr; | |
708 | void *j = w->ptr; | |
709 | return (i < j) ? -1 : (i > j) ? 1 : 0; | |
d55e5bfc | 710 | } |
c370783e RD |
711 | } |
712 | ||
36ed4f51 RD |
713 | SWIGRUNTIME void |
714 | PySwigObject_dealloc(PySwigObject *self) | |
c370783e | 715 | { |
36ed4f51 | 716 | PyObject_DEL(self); |
d55e5bfc RD |
717 | } |
718 | ||
36ed4f51 RD |
719 | SWIGRUNTIME PyTypeObject* |
720 | PySwigObject_GetType() { | |
721 | static char PySwigObject_Type__doc__[] = | |
722 | "Swig object carries a C/C++ instance pointer"; | |
723 | ||
724 | static PyNumberMethods PySwigObject_as_number = { | |
725 | (binaryfunc)0, /*nb_add*/ | |
726 | (binaryfunc)0, /*nb_subtract*/ | |
727 | (binaryfunc)0, /*nb_multiply*/ | |
728 | (binaryfunc)0, /*nb_divide*/ | |
729 | (binaryfunc)0, /*nb_remainder*/ | |
730 | (binaryfunc)0, /*nb_divmod*/ | |
731 | (ternaryfunc)0,/*nb_power*/ | |
732 | (unaryfunc)0, /*nb_negative*/ | |
733 | (unaryfunc)0, /*nb_positive*/ | |
734 | (unaryfunc)0, /*nb_absolute*/ | |
735 | (inquiry)0, /*nb_nonzero*/ | |
736 | 0, /*nb_invert*/ | |
737 | 0, /*nb_lshift*/ | |
738 | 0, /*nb_rshift*/ | |
739 | 0, /*nb_and*/ | |
740 | 0, /*nb_xor*/ | |
741 | 0, /*nb_or*/ | |
742 | (coercion)0, /*nb_coerce*/ | |
743 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
744 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
745 | (unaryfunc)0, /*nb_float*/ | |
746 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
747 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
748 | #if PY_VERSION_HEX >= 0x02000000 | |
749 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ | |
750 | #endif | |
751 | }; | |
752 | ||
753 | static int type_init = 0; | |
754 | static PyTypeObject PySwigObject_Type; | |
755 | ||
756 | if (!type_init) { | |
757 | PyTypeObject tmp = { | |
758 | PyObject_HEAD_INIT(&PyType_Type) | |
759 | 0, /*ob_size*/ | |
760 | "PySwigObject", /*tp_name*/ | |
761 | sizeof(PySwigObject), /*tp_basicsize*/ | |
762 | 0, /*tp_itemsize*/ | |
763 | /* methods */ | |
764 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
765 | (printfunc)PySwigObject_print, /*tp_print*/ | |
766 | (getattrfunc)0, /*tp_getattr*/ | |
767 | (setattrfunc)0, /*tp_setattr*/ | |
768 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
769 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
770 | &PySwigObject_as_number, /*tp_as_number*/ | |
771 | 0, /*tp_as_sequence*/ | |
772 | 0, /*tp_as_mapping*/ | |
773 | (hashfunc)0, /*tp_hash*/ | |
774 | (ternaryfunc)0, /*tp_call*/ | |
775 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
776 | /* Space for future expansion */ | |
777 | 0L,0L,0L,0L, | |
778 | PySwigObject_Type__doc__, /* Documentation string */ | |
779 | #if PY_VERSION_HEX >= 0x02000000 | |
780 | 0, /* tp_traverse */ | |
781 | 0, /* tp_clear */ | |
782 | #endif | |
783 | #if PY_VERSION_HEX >= 0x02010000 | |
784 | 0, /* tp_richcompare */ | |
785 | 0, /* tp_weaklistoffset */ | |
786 | #endif | |
787 | #if PY_VERSION_HEX >= 0x02020000 | |
788 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
789 | #endif | |
790 | #if PY_VERSION_HEX >= 0x02030000 | |
791 | 0, /* tp_del */ | |
792 | #endif | |
793 | #ifdef COUNT_ALLOCS | |
794 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
795 | #endif | |
796 | }; | |
d55e5bfc | 797 | |
36ed4f51 RD |
798 | PySwigObject_Type = tmp; |
799 | type_init = 1; | |
c370783e | 800 | } |
36ed4f51 RD |
801 | |
802 | return &PySwigObject_Type; | |
c370783e RD |
803 | } |
804 | ||
36ed4f51 RD |
805 | SWIGRUNTIME PyObject * |
806 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
d55e5bfc | 807 | { |
36ed4f51 RD |
808 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_GetType()); |
809 | if (self == NULL) return NULL; | |
810 | self->ptr = ptr; | |
811 | self->desc = desc; | |
812 | return (PyObject *)self; | |
c370783e RD |
813 | } |
814 | ||
36ed4f51 RD |
815 | SWIGRUNTIMEINLINE void * |
816 | PySwigObject_AsVoidPtr(PyObject *self) | |
817 | { | |
818 | return ((PySwigObject *)self)->ptr; | |
819 | } | |
c370783e | 820 | |
36ed4f51 RD |
821 | SWIGRUNTIMEINLINE const char * |
822 | PySwigObject_GetDesc(PyObject *self) | |
c370783e | 823 | { |
36ed4f51 | 824 | return ((PySwigObject *)self)->desc; |
d55e5bfc RD |
825 | } |
826 | ||
36ed4f51 RD |
827 | SWIGRUNTIMEINLINE int |
828 | PySwigObject_Check(PyObject *op) { | |
829 | return ((op)->ob_type == PySwigObject_GetType()) | |
830 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
831 | } | |
d55e5bfc | 832 | |
36ed4f51 RD |
833 | /* ----------------------------------------------------------------------------- |
834 | * Implements a simple Swig Packed type, and use it instead of string | |
835 | * ----------------------------------------------------------------------------- */ | |
836 | ||
837 | typedef struct { | |
838 | PyObject_HEAD | |
839 | void *pack; | |
840 | const char *desc; | |
841 | size_t size; | |
842 | } PySwigPacked; | |
843 | ||
844 | SWIGRUNTIME int | |
845 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
d55e5bfc | 846 | { |
36ed4f51 RD |
847 | char result[SWIG_BUFFER_SIZE]; |
848 | fputs("<Swig Packed ", fp); | |
849 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
850 | fputs("at ", fp); | |
851 | fputs(result, fp); | |
c370783e | 852 | } |
36ed4f51 RD |
853 | fputs(v->desc,fp); |
854 | fputs(">", fp); | |
855 | return 0; | |
d55e5bfc | 856 | } |
c370783e | 857 | |
36ed4f51 RD |
858 | SWIGRUNTIME PyObject * |
859 | PySwigPacked_repr(PySwigPacked *v) | |
d55e5bfc | 860 | { |
36ed4f51 RD |
861 | char result[SWIG_BUFFER_SIZE]; |
862 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
863 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
864 | } else { | |
865 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
866 | } | |
d55e5bfc RD |
867 | } |
868 | ||
36ed4f51 RD |
869 | SWIGRUNTIME PyObject * |
870 | PySwigPacked_str(PySwigPacked *v) | |
871 | { | |
872 | char result[SWIG_BUFFER_SIZE]; | |
873 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
874 | return PyString_FromFormat("%s%s", result, v->desc); | |
875 | } else { | |
876 | return PyString_FromFormat("%s", v->desc); | |
877 | } | |
878 | } | |
d55e5bfc | 879 | |
36ed4f51 RD |
880 | SWIGRUNTIME int |
881 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
882 | { | |
883 | int c = strcmp(v->desc, w->desc); | |
884 | if (c) { | |
885 | return c; | |
886 | } else { | |
887 | size_t i = v->size; | |
888 | size_t j = w->size; | |
889 | int s = (i < j) ? -1 : (i > j) ? 1 : 0; | |
890 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
891 | } | |
892 | } | |
d55e5bfc | 893 | |
36ed4f51 RD |
894 | SWIGRUNTIME void |
895 | PySwigPacked_dealloc(PySwigPacked *self) | |
896 | { | |
897 | free(self->pack); | |
898 | PyObject_DEL(self); | |
899 | } | |
900 | ||
901 | SWIGRUNTIME PyTypeObject* | |
902 | PySwigPacked_GetType() { | |
903 | static char PySwigPacked_Type__doc__[] = | |
904 | "Swig object carries a C/C++ instance pointer"; | |
905 | static int type_init = 0; | |
906 | ||
907 | static PyTypeObject PySwigPacked_Type; | |
908 | if (!type_init) { | |
909 | PyTypeObject tmp = { | |
910 | PyObject_HEAD_INIT(&PyType_Type) | |
911 | 0, /*ob_size*/ | |
912 | "PySwigPacked", /*tp_name*/ | |
913 | sizeof(PySwigPacked), /*tp_basicsize*/ | |
914 | 0, /*tp_itemsize*/ | |
915 | /* methods */ | |
916 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
917 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
918 | (getattrfunc)0, /*tp_getattr*/ | |
919 | (setattrfunc)0, /*tp_setattr*/ | |
920 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
921 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
922 | 0, /*tp_as_number*/ | |
923 | 0, /*tp_as_sequence*/ | |
924 | 0, /*tp_as_mapping*/ | |
925 | (hashfunc)0, /*tp_hash*/ | |
926 | (ternaryfunc)0, /*tp_call*/ | |
927 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
928 | /* Space for future expansion */ | |
929 | 0L,0L,0L,0L, | |
930 | PySwigPacked_Type__doc__, /* Documentation string */ | |
931 | #if PY_VERSION_HEX >= 0x02000000 | |
932 | 0, /* tp_traverse */ | |
933 | 0, /* tp_clear */ | |
934 | #endif | |
935 | #if PY_VERSION_HEX >= 0x02010000 | |
936 | 0, /* tp_richcompare */ | |
937 | 0, /* tp_weaklistoffset */ | |
938 | #endif | |
939 | #if PY_VERSION_HEX >= 0x02020000 | |
940 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
941 | #endif | |
942 | #if PY_VERSION_HEX >= 0x02030000 | |
943 | 0, /* tp_del */ | |
944 | #endif | |
945 | #ifdef COUNT_ALLOCS | |
946 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
947 | #endif | |
948 | }; | |
949 | ||
950 | PySwigPacked_Type = tmp; | |
951 | type_init = 1; | |
629e65c2 | 952 | } |
36ed4f51 RD |
953 | |
954 | ||
d55e5bfc | 955 | |
36ed4f51 RD |
956 | return &PySwigPacked_Type; |
957 | } | |
d55e5bfc | 958 | |
36ed4f51 RD |
959 | SWIGRUNTIME PyObject * |
960 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
961 | { | |
962 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType()); | |
963 | if (self == NULL) { | |
964 | return NULL; | |
965 | } else { | |
966 | void *pack = malloc(size); | |
967 | memcpy(pack, ptr, size); | |
968 | self->pack = pack; | |
969 | self->desc = desc; | |
970 | self->size = size; | |
971 | return (PyObject *) self; | |
972 | } | |
973 | } | |
c370783e | 974 | |
36ed4f51 RD |
975 | SWIGRUNTIMEINLINE const char * |
976 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
d55e5bfc | 977 | { |
36ed4f51 RD |
978 | PySwigPacked *self = (PySwigPacked *)obj; |
979 | if (self->size != size) return 0; | |
980 | memcpy(ptr, self->pack, size); | |
981 | return self->desc; | |
982 | } | |
983 | ||
984 | SWIGRUNTIMEINLINE const char * | |
985 | PySwigPacked_GetDesc(PyObject *self) | |
986 | { | |
987 | return ((PySwigPacked *)self)->desc; | |
d55e5bfc RD |
988 | } |
989 | ||
36ed4f51 RD |
990 | SWIGRUNTIMEINLINE int |
991 | PySwigPacked_Check(PyObject *op) { | |
992 | return ((op)->ob_type == PySwigPacked_GetType()) | |
993 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
994 | } | |
d55e5bfc | 995 | |
36ed4f51 RD |
996 | #else |
997 | /* ----------------------------------------------------------------------------- | |
998 | * Use the old Python PyCObject instead of PySwigObject | |
999 | * ----------------------------------------------------------------------------- */ | |
1000 | ||
1001 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1002 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1003 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1004 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1005 | ||
1006 | #endif | |
1007 | ||
1008 | #endif | |
1009 | ||
1010 | /* ----------------------------------------------------------------------------- | |
1011 | * errors manipulation | |
1012 | * ----------------------------------------------------------------------------- */ | |
1013 | ||
1014 | SWIGRUNTIME void | |
1015 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
d55e5bfc | 1016 | { |
36ed4f51 RD |
1017 | if (type) { |
1018 | #if defined(SWIG_COBJECT_TYPES) | |
1019 | if (PySwigObject_Check(obj)) { | |
1020 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
1021 | if (otype) { | |
1022 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1023 | type, otype); | |
1024 | return; | |
1025 | } | |
1026 | } else | |
1027 | #endif | |
1028 | { | |
1029 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1030 | if (otype) { | |
1031 | PyObject *str = PyObject_Str(obj); | |
1032 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1033 | if (cstr) { | |
1034 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1035 | type, otype, cstr); | |
1036 | } else { | |
1037 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1038 | type, otype); | |
1039 | } | |
1040 | Py_DECREF(str); | |
1041 | return; | |
1042 | } | |
1043 | } | |
1044 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1045 | } else { | |
1046 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
d55e5bfc | 1047 | } |
c370783e RD |
1048 | } |
1049 | ||
36ed4f51 RD |
1050 | SWIGRUNTIMEINLINE void |
1051 | SWIG_Python_NullRef(const char *type) | |
c370783e | 1052 | { |
36ed4f51 RD |
1053 | if (type) { |
1054 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1055 | } else { | |
1056 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1057 | } | |
d55e5bfc RD |
1058 | } |
1059 | ||
36ed4f51 RD |
1060 | SWIGRUNTIME int |
1061 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1062 | { | |
1063 | if (PyErr_Occurred()) { | |
1064 | PyObject *type = 0; | |
1065 | PyObject *value = 0; | |
1066 | PyObject *traceback = 0; | |
1067 | PyErr_Fetch(&type, &value, &traceback); | |
1068 | if (value) { | |
1069 | PyObject *old_str = PyObject_Str(value); | |
1070 | Py_XINCREF(type); | |
1071 | PyErr_Clear(); | |
1072 | if (infront) { | |
1073 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1074 | } else { | |
1075 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1076 | } | |
1077 | Py_DECREF(old_str); | |
1078 | } | |
1079 | return 1; | |
1080 | } else { | |
1081 | return 0; | |
1082 | } | |
1083 | } | |
d55e5bfc | 1084 | |
36ed4f51 RD |
1085 | SWIGRUNTIME int |
1086 | SWIG_Python_ArgFail(int argnum) | |
d55e5bfc | 1087 | { |
36ed4f51 RD |
1088 | if (PyErr_Occurred()) { |
1089 | /* add information about failing argument */ | |
1090 | char mesg[256]; | |
1091 | sprintf(mesg, "argument number %d:", argnum); | |
1092 | return SWIG_Python_AddErrMesg(mesg, 1); | |
1093 | } else { | |
1094 | return 0; | |
1095 | } | |
d55e5bfc RD |
1096 | } |
1097 | ||
1098 | ||
36ed4f51 RD |
1099 | /* ----------------------------------------------------------------------------- |
1100 | * pointers/data manipulation | |
1101 | * ----------------------------------------------------------------------------- */ | |
1102 | ||
1103 | /* Convert a pointer value */ | |
1104 | SWIGRUNTIME int | |
1105 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
1106 | swig_type_info *tc; | |
1107 | const char *c = 0; | |
1108 | static PyObject *SWIG_this = 0; | |
1109 | int newref = 0; | |
1110 | PyObject *pyobj = 0; | |
1111 | void *vptr; | |
1112 | ||
1113 | if (!obj) return 0; | |
1114 | if (obj == Py_None) { | |
1115 | *ptr = 0; | |
1116 | return 0; | |
1117 | } | |
1118 | ||
1119 | #ifdef SWIG_COBJECT_TYPES | |
1120 | if (!(PySwigObject_Check(obj))) { | |
1121 | if (!SWIG_this) | |
1122 | SWIG_this = PyString_FromString("this"); | |
1123 | pyobj = obj; | |
1124 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1125 | newref = 1; | |
1126 | if (!obj) goto type_error; | |
1127 | if (!PySwigObject_Check(obj)) { | |
1128 | Py_DECREF(obj); | |
1129 | goto type_error; | |
1130 | } | |
1131 | } | |
1132 | vptr = PySwigObject_AsVoidPtr(obj); | |
1133 | c = (const char *) PySwigObject_GetDesc(obj); | |
1134 | if (newref) { Py_DECREF(obj); } | |
1135 | goto type_check; | |
d55e5bfc | 1136 | #else |
36ed4f51 RD |
1137 | if (!(PyString_Check(obj))) { |
1138 | if (!SWIG_this) | |
1139 | SWIG_this = PyString_FromString("this"); | |
1140 | pyobj = obj; | |
1141 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1142 | newref = 1; | |
1143 | if (!obj) goto type_error; | |
1144 | if (!PyString_Check(obj)) { | |
1145 | Py_DECREF(obj); | |
1146 | goto type_error; | |
1147 | } | |
1148 | } | |
1149 | c = PyString_AS_STRING(obj); | |
1150 | /* Pointer values must start with leading underscore */ | |
1151 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1152 | if (newref) { Py_DECREF(obj); } | |
1153 | if (!c) goto type_error; | |
d55e5bfc | 1154 | #endif |
d55e5bfc | 1155 | |
36ed4f51 | 1156 | type_check: |
d55e5bfc | 1157 | |
36ed4f51 RD |
1158 | if (ty) { |
1159 | tc = SWIG_TypeCheck(c,ty); | |
1160 | if (!tc) goto type_error; | |
1161 | *ptr = SWIG_TypeCast(tc,vptr); | |
1162 | } else { | |
1163 | *ptr = vptr; | |
1164 | } | |
1165 | ||
1166 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { | |
1167 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1168 | } | |
1169 | return 0; | |
1170 | ||
1171 | type_error: | |
1172 | PyErr_Clear(); | |
1173 | if (pyobj && !obj) { | |
1174 | obj = pyobj; | |
1175 | if (PyCFunction_Check(obj)) { | |
1176 | /* here we get the method pointer for callbacks */ | |
1177 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1178 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1179 | if (c) { | |
1180 | c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name); | |
1181 | if (!c) goto type_error; | |
1182 | goto type_check; | |
1183 | } | |
1184 | } | |
1185 | } | |
1186 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1187 | if (ty) { | |
1188 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1189 | } else { | |
1190 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
d55e5bfc | 1191 | } |
36ed4f51 RD |
1192 | } |
1193 | return -1; | |
1194 | } | |
d55e5bfc | 1195 | |
36ed4f51 RD |
1196 | /* Convert a pointer value, signal an exception on a type mismatch */ |
1197 | SWIGRUNTIME void * | |
1198 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1199 | void *result; | |
1200 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1201 | PyErr_Clear(); | |
1202 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1203 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1204 | SWIG_Python_ArgFail(argnum); | |
d55e5bfc | 1205 | } |
36ed4f51 RD |
1206 | } |
1207 | return result; | |
1208 | } | |
d55e5bfc | 1209 | |
36ed4f51 RD |
1210 | /* Convert a packed value value */ |
1211 | SWIGRUNTIME int | |
1212 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
1213 | swig_type_info *tc; | |
1214 | const char *c = 0; | |
d55e5bfc | 1215 | |
36ed4f51 RD |
1216 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) |
1217 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1218 | #else | |
1219 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
1220 | c = PyString_AS_STRING(obj); | |
1221 | /* Pointer values must start with leading underscore */ | |
1222 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1223 | #endif | |
1224 | if (!c) goto type_error; | |
1225 | if (ty) { | |
1226 | tc = SWIG_TypeCheck(c,ty); | |
1227 | if (!tc) goto type_error; | |
1228 | } | |
1229 | return 0; | |
d55e5bfc | 1230 | |
36ed4f51 RD |
1231 | type_error: |
1232 | PyErr_Clear(); | |
1233 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1234 | if (ty) { | |
1235 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1236 | } else { | |
1237 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1238 | } | |
1239 | } | |
1240 | return -1; | |
1241 | } | |
1242 | ||
1243 | /* Create a new array object */ | |
1244 | SWIGRUNTIME PyObject * | |
1245 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1246 | PyObject *robj = 0; | |
1247 | if (!ptr) { | |
1248 | Py_INCREF(Py_None); | |
1249 | return Py_None; | |
1250 | } | |
1251 | #ifdef SWIG_COBJECT_TYPES | |
1252 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1253 | #else | |
1254 | { | |
1255 | char result[SWIG_BUFFER_SIZE]; | |
1256 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1257 | PyString_FromString(result) : 0; | |
1258 | } | |
1259 | #endif | |
1260 | if (!robj || (robj == Py_None)) return robj; | |
1261 | if (type->clientdata) { | |
1262 | PyObject *inst; | |
1263 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1264 | Py_DECREF(robj); | |
1265 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1266 | Py_DECREF(args); | |
1267 | if (inst) { | |
1268 | if (own) { | |
1269 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1270 | } | |
1271 | robj = inst; | |
1272 | } | |
1273 | } | |
1274 | return robj; | |
1275 | } | |
d55e5bfc | 1276 | |
36ed4f51 RD |
1277 | SWIGRUNTIME PyObject * |
1278 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1279 | PyObject *robj = 0; | |
1280 | if (!ptr) { | |
1281 | Py_INCREF(Py_None); | |
1282 | return Py_None; | |
1283 | } | |
1284 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1285 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1286 | #else | |
1287 | { | |
1288 | char result[SWIG_BUFFER_SIZE]; | |
1289 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1290 | PyString_FromString(result) : 0; | |
1291 | } | |
d55e5bfc | 1292 | #endif |
36ed4f51 RD |
1293 | return robj; |
1294 | } | |
d55e5bfc | 1295 | |
36ed4f51 RD |
1296 | /* -----------------------------------------------------------------------------* |
1297 | * Get type list | |
1298 | * -----------------------------------------------------------------------------*/ | |
d55e5bfc | 1299 | |
36ed4f51 RD |
1300 | #ifdef SWIG_LINK_RUNTIME |
1301 | void *SWIG_ReturnGlobalTypeList(void *); | |
1302 | #endif | |
d55e5bfc | 1303 | |
36ed4f51 RD |
1304 | SWIGRUNTIME swig_type_info ** |
1305 | SWIG_Python_GetTypeListHandle() { | |
1306 | static void *type_pointer = (void *)0; | |
1307 | /* first check if module already created */ | |
1308 | if (!type_pointer) { | |
1309 | #ifdef SWIG_LINK_RUNTIME | |
1310 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1311 | #else | |
1312 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1313 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1314 | if (PyErr_Occurred()) { | |
1315 | PyErr_Clear(); | |
1316 | type_pointer = (void *)0; | |
1317 | } | |
1318 | } | |
1319 | #endif | |
1320 | return (swig_type_info **) type_pointer; | |
1321 | } | |
d55e5bfc | 1322 | |
36ed4f51 RD |
1323 | /* |
1324 | Search for a swig_type_info structure | |
1325 | */ | |
1326 | SWIGRUNTIMEINLINE swig_type_info * | |
1327 | SWIG_Python_GetTypeList() { | |
1328 | swig_type_info **tlh = SWIG_Python_GetTypeListHandle(); | |
1329 | return tlh ? *tlh : (swig_type_info*)0; | |
1330 | } | |
d55e5bfc | 1331 | |
36ed4f51 | 1332 | #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList |
d55e5bfc | 1333 | |
36ed4f51 RD |
1334 | #ifdef __cplusplus |
1335 | } | |
1336 | #endif | |
d55e5bfc | 1337 | |
d55e5bfc | 1338 | |
36ed4f51 | 1339 | /* -------- TYPES TABLE (BEGIN) -------- */ |
d55e5bfc | 1340 | |
36ed4f51 RD |
1341 | #define SWIGTYPE_p_wxLogChain swig_types[0] |
1342 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
1343 | #define SWIGTYPE_p_wxMetafile swig_types[2] | |
1344 | #define SWIGTYPE_p_wxFileHistory swig_types[3] | |
1345 | #define SWIGTYPE_p_wxLog swig_types[4] | |
1346 | #define SWIGTYPE_p_wxMenu swig_types[5] | |
1347 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
1348 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[7] | |
1349 | #define SWIGTYPE_p_wxConfigBase swig_types[8] | |
1350 | #define SWIGTYPE_p_wxDisplay swig_types[9] | |
1351 | #define SWIGTYPE_p_wxFileType swig_types[10] | |
1352 | #define SWIGTYPE_p_wxLogGui swig_types[11] | |
1353 | #define SWIGTYPE_p_wxFont swig_types[12] | |
1354 | #define SWIGTYPE_p_wxDataFormat swig_types[13] | |
1355 | #define SWIGTYPE_p_wxTimerEvent swig_types[14] | |
1356 | #define SWIGTYPE_p_wxCaret swig_types[15] | |
1357 | #define SWIGTYPE_ptrdiff_t swig_types[16] | |
1358 | #define SWIGTYPE_std__ptrdiff_t swig_types[17] | |
1359 | #define SWIGTYPE_p_int swig_types[18] | |
1360 | #define SWIGTYPE_p_wxSize swig_types[19] | |
1361 | #define SWIGTYPE_p_wxClipboard swig_types[20] | |
1362 | #define SWIGTYPE_p_wxStopWatch swig_types[21] | |
68350608 RD |
1363 | #define SWIGTYPE_p_wxDC swig_types[22] |
1364 | #define SWIGTYPE_p_wxClipboardLocker swig_types[23] | |
1365 | #define SWIGTYPE_p_wxIcon swig_types[24] | |
1366 | #define SWIGTYPE_p_wxLogStderr swig_types[25] | |
1367 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[26] | |
1368 | #define SWIGTYPE_p_wxTextCtrl swig_types[27] | |
1369 | #define SWIGTYPE_p_wxBusyCursor swig_types[28] | |
1370 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[29] | |
1371 | #define SWIGTYPE_p_wxTextDataObject swig_types[30] | |
1372 | #define SWIGTYPE_p_wxDataObject swig_types[31] | |
1373 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[32] | |
1374 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[33] | |
1375 | #define SWIGTYPE_p_wxFileDataObject swig_types[34] | |
1376 | #define SWIGTYPE_p_wxCustomDataObject swig_types[35] | |
1377 | #define SWIGTYPE_p_wxURLDataObject swig_types[36] | |
1378 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[37] | |
1379 | #define SWIGTYPE_p_wxSound swig_types[38] | |
1380 | #define SWIGTYPE_p_wxTimerRunner swig_types[39] | |
1381 | #define SWIGTYPE_p_wxLogWindow swig_types[40] | |
1382 | #define SWIGTYPE_p_wxTimeSpan swig_types[41] | |
1383 | #define SWIGTYPE_p_wxArrayString swig_types[42] | |
1384 | #define SWIGTYPE_p_wxWindowDisabler swig_types[43] | |
1385 | #define SWIGTYPE_p_form_ops_t swig_types[44] | |
1386 | #define SWIGTYPE_p_wxToolTip swig_types[45] | |
1387 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[46] | |
36ed4f51 | 1388 | #define SWIGTYPE_p_wxSystemSettings swig_types[47] |
68350608 RD |
1389 | #define SWIGTYPE_p_wxFileConfig swig_types[48] |
1390 | #define SWIGTYPE_p_wxVideoMode swig_types[49] | |
1391 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[50] | |
1392 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[51] | |
1393 | #define SWIGTYPE_p_wxDuplexMode swig_types[52] | |
1394 | #define SWIGTYPE_p_wxEvtHandler swig_types[53] | |
1395 | #define SWIGTYPE_p_wxRect swig_types[54] | |
1396 | #define SWIGTYPE_p_char swig_types[55] | |
1397 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[56] | |
1398 | #define SWIGTYPE_p_wxStandardPaths swig_types[57] | |
1399 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[58] | |
1400 | #define SWIGTYPE_p_wxFrame swig_types[59] | |
1401 | #define SWIGTYPE_p_wxTimer swig_types[60] | |
1402 | #define SWIGTYPE_p_wxPaperSize swig_types[61] | |
1403 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[62] | |
1404 | #define SWIGTYPE_p_wxPyArtProvider swig_types[63] | |
1405 | #define SWIGTYPE_p_wxPyTipProvider swig_types[64] | |
1406 | #define SWIGTYPE_p_wxTipProvider swig_types[65] | |
1407 | #define SWIGTYPE_p_wxJoystick swig_types[66] | |
1408 | #define SWIGTYPE_p_wxSystemOptions swig_types[67] | |
1409 | #define SWIGTYPE_p_wxPoint swig_types[68] | |
1410 | #define SWIGTYPE_p_wxJoystickEvent swig_types[69] | |
1411 | #define SWIGTYPE_p_wxCursor swig_types[70] | |
1412 | #define SWIGTYPE_p_wxObject swig_types[71] | |
1413 | #define SWIGTYPE_p_wxOutputStream swig_types[72] | |
1414 | #define SWIGTYPE_p_wxDateTime swig_types[73] | |
1415 | #define SWIGTYPE_p_wxPyDropSource swig_types[74] | |
1416 | #define SWIGTYPE_p_unsigned_long swig_types[75] | |
1417 | #define SWIGTYPE_p_wxKillError swig_types[76] | |
1418 | #define SWIGTYPE_p_wxWindow swig_types[77] | |
1419 | #define SWIGTYPE_p_wxString swig_types[78] | |
1420 | #define SWIGTYPE_p_wxPyProcess swig_types[79] | |
1421 | #define SWIGTYPE_p_wxBitmap swig_types[80] | |
1422 | #define SWIGTYPE_p_wxConfig swig_types[81] | |
1423 | #define SWIGTYPE_unsigned_int swig_types[82] | |
1424 | #define SWIGTYPE_p_unsigned_int swig_types[83] | |
1425 | #define SWIGTYPE_p_unsigned_char swig_types[84] | |
1426 | #define SWIGTYPE_p_wxChar swig_types[85] | |
1427 | #define SWIGTYPE_p_wxBusyInfo swig_types[86] | |
1428 | #define SWIGTYPE_p_wxPyDropTarget swig_types[87] | |
1429 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[88] | |
1430 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[89] | |
1431 | #define SWIGTYPE_p_wxProcessEvent swig_types[90] | |
1432 | #define SWIGTYPE_p_wxPyLog swig_types[91] | |
1433 | #define SWIGTYPE_p_wxLogNull swig_types[92] | |
1434 | #define SWIGTYPE_p_wxColour swig_types[93] | |
1435 | #define SWIGTYPE_p_wxPyTimer swig_types[94] | |
1436 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[95] | |
1437 | #define SWIGTYPE_p_wxDateSpan swig_types[96] | |
1438 | static swig_type_info *swig_types[98]; | |
d55e5bfc | 1439 | |
36ed4f51 | 1440 | /* -------- TYPES TABLE (END) -------- */ |
d55e5bfc RD |
1441 | |
1442 | ||
36ed4f51 RD |
1443 | /*----------------------------------------------- |
1444 | @(target):= _misc_.so | |
1445 | ------------------------------------------------*/ | |
1446 | #define SWIG_init init_misc_ | |
d55e5bfc | 1447 | |
36ed4f51 | 1448 | #define SWIG_name "_misc_" |
d55e5bfc | 1449 | |
36ed4f51 RD |
1450 | #include "wx/wxPython/wxPython.h" |
1451 | #include "wx/wxPython/pyclasses.h" | |
1452 | #include "wx/wxPython/pyistream.h" | |
d55e5bfc | 1453 | |
36ed4f51 | 1454 | static const wxString wxPyEmptyString(wxEmptyString); |
d55e5bfc | 1455 | |
d55e5bfc | 1456 | |
d55e5bfc | 1457 | |
36ed4f51 RD |
1458 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
1459 | #define SWIG_From_int PyInt_FromLong | |
1460 | /*@@*/ | |
d55e5bfc RD |
1461 | |
1462 | ||
36ed4f51 | 1463 | #include <limits.h> |
d55e5bfc RD |
1464 | |
1465 | ||
36ed4f51 RD |
1466 | SWIGINTERN int |
1467 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1468 | const char *errmsg) | |
d55e5bfc | 1469 | { |
36ed4f51 RD |
1470 | if (value < min_value) { |
1471 | if (errmsg) { | |
1472 | PyErr_Format(PyExc_OverflowError, | |
1473 | "value %ld is less than '%s' minimum %ld", | |
1474 | value, errmsg, min_value); | |
1475 | } | |
1476 | return 0; | |
1477 | } else if (value > max_value) { | |
c370783e RD |
1478 | if (errmsg) { |
1479 | PyErr_Format(PyExc_OverflowError, | |
36ed4f51 | 1480 | "value %ld is greater than '%s' maximum %ld", |
c370783e | 1481 | value, errmsg, max_value); |
d55e5bfc | 1482 | } |
c370783e | 1483 | return 0; |
d55e5bfc | 1484 | } |
c370783e | 1485 | return 1; |
36ed4f51 | 1486 | } |
d55e5bfc RD |
1487 | |
1488 | ||
36ed4f51 RD |
1489 | SWIGINTERN int |
1490 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1491 | { | |
1492 | if (PyNumber_Check(obj)) { | |
1493 | if (val) *val = PyInt_AsLong(obj); | |
1494 | return 1; | |
1495 | } | |
1496 | else { | |
1497 | SWIG_type_error("number", obj); | |
1498 | } | |
1499 | return 0; | |
1500 | } | |
1501 | ||
1502 | ||
1503 | #if INT_MAX != LONG_MAX | |
1504 | SWIGINTERN int | |
1505 | SWIG_AsVal_int(PyObject *obj, int *val) | |
d55e5bfc | 1506 | { |
36ed4f51 RD |
1507 | const char* errmsg = val ? "int" : (char*)0; |
1508 | long v; | |
1509 | if (SWIG_AsVal_long(obj, &v)) { | |
1510 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
1511 | if (val) *val = (int)(v); | |
c370783e | 1512 | return 1; |
36ed4f51 RD |
1513 | } else { |
1514 | return 0; | |
c370783e RD |
1515 | } |
1516 | } else { | |
1517 | PyErr_Clear(); | |
1518 | } | |
1519 | if (val) { | |
36ed4f51 | 1520 | SWIG_type_error(errmsg, obj); |
c370783e RD |
1521 | } |
1522 | return 0; | |
d55e5bfc RD |
1523 | } |
1524 | #else | |
36ed4f51 RD |
1525 | SWIGINTERNSHORT int |
1526 | SWIG_AsVal_int(PyObject *obj, int *val) | |
c370783e | 1527 | { |
36ed4f51 | 1528 | return SWIG_AsVal_long(obj,(long*)val); |
c370783e | 1529 | } |
d55e5bfc RD |
1530 | #endif |
1531 | ||
1532 | ||
36ed4f51 RD |
1533 | SWIGINTERNSHORT int |
1534 | SWIG_As_int(PyObject* obj) | |
d55e5bfc | 1535 | { |
36ed4f51 RD |
1536 | int v; |
1537 | if (!SWIG_AsVal_int(obj, &v)) { | |
c370783e | 1538 | /* |
36ed4f51 | 1539 | this is needed to make valgrind/purify happier. |
c370783e | 1540 | */ |
36ed4f51 | 1541 | memset((void*)&v, 0, sizeof(int)); |
d55e5bfc | 1542 | } |
c370783e RD |
1543 | return v; |
1544 | } | |
1545 | ||
1546 | ||
36ed4f51 RD |
1547 | SWIGINTERNSHORT int |
1548 | SWIG_Check_int(PyObject* obj) | |
c370783e | 1549 | { |
36ed4f51 | 1550 | return SWIG_AsVal_int(obj, (int*)0); |
d55e5bfc RD |
1551 | } |
1552 | ||
36ed4f51 | 1553 | static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT); |
f78cc896 | 1554 | |
36ed4f51 | 1555 | #include <wx/stockitem.h> |
f78cc896 | 1556 | |
36ed4f51 RD |
1557 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
1558 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
1559 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
f78cc896 | 1560 | |
36ed4f51 RD |
1561 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
1562 | #define SWIG_From_long PyInt_FromLong | |
1563 | /*@@*/ | |
f78cc896 | 1564 | |
f78cc896 | 1565 | |
36ed4f51 RD |
1566 | SWIGINTERNSHORT long |
1567 | SWIG_As_long(PyObject* obj) | |
1568 | { | |
1569 | long v; | |
1570 | if (!SWIG_AsVal_long(obj, &v)) { | |
1571 | /* | |
1572 | this is needed to make valgrind/purify happier. | |
1573 | */ | |
1574 | memset((void*)&v, 0, sizeof(long)); | |
1575 | } | |
1576 | return v; | |
1577 | } | |
f78cc896 | 1578 | |
36ed4f51 RD |
1579 | |
1580 | SWIGINTERNSHORT int | |
1581 | SWIG_Check_long(PyObject* obj) | |
1582 | { | |
1583 | return SWIG_AsVal_long(obj, (long*)0); | |
1584 | } | |
f78cc896 | 1585 | |
f78cc896 | 1586 | |
36ed4f51 RD |
1587 | SWIGINTERN int |
1588 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
1589 | { | |
1590 | if (obj == Py_True) { | |
1591 | if (val) *val = true; | |
1592 | return 1; | |
1593 | } | |
1594 | if (obj == Py_False) { | |
1595 | if (val) *val = false; | |
1596 | return 1; | |
1597 | } | |
1598 | int res = 0; | |
1599 | if (SWIG_AsVal_int(obj, &res)) { | |
1600 | if (val) *val = res ? true : false; | |
1601 | return 1; | |
1602 | } else { | |
1603 | PyErr_Clear(); | |
1604 | } | |
1605 | if (val) { | |
1606 | SWIG_type_error("bool", obj); | |
1607 | } | |
1608 | return 0; | |
1609 | } | |
d55e5bfc | 1610 | |
d55e5bfc | 1611 | |
36ed4f51 RD |
1612 | SWIGINTERNSHORT bool |
1613 | SWIG_As_bool(PyObject* obj) | |
1614 | { | |
1615 | bool v; | |
1616 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1617 | /* | |
1618 | this is needed to make valgrind/purify happier. | |
1619 | */ | |
1620 | memset((void*)&v, 0, sizeof(bool)); | |
1621 | } | |
1622 | return v; | |
1623 | } | |
d55e5bfc | 1624 | |
36ed4f51 RD |
1625 | |
1626 | SWIGINTERNSHORT int | |
1627 | SWIG_Check_bool(PyObject* obj) | |
1628 | { | |
1629 | return SWIG_AsVal_bool(obj, (bool*)0); | |
1630 | } | |
d55e5bfc RD |
1631 | |
1632 | ||
36ed4f51 RD |
1633 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
1634 | PyObject* o2; | |
1635 | PyObject* o3; | |
1636 | ||
1637 | if (!target) { | |
1638 | target = o; | |
1639 | } else if (target == Py_None) { | |
1640 | Py_DECREF(Py_None); | |
1641 | target = o; | |
1642 | } else { | |
1643 | if (!PyTuple_Check(target)) { | |
1644 | o2 = target; | |
1645 | target = PyTuple_New(1); | |
1646 | PyTuple_SetItem(target, 0, o2); | |
1647 | } | |
1648 | o3 = PyTuple_New(1); | |
1649 | PyTuple_SetItem(o3, 0, o); | |
d55e5bfc | 1650 | |
36ed4f51 RD |
1651 | o2 = target; |
1652 | target = PySequence_Concat(o2, o3); | |
1653 | Py_DECREF(o2); | |
1654 | Py_DECREF(o3); | |
1655 | } | |
1656 | return target; | |
1657 | } | |
d55e5bfc | 1658 | |
d55e5bfc RD |
1659 | |
1660 | ||
36ed4f51 RD |
1661 | SWIGINTERN int |
1662 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
1663 | { | |
1664 | long v = 0; | |
1665 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
1666 | SWIG_type_error("unsigned number", obj); | |
d55e5bfc | 1667 | } |
36ed4f51 RD |
1668 | else if (val) |
1669 | *val = (unsigned long)v; | |
1670 | return 1; | |
1671 | } | |
d55e5bfc | 1672 | |
d55e5bfc | 1673 | |
36ed4f51 RD |
1674 | SWIGINTERNSHORT unsigned long |
1675 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
1676 | { | |
1677 | unsigned long v; | |
1678 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1679 | /* | |
1680 | this is needed to make valgrind/purify happier. | |
1681 | */ | |
1682 | memset((void*)&v, 0, sizeof(unsigned long)); | |
1683 | } | |
1684 | return v; | |
1685 | } | |
d55e5bfc | 1686 | |
36ed4f51 RD |
1687 | |
1688 | SWIGINTERNSHORT int | |
1689 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
1690 | { | |
1691 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
1692 | } | |
d55e5bfc RD |
1693 | |
1694 | ||
36ed4f51 RD |
1695 | SWIGINTERNSHORT PyObject* |
1696 | SWIG_From_unsigned_SS_long(unsigned long value) | |
1697 | { | |
1698 | return (value > LONG_MAX) ? | |
1699 | PyLong_FromUnsignedLong(value) | |
1700 | : PyInt_FromLong((long)(value)); | |
1701 | } | |
d55e5bfc RD |
1702 | |
1703 | ||
36ed4f51 RD |
1704 | bool wxThread_IsMain() { |
1705 | #ifdef WXP_WITH_THREAD | |
1706 | return wxThread::IsMain(); | |
1707 | #else | |
1708 | return true; | |
1709 | #endif | |
d55e5bfc | 1710 | } |
36ed4f51 | 1711 | |
091fdbfa RD |
1712 | static void wxCaret_Destroy(wxCaret *self){ |
1713 | delete self; | |
1714 | } | |
d55e5bfc | 1715 | |
36ed4f51 RD |
1716 | #include <wx/snglinst.h> |
1717 | ||
1718 | ||
68350608 RD |
1719 | #ifdef __WXMSW__ |
1720 | #include <wx/msw/private.h> | |
1721 | #include <wx/dynload.h> | |
1722 | #endif | |
1723 | ||
1724 | ||
1725 | ||
1726 | bool wxDrawWindowOnDC(wxWindow* window, const wxDC& dc | |
1727 | #if 0 | |
1728 | , int method | |
1729 | #endif | |
1730 | ) | |
1731 | { | |
1732 | #ifdef __WXMSW__ | |
1733 | #if 0 | |
1734 | switch (method) | |
1735 | { | |
1736 | case 1: | |
1737 | // This one only partially works. Appears to be an undocumented | |
1738 | // "standard" convention that not all widgets adhear to. For | |
1739 | // example, for some widgets backgrounds or non-client areas may | |
1740 | // not be painted. | |
1741 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
1742 | break; | |
1743 | ||
1744 | case 2: | |
1745 | #endif | |
1746 | // This one works much better, nearly all widgets and their | |
1747 | // children are captured correctly[**]. Prior to the big | |
1748 | // background erase changes that Vadim did in 2004-2005 this | |
1749 | // method failed badly on XP with Themes activated, most native | |
1750 | // widgets draw only partially, if at all. Without themes it | |
1751 | // worked just like on Win2k. After those changes this method | |
1752 | // works very well. | |
1753 | // | |
1754 | // ** For example the radio buttons in a wxRadioBox are not its | |
1755 | // children by default, but you can capture it via the panel | |
1756 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
1757 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
1758 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
1759 | PRF_ERASEBKGND | PRF_OWNED ); | |
1760 | return true; | |
1761 | #if 0 | |
1762 | break; | |
1763 | ||
1764 | case 3: | |
1765 | // This one is only defined in the latest SDK and is only | |
1766 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
1767 | // so I expect that it will work similar to the above. Since it | |
1768 | // is avaialble only on XP, it can't be compiled like this and | |
1769 | // will have to be loaded dynamically. | |
1770 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
1771 | ||
1772 | // fall through | |
1773 | ||
1774 | case 4: | |
1775 | // Use PrintWindow if available, or fallback to WM_PRINT | |
1776 | // otherwise. Unfortunately using PrintWindow is even worse than | |
1777 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
1778 | // at all, with or without Themes. | |
1779 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
1780 | static bool s_triedToLoad = false; | |
1781 | static PrintWindow_t pfnPrintWindow = NULL; | |
1782 | if ( !s_triedToLoad ) | |
1783 | { | |
1784 | ||
1785 | s_triedToLoad = true; | |
1786 | wxDynamicLibrary dllUser32(_T("user32.dll")); | |
1787 | if ( dllUser32.IsLoaded() ) | |
1788 | { | |
1789 | wxLogNull nolog; // Don't report errors here | |
1790 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
1791 | } | |
1792 | } | |
1793 | if (pfnPrintWindow) | |
1794 | { | |
1795 | //printf("Using PrintWindow\n"); | |
1796 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
1797 | } | |
1798 | else | |
1799 | { | |
1800 | //printf("Using WM_PRINT\n"); | |
1801 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
1802 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
1803 | PRF_ERASEBKGND | PRF_OWNED ); | |
1804 | } | |
1805 | } | |
1806 | #endif // 0 | |
1807 | #else | |
1808 | return false; | |
1809 | #endif // __WXMSW__ | |
1810 | } | |
1811 | ||
1812 | ||
1813 | ||
36ed4f51 RD |
1814 | #include <wx/tipdlg.h> |
1815 | ||
1816 | ||
1817 | class wxPyTipProvider : public wxTipProvider { | |
1818 | public: | |
1819 | wxPyTipProvider(size_t currentTip) | |
1820 | : wxTipProvider(currentTip) {} | |
d55e5bfc | 1821 | |
36ed4f51 RD |
1822 | DEC_PYCALLBACK_STRING__pure(GetTip); |
1823 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
d55e5bfc RD |
1824 | PYPRIVATE; |
1825 | }; | |
1826 | ||
36ed4f51 RD |
1827 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); |
1828 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
d55e5bfc RD |
1829 | |
1830 | ||
36ed4f51 | 1831 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); |
d55e5bfc | 1832 | |
36ed4f51 | 1833 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
d55e5bfc | 1834 | |
36ed4f51 RD |
1835 | wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id) |
1836 | : wxTimer(owner, id) | |
1837 | { | |
1838 | if (owner == NULL) SetOwner(this); | |
1839 | } | |
d55e5bfc | 1840 | |
d55e5bfc | 1841 | |
36ed4f51 RD |
1842 | void wxPyTimer::Notify() { |
1843 | bool found; | |
1844 | bool blocked = wxPyBeginBlockThreads(); | |
1845 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
1846 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
1847 | wxPyEndBlockThreads(blocked); | |
1848 | if (! found) | |
1849 | wxTimer::Notify(); | |
1850 | } | |
1851 | void wxPyTimer::base_Notify() { | |
1852 | wxTimer::Notify(); | |
1853 | } | |
d55e5bfc | 1854 | |
d55e5bfc | 1855 | |
d55e5bfc | 1856 | |
36ed4f51 RD |
1857 | SWIGINTERN PyObject * |
1858 | SWIG_FromCharPtr(const char* cptr) | |
1859 | { | |
1860 | if (cptr) { | |
1861 | size_t size = strlen(cptr); | |
1862 | if (size > INT_MAX) { | |
1863 | return SWIG_NewPointerObj((char*)(cptr), | |
1864 | SWIG_TypeQuery("char *"), 0); | |
1865 | } else { | |
1866 | if (size != 0) { | |
1867 | return PyString_FromStringAndSize(cptr, size); | |
1868 | } else { | |
1869 | return PyString_FromString(cptr); | |
1870 | } | |
c370783e | 1871 | } |
36ed4f51 RD |
1872 | } |
1873 | Py_INCREF(Py_None); | |
1874 | return Py_None; | |
1875 | } | |
1876 | ||
1877 | ||
1878 | SWIGINTERNSHORT int | |
1879 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
1880 | unsigned long max_value, | |
1881 | const char *errmsg) | |
1882 | { | |
1883 | if (value > max_value) { | |
1884 | if (errmsg) { | |
1885 | PyErr_Format(PyExc_OverflowError, | |
1886 | "value %lu is greater than '%s' minimum %lu", | |
1887 | value, errmsg, max_value); | |
d55e5bfc | 1888 | } |
c370783e | 1889 | return 0; |
36ed4f51 RD |
1890 | } |
1891 | return 1; | |
1892 | } | |
1893 | ||
1894 | ||
1895 | #if UINT_MAX != ULONG_MAX | |
1896 | SWIGINTERN int | |
1897 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
1898 | { | |
1899 | const char* errmsg = val ? "unsigned int" : (char*)0; | |
1900 | unsigned long v; | |
1901 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1902 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
1903 | if (val) *val = (unsigned int)(v); | |
1904 | return 1; | |
1905 | } | |
1906 | } else { | |
1907 | PyErr_Clear(); | |
1908 | } | |
1909 | if (val) { | |
1910 | SWIG_type_error(errmsg, obj); | |
1911 | } | |
1912 | return 0; | |
1913 | } | |
1914 | #else | |
1915 | SWIGINTERNSHORT unsigned int | |
1916 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
1917 | { | |
1918 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
d55e5bfc | 1919 | } |
36ed4f51 | 1920 | #endif |
d55e5bfc RD |
1921 | |
1922 | ||
36ed4f51 RD |
1923 | SWIGINTERNSHORT unsigned int |
1924 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 1925 | { |
36ed4f51 RD |
1926 | unsigned int v; |
1927 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
c370783e | 1928 | /* |
36ed4f51 | 1929 | this is needed to make valgrind/purify happier. |
c370783e | 1930 | */ |
36ed4f51 | 1931 | memset((void*)&v, 0, sizeof(unsigned int)); |
d55e5bfc | 1932 | } |
c370783e RD |
1933 | return v; |
1934 | } | |
1935 | ||
1936 | ||
36ed4f51 RD |
1937 | SWIGINTERNSHORT int |
1938 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
c370783e | 1939 | { |
36ed4f51 | 1940 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); |
d55e5bfc RD |
1941 | } |
1942 | ||
36ed4f51 RD |
1943 | static wxString Log_TimeStamp(){ |
1944 | wxString msg; | |
1945 | wxLog::TimeStamp(&msg); | |
1946 | return msg; | |
d55e5bfc | 1947 | } |
36ed4f51 RD |
1948 | static void wxLog_Destroy(wxLog *self){ delete self; } |
1949 | // Make somce wrappers that double any % signs so they are 'escaped' | |
1950 | void wxPyLogFatalError(const wxString& msg) | |
1951 | { | |
1952 | wxString m(msg); | |
1953 | m.Replace(wxT("%"), wxT("%%")); | |
1954 | wxLogFatalError(m); | |
1955 | } | |
1956 | ||
1957 | void wxPyLogError(const wxString& msg) | |
1958 | { | |
1959 | wxString m(msg); | |
1960 | m.Replace(wxT("%"), wxT("%%")); | |
1961 | wxLogError(m); | |
1962 | } | |
d55e5bfc | 1963 | |
36ed4f51 RD |
1964 | void wxPyLogWarning(const wxString& msg) |
1965 | { | |
1966 | wxString m(msg); | |
1967 | m.Replace(wxT("%"), wxT("%%")); | |
1968 | wxLogWarning(m); | |
1969 | } | |
d55e5bfc | 1970 | |
36ed4f51 RD |
1971 | void wxPyLogMessage(const wxString& msg) |
1972 | { | |
1973 | wxString m(msg); | |
1974 | m.Replace(wxT("%"), wxT("%%")); | |
1975 | wxLogMessage(m); | |
1976 | } | |
d55e5bfc | 1977 | |
36ed4f51 RD |
1978 | void wxPyLogInfo(const wxString& msg) |
1979 | { | |
1980 | wxString m(msg); | |
1981 | m.Replace(wxT("%"), wxT("%%")); | |
1982 | wxLogInfo(m); | |
1983 | } | |
d55e5bfc | 1984 | |
36ed4f51 RD |
1985 | void wxPyLogDebug(const wxString& msg) |
1986 | { | |
1987 | wxString m(msg); | |
1988 | m.Replace(wxT("%"), wxT("%%")); | |
1989 | wxLogDebug(m); | |
1990 | } | |
d55e5bfc | 1991 | |
36ed4f51 RD |
1992 | void wxPyLogVerbose(const wxString& msg) |
1993 | { | |
1994 | wxString m(msg); | |
1995 | m.Replace(wxT("%"), wxT("%%")); | |
1996 | wxLogVerbose(m); | |
1997 | } | |
d55e5bfc | 1998 | |
36ed4f51 RD |
1999 | void wxPyLogStatus(const wxString& msg) |
2000 | { | |
2001 | wxString m(msg); | |
2002 | m.Replace(wxT("%"), wxT("%%")); | |
2003 | wxLogStatus(m); | |
2004 | } | |
d55e5bfc | 2005 | |
36ed4f51 RD |
2006 | void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg) |
2007 | { | |
2008 | wxString m(msg); | |
2009 | m.Replace(wxT("%"), wxT("%%")); | |
2010 | wxLogStatus(pFrame, m); | |
2011 | } | |
d55e5bfc | 2012 | |
36ed4f51 RD |
2013 | void wxPyLogSysError(const wxString& msg) |
2014 | { | |
2015 | wxString m(msg); | |
2016 | m.Replace(wxT("%"), wxT("%%")); | |
2017 | wxLogSysError(m); | |
2018 | } | |
d55e5bfc | 2019 | |
36ed4f51 RD |
2020 | void wxPyLogGeneric(unsigned long level, const wxString& msg) |
2021 | { | |
2022 | wxString m(msg); | |
2023 | m.Replace(wxT("%"), wxT("%%")); | |
2024 | wxLogGeneric(level, m); | |
2025 | } | |
68e533f8 | 2026 | |
36ed4f51 RD |
2027 | void wxPyLogTrace(unsigned long mask, const wxString& msg) |
2028 | { | |
2029 | wxString m(msg); | |
2030 | m.Replace(wxT("%"), wxT("%%")); | |
2031 | wxLogTrace(mask, m); | |
d55e5bfc | 2032 | } |
36ed4f51 RD |
2033 | |
2034 | void wxPyLogTrace(const wxString& mask, const wxString& msg) | |
2035 | { | |
2036 | wxString m(msg); | |
2037 | m.Replace(wxT("%"), wxT("%%")); | |
2038 | wxLogTrace(mask, m); | |
d55e5bfc | 2039 | } |
36ed4f51 | 2040 | |
d55e5bfc RD |
2041 | |
2042 | ||
36ed4f51 RD |
2043 | // A wxLog class that can be derived from in wxPython |
2044 | class wxPyLog : public wxLog { | |
d55e5bfc | 2045 | public: |
36ed4f51 | 2046 | wxPyLog() : wxLog() {} |
d55e5bfc | 2047 | |
36ed4f51 RD |
2048 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { |
2049 | bool found; | |
2050 | bool blocked = wxPyBeginBlockThreads(); | |
2051 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
2052 | PyObject* s = wx2PyString(szString); | |
2053 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
2054 | Py_DECREF(s); | |
d55e5bfc | 2055 | } |
36ed4f51 RD |
2056 | wxPyEndBlockThreads(blocked); |
2057 | if (! found) | |
2058 | wxLog::DoLog(level, szString, t); | |
d55e5bfc | 2059 | } |
d55e5bfc | 2060 | |
36ed4f51 RD |
2061 | virtual void DoLogString(const wxChar *szString, time_t t) { |
2062 | bool found; | |
2063 | bool blocked = wxPyBeginBlockThreads(); | |
2064 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
2065 | PyObject* s = wx2PyString(szString); | |
2066 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
2067 | Py_DECREF(s); | |
d55e5bfc | 2068 | } |
36ed4f51 RD |
2069 | wxPyEndBlockThreads(blocked); |
2070 | if (! found) | |
2071 | wxLog::DoLogString(szString, t); | |
2072 | } | |
d55e5bfc RD |
2073 | |
2074 | PYPRIVATE; | |
2075 | }; | |
2076 | ||
d55e5bfc RD |
2077 | |
2078 | ||
36ed4f51 RD |
2079 | |
2080 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
d55e5bfc | 2081 | |
d55e5bfc | 2082 | |
36ed4f51 | 2083 | #include <wx/joystick.h> |
d55e5bfc | 2084 | |
d55e5bfc | 2085 | |
36ed4f51 RD |
2086 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
2087 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
2088 | class wxJoystick : public wxObject { | |
2089 | public: | |
2090 | wxJoystick(int joystick = wxJOYSTICK1) { | |
2091 | bool blocked = wxPyBeginBlockThreads(); | |
2092 | PyErr_SetString(PyExc_NotImplementedError, | |
2093 | "wxJoystick is not available on this platform."); | |
2094 | wxPyEndBlockThreads(blocked); | |
d55e5bfc | 2095 | } |
36ed4f51 RD |
2096 | wxPoint GetPosition() { return wxPoint(-1,-1); } |
2097 | int GetZPosition() { return -1; } | |
2098 | int GetButtonState() { return -1; } | |
2099 | int GetPOVPosition() { return -1; } | |
2100 | int GetPOVCTSPosition() { return -1; } | |
2101 | int GetRudderPosition() { return -1; } | |
2102 | int GetUPosition() { return -1; } | |
2103 | int GetVPosition() { return -1; } | |
2104 | int GetMovementThreshold() { return -1; } | |
2105 | void SetMovementThreshold(int threshold) {} | |
d55e5bfc | 2106 | |
36ed4f51 RD |
2107 | bool IsOk(void) { return false; } |
2108 | int GetNumberJoysticks() { return -1; } | |
2109 | int GetManufacturerId() { return -1; } | |
2110 | int GetProductId() { return -1; } | |
2111 | wxString GetProductName() { return wxEmptyString; } | |
2112 | int GetXMin() { return -1; } | |
2113 | int GetYMin() { return -1; } | |
2114 | int GetZMin() { return -1; } | |
2115 | int GetXMax() { return -1; } | |
2116 | int GetYMax() { return -1; } | |
2117 | int GetZMax() { return -1; } | |
2118 | int GetNumberButtons() { return -1; } | |
2119 | int GetNumberAxes() { return -1; } | |
2120 | int GetMaxButtons() { return -1; } | |
2121 | int GetMaxAxes() { return -1; } | |
2122 | int GetPollingMin() { return -1; } | |
2123 | int GetPollingMax() { return -1; } | |
2124 | int GetRudderMin() { return -1; } | |
2125 | int GetRudderMax() { return -1; } | |
2126 | int GetUMin() { return -1; } | |
2127 | int GetUMax() { return -1; } | |
2128 | int GetVMin() { return -1; } | |
2129 | int GetVMax() { return -1; } | |
d55e5bfc | 2130 | |
36ed4f51 RD |
2131 | bool HasRudder() { return false; } |
2132 | bool HasZ() { return false; } | |
2133 | bool HasU() { return false; } | |
2134 | bool HasV() { return false; } | |
2135 | bool HasPOV() { return false; } | |
2136 | bool HasPOV4Dir() { return false; } | |
2137 | bool HasPOVCTS() { return false; } | |
d55e5bfc | 2138 | |
36ed4f51 RD |
2139 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; } |
2140 | bool ReleaseCapture() { return false; } | |
2141 | }; | |
2142 | #endif | |
d55e5bfc | 2143 | |
6923d0a9 | 2144 | |
36ed4f51 | 2145 | #include <wx/sound.h> |
6923d0a9 | 2146 | |
6923d0a9 | 2147 | |
36ed4f51 RD |
2148 | #if !wxUSE_SOUND |
2149 | // A C++ stub class for wxWave for platforms that don't have it. | |
2150 | class wxSound : public wxObject | |
6923d0a9 RD |
2151 | { |
2152 | public: | |
36ed4f51 RD |
2153 | wxSound() { |
2154 | bool blocked = wxPyBeginBlockThreads(); | |
2155 | PyErr_SetString(PyExc_NotImplementedError, | |
2156 | "wxSound is not available on this platform."); | |
2157 | wxPyEndBlockThreads(blocked); | |
2158 | } | |
2159 | wxSound(const wxString&/*, bool*/) { | |
2160 | bool blocked = wxPyBeginBlockThreads(); | |
2161 | PyErr_SetString(PyExc_NotImplementedError, | |
2162 | "wxSound is not available on this platform."); | |
2163 | wxPyEndBlockThreads(blocked); | |
2164 | } | |
2165 | wxSound(int, const wxByte*) { | |
2166 | bool blocked = wxPyBeginBlockThreads(); | |
2167 | PyErr_SetString(PyExc_NotImplementedError, | |
2168 | "wxSound is not available on this platform."); | |
2169 | wxPyEndBlockThreads(blocked); | |
2170 | } | |
6923d0a9 | 2171 | |
36ed4f51 | 2172 | ~wxSound() {}; |
6923d0a9 | 2173 | |
36ed4f51 RD |
2174 | bool Create(const wxString&/*, bool*/) { return false; } |
2175 | bool Create(int, const wxByte*) { return false; }; | |
2176 | bool IsOk() { return false; }; | |
2177 | bool Play(unsigned) const { return false; } | |
2178 | static bool Play(const wxString&, unsigned) { return false; } | |
2179 | static void Stop() {} | |
6923d0a9 | 2180 | }; |
36ed4f51 | 2181 | |
6923d0a9 RD |
2182 | #endif |
2183 | ||
36ed4f51 RD |
2184 | static wxSound *new_wxSound(wxString const &fileName=wxPyEmptyString){ |
2185 | if (fileName.Length() == 0) | |
2186 | return new wxSound; | |
2187 | else | |
2188 | return new wxSound(fileName); | |
2189 | } | |
2190 | static wxSound *new_wxSound(PyObject *data){ | |
2191 | unsigned char* buffer; int size; | |
2192 | wxSound *sound = NULL; | |
2193 | ||
d55e5bfc | 2194 | bool blocked = wxPyBeginBlockThreads(); |
36ed4f51 RD |
2195 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
2196 | goto done; | |
2197 | sound = new wxSound(size, buffer); | |
2198 | done: | |
d55e5bfc | 2199 | wxPyEndBlockThreads(blocked); |
36ed4f51 RD |
2200 | return sound; |
2201 | } | |
2202 | static bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
2203 | #ifndef __WXMAC__ | |
2204 | unsigned char* buffer; | |
2205 | int size; | |
2206 | bool rv = false; | |
2207 | ||
2208 | bool blocked = wxPyBeginBlockThreads(); | |
2209 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
2210 | goto done; | |
2211 | rv = self->Create(size, buffer); | |
2212 | done: | |
2213 | wxPyEndBlockThreads(blocked); | |
2214 | return rv; | |
2215 | #else | |
2216 | bool blocked = wxPyBeginBlockThreads(); | |
2217 | PyErr_SetString(PyExc_NotImplementedError, | |
2218 | "Create from data is not available on this platform."); | |
2219 | wxPyEndBlockThreads(blocked); | |
2220 | return false; | |
2221 | #endif | |
d55e5bfc | 2222 | } |
070c48b4 | 2223 | |
36ed4f51 | 2224 | #include <wx/mimetype.h> |
070c48b4 | 2225 | |
36ed4f51 RD |
2226 | static PyObject *wxFileType_GetMimeType(wxFileType *self){ |
2227 | wxString str; | |
2228 | if (self->GetMimeType(&str)) | |
2229 | return wx2PyString(str); | |
2230 | else | |
2231 | RETURN_NONE(); | |
8fb0e70a | 2232 | } |
36ed4f51 RD |
2233 | static PyObject *wxFileType_GetMimeTypes(wxFileType *self){ |
2234 | wxArrayString arr; | |
2235 | if (self->GetMimeTypes(arr)) | |
2236 | return wxArrayString2PyList_helper(arr); | |
2237 | else | |
2238 | RETURN_NONE(); | |
2239 | } | |
2240 | static PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
2241 | wxArrayString arr; | |
2242 | if (self->GetExtensions(arr)) | |
2243 | return wxArrayString2PyList_helper(arr); | |
2244 | else | |
2245 | RETURN_NONE(); | |
2246 | } | |
2247 | static wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
2248 | wxIconLocation loc; | |
2249 | if (self->GetIcon(&loc)) | |
2250 | return new wxIcon(loc); | |
2251 | else | |
2252 | return NULL; | |
2253 | } | |
2254 | static PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
2255 | wxIconLocation loc; | |
2256 | if (self->GetIcon(&loc)) { | |
2257 | wxString iconFile = loc.GetFileName(); | |
2258 | int iconIndex = -1; | |
d55e5bfc RD |
2259 | |
2260 | ||
d55e5bfc | 2261 | |
36ed4f51 RD |
2262 | // Make a tuple and put the values in it |
2263 | bool blocked = wxPyBeginBlockThreads(); | |
2264 | PyObject* tuple = PyTuple_New(3); | |
2265 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
2266 | wxT("wxIcon"), true)); | |
2267 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); | |
2268 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
2269 | wxPyEndBlockThreads(blocked); | |
2270 | return tuple; | |
2271 | } | |
2272 | else | |
2273 | RETURN_NONE(); | |
2274 | } | |
2275 | static PyObject *wxFileType_GetDescription(wxFileType *self){ | |
2276 | wxString str; | |
2277 | if (self->GetDescription(&str)) | |
2278 | return wx2PyString(str); | |
2279 | else | |
2280 | RETURN_NONE(); | |
2281 | } | |
2282 | static PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2283 | wxString str; | |
2284 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
2285 | return wx2PyString(str); | |
2286 | else | |
2287 | RETURN_NONE(); | |
2288 | } | |
2289 | static PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2290 | wxString str; | |
2291 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
2292 | return wx2PyString(str); | |
2293 | else | |
2294 | RETURN_NONE(); | |
2295 | } | |
2296 | static PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2297 | wxArrayString verbs; | |
2298 | wxArrayString commands; | |
2299 | if (self->GetAllCommands(&verbs, &commands, | |
2300 | wxFileType::MessageParameters(filename, mimetype))) { | |
2301 | bool blocked = wxPyBeginBlockThreads(); | |
2302 | PyObject* tuple = PyTuple_New(2); | |
2303 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
2304 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
2305 | wxPyEndBlockThreads(blocked); | |
2306 | return tuple; | |
2307 | } | |
2308 | else | |
2309 | RETURN_NONE(); | |
2310 | } | |
2311 | static wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2312 | return wxFileType::ExpandCommand(command, | |
2313 | wxFileType::MessageParameters(filename, mimetype)); | |
2314 | } | |
2315 | static PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
2316 | wxArrayString arr; | |
2317 | self->EnumAllFileTypes(arr); | |
2318 | return wxArrayString2PyList_helper(arr); | |
2319 | } | |
d55e5bfc | 2320 | |
36ed4f51 | 2321 | #include <wx/artprov.h> |
d55e5bfc | 2322 | |
36ed4f51 RD |
2323 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); |
2324 | static const wxString wxPyART_MENU(wxART_MENU); | |
2325 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
2326 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
2327 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
2328 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
2329 | static const wxString wxPyART_BUTTON(wxART_BUTTON); | |
2330 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
2331 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
2332 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
2333 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
2334 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
2335 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
2336 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
2337 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
2338 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
2339 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
2340 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
2341 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
2342 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
2343 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
2344 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
68350608 RD |
2345 | static const wxString wxPyART_FILE_SAVE(wxART_FILE_SAVE); |
2346 | static const wxString wxPyART_FILE_SAVE_AS(wxART_FILE_SAVE_AS); | |
36ed4f51 RD |
2347 | static const wxString wxPyART_PRINT(wxART_PRINT); |
2348 | static const wxString wxPyART_HELP(wxART_HELP); | |
2349 | static const wxString wxPyART_TIP(wxART_TIP); | |
2350 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
2351 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
2352 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
2353 | static const wxString wxPyART_HARDDISK(wxART_HARDDISK); | |
2354 | static const wxString wxPyART_FLOPPY(wxART_FLOPPY); | |
2355 | static const wxString wxPyART_CDROM(wxART_CDROM); | |
2356 | static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE); | |
2357 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
2358 | static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN); | |
2359 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
2360 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
2361 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
2362 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
2363 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
2364 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
2365 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
2366 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
2367 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
2368 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
68350608 RD |
2369 | static const wxString wxPyART_COPY(wxART_COPY); |
2370 | static const wxString wxPyART_CUT(wxART_CUT); | |
2371 | static const wxString wxPyART_PASTE(wxART_PASTE); | |
2372 | static const wxString wxPyART_DELETE(wxART_DELETE); | |
2373 | static const wxString wxPyART_UNDO(wxART_UNDO); | |
2374 | static const wxString wxPyART_REDO(wxART_REDO); | |
2375 | static const wxString wxPyART_QUIT(wxART_QUIT); | |
2376 | static const wxString wxPyART_FIND(wxART_FIND); | |
2377 | static const wxString wxPyART_FIND_AND_REPLACE(wxART_FIND_AND_REPLACE); | |
36ed4f51 RD |
2378 | // Python aware wxArtProvider |
2379 | class wxPyArtProvider : public wxArtProvider { | |
2380 | public: | |
d55e5bfc | 2381 | |
36ed4f51 RD |
2382 | virtual wxBitmap CreateBitmap(const wxArtID& id, |
2383 | const wxArtClient& client, | |
2384 | const wxSize& size) { | |
2385 | wxBitmap rval = wxNullBitmap; | |
2386 | bool blocked = wxPyBeginBlockThreads(); | |
2387 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
2388 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
2389 | PyObject* ro; | |
2390 | wxBitmap* ptr; | |
2391 | PyObject* s1, *s2; | |
2392 | s1 = wx2PyString(id); | |
2393 | s2 = wx2PyString(client); | |
2394 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
2395 | Py_DECREF(so); | |
2396 | Py_DECREF(s1); | |
2397 | Py_DECREF(s2); | |
2398 | if (ro) { | |
2399 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
2400 | rval = *ptr; | |
2401 | Py_DECREF(ro); | |
2402 | } | |
2403 | } | |
2404 | wxPyEndBlockThreads(blocked); | |
2405 | return rval; | |
d55e5bfc | 2406 | } |
d55e5bfc | 2407 | |
36ed4f51 RD |
2408 | PYPRIVATE; |
2409 | }; | |
d55e5bfc | 2410 | |
36ed4f51 | 2411 | static void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d55e5bfc RD |
2412 | |
2413 | ||
36ed4f51 RD |
2414 | |
2415 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
2416 | PyObject* ret = PyTuple_New(3); | |
2417 | if (ret) { | |
2418 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
2419 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
2420 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
2421 | } | |
2422 | return ret; | |
d55e5bfc | 2423 | } |
d55e5bfc | 2424 | |
36ed4f51 RD |
2425 | static PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ |
2426 | bool cont; | |
2427 | long index = 0; | |
2428 | wxString value; | |
d55e5bfc | 2429 | |
36ed4f51 RD |
2430 | cont = self->GetFirstGroup(value, index); |
2431 | return __EnumerationHelper(cont, value, index); | |
2432 | } | |
2433 | static PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
2434 | bool cont; | |
2435 | wxString value; | |
629e65c2 | 2436 | |
36ed4f51 RD |
2437 | cont = self->GetNextGroup(value, index); |
2438 | return __EnumerationHelper(cont, value, index); | |
2439 | } | |
2440 | static PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
2441 | bool cont; | |
2442 | long index = 0; | |
2443 | wxString value; | |
629e65c2 | 2444 | |
36ed4f51 RD |
2445 | cont = self->GetFirstEntry(value, index); |
2446 | return __EnumerationHelper(cont, value, index); | |
2447 | } | |
2448 | static PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
2449 | bool cont; | |
2450 | wxString value; | |
629e65c2 | 2451 | |
36ed4f51 RD |
2452 | cont = self->GetNextEntry(value, index); |
2453 | return __EnumerationHelper(cont, value, index); | |
2454 | } | |
2455 | static long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal=0){ | |
2456 | long rv; | |
2457 | self->Read(key, &rv, defaultVal); | |
2458 | return rv; | |
2459 | } | |
629e65c2 | 2460 | |
36ed4f51 RD |
2461 | SWIGINTERN int |
2462 | SWIG_AsVal_double(PyObject *obj, double* val) | |
2463 | { | |
2464 | if (PyNumber_Check(obj)) { | |
2465 | if (val) *val = PyFloat_AsDouble(obj); | |
2466 | return 1; | |
d55e5bfc | 2467 | } |
36ed4f51 RD |
2468 | else { |
2469 | SWIG_type_error("number", obj); | |
2470 | } | |
2471 | return 0; | |
d55e5bfc RD |
2472 | } |
2473 | ||
2474 | ||
36ed4f51 RD |
2475 | SWIGINTERNSHORT double |
2476 | SWIG_As_double(PyObject* obj) | |
2477 | { | |
2478 | double v; | |
2479 | if (!SWIG_AsVal_double(obj, &v)) { | |
2480 | /* | |
2481 | this is needed to make valgrind/purify happier. | |
2482 | */ | |
2483 | memset((void*)&v, 0, sizeof(double)); | |
2484 | } | |
2485 | return v; | |
d55e5bfc RD |
2486 | } |
2487 | ||
36ed4f51 RD |
2488 | |
2489 | SWIGINTERNSHORT int | |
2490 | SWIG_Check_double(PyObject* obj) | |
2491 | { | |
2492 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
2493 | } |
2494 | ||
36ed4f51 RD |
2495 | static double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal=0.0){ |
2496 | double rv; | |
2497 | self->Read(key, &rv, defaultVal); | |
2498 | return rv; | |
2499 | } | |
d55e5bfc | 2500 | |
36ed4f51 RD |
2501 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
2502 | #define SWIG_From_double PyFloat_FromDouble | |
2503 | /*@@*/ | |
d55e5bfc | 2504 | |
36ed4f51 RD |
2505 | static bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal=false){ |
2506 | bool rv; | |
2507 | self->Read(key, &rv, defaultVal); | |
2508 | return rv; | |
2509 | } | |
d55e5bfc | 2510 | |
36ed4f51 | 2511 | #include <wx/datetime.h> |
d55e5bfc | 2512 | |
fef4c27a RD |
2513 | static const wxString wxPyDefaultDateTimeFormat(wxDefaultDateTimeFormat); |
2514 | static const wxString wxPyDefaultTimeSpanFormat(wxDefaultTimeSpanFormat); | |
d55e5bfc | 2515 | |
36ed4f51 | 2516 | #define LOCAL_TZ wxDateTime::Local |
d55e5bfc | 2517 | |
7fbf8399 RD |
2518 | static PyObject *DateTime_GetAmPmStrings(){ |
2519 | wxString am; | |
2520 | wxString pm; | |
2521 | wxDateTime::GetAmPmStrings(&am, &pm); | |
2522 | bool blocked = wxPyBeginBlockThreads(); | |
2523 | PyObject* tup = PyTuple_New(2); | |
2524 | PyTuple_SET_ITEM(tup, 0, wx2PyString(am)); | |
2525 | PyTuple_SET_ITEM(tup, 1, wx2PyString(pm)); | |
2526 | wxPyEndBlockThreads(blocked); | |
2527 | return tup; | |
2528 | } | |
d55e5bfc | 2529 | |
36ed4f51 RD |
2530 | #if UINT_MAX < LONG_MAX |
2531 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
2532 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
2533 | /*@@*/ | |
d55e5bfc | 2534 | #else |
36ed4f51 RD |
2535 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
2536 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
2537 | /*@@*/ | |
d55e5bfc | 2538 | #endif |
d55e5bfc | 2539 | |
36ed4f51 RD |
2540 | static wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } |
2541 | static wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
2542 | static wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
2543 | static wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
2544 | static wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
2545 | static bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
2546 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
2547 | return (*self < *other); | |
2548 | } | |
2549 | static bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
2550 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
2551 | return (*self <= *other); | |
2552 | } | |
2553 | static bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
2554 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
2555 | return (*self > *other); | |
2556 | } | |
2557 | static bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
2558 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
2559 | return (*self >= *other); | |
2560 | } | |
2561 | static bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
2562 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
2563 | return (*self == *other); | |
2564 | } | |
2565 | static bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
2566 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
2567 | return (*self != *other); | |
2568 | } | |
2569 | static int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
2570 | const wxChar* rv; | |
2571 | const wxChar* _date = date; | |
2572 | rv = self->ParseRfc822Date(_date); | |
2573 | if (rv == NULL) return -1; | |
2574 | return rv - _date; | |
2575 | } | |
fef4c27a | 2576 | static int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format=wxPyDefaultDateTimeFormat,wxDateTime const &dateDef=wxDefaultDateTime){ |
36ed4f51 RD |
2577 | const wxChar* rv; |
2578 | const wxChar* _date = date; | |
2579 | rv = self->ParseFormat(_date, format, dateDef); | |
2580 | if (rv == NULL) return -1; | |
2581 | return rv - _date; | |
2582 | } | |
2583 | static int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
2584 | const wxChar* rv; | |
2585 | const wxChar* _datetime = datetime; | |
2586 | rv = self->ParseDateTime(_datetime); | |
2587 | if (rv == NULL) return -1; | |
2588 | return rv - _datetime; | |
2589 | } | |
2590 | static int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
2591 | const wxChar* rv; | |
2592 | const wxChar* _date = date; | |
2593 | rv = self->ParseDate(_date); | |
2594 | if (rv == NULL) return -1; | |
2595 | return rv - _date; | |
2596 | } | |
2597 | static int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
2598 | const wxChar* rv; | |
2599 | const wxChar* _time = time; | |
2600 | rv = self->ParseTime(_time); | |
2601 | if (rv == NULL) return -1; | |
2602 | return rv - _time; | |
2603 | } | |
2604 | static wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
2605 | static wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
2606 | static wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
2607 | static wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
2608 | static bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; } | |
2609 | static bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; } | |
2610 | static bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; } | |
2611 | static bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; } | |
2612 | static bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; } | |
2613 | static bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; } | |
2614 | static wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
2615 | static wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
2616 | static wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
2617 | static wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
2618 | static bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; } | |
2619 | static bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc | 2620 | |
36ed4f51 | 2621 | #include <wx/dataobj.h> |
d55e5bfc | 2622 | |
36ed4f51 RD |
2623 | static PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir=wxDataObject::Get){ |
2624 | size_t count = self->GetFormatCount(dir); | |
2625 | wxDataFormat* formats = new wxDataFormat[count]; | |
2626 | self->GetAllFormats(formats, dir); | |
d55e5bfc | 2627 | |
36ed4f51 RD |
2628 | bool blocked = wxPyBeginBlockThreads(); |
2629 | PyObject* list = PyList_New(count); | |
2630 | for (size_t i=0; i<count; i++) { | |
2631 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
2632 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true); | |
2633 | PyList_Append(list, obj); | |
2634 | Py_DECREF(obj); | |
2635 | } | |
2636 | wxPyEndBlockThreads(blocked); | |
2637 | delete [] formats; | |
2638 | return list; | |
2639 | } | |
2640 | static PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
2641 | PyObject* rval = NULL; | |
2642 | size_t size = self->GetDataSize(format); | |
2643 | bool blocked = wxPyBeginBlockThreads(); | |
2644 | if (size) { | |
2645 | char* buf = new char[size]; | |
2646 | if (self->GetDataHere(format, buf)) | |
2647 | rval = PyString_FromStringAndSize(buf, size); | |
2648 | delete [] buf; | |
2649 | } | |
2650 | if (! rval) { | |
2651 | rval = Py_None; | |
2652 | Py_INCREF(rval); | |
2653 | } | |
2654 | wxPyEndBlockThreads(blocked); | |
2655 | return rval; | |
2656 | } | |
2657 | static bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
2658 | bool rval; | |
2659 | bool blocked = wxPyBeginBlockThreads(); | |
2660 | if (PyString_Check(data)) { | |
2661 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
2662 | } | |
2663 | else { | |
2664 | // raise a TypeError if not a string | |
2665 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
2666 | rval = false; | |
2667 | } | |
2668 | wxPyEndBlockThreads(blocked); | |
2669 | return rval; | |
2670 | } | |
2671 | static PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
2672 | PyObject* rval = NULL; | |
2673 | size_t size = self->GetDataSize(); | |
2674 | bool blocked = wxPyBeginBlockThreads(); | |
2675 | if (size) { | |
2676 | char* buf = new char[size]; | |
2677 | if (self->GetDataHere(buf)) | |
2678 | rval = PyString_FromStringAndSize(buf, size); | |
2679 | delete [] buf; | |
2680 | } | |
2681 | if (! rval) { | |
2682 | rval = Py_None; | |
2683 | Py_INCREF(rval); | |
2684 | } | |
2685 | wxPyEndBlockThreads(blocked); | |
2686 | return rval; | |
2687 | } | |
2688 | static bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
2689 | bool rval; | |
2690 | bool blocked = wxPyBeginBlockThreads(); | |
2691 | if (PyString_Check(data)) { | |
2692 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
2693 | } | |
2694 | else { | |
2695 | // raise a TypeError if not a string | |
2696 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
2697 | rval = false; | |
2698 | } | |
2699 | wxPyEndBlockThreads(blocked); | |
2700 | return rval; | |
2701 | } | |
2702 | // Create a new class for wxPython to use | |
2703 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
2704 | public: | |
2705 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
2706 | : wxDataObjectSimple(format) {} | |
d55e5bfc | 2707 | |
36ed4f51 RD |
2708 | DEC_PYCALLBACK_SIZET__const(GetDataSize); |
2709 | bool GetDataHere(void *buf) const; | |
2710 | bool SetData(size_t len, const void *buf) const; | |
2711 | PYPRIVATE; | |
2712 | }; | |
d55e5bfc | 2713 | |
36ed4f51 | 2714 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); |
d55e5bfc | 2715 | |
36ed4f51 RD |
2716 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { |
2717 | // We need to get the data for this object and write it to buf. I think | |
2718 | // the best way to do this for wxPython is to have the Python method | |
2719 | // return either a string or None and then act appropriately with the | |
2720 | // C++ version. | |
d55e5bfc | 2721 | |
36ed4f51 RD |
2722 | bool rval = false; |
2723 | bool blocked = wxPyBeginBlockThreads(); | |
2724 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
2725 | PyObject* ro; | |
2726 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
2727 | if (ro) { | |
2728 | rval = (ro != Py_None && PyString_Check(ro)); | |
2729 | if (rval) | |
2730 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
2731 | Py_DECREF(ro); | |
2732 | } | |
d55e5bfc | 2733 | } |
36ed4f51 RD |
2734 | wxPyEndBlockThreads(blocked); |
2735 | return rval; | |
d55e5bfc RD |
2736 | } |
2737 | ||
36ed4f51 RD |
2738 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ |
2739 | // For this one we simply need to make a string from buf and len | |
2740 | // and send it to the Python method. | |
2741 | bool rval = false; | |
2742 | bool blocked = wxPyBeginBlockThreads(); | |
2743 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
2744 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
2745 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
2746 | Py_DECREF(data); | |
d55e5bfc | 2747 | } |
36ed4f51 RD |
2748 | wxPyEndBlockThreads(blocked); |
2749 | return rval; | |
d55e5bfc RD |
2750 | } |
2751 | ||
36ed4f51 RD |
2752 | // Create a new class for wxPython to use |
2753 | class wxPyTextDataObject : public wxTextDataObject { | |
2754 | public: | |
2755 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
2756 | : wxTextDataObject(text) {} | |
2757 | ||
2758 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
2759 | DEC_PYCALLBACK_STRING__const(GetText); | |
2760 | DEC_PYCALLBACK__STRING(SetText); | |
2761 | PYPRIVATE; | |
2762 | }; | |
2763 | ||
2764 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
2765 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
2766 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
2767 | ||
2768 | ||
2769 | // Create a new class for wxPython to use | |
2770 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
2771 | public: | |
2772 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
2773 | : wxBitmapDataObject(bitmap) {} | |
2774 | ||
2775 | wxBitmap GetBitmap() const; | |
2776 | void SetBitmap(const wxBitmap& bitmap); | |
2777 | PYPRIVATE; | |
2778 | }; | |
2779 | ||
2780 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
2781 | wxBitmap* rval = &wxNullBitmap; | |
2782 | bool blocked = wxPyBeginBlockThreads(); | |
2783 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
2784 | PyObject* ro; | |
2785 | wxBitmap* ptr; | |
2786 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
2787 | if (ro) { | |
2788 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
2789 | rval = ptr; | |
2790 | Py_DECREF(ro); | |
2791 | } | |
2792 | } | |
2793 | wxPyEndBlockThreads(blocked); | |
2794 | return *rval; | |
2795 | } | |
2796 | ||
2797 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
2798 | bool blocked = wxPyBeginBlockThreads(); | |
2799 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
2800 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false); | |
2801 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); | |
2802 | Py_DECREF(bo); | |
2803 | } | |
2804 | wxPyEndBlockThreads(blocked); | |
2805 | } | |
2806 | ||
fef4c27a RD |
2807 | static wxCustomDataObject *new_wxCustomDataObject__SWIG_1(wxString const &formatName){ |
2808 | return new wxCustomDataObject(wxDataFormat(formatName)); | |
2809 | } | |
36ed4f51 RD |
2810 | static bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
2811 | bool rval; | |
2812 | bool blocked = wxPyBeginBlockThreads(); | |
2813 | if (PyString_Check(data)) { | |
2814 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
2815 | } | |
2816 | else { | |
2817 | // raise a TypeError if not a string | |
2818 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
2819 | rval = false; | |
2820 | } | |
2821 | wxPyEndBlockThreads(blocked); | |
2822 | return rval; | |
2823 | } | |
2824 | static PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
2825 | PyObject* obj; | |
2826 | bool blocked = wxPyBeginBlockThreads(); | |
2827 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
2828 | wxPyEndBlockThreads(blocked); | |
2829 | return obj; | |
2830 | } | |
2831 | ||
2832 | #include <wx/metafile.h> | |
2833 | ||
2834 | ||
2835 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
2836 | ||
2837 | ||
2838 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
2839 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
2840 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
2841 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
2842 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
2843 | ||
2844 | ||
2845 | class wxPyTextDropTarget : public wxTextDropTarget { | |
2846 | public: | |
2847 | wxPyTextDropTarget() {} | |
2848 | ||
2849 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
2850 | ||
2851 | DEC_PYCALLBACK__(OnLeave); | |
2852 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
2853 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
2854 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
2855 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
2856 | ||
2857 | PYPRIVATE; | |
2858 | }; | |
2859 | ||
2860 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
2861 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
2862 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
2863 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
2864 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
2865 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
2866 | ||
2867 | ||
2868 | ||
2869 | class wxPyFileDropTarget : public wxFileDropTarget { | |
2870 | public: | |
2871 | wxPyFileDropTarget() {} | |
2872 | ||
2873 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
2874 | ||
2875 | DEC_PYCALLBACK__(OnLeave); | |
2876 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
2877 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
2878 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
2879 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
2880 | ||
2881 | PYPRIVATE; | |
2882 | }; | |
2883 | ||
2884 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
2885 | const wxArrayString& filenames) { | |
2886 | bool rval = false; | |
2887 | bool blocked = wxPyBeginBlockThreads(); | |
2888 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
2889 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
2890 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
2891 | Py_DECREF(list); | |
2892 | } | |
2893 | wxPyEndBlockThreads(blocked); | |
2894 | return rval; | |
2895 | } | |
2896 | ||
2897 | ||
2898 | ||
2899 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
2900 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
2901 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
2902 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
2903 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
2904 | ||
2905 | ||
2906 | ||
2907 | ||
2908 | static bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
2909 | ||
2910 | #include <wx/display.h> | |
2911 | ||
2912 | static bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; } | |
2913 | static bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; } | |
2914 | ||
2915 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
2916 | #if !wxUSE_DISPLAY | |
2917 | #include <wx/dynarray.h> | |
2918 | #include <wx/vidmode.h> | |
2919 | ||
2920 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); | |
2921 | #include "wx/arrimpl.cpp" | |
2922 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
2923 | const wxVideoMode wxDefaultVideoMode; | |
2924 | ||
2925 | class wxDisplay | |
2926 | { | |
2927 | public: | |
2928 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
2929 | ~wxDisplay() {} | |
2930 | ||
2931 | static size_t GetCount() | |
2932 | { wxPyRaiseNotImplemented(); return 0; } | |
2933 | ||
2934 | static int GetFromPoint(const wxPoint& pt) | |
2935 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
2936 | static int GetFromWindow(wxWindow *window) | |
2937 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
2938 | ||
2939 | virtual bool IsOk() const { return false; } | |
2940 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
2941 | virtual wxString GetName() const { return wxEmptyString; } | |
2942 | bool IsPrimary() const { return false; } | |
2943 | ||
2944 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
2945 | { wxArrayVideoModes a; return a; } | |
2946 | ||
2947 | virtual wxVideoMode GetCurrentMode() const | |
2948 | { return wxDefaultVideoMode; } | |
2949 | ||
2950 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
2951 | { return false; } | |
2952 | ||
2953 | void ResetMode() {} | |
2954 | }; | |
2955 | #endif | |
2956 | ||
2957 | static int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
2958 | static PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode=wxDefaultVideoMode){ | |
2959 | PyObject* pyList = NULL; | |
2960 | wxArrayVideoModes arr = self->GetModes(mode); | |
2961 | bool blocked = wxPyBeginBlockThreads(); | |
2962 | pyList = PyList_New(0); | |
2963 | for (int i=0; i < arr.GetCount(); i++) { | |
2964 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
2965 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
2966 | PyList_Append(pyList, pyObj); | |
2967 | Py_DECREF(pyObj); | |
2968 | } | |
2969 | wxPyEndBlockThreads(blocked); | |
2970 | return pyList; | |
2971 | } | |
2972 | ||
2973 | #include <wx/stdpaths.h> | |
2974 | ||
2975 | static wxStandardPaths *StandardPaths_Get(){ | |
2976 | return (wxStandardPaths*) &wxStandardPaths::Get(); | |
2977 | } | |
2978 | static void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){} | |
2979 | static wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; } | |
2980 | #ifdef __cplusplus | |
2981 | extern "C" { | |
2982 | #endif | |
2983 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
d55e5bfc | 2984 | PyObject *resultobj; |
36ed4f51 RD |
2985 | wxSystemColour arg1 ; |
2986 | wxColour result; | |
d55e5bfc RD |
2987 | PyObject * obj0 = 0 ; |
2988 | char *kwnames[] = { | |
36ed4f51 | 2989 | (char *) "index", NULL |
d55e5bfc RD |
2990 | }; |
2991 | ||
36ed4f51 RD |
2992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
2993 | { | |
2994 | arg1 = (wxSystemColour)(SWIG_As_int(obj0)); | |
2995 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2996 | } | |
d55e5bfc | 2997 | { |
36ed4f51 | 2998 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 2999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 3000 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); |
d55e5bfc RD |
3001 | |
3002 | wxPyEndAllowThreads(__tstate); | |
3003 | if (PyErr_Occurred()) SWIG_fail; | |
3004 | } | |
36ed4f51 RD |
3005 | { |
3006 | wxColour * resultptr; | |
3007 | resultptr = new wxColour((wxColour &)(result)); | |
3008 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
3009 | } | |
d55e5bfc RD |
3010 | return resultobj; |
3011 | fail: | |
3012 | return NULL; | |
3013 | } | |
3014 | ||
3015 | ||
36ed4f51 | 3016 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3017 | PyObject *resultobj; |
36ed4f51 RD |
3018 | wxSystemFont arg1 ; |
3019 | wxFont result; | |
3020 | PyObject * obj0 = 0 ; | |
d55e5bfc | 3021 | char *kwnames[] = { |
36ed4f51 | 3022 | (char *) "index", NULL |
d55e5bfc RD |
3023 | }; |
3024 | ||
36ed4f51 | 3025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
d55e5bfc | 3026 | { |
36ed4f51 RD |
3027 | arg1 = (wxSystemFont)(SWIG_As_int(obj0)); |
3028 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3029 | } | |
3030 | { | |
3031 | if (!wxPyCheckForApp()) SWIG_fail; | |
d55e5bfc | 3032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 3033 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); |
d55e5bfc RD |
3034 | |
3035 | wxPyEndAllowThreads(__tstate); | |
3036 | if (PyErr_Occurred()) SWIG_fail; | |
3037 | } | |
36ed4f51 RD |
3038 | { |
3039 | wxFont * resultptr; | |
3040 | resultptr = new wxFont((wxFont &)(result)); | |
3041 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
3042 | } | |
d55e5bfc RD |
3043 | return resultobj; |
3044 | fail: | |
3045 | return NULL; | |
3046 | } | |
3047 | ||
3048 | ||
36ed4f51 | 3049 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) { |
01ac03ba | 3050 | PyObject *resultobj; |
36ed4f51 | 3051 | wxSystemMetric arg1 ; |
f491ed97 | 3052 | wxWindow *arg2 = (wxWindow *) NULL ; |
36ed4f51 | 3053 | int result; |
01ac03ba | 3054 | PyObject * obj0 = 0 ; |
f491ed97 | 3055 | PyObject * obj1 = 0 ; |
01ac03ba | 3056 | char *kwnames[] = { |
f491ed97 | 3057 | (char *) "index",(char *) "win", NULL |
01ac03ba RD |
3058 | }; |
3059 | ||
f491ed97 | 3060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SystemSettings_GetMetric",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
3061 | { |
3062 | arg1 = (wxSystemMetric)(SWIG_As_int(obj0)); | |
3063 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3064 | } | |
f491ed97 RD |
3065 | if (obj1) { |
3066 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3067 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3068 | } | |
01ac03ba | 3069 | { |
36ed4f51 | 3070 | if (!wxPyCheckForApp()) SWIG_fail; |
01ac03ba | 3071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f491ed97 | 3072 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1,arg2); |
01ac03ba RD |
3073 | |
3074 | wxPyEndAllowThreads(__tstate); | |
3075 | if (PyErr_Occurred()) SWIG_fail; | |
3076 | } | |
3077 | { | |
36ed4f51 | 3078 | resultobj = SWIG_From_int((int)(result)); |
01ac03ba RD |
3079 | } |
3080 | return resultobj; | |
3081 | fail: | |
3082 | return NULL; | |
3083 | } | |
3084 | ||
3085 | ||
36ed4f51 | 3086 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) { |
01ac03ba | 3087 | PyObject *resultobj; |
36ed4f51 | 3088 | wxSystemFeature arg1 ; |
01ac03ba | 3089 | bool result; |
01ac03ba | 3090 | PyObject * obj0 = 0 ; |
01ac03ba | 3091 | char *kwnames[] = { |
36ed4f51 | 3092 | (char *) "index", NULL |
01ac03ba RD |
3093 | }; |
3094 | ||
36ed4f51 | 3095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
01ac03ba | 3096 | { |
36ed4f51 RD |
3097 | arg1 = (wxSystemFeature)(SWIG_As_int(obj0)); |
3098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
01ac03ba RD |
3099 | } |
3100 | { | |
36ed4f51 | 3101 | if (!wxPyCheckForApp()) SWIG_fail; |
01ac03ba | 3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 3103 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); |
01ac03ba RD |
3104 | |
3105 | wxPyEndAllowThreads(__tstate); | |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
3107 | } | |
3108 | { | |
3109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3110 | } | |
01ac03ba RD |
3111 | return resultobj; |
3112 | fail: | |
01ac03ba RD |
3113 | return NULL; |
3114 | } | |
3115 | ||
3116 | ||
36ed4f51 | 3117 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
01ac03ba | 3118 | PyObject *resultobj; |
36ed4f51 | 3119 | wxSystemScreenType result; |
01ac03ba | 3120 | char *kwnames[] = { |
36ed4f51 | 3121 | NULL |
01ac03ba RD |
3122 | }; |
3123 | ||
36ed4f51 | 3124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; |
01ac03ba | 3125 | { |
36ed4f51 | 3126 | if (!wxPyCheckForApp()) SWIG_fail; |
01ac03ba | 3127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 3128 | result = (wxSystemScreenType)wxSystemSettings::GetScreenType(); |
01ac03ba RD |
3129 | |
3130 | wxPyEndAllowThreads(__tstate); | |
3131 | if (PyErr_Occurred()) SWIG_fail; | |
3132 | } | |
36ed4f51 | 3133 | resultobj = SWIG_From_int((result)); |
01ac03ba RD |
3134 | return resultobj; |
3135 | fail: | |
3136 | return NULL; | |
3137 | } | |
3138 | ||
3139 | ||
36ed4f51 | 3140 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3141 | PyObject *resultobj; |
36ed4f51 RD |
3142 | wxSystemScreenType arg1 ; |
3143 | PyObject * obj0 = 0 ; | |
d55e5bfc | 3144 | char *kwnames[] = { |
36ed4f51 | 3145 | (char *) "screen", NULL |
d55e5bfc RD |
3146 | }; |
3147 | ||
36ed4f51 RD |
3148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
3149 | { | |
3150 | arg1 = (wxSystemScreenType)(SWIG_As_int(obj0)); | |
3151 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3152 | } | |
d55e5bfc | 3153 | { |
0439c23b | 3154 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 3155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 3156 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); |
d55e5bfc RD |
3157 | |
3158 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3159 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3160 | } |
3161 | Py_INCREF(Py_None); resultobj = Py_None; | |
3162 | return resultobj; | |
3163 | fail: | |
3164 | return NULL; | |
3165 | } | |
3166 | ||
3167 | ||
36ed4f51 RD |
3168 | static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) { |
3169 | PyObject *obj; | |
3170 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3171 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
3172 | Py_INCREF(obj); | |
3173 | return Py_BuildValue((char *)""); | |
3174 | } | |
3175 | static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) { | |
3176 | PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only."); | |
3177 | return 1; | |
3178 | } | |
3179 | ||
3180 | ||
3181 | static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get(void) { | |
3182 | PyObject *pyobj; | |
d55e5bfc | 3183 | |
d55e5bfc | 3184 | { |
36ed4f51 RD |
3185 | #if wxUSE_UNICODE |
3186 | pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
3187 | #else | |
3188 | pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
3189 | #endif | |
d55e5bfc | 3190 | } |
36ed4f51 | 3191 | return pyobj; |
d55e5bfc RD |
3192 | } |
3193 | ||
3194 | ||
36ed4f51 | 3195 | static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3196 | PyObject *resultobj; |
36ed4f51 | 3197 | wxSystemOptions *result; |
d55e5bfc | 3198 | char *kwnames[] = { |
36ed4f51 | 3199 | NULL |
d55e5bfc RD |
3200 | }; |
3201 | ||
36ed4f51 | 3202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; |
d55e5bfc RD |
3203 | { |
3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3205 | result = (wxSystemOptions *)new wxSystemOptions(); |
d55e5bfc RD |
3206 | |
3207 | wxPyEndAllowThreads(__tstate); | |
3208 | if (PyErr_Occurred()) SWIG_fail; | |
3209 | } | |
36ed4f51 | 3210 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); |
d55e5bfc RD |
3211 | return resultobj; |
3212 | fail: | |
3213 | return NULL; | |
3214 | } | |
3215 | ||
3216 | ||
36ed4f51 | 3217 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3218 | PyObject *resultobj; |
36ed4f51 RD |
3219 | wxString *arg1 = 0 ; |
3220 | wxString *arg2 = 0 ; | |
3221 | bool temp1 = false ; | |
3222 | bool temp2 = false ; | |
3223 | PyObject * obj0 = 0 ; | |
3224 | PyObject * obj1 = 0 ; | |
d55e5bfc | 3225 | char *kwnames[] = { |
36ed4f51 | 3226 | (char *) "name",(char *) "value", NULL |
d55e5bfc RD |
3227 | }; |
3228 | ||
36ed4f51 RD |
3229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; |
3230 | { | |
3231 | arg1 = wxString_in_helper(obj0); | |
3232 | if (arg1 == NULL) SWIG_fail; | |
3233 | temp1 = true; | |
3234 | } | |
3235 | { | |
3236 | arg2 = wxString_in_helper(obj1); | |
3237 | if (arg2 == NULL) SWIG_fail; | |
3238 | temp2 = true; | |
3239 | } | |
d55e5bfc RD |
3240 | { |
3241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3242 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); |
d55e5bfc RD |
3243 | |
3244 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3245 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3246 | } |
3247 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
3248 | { |
3249 | if (temp1) | |
3250 | delete arg1; | |
3251 | } | |
3252 | { | |
3253 | if (temp2) | |
3254 | delete arg2; | |
3255 | } | |
d55e5bfc RD |
3256 | return resultobj; |
3257 | fail: | |
36ed4f51 RD |
3258 | { |
3259 | if (temp1) | |
3260 | delete arg1; | |
3261 | } | |
3262 | { | |
3263 | if (temp2) | |
3264 | delete arg2; | |
3265 | } | |
d55e5bfc RD |
3266 | return NULL; |
3267 | } | |
3268 | ||
3269 | ||
36ed4f51 | 3270 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3271 | PyObject *resultobj; |
36ed4f51 RD |
3272 | wxString *arg1 = 0 ; |
3273 | int arg2 ; | |
3274 | bool temp1 = false ; | |
3275 | PyObject * obj0 = 0 ; | |
3276 | PyObject * obj1 = 0 ; | |
d55e5bfc | 3277 | char *kwnames[] = { |
36ed4f51 | 3278 | (char *) "name",(char *) "value", NULL |
d55e5bfc RD |
3279 | }; |
3280 | ||
36ed4f51 RD |
3281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
3282 | { | |
3283 | arg1 = wxString_in_helper(obj0); | |
3284 | if (arg1 == NULL) SWIG_fail; | |
3285 | temp1 = true; | |
3286 | } | |
3287 | { | |
3288 | arg2 = (int)(SWIG_As_int(obj1)); | |
3289 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3290 | } | |
d55e5bfc RD |
3291 | { |
3292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3293 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); |
d55e5bfc RD |
3294 | |
3295 | wxPyEndAllowThreads(__tstate); | |
3296 | if (PyErr_Occurred()) SWIG_fail; | |
3297 | } | |
36ed4f51 | 3298 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc | 3299 | { |
36ed4f51 RD |
3300 | if (temp1) |
3301 | delete arg1; | |
d55e5bfc RD |
3302 | } |
3303 | return resultobj; | |
3304 | fail: | |
36ed4f51 RD |
3305 | { |
3306 | if (temp1) | |
3307 | delete arg1; | |
3308 | } | |
d55e5bfc RD |
3309 | return NULL; |
3310 | } | |
3311 | ||
3312 | ||
36ed4f51 | 3313 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3314 | PyObject *resultobj; |
36ed4f51 | 3315 | wxString *arg1 = 0 ; |
d55e5bfc | 3316 | wxString result; |
36ed4f51 RD |
3317 | bool temp1 = false ; |
3318 | PyObject * obj0 = 0 ; | |
d55e5bfc | 3319 | char *kwnames[] = { |
36ed4f51 | 3320 | (char *) "name", NULL |
d55e5bfc RD |
3321 | }; |
3322 | ||
36ed4f51 RD |
3323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; |
3324 | { | |
3325 | arg1 = wxString_in_helper(obj0); | |
3326 | if (arg1 == NULL) SWIG_fail; | |
3327 | temp1 = true; | |
3328 | } | |
d55e5bfc RD |
3329 | { |
3330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3331 | result = wxSystemOptions::GetOption((wxString const &)*arg1); |
d55e5bfc RD |
3332 | |
3333 | wxPyEndAllowThreads(__tstate); | |
3334 | if (PyErr_Occurred()) SWIG_fail; | |
3335 | } | |
3336 | { | |
3337 | #if wxUSE_UNICODE | |
3338 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3339 | #else | |
3340 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3341 | #endif | |
3342 | } | |
36ed4f51 RD |
3343 | { |
3344 | if (temp1) | |
3345 | delete arg1; | |
3346 | } | |
d55e5bfc RD |
3347 | return resultobj; |
3348 | fail: | |
36ed4f51 RD |
3349 | { |
3350 | if (temp1) | |
3351 | delete arg1; | |
3352 | } | |
d55e5bfc RD |
3353 | return NULL; |
3354 | } | |
3355 | ||
3356 | ||
36ed4f51 | 3357 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3358 | PyObject *resultobj; |
36ed4f51 RD |
3359 | wxString *arg1 = 0 ; |
3360 | int result; | |
b411df4a | 3361 | bool temp1 = false ; |
d55e5bfc RD |
3362 | PyObject * obj0 = 0 ; |
3363 | char *kwnames[] = { | |
36ed4f51 | 3364 | (char *) "name", NULL |
d55e5bfc RD |
3365 | }; |
3366 | ||
36ed4f51 RD |
3367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; |
3368 | { | |
3369 | arg1 = wxString_in_helper(obj0); | |
3370 | if (arg1 == NULL) SWIG_fail; | |
3371 | temp1 = true; | |
d55e5bfc RD |
3372 | } |
3373 | { | |
3374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3375 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); |
d55e5bfc RD |
3376 | |
3377 | wxPyEndAllowThreads(__tstate); | |
3378 | if (PyErr_Occurred()) SWIG_fail; | |
3379 | } | |
3380 | { | |
36ed4f51 | 3381 | resultobj = SWIG_From_int((int)(result)); |
d55e5bfc RD |
3382 | } |
3383 | { | |
3384 | if (temp1) | |
3385 | delete arg1; | |
3386 | } | |
3387 | return resultobj; | |
3388 | fail: | |
3389 | { | |
3390 | if (temp1) | |
3391 | delete arg1; | |
3392 | } | |
3393 | return NULL; | |
3394 | } | |
3395 | ||
3396 | ||
36ed4f51 | 3397 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3398 | PyObject *resultobj; |
36ed4f51 RD |
3399 | wxString *arg1 = 0 ; |
3400 | bool result; | |
3401 | bool temp1 = false ; | |
3402 | PyObject * obj0 = 0 ; | |
d55e5bfc | 3403 | char *kwnames[] = { |
36ed4f51 | 3404 | (char *) "name", NULL |
d55e5bfc RD |
3405 | }; |
3406 | ||
36ed4f51 RD |
3407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; |
3408 | { | |
3409 | arg1 = wxString_in_helper(obj0); | |
3410 | if (arg1 == NULL) SWIG_fail; | |
3411 | temp1 = true; | |
3412 | } | |
d55e5bfc RD |
3413 | { |
3414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3415 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); |
d55e5bfc RD |
3416 | |
3417 | wxPyEndAllowThreads(__tstate); | |
3418 | if (PyErr_Occurred()) SWIG_fail; | |
3419 | } | |
36ed4f51 RD |
3420 | { |
3421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3422 | } | |
3423 | { | |
3424 | if (temp1) | |
3425 | delete arg1; | |
3426 | } | |
d55e5bfc RD |
3427 | return resultobj; |
3428 | fail: | |
36ed4f51 RD |
3429 | { |
3430 | if (temp1) | |
3431 | delete arg1; | |
3432 | } | |
d55e5bfc RD |
3433 | return NULL; |
3434 | } | |
3435 | ||
3436 | ||
36ed4f51 RD |
3437 | static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) { |
3438 | PyObject *obj; | |
3439 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3440 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
3441 | Py_INCREF(obj); | |
3442 | return Py_BuildValue((char *)""); | |
3443 | } | |
3444 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { | |
3445 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
3446 | return 1; | |
3447 | } | |
3448 | ||
3449 | ||
3450 | static PyObject *_wrap_FileSelectorPromptStr_get(void) { | |
3451 | PyObject *pyobj; | |
3452 | ||
3453 | { | |
3454 | #if wxUSE_UNICODE | |
3455 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
3456 | #else | |
3457 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
3458 | #endif | |
3459 | } | |
3460 | return pyobj; | |
3461 | } | |
3462 | ||
3463 | ||
3464 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { | |
3465 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
3466 | return 1; | |
3467 | } | |
3468 | ||
3469 | ||
3470 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get(void) { | |
3471 | PyObject *pyobj; | |
3472 | ||
3473 | { | |
3474 | #if wxUSE_UNICODE | |
3475 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
3476 | #else | |
3477 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
3478 | #endif | |
3479 | } | |
3480 | return pyobj; | |
3481 | } | |
3482 | ||
3483 | ||
3484 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { | |
3485 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
3486 | return 1; | |
3487 | } | |
3488 | ||
3489 | ||
3490 | static PyObject *_wrap_DirSelectorPromptStr_get(void) { | |
3491 | PyObject *pyobj; | |
3492 | ||
3493 | { | |
3494 | #if wxUSE_UNICODE | |
3495 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
3496 | #else | |
3497 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
3498 | #endif | |
3499 | } | |
3500 | return pyobj; | |
3501 | } | |
3502 | ||
3503 | ||
3504 | static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) { | |
d55e5bfc | 3505 | PyObject *resultobj; |
36ed4f51 | 3506 | long result; |
d55e5bfc RD |
3507 | char *kwnames[] = { |
3508 | NULL | |
3509 | }; | |
3510 | ||
36ed4f51 | 3511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; |
d55e5bfc RD |
3512 | { |
3513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3514 | result = (long)wxNewId(); |
d55e5bfc RD |
3515 | |
3516 | wxPyEndAllowThreads(__tstate); | |
3517 | if (PyErr_Occurred()) SWIG_fail; | |
3518 | } | |
36ed4f51 RD |
3519 | { |
3520 | resultobj = SWIG_From_long((long)(result)); | |
3521 | } | |
d55e5bfc RD |
3522 | return resultobj; |
3523 | fail: | |
3524 | return NULL; | |
3525 | } | |
3526 | ||
3527 | ||
36ed4f51 | 3528 | static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3529 | PyObject *resultobj; |
36ed4f51 RD |
3530 | long arg1 ; |
3531 | PyObject * obj0 = 0 ; | |
d55e5bfc | 3532 | char *kwnames[] = { |
36ed4f51 | 3533 | (char *) "id", NULL |
d55e5bfc RD |
3534 | }; |
3535 | ||
36ed4f51 RD |
3536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
3537 | { | |
3538 | arg1 = (long)(SWIG_As_long(obj0)); | |
3539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3540 | } | |
d55e5bfc RD |
3541 | { |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3543 | wxRegisterId(arg1); |
d55e5bfc RD |
3544 | |
3545 | wxPyEndAllowThreads(__tstate); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
3547 | } | |
36ed4f51 | 3548 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3549 | return resultobj; |
3550 | fail: | |
3551 | return NULL; | |
3552 | } | |
3553 | ||
3554 | ||
36ed4f51 | 3555 | static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3556 | PyObject *resultobj; |
3557 | long result; | |
3558 | char *kwnames[] = { | |
3559 | NULL | |
3560 | }; | |
3561 | ||
36ed4f51 | 3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; |
d55e5bfc RD |
3563 | { |
3564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3565 | result = (long)wxGetCurrentId(); |
d55e5bfc RD |
3566 | |
3567 | wxPyEndAllowThreads(__tstate); | |
3568 | if (PyErr_Occurred()) SWIG_fail; | |
3569 | } | |
36ed4f51 RD |
3570 | { |
3571 | resultobj = SWIG_From_long((long)(result)); | |
3572 | } | |
d55e5bfc RD |
3573 | return resultobj; |
3574 | fail: | |
3575 | return NULL; | |
3576 | } | |
3577 | ||
3578 | ||
36ed4f51 | 3579 | static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3580 | PyObject *resultobj; |
3581 | int arg1 ; | |
3582 | bool result; | |
3583 | PyObject * obj0 = 0 ; | |
3584 | char *kwnames[] = { | |
36ed4f51 | 3585 | (char *) "id", NULL |
d55e5bfc RD |
3586 | }; |
3587 | ||
36ed4f51 RD |
3588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail; |
3589 | { | |
3590 | arg1 = (int)(SWIG_As_int(obj0)); | |
3591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3592 | } | |
d55e5bfc RD |
3593 | { |
3594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3595 | result = (bool)wxIsStockID(arg1); |
d55e5bfc RD |
3596 | |
3597 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3598 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3599 | } |
3600 | { | |
3601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3602 | } | |
3603 | return resultobj; | |
3604 | fail: | |
3605 | return NULL; | |
3606 | } | |
3607 | ||
3608 | ||
36ed4f51 | 3609 | static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3610 | PyObject *resultobj; |
3611 | int arg1 ; | |
36ed4f51 RD |
3612 | wxString *arg2 = 0 ; |
3613 | bool result; | |
3614 | bool temp2 = false ; | |
d55e5bfc | 3615 | PyObject * obj0 = 0 ; |
36ed4f51 | 3616 | PyObject * obj1 = 0 ; |
d55e5bfc | 3617 | char *kwnames[] = { |
36ed4f51 | 3618 | (char *) "id",(char *) "label", NULL |
d55e5bfc RD |
3619 | }; |
3620 | ||
36ed4f51 RD |
3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail; |
3622 | { | |
3623 | arg1 = (int)(SWIG_As_int(obj0)); | |
3624 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3625 | } | |
3626 | { | |
3627 | arg2 = wxString_in_helper(obj1); | |
3628 | if (arg2 == NULL) SWIG_fail; | |
3629 | temp2 = true; | |
3630 | } | |
d55e5bfc RD |
3631 | { |
3632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3633 | result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2); |
d55e5bfc RD |
3634 | |
3635 | wxPyEndAllowThreads(__tstate); | |
3636 | if (PyErr_Occurred()) SWIG_fail; | |
3637 | } | |
36ed4f51 RD |
3638 | { |
3639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3640 | } | |
3641 | { | |
3642 | if (temp2) | |
3643 | delete arg2; | |
3644 | } | |
d55e5bfc RD |
3645 | return resultobj; |
3646 | fail: | |
36ed4f51 RD |
3647 | { |
3648 | if (temp2) | |
3649 | delete arg2; | |
3650 | } | |
d55e5bfc RD |
3651 | return NULL; |
3652 | } | |
3653 | ||
3654 | ||
36ed4f51 | 3655 | static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3656 | PyObject *resultobj; |
36ed4f51 | 3657 | int arg1 ; |
fef4c27a RD |
3658 | bool arg2 = (bool) true ; |
3659 | wxString arg3 = (wxString) wxPyEmptyString ; | |
36ed4f51 | 3660 | wxString result; |
d55e5bfc | 3661 | PyObject * obj0 = 0 ; |
fef4c27a RD |
3662 | PyObject * obj1 = 0 ; |
3663 | PyObject * obj2 = 0 ; | |
d55e5bfc | 3664 | char *kwnames[] = { |
fef4c27a | 3665 | (char *) "id",(char *) "withCodes",(char *) "accelerator", NULL |
d55e5bfc RD |
3666 | }; |
3667 | ||
fef4c27a | 3668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GetStockLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
3669 | { |
3670 | arg1 = (int)(SWIG_As_int(obj0)); | |
3671 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3672 | } | |
fef4c27a RD |
3673 | if (obj1) { |
3674 | { | |
3675 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
3676 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3677 | } | |
3678 | } | |
3679 | if (obj2) { | |
3680 | { | |
3681 | wxString* sptr = wxString_in_helper(obj2); | |
3682 | if (sptr == NULL) SWIG_fail; | |
3683 | arg3 = *sptr; | |
3684 | delete sptr; | |
3685 | } | |
3686 | } | |
d55e5bfc RD |
3687 | { |
3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fef4c27a | 3689 | result = wxGetStockLabel(arg1,arg2,arg3); |
bf26d883 RD |
3690 | |
3691 | wxPyEndAllowThreads(__tstate); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
36ed4f51 RD |
3694 | { |
3695 | #if wxUSE_UNICODE | |
3696 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3697 | #else | |
3698 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3699 | #endif | |
3700 | } | |
bf26d883 RD |
3701 | return resultobj; |
3702 | fail: | |
3703 | return NULL; | |
3704 | } | |
3705 | ||
3706 | ||
36ed4f51 | 3707 | static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 | 3708 | PyObject *resultobj; |
bf26d883 | 3709 | char *kwnames[] = { |
36ed4f51 | 3710 | NULL |
bf26d883 RD |
3711 | }; |
3712 | ||
36ed4f51 | 3713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; |
bf26d883 | 3714 | { |
36ed4f51 | 3715 | if (!wxPyCheckForApp()) SWIG_fail; |
bf26d883 | 3716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 3717 | wxBell(); |
d55e5bfc RD |
3718 | |
3719 | wxPyEndAllowThreads(__tstate); | |
3720 | if (PyErr_Occurred()) SWIG_fail; | |
3721 | } | |
3722 | Py_INCREF(Py_None); resultobj = Py_None; | |
3723 | return resultobj; | |
3724 | fail: | |
3725 | return NULL; | |
3726 | } | |
3727 | ||
3728 | ||
36ed4f51 | 3729 | static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3730 | PyObject *resultobj; |
d55e5bfc | 3731 | char *kwnames[] = { |
36ed4f51 | 3732 | NULL |
d55e5bfc RD |
3733 | }; |
3734 | ||
36ed4f51 | 3735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; |
d55e5bfc | 3736 | { |
36ed4f51 | 3737 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 3738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 3739 | wxEndBusyCursor(); |
d55e5bfc RD |
3740 | |
3741 | wxPyEndAllowThreads(__tstate); | |
3742 | if (PyErr_Occurred()) SWIG_fail; | |
3743 | } | |
3744 | Py_INCREF(Py_None); resultobj = Py_None; | |
3745 | return resultobj; | |
3746 | fail: | |
3747 | return NULL; | |
3748 | } | |
3749 | ||
3750 | ||
36ed4f51 | 3751 | static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3752 | PyObject *resultobj; |
36ed4f51 RD |
3753 | bool arg1 = (bool) true ; |
3754 | long result; | |
d55e5bfc RD |
3755 | PyObject * obj0 = 0 ; |
3756 | char *kwnames[] = { | |
36ed4f51 | 3757 | (char *) "resetTimer", NULL |
d55e5bfc RD |
3758 | }; |
3759 | ||
36ed4f51 RD |
3760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; |
3761 | if (obj0) { | |
3762 | { | |
3763 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
3764 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3765 | } | |
d55e5bfc RD |
3766 | } |
3767 | { | |
3768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3769 | result = (long)wxGetElapsedTime(arg1); |
d55e5bfc RD |
3770 | |
3771 | wxPyEndAllowThreads(__tstate); | |
3772 | if (PyErr_Occurred()) SWIG_fail; | |
3773 | } | |
3774 | { | |
36ed4f51 | 3775 | resultobj = SWIG_From_long((long)(result)); |
d55e5bfc RD |
3776 | } |
3777 | return resultobj; | |
3778 | fail: | |
d55e5bfc RD |
3779 | return NULL; |
3780 | } | |
3781 | ||
3782 | ||
36ed4f51 | 3783 | static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3784 | PyObject *resultobj; |
36ed4f51 RD |
3785 | int *arg1 = (int *) 0 ; |
3786 | int *arg2 = (int *) 0 ; | |
3787 | int temp1 ; | |
3788 | int res1 = 0 ; | |
3789 | int temp2 ; | |
3790 | int res2 = 0 ; | |
d55e5bfc RD |
3791 | char *kwnames[] = { |
3792 | NULL | |
3793 | }; | |
3794 | ||
36ed4f51 RD |
3795 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
3796 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
3797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
d55e5bfc | 3798 | { |
36ed4f51 | 3799 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 3800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 RD |
3801 | wxGetMousePosition(arg1,arg2); |
3802 | ||
3803 | wxPyEndAllowThreads(__tstate); | |
3804 | if (PyErr_Occurred()) SWIG_fail; | |
3805 | } | |
3806 | Py_INCREF(Py_None); resultobj = Py_None; | |
3807 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
3808 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
3809 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
3810 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
3811 | return resultobj; | |
3812 | fail: | |
3813 | return NULL; | |
3814 | } | |
3815 | ||
3816 | ||
3817 | static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) { | |
3818 | PyObject *resultobj; | |
3819 | bool result; | |
3820 | char *kwnames[] = { | |
3821 | NULL | |
3822 | }; | |
3823 | ||
3824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
3825 | { | |
3826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3827 | result = (bool)wxIsBusy(); | |
d55e5bfc RD |
3828 | |
3829 | wxPyEndAllowThreads(__tstate); | |
3830 | if (PyErr_Occurred()) SWIG_fail; | |
3831 | } | |
3832 | { | |
36ed4f51 | 3833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
3834 | } |
3835 | return resultobj; | |
3836 | fail: | |
3837 | return NULL; | |
3838 | } | |
3839 | ||
3840 | ||
36ed4f51 | 3841 | static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3842 | PyObject *resultobj; |
3843 | wxString result; | |
3844 | char *kwnames[] = { | |
3845 | NULL | |
3846 | }; | |
3847 | ||
36ed4f51 | 3848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; |
d55e5bfc RD |
3849 | { |
3850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3851 | result = wxNow(); |
d55e5bfc RD |
3852 | |
3853 | wxPyEndAllowThreads(__tstate); | |
3854 | if (PyErr_Occurred()) SWIG_fail; | |
3855 | } | |
3856 | { | |
3857 | #if wxUSE_UNICODE | |
3858 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3859 | #else | |
3860 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3861 | #endif | |
3862 | } | |
3863 | return resultobj; | |
3864 | fail: | |
3865 | return NULL; | |
3866 | } | |
3867 | ||
3868 | ||
36ed4f51 | 3869 | static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3870 | PyObject *resultobj; |
36ed4f51 RD |
3871 | wxString const &arg1_defvalue = wxPyEmptyString ; |
3872 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3873 | bool result; | |
3874 | bool temp1 = false ; | |
3875 | PyObject * obj0 = 0 ; | |
d55e5bfc | 3876 | char *kwnames[] = { |
36ed4f51 | 3877 | (char *) "command", NULL |
d55e5bfc RD |
3878 | }; |
3879 | ||
36ed4f51 RD |
3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; |
3881 | if (obj0) { | |
3882 | { | |
3883 | arg1 = wxString_in_helper(obj0); | |
3884 | if (arg1 == NULL) SWIG_fail; | |
3885 | temp1 = true; | |
3886 | } | |
3887 | } | |
d55e5bfc RD |
3888 | { |
3889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3890 | result = (bool)wxShell((wxString const &)*arg1); |
d55e5bfc RD |
3891 | |
3892 | wxPyEndAllowThreads(__tstate); | |
3893 | if (PyErr_Occurred()) SWIG_fail; | |
3894 | } | |
3895 | { | |
36ed4f51 RD |
3896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
3897 | } | |
3898 | { | |
3899 | if (temp1) | |
3900 | delete arg1; | |
d55e5bfc RD |
3901 | } |
3902 | return resultobj; | |
3903 | fail: | |
36ed4f51 RD |
3904 | { |
3905 | if (temp1) | |
3906 | delete arg1; | |
3907 | } | |
d55e5bfc RD |
3908 | return NULL; |
3909 | } | |
3910 | ||
3911 | ||
36ed4f51 | 3912 | static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3913 | PyObject *resultobj; |
d55e5bfc RD |
3914 | char *kwnames[] = { |
3915 | NULL | |
3916 | }; | |
3917 | ||
36ed4f51 | 3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; |
d55e5bfc RD |
3919 | { |
3920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 RD |
3921 | wxStartTimer(); |
3922 | ||
3923 | wxPyEndAllowThreads(__tstate); | |
3924 | if (PyErr_Occurred()) SWIG_fail; | |
3925 | } | |
3926 | Py_INCREF(Py_None); resultobj = Py_None; | |
3927 | return resultobj; | |
3928 | fail: | |
3929 | return NULL; | |
3930 | } | |
3931 | ||
3932 | ||
3933 | static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
3934 | PyObject *resultobj; | |
3935 | int *arg1 = (int *) 0 ; | |
3936 | int *arg2 = (int *) 0 ; | |
3937 | int result; | |
3938 | int temp1 ; | |
3939 | int res1 = 0 ; | |
3940 | int temp2 ; | |
3941 | int res2 = 0 ; | |
3942 | char *kwnames[] = { | |
3943 | NULL | |
3944 | }; | |
3945 | ||
3946 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
3947 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
3948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
3949 | { | |
3950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3951 | result = (int)wxGetOsVersion(arg1,arg2); | |
d55e5bfc RD |
3952 | |
3953 | wxPyEndAllowThreads(__tstate); | |
3954 | if (PyErr_Occurred()) SWIG_fail; | |
3955 | } | |
3956 | { | |
36ed4f51 | 3957 | resultobj = SWIG_From_int((int)(result)); |
d55e5bfc | 3958 | } |
36ed4f51 RD |
3959 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
3960 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
3961 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
3962 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
3963 | return resultobj; |
3964 | fail: | |
3965 | return NULL; | |
3966 | } | |
3967 | ||
3968 | ||
36ed4f51 | 3969 | static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3970 | PyObject *resultobj; |
3971 | wxString result; | |
3972 | char *kwnames[] = { | |
3973 | NULL | |
3974 | }; | |
3975 | ||
36ed4f51 | 3976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; |
d55e5bfc RD |
3977 | { |
3978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3979 | result = wxGetOsDescription(); |
d55e5bfc RD |
3980 | |
3981 | wxPyEndAllowThreads(__tstate); | |
3982 | if (PyErr_Occurred()) SWIG_fail; | |
3983 | } | |
3984 | { | |
3985 | #if wxUSE_UNICODE | |
3986 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3987 | #else | |
3988 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3989 | #endif | |
3990 | } | |
3991 | return resultobj; | |
3992 | fail: | |
3993 | return NULL; | |
3994 | } | |
3995 | ||
3996 | ||
36ed4f51 | 3997 | static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3998 | PyObject *resultobj; |
36ed4f51 | 3999 | long result; |
d55e5bfc RD |
4000 | char *kwnames[] = { |
4001 | NULL | |
4002 | }; | |
4003 | ||
36ed4f51 | 4004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; |
d55e5bfc RD |
4005 | { |
4006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4007 | result = (long)wxGetFreeMemory(); |
d55e5bfc RD |
4008 | |
4009 | wxPyEndAllowThreads(__tstate); | |
4010 | if (PyErr_Occurred()) SWIG_fail; | |
4011 | } | |
4012 | { | |
36ed4f51 | 4013 | resultobj = SWIG_From_long((long)(result)); |
d55e5bfc RD |
4014 | } |
4015 | return resultobj; | |
4016 | fail: | |
4017 | return NULL; | |
4018 | } | |
4019 | ||
4020 | ||
36ed4f51 | 4021 | static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 4022 | PyObject *resultobj; |
36ed4f51 RD |
4023 | wxShutdownFlags arg1 ; |
4024 | bool result; | |
d55e5bfc RD |
4025 | PyObject * obj0 = 0 ; |
4026 | char *kwnames[] = { | |
36ed4f51 | 4027 | (char *) "wFlags", NULL |
d55e5bfc RD |
4028 | }; |
4029 | ||
36ed4f51 RD |
4030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
4031 | { | |
4032 | arg1 = (wxShutdownFlags)(SWIG_As_int(obj0)); | |
4033 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4034 | } |
4035 | { | |
36ed4f51 | 4036 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4038 | result = (bool)wxShutdown((wxShutdownFlags )arg1); |
d55e5bfc RD |
4039 | |
4040 | wxPyEndAllowThreads(__tstate); | |
4041 | if (PyErr_Occurred()) SWIG_fail; | |
4042 | } | |
4043 | { | |
36ed4f51 | 4044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
4045 | } |
4046 | return resultobj; | |
4047 | fail: | |
d55e5bfc RD |
4048 | return NULL; |
4049 | } | |
4050 | ||
4051 | ||
36ed4f51 | 4052 | static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 4053 | PyObject *resultobj; |
36ed4f51 RD |
4054 | int arg1 ; |
4055 | PyObject * obj0 = 0 ; | |
d55e5bfc | 4056 | char *kwnames[] = { |
36ed4f51 | 4057 | (char *) "secs", NULL |
d55e5bfc RD |
4058 | }; |
4059 | ||
36ed4f51 RD |
4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; |
4061 | { | |
4062 | arg1 = (int)(SWIG_As_int(obj0)); | |
4063 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4064 | } | |
d55e5bfc RD |
4065 | { |
4066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4067 | wxSleep(arg1); |
d55e5bfc RD |
4068 | |
4069 | wxPyEndAllowThreads(__tstate); | |
4070 | if (PyErr_Occurred()) SWIG_fail; | |
4071 | } | |
36ed4f51 | 4072 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
4073 | return resultobj; |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
36ed4f51 | 4079 | static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 4080 | PyObject *resultobj; |
36ed4f51 RD |
4081 | unsigned long arg1 ; |
4082 | PyObject * obj0 = 0 ; | |
d55e5bfc | 4083 | char *kwnames[] = { |
36ed4f51 | 4084 | (char *) "milliseconds", NULL |
d55e5bfc RD |
4085 | }; |
4086 | ||
36ed4f51 RD |
4087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail; |
4088 | { | |
4089 | arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0)); | |
4090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4091 | } | |
d55e5bfc RD |
4092 | { |
4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4094 | wxMilliSleep(arg1); |
d55e5bfc RD |
4095 | |
4096 | wxPyEndAllowThreads(__tstate); | |
4097 | if (PyErr_Occurred()) SWIG_fail; | |
4098 | } | |
4099 | Py_INCREF(Py_None); resultobj = Py_None; | |
4100 | return resultobj; | |
4101 | fail: | |
4102 | return NULL; | |
4103 | } | |
4104 | ||
4105 | ||
36ed4f51 | 4106 | static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 4107 | PyObject *resultobj; |
36ed4f51 | 4108 | unsigned long arg1 ; |
d55e5bfc | 4109 | PyObject * obj0 = 0 ; |
d55e5bfc | 4110 | char *kwnames[] = { |
36ed4f51 | 4111 | (char *) "microseconds", NULL |
d55e5bfc RD |
4112 | }; |
4113 | ||
36ed4f51 RD |
4114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail; |
4115 | { | |
4116 | arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0)); | |
4117 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4118 | } |
4119 | { | |
4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4121 | wxMicroSleep(arg1); |
d55e5bfc RD |
4122 | |
4123 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4124 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4125 | } |
36ed4f51 | 4126 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
4127 | return resultobj; |
4128 | fail: | |
36ed4f51 RD |
4129 | return NULL; |
4130 | } | |
4131 | ||
4132 | ||
4133 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) { | |
4134 | PyObject *resultobj; | |
4135 | bool arg1 ; | |
4136 | PyObject * obj0 = 0 ; | |
4137 | char *kwnames[] = { | |
4138 | (char *) "enable", NULL | |
4139 | }; | |
4140 | ||
4141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
d55e5bfc | 4142 | { |
36ed4f51 RD |
4143 | arg1 = (bool)(SWIG_As_bool(obj0)); |
4144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4145 | } |
4146 | { | |
36ed4f51 RD |
4147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4148 | wxEnableTopLevelWindows(arg1); | |
4149 | ||
4150 | wxPyEndAllowThreads(__tstate); | |
4151 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 4152 | } |
36ed4f51 RD |
4153 | Py_INCREF(Py_None); resultobj = Py_None; |
4154 | return resultobj; | |
4155 | fail: | |
d55e5bfc RD |
4156 | return NULL; |
4157 | } | |
4158 | ||
4159 | ||
36ed4f51 | 4160 | static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4161 | PyObject *resultobj; |
4162 | wxString *arg1 = 0 ; | |
d55e5bfc | 4163 | wxString result; |
b411df4a | 4164 | bool temp1 = false ; |
d55e5bfc | 4165 | PyObject * obj0 = 0 ; |
d55e5bfc | 4166 | char *kwnames[] = { |
36ed4f51 | 4167 | (char *) "in", NULL |
d55e5bfc RD |
4168 | }; |
4169 | ||
36ed4f51 | 4170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
4171 | { |
4172 | arg1 = wxString_in_helper(obj0); | |
4173 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4174 | temp1 = true; |
d55e5bfc RD |
4175 | } |
4176 | { | |
d55e5bfc | 4177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4178 | result = wxStripMenuCodes((wxString const &)*arg1); |
d55e5bfc RD |
4179 | |
4180 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4181 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4182 | } |
4183 | { | |
4184 | #if wxUSE_UNICODE | |
4185 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4186 | #else | |
4187 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4188 | #endif | |
4189 | } | |
4190 | { | |
4191 | if (temp1) | |
4192 | delete arg1; | |
4193 | } | |
d55e5bfc RD |
4194 | return resultobj; |
4195 | fail: | |
4196 | { | |
4197 | if (temp1) | |
4198 | delete arg1; | |
4199 | } | |
d55e5bfc RD |
4200 | return NULL; |
4201 | } | |
4202 | ||
4203 | ||
36ed4f51 | 4204 | static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 4205 | PyObject *resultobj; |
d55e5bfc | 4206 | wxString result; |
d55e5bfc | 4207 | char *kwnames[] = { |
36ed4f51 | 4208 | NULL |
d55e5bfc RD |
4209 | }; |
4210 | ||
36ed4f51 | 4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; |
d55e5bfc RD |
4212 | { |
4213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4214 | result = wxGetEmailAddress(); |
d55e5bfc RD |
4215 | |
4216 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4217 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4218 | } |
4219 | { | |
4220 | #if wxUSE_UNICODE | |
4221 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4222 | #else | |
4223 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4224 | #endif | |
4225 | } | |
d55e5bfc RD |
4226 | return resultobj; |
4227 | fail: | |
36ed4f51 RD |
4228 | return NULL; |
4229 | } | |
4230 | ||
4231 | ||
4232 | static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) { | |
4233 | PyObject *resultobj; | |
4234 | wxString result; | |
4235 | char *kwnames[] = { | |
4236 | NULL | |
4237 | }; | |
4238 | ||
4239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
d55e5bfc | 4240 | { |
36ed4f51 RD |
4241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4242 | result = wxGetHostName(); | |
4243 | ||
4244 | wxPyEndAllowThreads(__tstate); | |
4245 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
4246 | } |
4247 | { | |
36ed4f51 RD |
4248 | #if wxUSE_UNICODE |
4249 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4250 | #else | |
4251 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4252 | #endif | |
d55e5bfc | 4253 | } |
36ed4f51 RD |
4254 | return resultobj; |
4255 | fail: | |
d55e5bfc RD |
4256 | return NULL; |
4257 | } | |
4258 | ||
4259 | ||
36ed4f51 | 4260 | static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 4261 | PyObject *resultobj; |
d55e5bfc | 4262 | wxString result; |
d55e5bfc | 4263 | char *kwnames[] = { |
36ed4f51 | 4264 | NULL |
d55e5bfc RD |
4265 | }; |
4266 | ||
36ed4f51 RD |
4267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; |
4268 | { | |
4269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4270 | result = wxGetFullHostName(); | |
4271 | ||
4272 | wxPyEndAllowThreads(__tstate); | |
4273 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 4274 | } |
36ed4f51 RD |
4275 | { |
4276 | #if wxUSE_UNICODE | |
4277 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4278 | #else | |
4279 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4280 | #endif | |
d55e5bfc | 4281 | } |
36ed4f51 RD |
4282 | return resultobj; |
4283 | fail: | |
4284 | return NULL; | |
4285 | } | |
4286 | ||
4287 | ||
4288 | static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) { | |
4289 | PyObject *resultobj; | |
4290 | wxString result; | |
4291 | char *kwnames[] = { | |
4292 | NULL | |
4293 | }; | |
4294 | ||
4295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
4296 | { | |
4297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4298 | result = wxGetUserId(); | |
4299 | ||
4300 | wxPyEndAllowThreads(__tstate); | |
d55e5bfc RD |
4301 | if (PyErr_Occurred()) SWIG_fail; |
4302 | } | |
36ed4f51 RD |
4303 | { |
4304 | #if wxUSE_UNICODE | |
4305 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4306 | #else | |
4307 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4308 | #endif | |
4309 | } | |
4310 | return resultobj; | |
4311 | fail: | |
4312 | return NULL; | |
4313 | } | |
4314 | ||
4315 | ||
4316 | static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) { | |
4317 | PyObject *resultobj; | |
4318 | wxString result; | |
4319 | char *kwnames[] = { | |
4320 | NULL | |
4321 | }; | |
4322 | ||
4323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
4324 | { | |
4325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4326 | result = wxGetUserName(); | |
4327 | ||
4328 | wxPyEndAllowThreads(__tstate); | |
4329 | if (PyErr_Occurred()) SWIG_fail; | |
4330 | } | |
4331 | { | |
4332 | #if wxUSE_UNICODE | |
4333 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4334 | #else | |
4335 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4336 | #endif | |
4337 | } | |
4338 | return resultobj; | |
4339 | fail: | |
4340 | return NULL; | |
4341 | } | |
4342 | ||
4343 | ||
4344 | static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
4345 | PyObject *resultobj; | |
4346 | wxString result; | |
4347 | char *kwnames[] = { | |
4348 | NULL | |
4349 | }; | |
4350 | ||
4351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
4352 | { | |
4353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4354 | result = wxGetHomeDir(); | |
4355 | ||
4356 | wxPyEndAllowThreads(__tstate); | |
4357 | if (PyErr_Occurred()) SWIG_fail; | |
4358 | } | |
4359 | { | |
4360 | #if wxUSE_UNICODE | |
4361 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4362 | #else | |
4363 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4364 | #endif | |
4365 | } | |
4366 | return resultobj; | |
4367 | fail: | |
4368 | return NULL; | |
4369 | } | |
4370 | ||
4371 | ||
4372 | static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) { | |
4373 | PyObject *resultobj; | |
4374 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
4375 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4376 | wxString result; | |
4377 | bool temp1 = false ; | |
4378 | PyObject * obj0 = 0 ; | |
4379 | char *kwnames[] = { | |
4380 | (char *) "user", NULL | |
4381 | }; | |
4382 | ||
4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
4384 | if (obj0) { | |
d55e5bfc | 4385 | { |
36ed4f51 RD |
4386 | arg1 = wxString_in_helper(obj0); |
4387 | if (arg1 == NULL) SWIG_fail; | |
4388 | temp1 = true; | |
d55e5bfc RD |
4389 | } |
4390 | } | |
d55e5bfc RD |
4391 | { |
4392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4393 | result = wxGetUserHome((wxString const &)*arg1); |
d55e5bfc RD |
4394 | |
4395 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4396 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4397 | } |
4398 | { | |
4399 | #if wxUSE_UNICODE | |
4400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4401 | #else | |
4402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4403 | #endif | |
4404 | } | |
4405 | { | |
4406 | if (temp1) | |
4407 | delete arg1; | |
4408 | } | |
d55e5bfc RD |
4409 | return resultobj; |
4410 | fail: | |
4411 | { | |
4412 | if (temp1) | |
4413 | delete arg1; | |
4414 | } | |
36ed4f51 RD |
4415 | return NULL; |
4416 | } | |
4417 | ||
4418 | ||
4419 | static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) { | |
4420 | PyObject *resultobj; | |
4421 | unsigned long result; | |
4422 | char *kwnames[] = { | |
4423 | NULL | |
4424 | }; | |
4425 | ||
4426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
d55e5bfc | 4427 | { |
36ed4f51 RD |
4428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4429 | result = (unsigned long)wxGetProcessId(); | |
4430 | ||
4431 | wxPyEndAllowThreads(__tstate); | |
4432 | if (PyErr_Occurred()) SWIG_fail; | |
4433 | } | |
4434 | { | |
4435 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
d55e5bfc | 4436 | } |
36ed4f51 RD |
4437 | return resultobj; |
4438 | fail: | |
d55e5bfc RD |
4439 | return NULL; |
4440 | } | |
4441 | ||
4442 | ||
36ed4f51 | 4443 | static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 4444 | PyObject *resultobj; |
36ed4f51 RD |
4445 | char *kwnames[] = { |
4446 | NULL | |
4447 | }; | |
4448 | ||
4449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
4450 | { | |
4451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4452 | wxTrap(); | |
4453 | ||
4454 | wxPyEndAllowThreads(__tstate); | |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
4456 | } | |
4457 | Py_INCREF(Py_None); resultobj = Py_None; | |
4458 | return resultobj; | |
4459 | fail: | |
4460 | return NULL; | |
4461 | } | |
4462 | ||
4463 | ||
4464 | static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) { | |
4465 | PyObject *resultobj; | |
4466 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
4467 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc RD |
4468 | wxString const &arg2_defvalue = wxPyEmptyString ; |
4469 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4470 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4471 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
36ed4f51 RD |
4472 | wxString const &arg4_defvalue = wxPyEmptyString ; |
4473 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4474 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
4475 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
4476 | int arg6 = (int) 0 ; | |
4477 | wxWindow *arg7 = (wxWindow *) NULL ; | |
4478 | int arg8 = (int) -1 ; | |
4479 | int arg9 = (int) -1 ; | |
d55e5bfc | 4480 | wxString result; |
b411df4a RD |
4481 | bool temp1 = false ; |
4482 | bool temp2 = false ; | |
4483 | bool temp3 = false ; | |
36ed4f51 RD |
4484 | bool temp4 = false ; |
4485 | bool temp5 = false ; | |
d55e5bfc RD |
4486 | PyObject * obj0 = 0 ; |
4487 | PyObject * obj1 = 0 ; | |
4488 | PyObject * obj2 = 0 ; | |
4489 | PyObject * obj3 = 0 ; | |
4490 | PyObject * obj4 = 0 ; | |
4491 | PyObject * obj5 = 0 ; | |
4492 | PyObject * obj6 = 0 ; | |
36ed4f51 RD |
4493 | PyObject * obj7 = 0 ; |
4494 | PyObject * obj8 = 0 ; | |
d55e5bfc | 4495 | char *kwnames[] = { |
36ed4f51 | 4496 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
4497 | }; |
4498 | ||
36ed4f51 RD |
4499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
4500 | if (obj0) { | |
4501 | { | |
4502 | arg1 = wxString_in_helper(obj0); | |
4503 | if (arg1 == NULL) SWIG_fail; | |
4504 | temp1 = true; | |
4505 | } | |
d55e5bfc RD |
4506 | } |
4507 | if (obj1) { | |
4508 | { | |
4509 | arg2 = wxString_in_helper(obj1); | |
4510 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4511 | temp2 = true; |
d55e5bfc RD |
4512 | } |
4513 | } | |
4514 | if (obj2) { | |
4515 | { | |
4516 | arg3 = wxString_in_helper(obj2); | |
4517 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 4518 | temp3 = true; |
d55e5bfc RD |
4519 | } |
4520 | } | |
4521 | if (obj3) { | |
36ed4f51 RD |
4522 | { |
4523 | arg4 = wxString_in_helper(obj3); | |
4524 | if (arg4 == NULL) SWIG_fail; | |
4525 | temp4 = true; | |
4526 | } | |
d55e5bfc RD |
4527 | } |
4528 | if (obj4) { | |
36ed4f51 RD |
4529 | { |
4530 | arg5 = wxString_in_helper(obj4); | |
4531 | if (arg5 == NULL) SWIG_fail; | |
4532 | temp5 = true; | |
4533 | } | |
d55e5bfc RD |
4534 | } |
4535 | if (obj5) { | |
36ed4f51 RD |
4536 | { |
4537 | arg6 = (int)(SWIG_As_int(obj5)); | |
4538 | if (SWIG_arg_fail(6)) SWIG_fail; | |
4539 | } | |
d55e5bfc RD |
4540 | } |
4541 | if (obj6) { | |
36ed4f51 RD |
4542 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4543 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4544 | } | |
4545 | if (obj7) { | |
4546 | { | |
4547 | arg8 = (int)(SWIG_As_int(obj7)); | |
4548 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4549 | } | |
4550 | } | |
4551 | if (obj8) { | |
4552 | { | |
4553 | arg9 = (int)(SWIG_As_int(obj8)); | |
4554 | if (SWIG_arg_fail(9)) SWIG_fail; | |
4555 | } | |
d55e5bfc RD |
4556 | } |
4557 | { | |
0439c23b | 4558 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4560 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); |
d55e5bfc RD |
4561 | |
4562 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4563 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4564 | } |
4565 | { | |
4566 | #if wxUSE_UNICODE | |
4567 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4568 | #else | |
4569 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4570 | #endif | |
4571 | } | |
4572 | { | |
4573 | if (temp1) | |
4574 | delete arg1; | |
4575 | } | |
4576 | { | |
4577 | if (temp2) | |
4578 | delete arg2; | |
4579 | } | |
4580 | { | |
4581 | if (temp3) | |
4582 | delete arg3; | |
4583 | } | |
36ed4f51 RD |
4584 | { |
4585 | if (temp4) | |
4586 | delete arg4; | |
4587 | } | |
4588 | { | |
4589 | if (temp5) | |
4590 | delete arg5; | |
4591 | } | |
d55e5bfc RD |
4592 | return resultobj; |
4593 | fail: | |
4594 | { | |
4595 | if (temp1) | |
4596 | delete arg1; | |
4597 | } | |
4598 | { | |
4599 | if (temp2) | |
4600 | delete arg2; | |
4601 | } | |
4602 | { | |
4603 | if (temp3) | |
4604 | delete arg3; | |
4605 | } | |
36ed4f51 RD |
4606 | { |
4607 | if (temp4) | |
4608 | delete arg4; | |
4609 | } | |
4610 | { | |
4611 | if (temp5) | |
4612 | delete arg5; | |
4613 | } | |
d55e5bfc RD |
4614 | return NULL; |
4615 | } | |
4616 | ||
4617 | ||
36ed4f51 | 4618 | static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4619 | PyObject *resultobj; |
4620 | wxString *arg1 = 0 ; | |
36ed4f51 | 4621 | wxString *arg2 = 0 ; |
d55e5bfc RD |
4622 | wxString const &arg3_defvalue = wxPyEmptyString ; |
4623 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4624 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4625 | wxString result; | |
b411df4a RD |
4626 | bool temp1 = false ; |
4627 | bool temp2 = false ; | |
4628 | bool temp3 = false ; | |
d55e5bfc RD |
4629 | PyObject * obj0 = 0 ; |
4630 | PyObject * obj1 = 0 ; | |
4631 | PyObject * obj2 = 0 ; | |
4632 | PyObject * obj3 = 0 ; | |
4633 | char *kwnames[] = { | |
36ed4f51 | 4634 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL |
d55e5bfc RD |
4635 | }; |
4636 | ||
36ed4f51 | 4637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
4638 | { |
4639 | arg1 = wxString_in_helper(obj0); | |
4640 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4641 | temp1 = true; |
d55e5bfc | 4642 | } |
36ed4f51 RD |
4643 | { |
4644 | arg2 = wxString_in_helper(obj1); | |
4645 | if (arg2 == NULL) SWIG_fail; | |
4646 | temp2 = true; | |
d55e5bfc RD |
4647 | } |
4648 | if (obj2) { | |
4649 | { | |
4650 | arg3 = wxString_in_helper(obj2); | |
4651 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 4652 | temp3 = true; |
d55e5bfc RD |
4653 | } |
4654 | } | |
4655 | if (obj3) { | |
36ed4f51 RD |
4656 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4657 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
4658 | } |
4659 | { | |
0439c23b | 4660 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4662 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d55e5bfc RD |
4663 | |
4664 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4665 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4666 | } |
4667 | { | |
4668 | #if wxUSE_UNICODE | |
4669 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4670 | #else | |
4671 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4672 | #endif | |
4673 | } | |
4674 | { | |
4675 | if (temp1) | |
4676 | delete arg1; | |
4677 | } | |
4678 | { | |
4679 | if (temp2) | |
4680 | delete arg2; | |
4681 | } | |
4682 | { | |
4683 | if (temp3) | |
4684 | delete arg3; | |
4685 | } | |
4686 | return resultobj; | |
4687 | fail: | |
4688 | { | |
4689 | if (temp1) | |
4690 | delete arg1; | |
4691 | } | |
4692 | { | |
4693 | if (temp2) | |
4694 | delete arg2; | |
4695 | } | |
4696 | { | |
4697 | if (temp3) | |
4698 | delete arg3; | |
4699 | } | |
4700 | return NULL; | |
4701 | } | |
4702 | ||
4703 | ||
36ed4f51 | 4704 | static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4705 | PyObject *resultobj; |
4706 | wxString *arg1 = 0 ; | |
4707 | wxString *arg2 = 0 ; | |
36ed4f51 RD |
4708 | wxString const &arg3_defvalue = wxPyEmptyString ; |
4709 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4710 | wxWindow *arg4 = (wxWindow *) NULL ; | |
d55e5bfc | 4711 | wxString result; |
b411df4a RD |
4712 | bool temp1 = false ; |
4713 | bool temp2 = false ; | |
36ed4f51 | 4714 | bool temp3 = false ; |
d55e5bfc RD |
4715 | PyObject * obj0 = 0 ; |
4716 | PyObject * obj1 = 0 ; | |
4717 | PyObject * obj2 = 0 ; | |
4718 | PyObject * obj3 = 0 ; | |
d55e5bfc | 4719 | char *kwnames[] = { |
36ed4f51 | 4720 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL |
d55e5bfc RD |
4721 | }; |
4722 | ||
36ed4f51 | 4723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
4724 | { |
4725 | arg1 = wxString_in_helper(obj0); | |
4726 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4727 | temp1 = true; |
d55e5bfc RD |
4728 | } |
4729 | { | |
4730 | arg2 = wxString_in_helper(obj1); | |
4731 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4732 | temp2 = true; |
d55e5bfc | 4733 | } |
36ed4f51 RD |
4734 | if (obj2) { |
4735 | { | |
4736 | arg3 = wxString_in_helper(obj2); | |
4737 | if (arg3 == NULL) SWIG_fail; | |
4738 | temp3 = true; | |
4739 | } | |
d55e5bfc RD |
4740 | } |
4741 | if (obj3) { | |
36ed4f51 RD |
4742 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4743 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
4744 | } |
4745 | { | |
0439c23b | 4746 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4748 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d55e5bfc RD |
4749 | |
4750 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4751 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4752 | } |
4753 | { | |
4754 | #if wxUSE_UNICODE | |
4755 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4756 | #else | |
4757 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4758 | #endif | |
4759 | } | |
4760 | { | |
4761 | if (temp1) | |
4762 | delete arg1; | |
4763 | } | |
4764 | { | |
4765 | if (temp2) | |
4766 | delete arg2; | |
4767 | } | |
4768 | { | |
36ed4f51 RD |
4769 | if (temp3) |
4770 | delete arg3; | |
d55e5bfc RD |
4771 | } |
4772 | return resultobj; | |
4773 | fail: | |
4774 | { | |
4775 | if (temp1) | |
4776 | delete arg1; | |
4777 | } | |
4778 | { | |
4779 | if (temp2) | |
4780 | delete arg2; | |
4781 | } | |
4782 | { | |
36ed4f51 RD |
4783 | if (temp3) |
4784 | delete arg3; | |
d55e5bfc RD |
4785 | } |
4786 | return NULL; | |
4787 | } | |
4788 | ||
4789 | ||
36ed4f51 | 4790 | static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 4791 | PyObject *resultobj; |
36ed4f51 RD |
4792 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; |
4793 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4794 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4795 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4796 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
4797 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4798 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
d55e5bfc | 4799 | wxWindow *arg5 = (wxWindow *) NULL ; |
36ed4f51 | 4800 | wxString result; |
b411df4a RD |
4801 | bool temp1 = false ; |
4802 | bool temp2 = false ; | |
36ed4f51 | 4803 | wxPoint temp4 ; |
d55e5bfc RD |
4804 | PyObject * obj0 = 0 ; |
4805 | PyObject * obj1 = 0 ; | |
4806 | PyObject * obj2 = 0 ; | |
4807 | PyObject * obj3 = 0 ; | |
4808 | PyObject * obj4 = 0 ; | |
d55e5bfc | 4809 | char *kwnames[] = { |
36ed4f51 | 4810 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL |
d55e5bfc RD |
4811 | }; |
4812 | ||
36ed4f51 RD |
4813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
4814 | if (obj0) { | |
4815 | { | |
4816 | arg1 = wxString_in_helper(obj0); | |
4817 | if (arg1 == NULL) SWIG_fail; | |
4818 | temp1 = true; | |
4819 | } | |
d55e5bfc | 4820 | } |
36ed4f51 RD |
4821 | if (obj1) { |
4822 | { | |
4823 | arg2 = wxString_in_helper(obj1); | |
4824 | if (arg2 == NULL) SWIG_fail; | |
4825 | temp2 = true; | |
4826 | } | |
d55e5bfc | 4827 | } |
36ed4f51 RD |
4828 | if (obj2) { |
4829 | { | |
4830 | arg3 = (long)(SWIG_As_long(obj2)); | |
4831 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4832 | } | |
d55e5bfc RD |
4833 | } |
4834 | if (obj3) { | |
36ed4f51 RD |
4835 | { |
4836 | arg4 = &temp4; | |
4837 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4838 | } | |
d55e5bfc RD |
4839 | } |
4840 | if (obj4) { | |
36ed4f51 RD |
4841 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4842 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
4843 | } |
4844 | { | |
0439c23b | 4845 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4847 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); |
d55e5bfc RD |
4848 | |
4849 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4850 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4851 | } |
36ed4f51 RD |
4852 | { |
4853 | #if wxUSE_UNICODE | |
4854 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4855 | #else | |
4856 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4857 | #endif | |
4858 | } | |
d55e5bfc RD |
4859 | { |
4860 | if (temp1) | |
4861 | delete arg1; | |
4862 | } | |
4863 | { | |
4864 | if (temp2) | |
4865 | delete arg2; | |
4866 | } | |
d55e5bfc RD |
4867 | return resultobj; |
4868 | fail: | |
4869 | { | |
4870 | if (temp1) | |
4871 | delete arg1; | |
4872 | } | |
4873 | { | |
4874 | if (temp2) | |
4875 | delete arg2; | |
4876 | } | |
d55e5bfc RD |
4877 | return NULL; |
4878 | } | |
4879 | ||
4880 | ||
36ed4f51 | 4881 | static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4882 | PyObject *resultobj; |
4883 | wxString *arg1 = 0 ; | |
4884 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4885 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
36ed4f51 RD |
4886 | wxString const &arg3_defvalue = wxPyEmptyString ; |
4887 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4888 | wxWindow *arg4 = (wxWindow *) NULL ; |
4889 | int arg5 = (int) -1 ; | |
4890 | int arg6 = (int) -1 ; | |
36ed4f51 RD |
4891 | bool arg7 = (bool) true ; |
4892 | wxString result; | |
b411df4a RD |
4893 | bool temp1 = false ; |
4894 | bool temp2 = false ; | |
36ed4f51 | 4895 | bool temp3 = false ; |
d55e5bfc RD |
4896 | PyObject * obj0 = 0 ; |
4897 | PyObject * obj1 = 0 ; | |
4898 | PyObject * obj2 = 0 ; | |
4899 | PyObject * obj3 = 0 ; | |
4900 | PyObject * obj4 = 0 ; | |
4901 | PyObject * obj5 = 0 ; | |
36ed4f51 | 4902 | PyObject * obj6 = 0 ; |
d55e5bfc | 4903 | char *kwnames[] = { |
36ed4f51 | 4904 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL |
d55e5bfc RD |
4905 | }; |
4906 | ||
36ed4f51 | 4907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4908 | { |
4909 | arg1 = wxString_in_helper(obj0); | |
4910 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4911 | temp1 = true; |
d55e5bfc RD |
4912 | } |
4913 | if (obj1) { | |
4914 | { | |
4915 | arg2 = wxString_in_helper(obj1); | |
4916 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4917 | temp2 = true; |
d55e5bfc RD |
4918 | } |
4919 | } | |
4920 | if (obj2) { | |
36ed4f51 RD |
4921 | { |
4922 | arg3 = wxString_in_helper(obj2); | |
4923 | if (arg3 == NULL) SWIG_fail; | |
4924 | temp3 = true; | |
4925 | } | |
d55e5bfc RD |
4926 | } |
4927 | if (obj3) { | |
36ed4f51 RD |
4928 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4929 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
4930 | } |
4931 | if (obj4) { | |
36ed4f51 RD |
4932 | { |
4933 | arg5 = (int)(SWIG_As_int(obj4)); | |
4934 | if (SWIG_arg_fail(5)) SWIG_fail; | |
4935 | } | |
d55e5bfc RD |
4936 | } |
4937 | if (obj5) { | |
36ed4f51 RD |
4938 | { |
4939 | arg6 = (int)(SWIG_As_int(obj5)); | |
4940 | if (SWIG_arg_fail(6)) SWIG_fail; | |
4941 | } | |
4942 | } | |
4943 | if (obj6) { | |
4944 | { | |
4945 | arg7 = (bool)(SWIG_As_bool(obj6)); | |
4946 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4947 | } | |
d55e5bfc RD |
4948 | } |
4949 | { | |
0439c23b | 4950 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4952 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
4953 | |
4954 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4955 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4956 | } |
36ed4f51 RD |
4957 | { |
4958 | #if wxUSE_UNICODE | |
4959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4960 | #else | |
4961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4962 | #endif | |
4963 | } | |
d55e5bfc RD |
4964 | { |
4965 | if (temp1) | |
4966 | delete arg1; | |
4967 | } | |
4968 | { | |
4969 | if (temp2) | |
4970 | delete arg2; | |
4971 | } | |
36ed4f51 RD |
4972 | { |
4973 | if (temp3) | |
4974 | delete arg3; | |
4975 | } | |
d55e5bfc RD |
4976 | return resultobj; |
4977 | fail: | |
4978 | { | |
4979 | if (temp1) | |
4980 | delete arg1; | |
4981 | } | |
4982 | { | |
4983 | if (temp2) | |
4984 | delete arg2; | |
4985 | } | |
36ed4f51 RD |
4986 | { |
4987 | if (temp3) | |
4988 | delete arg3; | |
4989 | } | |
d55e5bfc RD |
4990 | return NULL; |
4991 | } | |
4992 | ||
4993 | ||
36ed4f51 | 4994 | static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4995 | PyObject *resultobj; |
4996 | wxString *arg1 = 0 ; | |
36ed4f51 RD |
4997 | wxString const &arg2_defvalue = wxPyEmptyString ; |
4998 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4999 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5000 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5001 | wxWindow *arg4 = (wxWindow *) NULL ; | |
5002 | wxString result; | |
b411df4a RD |
5003 | bool temp1 = false ; |
5004 | bool temp2 = false ; | |
5005 | bool temp3 = false ; | |
d55e5bfc RD |
5006 | PyObject * obj0 = 0 ; |
5007 | PyObject * obj1 = 0 ; | |
5008 | PyObject * obj2 = 0 ; | |
5009 | PyObject * obj3 = 0 ; | |
d55e5bfc | 5010 | char *kwnames[] = { |
36ed4f51 | 5011 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL |
d55e5bfc RD |
5012 | }; |
5013 | ||
36ed4f51 | 5014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
5015 | { |
5016 | arg1 = wxString_in_helper(obj0); | |
5017 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 5018 | temp1 = true; |
d55e5bfc | 5019 | } |
36ed4f51 RD |
5020 | if (obj1) { |
5021 | { | |
5022 | arg2 = wxString_in_helper(obj1); | |
5023 | if (arg2 == NULL) SWIG_fail; | |
5024 | temp2 = true; | |
5025 | } | |
d55e5bfc | 5026 | } |
36ed4f51 | 5027 | if (obj2) { |
d55e5bfc | 5028 | { |
36ed4f51 RD |
5029 | arg3 = wxString_in_helper(obj2); |
5030 | if (arg3 == NULL) SWIG_fail; | |
5031 | temp3 = true; | |
d55e5bfc RD |
5032 | } |
5033 | } | |
36ed4f51 RD |
5034 | if (obj3) { |
5035 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5036 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5037 | } | |
d55e5bfc | 5038 | { |
0439c23b | 5039 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 5041 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d55e5bfc RD |
5042 | |
5043 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5044 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5045 | } |
36ed4f51 RD |
5046 | { |
5047 | #if wxUSE_UNICODE | |
5048 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5049 | #else | |
5050 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5051 | #endif | |
5052 | } | |
d55e5bfc RD |
5053 | { |
5054 | if (temp1) | |
5055 | delete arg1; | |
5056 | } | |
5057 | { | |
5058 | if (temp2) | |
5059 | delete arg2; | |
5060 | } | |
5061 | { | |
5062 | if (temp3) | |
5063 | delete arg3; | |
5064 | } | |
5065 | return resultobj; | |
5066 | fail: | |
5067 | { | |
5068 | if (temp1) | |
5069 | delete arg1; | |
5070 | } | |
5071 | { | |
5072 | if (temp2) | |
5073 | delete arg2; | |
5074 | } | |
5075 | { | |
5076 | if (temp3) | |
5077 | delete arg3; | |
5078 | } | |
5079 | return NULL; | |
5080 | } | |
5081 | ||
5082 | ||
36ed4f51 | 5083 | static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 5084 | PyObject *resultobj; |
36ed4f51 RD |
5085 | wxString *arg1 = 0 ; |
5086 | wxString *arg2 = 0 ; | |
5087 | int arg3 ; | |
5088 | wxString *arg4 = (wxString *) 0 ; | |
5089 | wxWindow *arg5 = (wxWindow *) NULL ; | |
5090 | int arg6 = (int) -1 ; | |
5091 | int arg7 = (int) -1 ; | |
5092 | bool arg8 = (bool) true ; | |
5093 | int arg9 = (int) 150 ; | |
5094 | int arg10 = (int) 200 ; | |
5095 | wxString result; | |
5096 | bool temp1 = false ; | |
5097 | bool temp2 = false ; | |
5098 | PyObject * obj0 = 0 ; | |
5099 | PyObject * obj1 = 0 ; | |
5100 | PyObject * obj2 = 0 ; | |
5101 | PyObject * obj3 = 0 ; | |
5102 | PyObject * obj4 = 0 ; | |
5103 | PyObject * obj5 = 0 ; | |
5104 | PyObject * obj6 = 0 ; | |
5105 | PyObject * obj7 = 0 ; | |
5106 | PyObject * obj8 = 0 ; | |
d55e5bfc | 5107 | char *kwnames[] = { |
36ed4f51 | 5108 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
5109 | }; |
5110 | ||
36ed4f51 RD |
5111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
5112 | { | |
5113 | arg1 = wxString_in_helper(obj0); | |
5114 | if (arg1 == NULL) SWIG_fail; | |
5115 | temp1 = true; | |
5116 | } | |
5117 | { | |
5118 | arg2 = wxString_in_helper(obj1); | |
5119 | if (arg2 == NULL) SWIG_fail; | |
5120 | temp2 = true; | |
5121 | } | |
5122 | { | |
5123 | arg3 = PyList_Size(obj2); | |
5124 | arg4 = wxString_LIST_helper(obj2); | |
5125 | if (arg4 == NULL) SWIG_fail; | |
5126 | } | |
5127 | if (obj3) { | |
5128 | SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5129 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5130 | } | |
5131 | if (obj4) { | |
5132 | { | |
5133 | arg6 = (int)(SWIG_As_int(obj4)); | |
5134 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5135 | } | |
5136 | } | |
5137 | if (obj5) { | |
5138 | { | |
5139 | arg7 = (int)(SWIG_As_int(obj5)); | |
5140 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5141 | } | |
5142 | } | |
5143 | if (obj6) { | |
5144 | { | |
5145 | arg8 = (bool)(SWIG_As_bool(obj6)); | |
5146 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5147 | } | |
5148 | } | |
5149 | if (obj7) { | |
5150 | { | |
5151 | arg9 = (int)(SWIG_As_int(obj7)); | |
5152 | if (SWIG_arg_fail(9)) SWIG_fail; | |
5153 | } | |
5154 | } | |
5155 | if (obj8) { | |
5156 | { | |
5157 | arg10 = (int)(SWIG_As_int(obj8)); | |
5158 | if (SWIG_arg_fail(10)) SWIG_fail; | |
5159 | } | |
5160 | } | |
d55e5bfc | 5161 | { |
0439c23b | 5162 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 5164 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); |
d55e5bfc RD |
5165 | |
5166 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5167 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5168 | } |
5169 | { | |
36ed4f51 RD |
5170 | #if wxUSE_UNICODE |
5171 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5172 | #else | |
5173 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5174 | #endif | |
5175 | } | |
5176 | { | |
5177 | if (temp1) | |
5178 | delete arg1; | |
5179 | } | |
5180 | { | |
5181 | if (temp2) | |
5182 | delete arg2; | |
5183 | } | |
5184 | { | |
5185 | if (arg4) delete [] arg4; | |
d55e5bfc RD |
5186 | } |
5187 | return resultobj; | |
5188 | fail: | |
36ed4f51 RD |
5189 | { |
5190 | if (temp1) | |
5191 | delete arg1; | |
5192 | } | |
5193 | { | |
5194 | if (temp2) | |
5195 | delete arg2; | |
5196 | } | |
5197 | { | |
5198 | if (arg4) delete [] arg4; | |
5199 | } | |
d55e5bfc RD |
5200 | return NULL; |
5201 | } | |
5202 | ||
5203 | ||
36ed4f51 | 5204 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 5205 | PyObject *resultobj; |
36ed4f51 RD |
5206 | wxString *arg1 = 0 ; |
5207 | wxString *arg2 = 0 ; | |
5208 | int arg3 ; | |
5209 | wxString *arg4 = (wxString *) 0 ; | |
5210 | wxWindow *arg5 = (wxWindow *) NULL ; | |
5211 | int arg6 = (int) -1 ; | |
5212 | int arg7 = (int) -1 ; | |
5213 | bool arg8 = (bool) true ; | |
5214 | int arg9 = (int) 150 ; | |
5215 | int arg10 = (int) 200 ; | |
d55e5bfc | 5216 | int result; |
36ed4f51 RD |
5217 | bool temp1 = false ; |
5218 | bool temp2 = false ; | |
5219 | PyObject * obj0 = 0 ; | |
5220 | PyObject * obj1 = 0 ; | |
5221 | PyObject * obj2 = 0 ; | |
5222 | PyObject * obj3 = 0 ; | |
5223 | PyObject * obj4 = 0 ; | |
5224 | PyObject * obj5 = 0 ; | |
5225 | PyObject * obj6 = 0 ; | |
5226 | PyObject * obj7 = 0 ; | |
5227 | PyObject * obj8 = 0 ; | |
d55e5bfc | 5228 | char *kwnames[] = { |
36ed4f51 | 5229 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
5230 | }; |
5231 | ||
36ed4f51 RD |
5232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
5233 | { | |
5234 | arg1 = wxString_in_helper(obj0); | |
5235 | if (arg1 == NULL) SWIG_fail; | |
5236 | temp1 = true; | |
5237 | } | |
5238 | { | |
5239 | arg2 = wxString_in_helper(obj1); | |
5240 | if (arg2 == NULL) SWIG_fail; | |
5241 | temp2 = true; | |
5242 | } | |
5243 | { | |
5244 | arg3 = PyList_Size(obj2); | |
5245 | arg4 = wxString_LIST_helper(obj2); | |
5246 | if (arg4 == NULL) SWIG_fail; | |
5247 | } | |
5248 | if (obj3) { | |
5249 | SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5250 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5251 | } | |
5252 | if (obj4) { | |
5253 | { | |
5254 | arg6 = (int)(SWIG_As_int(obj4)); | |
5255 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5256 | } | |
5257 | } | |
5258 | if (obj5) { | |
5259 | { | |
5260 | arg7 = (int)(SWIG_As_int(obj5)); | |
5261 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5262 | } | |
5263 | } | |
5264 | if (obj6) { | |
5265 | { | |
5266 | arg8 = (bool)(SWIG_As_bool(obj6)); | |
5267 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5268 | } | |
5269 | } | |
5270 | if (obj7) { | |
5271 | { | |
5272 | arg9 = (int)(SWIG_As_int(obj7)); | |
5273 | if (SWIG_arg_fail(9)) SWIG_fail; | |
5274 | } | |
5275 | } | |
5276 | if (obj8) { | |
5277 | { | |
5278 | arg10 = (int)(SWIG_As_int(obj8)); | |
5279 | if (SWIG_arg_fail(10)) SWIG_fail; | |
5280 | } | |
5281 | } | |
d55e5bfc | 5282 | { |
0439c23b | 5283 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 5285 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); |
d55e5bfc RD |
5286 | |
5287 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5288 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5289 | } |
36ed4f51 RD |
5290 | { |
5291 | resultobj = SWIG_From_int((int)(result)); | |
5292 | } | |
5293 | { | |
5294 | if (temp1) | |
5295 | delete arg1; | |
5296 | } | |
5297 | { | |
5298 | if (temp2) | |
5299 | delete arg2; | |
5300 | } | |
5301 | { | |
5302 | if (arg4) delete [] arg4; | |
5303 | } | |
d55e5bfc RD |
5304 | return resultobj; |
5305 | fail: | |
36ed4f51 RD |
5306 | { |
5307 | if (temp1) | |
5308 | delete arg1; | |
5309 | } | |
5310 | { | |
5311 | if (temp2) | |
5312 | delete arg2; | |
5313 | } | |
5314 | { | |
5315 | if (arg4) delete [] arg4; | |
5316 | } | |
d55e5bfc RD |
5317 | return NULL; |
5318 | } | |
5319 | ||
5320 | ||
36ed4f51 | 5321 | static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 5322 | PyObject *resultobj; |
36ed4f51 RD |
5323 | wxString *arg1 = 0 ; |
5324 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5325 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5326 | int arg3 = (int) wxOK|wxCENTRE ; | |
5327 | wxWindow *arg4 = (wxWindow *) NULL ; | |
5328 | int arg5 = (int) -1 ; | |
5329 | int arg6 = (int) -1 ; | |
d55e5bfc | 5330 | int result; |
36ed4f51 RD |
5331 | bool temp1 = false ; |
5332 | bool temp2 = false ; | |
5333 | PyObject * obj0 = 0 ; | |
5334 | PyObject * obj1 = 0 ; | |
5335 | PyObject * obj2 = 0 ; | |
5336 | PyObject * obj3 = 0 ; | |
5337 | PyObject * obj4 = 0 ; | |
5338 | PyObject * obj5 = 0 ; | |
d55e5bfc | 5339 | char *kwnames[] = { |
36ed4f51 | 5340 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
5341 | }; |
5342 | ||
36ed4f51 | 5343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc | 5344 | { |
36ed4f51 RD |
5345 | arg1 = wxString_in_helper(obj0); |
5346 | if (arg1 == NULL) SWIG_fail; | |
5347 | temp1 = true; | |
d55e5bfc | 5348 | } |
36ed4f51 RD |
5349 | if (obj1) { |
5350 | { | |
5351 | arg2 = wxString_in_helper(obj1); | |
5352 | if (arg2 == NULL) SWIG_fail; | |
5353 | temp2 = true; | |
5354 | } | |
5355 | } | |
5356 | if (obj2) { | |
5357 | { | |
5358 | arg3 = (int)(SWIG_As_int(obj2)); | |
5359 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5360 | } | |
5361 | } | |
5362 | if (obj3) { | |
5363 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5364 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5365 | } | |
5366 | if (obj4) { | |
5367 | { | |
5368 | arg5 = (int)(SWIG_As_int(obj4)); | |
5369 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5370 | } | |
5371 | } | |
5372 | if (obj5) { | |
5373 | { | |
5374 | arg6 = (int)(SWIG_As_int(obj5)); | |
5375 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5376 | } | |
5377 | } | |
5378 | { | |
5379 | if (!wxPyCheckForApp()) SWIG_fail; | |
5380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5381 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
5382 | ||
5383 | wxPyEndAllowThreads(__tstate); | |
5384 | if (PyErr_Occurred()) SWIG_fail; | |
5385 | } | |
5386 | { | |
5387 | resultobj = SWIG_From_int((int)(result)); | |
5388 | } | |
5389 | { | |
5390 | if (temp1) | |
5391 | delete arg1; | |
5392 | } | |
5393 | { | |
5394 | if (temp2) | |
5395 | delete arg2; | |
5396 | } | |
5397 | return resultobj; | |
5398 | fail: | |
5399 | { | |
5400 | if (temp1) | |
5401 | delete arg1; | |
5402 | } | |
5403 | { | |
5404 | if (temp2) | |
5405 | delete arg2; | |
5406 | } | |
5407 | return NULL; | |
5408 | } | |
5409 | ||
5410 | ||
5411 | static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) { | |
5412 | PyObject *resultobj; | |
5413 | wxString *arg1 = 0 ; | |
5414 | wxString *arg2 = 0 ; | |
5415 | wxString *arg3 = 0 ; | |
5416 | long arg4 ; | |
5417 | long arg5 = (long) 0 ; | |
5418 | long arg6 = (long) 100 ; | |
5419 | wxWindow *arg7 = (wxWindow *) NULL ; | |
5420 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
5421 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
5422 | long result; | |
5423 | bool temp1 = false ; | |
5424 | bool temp2 = false ; | |
5425 | bool temp3 = false ; | |
5426 | wxPoint temp8 ; | |
5427 | PyObject * obj0 = 0 ; | |
5428 | PyObject * obj1 = 0 ; | |
5429 | PyObject * obj2 = 0 ; | |
5430 | PyObject * obj3 = 0 ; | |
5431 | PyObject * obj4 = 0 ; | |
5432 | PyObject * obj5 = 0 ; | |
5433 | PyObject * obj6 = 0 ; | |
5434 | PyObject * obj7 = 0 ; | |
5435 | char *kwnames[] = { | |
5436 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
5437 | }; | |
5438 | ||
5439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
5440 | { | |
5441 | arg1 = wxString_in_helper(obj0); | |
5442 | if (arg1 == NULL) SWIG_fail; | |
5443 | temp1 = true; | |
5444 | } | |
5445 | { | |
5446 | arg2 = wxString_in_helper(obj1); | |
5447 | if (arg2 == NULL) SWIG_fail; | |
5448 | temp2 = true; | |
5449 | } | |
5450 | { | |
5451 | arg3 = wxString_in_helper(obj2); | |
5452 | if (arg3 == NULL) SWIG_fail; | |
5453 | temp3 = true; | |
5454 | } | |
5455 | { | |
5456 | arg4 = (long)(SWIG_As_long(obj3)); | |
5457 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5458 | } | |
5459 | if (obj4) { | |
5460 | { | |
5461 | arg5 = (long)(SWIG_As_long(obj4)); | |
5462 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5463 | } | |
5464 | } | |
5465 | if (obj5) { | |
5466 | { | |
5467 | arg6 = (long)(SWIG_As_long(obj5)); | |
5468 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5469 | } | |
5470 | } | |
5471 | if (obj6) { | |
5472 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5473 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5474 | } | |
5475 | if (obj7) { | |
5476 | { | |
5477 | arg8 = &temp8; | |
5478 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
5479 | } | |
5480 | } | |
5481 | { | |
5482 | if (!wxPyCheckForApp()) SWIG_fail; | |
5483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5484 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
5485 | ||
5486 | wxPyEndAllowThreads(__tstate); | |
5487 | if (PyErr_Occurred()) SWIG_fail; | |
5488 | } | |
5489 | { | |
5490 | resultobj = SWIG_From_long((long)(result)); | |
5491 | } | |
5492 | { | |
5493 | if (temp1) | |
5494 | delete arg1; | |
5495 | } | |
5496 | { | |
5497 | if (temp2) | |
5498 | delete arg2; | |
5499 | } | |
5500 | { | |
5501 | if (temp3) | |
5502 | delete arg3; | |
5503 | } | |
5504 | return resultobj; | |
5505 | fail: | |
5506 | { | |
5507 | if (temp1) | |
5508 | delete arg1; | |
5509 | } | |
5510 | { | |
5511 | if (temp2) | |
5512 | delete arg2; | |
5513 | } | |
5514 | { | |
5515 | if (temp3) | |
5516 | delete arg3; | |
5517 | } | |
5518 | return NULL; | |
5519 | } | |
5520 | ||
5521 | ||
5522 | static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) { | |
5523 | PyObject *resultobj; | |
5524 | bool result; | |
5525 | char *kwnames[] = { | |
5526 | NULL | |
5527 | }; | |
5528 | ||
5529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
5530 | { | |
5531 | if (!wxPyCheckForApp()) SWIG_fail; | |
5532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5533 | result = (bool)wxColourDisplay(); | |
5534 | ||
5535 | wxPyEndAllowThreads(__tstate); | |
5536 | if (PyErr_Occurred()) SWIG_fail; | |
5537 | } | |
5538 | { | |
5539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5540 | } | |
5541 | return resultobj; | |
5542 | fail: | |
5543 | return NULL; | |
5544 | } | |
5545 | ||
5546 | ||
5547 | static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
5548 | PyObject *resultobj; | |
5549 | int result; | |
5550 | char *kwnames[] = { | |
5551 | NULL | |
5552 | }; | |
5553 | ||
5554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
5555 | { | |
5556 | if (!wxPyCheckForApp()) SWIG_fail; | |
5557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5558 | result = (int)wxDisplayDepth(); | |
5559 | ||
5560 | wxPyEndAllowThreads(__tstate); | |
5561 | if (PyErr_Occurred()) SWIG_fail; | |
5562 | } | |
5563 | { | |
5564 | resultobj = SWIG_From_int((int)(result)); | |
5565 | } | |
5566 | return resultobj; | |
5567 | fail: | |
5568 | return NULL; | |
5569 | } | |
5570 | ||
5571 | ||
5572 | static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
5573 | PyObject *resultobj; | |
5574 | int result; | |
5575 | char *kwnames[] = { | |
5576 | NULL | |
5577 | }; | |
5578 | ||
5579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
5580 | { | |
5581 | if (!wxPyCheckForApp()) SWIG_fail; | |
5582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5583 | result = (int)wxGetDisplayDepth(); | |
5584 | ||
5585 | wxPyEndAllowThreads(__tstate); | |
5586 | if (PyErr_Occurred()) SWIG_fail; | |
5587 | } | |
5588 | { | |
5589 | resultobj = SWIG_From_int((int)(result)); | |
5590 | } | |
5591 | return resultobj; | |
5592 | fail: | |
5593 | return NULL; | |
5594 | } | |
5595 | ||
5596 | ||
5597 | static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5598 | PyObject *resultobj; | |
5599 | int *arg1 = (int *) 0 ; | |
d55e5bfc RD |
5600 | int *arg2 = (int *) 0 ; |
5601 | int temp1 ; | |
c370783e | 5602 | int res1 = 0 ; |
d55e5bfc | 5603 | int temp2 ; |
c370783e | 5604 | int res2 = 0 ; |
d55e5bfc RD |
5605 | char *kwnames[] = { |
5606 | NULL | |
5607 | }; | |
5608 | ||
c370783e RD |
5609 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
5610 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; |
5612 | { | |
0439c23b | 5613 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5615 | wxDisplaySize(arg1,arg2); | |
5616 | ||
5617 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5618 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5619 | } |
5620 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
5621 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
5622 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5623 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5624 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5625 | return resultobj; |
5626 | fail: | |
5627 | return NULL; | |
5628 | } | |
5629 | ||
5630 | ||
c370783e | 5631 | static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5632 | PyObject *resultobj; |
5633 | wxSize result; | |
5634 | char *kwnames[] = { | |
5635 | NULL | |
5636 | }; | |
5637 | ||
5638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
5639 | { | |
0439c23b | 5640 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5642 | result = wxGetDisplaySize(); | |
5643 | ||
5644 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5645 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5646 | } |
5647 | { | |
5648 | wxSize * resultptr; | |
36ed4f51 | 5649 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
5650 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
5651 | } | |
5652 | return resultobj; | |
5653 | fail: | |
5654 | return NULL; | |
5655 | } | |
5656 | ||
5657 | ||
c370783e | 5658 | static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5659 | PyObject *resultobj; |
5660 | int *arg1 = (int *) 0 ; | |
5661 | int *arg2 = (int *) 0 ; | |
5662 | int temp1 ; | |
c370783e | 5663 | int res1 = 0 ; |
d55e5bfc | 5664 | int temp2 ; |
c370783e | 5665 | int res2 = 0 ; |
d55e5bfc RD |
5666 | char *kwnames[] = { |
5667 | NULL | |
5668 | }; | |
5669 | ||
c370783e RD |
5670 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
5671 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; |
5673 | { | |
0439c23b | 5674 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5676 | wxDisplaySizeMM(arg1,arg2); | |
5677 | ||
5678 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5679 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5680 | } |
5681 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
5682 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
5683 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5684 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5685 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5686 | return resultobj; |
5687 | fail: | |
5688 | return NULL; | |
5689 | } | |
5690 | ||
5691 | ||
c370783e | 5692 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5693 | PyObject *resultobj; |
5694 | wxSize result; | |
5695 | char *kwnames[] = { | |
5696 | NULL | |
5697 | }; | |
5698 | ||
5699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
5700 | { | |
0439c23b | 5701 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5703 | result = wxGetDisplaySizeMM(); | |
5704 | ||
5705 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5706 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5707 | } |
5708 | { | |
5709 | wxSize * resultptr; | |
36ed4f51 | 5710 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
5711 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
5712 | } | |
5713 | return resultobj; | |
5714 | fail: | |
5715 | return NULL; | |
5716 | } | |
5717 | ||
5718 | ||
c370783e | 5719 | static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5720 | PyObject *resultobj; |
5721 | int *arg1 = (int *) 0 ; | |
5722 | int *arg2 = (int *) 0 ; | |
5723 | int *arg3 = (int *) 0 ; | |
5724 | int *arg4 = (int *) 0 ; | |
5725 | int temp1 ; | |
c370783e | 5726 | int res1 = 0 ; |
d55e5bfc | 5727 | int temp2 ; |
c370783e | 5728 | int res2 = 0 ; |
d55e5bfc | 5729 | int temp3 ; |
c370783e | 5730 | int res3 = 0 ; |
d55e5bfc | 5731 | int temp4 ; |
c370783e | 5732 | int res4 = 0 ; |
d55e5bfc RD |
5733 | char *kwnames[] = { |
5734 | NULL | |
5735 | }; | |
5736 | ||
c370783e RD |
5737 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
5738 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
5739 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
5740 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; |
5742 | { | |
0439c23b | 5743 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5745 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
5746 | ||
5747 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5748 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5749 | } |
5750 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
5751 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
5752 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5753 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5754 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5755 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5756 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
5757 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
5758 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5759 | return resultobj; |
5760 | fail: | |
5761 | return NULL; | |
5762 | } | |
5763 | ||
5764 | ||
c370783e | 5765 | static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5766 | PyObject *resultobj; |
5767 | wxRect result; | |
5768 | char *kwnames[] = { | |
5769 | NULL | |
5770 | }; | |
5771 | ||
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
5773 | { | |
0439c23b | 5774 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5776 | result = wxGetClientDisplayRect(); | |
5777 | ||
5778 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5779 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5780 | } |
5781 | { | |
5782 | wxRect * resultptr; | |
36ed4f51 | 5783 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
5784 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
5785 | } | |
5786 | return resultobj; | |
5787 | fail: | |
5788 | return NULL; | |
5789 | } | |
5790 | ||
5791 | ||
c370783e | 5792 | static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5793 | PyObject *resultobj; |
5794 | wxCursor *arg1 = 0 ; | |
5795 | PyObject * obj0 = 0 ; | |
5796 | char *kwnames[] = { | |
5797 | (char *) "cursor", NULL | |
5798 | }; | |
5799 | ||
5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5801 | { |
5802 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
5803 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5804 | if (arg1 == NULL) { | |
5805 | SWIG_null_ref("wxCursor"); | |
5806 | } | |
5807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5808 | } |
5809 | { | |
0439c23b | 5810 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5812 | wxSetCursor(*arg1); | |
5813 | ||
5814 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5815 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5816 | } |
5817 | Py_INCREF(Py_None); resultobj = Py_None; | |
5818 | return resultobj; | |
5819 | fail: | |
5820 | return NULL; | |
5821 | } | |
5822 | ||
5823 | ||
c370783e | 5824 | static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5825 | PyObject *resultobj; |
5826 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5827 | PyObject * obj0 = 0 ; | |
5828 | char *kwnames[] = { | |
5829 | (char *) "cursor", NULL | |
5830 | }; | |
5831 | ||
5832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
5833 | if (obj0) { | |
36ed4f51 RD |
5834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); |
5835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5836 | } |
5837 | { | |
0439c23b | 5838 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5840 | wxBeginBusyCursor(arg1); | |
5841 | ||
5842 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5843 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5844 | } |
5845 | Py_INCREF(Py_None); resultobj = Py_None; | |
5846 | return resultobj; | |
5847 | fail: | |
5848 | return NULL; | |
5849 | } | |
5850 | ||
5851 | ||
c370783e | 5852 | static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5853 | PyObject *resultobj; |
5854 | wxWindow *result; | |
5855 | char *kwnames[] = { | |
5856 | NULL | |
5857 | }; | |
5858 | ||
5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
5860 | { | |
0439c23b | 5861 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5863 | result = (wxWindow *)wxGetActiveWindow(); | |
5864 | ||
5865 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5866 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5867 | } |
5868 | { | |
412d302d | 5869 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5870 | } |
5871 | return resultobj; | |
5872 | fail: | |
5873 | return NULL; | |
5874 | } | |
5875 | ||
5876 | ||
c370783e | 5877 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5878 | PyObject *resultobj; |
5879 | wxPoint *arg1 = 0 ; | |
5880 | wxWindow *result; | |
5881 | wxPoint temp1 ; | |
5882 | PyObject * obj0 = 0 ; | |
5883 | char *kwnames[] = { | |
5884 | (char *) "pt", NULL | |
5885 | }; | |
5886 | ||
5887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
5888 | { | |
5889 | arg1 = &temp1; | |
5890 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
5891 | } | |
5892 | { | |
0439c23b | 5893 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5895 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
5896 | ||
5897 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5898 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5899 | } |
5900 | { | |
412d302d | 5901 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5902 | } |
5903 | return resultobj; | |
5904 | fail: | |
5905 | return NULL; | |
5906 | } | |
5907 | ||
5908 | ||
c370783e | 5909 | static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5910 | PyObject *resultobj; |
5911 | wxPoint *arg1 = 0 ; | |
5912 | wxWindow *result; | |
5913 | wxPoint temp1 ; | |
5914 | PyObject * obj0 = 0 ; | |
5915 | char *kwnames[] = { | |
5916 | (char *) "pt", NULL | |
5917 | }; | |
5918 | ||
5919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
5920 | { | |
5921 | arg1 = &temp1; | |
5922 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
5923 | } | |
5924 | { | |
0439c23b | 5925 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5927 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
5928 | ||
5929 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5930 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5931 | } |
5932 | { | |
412d302d | 5933 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5934 | } |
5935 | return resultobj; | |
5936 | fail: | |
5937 | return NULL; | |
5938 | } | |
5939 | ||
5940 | ||
c370783e | 5941 | static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5942 | PyObject *resultobj; |
5943 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5944 | wxWindow *result; | |
5945 | PyObject * obj0 = 0 ; | |
5946 | char *kwnames[] = { | |
5947 | (char *) "win", NULL | |
5948 | }; | |
5949 | ||
5950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5951 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5952 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 5953 | { |
0439c23b | 5954 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5956 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
5957 | ||
5958 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5959 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5960 | } |
5961 | { | |
412d302d | 5962 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5963 | } |
5964 | return resultobj; | |
5965 | fail: | |
5966 | return NULL; | |
5967 | } | |
5968 | ||
5969 | ||
c370783e | 5970 | static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 5971 | PyObject *resultobj; |
36ed4f51 | 5972 | wxKeyCode arg1 ; |
d55e5bfc RD |
5973 | bool result; |
5974 | PyObject * obj0 = 0 ; | |
5975 | char *kwnames[] = { | |
5976 | (char *) "key", NULL | |
5977 | }; | |
5978 | ||
5979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5980 | { |
5981 | arg1 = (wxKeyCode)(SWIG_As_int(obj0)); | |
5982 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5983 | } | |
d55e5bfc | 5984 | { |
0439c23b | 5985 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5987 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
5988 | ||
5989 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5990 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5991 | } |
5992 | { | |
5993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5994 | } | |
5995 | return resultobj; | |
5996 | fail: | |
5997 | return NULL; | |
5998 | } | |
5999 | ||
6000 | ||
c370783e | 6001 | static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6002 | PyObject *resultobj; |
6003 | char *kwnames[] = { | |
6004 | NULL | |
6005 | }; | |
6006 | ||
6007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
6008 | { | |
0439c23b | 6009 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6011 | wxWakeUpMainThread(); | |
6012 | ||
6013 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6014 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6015 | } |
6016 | Py_INCREF(Py_None); resultobj = Py_None; | |
6017 | return resultobj; | |
6018 | fail: | |
6019 | return NULL; | |
6020 | } | |
6021 | ||
6022 | ||
c370783e | 6023 | static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6024 | PyObject *resultobj; |
6025 | char *kwnames[] = { | |
6026 | NULL | |
6027 | }; | |
6028 | ||
6029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
6030 | { | |
0439c23b | 6031 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6033 | wxMutexGuiEnter(); | |
6034 | ||
6035 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6036 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6037 | } |
6038 | Py_INCREF(Py_None); resultobj = Py_None; | |
6039 | return resultobj; | |
6040 | fail: | |
6041 | return NULL; | |
6042 | } | |
6043 | ||
6044 | ||
c370783e | 6045 | static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6046 | PyObject *resultobj; |
6047 | char *kwnames[] = { | |
6048 | NULL | |
6049 | }; | |
6050 | ||
6051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
6052 | { | |
0439c23b | 6053 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6055 | wxMutexGuiLeave(); | |
6056 | ||
6057 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6058 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6059 | } |
6060 | Py_INCREF(Py_None); resultobj = Py_None; | |
6061 | return resultobj; | |
6062 | fail: | |
6063 | return NULL; | |
6064 | } | |
6065 | ||
6066 | ||
c370783e | 6067 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6068 | PyObject *resultobj; |
6069 | wxMutexGuiLocker *result; | |
6070 | char *kwnames[] = { | |
6071 | NULL | |
6072 | }; | |
6073 | ||
6074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
6075 | { | |
0439c23b | 6076 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6078 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
6079 | ||
6080 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6081 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6082 | } |
6083 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
6084 | return resultobj; | |
6085 | fail: | |
6086 | return NULL; | |
6087 | } | |
6088 | ||
6089 | ||
c370783e | 6090 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6091 | PyObject *resultobj; |
6092 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
6093 | PyObject * obj0 = 0 ; | |
6094 | char *kwnames[] = { | |
6095 | (char *) "self", NULL | |
6096 | }; | |
6097 | ||
6098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMutexGuiLocker, SWIG_POINTER_EXCEPTION | 0); |
6100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6101 | { |
6102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6103 | delete arg1; | |
6104 | ||
6105 | wxPyEndAllowThreads(__tstate); | |
6106 | if (PyErr_Occurred()) SWIG_fail; | |
6107 | } | |
6108 | Py_INCREF(Py_None); resultobj = Py_None; | |
6109 | return resultobj; | |
6110 | fail: | |
6111 | return NULL; | |
6112 | } | |
6113 | ||
6114 | ||
c370783e | 6115 | static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6116 | PyObject *obj; |
6117 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6118 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
6119 | Py_INCREF(obj); | |
6120 | return Py_BuildValue((char *)""); | |
6121 | } | |
c370783e | 6122 | static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6123 | PyObject *resultobj; |
6124 | bool result; | |
6125 | char *kwnames[] = { | |
6126 | NULL | |
6127 | }; | |
6128 | ||
6129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
6130 | { | |
6131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6132 | result = (bool)wxThread_IsMain(); | |
6133 | ||
6134 | wxPyEndAllowThreads(__tstate); | |
6135 | if (PyErr_Occurred()) SWIG_fail; | |
6136 | } | |
6137 | { | |
6138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6139 | } | |
6140 | return resultobj; | |
6141 | fail: | |
6142 | return NULL; | |
6143 | } | |
6144 | ||
6145 | ||
c370783e | 6146 | static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6147 | PyObject *resultobj; |
6148 | wxString *arg1 = 0 ; | |
6149 | wxToolTip *result; | |
b411df4a | 6150 | bool temp1 = false ; |
d55e5bfc RD |
6151 | PyObject * obj0 = 0 ; |
6152 | char *kwnames[] = { | |
6153 | (char *) "tip", NULL | |
6154 | }; | |
6155 | ||
6156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
6157 | { | |
6158 | arg1 = wxString_in_helper(obj0); | |
6159 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 6160 | temp1 = true; |
d55e5bfc RD |
6161 | } |
6162 | { | |
0439c23b | 6163 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6165 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
6166 | ||
6167 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6168 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6169 | } |
6170 | { | |
412d302d | 6171 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6172 | } |
6173 | { | |
6174 | if (temp1) | |
6175 | delete arg1; | |
6176 | } | |
6177 | return resultobj; | |
6178 | fail: | |
6179 | { | |
6180 | if (temp1) | |
6181 | delete arg1; | |
6182 | } | |
6183 | return NULL; | |
6184 | } | |
6185 | ||
6186 | ||
c370783e | 6187 | static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6188 | PyObject *resultobj; |
6189 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
6190 | wxString *arg2 = 0 ; | |
b411df4a | 6191 | bool temp2 = false ; |
d55e5bfc RD |
6192 | PyObject * obj0 = 0 ; |
6193 | PyObject * obj1 = 0 ; | |
6194 | char *kwnames[] = { | |
6195 | (char *) "self",(char *) "tip", NULL | |
6196 | }; | |
6197 | ||
6198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
6199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
6200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6201 | { |
6202 | arg2 = wxString_in_helper(obj1); | |
6203 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6204 | temp2 = true; |
d55e5bfc RD |
6205 | } |
6206 | { | |
6207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6208 | (arg1)->SetTip((wxString const &)*arg2); | |
6209 | ||
6210 | wxPyEndAllowThreads(__tstate); | |
6211 | if (PyErr_Occurred()) SWIG_fail; | |
6212 | } | |
6213 | Py_INCREF(Py_None); resultobj = Py_None; | |
6214 | { | |
6215 | if (temp2) | |
6216 | delete arg2; | |
6217 | } | |
6218 | return resultobj; | |
6219 | fail: | |
6220 | { | |
6221 | if (temp2) | |
6222 | delete arg2; | |
6223 | } | |
6224 | return NULL; | |
6225 | } | |
6226 | ||
6227 | ||
c370783e | 6228 | static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6229 | PyObject *resultobj; |
6230 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
6231 | wxString result; | |
6232 | PyObject * obj0 = 0 ; | |
6233 | char *kwnames[] = { | |
6234 | (char *) "self", NULL | |
6235 | }; | |
6236 | ||
6237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
6239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6240 | { |
6241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6242 | result = (arg1)->GetTip(); | |
6243 | ||
6244 | wxPyEndAllowThreads(__tstate); | |
6245 | if (PyErr_Occurred()) SWIG_fail; | |
6246 | } | |
6247 | { | |
6248 | #if wxUSE_UNICODE | |
6249 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6250 | #else | |
6251 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6252 | #endif | |
6253 | } | |
6254 | return resultobj; | |
6255 | fail: | |
6256 | return NULL; | |
6257 | } | |
6258 | ||
6259 | ||
c370783e | 6260 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6261 | PyObject *resultobj; |
6262 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
6263 | wxWindow *result; | |
6264 | PyObject * obj0 = 0 ; | |
6265 | char *kwnames[] = { | |
6266 | (char *) "self", NULL | |
6267 | }; | |
6268 | ||
6269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
6271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6272 | { |
6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6274 | result = (wxWindow *)(arg1)->GetWindow(); | |
6275 | ||
6276 | wxPyEndAllowThreads(__tstate); | |
6277 | if (PyErr_Occurred()) SWIG_fail; | |
6278 | } | |
6279 | { | |
412d302d | 6280 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
6281 | } |
6282 | return resultobj; | |
6283 | fail: | |
6284 | return NULL; | |
6285 | } | |
6286 | ||
6287 | ||
c370783e | 6288 | static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6289 | PyObject *resultobj; |
6290 | bool arg1 ; | |
6291 | PyObject * obj0 = 0 ; | |
6292 | char *kwnames[] = { | |
6293 | (char *) "flag", NULL | |
6294 | }; | |
6295 | ||
6296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6297 | { |
6298 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
6299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6300 | } | |
d55e5bfc RD |
6301 | { |
6302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6303 | wxToolTip::Enable(arg1); | |
6304 | ||
6305 | wxPyEndAllowThreads(__tstate); | |
6306 | if (PyErr_Occurred()) SWIG_fail; | |
6307 | } | |
6308 | Py_INCREF(Py_None); resultobj = Py_None; | |
6309 | return resultobj; | |
6310 | fail: | |
6311 | return NULL; | |
6312 | } | |
6313 | ||
6314 | ||
c370783e | 6315 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6316 | PyObject *resultobj; |
6317 | long arg1 ; | |
6318 | PyObject * obj0 = 0 ; | |
6319 | char *kwnames[] = { | |
6320 | (char *) "milliseconds", NULL | |
6321 | }; | |
6322 | ||
6323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6324 | { |
6325 | arg1 = (long)(SWIG_As_long(obj0)); | |
6326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6327 | } | |
d55e5bfc RD |
6328 | { |
6329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6330 | wxToolTip::SetDelay(arg1); | |
6331 | ||
6332 | wxPyEndAllowThreads(__tstate); | |
6333 | if (PyErr_Occurred()) SWIG_fail; | |
6334 | } | |
6335 | Py_INCREF(Py_None); resultobj = Py_None; | |
6336 | return resultobj; | |
6337 | fail: | |
6338 | return NULL; | |
6339 | } | |
6340 | ||
6341 | ||
c370783e | 6342 | static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6343 | PyObject *obj; |
6344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6345 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
6346 | Py_INCREF(obj); | |
6347 | return Py_BuildValue((char *)""); | |
6348 | } | |
c370783e | 6349 | static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6350 | PyObject *resultobj; |
6351 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6352 | wxSize *arg2 = 0 ; | |
6353 | wxCaret *result; | |
6354 | wxSize temp2 ; | |
6355 | PyObject * obj0 = 0 ; | |
6356 | PyObject * obj1 = 0 ; | |
6357 | char *kwnames[] = { | |
6358 | (char *) "window",(char *) "size", NULL | |
6359 | }; | |
6360 | ||
6361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
6362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6364 | { |
6365 | arg2 = &temp2; | |
6366 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6367 | } | |
6368 | { | |
0439c23b | 6369 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6371 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
6372 | ||
6373 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6374 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6375 | } |
6376 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
6377 | return resultobj; | |
6378 | fail: | |
6379 | return NULL; | |
6380 | } | |
6381 | ||
6382 | ||
091fdbfa | 6383 | static PyObject *_wrap_Caret_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6384 | PyObject *resultobj; |
6385 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6386 | PyObject * obj0 = 0 ; | |
6387 | char *kwnames[] = { | |
6388 | (char *) "self", NULL | |
6389 | }; | |
6390 | ||
091fdbfa | 6391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Destroy",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
6392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6394 | { |
6395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
091fdbfa | 6396 | wxCaret_Destroy(arg1); |
d55e5bfc RD |
6397 | |
6398 | wxPyEndAllowThreads(__tstate); | |
6399 | if (PyErr_Occurred()) SWIG_fail; | |
6400 | } | |
6401 | Py_INCREF(Py_None); resultobj = Py_None; | |
6402 | return resultobj; | |
6403 | fail: | |
6404 | return NULL; | |
6405 | } | |
6406 | ||
6407 | ||
c370783e | 6408 | static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6409 | PyObject *resultobj; |
6410 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6411 | bool result; | |
6412 | PyObject * obj0 = 0 ; | |
6413 | char *kwnames[] = { | |
6414 | (char *) "self", NULL | |
6415 | }; | |
6416 | ||
6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6418 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6419 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6420 | { |
6421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6422 | result = (bool)(arg1)->IsOk(); | |
6423 | ||
6424 | wxPyEndAllowThreads(__tstate); | |
6425 | if (PyErr_Occurred()) SWIG_fail; | |
6426 | } | |
6427 | { | |
6428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6429 | } | |
6430 | return resultobj; | |
6431 | fail: | |
6432 | return NULL; | |
6433 | } | |
6434 | ||
6435 | ||
c370783e | 6436 | static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6437 | PyObject *resultobj; |
6438 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6439 | bool result; | |
6440 | PyObject * obj0 = 0 ; | |
6441 | char *kwnames[] = { | |
6442 | (char *) "self", NULL | |
6443 | }; | |
6444 | ||
6445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6448 | { |
6449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6450 | result = (bool)(arg1)->IsVisible(); | |
6451 | ||
6452 | wxPyEndAllowThreads(__tstate); | |
6453 | if (PyErr_Occurred()) SWIG_fail; | |
6454 | } | |
6455 | { | |
6456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6457 | } | |
6458 | return resultobj; | |
6459 | fail: | |
6460 | return NULL; | |
6461 | } | |
6462 | ||
6463 | ||
c370783e | 6464 | static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6465 | PyObject *resultobj; |
6466 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6467 | wxPoint result; | |
6468 | PyObject * obj0 = 0 ; | |
6469 | char *kwnames[] = { | |
6470 | (char *) "self", NULL | |
6471 | }; | |
6472 | ||
6473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6476 | { |
6477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6478 | result = (arg1)->GetPosition(); | |
6479 | ||
6480 | wxPyEndAllowThreads(__tstate); | |
6481 | if (PyErr_Occurred()) SWIG_fail; | |
6482 | } | |
6483 | { | |
6484 | wxPoint * resultptr; | |
36ed4f51 | 6485 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
6486 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
6487 | } | |
6488 | return resultobj; | |
6489 | fail: | |
6490 | return NULL; | |
6491 | } | |
6492 | ||
6493 | ||
c370783e | 6494 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6495 | PyObject *resultobj; |
6496 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6497 | int *arg2 = (int *) 0 ; | |
6498 | int *arg3 = (int *) 0 ; | |
6499 | int temp2 ; | |
c370783e | 6500 | int res2 = 0 ; |
d55e5bfc | 6501 | int temp3 ; |
c370783e | 6502 | int res3 = 0 ; |
d55e5bfc RD |
6503 | PyObject * obj0 = 0 ; |
6504 | char *kwnames[] = { | |
6505 | (char *) "self", NULL | |
6506 | }; | |
6507 | ||
c370783e RD |
6508 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
6509 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 6510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
6511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6513 | { |
6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6515 | (arg1)->GetPosition(arg2,arg3); | |
6516 | ||
6517 | wxPyEndAllowThreads(__tstate); | |
6518 | if (PyErr_Occurred()) SWIG_fail; | |
6519 | } | |
6520 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
6521 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
6522 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
6523 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6524 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
6525 | return resultobj; |
6526 | fail: | |
6527 | return NULL; | |
6528 | } | |
6529 | ||
6530 | ||
c370783e | 6531 | static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6532 | PyObject *resultobj; |
6533 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6534 | wxSize result; | |
6535 | PyObject * obj0 = 0 ; | |
6536 | char *kwnames[] = { | |
6537 | (char *) "self", NULL | |
6538 | }; | |
6539 | ||
6540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6543 | { |
6544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6545 | result = (arg1)->GetSize(); | |
6546 | ||
6547 | wxPyEndAllowThreads(__tstate); | |
6548 | if (PyErr_Occurred()) SWIG_fail; | |
6549 | } | |
6550 | { | |
6551 | wxSize * resultptr; | |
36ed4f51 | 6552 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
6553 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
6554 | } | |
6555 | return resultobj; | |
6556 | fail: | |
6557 | return NULL; | |
6558 | } | |
6559 | ||
6560 | ||
c370783e | 6561 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6562 | PyObject *resultobj; |
6563 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6564 | int *arg2 = (int *) 0 ; | |
6565 | int *arg3 = (int *) 0 ; | |
6566 | int temp2 ; | |
c370783e | 6567 | int res2 = 0 ; |
d55e5bfc | 6568 | int temp3 ; |
c370783e | 6569 | int res3 = 0 ; |
d55e5bfc RD |
6570 | PyObject * obj0 = 0 ; |
6571 | char *kwnames[] = { | |
6572 | (char *) "self", NULL | |
6573 | }; | |
6574 | ||
c370783e RD |
6575 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
6576 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
6578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6580 | { |
6581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6582 | (arg1)->GetSize(arg2,arg3); | |
6583 | ||
6584 | wxPyEndAllowThreads(__tstate); | |
6585 | if (PyErr_Occurred()) SWIG_fail; | |
6586 | } | |
6587 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
6588 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
6589 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
6590 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6591 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
6592 | return resultobj; |
6593 | fail: | |
6594 | return NULL; | |
6595 | } | |
6596 | ||
6597 | ||
c370783e | 6598 | static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6599 | PyObject *resultobj; |
6600 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6601 | wxWindow *result; | |
6602 | PyObject * obj0 = 0 ; | |
6603 | char *kwnames[] = { | |
6604 | (char *) "self", NULL | |
6605 | }; | |
6606 | ||
6607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6610 | { |
6611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6612 | result = (wxWindow *)(arg1)->GetWindow(); | |
6613 | ||
6614 | wxPyEndAllowThreads(__tstate); | |
6615 | if (PyErr_Occurred()) SWIG_fail; | |
6616 | } | |
6617 | { | |
412d302d | 6618 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
6619 | } |
6620 | return resultobj; | |
6621 | fail: | |
6622 | return NULL; | |
6623 | } | |
6624 | ||
6625 | ||
c370783e | 6626 | static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6627 | PyObject *resultobj; |
6628 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6629 | int arg2 ; | |
6630 | int arg3 ; | |
6631 | PyObject * obj0 = 0 ; | |
6632 | PyObject * obj1 = 0 ; | |
6633 | PyObject * obj2 = 0 ; | |
6634 | char *kwnames[] = { | |
6635 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6636 | }; | |
6637 | ||
6638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
6639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6641 | { | |
6642 | arg2 = (int)(SWIG_As_int(obj1)); | |
6643 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6644 | } | |
6645 | { | |
6646 | arg3 = (int)(SWIG_As_int(obj2)); | |
6647 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6648 | } | |
d55e5bfc RD |
6649 | { |
6650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6651 | (arg1)->Move(arg2,arg3); | |
6652 | ||
6653 | wxPyEndAllowThreads(__tstate); | |
6654 | if (PyErr_Occurred()) SWIG_fail; | |
6655 | } | |
6656 | Py_INCREF(Py_None); resultobj = Py_None; | |
6657 | return resultobj; | |
6658 | fail: | |
6659 | return NULL; | |
6660 | } | |
6661 | ||
6662 | ||
c370783e | 6663 | static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6664 | PyObject *resultobj; |
6665 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6666 | wxPoint *arg2 = 0 ; | |
6667 | wxPoint temp2 ; | |
6668 | PyObject * obj0 = 0 ; | |
6669 | PyObject * obj1 = 0 ; | |
6670 | char *kwnames[] = { | |
6671 | (char *) "self",(char *) "pt", NULL | |
6672 | }; | |
6673 | ||
6674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
6675 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6676 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6677 | { |
6678 | arg2 = &temp2; | |
6679 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6680 | } | |
6681 | { | |
6682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6683 | (arg1)->Move((wxPoint const &)*arg2); | |
6684 | ||
6685 | wxPyEndAllowThreads(__tstate); | |
6686 | if (PyErr_Occurred()) SWIG_fail; | |
6687 | } | |
6688 | Py_INCREF(Py_None); resultobj = Py_None; | |
6689 | return resultobj; | |
6690 | fail: | |
6691 | return NULL; | |
6692 | } | |
6693 | ||
6694 | ||
c370783e | 6695 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6696 | PyObject *resultobj; |
6697 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6698 | int arg2 ; | |
6699 | int arg3 ; | |
6700 | PyObject * obj0 = 0 ; | |
6701 | PyObject * obj1 = 0 ; | |
6702 | PyObject * obj2 = 0 ; | |
6703 | char *kwnames[] = { | |
6704 | (char *) "self",(char *) "width",(char *) "height", NULL | |
6705 | }; | |
6706 | ||
6707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
6708 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6709 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6710 | { | |
6711 | arg2 = (int)(SWIG_As_int(obj1)); | |
6712 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6713 | } | |
6714 | { | |
6715 | arg3 = (int)(SWIG_As_int(obj2)); | |
6716 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6717 | } | |
d55e5bfc RD |
6718 | { |
6719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6720 | (arg1)->SetSize(arg2,arg3); | |
6721 | ||
6722 | wxPyEndAllowThreads(__tstate); | |
6723 | if (PyErr_Occurred()) SWIG_fail; | |
6724 | } | |
6725 | Py_INCREF(Py_None); resultobj = Py_None; | |
6726 | return resultobj; | |
6727 | fail: | |
6728 | return NULL; | |
6729 | } | |
6730 | ||
6731 | ||
c370783e | 6732 | static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6733 | PyObject *resultobj; |
6734 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6735 | wxSize *arg2 = 0 ; | |
6736 | wxSize temp2 ; | |
6737 | PyObject * obj0 = 0 ; | |
6738 | PyObject * obj1 = 0 ; | |
6739 | char *kwnames[] = { | |
6740 | (char *) "self",(char *) "size", NULL | |
6741 | }; | |
6742 | ||
6743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
6744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6746 | { |
6747 | arg2 = &temp2; | |
6748 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6749 | } | |
6750 | { | |
6751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6752 | (arg1)->SetSize((wxSize const &)*arg2); | |
6753 | ||
6754 | wxPyEndAllowThreads(__tstate); | |
6755 | if (PyErr_Occurred()) SWIG_fail; | |
6756 | } | |
6757 | Py_INCREF(Py_None); resultobj = Py_None; | |
6758 | return resultobj; | |
6759 | fail: | |
6760 | return NULL; | |
6761 | } | |
6762 | ||
6763 | ||
c370783e | 6764 | static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6765 | PyObject *resultobj; |
6766 | wxCaret *arg1 = (wxCaret *) 0 ; | |
b411df4a | 6767 | int arg2 = (int) true ; |
d55e5bfc RD |
6768 | PyObject * obj0 = 0 ; |
6769 | PyObject * obj1 = 0 ; | |
6770 | char *kwnames[] = { | |
6771 | (char *) "self",(char *) "show", NULL | |
6772 | }; | |
6773 | ||
6774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
6775 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6776 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 6777 | if (obj1) { |
36ed4f51 RD |
6778 | { |
6779 | arg2 = (int)(SWIG_As_int(obj1)); | |
6780 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6781 | } | |
d55e5bfc RD |
6782 | } |
6783 | { | |
6784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6785 | (arg1)->Show(arg2); | |
6786 | ||
6787 | wxPyEndAllowThreads(__tstate); | |
6788 | if (PyErr_Occurred()) SWIG_fail; | |
6789 | } | |
6790 | Py_INCREF(Py_None); resultobj = Py_None; | |
6791 | return resultobj; | |
6792 | fail: | |
6793 | return NULL; | |
6794 | } | |
6795 | ||
6796 | ||
c370783e | 6797 | static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6798 | PyObject *resultobj; |
6799 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6800 | PyObject * obj0 = 0 ; | |
6801 | char *kwnames[] = { | |
6802 | (char *) "self", NULL | |
6803 | }; | |
6804 | ||
6805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6808 | { |
6809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6810 | (arg1)->Hide(); | |
6811 | ||
6812 | wxPyEndAllowThreads(__tstate); | |
6813 | if (PyErr_Occurred()) SWIG_fail; | |
6814 | } | |
6815 | Py_INCREF(Py_None); resultobj = Py_None; | |
6816 | return resultobj; | |
6817 | fail: | |
6818 | return NULL; | |
6819 | } | |
6820 | ||
6821 | ||
c370783e | 6822 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6823 | PyObject *resultobj; |
6824 | int result; | |
6825 | char *kwnames[] = { | |
6826 | NULL | |
6827 | }; | |
6828 | ||
6829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
6830 | { | |
6831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
091fdbfa | 6832 | result = (int)wxCaret::GetBlinkTime(); |
d55e5bfc RD |
6833 | |
6834 | wxPyEndAllowThreads(__tstate); | |
6835 | if (PyErr_Occurred()) SWIG_fail; | |
6836 | } | |
36ed4f51 RD |
6837 | { |
6838 | resultobj = SWIG_From_int((int)(result)); | |
6839 | } | |
d55e5bfc RD |
6840 | return resultobj; |
6841 | fail: | |
6842 | return NULL; | |
6843 | } | |
6844 | ||
6845 | ||
c370783e | 6846 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6847 | PyObject *resultobj; |
6848 | int arg1 ; | |
6849 | PyObject * obj0 = 0 ; | |
6850 | char *kwnames[] = { | |
6851 | (char *) "milliseconds", NULL | |
6852 | }; | |
6853 | ||
6854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6855 | { |
6856 | arg1 = (int)(SWIG_As_int(obj0)); | |
6857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6858 | } | |
d55e5bfc RD |
6859 | { |
6860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
091fdbfa | 6861 | wxCaret::SetBlinkTime(arg1); |
d55e5bfc RD |
6862 | |
6863 | wxPyEndAllowThreads(__tstate); | |
6864 | if (PyErr_Occurred()) SWIG_fail; | |
6865 | } | |
6866 | Py_INCREF(Py_None); resultobj = Py_None; | |
6867 | return resultobj; | |
6868 | fail: | |
6869 | return NULL; | |
6870 | } | |
6871 | ||
6872 | ||
091fdbfa RD |
6873 | static PyObject * Caret_swigregister(PyObject *, PyObject *args) { |
6874 | PyObject *obj; | |
6875 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6876 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
6877 | Py_INCREF(obj); | |
6878 | return Py_BuildValue((char *)""); | |
6879 | } | |
c370783e | 6880 | static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6881 | PyObject *resultobj; |
6882 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
6883 | wxBusyCursor *result; | |
6884 | PyObject * obj0 = 0 ; | |
6885 | char *kwnames[] = { | |
6886 | (char *) "cursor", NULL | |
6887 | }; | |
6888 | ||
6889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
6890 | if (obj0) { | |
36ed4f51 RD |
6891 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); |
6892 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6893 | } |
6894 | { | |
0439c23b | 6895 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6897 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
6898 | ||
6899 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6900 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6901 | } |
6902 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
6903 | return resultobj; | |
6904 | fail: | |
6905 | return NULL; | |
6906 | } | |
6907 | ||
6908 | ||
c370783e | 6909 | static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6910 | PyObject *resultobj; |
6911 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
6912 | PyObject * obj0 = 0 ; | |
6913 | char *kwnames[] = { | |
6914 | (char *) "self", NULL | |
6915 | }; | |
6916 | ||
6917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6918 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyCursor, SWIG_POINTER_EXCEPTION | 0); |
6919 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6920 | { |
6921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6922 | delete arg1; | |
6923 | ||
6924 | wxPyEndAllowThreads(__tstate); | |
6925 | if (PyErr_Occurred()) SWIG_fail; | |
6926 | } | |
6927 | Py_INCREF(Py_None); resultobj = Py_None; | |
6928 | return resultobj; | |
6929 | fail: | |
6930 | return NULL; | |
6931 | } | |
6932 | ||
6933 | ||
c370783e | 6934 | static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6935 | PyObject *obj; |
6936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6937 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
6938 | Py_INCREF(obj); | |
6939 | return Py_BuildValue((char *)""); | |
6940 | } | |
c370783e | 6941 | static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6942 | PyObject *resultobj; |
6943 | wxWindow *arg1 = (wxWindow *) NULL ; | |
6944 | wxWindowDisabler *result; | |
6945 | PyObject * obj0 = 0 ; | |
6946 | char *kwnames[] = { | |
6947 | (char *) "winToSkip", NULL | |
6948 | }; | |
6949 | ||
6950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
6951 | if (obj0) { | |
36ed4f51 RD |
6952 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6953 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6954 | } |
6955 | { | |
0439c23b | 6956 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6958 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
6959 | ||
6960 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6961 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6962 | } |
6963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
6964 | return resultobj; | |
6965 | fail: | |
6966 | return NULL; | |
6967 | } | |
6968 | ||
6969 | ||
c370783e | 6970 | static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6971 | PyObject *resultobj; |
6972 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
6973 | PyObject * obj0 = 0 ; | |
6974 | char *kwnames[] = { | |
6975 | (char *) "self", NULL | |
6976 | }; | |
6977 | ||
6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6979 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowDisabler, SWIG_POINTER_EXCEPTION | 0); |
6980 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6981 | { |
6982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6983 | delete arg1; | |
6984 | ||
6985 | wxPyEndAllowThreads(__tstate); | |
6986 | if (PyErr_Occurred()) SWIG_fail; | |
6987 | } | |
6988 | Py_INCREF(Py_None); resultobj = Py_None; | |
6989 | return resultobj; | |
6990 | fail: | |
6991 | return NULL; | |
6992 | } | |
6993 | ||
6994 | ||
c370783e | 6995 | static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6996 | PyObject *obj; |
6997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6998 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
6999 | Py_INCREF(obj); | |
7000 | return Py_BuildValue((char *)""); | |
7001 | } | |
c370783e | 7002 | static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7003 | PyObject *resultobj; |
7004 | wxString *arg1 = 0 ; | |
7005 | wxBusyInfo *result; | |
b411df4a | 7006 | bool temp1 = false ; |
d55e5bfc RD |
7007 | PyObject * obj0 = 0 ; |
7008 | char *kwnames[] = { | |
7009 | (char *) "message", NULL | |
7010 | }; | |
7011 | ||
7012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
7013 | { | |
7014 | arg1 = wxString_in_helper(obj0); | |
7015 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7016 | temp1 = true; |
d55e5bfc RD |
7017 | } |
7018 | { | |
0439c23b | 7019 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7021 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
7022 | ||
7023 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7024 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7025 | } |
7026 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
7027 | { | |
7028 | if (temp1) | |
7029 | delete arg1; | |
7030 | } | |
7031 | return resultobj; | |
7032 | fail: | |
7033 | { | |
7034 | if (temp1) | |
7035 | delete arg1; | |
7036 | } | |
7037 | return NULL; | |
7038 | } | |
7039 | ||
7040 | ||
c370783e | 7041 | static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7042 | PyObject *resultobj; |
7043 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
7044 | PyObject * obj0 = 0 ; | |
7045 | char *kwnames[] = { | |
7046 | (char *) "self", NULL | |
7047 | }; | |
7048 | ||
7049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7050 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyInfo, SWIG_POINTER_EXCEPTION | 0); |
7051 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7052 | { |
7053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7054 | delete arg1; | |
7055 | ||
7056 | wxPyEndAllowThreads(__tstate); | |
7057 | if (PyErr_Occurred()) SWIG_fail; | |
7058 | } | |
7059 | Py_INCREF(Py_None); resultobj = Py_None; | |
7060 | return resultobj; | |
7061 | fail: | |
7062 | return NULL; | |
7063 | } | |
7064 | ||
7065 | ||
c370783e | 7066 | static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7067 | PyObject *obj; |
7068 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7069 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
7070 | Py_INCREF(obj); | |
7071 | return Py_BuildValue((char *)""); | |
7072 | } | |
c370783e | 7073 | static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7074 | PyObject *resultobj; |
7075 | wxStopWatch *result; | |
7076 | char *kwnames[] = { | |
7077 | NULL | |
7078 | }; | |
7079 | ||
7080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
7081 | { | |
7082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7083 | result = (wxStopWatch *)new wxStopWatch(); | |
7084 | ||
7085 | wxPyEndAllowThreads(__tstate); | |
7086 | if (PyErr_Occurred()) SWIG_fail; | |
7087 | } | |
7088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
7089 | return resultobj; | |
7090 | fail: | |
7091 | return NULL; | |
7092 | } | |
7093 | ||
7094 | ||
c370783e | 7095 | static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7096 | PyObject *resultobj; |
7097 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
7098 | long arg2 = (long) 0 ; | |
7099 | PyObject * obj0 = 0 ; | |
7100 | PyObject * obj1 = 0 ; | |
7101 | char *kwnames[] = { | |
7102 | (char *) "self",(char *) "t0", NULL | |
7103 | }; | |
7104 | ||
7105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7106 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
7107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7108 | if (obj1) { |
36ed4f51 RD |
7109 | { |
7110 | arg2 = (long)(SWIG_As_long(obj1)); | |
7111 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7112 | } | |
d55e5bfc RD |
7113 | } |
7114 | { | |
7115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7116 | (arg1)->Start(arg2); | |
7117 | ||
7118 | wxPyEndAllowThreads(__tstate); | |
7119 | if (PyErr_Occurred()) SWIG_fail; | |
7120 | } | |
7121 | Py_INCREF(Py_None); resultobj = Py_None; | |
7122 | return resultobj; | |
7123 | fail: | |
7124 | return NULL; | |
7125 | } | |
7126 | ||
7127 | ||
c370783e | 7128 | static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7129 | PyObject *resultobj; |
7130 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
7131 | PyObject * obj0 = 0 ; | |
7132 | char *kwnames[] = { | |
7133 | (char *) "self", NULL | |
7134 | }; | |
7135 | ||
7136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7137 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
7138 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7139 | { |
7140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7141 | (arg1)->Pause(); | |
7142 | ||
7143 | wxPyEndAllowThreads(__tstate); | |
7144 | if (PyErr_Occurred()) SWIG_fail; | |
7145 | } | |
7146 | Py_INCREF(Py_None); resultobj = Py_None; | |
7147 | return resultobj; | |
7148 | fail: | |
7149 | return NULL; | |
7150 | } | |
7151 | ||
7152 | ||
c370783e | 7153 | static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7154 | PyObject *resultobj; |
7155 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
7156 | PyObject * obj0 = 0 ; | |
7157 | char *kwnames[] = { | |
7158 | (char *) "self", NULL | |
7159 | }; | |
7160 | ||
7161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7162 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
7163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7164 | { |
7165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7166 | (arg1)->Resume(); | |
7167 | ||
7168 | wxPyEndAllowThreads(__tstate); | |
7169 | if (PyErr_Occurred()) SWIG_fail; | |
7170 | } | |
7171 | Py_INCREF(Py_None); resultobj = Py_None; | |
7172 | return resultobj; | |
7173 | fail: | |
7174 | return NULL; | |
7175 | } | |
7176 | ||
7177 | ||
c370783e | 7178 | static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7179 | PyObject *resultobj; |
7180 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
7181 | long result; | |
7182 | PyObject * obj0 = 0 ; | |
7183 | char *kwnames[] = { | |
7184 | (char *) "self", NULL | |
7185 | }; | |
7186 | ||
7187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
7189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7190 | { |
7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7192 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
7193 | ||
7194 | wxPyEndAllowThreads(__tstate); | |
7195 | if (PyErr_Occurred()) SWIG_fail; | |
7196 | } | |
36ed4f51 RD |
7197 | { |
7198 | resultobj = SWIG_From_long((long)(result)); | |
7199 | } | |
d55e5bfc RD |
7200 | return resultobj; |
7201 | fail: | |
7202 | return NULL; | |
7203 | } | |
7204 | ||
7205 | ||
c370783e | 7206 | static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7207 | PyObject *obj; |
7208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7209 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
7210 | Py_INCREF(obj); | |
7211 | return Py_BuildValue((char *)""); | |
7212 | } | |
c370783e | 7213 | static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7214 | PyObject *resultobj; |
7215 | int arg1 = (int) 9 ; | |
4cf4100f | 7216 | int arg2 = (int) wxID_FILE1 ; |
d55e5bfc RD |
7217 | wxFileHistory *result; |
7218 | PyObject * obj0 = 0 ; | |
4cf4100f | 7219 | PyObject * obj1 = 0 ; |
d55e5bfc | 7220 | char *kwnames[] = { |
4cf4100f | 7221 | (char *) "maxFiles",(char *) "idBase", NULL |
d55e5bfc RD |
7222 | }; |
7223 | ||
4cf4100f | 7224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc | 7225 | if (obj0) { |
36ed4f51 RD |
7226 | { |
7227 | arg1 = (int)(SWIG_As_int(obj0)); | |
7228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7229 | } | |
d55e5bfc | 7230 | } |
4cf4100f | 7231 | if (obj1) { |
36ed4f51 RD |
7232 | { |
7233 | arg2 = (int)(SWIG_As_int(obj1)); | |
7234 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7235 | } | |
4cf4100f | 7236 | } |
d55e5bfc RD |
7237 | { |
7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4cf4100f | 7239 | result = (wxFileHistory *)new wxFileHistory(arg1,arg2); |
d55e5bfc RD |
7240 | |
7241 | wxPyEndAllowThreads(__tstate); | |
7242 | if (PyErr_Occurred()) SWIG_fail; | |
7243 | } | |
7244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
7245 | return resultobj; | |
7246 | fail: | |
7247 | return NULL; | |
7248 | } | |
7249 | ||
7250 | ||
c370783e | 7251 | static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7252 | PyObject *resultobj; |
7253 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7254 | PyObject * obj0 = 0 ; | |
7255 | char *kwnames[] = { | |
7256 | (char *) "self", NULL | |
7257 | }; | |
7258 | ||
7259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7260 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7262 | { |
7263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7264 | delete arg1; | |
7265 | ||
7266 | wxPyEndAllowThreads(__tstate); | |
7267 | if (PyErr_Occurred()) SWIG_fail; | |
7268 | } | |
7269 | Py_INCREF(Py_None); resultobj = Py_None; | |
7270 | return resultobj; | |
7271 | fail: | |
7272 | return NULL; | |
7273 | } | |
7274 | ||
7275 | ||
c370783e | 7276 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7277 | PyObject *resultobj; |
7278 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7279 | wxString *arg2 = 0 ; | |
b411df4a | 7280 | bool temp2 = false ; |
d55e5bfc RD |
7281 | PyObject * obj0 = 0 ; |
7282 | PyObject * obj1 = 0 ; | |
7283 | char *kwnames[] = { | |
7284 | (char *) "self",(char *) "file", NULL | |
7285 | }; | |
7286 | ||
7287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7290 | { |
7291 | arg2 = wxString_in_helper(obj1); | |
7292 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7293 | temp2 = true; |
d55e5bfc RD |
7294 | } |
7295 | { | |
7296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7297 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
7298 | ||
7299 | wxPyEndAllowThreads(__tstate); | |
7300 | if (PyErr_Occurred()) SWIG_fail; | |
7301 | } | |
7302 | Py_INCREF(Py_None); resultobj = Py_None; | |
7303 | { | |
7304 | if (temp2) | |
7305 | delete arg2; | |
7306 | } | |
7307 | return resultobj; | |
7308 | fail: | |
7309 | { | |
7310 | if (temp2) | |
7311 | delete arg2; | |
7312 | } | |
7313 | return NULL; | |
7314 | } | |
7315 | ||
7316 | ||
c370783e | 7317 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7318 | PyObject *resultobj; |
7319 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7320 | int arg2 ; | |
7321 | PyObject * obj0 = 0 ; | |
7322 | PyObject * obj1 = 0 ; | |
7323 | char *kwnames[] = { | |
7324 | (char *) "self",(char *) "i", NULL | |
7325 | }; | |
7326 | ||
7327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7330 | { | |
7331 | arg2 = (int)(SWIG_As_int(obj1)); | |
7332 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7333 | } | |
d55e5bfc RD |
7334 | { |
7335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7336 | (arg1)->RemoveFileFromHistory(arg2); | |
7337 | ||
7338 | wxPyEndAllowThreads(__tstate); | |
7339 | if (PyErr_Occurred()) SWIG_fail; | |
7340 | } | |
7341 | Py_INCREF(Py_None); resultobj = Py_None; | |
7342 | return resultobj; | |
7343 | fail: | |
7344 | return NULL; | |
7345 | } | |
7346 | ||
7347 | ||
c370783e | 7348 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7349 | PyObject *resultobj; |
7350 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7351 | int result; | |
7352 | PyObject * obj0 = 0 ; | |
7353 | char *kwnames[] = { | |
7354 | (char *) "self", NULL | |
7355 | }; | |
7356 | ||
7357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7358 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7359 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7360 | { |
7361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7362 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
7363 | ||
7364 | wxPyEndAllowThreads(__tstate); | |
7365 | if (PyErr_Occurred()) SWIG_fail; | |
7366 | } | |
36ed4f51 RD |
7367 | { |
7368 | resultobj = SWIG_From_int((int)(result)); | |
7369 | } | |
d55e5bfc RD |
7370 | return resultobj; |
7371 | fail: | |
7372 | return NULL; | |
7373 | } | |
7374 | ||
7375 | ||
c370783e | 7376 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7377 | PyObject *resultobj; |
7378 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7379 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7380 | PyObject * obj0 = 0 ; | |
7381 | PyObject * obj1 = 0 ; | |
7382 | char *kwnames[] = { | |
7383 | (char *) "self",(char *) "menu", NULL | |
7384 | }; | |
7385 | ||
7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7387 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7388 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7389 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
7390 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
7391 | { |
7392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7393 | (arg1)->UseMenu(arg2); | |
7394 | ||
7395 | wxPyEndAllowThreads(__tstate); | |
7396 | if (PyErr_Occurred()) SWIG_fail; | |
7397 | } | |
7398 | Py_INCREF(Py_None); resultobj = Py_None; | |
7399 | return resultobj; | |
7400 | fail: | |
7401 | return NULL; | |
7402 | } | |
7403 | ||
7404 | ||
c370783e | 7405 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7406 | PyObject *resultobj; |
7407 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7408 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7409 | PyObject * obj0 = 0 ; | |
7410 | PyObject * obj1 = 0 ; | |
7411 | char *kwnames[] = { | |
7412 | (char *) "self",(char *) "menu", NULL | |
7413 | }; | |
7414 | ||
7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7418 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
7419 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
7420 | { |
7421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7422 | (arg1)->RemoveMenu(arg2); | |
7423 | ||
7424 | wxPyEndAllowThreads(__tstate); | |
7425 | if (PyErr_Occurred()) SWIG_fail; | |
7426 | } | |
7427 | Py_INCREF(Py_None); resultobj = Py_None; | |
7428 | return resultobj; | |
7429 | fail: | |
7430 | return NULL; | |
7431 | } | |
7432 | ||
7433 | ||
c370783e | 7434 | static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7435 | PyObject *resultobj; |
7436 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7437 | wxConfigBase *arg2 = 0 ; | |
7438 | PyObject * obj0 = 0 ; | |
7439 | PyObject * obj1 = 0 ; | |
7440 | char *kwnames[] = { | |
7441 | (char *) "self",(char *) "config", NULL | |
7442 | }; | |
7443 | ||
7444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7447 | { | |
7448 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); | |
7449 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7450 | if (arg2 == NULL) { | |
7451 | SWIG_null_ref("wxConfigBase"); | |
7452 | } | |
7453 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
7454 | } |
7455 | { | |
7456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7457 | (arg1)->Load(*arg2); | |
7458 | ||
7459 | wxPyEndAllowThreads(__tstate); | |
7460 | if (PyErr_Occurred()) SWIG_fail; | |
7461 | } | |
7462 | Py_INCREF(Py_None); resultobj = Py_None; | |
7463 | return resultobj; | |
7464 | fail: | |
7465 | return NULL; | |
7466 | } | |
7467 | ||
7468 | ||
c370783e | 7469 | static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7470 | PyObject *resultobj; |
7471 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7472 | wxConfigBase *arg2 = 0 ; | |
7473 | PyObject * obj0 = 0 ; | |
7474 | PyObject * obj1 = 0 ; | |
7475 | char *kwnames[] = { | |
7476 | (char *) "self",(char *) "config", NULL | |
7477 | }; | |
7478 | ||
7479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7482 | { | |
7483 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); | |
7484 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7485 | if (arg2 == NULL) { | |
7486 | SWIG_null_ref("wxConfigBase"); | |
7487 | } | |
7488 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
7489 | } |
7490 | { | |
7491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7492 | (arg1)->Save(*arg2); | |
7493 | ||
7494 | wxPyEndAllowThreads(__tstate); | |
7495 | if (PyErr_Occurred()) SWIG_fail; | |
7496 | } | |
7497 | Py_INCREF(Py_None); resultobj = Py_None; | |
7498 | return resultobj; | |
7499 | fail: | |
7500 | return NULL; | |
7501 | } | |
7502 | ||
7503 | ||
c370783e | 7504 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7505 | PyObject *resultobj; |
7506 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7507 | PyObject * obj0 = 0 ; | |
7508 | char *kwnames[] = { | |
7509 | (char *) "self", NULL | |
7510 | }; | |
7511 | ||
7512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7513 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7514 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7515 | { |
7516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7517 | (arg1)->AddFilesToMenu(); | |
7518 | ||
7519 | wxPyEndAllowThreads(__tstate); | |
7520 | if (PyErr_Occurred()) SWIG_fail; | |
7521 | } | |
7522 | Py_INCREF(Py_None); resultobj = Py_None; | |
7523 | return resultobj; | |
7524 | fail: | |
7525 | return NULL; | |
7526 | } | |
7527 | ||
7528 | ||
c370783e | 7529 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7530 | PyObject *resultobj; |
7531 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7532 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7533 | PyObject * obj0 = 0 ; | |
7534 | PyObject * obj1 = 0 ; | |
7535 | char *kwnames[] = { | |
7536 | (char *) "self",(char *) "menu", NULL | |
7537 | }; | |
7538 | ||
7539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7540 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7541 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7542 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
7543 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
7544 | { |
7545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7546 | (arg1)->AddFilesToMenu(arg2); | |
7547 | ||
7548 | wxPyEndAllowThreads(__tstate); | |
7549 | if (PyErr_Occurred()) SWIG_fail; | |
7550 | } | |
7551 | Py_INCREF(Py_None); resultobj = Py_None; | |
7552 | return resultobj; | |
7553 | fail: | |
7554 | return NULL; | |
7555 | } | |
7556 | ||
7557 | ||
c370783e | 7558 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7559 | PyObject *resultobj; |
7560 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7561 | int arg2 ; | |
7562 | wxString result; | |
7563 | PyObject * obj0 = 0 ; | |
7564 | PyObject * obj1 = 0 ; | |
7565 | char *kwnames[] = { | |
7566 | (char *) "self",(char *) "i", NULL | |
7567 | }; | |
7568 | ||
7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7572 | { | |
7573 | arg2 = (int)(SWIG_As_int(obj1)); | |
7574 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7575 | } | |
d55e5bfc RD |
7576 | { |
7577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7578 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
7579 | ||
7580 | wxPyEndAllowThreads(__tstate); | |
7581 | if (PyErr_Occurred()) SWIG_fail; | |
7582 | } | |
7583 | { | |
7584 | #if wxUSE_UNICODE | |
7585 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7586 | #else | |
7587 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7588 | #endif | |
7589 | } | |
7590 | return resultobj; | |
7591 | fail: | |
7592 | return NULL; | |
7593 | } | |
7594 | ||
7595 | ||
c370783e | 7596 | static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7597 | PyObject *resultobj; |
7598 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7599 | int result; | |
7600 | PyObject * obj0 = 0 ; | |
7601 | char *kwnames[] = { | |
7602 | (char *) "self", NULL | |
7603 | }; | |
7604 | ||
7605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7606 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7607 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7608 | { |
7609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7610 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
7611 | ||
7612 | wxPyEndAllowThreads(__tstate); | |
7613 | if (PyErr_Occurred()) SWIG_fail; | |
7614 | } | |
36ed4f51 RD |
7615 | { |
7616 | resultobj = SWIG_From_int((int)(result)); | |
7617 | } | |
d55e5bfc RD |
7618 | return resultobj; |
7619 | fail: | |
7620 | return NULL; | |
7621 | } | |
7622 | ||
7623 | ||
c370783e | 7624 | static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7625 | PyObject *obj; |
7626 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7627 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
7628 | Py_INCREF(obj); | |
7629 | return Py_BuildValue((char *)""); | |
7630 | } | |
c370783e | 7631 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7632 | PyObject *resultobj; |
7633 | wxString *arg1 = 0 ; | |
7634 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
7635 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7636 | wxSingleInstanceChecker *result; | |
b411df4a RD |
7637 | bool temp1 = false ; |
7638 | bool temp2 = false ; | |
d55e5bfc RD |
7639 | PyObject * obj0 = 0 ; |
7640 | PyObject * obj1 = 0 ; | |
7641 | char *kwnames[] = { | |
7642 | (char *) "name",(char *) "path", NULL | |
7643 | }; | |
7644 | ||
7645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
7646 | { | |
7647 | arg1 = wxString_in_helper(obj0); | |
7648 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7649 | temp1 = true; |
d55e5bfc RD |
7650 | } |
7651 | if (obj1) { | |
7652 | { | |
7653 | arg2 = wxString_in_helper(obj1); | |
7654 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7655 | temp2 = true; |
d55e5bfc RD |
7656 | } |
7657 | } | |
7658 | { | |
7659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7660 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
7661 | ||
7662 | wxPyEndAllowThreads(__tstate); | |
7663 | if (PyErr_Occurred()) SWIG_fail; | |
7664 | } | |
7665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
7666 | { | |
7667 | if (temp1) | |
7668 | delete arg1; | |
7669 | } | |
7670 | { | |
7671 | if (temp2) | |
7672 | delete arg2; | |
7673 | } | |
7674 | return resultobj; | |
7675 | fail: | |
7676 | { | |
7677 | if (temp1) | |
7678 | delete arg1; | |
7679 | } | |
7680 | { | |
7681 | if (temp2) | |
7682 | delete arg2; | |
7683 | } | |
7684 | return NULL; | |
7685 | } | |
7686 | ||
7687 | ||
c370783e | 7688 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7689 | PyObject *resultobj; |
7690 | wxSingleInstanceChecker *result; | |
7691 | char *kwnames[] = { | |
7692 | NULL | |
7693 | }; | |
7694 | ||
7695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
7696 | { | |
7697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7698 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
7699 | ||
7700 | wxPyEndAllowThreads(__tstate); | |
7701 | if (PyErr_Occurred()) SWIG_fail; | |
7702 | } | |
7703 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
7704 | return resultobj; | |
7705 | fail: | |
7706 | return NULL; | |
7707 | } | |
7708 | ||
7709 | ||
c370783e | 7710 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7711 | PyObject *resultobj; |
7712 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
7713 | PyObject * obj0 = 0 ; | |
7714 | char *kwnames[] = { | |
7715 | (char *) "self", NULL | |
7716 | }; | |
7717 | ||
7718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
7720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7721 | { |
7722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7723 | delete arg1; | |
7724 | ||
7725 | wxPyEndAllowThreads(__tstate); | |
7726 | if (PyErr_Occurred()) SWIG_fail; | |
7727 | } | |
7728 | Py_INCREF(Py_None); resultobj = Py_None; | |
7729 | return resultobj; | |
7730 | fail: | |
7731 | return NULL; | |
7732 | } | |
7733 | ||
7734 | ||
c370783e | 7735 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7736 | PyObject *resultobj; |
7737 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
7738 | wxString *arg2 = 0 ; | |
7739 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7740 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7741 | bool result; | |
b411df4a RD |
7742 | bool temp2 = false ; |
7743 | bool temp3 = false ; | |
d55e5bfc RD |
7744 | PyObject * obj0 = 0 ; |
7745 | PyObject * obj1 = 0 ; | |
7746 | PyObject * obj2 = 0 ; | |
7747 | char *kwnames[] = { | |
7748 | (char *) "self",(char *) "name",(char *) "path", NULL | |
7749 | }; | |
7750 | ||
7751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
7752 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
7753 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7754 | { |
7755 | arg2 = wxString_in_helper(obj1); | |
7756 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7757 | temp2 = true; |
d55e5bfc RD |
7758 | } |
7759 | if (obj2) { | |
7760 | { | |
7761 | arg3 = wxString_in_helper(obj2); | |
7762 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 7763 | temp3 = true; |
d55e5bfc RD |
7764 | } |
7765 | } | |
7766 | { | |
7767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7768 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
7769 | ||
7770 | wxPyEndAllowThreads(__tstate); | |
7771 | if (PyErr_Occurred()) SWIG_fail; | |
7772 | } | |
7773 | { | |
7774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7775 | } | |
7776 | { | |
7777 | if (temp2) | |
7778 | delete arg2; | |
7779 | } | |
7780 | { | |
7781 | if (temp3) | |
7782 | delete arg3; | |
7783 | } | |
7784 | return resultobj; | |
7785 | fail: | |
7786 | { | |
7787 | if (temp2) | |
7788 | delete arg2; | |
7789 | } | |
7790 | { | |
7791 | if (temp3) | |
7792 | delete arg3; | |
7793 | } | |
7794 | return NULL; | |
7795 | } | |
7796 | ||
7797 | ||
c370783e | 7798 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7799 | PyObject *resultobj; |
7800 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
7801 | bool result; | |
7802 | PyObject * obj0 = 0 ; | |
7803 | char *kwnames[] = { | |
7804 | (char *) "self", NULL | |
7805 | }; | |
7806 | ||
7807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
7809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7810 | { |
7811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7812 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
7813 | ||
7814 | wxPyEndAllowThreads(__tstate); | |
7815 | if (PyErr_Occurred()) SWIG_fail; | |
7816 | } | |
7817 | { | |
7818 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7819 | } | |
7820 | return resultobj; | |
7821 | fail: | |
7822 | return NULL; | |
7823 | } | |
7824 | ||
7825 | ||
c370783e | 7826 | static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7827 | PyObject *obj; |
7828 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7829 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
7830 | Py_INCREF(obj); | |
7831 | return Py_BuildValue((char *)""); | |
7832 | } | |
68350608 RD |
7833 | static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) { |
7834 | PyObject *resultobj; | |
7835 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7836 | wxDC *arg2 = 0 ; | |
7837 | bool result; | |
7838 | PyObject * obj0 = 0 ; | |
7839 | PyObject * obj1 = 0 ; | |
7840 | char *kwnames[] = { | |
7841 | (char *) "window",(char *) "dc", NULL | |
7842 | }; | |
7843 | ||
7844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DrawWindowOnDC",kwnames,&obj0,&obj1)) goto fail; | |
7845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7847 | { | |
7848 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
7849 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7850 | if (arg2 == NULL) { | |
7851 | SWIG_null_ref("wxDC"); | |
7852 | } | |
7853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7854 | } | |
7855 | { | |
7856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7857 | result = (bool)wxDrawWindowOnDC(arg1,(wxDC const &)*arg2); | |
7858 | ||
7859 | wxPyEndAllowThreads(__tstate); | |
7860 | if (PyErr_Occurred()) SWIG_fail; | |
7861 | } | |
7862 | { | |
7863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7864 | } | |
7865 | return resultobj; | |
7866 | fail: | |
7867 | return NULL; | |
7868 | } | |
7869 | ||
7870 | ||
c370783e | 7871 | static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7872 | PyObject *resultobj; |
7873 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
7874 | PyObject * obj0 = 0 ; | |
7875 | char *kwnames[] = { | |
7876 | (char *) "self", NULL | |
7877 | }; | |
7878 | ||
7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7880 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
7881 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7882 | { |
7883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7884 | delete arg1; | |
7885 | ||
7886 | wxPyEndAllowThreads(__tstate); | |
7887 | if (PyErr_Occurred()) SWIG_fail; | |
7888 | } | |
7889 | Py_INCREF(Py_None); resultobj = Py_None; | |
7890 | return resultobj; | |
7891 | fail: | |
7892 | return NULL; | |
7893 | } | |
7894 | ||
7895 | ||
c370783e | 7896 | static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7897 | PyObject *resultobj; |
7898 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
7899 | wxString result; | |
7900 | PyObject * obj0 = 0 ; | |
7901 | char *kwnames[] = { | |
7902 | (char *) "self", NULL | |
7903 | }; | |
7904 | ||
7905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
7907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7908 | { |
7909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7910 | result = (arg1)->GetTip(); | |
7911 | ||
7912 | wxPyEndAllowThreads(__tstate); | |
7913 | if (PyErr_Occurred()) SWIG_fail; | |
7914 | } | |
7915 | { | |
7916 | #if wxUSE_UNICODE | |
7917 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7918 | #else | |
7919 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7920 | #endif | |
7921 | } | |
7922 | return resultobj; | |
7923 | fail: | |
7924 | return NULL; | |
7925 | } | |
7926 | ||
7927 | ||
c370783e | 7928 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7929 | PyObject *resultobj; |
7930 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
7931 | size_t result; | |
7932 | PyObject * obj0 = 0 ; | |
7933 | char *kwnames[] = { | |
7934 | (char *) "self", NULL | |
7935 | }; | |
7936 | ||
7937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
7939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7940 | { |
7941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7942 | result = (size_t)(arg1)->GetCurrentTip(); | |
7943 | ||
7944 | wxPyEndAllowThreads(__tstate); | |
7945 | if (PyErr_Occurred()) SWIG_fail; | |
7946 | } | |
36ed4f51 RD |
7947 | { |
7948 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
7949 | } | |
d55e5bfc RD |
7950 | return resultobj; |
7951 | fail: | |
7952 | return NULL; | |
7953 | } | |
7954 | ||
7955 | ||
c370783e | 7956 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7957 | PyObject *resultobj; |
7958 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
7959 | wxString *arg2 = 0 ; | |
7960 | wxString result; | |
b411df4a | 7961 | bool temp2 = false ; |
d55e5bfc RD |
7962 | PyObject * obj0 = 0 ; |
7963 | PyObject * obj1 = 0 ; | |
7964 | char *kwnames[] = { | |
7965 | (char *) "self",(char *) "tip", NULL | |
7966 | }; | |
7967 | ||
7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7969 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
7970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7971 | { |
7972 | arg2 = wxString_in_helper(obj1); | |
7973 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7974 | temp2 = true; |
d55e5bfc RD |
7975 | } |
7976 | { | |
7977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7978 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
7979 | ||
7980 | wxPyEndAllowThreads(__tstate); | |
7981 | if (PyErr_Occurred()) SWIG_fail; | |
7982 | } | |
7983 | { | |
7984 | #if wxUSE_UNICODE | |
7985 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7986 | #else | |
7987 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7988 | #endif | |
7989 | } | |
7990 | { | |
7991 | if (temp2) | |
7992 | delete arg2; | |
7993 | } | |
7994 | return resultobj; | |
7995 | fail: | |
7996 | { | |
7997 | if (temp2) | |
7998 | delete arg2; | |
7999 | } | |
8000 | return NULL; | |
8001 | } | |
8002 | ||
8003 | ||
c370783e | 8004 | static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8005 | PyObject *obj; |
8006 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8007 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
8008 | Py_INCREF(obj); | |
8009 | return Py_BuildValue((char *)""); | |
8010 | } | |
c370783e | 8011 | static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8012 | PyObject *resultobj; |
8013 | size_t arg1 ; | |
8014 | wxPyTipProvider *result; | |
8015 | PyObject * obj0 = 0 ; | |
8016 | char *kwnames[] = { | |
8017 | (char *) "currentTip", NULL | |
8018 | }; | |
8019 | ||
8020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8021 | { |
8022 | arg1 = (size_t)(SWIG_As_unsigned_SS_long(obj0)); | |
8023 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8024 | } | |
d55e5bfc RD |
8025 | { |
8026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8027 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
8028 | ||
8029 | wxPyEndAllowThreads(__tstate); | |
8030 | if (PyErr_Occurred()) SWIG_fail; | |
8031 | } | |
8032 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
8033 | return resultobj; | |
8034 | fail: | |
8035 | return NULL; | |
8036 | } | |
8037 | ||
8038 | ||
c370783e | 8039 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8040 | PyObject *resultobj; |
8041 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
8042 | PyObject *arg2 = (PyObject *) 0 ; | |
8043 | PyObject *arg3 = (PyObject *) 0 ; | |
8044 | PyObject * obj0 = 0 ; | |
8045 | PyObject * obj1 = 0 ; | |
8046 | PyObject * obj2 = 0 ; | |
8047 | char *kwnames[] = { | |
8048 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8049 | }; | |
8050 | ||
8051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8054 | arg2 = obj1; |
8055 | arg3 = obj2; | |
8056 | { | |
8057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8058 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8059 | ||
8060 | wxPyEndAllowThreads(__tstate); | |
8061 | if (PyErr_Occurred()) SWIG_fail; | |
8062 | } | |
8063 | Py_INCREF(Py_None); resultobj = Py_None; | |
8064 | return resultobj; | |
8065 | fail: | |
8066 | return NULL; | |
8067 | } | |
8068 | ||
8069 | ||
c370783e | 8070 | static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8071 | PyObject *obj; |
8072 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8073 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
8074 | Py_INCREF(obj); | |
8075 | return Py_BuildValue((char *)""); | |
8076 | } | |
c370783e | 8077 | static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8078 | PyObject *resultobj; |
8079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8080 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
b411df4a | 8081 | bool arg3 = (bool) true ; |
d55e5bfc RD |
8082 | bool result; |
8083 | PyObject * obj0 = 0 ; | |
8084 | PyObject * obj1 = 0 ; | |
8085 | PyObject * obj2 = 0 ; | |
8086 | char *kwnames[] = { | |
8087 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
8088 | }; | |
8089 | ||
8090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8091 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
8092 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8093 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); | |
8094 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 8095 | if (obj2) { |
36ed4f51 RD |
8096 | { |
8097 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8098 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8099 | } | |
d55e5bfc RD |
8100 | } |
8101 | { | |
0439c23b | 8102 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8104 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
8105 | ||
8106 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8107 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8108 | } |
8109 | { | |
8110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8111 | } | |
8112 | return resultobj; | |
8113 | fail: | |
8114 | return NULL; | |
8115 | } | |
8116 | ||
8117 | ||
c370783e | 8118 | static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8119 | PyObject *resultobj; |
8120 | wxString *arg1 = 0 ; | |
8121 | size_t arg2 ; | |
8122 | wxTipProvider *result; | |
b411df4a | 8123 | bool temp1 = false ; |
d55e5bfc RD |
8124 | PyObject * obj0 = 0 ; |
8125 | PyObject * obj1 = 0 ; | |
8126 | char *kwnames[] = { | |
8127 | (char *) "filename",(char *) "currentTip", NULL | |
8128 | }; | |
8129 | ||
8130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
8131 | { | |
8132 | arg1 = wxString_in_helper(obj0); | |
8133 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8134 | temp1 = true; |
d55e5bfc | 8135 | } |
36ed4f51 RD |
8136 | { |
8137 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
8138 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8139 | } | |
d55e5bfc | 8140 | { |
0439c23b | 8141 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8143 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
8144 | ||
8145 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8146 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8147 | } |
8148 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
8149 | { | |
8150 | if (temp1) | |
8151 | delete arg1; | |
8152 | } | |
8153 | return resultobj; | |
8154 | fail: | |
8155 | { | |
8156 | if (temp1) | |
8157 | delete arg1; | |
8158 | } | |
8159 | return NULL; | |
8160 | } | |
8161 | ||
8162 | ||
c370783e | 8163 | static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8164 | PyObject *resultobj; |
8165 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8166 | int arg2 = (int) -1 ; | |
8167 | wxPyTimer *result; | |
8168 | PyObject * obj0 = 0 ; | |
8169 | PyObject * obj1 = 0 ; | |
8170 | char *kwnames[] = { | |
8171 | (char *) "owner",(char *) "id", NULL | |
8172 | }; | |
8173 | ||
8174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
8175 | if (obj0) { | |
36ed4f51 RD |
8176 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
8177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8178 | } |
8179 | if (obj1) { | |
36ed4f51 RD |
8180 | { |
8181 | arg2 = (int)(SWIG_As_int(obj1)); | |
8182 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8183 | } | |
d55e5bfc RD |
8184 | } |
8185 | { | |
0439c23b | 8186 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8188 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
8189 | ||
8190 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8191 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8192 | } |
8193 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
8194 | return resultobj; | |
8195 | fail: | |
8196 | return NULL; | |
8197 | } | |
8198 | ||
8199 | ||
c370783e | 8200 | static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8201 | PyObject *resultobj; |
8202 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8203 | PyObject * obj0 = 0 ; | |
8204 | char *kwnames[] = { | |
8205 | (char *) "self", NULL | |
8206 | }; | |
8207 | ||
8208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8209 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8210 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8211 | { |
8212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8213 | delete arg1; | |
8214 | ||
8215 | wxPyEndAllowThreads(__tstate); | |
8216 | if (PyErr_Occurred()) SWIG_fail; | |
8217 | } | |
8218 | Py_INCREF(Py_None); resultobj = Py_None; | |
8219 | return resultobj; | |
8220 | fail: | |
8221 | return NULL; | |
8222 | } | |
8223 | ||
8224 | ||
c370783e | 8225 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8226 | PyObject *resultobj; |
8227 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8228 | PyObject *arg2 = (PyObject *) 0 ; | |
8229 | PyObject *arg3 = (PyObject *) 0 ; | |
8230 | int arg4 = (int) 1 ; | |
8231 | PyObject * obj0 = 0 ; | |
8232 | PyObject * obj1 = 0 ; | |
8233 | PyObject * obj2 = 0 ; | |
8234 | PyObject * obj3 = 0 ; | |
8235 | char *kwnames[] = { | |
8236 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8237 | }; | |
8238 | ||
8239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
8240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8242 | arg2 = obj1; |
8243 | arg3 = obj2; | |
8244 | if (obj3) { | |
36ed4f51 RD |
8245 | { |
8246 | arg4 = (int)(SWIG_As_int(obj3)); | |
8247 | if (SWIG_arg_fail(4)) SWIG_fail; | |
8248 | } | |
d55e5bfc RD |
8249 | } |
8250 | { | |
8251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8252 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8253 | ||
8254 | wxPyEndAllowThreads(__tstate); | |
8255 | if (PyErr_Occurred()) SWIG_fail; | |
8256 | } | |
8257 | Py_INCREF(Py_None); resultobj = Py_None; | |
8258 | return resultobj; | |
8259 | fail: | |
8260 | return NULL; | |
8261 | } | |
8262 | ||
8263 | ||
c370783e | 8264 | static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8265 | PyObject *resultobj; |
8266 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8267 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
8268 | int arg3 = (int) -1 ; | |
8269 | PyObject * obj0 = 0 ; | |
8270 | PyObject * obj1 = 0 ; | |
8271 | PyObject * obj2 = 0 ; | |
8272 | char *kwnames[] = { | |
8273 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
8274 | }; | |
8275 | ||
8276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8279 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
8280 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 8281 | if (obj2) { |
36ed4f51 RD |
8282 | { |
8283 | arg3 = (int)(SWIG_As_int(obj2)); | |
8284 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8285 | } | |
d55e5bfc RD |
8286 | } |
8287 | { | |
8288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8289 | (arg1)->SetOwner(arg2,arg3); | |
8290 | ||
8291 | wxPyEndAllowThreads(__tstate); | |
8292 | if (PyErr_Occurred()) SWIG_fail; | |
8293 | } | |
8294 | Py_INCREF(Py_None); resultobj = Py_None; | |
8295 | return resultobj; | |
8296 | fail: | |
8297 | return NULL; | |
8298 | } | |
8299 | ||
8300 | ||
c370783e | 8301 | static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
8302 | PyObject *resultobj; |
8303 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8304 | wxEvtHandler *result; | |
8305 | PyObject * obj0 = 0 ; | |
8306 | char *kwnames[] = { | |
8307 | (char *) "self", NULL | |
8308 | }; | |
8309 | ||
8310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a6bba1e RD |
8313 | { |
8314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8315 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
8316 | ||
8317 | wxPyEndAllowThreads(__tstate); | |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | } | |
8320 | { | |
412d302d | 8321 | resultobj = wxPyMake_wxObject(result, 0); |
1a6bba1e RD |
8322 | } |
8323 | return resultobj; | |
8324 | fail: | |
8325 | return NULL; | |
8326 | } | |
8327 | ||
8328 | ||
c370783e | 8329 | static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8330 | PyObject *resultobj; |
8331 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8332 | int arg2 = (int) -1 ; | |
b411df4a | 8333 | bool arg3 = (bool) false ; |
d55e5bfc RD |
8334 | bool result; |
8335 | PyObject * obj0 = 0 ; | |
8336 | PyObject * obj1 = 0 ; | |
8337 | PyObject * obj2 = 0 ; | |
8338 | char *kwnames[] = { | |
8339 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
8340 | }; | |
8341 | ||
8342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 8345 | if (obj1) { |
36ed4f51 RD |
8346 | { |
8347 | arg2 = (int)(SWIG_As_int(obj1)); | |
8348 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8349 | } | |
d55e5bfc RD |
8350 | } |
8351 | if (obj2) { | |
36ed4f51 RD |
8352 | { |
8353 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8354 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8355 | } | |
d55e5bfc RD |
8356 | } |
8357 | { | |
8358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8359 | result = (bool)(arg1)->Start(arg2,arg3); | |
8360 | ||
8361 | wxPyEndAllowThreads(__tstate); | |
8362 | if (PyErr_Occurred()) SWIG_fail; | |
8363 | } | |
8364 | { | |
8365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8366 | } | |
8367 | return resultobj; | |
8368 | fail: | |
8369 | return NULL; | |
8370 | } | |
8371 | ||
8372 | ||
c370783e | 8373 | static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8374 | PyObject *resultobj; |
8375 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8376 | PyObject * obj0 = 0 ; | |
8377 | char *kwnames[] = { | |
8378 | (char *) "self", NULL | |
8379 | }; | |
8380 | ||
8381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8384 | { |
8385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8386 | (arg1)->Stop(); | |
8387 | ||
8388 | wxPyEndAllowThreads(__tstate); | |
8389 | if (PyErr_Occurred()) SWIG_fail; | |
8390 | } | |
8391 | Py_INCREF(Py_None); resultobj = Py_None; | |
8392 | return resultobj; | |
8393 | fail: | |
8394 | return NULL; | |
8395 | } | |
8396 | ||
8397 | ||
c370783e | 8398 | static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8399 | PyObject *resultobj; |
8400 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8401 | bool result; | |
8402 | PyObject * obj0 = 0 ; | |
8403 | char *kwnames[] = { | |
8404 | (char *) "self", NULL | |
8405 | }; | |
8406 | ||
8407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8410 | { |
8411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8412 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
8413 | ||
8414 | wxPyEndAllowThreads(__tstate); | |
8415 | if (PyErr_Occurred()) SWIG_fail; | |
8416 | } | |
8417 | { | |
8418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8419 | } | |
8420 | return resultobj; | |
8421 | fail: | |
8422 | return NULL; | |
8423 | } | |
8424 | ||
8425 | ||
c370783e | 8426 | static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8427 | PyObject *resultobj; |
8428 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8429 | int result; | |
8430 | PyObject * obj0 = 0 ; | |
8431 | char *kwnames[] = { | |
8432 | (char *) "self", NULL | |
8433 | }; | |
8434 | ||
8435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8436 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8437 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8438 | { |
8439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8440 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
8441 | ||
8442 | wxPyEndAllowThreads(__tstate); | |
8443 | if (PyErr_Occurred()) SWIG_fail; | |
8444 | } | |
36ed4f51 RD |
8445 | { |
8446 | resultobj = SWIG_From_int((int)(result)); | |
8447 | } | |
d55e5bfc RD |
8448 | return resultobj; |
8449 | fail: | |
8450 | return NULL; | |
8451 | } | |
8452 | ||
8453 | ||
c370783e | 8454 | static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8455 | PyObject *resultobj; |
8456 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8457 | bool result; | |
8458 | PyObject * obj0 = 0 ; | |
8459 | char *kwnames[] = { | |
8460 | (char *) "self", NULL | |
8461 | }; | |
8462 | ||
8463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8466 | { |
8467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8468 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
8469 | ||
8470 | wxPyEndAllowThreads(__tstate); | |
8471 | if (PyErr_Occurred()) SWIG_fail; | |
8472 | } | |
8473 | { | |
8474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8475 | } | |
8476 | return resultobj; | |
8477 | fail: | |
8478 | return NULL; | |
8479 | } | |
8480 | ||
8481 | ||
c370783e | 8482 | static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8483 | PyObject *resultobj; |
8484 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8485 | int result; | |
8486 | PyObject * obj0 = 0 ; | |
8487 | char *kwnames[] = { | |
8488 | (char *) "self", NULL | |
8489 | }; | |
8490 | ||
8491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8494 | { |
8495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8496 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
8497 | ||
8498 | wxPyEndAllowThreads(__tstate); | |
8499 | if (PyErr_Occurred()) SWIG_fail; | |
8500 | } | |
36ed4f51 RD |
8501 | { |
8502 | resultobj = SWIG_From_int((int)(result)); | |
8503 | } | |
d55e5bfc RD |
8504 | return resultobj; |
8505 | fail: | |
8506 | return NULL; | |
8507 | } | |
8508 | ||
8509 | ||
c370783e | 8510 | static PyObject * Timer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8511 | PyObject *obj; |
8512 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8513 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
8514 | Py_INCREF(obj); | |
8515 | return Py_BuildValue((char *)""); | |
8516 | } | |
c370783e | 8517 | static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8518 | PyObject *resultobj; |
8519 | int arg1 = (int) 0 ; | |
8520 | int arg2 = (int) 0 ; | |
8521 | wxTimerEvent *result; | |
8522 | PyObject * obj0 = 0 ; | |
8523 | PyObject * obj1 = 0 ; | |
8524 | char *kwnames[] = { | |
8525 | (char *) "timerid",(char *) "interval", NULL | |
8526 | }; | |
8527 | ||
8528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
8529 | if (obj0) { | |
36ed4f51 RD |
8530 | { |
8531 | arg1 = (int)(SWIG_As_int(obj0)); | |
8532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8533 | } | |
d55e5bfc RD |
8534 | } |
8535 | if (obj1) { | |
36ed4f51 RD |
8536 | { |
8537 | arg2 = (int)(SWIG_As_int(obj1)); | |
8538 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8539 | } | |
d55e5bfc RD |
8540 | } |
8541 | { | |
8542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8543 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
8544 | ||
8545 | wxPyEndAllowThreads(__tstate); | |
8546 | if (PyErr_Occurred()) SWIG_fail; | |
8547 | } | |
8548 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
8549 | return resultobj; | |
8550 | fail: | |
8551 | return NULL; | |
8552 | } | |
8553 | ||
8554 | ||
c370783e | 8555 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8556 | PyObject *resultobj; |
8557 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
8558 | int result; | |
8559 | PyObject * obj0 = 0 ; | |
8560 | char *kwnames[] = { | |
8561 | (char *) "self", NULL | |
8562 | }; | |
8563 | ||
8564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerEvent, SWIG_POINTER_EXCEPTION | 0); |
8566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8567 | { |
8568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8569 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
8570 | ||
8571 | wxPyEndAllowThreads(__tstate); | |
8572 | if (PyErr_Occurred()) SWIG_fail; | |
8573 | } | |
36ed4f51 RD |
8574 | { |
8575 | resultobj = SWIG_From_int((int)(result)); | |
8576 | } | |
d55e5bfc RD |
8577 | return resultobj; |
8578 | fail: | |
8579 | return NULL; | |
8580 | } | |
8581 | ||
8582 | ||
c370783e | 8583 | static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8584 | PyObject *obj; |
8585 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8586 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
8587 | Py_INCREF(obj); | |
8588 | return Py_BuildValue((char *)""); | |
8589 | } | |
c370783e | 8590 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
8591 | PyObject *resultobj; |
8592 | wxTimer *arg1 = 0 ; | |
8593 | wxTimerRunner *result; | |
8594 | PyObject * obj0 = 0 ; | |
8595 | ||
8596 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
36ed4f51 RD |
8597 | { |
8598 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0); | |
8599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8600 | if (arg1 == NULL) { | |
8601 | SWIG_null_ref("wxTimer"); | |
8602 | } | |
8603 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8604 | } |
8605 | { | |
0439c23b | 8606 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8608 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
8609 | ||
8610 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8611 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8612 | } |
8613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
8614 | return resultobj; | |
8615 | fail: | |
8616 | return NULL; | |
8617 | } | |
8618 | ||
8619 | ||
c370783e | 8620 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
8621 | PyObject *resultobj; |
8622 | wxTimer *arg1 = 0 ; | |
8623 | int arg2 ; | |
b411df4a | 8624 | bool arg3 = (bool) false ; |
d55e5bfc RD |
8625 | wxTimerRunner *result; |
8626 | PyObject * obj0 = 0 ; | |
8627 | PyObject * obj1 = 0 ; | |
8628 | PyObject * obj2 = 0 ; | |
8629 | ||
8630 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8631 | { |
8632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0); | |
8633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8634 | if (arg1 == NULL) { | |
8635 | SWIG_null_ref("wxTimer"); | |
8636 | } | |
8637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8638 | } | |
8639 | { | |
8640 | arg2 = (int)(SWIG_As_int(obj1)); | |
8641 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8642 | } | |
d55e5bfc | 8643 | if (obj2) { |
36ed4f51 RD |
8644 | { |
8645 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8646 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8647 | } | |
d55e5bfc RD |
8648 | } |
8649 | { | |
0439c23b | 8650 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8652 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
8653 | ||
8654 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8655 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8656 | } |
8657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
8658 | return resultobj; | |
8659 | fail: | |
8660 | return NULL; | |
8661 | } | |
8662 | ||
8663 | ||
8664 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
8665 | int argc; | |
8666 | PyObject *argv[4]; | |
8667 | int ii; | |
8668 | ||
8669 | argc = PyObject_Length(args); | |
8670 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
8671 | argv[ii] = PyTuple_GetItem(args,ii); | |
8672 | } | |
8673 | if (argc == 1) { | |
8674 | int _v; | |
8675 | { | |
36ed4f51 | 8676 | void *ptr = 0; |
d55e5bfc RD |
8677 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
8678 | _v = 0; | |
8679 | PyErr_Clear(); | |
8680 | } else { | |
36ed4f51 | 8681 | _v = (ptr != 0); |
d55e5bfc RD |
8682 | } |
8683 | } | |
8684 | if (_v) { | |
8685 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
8686 | } | |
8687 | } | |
8688 | if ((argc >= 2) && (argc <= 3)) { | |
8689 | int _v; | |
8690 | { | |
36ed4f51 | 8691 | void *ptr = 0; |
d55e5bfc RD |
8692 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
8693 | _v = 0; | |
8694 | PyErr_Clear(); | |
8695 | } else { | |
36ed4f51 | 8696 | _v = (ptr != 0); |
d55e5bfc RD |
8697 | } |
8698 | } | |
8699 | if (_v) { | |
c370783e | 8700 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
8701 | if (_v) { |
8702 | if (argc <= 2) { | |
8703 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
8704 | } | |
c370783e | 8705 | _v = SWIG_Check_bool(argv[2]); |
d55e5bfc RD |
8706 | if (_v) { |
8707 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
8708 | } | |
8709 | } | |
8710 | } | |
8711 | } | |
8712 | ||
36ed4f51 | 8713 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_TimerRunner'"); |
d55e5bfc RD |
8714 | return NULL; |
8715 | } | |
8716 | ||
8717 | ||
c370783e | 8718 | static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8719 | PyObject *resultobj; |
8720 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
8721 | PyObject * obj0 = 0 ; | |
8722 | char *kwnames[] = { | |
8723 | (char *) "self", NULL | |
8724 | }; | |
8725 | ||
8726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0); |
8728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8729 | { |
8730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8731 | delete arg1; | |
8732 | ||
8733 | wxPyEndAllowThreads(__tstate); | |
8734 | if (PyErr_Occurred()) SWIG_fail; | |
8735 | } | |
8736 | Py_INCREF(Py_None); resultobj = Py_None; | |
8737 | return resultobj; | |
8738 | fail: | |
8739 | return NULL; | |
8740 | } | |
8741 | ||
8742 | ||
c370783e | 8743 | static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8744 | PyObject *resultobj; |
8745 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
8746 | int arg2 ; | |
b411df4a | 8747 | bool arg3 = (bool) false ; |
d55e5bfc RD |
8748 | PyObject * obj0 = 0 ; |
8749 | PyObject * obj1 = 0 ; | |
8750 | PyObject * obj2 = 0 ; | |
8751 | char *kwnames[] = { | |
8752 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
8753 | }; | |
8754 | ||
8755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0); |
8757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8758 | { | |
8759 | arg2 = (int)(SWIG_As_int(obj1)); | |
8760 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8761 | } | |
d55e5bfc | 8762 | if (obj2) { |
36ed4f51 RD |
8763 | { |
8764 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8765 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8766 | } | |
d55e5bfc RD |
8767 | } |
8768 | { | |
8769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8770 | (arg1)->Start(arg2,arg3); | |
8771 | ||
8772 | wxPyEndAllowThreads(__tstate); | |
8773 | if (PyErr_Occurred()) SWIG_fail; | |
8774 | } | |
8775 | Py_INCREF(Py_None); resultobj = Py_None; | |
8776 | return resultobj; | |
8777 | fail: | |
8778 | return NULL; | |
8779 | } | |
8780 | ||
8781 | ||
c370783e | 8782 | static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8783 | PyObject *obj; |
8784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8785 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
8786 | Py_INCREF(obj); | |
8787 | return Py_BuildValue((char *)""); | |
8788 | } | |
c370783e | 8789 | static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8790 | PyObject *resultobj; |
8791 | wxLog *result; | |
8792 | char *kwnames[] = { | |
8793 | NULL | |
8794 | }; | |
8795 | ||
8796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
8797 | { | |
8798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8799 | result = (wxLog *)new wxLog(); | |
8800 | ||
8801 | wxPyEndAllowThreads(__tstate); | |
8802 | if (PyErr_Occurred()) SWIG_fail; | |
8803 | } | |
8804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
8805 | return resultobj; | |
8806 | fail: | |
8807 | return NULL; | |
8808 | } | |
8809 | ||
8810 | ||
c370783e | 8811 | static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8812 | PyObject *resultobj; |
8813 | bool result; | |
8814 | char *kwnames[] = { | |
8815 | NULL | |
8816 | }; | |
8817 | ||
8818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
8819 | { | |
8820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8821 | result = (bool)wxLog::IsEnabled(); | |
8822 | ||
8823 | wxPyEndAllowThreads(__tstate); | |
8824 | if (PyErr_Occurred()) SWIG_fail; | |
8825 | } | |
8826 | { | |
8827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8828 | } | |
8829 | return resultobj; | |
8830 | fail: | |
8831 | return NULL; | |
8832 | } | |
8833 | ||
8834 | ||
c370783e | 8835 | static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 8836 | PyObject *resultobj; |
b411df4a | 8837 | bool arg1 = (bool) true ; |
d55e5bfc RD |
8838 | bool result; |
8839 | PyObject * obj0 = 0 ; | |
8840 | char *kwnames[] = { | |
8841 | (char *) "doIt", NULL | |
8842 | }; | |
8843 | ||
8844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
8845 | if (obj0) { | |
36ed4f51 RD |
8846 | { |
8847 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
8848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8849 | } | |
d55e5bfc RD |
8850 | } |
8851 | { | |
8852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8853 | result = (bool)wxLog::EnableLogging(arg1); | |
8854 | ||
8855 | wxPyEndAllowThreads(__tstate); | |
8856 | if (PyErr_Occurred()) SWIG_fail; | |
8857 | } | |
8858 | { | |
8859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8860 | } | |
8861 | return resultobj; | |
8862 | fail: | |
8863 | return NULL; | |
8864 | } | |
8865 | ||
8866 | ||
c370783e | 8867 | static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8868 | PyObject *resultobj; |
8869 | wxLogLevel arg1 ; | |
8870 | wxChar *arg2 = (wxChar *) 0 ; | |
8871 | time_t arg3 ; | |
8872 | PyObject * obj0 = 0 ; | |
8873 | PyObject * obj1 = 0 ; | |
8874 | PyObject * obj2 = 0 ; | |
8875 | char *kwnames[] = { | |
8876 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
8877 | }; | |
8878 | ||
8879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8880 | { |
8881 | arg1 = (wxLogLevel)(SWIG_As_unsigned_SS_long(obj0)); | |
8882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8883 | } | |
8884 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); | |
8885 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8886 | { | |
8887 | arg3 = (time_t)(SWIG_As_unsigned_SS_int(obj2)); | |
8888 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8889 | } | |
d55e5bfc RD |
8890 | { |
8891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8892 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
8893 | ||
8894 | wxPyEndAllowThreads(__tstate); | |
8895 | if (PyErr_Occurred()) SWIG_fail; | |
8896 | } | |
8897 | Py_INCREF(Py_None); resultobj = Py_None; | |
8898 | return resultobj; | |
8899 | fail: | |
8900 | return NULL; | |
8901 | } | |
8902 | ||
8903 | ||
c370783e | 8904 | static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8905 | PyObject *resultobj; |
8906 | wxLog *arg1 = (wxLog *) 0 ; | |
8907 | PyObject * obj0 = 0 ; | |
8908 | char *kwnames[] = { | |
8909 | (char *) "self", NULL | |
8910 | }; | |
8911 | ||
8912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
8914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8915 | { |
8916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8917 | (arg1)->Flush(); | |
8918 | ||
8919 | wxPyEndAllowThreads(__tstate); | |
8920 | if (PyErr_Occurred()) SWIG_fail; | |
8921 | } | |
8922 | Py_INCREF(Py_None); resultobj = Py_None; | |
8923 | return resultobj; | |
8924 | fail: | |
8925 | return NULL; | |
8926 | } | |
8927 | ||
8928 | ||
c370783e | 8929 | static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8930 | PyObject *resultobj; |
8931 | char *kwnames[] = { | |
8932 | NULL | |
8933 | }; | |
8934 | ||
8935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
8936 | { | |
8937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8938 | wxLog::FlushActive(); | |
8939 | ||
8940 | wxPyEndAllowThreads(__tstate); | |
8941 | if (PyErr_Occurred()) SWIG_fail; | |
8942 | } | |
8943 | Py_INCREF(Py_None); resultobj = Py_None; | |
8944 | return resultobj; | |
8945 | fail: | |
8946 | return NULL; | |
8947 | } | |
8948 | ||
8949 | ||
c370783e | 8950 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8951 | PyObject *resultobj; |
8952 | wxLog *result; | |
8953 | char *kwnames[] = { | |
8954 | NULL | |
8955 | }; | |
8956 | ||
8957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
8958 | { | |
8959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8960 | result = (wxLog *)wxLog::GetActiveTarget(); | |
8961 | ||
8962 | wxPyEndAllowThreads(__tstate); | |
8963 | if (PyErr_Occurred()) SWIG_fail; | |
8964 | } | |
8965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8966 | return resultobj; | |
8967 | fail: | |
8968 | return NULL; | |
8969 | } | |
8970 | ||
8971 | ||
c370783e | 8972 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8973 | PyObject *resultobj; |
8974 | wxLog *arg1 = (wxLog *) 0 ; | |
8975 | wxLog *result; | |
8976 | PyObject * obj0 = 0 ; | |
8977 | char *kwnames[] = { | |
8978 | (char *) "pLogger", NULL | |
8979 | }; | |
8980 | ||
8981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8982 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
8983 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8984 | { |
8985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8986 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
8987 | ||
8988 | wxPyEndAllowThreads(__tstate); | |
8989 | if (PyErr_Occurred()) SWIG_fail; | |
8990 | } | |
8991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8992 | return resultobj; | |
8993 | fail: | |
8994 | return NULL; | |
8995 | } | |
8996 | ||
8997 | ||
c370783e | 8998 | static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8999 | PyObject *resultobj; |
9000 | char *kwnames[] = { | |
9001 | NULL | |
9002 | }; | |
9003 | ||
9004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
9005 | { | |
9006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9007 | wxLog::Suspend(); | |
9008 | ||
9009 | wxPyEndAllowThreads(__tstate); | |
9010 | if (PyErr_Occurred()) SWIG_fail; | |
9011 | } | |
9012 | Py_INCREF(Py_None); resultobj = Py_None; | |
9013 | return resultobj; | |
9014 | fail: | |
9015 | return NULL; | |
9016 | } | |
9017 | ||
9018 | ||
c370783e | 9019 | static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9020 | PyObject *resultobj; |
9021 | char *kwnames[] = { | |
9022 | NULL | |
9023 | }; | |
9024 | ||
9025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
9026 | { | |
9027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9028 | wxLog::Resume(); | |
9029 | ||
9030 | wxPyEndAllowThreads(__tstate); | |
9031 | if (PyErr_Occurred()) SWIG_fail; | |
9032 | } | |
9033 | Py_INCREF(Py_None); resultobj = Py_None; | |
9034 | return resultobj; | |
9035 | fail: | |
9036 | return NULL; | |
9037 | } | |
9038 | ||
9039 | ||
c370783e | 9040 | static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 9041 | PyObject *resultobj; |
b411df4a | 9042 | bool arg1 = (bool) true ; |
d55e5bfc RD |
9043 | PyObject * obj0 = 0 ; |
9044 | char *kwnames[] = { | |
9045 | (char *) "bVerbose", NULL | |
9046 | }; | |
9047 | ||
9048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
9049 | if (obj0) { | |
36ed4f51 RD |
9050 | { |
9051 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
9052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9053 | } | |
d55e5bfc RD |
9054 | } |
9055 | { | |
9056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9057 | wxLog::SetVerbose(arg1); | |
9058 | ||
9059 | wxPyEndAllowThreads(__tstate); | |
9060 | if (PyErr_Occurred()) SWIG_fail; | |
9061 | } | |
9062 | Py_INCREF(Py_None); resultobj = Py_None; | |
9063 | return resultobj; | |
9064 | fail: | |
9065 | return NULL; | |
9066 | } | |
9067 | ||
9068 | ||
c370783e | 9069 | static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9070 | PyObject *resultobj; |
9071 | wxLogLevel arg1 ; | |
9072 | PyObject * obj0 = 0 ; | |
9073 | char *kwnames[] = { | |
9074 | (char *) "logLevel", NULL | |
9075 | }; | |
9076 | ||
9077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9078 | { |
9079 | arg1 = (wxLogLevel)(SWIG_As_unsigned_SS_long(obj0)); | |
9080 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9081 | } | |
d55e5bfc RD |
9082 | { |
9083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9084 | wxLog::SetLogLevel(arg1); | |
9085 | ||
9086 | wxPyEndAllowThreads(__tstate); | |
9087 | if (PyErr_Occurred()) SWIG_fail; | |
9088 | } | |
9089 | Py_INCREF(Py_None); resultobj = Py_None; | |
9090 | return resultobj; | |
9091 | fail: | |
9092 | return NULL; | |
9093 | } | |
9094 | ||
9095 | ||
c370783e | 9096 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9097 | PyObject *resultobj; |
9098 | char *kwnames[] = { | |
9099 | NULL | |
9100 | }; | |
9101 | ||
9102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
9103 | { | |
9104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9105 | wxLog::DontCreateOnDemand(); | |
9106 | ||
9107 | wxPyEndAllowThreads(__tstate); | |
9108 | if (PyErr_Occurred()) SWIG_fail; | |
9109 | } | |
9110 | Py_INCREF(Py_None); resultobj = Py_None; | |
9111 | return resultobj; | |
9112 | fail: | |
9113 | return NULL; | |
9114 | } | |
9115 | ||
9116 | ||
c370783e | 9117 | static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9118 | PyObject *resultobj; |
9119 | wxTraceMask arg1 ; | |
9120 | PyObject * obj0 = 0 ; | |
9121 | char *kwnames[] = { | |
9122 | (char *) "ulMask", NULL | |
9123 | }; | |
9124 | ||
9125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9126 | { |
9127 | arg1 = (wxTraceMask)(SWIG_As_unsigned_SS_long(obj0)); | |
9128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9129 | } | |
d55e5bfc RD |
9130 | { |
9131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9132 | wxLog::SetTraceMask(arg1); | |
9133 | ||
9134 | wxPyEndAllowThreads(__tstate); | |
9135 | if (PyErr_Occurred()) SWIG_fail; | |
9136 | } | |
9137 | Py_INCREF(Py_None); resultobj = Py_None; | |
9138 | return resultobj; | |
9139 | fail: | |
9140 | return NULL; | |
9141 | } | |
9142 | ||
9143 | ||
c370783e | 9144 | static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9145 | PyObject *resultobj; |
9146 | wxString *arg1 = 0 ; | |
b411df4a | 9147 | bool temp1 = false ; |
d55e5bfc RD |
9148 | PyObject * obj0 = 0 ; |
9149 | char *kwnames[] = { | |
9150 | (char *) "str", NULL | |
9151 | }; | |
9152 | ||
9153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
9154 | { | |
9155 | arg1 = wxString_in_helper(obj0); | |
9156 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9157 | temp1 = true; |
d55e5bfc RD |
9158 | } |
9159 | { | |
9160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9161 | wxLog::AddTraceMask((wxString const &)*arg1); | |
9162 | ||
9163 | wxPyEndAllowThreads(__tstate); | |
9164 | if (PyErr_Occurred()) SWIG_fail; | |
9165 | } | |
9166 | Py_INCREF(Py_None); resultobj = Py_None; | |
9167 | { | |
9168 | if (temp1) | |
9169 | delete arg1; | |
9170 | } | |
9171 | return resultobj; | |
9172 | fail: | |
9173 | { | |
9174 | if (temp1) | |
9175 | delete arg1; | |
9176 | } | |
9177 | return NULL; | |
9178 | } | |
9179 | ||
9180 | ||
c370783e | 9181 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9182 | PyObject *resultobj; |
9183 | wxString *arg1 = 0 ; | |
b411df4a | 9184 | bool temp1 = false ; |
d55e5bfc RD |
9185 | PyObject * obj0 = 0 ; |
9186 | char *kwnames[] = { | |
9187 | (char *) "str", NULL | |
9188 | }; | |
9189 | ||
9190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
9191 | { | |
9192 | arg1 = wxString_in_helper(obj0); | |
9193 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9194 | temp1 = true; |
d55e5bfc RD |
9195 | } |
9196 | { | |
9197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9198 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
9199 | ||
9200 | wxPyEndAllowThreads(__tstate); | |
9201 | if (PyErr_Occurred()) SWIG_fail; | |
9202 | } | |
9203 | Py_INCREF(Py_None); resultobj = Py_None; | |
9204 | { | |
9205 | if (temp1) | |
9206 | delete arg1; | |
9207 | } | |
9208 | return resultobj; | |
9209 | fail: | |
9210 | { | |
9211 | if (temp1) | |
9212 | delete arg1; | |
9213 | } | |
9214 | return NULL; | |
9215 | } | |
9216 | ||
9217 | ||
c370783e | 9218 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9219 | PyObject *resultobj; |
9220 | char *kwnames[] = { | |
9221 | NULL | |
9222 | }; | |
9223 | ||
9224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
9225 | { | |
9226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9227 | wxLog::ClearTraceMasks(); | |
9228 | ||
9229 | wxPyEndAllowThreads(__tstate); | |
9230 | if (PyErr_Occurred()) SWIG_fail; | |
9231 | } | |
9232 | Py_INCREF(Py_None); resultobj = Py_None; | |
9233 | return resultobj; | |
9234 | fail: | |
9235 | return NULL; | |
9236 | } | |
9237 | ||
9238 | ||
c370783e | 9239 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9240 | PyObject *resultobj; |
9241 | wxArrayString *result; | |
9242 | char *kwnames[] = { | |
9243 | NULL | |
9244 | }; | |
9245 | ||
9246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
9247 | { | |
9248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9249 | { | |
9250 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
9251 | result = (wxArrayString *) &_result_ref; | |
9252 | } | |
9253 | ||
9254 | wxPyEndAllowThreads(__tstate); | |
9255 | if (PyErr_Occurred()) SWIG_fail; | |
9256 | } | |
9257 | { | |
9258 | resultobj = wxArrayString2PyList_helper(*result); | |
9259 | } | |
9260 | return resultobj; | |
9261 | fail: | |
9262 | return NULL; | |
9263 | } | |
9264 | ||
9265 | ||
c370783e | 9266 | static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9267 | PyObject *resultobj; |
9268 | wxChar *arg1 = (wxChar *) 0 ; | |
9269 | PyObject * obj0 = 0 ; | |
9270 | char *kwnames[] = { | |
9271 | (char *) "ts", NULL | |
9272 | }; | |
9273 | ||
9274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9275 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); |
9276 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9277 | { |
9278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9279 | wxLog::SetTimestamp((wxChar const *)arg1); | |
9280 | ||
9281 | wxPyEndAllowThreads(__tstate); | |
9282 | if (PyErr_Occurred()) SWIG_fail; | |
9283 | } | |
9284 | Py_INCREF(Py_None); resultobj = Py_None; | |
9285 | return resultobj; | |
9286 | fail: | |
9287 | return NULL; | |
9288 | } | |
9289 | ||
9290 | ||
c370783e | 9291 | static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9292 | PyObject *resultobj; |
9293 | bool result; | |
9294 | char *kwnames[] = { | |
9295 | NULL | |
9296 | }; | |
9297 | ||
9298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
9299 | { | |
9300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9301 | result = (bool)wxLog::GetVerbose(); | |
9302 | ||
9303 | wxPyEndAllowThreads(__tstate); | |
9304 | if (PyErr_Occurred()) SWIG_fail; | |
9305 | } | |
9306 | { | |
9307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9308 | } | |
9309 | return resultobj; | |
9310 | fail: | |
9311 | return NULL; | |
9312 | } | |
9313 | ||
9314 | ||
c370783e | 9315 | static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9316 | PyObject *resultobj; |
9317 | wxTraceMask result; | |
9318 | char *kwnames[] = { | |
9319 | NULL | |
9320 | }; | |
9321 | ||
9322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
9323 | { | |
9324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9325 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
9326 | ||
9327 | wxPyEndAllowThreads(__tstate); | |
9328 | if (PyErr_Occurred()) SWIG_fail; | |
9329 | } | |
36ed4f51 RD |
9330 | { |
9331 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
9332 | } | |
d55e5bfc RD |
9333 | return resultobj; |
9334 | fail: | |
9335 | return NULL; | |
9336 | } | |
9337 | ||
9338 | ||
c370783e | 9339 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9340 | PyObject *resultobj; |
9341 | wxChar *arg1 = (wxChar *) 0 ; | |
9342 | bool result; | |
9343 | PyObject * obj0 = 0 ; | |
9344 | char *kwnames[] = { | |
9345 | (char *) "mask", NULL | |
9346 | }; | |
9347 | ||
9348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); |
9350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9351 | { |
9352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9353 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
9354 | ||
9355 | wxPyEndAllowThreads(__tstate); | |
9356 | if (PyErr_Occurred()) SWIG_fail; | |
9357 | } | |
9358 | { | |
9359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9360 | } | |
9361 | return resultobj; | |
9362 | fail: | |
9363 | return NULL; | |
9364 | } | |
9365 | ||
9366 | ||
c370783e | 9367 | static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9368 | PyObject *resultobj; |
9369 | wxLogLevel result; | |
9370 | char *kwnames[] = { | |
9371 | NULL | |
9372 | }; | |
9373 | ||
9374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
9375 | { | |
9376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9377 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
9378 | ||
9379 | wxPyEndAllowThreads(__tstate); | |
9380 | if (PyErr_Occurred()) SWIG_fail; | |
9381 | } | |
36ed4f51 RD |
9382 | { |
9383 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
9384 | } | |
d55e5bfc RD |
9385 | return resultobj; |
9386 | fail: | |
9387 | return NULL; | |
9388 | } | |
9389 | ||
9390 | ||
c370783e | 9391 | static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9392 | PyObject *resultobj; |
9393 | wxChar *result; | |
9394 | char *kwnames[] = { | |
9395 | NULL | |
9396 | }; | |
9397 | ||
9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
9399 | { | |
9400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9401 | result = (wxChar *)wxLog::GetTimestamp(); | |
9402 | ||
9403 | wxPyEndAllowThreads(__tstate); | |
9404 | if (PyErr_Occurred()) SWIG_fail; | |
9405 | } | |
9406 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
9407 | return resultobj; | |
9408 | fail: | |
9409 | return NULL; | |
9410 | } | |
9411 | ||
9412 | ||
c370783e | 9413 | static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9414 | PyObject *resultobj; |
9415 | wxString result; | |
9416 | char *kwnames[] = { | |
9417 | NULL | |
9418 | }; | |
9419 | ||
9420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
9421 | { | |
9422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9423 | result = Log_TimeStamp(); | |
9424 | ||
9425 | wxPyEndAllowThreads(__tstate); | |
9426 | if (PyErr_Occurred()) SWIG_fail; | |
9427 | } | |
9428 | { | |
9429 | #if wxUSE_UNICODE | |
9430 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9431 | #else | |
9432 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9433 | #endif | |
9434 | } | |
9435 | return resultobj; | |
9436 | fail: | |
9437 | return NULL; | |
9438 | } | |
9439 | ||
9440 | ||
c370783e | 9441 | static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9442 | PyObject *resultobj; |
9443 | wxLog *arg1 = (wxLog *) 0 ; | |
9444 | PyObject * obj0 = 0 ; | |
9445 | char *kwnames[] = { | |
9446 | (char *) "self", NULL | |
9447 | }; | |
9448 | ||
9449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
9451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9452 | { |
9453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9454 | wxLog_Destroy(arg1); | |
9455 | ||
9456 | wxPyEndAllowThreads(__tstate); | |
9457 | if (PyErr_Occurred()) SWIG_fail; | |
9458 | } | |
9459 | Py_INCREF(Py_None); resultobj = Py_None; | |
9460 | return resultobj; | |
9461 | fail: | |
9462 | return NULL; | |
9463 | } | |
9464 | ||
9465 | ||
c370783e | 9466 | static PyObject * Log_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9467 | PyObject *obj; |
9468 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9469 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
9470 | Py_INCREF(obj); | |
9471 | return Py_BuildValue((char *)""); | |
9472 | } | |
c370783e | 9473 | static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9474 | PyObject *resultobj; |
9475 | wxLogStderr *result; | |
9476 | char *kwnames[] = { | |
9477 | NULL | |
9478 | }; | |
9479 | ||
9480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
9481 | { | |
9482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9483 | result = (wxLogStderr *)new wxLogStderr(); | |
9484 | ||
9485 | wxPyEndAllowThreads(__tstate); | |
9486 | if (PyErr_Occurred()) SWIG_fail; | |
9487 | } | |
9488 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
9489 | return resultobj; | |
9490 | fail: | |
9491 | return NULL; | |
9492 | } | |
9493 | ||
9494 | ||
c370783e | 9495 | static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9496 | PyObject *obj; |
9497 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9498 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
9499 | Py_INCREF(obj); | |
9500 | return Py_BuildValue((char *)""); | |
9501 | } | |
c370783e | 9502 | static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9503 | PyObject *resultobj; |
9504 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9505 | wxLogTextCtrl *result; | |
9506 | PyObject * obj0 = 0 ; | |
9507 | char *kwnames[] = { | |
9508 | (char *) "pTextCtrl", NULL | |
9509 | }; | |
9510 | ||
9511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9514 | { |
9515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9516 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
9517 | ||
9518 | wxPyEndAllowThreads(__tstate); | |
9519 | if (PyErr_Occurred()) SWIG_fail; | |
9520 | } | |
9521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
9522 | return resultobj; | |
9523 | fail: | |
9524 | return NULL; | |
9525 | } | |
9526 | ||
9527 | ||
c370783e | 9528 | static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9529 | PyObject *obj; |
9530 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9531 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
9532 | Py_INCREF(obj); | |
9533 | return Py_BuildValue((char *)""); | |
9534 | } | |
c370783e | 9535 | static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9536 | PyObject *resultobj; |
9537 | wxLogGui *result; | |
9538 | char *kwnames[] = { | |
9539 | NULL | |
9540 | }; | |
9541 | ||
9542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
9543 | { | |
9544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9545 | result = (wxLogGui *)new wxLogGui(); | |
9546 | ||
9547 | wxPyEndAllowThreads(__tstate); | |
9548 | if (PyErr_Occurred()) SWIG_fail; | |
9549 | } | |
9550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
9551 | return resultobj; | |
9552 | fail: | |
9553 | return NULL; | |
9554 | } | |
9555 | ||
9556 | ||
c370783e | 9557 | static PyObject * LogGui_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9558 | PyObject *obj; |
9559 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9560 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
9561 | Py_INCREF(obj); | |
9562 | return Py_BuildValue((char *)""); | |
9563 | } | |
c370783e | 9564 | static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9565 | PyObject *resultobj; |
9566 | wxFrame *arg1 = (wxFrame *) 0 ; | |
9567 | wxString *arg2 = 0 ; | |
b411df4a RD |
9568 | bool arg3 = (bool) true ; |
9569 | bool arg4 = (bool) true ; | |
d55e5bfc | 9570 | wxLogWindow *result; |
b411df4a | 9571 | bool temp2 = false ; |
d55e5bfc RD |
9572 | PyObject * obj0 = 0 ; |
9573 | PyObject * obj1 = 0 ; | |
9574 | PyObject * obj2 = 0 ; | |
9575 | PyObject * obj3 = 0 ; | |
9576 | char *kwnames[] = { | |
9577 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
9578 | }; | |
9579 | ||
9580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
9581 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0); |
9582 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9583 | { |
9584 | arg2 = wxString_in_helper(obj1); | |
9585 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9586 | temp2 = true; |
d55e5bfc RD |
9587 | } |
9588 | if (obj2) { | |
36ed4f51 RD |
9589 | { |
9590 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
9591 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9592 | } | |
d55e5bfc RD |
9593 | } |
9594 | if (obj3) { | |
36ed4f51 RD |
9595 | { |
9596 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
9597 | if (SWIG_arg_fail(4)) SWIG_fail; | |
9598 | } | |
d55e5bfc RD |
9599 | } |
9600 | { | |
9601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9602 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
9603 | ||
9604 | wxPyEndAllowThreads(__tstate); | |
9605 | if (PyErr_Occurred()) SWIG_fail; | |
9606 | } | |
9607 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
9608 | { | |
9609 | if (temp2) | |
9610 | delete arg2; | |
9611 | } | |
9612 | return resultobj; | |
9613 | fail: | |
9614 | { | |
9615 | if (temp2) | |
9616 | delete arg2; | |
9617 | } | |
9618 | return NULL; | |
9619 | } | |
9620 | ||
9621 | ||
c370783e | 9622 | static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9623 | PyObject *resultobj; |
9624 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
b411df4a | 9625 | bool arg2 = (bool) true ; |
d55e5bfc RD |
9626 | PyObject * obj0 = 0 ; |
9627 | PyObject * obj1 = 0 ; | |
9628 | char *kwnames[] = { | |
9629 | (char *) "self",(char *) "bShow", NULL | |
9630 | }; | |
9631 | ||
9632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
9633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
9634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 9635 | if (obj1) { |
36ed4f51 RD |
9636 | { |
9637 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
9638 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9639 | } | |
d55e5bfc RD |
9640 | } |
9641 | { | |
9642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9643 | (arg1)->Show(arg2); | |
9644 | ||
9645 | wxPyEndAllowThreads(__tstate); | |
9646 | if (PyErr_Occurred()) SWIG_fail; | |
9647 | } | |
9648 | Py_INCREF(Py_None); resultobj = Py_None; | |
9649 | return resultobj; | |
9650 | fail: | |
9651 | return NULL; | |
9652 | } | |
9653 | ||
9654 | ||
c370783e | 9655 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9656 | PyObject *resultobj; |
9657 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
9658 | wxFrame *result; | |
9659 | PyObject * obj0 = 0 ; | |
9660 | char *kwnames[] = { | |
9661 | (char *) "self", NULL | |
9662 | }; | |
9663 | ||
9664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9665 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
9666 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9667 | { |
9668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9669 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
9670 | ||
9671 | wxPyEndAllowThreads(__tstate); | |
9672 | if (PyErr_Occurred()) SWIG_fail; | |
9673 | } | |
9674 | { | |
412d302d | 9675 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
9676 | } |
9677 | return resultobj; | |
9678 | fail: | |
9679 | return NULL; | |
9680 | } | |
9681 | ||
9682 | ||
c370783e | 9683 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9684 | PyObject *resultobj; |
9685 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
9686 | wxLog *result; | |
9687 | PyObject * obj0 = 0 ; | |
9688 | char *kwnames[] = { | |
9689 | (char *) "self", NULL | |
9690 | }; | |
9691 | ||
9692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
9694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9695 | { |
9696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9697 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
9698 | ||
9699 | wxPyEndAllowThreads(__tstate); | |
9700 | if (PyErr_Occurred()) SWIG_fail; | |
9701 | } | |
9702 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
9703 | return resultobj; | |
9704 | fail: | |
9705 | return NULL; | |
9706 | } | |
9707 | ||
9708 | ||
c370783e | 9709 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9710 | PyObject *resultobj; |
9711 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
9712 | bool result; | |
9713 | PyObject * obj0 = 0 ; | |
9714 | char *kwnames[] = { | |
9715 | (char *) "self", NULL | |
9716 | }; | |
9717 | ||
9718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
9720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9721 | { |
9722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9723 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
9724 | ||
9725 | wxPyEndAllowThreads(__tstate); | |
9726 | if (PyErr_Occurred()) SWIG_fail; | |
9727 | } | |
9728 | { | |
9729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9730 | } | |
9731 | return resultobj; | |
9732 | fail: | |
9733 | return NULL; | |
9734 | } | |
9735 | ||
9736 | ||
c370783e | 9737 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9738 | PyObject *resultobj; |
9739 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
9740 | bool arg2 ; | |
9741 | PyObject * obj0 = 0 ; | |
9742 | PyObject * obj1 = 0 ; | |
9743 | char *kwnames[] = { | |
9744 | (char *) "self",(char *) "bDoPass", NULL | |
9745 | }; | |
9746 | ||
9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
9748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
9749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9750 | { | |
9751 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
9752 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9753 | } | |
d55e5bfc RD |
9754 | { |
9755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9756 | (arg1)->PassMessages(arg2); | |
9757 | ||
9758 | wxPyEndAllowThreads(__tstate); | |
9759 | if (PyErr_Occurred()) SWIG_fail; | |
9760 | } | |
9761 | Py_INCREF(Py_None); resultobj = Py_None; | |
9762 | return resultobj; | |
9763 | fail: | |
9764 | return NULL; | |
9765 | } | |
9766 | ||
9767 | ||
c370783e | 9768 | static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9769 | PyObject *obj; |
9770 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9771 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
9772 | Py_INCREF(obj); | |
9773 | return Py_BuildValue((char *)""); | |
9774 | } | |
c370783e | 9775 | static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9776 | PyObject *resultobj; |
9777 | wxLog *arg1 = (wxLog *) 0 ; | |
9778 | wxLogChain *result; | |
9779 | PyObject * obj0 = 0 ; | |
9780 | char *kwnames[] = { | |
9781 | (char *) "logger", NULL | |
9782 | }; | |
9783 | ||
9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
9786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9787 | { |
9788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9789 | result = (wxLogChain *)new wxLogChain(arg1); | |
9790 | ||
9791 | wxPyEndAllowThreads(__tstate); | |
9792 | if (PyErr_Occurred()) SWIG_fail; | |
9793 | } | |
9794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
9795 | return resultobj; | |
9796 | fail: | |
9797 | return NULL; | |
9798 | } | |
9799 | ||
9800 | ||
c370783e | 9801 | static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9802 | PyObject *resultobj; |
9803 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
9804 | wxLog *arg2 = (wxLog *) 0 ; | |
9805 | PyObject * obj0 = 0 ; | |
9806 | PyObject * obj1 = 0 ; | |
9807 | char *kwnames[] = { | |
9808 | (char *) "self",(char *) "logger", NULL | |
9809 | }; | |
9810 | ||
9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
9812 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
9813 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9814 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); | |
9815 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
9816 | { |
9817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9818 | (arg1)->SetLog(arg2); | |
9819 | ||
9820 | wxPyEndAllowThreads(__tstate); | |
9821 | if (PyErr_Occurred()) SWIG_fail; | |
9822 | } | |
9823 | Py_INCREF(Py_None); resultobj = Py_None; | |
9824 | return resultobj; | |
9825 | fail: | |
9826 | return NULL; | |
9827 | } | |
9828 | ||
9829 | ||
c370783e | 9830 | static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9831 | PyObject *resultobj; |
9832 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
9833 | bool arg2 ; | |
9834 | PyObject * obj0 = 0 ; | |
9835 | PyObject * obj1 = 0 ; | |
9836 | char *kwnames[] = { | |
9837 | (char *) "self",(char *) "bDoPass", NULL | |
9838 | }; | |
9839 | ||
9840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
9841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
9842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9843 | { | |
9844 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
9845 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9846 | } | |
d55e5bfc RD |
9847 | { |
9848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9849 | (arg1)->PassMessages(arg2); | |
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 | ||
c370783e | 9861 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9862 | PyObject *resultobj; |
9863 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
9864 | bool result; | |
9865 | PyObject * obj0 = 0 ; | |
9866 | char *kwnames[] = { | |
9867 | (char *) "self", NULL | |
9868 | }; | |
9869 | ||
9870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9871 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
9872 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9873 | { |
9874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9875 | result = (bool)(arg1)->IsPassingMessages(); | |
9876 | ||
9877 | wxPyEndAllowThreads(__tstate); | |
9878 | if (PyErr_Occurred()) SWIG_fail; | |
9879 | } | |
9880 | { | |
9881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9882 | } | |
9883 | return resultobj; | |
9884 | fail: | |
9885 | return NULL; | |
9886 | } | |
9887 | ||
9888 | ||
c370783e | 9889 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9890 | PyObject *resultobj; |
9891 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
9892 | wxLog *result; | |
9893 | PyObject * obj0 = 0 ; | |
9894 | char *kwnames[] = { | |
9895 | (char *) "self", NULL | |
9896 | }; | |
9897 | ||
9898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
9900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9901 | { |
9902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9903 | result = (wxLog *)(arg1)->GetOldLog(); | |
9904 | ||
9905 | wxPyEndAllowThreads(__tstate); | |
9906 | if (PyErr_Occurred()) SWIG_fail; | |
9907 | } | |
9908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
9909 | return resultobj; | |
9910 | fail: | |
9911 | return NULL; | |
9912 | } | |
9913 | ||
9914 | ||
c370783e | 9915 | static PyObject * LogChain_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9916 | PyObject *obj; |
9917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9918 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
9919 | Py_INCREF(obj); | |
9920 | return Py_BuildValue((char *)""); | |
9921 | } | |
c370783e | 9922 | static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9923 | PyObject *resultobj; |
9924 | unsigned long result; | |
9925 | char *kwnames[] = { | |
9926 | NULL | |
9927 | }; | |
9928 | ||
9929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
9930 | { | |
9931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9932 | result = (unsigned long)wxSysErrorCode(); | |
9933 | ||
9934 | wxPyEndAllowThreads(__tstate); | |
9935 | if (PyErr_Occurred()) SWIG_fail; | |
9936 | } | |
36ed4f51 RD |
9937 | { |
9938 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
9939 | } | |
d55e5bfc RD |
9940 | return resultobj; |
9941 | fail: | |
9942 | return NULL; | |
9943 | } | |
9944 | ||
9945 | ||
c370783e | 9946 | static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9947 | PyObject *resultobj; |
9948 | unsigned long arg1 = (unsigned long) 0 ; | |
9949 | wxString result; | |
9950 | PyObject * obj0 = 0 ; | |
9951 | char *kwnames[] = { | |
9952 | (char *) "nErrCode", NULL | |
9953 | }; | |
9954 | ||
9955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
9956 | if (obj0) { | |
36ed4f51 RD |
9957 | { |
9958 | arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0)); | |
9959 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9960 | } | |
d55e5bfc RD |
9961 | } |
9962 | { | |
9963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9964 | result = wxSysErrorMsg(arg1); | |
9965 | ||
9966 | wxPyEndAllowThreads(__tstate); | |
9967 | if (PyErr_Occurred()) SWIG_fail; | |
9968 | } | |
9969 | { | |
9970 | #if wxUSE_UNICODE | |
9971 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9972 | #else | |
9973 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9974 | #endif | |
9975 | } | |
9976 | return resultobj; | |
9977 | fail: | |
9978 | return NULL; | |
9979 | } | |
9980 | ||
9981 | ||
c370783e | 9982 | static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9983 | PyObject *resultobj; |
9984 | wxString *arg1 = 0 ; | |
b411df4a | 9985 | bool temp1 = false ; |
d55e5bfc RD |
9986 | PyObject * obj0 = 0 ; |
9987 | char *kwnames[] = { | |
9988 | (char *) "msg", NULL | |
9989 | }; | |
9990 | ||
9991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
9992 | { | |
9993 | arg1 = wxString_in_helper(obj0); | |
9994 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9995 | temp1 = true; |
d55e5bfc RD |
9996 | } |
9997 | { | |
9998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 9999 | wxPyLogFatalError((wxString const &)*arg1); |
d55e5bfc RD |
10000 | |
10001 | wxPyEndAllowThreads(__tstate); | |
10002 | if (PyErr_Occurred()) SWIG_fail; | |
10003 | } | |
10004 | Py_INCREF(Py_None); resultobj = Py_None; | |
10005 | { | |
10006 | if (temp1) | |
10007 | delete arg1; | |
10008 | } | |
10009 | return resultobj; | |
10010 | fail: | |
10011 | { | |
10012 | if (temp1) | |
10013 | delete arg1; | |
10014 | } | |
10015 | return NULL; | |
10016 | } | |
10017 | ||
10018 | ||
c370783e | 10019 | static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10020 | PyObject *resultobj; |
10021 | wxString *arg1 = 0 ; | |
b411df4a | 10022 | bool temp1 = false ; |
d55e5bfc RD |
10023 | PyObject * obj0 = 0 ; |
10024 | char *kwnames[] = { | |
10025 | (char *) "msg", NULL | |
10026 | }; | |
10027 | ||
10028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
10029 | { | |
10030 | arg1 = wxString_in_helper(obj0); | |
10031 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10032 | temp1 = true; |
d55e5bfc RD |
10033 | } |
10034 | { | |
10035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10036 | wxPyLogError((wxString const &)*arg1); |
d55e5bfc RD |
10037 | |
10038 | wxPyEndAllowThreads(__tstate); | |
10039 | if (PyErr_Occurred()) SWIG_fail; | |
10040 | } | |
10041 | Py_INCREF(Py_None); resultobj = Py_None; | |
10042 | { | |
10043 | if (temp1) | |
10044 | delete arg1; | |
10045 | } | |
10046 | return resultobj; | |
10047 | fail: | |
10048 | { | |
10049 | if (temp1) | |
10050 | delete arg1; | |
10051 | } | |
10052 | return NULL; | |
10053 | } | |
10054 | ||
10055 | ||
c370783e | 10056 | static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10057 | PyObject *resultobj; |
10058 | wxString *arg1 = 0 ; | |
b411df4a | 10059 | bool temp1 = false ; |
d55e5bfc RD |
10060 | PyObject * obj0 = 0 ; |
10061 | char *kwnames[] = { | |
10062 | (char *) "msg", NULL | |
10063 | }; | |
10064 | ||
10065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
10066 | { | |
10067 | arg1 = wxString_in_helper(obj0); | |
10068 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10069 | temp1 = true; |
d55e5bfc RD |
10070 | } |
10071 | { | |
10072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10073 | wxPyLogWarning((wxString const &)*arg1); |
d55e5bfc RD |
10074 | |
10075 | wxPyEndAllowThreads(__tstate); | |
10076 | if (PyErr_Occurred()) SWIG_fail; | |
10077 | } | |
10078 | Py_INCREF(Py_None); resultobj = Py_None; | |
10079 | { | |
10080 | if (temp1) | |
10081 | delete arg1; | |
10082 | } | |
10083 | return resultobj; | |
10084 | fail: | |
10085 | { | |
10086 | if (temp1) | |
10087 | delete arg1; | |
10088 | } | |
10089 | return NULL; | |
10090 | } | |
10091 | ||
10092 | ||
c370783e | 10093 | static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10094 | PyObject *resultobj; |
10095 | wxString *arg1 = 0 ; | |
b411df4a | 10096 | bool temp1 = false ; |
d55e5bfc RD |
10097 | PyObject * obj0 = 0 ; |
10098 | char *kwnames[] = { | |
10099 | (char *) "msg", NULL | |
10100 | }; | |
10101 | ||
10102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
10103 | { | |
10104 | arg1 = wxString_in_helper(obj0); | |
10105 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10106 | temp1 = true; |
d55e5bfc RD |
10107 | } |
10108 | { | |
10109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10110 | wxPyLogMessage((wxString const &)*arg1); |
d55e5bfc RD |
10111 | |
10112 | wxPyEndAllowThreads(__tstate); | |
10113 | if (PyErr_Occurred()) SWIG_fail; | |
10114 | } | |
10115 | Py_INCREF(Py_None); resultobj = Py_None; | |
10116 | { | |
10117 | if (temp1) | |
10118 | delete arg1; | |
10119 | } | |
10120 | return resultobj; | |
10121 | fail: | |
10122 | { | |
10123 | if (temp1) | |
10124 | delete arg1; | |
10125 | } | |
10126 | return NULL; | |
10127 | } | |
10128 | ||
10129 | ||
c370783e | 10130 | static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10131 | PyObject *resultobj; |
10132 | wxString *arg1 = 0 ; | |
b411df4a | 10133 | bool temp1 = false ; |
d55e5bfc RD |
10134 | PyObject * obj0 = 0 ; |
10135 | char *kwnames[] = { | |
10136 | (char *) "msg", NULL | |
10137 | }; | |
10138 | ||
10139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
10140 | { | |
10141 | arg1 = wxString_in_helper(obj0); | |
10142 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10143 | temp1 = true; |
d55e5bfc RD |
10144 | } |
10145 | { | |
10146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10147 | wxPyLogInfo((wxString const &)*arg1); |
d55e5bfc RD |
10148 | |
10149 | wxPyEndAllowThreads(__tstate); | |
10150 | if (PyErr_Occurred()) SWIG_fail; | |
10151 | } | |
10152 | Py_INCREF(Py_None); resultobj = Py_None; | |
10153 | { | |
10154 | if (temp1) | |
10155 | delete arg1; | |
10156 | } | |
10157 | return resultobj; | |
10158 | fail: | |
10159 | { | |
10160 | if (temp1) | |
10161 | delete arg1; | |
10162 | } | |
10163 | return NULL; | |
10164 | } | |
10165 | ||
10166 | ||
c370783e | 10167 | static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10168 | PyObject *resultobj; |
10169 | wxString *arg1 = 0 ; | |
b411df4a | 10170 | bool temp1 = false ; |
d55e5bfc RD |
10171 | PyObject * obj0 = 0 ; |
10172 | char *kwnames[] = { | |
10173 | (char *) "msg", NULL | |
10174 | }; | |
10175 | ||
10176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
10177 | { | |
10178 | arg1 = wxString_in_helper(obj0); | |
10179 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10180 | temp1 = true; |
d55e5bfc RD |
10181 | } |
10182 | { | |
10183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10184 | wxPyLogDebug((wxString const &)*arg1); |
d55e5bfc RD |
10185 | |
10186 | wxPyEndAllowThreads(__tstate); | |
10187 | if (PyErr_Occurred()) SWIG_fail; | |
10188 | } | |
10189 | Py_INCREF(Py_None); resultobj = Py_None; | |
10190 | { | |
10191 | if (temp1) | |
10192 | delete arg1; | |
10193 | } | |
10194 | return resultobj; | |
10195 | fail: | |
10196 | { | |
10197 | if (temp1) | |
10198 | delete arg1; | |
10199 | } | |
10200 | return NULL; | |
10201 | } | |
10202 | ||
10203 | ||
c370783e | 10204 | static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10205 | PyObject *resultobj; |
10206 | wxString *arg1 = 0 ; | |
b411df4a | 10207 | bool temp1 = false ; |
d55e5bfc RD |
10208 | PyObject * obj0 = 0 ; |
10209 | char *kwnames[] = { | |
10210 | (char *) "msg", NULL | |
10211 | }; | |
10212 | ||
10213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
10214 | { | |
10215 | arg1 = wxString_in_helper(obj0); | |
10216 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10217 | temp1 = true; |
d55e5bfc RD |
10218 | } |
10219 | { | |
10220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10221 | wxPyLogVerbose((wxString const &)*arg1); |
d55e5bfc RD |
10222 | |
10223 | wxPyEndAllowThreads(__tstate); | |
10224 | if (PyErr_Occurred()) SWIG_fail; | |
10225 | } | |
10226 | Py_INCREF(Py_None); resultobj = Py_None; | |
10227 | { | |
10228 | if (temp1) | |
10229 | delete arg1; | |
10230 | } | |
10231 | return resultobj; | |
10232 | fail: | |
10233 | { | |
10234 | if (temp1) | |
10235 | delete arg1; | |
10236 | } | |
10237 | return NULL; | |
10238 | } | |
10239 | ||
10240 | ||
c370783e | 10241 | static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10242 | PyObject *resultobj; |
10243 | wxString *arg1 = 0 ; | |
b411df4a | 10244 | bool temp1 = false ; |
d55e5bfc RD |
10245 | PyObject * obj0 = 0 ; |
10246 | char *kwnames[] = { | |
10247 | (char *) "msg", NULL | |
10248 | }; | |
10249 | ||
10250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
10251 | { | |
10252 | arg1 = wxString_in_helper(obj0); | |
10253 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10254 | temp1 = true; |
d55e5bfc RD |
10255 | } |
10256 | { | |
10257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10258 | wxPyLogStatus((wxString const &)*arg1); |
d55e5bfc RD |
10259 | |
10260 | wxPyEndAllowThreads(__tstate); | |
10261 | if (PyErr_Occurred()) SWIG_fail; | |
10262 | } | |
10263 | Py_INCREF(Py_None); resultobj = Py_None; | |
10264 | { | |
10265 | if (temp1) | |
10266 | delete arg1; | |
10267 | } | |
10268 | return resultobj; | |
10269 | fail: | |
10270 | { | |
10271 | if (temp1) | |
10272 | delete arg1; | |
10273 | } | |
10274 | return NULL; | |
10275 | } | |
10276 | ||
10277 | ||
c370783e | 10278 | static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10279 | PyObject *resultobj; |
10280 | wxFrame *arg1 = (wxFrame *) 0 ; | |
10281 | wxString *arg2 = 0 ; | |
b411df4a | 10282 | bool temp2 = false ; |
d55e5bfc RD |
10283 | PyObject * obj0 = 0 ; |
10284 | PyObject * obj1 = 0 ; | |
10285 | char *kwnames[] = { | |
10286 | (char *) "pFrame",(char *) "msg", NULL | |
10287 | }; | |
10288 | ||
10289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0); |
10291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10292 | { |
10293 | arg2 = wxString_in_helper(obj1); | |
10294 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10295 | temp2 = true; |
d55e5bfc RD |
10296 | } |
10297 | { | |
10298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10299 | wxPyLogStatusFrame(arg1,(wxString const &)*arg2); |
d55e5bfc RD |
10300 | |
10301 | wxPyEndAllowThreads(__tstate); | |
10302 | if (PyErr_Occurred()) SWIG_fail; | |
10303 | } | |
10304 | Py_INCREF(Py_None); resultobj = Py_None; | |
10305 | { | |
10306 | if (temp2) | |
10307 | delete arg2; | |
10308 | } | |
10309 | return resultobj; | |
10310 | fail: | |
10311 | { | |
10312 | if (temp2) | |
10313 | delete arg2; | |
10314 | } | |
10315 | return NULL; | |
10316 | } | |
10317 | ||
10318 | ||
c370783e | 10319 | static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10320 | PyObject *resultobj; |
10321 | wxString *arg1 = 0 ; | |
b411df4a | 10322 | bool temp1 = false ; |
d55e5bfc RD |
10323 | PyObject * obj0 = 0 ; |
10324 | char *kwnames[] = { | |
10325 | (char *) "msg", NULL | |
10326 | }; | |
10327 | ||
10328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
10329 | { | |
10330 | arg1 = wxString_in_helper(obj0); | |
10331 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10332 | temp1 = true; |
d55e5bfc RD |
10333 | } |
10334 | { | |
10335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10336 | wxPyLogSysError((wxString const &)*arg1); |
d55e5bfc RD |
10337 | |
10338 | wxPyEndAllowThreads(__tstate); | |
10339 | if (PyErr_Occurred()) SWIG_fail; | |
10340 | } | |
10341 | Py_INCREF(Py_None); resultobj = Py_None; | |
10342 | { | |
10343 | if (temp1) | |
10344 | delete arg1; | |
10345 | } | |
10346 | return resultobj; | |
10347 | fail: | |
10348 | { | |
10349 | if (temp1) | |
10350 | delete arg1; | |
10351 | } | |
10352 | return NULL; | |
10353 | } | |
10354 | ||
10355 | ||
f78cc896 RD |
10356 | static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) { |
10357 | PyObject *resultobj; | |
10358 | unsigned long arg1 ; | |
10359 | wxString *arg2 = 0 ; | |
10360 | bool temp2 = false ; | |
10361 | PyObject * obj0 = 0 ; | |
10362 | PyObject * obj1 = 0 ; | |
10363 | char *kwnames[] = { | |
10364 | (char *) "level",(char *) "msg", NULL | |
10365 | }; | |
10366 | ||
10367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10368 | { |
10369 | arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0)); | |
10370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10371 | } | |
f78cc896 RD |
10372 | { |
10373 | arg2 = wxString_in_helper(obj1); | |
10374 | if (arg2 == NULL) SWIG_fail; | |
10375 | temp2 = true; | |
10376 | } | |
10377 | { | |
10378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10379 | wxPyLogGeneric(arg1,(wxString const &)*arg2); | |
10380 | ||
10381 | wxPyEndAllowThreads(__tstate); | |
10382 | if (PyErr_Occurred()) SWIG_fail; | |
10383 | } | |
10384 | Py_INCREF(Py_None); resultobj = Py_None; | |
10385 | { | |
10386 | if (temp2) | |
10387 | delete arg2; | |
10388 | } | |
10389 | return resultobj; | |
10390 | fail: | |
10391 | { | |
10392 | if (temp2) | |
10393 | delete arg2; | |
10394 | } | |
10395 | return NULL; | |
10396 | } | |
10397 | ||
10398 | ||
c370783e | 10399 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
10400 | PyObject *resultobj; |
10401 | unsigned long arg1 ; | |
10402 | wxString *arg2 = 0 ; | |
b411df4a | 10403 | bool temp2 = false ; |
d55e5bfc RD |
10404 | PyObject * obj0 = 0 ; |
10405 | PyObject * obj1 = 0 ; | |
10406 | ||
10407 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10408 | { |
10409 | arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0)); | |
10410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10411 | } | |
d55e5bfc RD |
10412 | { |
10413 | arg2 = wxString_in_helper(obj1); | |
10414 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10415 | temp2 = true; |
d55e5bfc RD |
10416 | } |
10417 | { | |
10418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10419 | wxPyLogTrace(arg1,(wxString const &)*arg2); |
d55e5bfc RD |
10420 | |
10421 | wxPyEndAllowThreads(__tstate); | |
10422 | if (PyErr_Occurred()) SWIG_fail; | |
10423 | } | |
10424 | Py_INCREF(Py_None); resultobj = Py_None; | |
10425 | { | |
10426 | if (temp2) | |
10427 | delete arg2; | |
10428 | } | |
10429 | return resultobj; | |
10430 | fail: | |
10431 | { | |
10432 | if (temp2) | |
10433 | delete arg2; | |
10434 | } | |
10435 | return NULL; | |
10436 | } | |
10437 | ||
10438 | ||
c370783e | 10439 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
10440 | PyObject *resultobj; |
10441 | wxString *arg1 = 0 ; | |
10442 | wxString *arg2 = 0 ; | |
b411df4a RD |
10443 | bool temp1 = false ; |
10444 | bool temp2 = false ; | |
d55e5bfc RD |
10445 | PyObject * obj0 = 0 ; |
10446 | PyObject * obj1 = 0 ; | |
10447 | ||
10448 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
10449 | { | |
10450 | arg1 = wxString_in_helper(obj0); | |
10451 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10452 | temp1 = true; |
d55e5bfc RD |
10453 | } |
10454 | { | |
10455 | arg2 = wxString_in_helper(obj1); | |
10456 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10457 | temp2 = true; |
d55e5bfc RD |
10458 | } |
10459 | { | |
10460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10461 | wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2); |
d55e5bfc RD |
10462 | |
10463 | wxPyEndAllowThreads(__tstate); | |
10464 | if (PyErr_Occurred()) SWIG_fail; | |
10465 | } | |
10466 | Py_INCREF(Py_None); resultobj = Py_None; | |
10467 | { | |
10468 | if (temp1) | |
10469 | delete arg1; | |
10470 | } | |
10471 | { | |
10472 | if (temp2) | |
10473 | delete arg2; | |
10474 | } | |
10475 | return resultobj; | |
10476 | fail: | |
10477 | { | |
10478 | if (temp1) | |
10479 | delete arg1; | |
10480 | } | |
10481 | { | |
10482 | if (temp2) | |
10483 | delete arg2; | |
10484 | } | |
10485 | return NULL; | |
10486 | } | |
10487 | ||
10488 | ||
10489 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
10490 | int argc; | |
10491 | PyObject *argv[3]; | |
10492 | int ii; | |
10493 | ||
10494 | argc = PyObject_Length(args); | |
10495 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
10496 | argv[ii] = PyTuple_GetItem(args,ii); | |
10497 | } | |
10498 | if (argc == 2) { | |
10499 | int _v; | |
10500 | { | |
10501 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
10502 | } | |
10503 | if (_v) { | |
10504 | { | |
10505 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
10506 | } | |
10507 | if (_v) { | |
10508 | return _wrap_LogTrace__SWIG_1(self,args); | |
10509 | } | |
10510 | } | |
10511 | } | |
10512 | if (argc == 2) { | |
10513 | int _v; | |
c370783e | 10514 | _v = SWIG_Check_unsigned_SS_long(argv[0]); |
d55e5bfc RD |
10515 | if (_v) { |
10516 | { | |
10517 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
10518 | } | |
10519 | if (_v) { | |
10520 | return _wrap_LogTrace__SWIG_0(self,args); | |
10521 | } | |
10522 | } | |
10523 | } | |
10524 | ||
36ed4f51 | 10525 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'LogTrace'"); |
d55e5bfc RD |
10526 | return NULL; |
10527 | } | |
10528 | ||
10529 | ||
c370783e | 10530 | static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10531 | PyObject *resultobj; |
10532 | wxString *arg1 = 0 ; | |
10533 | wxString *arg2 = 0 ; | |
b411df4a RD |
10534 | bool temp1 = false ; |
10535 | bool temp2 = false ; | |
d55e5bfc RD |
10536 | PyObject * obj0 = 0 ; |
10537 | PyObject * obj1 = 0 ; | |
10538 | char *kwnames[] = { | |
10539 | (char *) "title",(char *) "text", NULL | |
10540 | }; | |
10541 | ||
10542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
10543 | { | |
10544 | arg1 = wxString_in_helper(obj0); | |
10545 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10546 | temp1 = true; |
d55e5bfc RD |
10547 | } |
10548 | { | |
10549 | arg2 = wxString_in_helper(obj1); | |
10550 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10551 | temp2 = true; |
d55e5bfc RD |
10552 | } |
10553 | { | |
10554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10555 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
10556 | ||
10557 | wxPyEndAllowThreads(__tstate); | |
10558 | if (PyErr_Occurred()) SWIG_fail; | |
10559 | } | |
10560 | Py_INCREF(Py_None); resultobj = Py_None; | |
10561 | { | |
10562 | if (temp1) | |
10563 | delete arg1; | |
10564 | } | |
10565 | { | |
10566 | if (temp2) | |
10567 | delete arg2; | |
10568 | } | |
10569 | return resultobj; | |
10570 | fail: | |
10571 | { | |
10572 | if (temp1) | |
10573 | delete arg1; | |
10574 | } | |
10575 | { | |
10576 | if (temp2) | |
10577 | delete arg2; | |
10578 | } | |
10579 | return NULL; | |
10580 | } | |
10581 | ||
10582 | ||
c370783e | 10583 | static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10584 | PyObject *resultobj; |
10585 | wxLogNull *result; | |
10586 | char *kwnames[] = { | |
10587 | NULL | |
10588 | }; | |
10589 | ||
10590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
10591 | { | |
10592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10593 | result = (wxLogNull *)new wxLogNull(); | |
10594 | ||
10595 | wxPyEndAllowThreads(__tstate); | |
10596 | if (PyErr_Occurred()) SWIG_fail; | |
10597 | } | |
10598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
10599 | return resultobj; | |
10600 | fail: | |
10601 | return NULL; | |
10602 | } | |
10603 | ||
10604 | ||
c370783e | 10605 | static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10606 | PyObject *resultobj; |
10607 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
10608 | PyObject * obj0 = 0 ; | |
10609 | char *kwnames[] = { | |
10610 | (char *) "self", NULL | |
10611 | }; | |
10612 | ||
10613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10614 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogNull, SWIG_POINTER_EXCEPTION | 0); |
10615 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10616 | { |
10617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10618 | delete arg1; | |
10619 | ||
10620 | wxPyEndAllowThreads(__tstate); | |
10621 | if (PyErr_Occurred()) SWIG_fail; | |
10622 | } | |
10623 | Py_INCREF(Py_None); resultobj = Py_None; | |
10624 | return resultobj; | |
10625 | fail: | |
10626 | return NULL; | |
10627 | } | |
10628 | ||
10629 | ||
c370783e | 10630 | static PyObject * LogNull_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10631 | PyObject *obj; |
10632 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10633 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
10634 | Py_INCREF(obj); | |
10635 | return Py_BuildValue((char *)""); | |
10636 | } | |
c370783e | 10637 | static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10638 | PyObject *resultobj; |
10639 | wxPyLog *result; | |
10640 | char *kwnames[] = { | |
10641 | NULL | |
10642 | }; | |
10643 | ||
10644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
10645 | { | |
10646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10647 | result = (wxPyLog *)new wxPyLog(); | |
10648 | ||
10649 | wxPyEndAllowThreads(__tstate); | |
10650 | if (PyErr_Occurred()) SWIG_fail; | |
10651 | } | |
10652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
10653 | return resultobj; | |
10654 | fail: | |
10655 | return NULL; | |
10656 | } | |
10657 | ||
10658 | ||
c370783e | 10659 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10660 | PyObject *resultobj; |
10661 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
10662 | PyObject *arg2 = (PyObject *) 0 ; | |
10663 | PyObject *arg3 = (PyObject *) 0 ; | |
10664 | PyObject * obj0 = 0 ; | |
10665 | PyObject * obj1 = 0 ; | |
10666 | PyObject * obj2 = 0 ; | |
10667 | char *kwnames[] = { | |
10668 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10669 | }; | |
10670 | ||
10671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
10672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyLog, SWIG_POINTER_EXCEPTION | 0); |
10673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10674 | arg2 = obj1; |
10675 | arg3 = obj2; | |
10676 | { | |
10677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10678 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10679 | ||
10680 | wxPyEndAllowThreads(__tstate); | |
10681 | if (PyErr_Occurred()) SWIG_fail; | |
10682 | } | |
10683 | Py_INCREF(Py_None); resultobj = Py_None; | |
10684 | return resultobj; | |
10685 | fail: | |
10686 | return NULL; | |
10687 | } | |
10688 | ||
10689 | ||
c370783e | 10690 | static PyObject * PyLog_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10691 | PyObject *obj; |
10692 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10693 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
10694 | Py_INCREF(obj); | |
10695 | return Py_BuildValue((char *)""); | |
10696 | } | |
c370783e | 10697 | static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10698 | PyObject *resultobj; |
10699 | int arg1 ; | |
36ed4f51 | 10700 | wxSignal arg2 = (wxSignal) wxSIGTERM ; |
03e46024 | 10701 | int arg3 = (int) wxKILL_NOCHILDREN ; |
36ed4f51 | 10702 | wxKillError result; |
d55e5bfc RD |
10703 | PyObject * obj0 = 0 ; |
10704 | PyObject * obj1 = 0 ; | |
03e46024 | 10705 | PyObject * obj2 = 0 ; |
d55e5bfc | 10706 | char *kwnames[] = { |
03e46024 | 10707 | (char *) "pid",(char *) "sig",(char *) "flags", NULL |
d55e5bfc RD |
10708 | }; |
10709 | ||
03e46024 | 10710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Process_Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
10711 | { |
10712 | arg1 = (int)(SWIG_As_int(obj0)); | |
10713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10714 | } | |
d55e5bfc | 10715 | if (obj1) { |
36ed4f51 RD |
10716 | { |
10717 | arg2 = (wxSignal)(SWIG_As_int(obj1)); | |
10718 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10719 | } | |
d55e5bfc | 10720 | } |
03e46024 | 10721 | if (obj2) { |
36ed4f51 RD |
10722 | { |
10723 | arg3 = (int)(SWIG_As_int(obj2)); | |
10724 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10725 | } | |
03e46024 | 10726 | } |
d55e5bfc RD |
10727 | { |
10728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10729 | result = (wxKillError)wxPyProcess::Kill(arg1,(wxSignal )arg2,arg3); |
d55e5bfc RD |
10730 | |
10731 | wxPyEndAllowThreads(__tstate); | |
10732 | if (PyErr_Occurred()) SWIG_fail; | |
10733 | } | |
36ed4f51 | 10734 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
10735 | return resultobj; |
10736 | fail: | |
10737 | return NULL; | |
10738 | } | |
10739 | ||
10740 | ||
c370783e | 10741 | static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10742 | PyObject *resultobj; |
10743 | int arg1 ; | |
10744 | bool result; | |
10745 | PyObject * obj0 = 0 ; | |
10746 | char *kwnames[] = { | |
10747 | (char *) "pid", NULL | |
10748 | }; | |
10749 | ||
10750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10751 | { |
10752 | arg1 = (int)(SWIG_As_int(obj0)); | |
10753 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10754 | } | |
d55e5bfc RD |
10755 | { |
10756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10757 | result = (bool)wxPyProcess::Exists(arg1); | |
10758 | ||
10759 | wxPyEndAllowThreads(__tstate); | |
10760 | if (PyErr_Occurred()) SWIG_fail; | |
10761 | } | |
10762 | { | |
10763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10764 | } | |
10765 | return resultobj; | |
10766 | fail: | |
10767 | return NULL; | |
10768 | } | |
10769 | ||
10770 | ||
c370783e | 10771 | static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10772 | PyObject *resultobj; |
10773 | wxString *arg1 = 0 ; | |
10774 | int arg2 = (int) wxEXEC_ASYNC ; | |
10775 | wxPyProcess *result; | |
b411df4a | 10776 | bool temp1 = false ; |
d55e5bfc RD |
10777 | PyObject * obj0 = 0 ; |
10778 | PyObject * obj1 = 0 ; | |
10779 | char *kwnames[] = { | |
10780 | (char *) "cmd",(char *) "flags", NULL | |
10781 | }; | |
10782 | ||
10783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
10784 | { | |
10785 | arg1 = wxString_in_helper(obj0); | |
10786 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10787 | temp1 = true; |
d55e5bfc RD |
10788 | } |
10789 | if (obj1) { | |
36ed4f51 RD |
10790 | { |
10791 | arg2 = (int)(SWIG_As_int(obj1)); | |
10792 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10793 | } | |
d55e5bfc RD |
10794 | } |
10795 | { | |
10796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10797 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
10798 | ||
10799 | wxPyEndAllowThreads(__tstate); | |
10800 | if (PyErr_Occurred()) SWIG_fail; | |
10801 | } | |
10802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
10803 | { | |
10804 | if (temp1) | |
10805 | delete arg1; | |
10806 | } | |
10807 | return resultobj; | |
10808 | fail: | |
10809 | { | |
10810 | if (temp1) | |
10811 | delete arg1; | |
10812 | } | |
10813 | return NULL; | |
10814 | } | |
10815 | ||
10816 | ||
c370783e | 10817 | static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10818 | PyObject *resultobj; |
10819 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
10820 | int arg2 = (int) -1 ; | |
10821 | wxPyProcess *result; | |
10822 | PyObject * obj0 = 0 ; | |
10823 | PyObject * obj1 = 0 ; | |
10824 | char *kwnames[] = { | |
10825 | (char *) "parent",(char *) "id", NULL | |
10826 | }; | |
10827 | ||
10828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
10829 | if (obj0) { | |
36ed4f51 RD |
10830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
10831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10832 | } |
10833 | if (obj1) { | |
36ed4f51 RD |
10834 | { |
10835 | arg2 = (int)(SWIG_As_int(obj1)); | |
10836 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10837 | } | |
d55e5bfc RD |
10838 | } |
10839 | { | |
10840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10841 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
10842 | ||
10843 | wxPyEndAllowThreads(__tstate); | |
10844 | if (PyErr_Occurred()) SWIG_fail; | |
10845 | } | |
10846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
10847 | return resultobj; | |
10848 | fail: | |
10849 | return NULL; | |
10850 | } | |
10851 | ||
10852 | ||
c370783e | 10853 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10854 | PyObject *resultobj; |
10855 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
10856 | PyObject *arg2 = (PyObject *) 0 ; | |
10857 | PyObject *arg3 = (PyObject *) 0 ; | |
10858 | PyObject * obj0 = 0 ; | |
10859 | PyObject * obj1 = 0 ; | |
10860 | PyObject * obj2 = 0 ; | |
10861 | char *kwnames[] = { | |
10862 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10863 | }; | |
10864 | ||
10865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
10866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
10867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10868 | arg2 = obj1; |
10869 | arg3 = obj2; | |
10870 | { | |
10871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10872 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10873 | ||
10874 | wxPyEndAllowThreads(__tstate); | |
10875 | if (PyErr_Occurred()) SWIG_fail; | |
10876 | } | |
10877 | Py_INCREF(Py_None); resultobj = Py_None; | |
10878 | return resultobj; | |
10879 | fail: | |
10880 | return NULL; | |
10881 | } | |
10882 | ||
10883 | ||
c370783e | 10884 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10885 | PyObject *resultobj; |
10886 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
10887 | int arg2 ; | |
10888 | int arg3 ; | |
10889 | PyObject * obj0 = 0 ; | |
10890 | PyObject * obj1 = 0 ; | |
10891 | PyObject * obj2 = 0 ; | |
10892 | char *kwnames[] = { | |
10893 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
10894 | }; | |
10895 | ||
10896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
10897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
10898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10899 | { | |
10900 | arg2 = (int)(SWIG_As_int(obj1)); | |
10901 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10902 | } | |
10903 | { | |
10904 | arg3 = (int)(SWIG_As_int(obj2)); | |
10905 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10906 | } | |
d55e5bfc RD |
10907 | { |
10908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10909 | (arg1)->base_OnTerminate(arg2,arg3); | |
10910 | ||
10911 | wxPyEndAllowThreads(__tstate); | |
10912 | if (PyErr_Occurred()) SWIG_fail; | |
10913 | } | |
10914 | Py_INCREF(Py_None); resultobj = Py_None; | |
10915 | return resultobj; | |
10916 | fail: | |
10917 | return NULL; | |
10918 | } | |
10919 | ||
10920 | ||
c370783e | 10921 | static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10922 | PyObject *resultobj; |
10923 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
10924 | PyObject * obj0 = 0 ; | |
10925 | char *kwnames[] = { | |
10926 | (char *) "self", NULL | |
10927 | }; | |
10928 | ||
10929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10930 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
10931 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10932 | { |
10933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10934 | (arg1)->Redirect(); | |
10935 | ||
10936 | wxPyEndAllowThreads(__tstate); | |
10937 | if (PyErr_Occurred()) SWIG_fail; | |
10938 | } | |
10939 | Py_INCREF(Py_None); resultobj = Py_None; | |
10940 | return resultobj; | |
10941 | fail: | |
10942 | return NULL; | |
10943 | } | |
10944 | ||
10945 | ||
c370783e | 10946 | static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10947 | PyObject *resultobj; |
10948 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
10949 | bool result; | |
10950 | PyObject * obj0 = 0 ; | |
10951 | char *kwnames[] = { | |
10952 | (char *) "self", NULL | |
10953 | }; | |
10954 | ||
10955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
10957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10958 | { |
10959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10960 | result = (bool)(arg1)->IsRedirected(); | |
10961 | ||
10962 | wxPyEndAllowThreads(__tstate); | |
10963 | if (PyErr_Occurred()) SWIG_fail; | |
10964 | } | |
10965 | { | |
10966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10967 | } | |
10968 | return resultobj; | |
10969 | fail: | |
10970 | return NULL; | |
10971 | } | |
10972 | ||
10973 | ||
c370783e | 10974 | static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10975 | PyObject *resultobj; |
10976 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
10977 | PyObject * obj0 = 0 ; | |
10978 | char *kwnames[] = { | |
10979 | (char *) "self", NULL | |
10980 | }; | |
10981 | ||
10982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
10984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10985 | { |
10986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10987 | (arg1)->Detach(); | |
10988 | ||
10989 | wxPyEndAllowThreads(__tstate); | |
10990 | if (PyErr_Occurred()) SWIG_fail; | |
10991 | } | |
10992 | Py_INCREF(Py_None); resultobj = Py_None; | |
10993 | return resultobj; | |
10994 | fail: | |
10995 | return NULL; | |
10996 | } | |
10997 | ||
10998 | ||
c370783e | 10999 | static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11000 | PyObject *resultobj; |
11001 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11002 | wxInputStream *result; | |
11003 | PyObject * obj0 = 0 ; | |
11004 | char *kwnames[] = { | |
11005 | (char *) "self", NULL | |
11006 | }; | |
11007 | ||
11008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11011 | { |
11012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11013 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
11014 | ||
11015 | wxPyEndAllowThreads(__tstate); | |
11016 | if (PyErr_Occurred()) SWIG_fail; | |
11017 | } | |
11018 | { | |
11019 | wxPyInputStream * _ptr = NULL; | |
11020 | ||
11021 | if (result) { | |
11022 | _ptr = new wxPyInputStream(result); | |
11023 | } | |
fc71d09b | 11024 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
11025 | } |
11026 | return resultobj; | |
11027 | fail: | |
11028 | return NULL; | |
11029 | } | |
11030 | ||
11031 | ||
c370783e | 11032 | static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11033 | PyObject *resultobj; |
11034 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11035 | wxInputStream *result; | |
11036 | PyObject * obj0 = 0 ; | |
11037 | char *kwnames[] = { | |
11038 | (char *) "self", NULL | |
11039 | }; | |
11040 | ||
11041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11042 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11043 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11044 | { |
11045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11046 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
11047 | ||
11048 | wxPyEndAllowThreads(__tstate); | |
11049 | if (PyErr_Occurred()) SWIG_fail; | |
11050 | } | |
11051 | { | |
11052 | wxPyInputStream * _ptr = NULL; | |
11053 | ||
11054 | if (result) { | |
11055 | _ptr = new wxPyInputStream(result); | |
11056 | } | |
fc71d09b | 11057 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
11058 | } |
11059 | return resultobj; | |
11060 | fail: | |
11061 | return NULL; | |
11062 | } | |
11063 | ||
11064 | ||
c370783e | 11065 | static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11066 | PyObject *resultobj; |
11067 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11068 | wxOutputStream *result; | |
11069 | PyObject * obj0 = 0 ; | |
11070 | char *kwnames[] = { | |
11071 | (char *) "self", NULL | |
11072 | }; | |
11073 | ||
11074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11077 | { |
11078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11079 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
11080 | ||
11081 | wxPyEndAllowThreads(__tstate); | |
11082 | if (PyErr_Occurred()) SWIG_fail; | |
11083 | } | |
11084 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
11085 | return resultobj; | |
11086 | fail: | |
11087 | return NULL; | |
11088 | } | |
11089 | ||
11090 | ||
c370783e | 11091 | static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11092 | PyObject *resultobj; |
11093 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11094 | PyObject * obj0 = 0 ; | |
11095 | char *kwnames[] = { | |
11096 | (char *) "self", NULL | |
11097 | }; | |
11098 | ||
11099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11102 | { |
11103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11104 | (arg1)->CloseOutput(); | |
11105 | ||
11106 | wxPyEndAllowThreads(__tstate); | |
11107 | if (PyErr_Occurred()) SWIG_fail; | |
11108 | } | |
11109 | Py_INCREF(Py_None); resultobj = Py_None; | |
11110 | return resultobj; | |
11111 | fail: | |
11112 | return NULL; | |
11113 | } | |
11114 | ||
11115 | ||
c370783e | 11116 | static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11117 | PyObject *resultobj; |
11118 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11119 | bool result; | |
11120 | PyObject * obj0 = 0 ; | |
11121 | char *kwnames[] = { | |
11122 | (char *) "self", NULL | |
11123 | }; | |
11124 | ||
11125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11126 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11127 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11128 | { |
11129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11130 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
11131 | ||
11132 | wxPyEndAllowThreads(__tstate); | |
11133 | if (PyErr_Occurred()) SWIG_fail; | |
11134 | } | |
11135 | { | |
11136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11137 | } | |
11138 | return resultobj; | |
11139 | fail: | |
11140 | return NULL; | |
11141 | } | |
11142 | ||
11143 | ||
c370783e | 11144 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11145 | PyObject *resultobj; |
11146 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11147 | bool result; | |
11148 | PyObject * obj0 = 0 ; | |
11149 | char *kwnames[] = { | |
11150 | (char *) "self", NULL | |
11151 | }; | |
11152 | ||
11153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11156 | { |
11157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11158 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
11159 | ||
11160 | wxPyEndAllowThreads(__tstate); | |
11161 | if (PyErr_Occurred()) SWIG_fail; | |
11162 | } | |
11163 | { | |
11164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11165 | } | |
11166 | return resultobj; | |
11167 | fail: | |
11168 | return NULL; | |
11169 | } | |
11170 | ||
11171 | ||
c370783e | 11172 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11173 | PyObject *resultobj; |
11174 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11175 | bool result; | |
11176 | PyObject * obj0 = 0 ; | |
11177 | char *kwnames[] = { | |
11178 | (char *) "self", NULL | |
11179 | }; | |
11180 | ||
11181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11184 | { |
11185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11186 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
11187 | ||
11188 | wxPyEndAllowThreads(__tstate); | |
11189 | if (PyErr_Occurred()) SWIG_fail; | |
11190 | } | |
11191 | { | |
11192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11193 | } | |
11194 | return resultobj; | |
11195 | fail: | |
11196 | return NULL; | |
11197 | } | |
11198 | ||
11199 | ||
c370783e | 11200 | static PyObject * Process_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11201 | PyObject *obj; |
11202 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11203 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
11204 | Py_INCREF(obj); | |
11205 | return Py_BuildValue((char *)""); | |
11206 | } | |
c370783e | 11207 | static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11208 | PyObject *resultobj; |
11209 | int arg1 = (int) 0 ; | |
11210 | int arg2 = (int) 0 ; | |
11211 | int arg3 = (int) 0 ; | |
11212 | wxProcessEvent *result; | |
11213 | PyObject * obj0 = 0 ; | |
11214 | PyObject * obj1 = 0 ; | |
11215 | PyObject * obj2 = 0 ; | |
11216 | char *kwnames[] = { | |
11217 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
11218 | }; | |
11219 | ||
11220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11221 | if (obj0) { | |
36ed4f51 RD |
11222 | { |
11223 | arg1 = (int)(SWIG_As_int(obj0)); | |
11224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11225 | } | |
d55e5bfc RD |
11226 | } |
11227 | if (obj1) { | |
36ed4f51 RD |
11228 | { |
11229 | arg2 = (int)(SWIG_As_int(obj1)); | |
11230 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11231 | } | |
d55e5bfc RD |
11232 | } |
11233 | if (obj2) { | |
36ed4f51 RD |
11234 | { |
11235 | arg3 = (int)(SWIG_As_int(obj2)); | |
11236 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11237 | } | |
d55e5bfc RD |
11238 | } |
11239 | { | |
11240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11241 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
11242 | ||
11243 | wxPyEndAllowThreads(__tstate); | |
11244 | if (PyErr_Occurred()) SWIG_fail; | |
11245 | } | |
11246 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
11247 | return resultobj; | |
11248 | fail: | |
11249 | return NULL; | |
11250 | } | |
11251 | ||
11252 | ||
c370783e | 11253 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11254 | PyObject *resultobj; |
11255 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11256 | int result; | |
11257 | PyObject * obj0 = 0 ; | |
11258 | char *kwnames[] = { | |
11259 | (char *) "self", NULL | |
11260 | }; | |
11261 | ||
11262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11265 | { |
11266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11267 | result = (int)(arg1)->GetPid(); | |
11268 | ||
11269 | wxPyEndAllowThreads(__tstate); | |
11270 | if (PyErr_Occurred()) SWIG_fail; | |
11271 | } | |
36ed4f51 RD |
11272 | { |
11273 | resultobj = SWIG_From_int((int)(result)); | |
11274 | } | |
d55e5bfc RD |
11275 | return resultobj; |
11276 | fail: | |
11277 | return NULL; | |
11278 | } | |
11279 | ||
11280 | ||
c370783e | 11281 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11282 | PyObject *resultobj; |
11283 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11284 | int result; | |
11285 | PyObject * obj0 = 0 ; | |
11286 | char *kwnames[] = { | |
11287 | (char *) "self", NULL | |
11288 | }; | |
11289 | ||
11290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11293 | { |
11294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11295 | result = (int)(arg1)->GetExitCode(); | |
11296 | ||
11297 | wxPyEndAllowThreads(__tstate); | |
11298 | if (PyErr_Occurred()) SWIG_fail; | |
11299 | } | |
36ed4f51 RD |
11300 | { |
11301 | resultobj = SWIG_From_int((int)(result)); | |
11302 | } | |
d55e5bfc RD |
11303 | return resultobj; |
11304 | fail: | |
11305 | return NULL; | |
11306 | } | |
11307 | ||
11308 | ||
c370783e | 11309 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11310 | PyObject *resultobj; |
11311 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11312 | int arg2 ; | |
11313 | PyObject * obj0 = 0 ; | |
11314 | PyObject * obj1 = 0 ; | |
11315 | char *kwnames[] = { | |
11316 | (char *) "self",(char *) "m_pid", NULL | |
11317 | }; | |
11318 | ||
11319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
11320 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11322 | { | |
11323 | arg2 = (int)(SWIG_As_int(obj1)); | |
11324 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11325 | } | |
d55e5bfc RD |
11326 | if (arg1) (arg1)->m_pid = arg2; |
11327 | ||
11328 | Py_INCREF(Py_None); resultobj = Py_None; | |
11329 | return resultobj; | |
11330 | fail: | |
11331 | return NULL; | |
11332 | } | |
11333 | ||
11334 | ||
c370783e | 11335 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11336 | PyObject *resultobj; |
11337 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11338 | int result; | |
11339 | PyObject * obj0 = 0 ; | |
11340 | char *kwnames[] = { | |
11341 | (char *) "self", NULL | |
11342 | }; | |
11343 | ||
11344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11347 | result = (int) ((arg1)->m_pid); |
11348 | ||
36ed4f51 RD |
11349 | { |
11350 | resultobj = SWIG_From_int((int)(result)); | |
11351 | } | |
d55e5bfc RD |
11352 | return resultobj; |
11353 | fail: | |
11354 | return NULL; | |
11355 | } | |
11356 | ||
11357 | ||
c370783e | 11358 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11359 | PyObject *resultobj; |
11360 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11361 | int arg2 ; | |
11362 | PyObject * obj0 = 0 ; | |
11363 | PyObject * obj1 = 0 ; | |
11364 | char *kwnames[] = { | |
11365 | (char *) "self",(char *) "m_exitcode", NULL | |
11366 | }; | |
11367 | ||
11368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
11369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11371 | { | |
11372 | arg2 = (int)(SWIG_As_int(obj1)); | |
11373 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11374 | } | |
d55e5bfc RD |
11375 | if (arg1) (arg1)->m_exitcode = arg2; |
11376 | ||
11377 | Py_INCREF(Py_None); resultobj = Py_None; | |
11378 | return resultobj; | |
11379 | fail: | |
11380 | return NULL; | |
11381 | } | |
11382 | ||
11383 | ||
c370783e | 11384 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11385 | PyObject *resultobj; |
11386 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11387 | int result; | |
11388 | PyObject * obj0 = 0 ; | |
11389 | char *kwnames[] = { | |
11390 | (char *) "self", NULL | |
11391 | }; | |
11392 | ||
11393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11396 | result = (int) ((arg1)->m_exitcode); |
11397 | ||
36ed4f51 RD |
11398 | { |
11399 | resultobj = SWIG_From_int((int)(result)); | |
11400 | } | |
d55e5bfc RD |
11401 | return resultobj; |
11402 | fail: | |
11403 | return NULL; | |
11404 | } | |
11405 | ||
11406 | ||
c370783e | 11407 | static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11408 | PyObject *obj; |
11409 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11410 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
11411 | Py_INCREF(obj); | |
11412 | return Py_BuildValue((char *)""); | |
11413 | } | |
c370783e | 11414 | static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11415 | PyObject *resultobj; |
11416 | wxString *arg1 = 0 ; | |
11417 | int arg2 = (int) wxEXEC_ASYNC ; | |
11418 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
11419 | long result; | |
b411df4a | 11420 | bool temp1 = false ; |
d55e5bfc RD |
11421 | PyObject * obj0 = 0 ; |
11422 | PyObject * obj1 = 0 ; | |
11423 | PyObject * obj2 = 0 ; | |
11424 | char *kwnames[] = { | |
11425 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
11426 | }; | |
11427 | ||
11428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11429 | { | |
11430 | arg1 = wxString_in_helper(obj0); | |
11431 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 11432 | temp1 = true; |
d55e5bfc RD |
11433 | } |
11434 | if (obj1) { | |
36ed4f51 RD |
11435 | { |
11436 | arg2 = (int)(SWIG_As_int(obj1)); | |
11437 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11438 | } | |
d55e5bfc RD |
11439 | } |
11440 | if (obj2) { | |
36ed4f51 RD |
11441 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11442 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
11443 | } |
11444 | { | |
0439c23b | 11445 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11447 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
11448 | ||
11449 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11450 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 11451 | } |
36ed4f51 RD |
11452 | { |
11453 | resultobj = SWIG_From_long((long)(result)); | |
11454 | } | |
d55e5bfc RD |
11455 | { |
11456 | if (temp1) | |
11457 | delete arg1; | |
11458 | } | |
11459 | return resultobj; | |
11460 | fail: | |
11461 | { | |
11462 | if (temp1) | |
11463 | delete arg1; | |
11464 | } | |
11465 | return NULL; | |
11466 | } | |
11467 | ||
11468 | ||
03e46024 RD |
11469 | static PyObject *_wrap_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
11470 | PyObject *resultobj; | |
11471 | long arg1 ; | |
36ed4f51 | 11472 | wxSignal arg2 = (wxSignal) wxSIGTERM ; |
03e46024 RD |
11473 | wxKillError *arg3 = (wxKillError *) 0 ; |
11474 | int arg4 = (int) wxKILL_NOCHILDREN ; | |
11475 | int result; | |
11476 | wxKillError temp3 ; | |
11477 | PyObject * obj0 = 0 ; | |
11478 | PyObject * obj1 = 0 ; | |
11479 | PyObject * obj2 = 0 ; | |
11480 | char *kwnames[] = { | |
11481 | (char *) "pid",(char *) "sig",(char *) "flags", NULL | |
11482 | }; | |
11483 | ||
11484 | { | |
11485 | arg3 = &temp3; | |
11486 | } | |
11487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
11488 | { |
11489 | arg1 = (long)(SWIG_As_long(obj0)); | |
11490 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11491 | } | |
03e46024 | 11492 | if (obj1) { |
36ed4f51 RD |
11493 | { |
11494 | arg2 = (wxSignal)(SWIG_As_int(obj1)); | |
11495 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11496 | } | |
03e46024 RD |
11497 | } |
11498 | if (obj2) { | |
36ed4f51 RD |
11499 | { |
11500 | arg4 = (int)(SWIG_As_int(obj2)); | |
11501 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11502 | } | |
03e46024 RD |
11503 | } |
11504 | { | |
11505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11506 | result = (int)wxKill(arg1,(wxSignal )arg2,arg3,arg4); | |
11507 | ||
11508 | wxPyEndAllowThreads(__tstate); | |
11509 | if (PyErr_Occurred()) SWIG_fail; | |
11510 | } | |
36ed4f51 RD |
11511 | { |
11512 | resultobj = SWIG_From_int((int)(result)); | |
11513 | } | |
03e46024 RD |
11514 | { |
11515 | PyObject* o; | |
11516 | o = PyInt_FromLong((long) (*arg3)); | |
11517 | resultobj = t_output_helper(resultobj, o); | |
11518 | } | |
11519 | return resultobj; | |
11520 | fail: | |
11521 | return NULL; | |
11522 | } | |
11523 | ||
11524 | ||
c370783e | 11525 | static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11526 | PyObject *resultobj; |
11527 | int arg1 = (int) wxJOYSTICK1 ; | |
11528 | wxJoystick *result; | |
11529 | PyObject * obj0 = 0 ; | |
11530 | char *kwnames[] = { | |
11531 | (char *) "joystick", NULL | |
11532 | }; | |
11533 | ||
11534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
11535 | if (obj0) { | |
36ed4f51 RD |
11536 | { |
11537 | arg1 = (int)(SWIG_As_int(obj0)); | |
11538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11539 | } | |
d55e5bfc RD |
11540 | } |
11541 | { | |
0439c23b | 11542 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11544 | result = (wxJoystick *)new wxJoystick(arg1); | |
11545 | ||
11546 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11547 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11548 | } |
11549 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
11550 | return resultobj; | |
11551 | fail: | |
11552 | return NULL; | |
11553 | } | |
11554 | ||
11555 | ||
c370783e | 11556 | static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11557 | PyObject *resultobj; |
11558 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11559 | PyObject * obj0 = 0 ; | |
11560 | char *kwnames[] = { | |
11561 | (char *) "self", NULL | |
11562 | }; | |
11563 | ||
11564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11567 | { |
11568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11569 | delete arg1; | |
11570 | ||
11571 | wxPyEndAllowThreads(__tstate); | |
11572 | if (PyErr_Occurred()) SWIG_fail; | |
11573 | } | |
11574 | Py_INCREF(Py_None); resultobj = Py_None; | |
11575 | return resultobj; | |
11576 | fail: | |
11577 | return NULL; | |
11578 | } | |
11579 | ||
11580 | ||
c370783e | 11581 | static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11582 | PyObject *resultobj; |
11583 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11584 | wxPoint result; | |
11585 | PyObject * obj0 = 0 ; | |
11586 | char *kwnames[] = { | |
11587 | (char *) "self", NULL | |
11588 | }; | |
11589 | ||
11590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11593 | { |
11594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11595 | result = (arg1)->GetPosition(); | |
11596 | ||
11597 | wxPyEndAllowThreads(__tstate); | |
11598 | if (PyErr_Occurred()) SWIG_fail; | |
11599 | } | |
11600 | { | |
11601 | wxPoint * resultptr; | |
36ed4f51 | 11602 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
11603 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
11604 | } | |
11605 | return resultobj; | |
11606 | fail: | |
11607 | return NULL; | |
11608 | } | |
11609 | ||
11610 | ||
c370783e | 11611 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11612 | PyObject *resultobj; |
11613 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11614 | int result; | |
11615 | PyObject * obj0 = 0 ; | |
11616 | char *kwnames[] = { | |
11617 | (char *) "self", NULL | |
11618 | }; | |
11619 | ||
11620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11623 | { |
11624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11625 | result = (int)(arg1)->GetZPosition(); | |
11626 | ||
11627 | wxPyEndAllowThreads(__tstate); | |
11628 | if (PyErr_Occurred()) SWIG_fail; | |
11629 | } | |
36ed4f51 RD |
11630 | { |
11631 | resultobj = SWIG_From_int((int)(result)); | |
11632 | } | |
d55e5bfc RD |
11633 | return resultobj; |
11634 | fail: | |
11635 | return NULL; | |
11636 | } | |
11637 | ||
11638 | ||
c370783e | 11639 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11640 | PyObject *resultobj; |
11641 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11642 | int result; | |
11643 | PyObject * obj0 = 0 ; | |
11644 | char *kwnames[] = { | |
11645 | (char *) "self", NULL | |
11646 | }; | |
11647 | ||
11648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11651 | { |
11652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11653 | result = (int)(arg1)->GetButtonState(); | |
11654 | ||
11655 | wxPyEndAllowThreads(__tstate); | |
11656 | if (PyErr_Occurred()) SWIG_fail; | |
11657 | } | |
36ed4f51 RD |
11658 | { |
11659 | resultobj = SWIG_From_int((int)(result)); | |
11660 | } | |
d55e5bfc RD |
11661 | return resultobj; |
11662 | fail: | |
11663 | return NULL; | |
11664 | } | |
11665 | ||
11666 | ||
c370783e | 11667 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11668 | PyObject *resultobj; |
11669 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11670 | int result; | |
11671 | PyObject * obj0 = 0 ; | |
11672 | char *kwnames[] = { | |
11673 | (char *) "self", NULL | |
11674 | }; | |
11675 | ||
11676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11679 | { |
11680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11681 | result = (int)(arg1)->GetPOVPosition(); | |
11682 | ||
11683 | wxPyEndAllowThreads(__tstate); | |
11684 | if (PyErr_Occurred()) SWIG_fail; | |
11685 | } | |
36ed4f51 RD |
11686 | { |
11687 | resultobj = SWIG_From_int((int)(result)); | |
11688 | } | |
d55e5bfc RD |
11689 | return resultobj; |
11690 | fail: | |
11691 | return NULL; | |
11692 | } | |
11693 | ||
11694 | ||
c370783e | 11695 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11696 | PyObject *resultobj; |
11697 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11698 | int result; | |
11699 | PyObject * obj0 = 0 ; | |
11700 | char *kwnames[] = { | |
11701 | (char *) "self", NULL | |
11702 | }; | |
11703 | ||
11704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11707 | { |
11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11709 | result = (int)(arg1)->GetPOVCTSPosition(); | |
11710 | ||
11711 | wxPyEndAllowThreads(__tstate); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | } | |
36ed4f51 RD |
11714 | { |
11715 | resultobj = SWIG_From_int((int)(result)); | |
11716 | } | |
d55e5bfc RD |
11717 | return resultobj; |
11718 | fail: | |
11719 | return NULL; | |
11720 | } | |
11721 | ||
11722 | ||
c370783e | 11723 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11724 | PyObject *resultobj; |
11725 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11726 | int result; | |
11727 | PyObject * obj0 = 0 ; | |
11728 | char *kwnames[] = { | |
11729 | (char *) "self", NULL | |
11730 | }; | |
11731 | ||
11732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11733 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11734 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11735 | { |
11736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11737 | result = (int)(arg1)->GetRudderPosition(); | |
11738 | ||
11739 | wxPyEndAllowThreads(__tstate); | |
11740 | if (PyErr_Occurred()) SWIG_fail; | |
11741 | } | |
36ed4f51 RD |
11742 | { |
11743 | resultobj = SWIG_From_int((int)(result)); | |
11744 | } | |
d55e5bfc RD |
11745 | return resultobj; |
11746 | fail: | |
11747 | return NULL; | |
11748 | } | |
11749 | ||
11750 | ||
c370783e | 11751 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11752 | PyObject *resultobj; |
11753 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11754 | int result; | |
11755 | PyObject * obj0 = 0 ; | |
11756 | char *kwnames[] = { | |
11757 | (char *) "self", NULL | |
11758 | }; | |
11759 | ||
11760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11763 | { |
11764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11765 | result = (int)(arg1)->GetUPosition(); | |
11766 | ||
11767 | wxPyEndAllowThreads(__tstate); | |
11768 | if (PyErr_Occurred()) SWIG_fail; | |
11769 | } | |
36ed4f51 RD |
11770 | { |
11771 | resultobj = SWIG_From_int((int)(result)); | |
11772 | } | |
d55e5bfc RD |
11773 | return resultobj; |
11774 | fail: | |
11775 | return NULL; | |
11776 | } | |
11777 | ||
11778 | ||
c370783e | 11779 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11780 | PyObject *resultobj; |
11781 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11782 | int result; | |
11783 | PyObject * obj0 = 0 ; | |
11784 | char *kwnames[] = { | |
11785 | (char *) "self", NULL | |
11786 | }; | |
11787 | ||
11788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11791 | { |
11792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11793 | result = (int)(arg1)->GetVPosition(); | |
11794 | ||
11795 | wxPyEndAllowThreads(__tstate); | |
11796 | if (PyErr_Occurred()) SWIG_fail; | |
11797 | } | |
36ed4f51 RD |
11798 | { |
11799 | resultobj = SWIG_From_int((int)(result)); | |
11800 | } | |
d55e5bfc RD |
11801 | return resultobj; |
11802 | fail: | |
11803 | return NULL; | |
11804 | } | |
11805 | ||
11806 | ||
c370783e | 11807 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11808 | PyObject *resultobj; |
11809 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11810 | int result; | |
11811 | PyObject * obj0 = 0 ; | |
11812 | char *kwnames[] = { | |
11813 | (char *) "self", NULL | |
11814 | }; | |
11815 | ||
11816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11819 | { |
11820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11821 | result = (int)(arg1)->GetMovementThreshold(); | |
11822 | ||
11823 | wxPyEndAllowThreads(__tstate); | |
11824 | if (PyErr_Occurred()) SWIG_fail; | |
11825 | } | |
36ed4f51 RD |
11826 | { |
11827 | resultobj = SWIG_From_int((int)(result)); | |
11828 | } | |
d55e5bfc RD |
11829 | return resultobj; |
11830 | fail: | |
11831 | return NULL; | |
11832 | } | |
11833 | ||
11834 | ||
c370783e | 11835 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11836 | PyObject *resultobj; |
11837 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11838 | int arg2 ; | |
11839 | PyObject * obj0 = 0 ; | |
11840 | PyObject * obj1 = 0 ; | |
11841 | char *kwnames[] = { | |
11842 | (char *) "self",(char *) "threshold", NULL | |
11843 | }; | |
11844 | ||
11845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
11846 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11847 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11848 | { | |
11849 | arg2 = (int)(SWIG_As_int(obj1)); | |
11850 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11851 | } | |
d55e5bfc RD |
11852 | { |
11853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11854 | (arg1)->SetMovementThreshold(arg2); | |
11855 | ||
11856 | wxPyEndAllowThreads(__tstate); | |
11857 | if (PyErr_Occurred()) SWIG_fail; | |
11858 | } | |
11859 | Py_INCREF(Py_None); resultobj = Py_None; | |
11860 | return resultobj; | |
11861 | fail: | |
11862 | return NULL; | |
11863 | } | |
11864 | ||
11865 | ||
c370783e | 11866 | static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11867 | PyObject *resultobj; |
11868 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11869 | bool result; | |
11870 | PyObject * obj0 = 0 ; | |
11871 | char *kwnames[] = { | |
11872 | (char *) "self", NULL | |
11873 | }; | |
11874 | ||
11875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11878 | { |
11879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11880 | result = (bool)(arg1)->IsOk(); | |
11881 | ||
11882 | wxPyEndAllowThreads(__tstate); | |
11883 | if (PyErr_Occurred()) SWIG_fail; | |
11884 | } | |
11885 | { | |
11886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11887 | } | |
11888 | return resultobj; | |
11889 | fail: | |
11890 | return NULL; | |
11891 | } | |
11892 | ||
11893 | ||
c370783e | 11894 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11895 | PyObject *resultobj; |
11896 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11897 | int result; | |
11898 | PyObject * obj0 = 0 ; | |
11899 | char *kwnames[] = { | |
11900 | (char *) "self", NULL | |
11901 | }; | |
11902 | ||
11903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11906 | { |
11907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11908 | result = (int)(arg1)->GetNumberJoysticks(); | |
11909 | ||
11910 | wxPyEndAllowThreads(__tstate); | |
11911 | if (PyErr_Occurred()) SWIG_fail; | |
11912 | } | |
36ed4f51 RD |
11913 | { |
11914 | resultobj = SWIG_From_int((int)(result)); | |
11915 | } | |
d55e5bfc RD |
11916 | return resultobj; |
11917 | fail: | |
11918 | return NULL; | |
11919 | } | |
11920 | ||
11921 | ||
c370783e | 11922 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11923 | PyObject *resultobj; |
11924 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11925 | int result; | |
11926 | PyObject * obj0 = 0 ; | |
11927 | char *kwnames[] = { | |
11928 | (char *) "self", NULL | |
11929 | }; | |
11930 | ||
11931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11934 | { |
11935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11936 | result = (int)(arg1)->GetManufacturerId(); | |
11937 | ||
11938 | wxPyEndAllowThreads(__tstate); | |
11939 | if (PyErr_Occurred()) SWIG_fail; | |
11940 | } | |
36ed4f51 RD |
11941 | { |
11942 | resultobj = SWIG_From_int((int)(result)); | |
11943 | } | |
d55e5bfc RD |
11944 | return resultobj; |
11945 | fail: | |
11946 | return NULL; | |
11947 | } | |
11948 | ||
11949 | ||
c370783e | 11950 | static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11951 | PyObject *resultobj; |
11952 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11953 | int result; | |
11954 | PyObject * obj0 = 0 ; | |
11955 | char *kwnames[] = { | |
11956 | (char *) "self", NULL | |
11957 | }; | |
11958 | ||
11959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11962 | { |
11963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11964 | result = (int)(arg1)->GetProductId(); | |
11965 | ||
11966 | wxPyEndAllowThreads(__tstate); | |
11967 | if (PyErr_Occurred()) SWIG_fail; | |
11968 | } | |
36ed4f51 RD |
11969 | { |
11970 | resultobj = SWIG_From_int((int)(result)); | |
11971 | } | |
d55e5bfc RD |
11972 | return resultobj; |
11973 | fail: | |
11974 | return NULL; | |
11975 | } | |
11976 | ||
11977 | ||
c370783e | 11978 | static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11979 | PyObject *resultobj; |
11980 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11981 | wxString result; | |
11982 | PyObject * obj0 = 0 ; | |
11983 | char *kwnames[] = { | |
11984 | (char *) "self", NULL | |
11985 | }; | |
11986 | ||
11987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11990 | { |
11991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11992 | result = (arg1)->GetProductName(); | |
11993 | ||
11994 | wxPyEndAllowThreads(__tstate); | |
11995 | if (PyErr_Occurred()) SWIG_fail; | |
11996 | } | |
11997 | { | |
11998 | #if wxUSE_UNICODE | |
11999 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12000 | #else | |
12001 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12002 | #endif | |
12003 | } | |
12004 | return resultobj; | |
12005 | fail: | |
12006 | return NULL; | |
12007 | } | |
12008 | ||
12009 | ||
c370783e | 12010 | static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12011 | PyObject *resultobj; |
12012 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12013 | int result; | |
12014 | PyObject * obj0 = 0 ; | |
12015 | char *kwnames[] = { | |
12016 | (char *) "self", NULL | |
12017 | }; | |
12018 | ||
12019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12022 | { |
12023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12024 | result = (int)(arg1)->GetXMin(); | |
12025 | ||
12026 | wxPyEndAllowThreads(__tstate); | |
12027 | if (PyErr_Occurred()) SWIG_fail; | |
12028 | } | |
36ed4f51 RD |
12029 | { |
12030 | resultobj = SWIG_From_int((int)(result)); | |
12031 | } | |
d55e5bfc RD |
12032 | return resultobj; |
12033 | fail: | |
12034 | return NULL; | |
12035 | } | |
12036 | ||
12037 | ||
c370783e | 12038 | static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12039 | PyObject *resultobj; |
12040 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12041 | int result; | |
12042 | PyObject * obj0 = 0 ; | |
12043 | char *kwnames[] = { | |
12044 | (char *) "self", NULL | |
12045 | }; | |
12046 | ||
12047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12050 | { |
12051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12052 | result = (int)(arg1)->GetYMin(); | |
12053 | ||
12054 | wxPyEndAllowThreads(__tstate); | |
12055 | if (PyErr_Occurred()) SWIG_fail; | |
12056 | } | |
36ed4f51 RD |
12057 | { |
12058 | resultobj = SWIG_From_int((int)(result)); | |
12059 | } | |
d55e5bfc RD |
12060 | return resultobj; |
12061 | fail: | |
12062 | return NULL; | |
12063 | } | |
12064 | ||
12065 | ||
c370783e | 12066 | static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12067 | PyObject *resultobj; |
12068 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12069 | int result; | |
12070 | PyObject * obj0 = 0 ; | |
12071 | char *kwnames[] = { | |
12072 | (char *) "self", NULL | |
12073 | }; | |
12074 | ||
12075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12078 | { |
12079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12080 | result = (int)(arg1)->GetZMin(); | |
12081 | ||
12082 | wxPyEndAllowThreads(__tstate); | |
12083 | if (PyErr_Occurred()) SWIG_fail; | |
12084 | } | |
36ed4f51 RD |
12085 | { |
12086 | resultobj = SWIG_From_int((int)(result)); | |
12087 | } | |
d55e5bfc RD |
12088 | return resultobj; |
12089 | fail: | |
12090 | return NULL; | |
12091 | } | |
12092 | ||
12093 | ||
c370783e | 12094 | static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12095 | PyObject *resultobj; |
12096 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12097 | int result; | |
12098 | PyObject * obj0 = 0 ; | |
12099 | char *kwnames[] = { | |
12100 | (char *) "self", NULL | |
12101 | }; | |
12102 | ||
12103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12104 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12105 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12106 | { |
12107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12108 | result = (int)(arg1)->GetXMax(); | |
12109 | ||
12110 | wxPyEndAllowThreads(__tstate); | |
12111 | if (PyErr_Occurred()) SWIG_fail; | |
12112 | } | |
36ed4f51 RD |
12113 | { |
12114 | resultobj = SWIG_From_int((int)(result)); | |
12115 | } | |
d55e5bfc RD |
12116 | return resultobj; |
12117 | fail: | |
12118 | return NULL; | |
12119 | } | |
12120 | ||
12121 | ||
c370783e | 12122 | static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12123 | PyObject *resultobj; |
12124 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12125 | int result; | |
12126 | PyObject * obj0 = 0 ; | |
12127 | char *kwnames[] = { | |
12128 | (char *) "self", NULL | |
12129 | }; | |
12130 | ||
12131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12134 | { |
12135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12136 | result = (int)(arg1)->GetYMax(); | |
12137 | ||
12138 | wxPyEndAllowThreads(__tstate); | |
12139 | if (PyErr_Occurred()) SWIG_fail; | |
12140 | } | |
36ed4f51 RD |
12141 | { |
12142 | resultobj = SWIG_From_int((int)(result)); | |
12143 | } | |
d55e5bfc RD |
12144 | return resultobj; |
12145 | fail: | |
12146 | return NULL; | |
12147 | } | |
12148 | ||
12149 | ||
c370783e | 12150 | static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12151 | PyObject *resultobj; |
12152 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12153 | int result; | |
12154 | PyObject * obj0 = 0 ; | |
12155 | char *kwnames[] = { | |
12156 | (char *) "self", NULL | |
12157 | }; | |
12158 | ||
12159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12160 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12162 | { |
12163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12164 | result = (int)(arg1)->GetZMax(); | |
12165 | ||
12166 | wxPyEndAllowThreads(__tstate); | |
12167 | if (PyErr_Occurred()) SWIG_fail; | |
12168 | } | |
36ed4f51 RD |
12169 | { |
12170 | resultobj = SWIG_From_int((int)(result)); | |
12171 | } | |
d55e5bfc RD |
12172 | return resultobj; |
12173 | fail: | |
12174 | return NULL; | |
12175 | } | |
12176 | ||
12177 | ||
c370783e | 12178 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12179 | PyObject *resultobj; |
12180 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12181 | int result; | |
12182 | PyObject * obj0 = 0 ; | |
12183 | char *kwnames[] = { | |
12184 | (char *) "self", NULL | |
12185 | }; | |
12186 | ||
12187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12190 | { |
12191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12192 | result = (int)(arg1)->GetNumberButtons(); | |
12193 | ||
12194 | wxPyEndAllowThreads(__tstate); | |
12195 | if (PyErr_Occurred()) SWIG_fail; | |
12196 | } | |
36ed4f51 RD |
12197 | { |
12198 | resultobj = SWIG_From_int((int)(result)); | |
12199 | } | |
d55e5bfc RD |
12200 | return resultobj; |
12201 | fail: | |
12202 | return NULL; | |
12203 | } | |
12204 | ||
12205 | ||
c370783e | 12206 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12207 | PyObject *resultobj; |
12208 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12209 | int result; | |
12210 | PyObject * obj0 = 0 ; | |
12211 | char *kwnames[] = { | |
12212 | (char *) "self", NULL | |
12213 | }; | |
12214 | ||
12215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12218 | { |
12219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12220 | result = (int)(arg1)->GetNumberAxes(); | |
12221 | ||
12222 | wxPyEndAllowThreads(__tstate); | |
12223 | if (PyErr_Occurred()) SWIG_fail; | |
12224 | } | |
36ed4f51 RD |
12225 | { |
12226 | resultobj = SWIG_From_int((int)(result)); | |
12227 | } | |
d55e5bfc RD |
12228 | return resultobj; |
12229 | fail: | |
12230 | return NULL; | |
12231 | } | |
12232 | ||
12233 | ||
c370783e | 12234 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12235 | PyObject *resultobj; |
12236 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12237 | int result; | |
12238 | PyObject * obj0 = 0 ; | |
12239 | char *kwnames[] = { | |
12240 | (char *) "self", NULL | |
12241 | }; | |
12242 | ||
12243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12246 | { |
12247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12248 | result = (int)(arg1)->GetMaxButtons(); | |
12249 | ||
12250 | wxPyEndAllowThreads(__tstate); | |
12251 | if (PyErr_Occurred()) SWIG_fail; | |
12252 | } | |
36ed4f51 RD |
12253 | { |
12254 | resultobj = SWIG_From_int((int)(result)); | |
12255 | } | |
d55e5bfc RD |
12256 | return resultobj; |
12257 | fail: | |
12258 | return NULL; | |
12259 | } | |
12260 | ||
12261 | ||
c370783e | 12262 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12263 | PyObject *resultobj; |
12264 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12265 | int result; | |
12266 | PyObject * obj0 = 0 ; | |
12267 | char *kwnames[] = { | |
12268 | (char *) "self", NULL | |
12269 | }; | |
12270 | ||
12271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12274 | { |
12275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12276 | result = (int)(arg1)->GetMaxAxes(); | |
12277 | ||
12278 | wxPyEndAllowThreads(__tstate); | |
12279 | if (PyErr_Occurred()) SWIG_fail; | |
12280 | } | |
36ed4f51 RD |
12281 | { |
12282 | resultobj = SWIG_From_int((int)(result)); | |
12283 | } | |
d55e5bfc RD |
12284 | return resultobj; |
12285 | fail: | |
12286 | return NULL; | |
12287 | } | |
12288 | ||
12289 | ||
c370783e | 12290 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12291 | PyObject *resultobj; |
12292 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12293 | int result; | |
12294 | PyObject * obj0 = 0 ; | |
12295 | char *kwnames[] = { | |
12296 | (char *) "self", NULL | |
12297 | }; | |
12298 | ||
12299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12300 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12301 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12302 | { |
12303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12304 | result = (int)(arg1)->GetPollingMin(); | |
12305 | ||
12306 | wxPyEndAllowThreads(__tstate); | |
12307 | if (PyErr_Occurred()) SWIG_fail; | |
12308 | } | |
36ed4f51 RD |
12309 | { |
12310 | resultobj = SWIG_From_int((int)(result)); | |
12311 | } | |
d55e5bfc RD |
12312 | return resultobj; |
12313 | fail: | |
12314 | return NULL; | |
12315 | } | |
12316 | ||
12317 | ||
c370783e | 12318 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12319 | PyObject *resultobj; |
12320 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12321 | int result; | |
12322 | PyObject * obj0 = 0 ; | |
12323 | char *kwnames[] = { | |
12324 | (char *) "self", NULL | |
12325 | }; | |
12326 | ||
12327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12330 | { |
12331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12332 | result = (int)(arg1)->GetPollingMax(); | |
12333 | ||
12334 | wxPyEndAllowThreads(__tstate); | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | } | |
36ed4f51 RD |
12337 | { |
12338 | resultobj = SWIG_From_int((int)(result)); | |
12339 | } | |
d55e5bfc RD |
12340 | return resultobj; |
12341 | fail: | |
12342 | return NULL; | |
12343 | } | |
12344 | ||
12345 | ||
c370783e | 12346 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12347 | PyObject *resultobj; |
12348 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12349 | int result; | |
12350 | PyObject * obj0 = 0 ; | |
12351 | char *kwnames[] = { | |
12352 | (char *) "self", NULL | |
12353 | }; | |
12354 | ||
12355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12358 | { |
12359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12360 | result = (int)(arg1)->GetRudderMin(); | |
12361 | ||
12362 | wxPyEndAllowThreads(__tstate); | |
12363 | if (PyErr_Occurred()) SWIG_fail; | |
12364 | } | |
36ed4f51 RD |
12365 | { |
12366 | resultobj = SWIG_From_int((int)(result)); | |
12367 | } | |
d55e5bfc RD |
12368 | return resultobj; |
12369 | fail: | |
12370 | return NULL; | |
12371 | } | |
12372 | ||
12373 | ||
c370783e | 12374 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12375 | PyObject *resultobj; |
12376 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12377 | int result; | |
12378 | PyObject * obj0 = 0 ; | |
12379 | char *kwnames[] = { | |
12380 | (char *) "self", NULL | |
12381 | }; | |
12382 | ||
12383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12386 | { |
12387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12388 | result = (int)(arg1)->GetRudderMax(); | |
12389 | ||
12390 | wxPyEndAllowThreads(__tstate); | |
12391 | if (PyErr_Occurred()) SWIG_fail; | |
12392 | } | |
36ed4f51 RD |
12393 | { |
12394 | resultobj = SWIG_From_int((int)(result)); | |
12395 | } | |
d55e5bfc RD |
12396 | return resultobj; |
12397 | fail: | |
12398 | return NULL; | |
12399 | } | |
12400 | ||
12401 | ||
c370783e | 12402 | static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12403 | PyObject *resultobj; |
12404 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12405 | int result; | |
12406 | PyObject * obj0 = 0 ; | |
12407 | char *kwnames[] = { | |
12408 | (char *) "self", NULL | |
12409 | }; | |
12410 | ||
12411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12412 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12413 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12414 | { |
12415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12416 | result = (int)(arg1)->GetUMin(); | |
12417 | ||
12418 | wxPyEndAllowThreads(__tstate); | |
12419 | if (PyErr_Occurred()) SWIG_fail; | |
12420 | } | |
36ed4f51 RD |
12421 | { |
12422 | resultobj = SWIG_From_int((int)(result)); | |
12423 | } | |
d55e5bfc RD |
12424 | return resultobj; |
12425 | fail: | |
12426 | return NULL; | |
12427 | } | |
12428 | ||
12429 | ||
c370783e | 12430 | static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12431 | PyObject *resultobj; |
12432 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12433 | int result; | |
12434 | PyObject * obj0 = 0 ; | |
12435 | char *kwnames[] = { | |
12436 | (char *) "self", NULL | |
12437 | }; | |
12438 | ||
12439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12442 | { |
12443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12444 | result = (int)(arg1)->GetUMax(); | |
12445 | ||
12446 | wxPyEndAllowThreads(__tstate); | |
12447 | if (PyErr_Occurred()) SWIG_fail; | |
12448 | } | |
36ed4f51 RD |
12449 | { |
12450 | resultobj = SWIG_From_int((int)(result)); | |
12451 | } | |
d55e5bfc RD |
12452 | return resultobj; |
12453 | fail: | |
12454 | return NULL; | |
12455 | } | |
12456 | ||
12457 | ||
c370783e | 12458 | static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12459 | PyObject *resultobj; |
12460 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12461 | int result; | |
12462 | PyObject * obj0 = 0 ; | |
12463 | char *kwnames[] = { | |
12464 | (char *) "self", NULL | |
12465 | }; | |
12466 | ||
12467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12470 | { |
12471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12472 | result = (int)(arg1)->GetVMin(); | |
12473 | ||
12474 | wxPyEndAllowThreads(__tstate); | |
12475 | if (PyErr_Occurred()) SWIG_fail; | |
12476 | } | |
36ed4f51 RD |
12477 | { |
12478 | resultobj = SWIG_From_int((int)(result)); | |
12479 | } | |
d55e5bfc RD |
12480 | return resultobj; |
12481 | fail: | |
12482 | return NULL; | |
12483 | } | |
12484 | ||
12485 | ||
c370783e | 12486 | static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12487 | PyObject *resultobj; |
12488 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12489 | int result; | |
12490 | PyObject * obj0 = 0 ; | |
12491 | char *kwnames[] = { | |
12492 | (char *) "self", NULL | |
12493 | }; | |
12494 | ||
12495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12498 | { |
12499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12500 | result = (int)(arg1)->GetVMax(); | |
12501 | ||
12502 | wxPyEndAllowThreads(__tstate); | |
12503 | if (PyErr_Occurred()) SWIG_fail; | |
12504 | } | |
36ed4f51 RD |
12505 | { |
12506 | resultobj = SWIG_From_int((int)(result)); | |
12507 | } | |
d55e5bfc RD |
12508 | return resultobj; |
12509 | fail: | |
12510 | return NULL; | |
12511 | } | |
12512 | ||
12513 | ||
c370783e | 12514 | static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12515 | PyObject *resultobj; |
12516 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12517 | bool result; | |
12518 | PyObject * obj0 = 0 ; | |
12519 | char *kwnames[] = { | |
12520 | (char *) "self", NULL | |
12521 | }; | |
12522 | ||
12523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12526 | { |
12527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12528 | result = (bool)(arg1)->HasRudder(); | |
12529 | ||
12530 | wxPyEndAllowThreads(__tstate); | |
12531 | if (PyErr_Occurred()) SWIG_fail; | |
12532 | } | |
12533 | { | |
12534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12535 | } | |
12536 | return resultobj; | |
12537 | fail: | |
12538 | return NULL; | |
12539 | } | |
12540 | ||
12541 | ||
c370783e | 12542 | static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12543 | PyObject *resultobj; |
12544 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12545 | bool result; | |
12546 | PyObject * obj0 = 0 ; | |
12547 | char *kwnames[] = { | |
12548 | (char *) "self", NULL | |
12549 | }; | |
12550 | ||
12551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12552 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12553 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12554 | { |
12555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12556 | result = (bool)(arg1)->HasZ(); | |
12557 | ||
12558 | wxPyEndAllowThreads(__tstate); | |
12559 | if (PyErr_Occurred()) SWIG_fail; | |
12560 | } | |
12561 | { | |
12562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12563 | } | |
12564 | return resultobj; | |
12565 | fail: | |
12566 | return NULL; | |
12567 | } | |
12568 | ||
12569 | ||
c370783e | 12570 | static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12571 | PyObject *resultobj; |
12572 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12573 | bool result; | |
12574 | PyObject * obj0 = 0 ; | |
12575 | char *kwnames[] = { | |
12576 | (char *) "self", NULL | |
12577 | }; | |
12578 | ||
12579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12582 | { |
12583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12584 | result = (bool)(arg1)->HasU(); | |
12585 | ||
12586 | wxPyEndAllowThreads(__tstate); | |
12587 | if (PyErr_Occurred()) SWIG_fail; | |
12588 | } | |
12589 | { | |
12590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12591 | } | |
12592 | return resultobj; | |
12593 | fail: | |
12594 | return NULL; | |
12595 | } | |
12596 | ||
12597 | ||
c370783e | 12598 | static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12599 | PyObject *resultobj; |
12600 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12601 | bool result; | |
12602 | PyObject * obj0 = 0 ; | |
12603 | char *kwnames[] = { | |
12604 | (char *) "self", NULL | |
12605 | }; | |
12606 | ||
12607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12610 | { |
12611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12612 | result = (bool)(arg1)->HasV(); | |
12613 | ||
12614 | wxPyEndAllowThreads(__tstate); | |
12615 | if (PyErr_Occurred()) SWIG_fail; | |
12616 | } | |
12617 | { | |
12618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12619 | } | |
12620 | return resultobj; | |
12621 | fail: | |
12622 | return NULL; | |
12623 | } | |
12624 | ||
12625 | ||
c370783e | 12626 | static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12627 | PyObject *resultobj; |
12628 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12629 | bool result; | |
12630 | PyObject * obj0 = 0 ; | |
12631 | char *kwnames[] = { | |
12632 | (char *) "self", NULL | |
12633 | }; | |
12634 | ||
12635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12638 | { |
12639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12640 | result = (bool)(arg1)->HasPOV(); | |
12641 | ||
12642 | wxPyEndAllowThreads(__tstate); | |
12643 | if (PyErr_Occurred()) SWIG_fail; | |
12644 | } | |
12645 | { | |
12646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12647 | } | |
12648 | return resultobj; | |
12649 | fail: | |
12650 | return NULL; | |
12651 | } | |
12652 | ||
12653 | ||
c370783e | 12654 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12655 | PyObject *resultobj; |
12656 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12657 | bool result; | |
12658 | PyObject * obj0 = 0 ; | |
12659 | char *kwnames[] = { | |
12660 | (char *) "self", NULL | |
12661 | }; | |
12662 | ||
12663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12664 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12665 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12666 | { |
12667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12668 | result = (bool)(arg1)->HasPOV4Dir(); | |
12669 | ||
12670 | wxPyEndAllowThreads(__tstate); | |
12671 | if (PyErr_Occurred()) SWIG_fail; | |
12672 | } | |
12673 | { | |
12674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12675 | } | |
12676 | return resultobj; | |
12677 | fail: | |
12678 | return NULL; | |
12679 | } | |
12680 | ||
12681 | ||
c370783e | 12682 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12683 | PyObject *resultobj; |
12684 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12685 | bool result; | |
12686 | PyObject * obj0 = 0 ; | |
12687 | char *kwnames[] = { | |
12688 | (char *) "self", NULL | |
12689 | }; | |
12690 | ||
12691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12694 | { |
12695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12696 | result = (bool)(arg1)->HasPOVCTS(); | |
12697 | ||
12698 | wxPyEndAllowThreads(__tstate); | |
12699 | if (PyErr_Occurred()) SWIG_fail; | |
12700 | } | |
12701 | { | |
12702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12703 | } | |
12704 | return resultobj; | |
12705 | fail: | |
12706 | return NULL; | |
12707 | } | |
12708 | ||
12709 | ||
c370783e | 12710 | static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12711 | PyObject *resultobj; |
12712 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12713 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12714 | int arg3 = (int) 0 ; | |
12715 | bool result; | |
12716 | PyObject * obj0 = 0 ; | |
12717 | PyObject * obj1 = 0 ; | |
12718 | PyObject * obj2 = 0 ; | |
12719 | char *kwnames[] = { | |
12720 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
12721 | }; | |
12722 | ||
12723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
12724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12726 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12727 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 12728 | if (obj2) { |
36ed4f51 RD |
12729 | { |
12730 | arg3 = (int)(SWIG_As_int(obj2)); | |
12731 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12732 | } | |
d55e5bfc RD |
12733 | } |
12734 | { | |
12735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12736 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
12737 | ||
12738 | wxPyEndAllowThreads(__tstate); | |
12739 | if (PyErr_Occurred()) SWIG_fail; | |
12740 | } | |
12741 | { | |
12742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12743 | } | |
12744 | return resultobj; | |
12745 | fail: | |
12746 | return NULL; | |
12747 | } | |
12748 | ||
12749 | ||
c370783e | 12750 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12751 | PyObject *resultobj; |
12752 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12753 | bool result; | |
12754 | PyObject * obj0 = 0 ; | |
12755 | char *kwnames[] = { | |
12756 | (char *) "self", NULL | |
12757 | }; | |
12758 | ||
12759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12762 | { |
12763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12764 | result = (bool)(arg1)->ReleaseCapture(); | |
12765 | ||
12766 | wxPyEndAllowThreads(__tstate); | |
12767 | if (PyErr_Occurred()) SWIG_fail; | |
12768 | } | |
12769 | { | |
12770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12771 | } | |
12772 | return resultobj; | |
12773 | fail: | |
12774 | return NULL; | |
12775 | } | |
12776 | ||
12777 | ||
c370783e | 12778 | static PyObject * Joystick_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12779 | PyObject *obj; |
12780 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12781 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
12782 | Py_INCREF(obj); | |
12783 | return Py_BuildValue((char *)""); | |
12784 | } | |
c370783e | 12785 | static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12786 | PyObject *resultobj; |
12787 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12788 | int arg2 = (int) 0 ; | |
12789 | int arg3 = (int) wxJOYSTICK1 ; | |
12790 | int arg4 = (int) 0 ; | |
12791 | wxJoystickEvent *result; | |
12792 | PyObject * obj0 = 0 ; | |
12793 | PyObject * obj1 = 0 ; | |
12794 | PyObject * obj2 = 0 ; | |
12795 | PyObject * obj3 = 0 ; | |
12796 | char *kwnames[] = { | |
12797 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
12798 | }; | |
12799 | ||
12800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12801 | if (obj0) { | |
36ed4f51 RD |
12802 | { |
12803 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
12804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12805 | } | |
d55e5bfc RD |
12806 | } |
12807 | if (obj1) { | |
36ed4f51 RD |
12808 | { |
12809 | arg2 = (int)(SWIG_As_int(obj1)); | |
12810 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12811 | } | |
d55e5bfc RD |
12812 | } |
12813 | if (obj2) { | |
36ed4f51 RD |
12814 | { |
12815 | arg3 = (int)(SWIG_As_int(obj2)); | |
12816 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12817 | } | |
d55e5bfc RD |
12818 | } |
12819 | if (obj3) { | |
36ed4f51 RD |
12820 | { |
12821 | arg4 = (int)(SWIG_As_int(obj3)); | |
12822 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12823 | } | |
d55e5bfc RD |
12824 | } |
12825 | { | |
12826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12827 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
12828 | ||
12829 | wxPyEndAllowThreads(__tstate); | |
12830 | if (PyErr_Occurred()) SWIG_fail; | |
12831 | } | |
12832 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
12833 | return resultobj; | |
12834 | fail: | |
12835 | return NULL; | |
12836 | } | |
12837 | ||
12838 | ||
c370783e | 12839 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12840 | PyObject *resultobj; |
12841 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12842 | wxPoint result; | |
12843 | PyObject * obj0 = 0 ; | |
12844 | char *kwnames[] = { | |
12845 | (char *) "self", NULL | |
12846 | }; | |
12847 | ||
12848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
12850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12851 | { |
12852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12853 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
12854 | ||
12855 | wxPyEndAllowThreads(__tstate); | |
12856 | if (PyErr_Occurred()) SWIG_fail; | |
12857 | } | |
12858 | { | |
12859 | wxPoint * resultptr; | |
36ed4f51 | 12860 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
12861 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
12862 | } | |
12863 | return resultobj; | |
12864 | fail: | |
12865 | return NULL; | |
12866 | } | |
12867 | ||
12868 | ||
c370783e | 12869 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12870 | PyObject *resultobj; |
12871 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12872 | int result; | |
12873 | PyObject * obj0 = 0 ; | |
12874 | char *kwnames[] = { | |
12875 | (char *) "self", NULL | |
12876 | }; | |
12877 | ||
12878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
12880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12881 | { |
12882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12883 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
12884 | ||
12885 | wxPyEndAllowThreads(__tstate); | |
12886 | if (PyErr_Occurred()) SWIG_fail; | |
12887 | } | |
36ed4f51 RD |
12888 | { |
12889 | resultobj = SWIG_From_int((int)(result)); | |
12890 | } | |
d55e5bfc RD |
12891 | return resultobj; |
12892 | fail: | |
12893 | return NULL; | |
12894 | } | |
12895 | ||
12896 | ||
c370783e | 12897 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12898 | PyObject *resultobj; |
12899 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12900 | int result; | |
12901 | PyObject * obj0 = 0 ; | |
12902 | char *kwnames[] = { | |
12903 | (char *) "self", NULL | |
12904 | }; | |
12905 | ||
12906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
12908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12909 | { |
12910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12911 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
12912 | ||
12913 | wxPyEndAllowThreads(__tstate); | |
12914 | if (PyErr_Occurred()) SWIG_fail; | |
12915 | } | |
36ed4f51 RD |
12916 | { |
12917 | resultobj = SWIG_From_int((int)(result)); | |
12918 | } | |
d55e5bfc RD |
12919 | return resultobj; |
12920 | fail: | |
12921 | return NULL; | |
12922 | } | |
12923 | ||
12924 | ||
c370783e | 12925 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12926 | PyObject *resultobj; |
12927 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12928 | int result; | |
12929 | PyObject * obj0 = 0 ; | |
12930 | char *kwnames[] = { | |
12931 | (char *) "self", NULL | |
12932 | }; | |
12933 | ||
12934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12935 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
12936 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12937 | { |
12938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12939 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
12940 | ||
12941 | wxPyEndAllowThreads(__tstate); | |
12942 | if (PyErr_Occurred()) SWIG_fail; | |
12943 | } | |
36ed4f51 RD |
12944 | { |
12945 | resultobj = SWIG_From_int((int)(result)); | |
12946 | } | |
d55e5bfc RD |
12947 | return resultobj; |
12948 | fail: | |
12949 | return NULL; | |
12950 | } | |
12951 | ||
12952 | ||
c370783e | 12953 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12954 | PyObject *resultobj; |
12955 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12956 | int result; | |
12957 | PyObject * obj0 = 0 ; | |
12958 | char *kwnames[] = { | |
12959 | (char *) "self", NULL | |
12960 | }; | |
12961 | ||
12962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
12964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12965 | { |
12966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12967 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
12968 | ||
12969 | wxPyEndAllowThreads(__tstate); | |
12970 | if (PyErr_Occurred()) SWIG_fail; | |
12971 | } | |
36ed4f51 RD |
12972 | { |
12973 | resultobj = SWIG_From_int((int)(result)); | |
12974 | } | |
d55e5bfc RD |
12975 | return resultobj; |
12976 | fail: | |
12977 | return NULL; | |
12978 | } | |
12979 | ||
12980 | ||
c370783e | 12981 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12982 | PyObject *resultobj; |
12983 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12984 | int arg2 ; | |
12985 | PyObject * obj0 = 0 ; | |
12986 | PyObject * obj1 = 0 ; | |
12987 | char *kwnames[] = { | |
12988 | (char *) "self",(char *) "stick", NULL | |
12989 | }; | |
12990 | ||
12991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
12992 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
12993 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12994 | { | |
12995 | arg2 = (int)(SWIG_As_int(obj1)); | |
12996 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12997 | } | |
d55e5bfc RD |
12998 | { |
12999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13000 | (arg1)->SetJoystick(arg2); | |
13001 | ||
13002 | wxPyEndAllowThreads(__tstate); | |
13003 | if (PyErr_Occurred()) SWIG_fail; | |
13004 | } | |
13005 | Py_INCREF(Py_None); resultobj = Py_None; | |
13006 | return resultobj; | |
13007 | fail: | |
13008 | return NULL; | |
13009 | } | |
13010 | ||
13011 | ||
c370783e | 13012 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13013 | PyObject *resultobj; |
13014 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13015 | int arg2 ; | |
13016 | PyObject * obj0 = 0 ; | |
13017 | PyObject * obj1 = 0 ; | |
13018 | char *kwnames[] = { | |
13019 | (char *) "self",(char *) "state", NULL | |
13020 | }; | |
13021 | ||
13022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13025 | { | |
13026 | arg2 = (int)(SWIG_As_int(obj1)); | |
13027 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13028 | } | |
d55e5bfc RD |
13029 | { |
13030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13031 | (arg1)->SetButtonState(arg2); | |
13032 | ||
13033 | wxPyEndAllowThreads(__tstate); | |
13034 | if (PyErr_Occurred()) SWIG_fail; | |
13035 | } | |
13036 | Py_INCREF(Py_None); resultobj = Py_None; | |
13037 | return resultobj; | |
13038 | fail: | |
13039 | return NULL; | |
13040 | } | |
13041 | ||
13042 | ||
c370783e | 13043 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13044 | PyObject *resultobj; |
13045 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13046 | int arg2 ; | |
13047 | PyObject * obj0 = 0 ; | |
13048 | PyObject * obj1 = 0 ; | |
13049 | char *kwnames[] = { | |
13050 | (char *) "self",(char *) "change", NULL | |
13051 | }; | |
13052 | ||
13053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13056 | { | |
13057 | arg2 = (int)(SWIG_As_int(obj1)); | |
13058 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13059 | } | |
d55e5bfc RD |
13060 | { |
13061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13062 | (arg1)->SetButtonChange(arg2); | |
13063 | ||
13064 | wxPyEndAllowThreads(__tstate); | |
13065 | if (PyErr_Occurred()) SWIG_fail; | |
13066 | } | |
13067 | Py_INCREF(Py_None); resultobj = Py_None; | |
13068 | return resultobj; | |
13069 | fail: | |
13070 | return NULL; | |
13071 | } | |
13072 | ||
13073 | ||
c370783e | 13074 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13075 | PyObject *resultobj; |
13076 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13077 | wxPoint *arg2 = 0 ; | |
13078 | wxPoint temp2 ; | |
13079 | PyObject * obj0 = 0 ; | |
13080 | PyObject * obj1 = 0 ; | |
13081 | char *kwnames[] = { | |
13082 | (char *) "self",(char *) "pos", NULL | |
13083 | }; | |
13084 | ||
13085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13088 | { |
13089 | arg2 = &temp2; | |
13090 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13091 | } | |
13092 | { | |
13093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13094 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
13095 | ||
13096 | wxPyEndAllowThreads(__tstate); | |
13097 | if (PyErr_Occurred()) SWIG_fail; | |
13098 | } | |
13099 | Py_INCREF(Py_None); resultobj = Py_None; | |
13100 | return resultobj; | |
13101 | fail: | |
13102 | return NULL; | |
13103 | } | |
13104 | ||
13105 | ||
c370783e | 13106 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13107 | PyObject *resultobj; |
13108 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13109 | int arg2 ; | |
13110 | PyObject * obj0 = 0 ; | |
13111 | PyObject * obj1 = 0 ; | |
13112 | char *kwnames[] = { | |
13113 | (char *) "self",(char *) "zPos", NULL | |
13114 | }; | |
13115 | ||
13116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13119 | { | |
13120 | arg2 = (int)(SWIG_As_int(obj1)); | |
13121 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13122 | } | |
d55e5bfc RD |
13123 | { |
13124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13125 | (arg1)->SetZPosition(arg2); | |
13126 | ||
13127 | wxPyEndAllowThreads(__tstate); | |
13128 | if (PyErr_Occurred()) SWIG_fail; | |
13129 | } | |
13130 | Py_INCREF(Py_None); resultobj = Py_None; | |
13131 | return resultobj; | |
13132 | fail: | |
13133 | return NULL; | |
13134 | } | |
13135 | ||
13136 | ||
c370783e | 13137 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13138 | PyObject *resultobj; |
13139 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13140 | bool result; | |
13141 | PyObject * obj0 = 0 ; | |
13142 | char *kwnames[] = { | |
13143 | (char *) "self", NULL | |
13144 | }; | |
13145 | ||
13146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13149 | { |
13150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13151 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
13152 | ||
13153 | wxPyEndAllowThreads(__tstate); | |
13154 | if (PyErr_Occurred()) SWIG_fail; | |
13155 | } | |
13156 | { | |
13157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13158 | } | |
13159 | return resultobj; | |
13160 | fail: | |
13161 | return NULL; | |
13162 | } | |
13163 | ||
13164 | ||
c370783e | 13165 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13166 | PyObject *resultobj; |
13167 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13168 | bool result; | |
13169 | PyObject * obj0 = 0 ; | |
13170 | char *kwnames[] = { | |
13171 | (char *) "self", NULL | |
13172 | }; | |
13173 | ||
13174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13177 | { |
13178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13179 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
13180 | ||
13181 | wxPyEndAllowThreads(__tstate); | |
13182 | if (PyErr_Occurred()) SWIG_fail; | |
13183 | } | |
13184 | { | |
13185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13186 | } | |
13187 | return resultobj; | |
13188 | fail: | |
13189 | return NULL; | |
13190 | } | |
13191 | ||
13192 | ||
c370783e | 13193 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13194 | PyObject *resultobj; |
13195 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13196 | bool result; | |
13197 | PyObject * obj0 = 0 ; | |
13198 | char *kwnames[] = { | |
13199 | (char *) "self", NULL | |
13200 | }; | |
13201 | ||
13202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13203 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13204 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13205 | { |
13206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13207 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
13208 | ||
13209 | wxPyEndAllowThreads(__tstate); | |
13210 | if (PyErr_Occurred()) SWIG_fail; | |
13211 | } | |
13212 | { | |
13213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13214 | } | |
13215 | return resultobj; | |
13216 | fail: | |
13217 | return NULL; | |
13218 | } | |
13219 | ||
13220 | ||
c370783e | 13221 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13222 | PyObject *resultobj; |
13223 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13224 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
13225 | bool result; | |
13226 | PyObject * obj0 = 0 ; | |
13227 | PyObject * obj1 = 0 ; | |
13228 | char *kwnames[] = { | |
13229 | (char *) "self",(char *) "but", NULL | |
13230 | }; | |
13231 | ||
13232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13235 | if (obj1) { |
36ed4f51 RD |
13236 | { |
13237 | arg2 = (int)(SWIG_As_int(obj1)); | |
13238 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13239 | } | |
d55e5bfc RD |
13240 | } |
13241 | { | |
13242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13243 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
13244 | ||
13245 | wxPyEndAllowThreads(__tstate); | |
13246 | if (PyErr_Occurred()) SWIG_fail; | |
13247 | } | |
13248 | { | |
13249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13250 | } | |
13251 | return resultobj; | |
13252 | fail: | |
13253 | return NULL; | |
13254 | } | |
13255 | ||
13256 | ||
c370783e | 13257 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13258 | PyObject *resultobj; |
13259 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13260 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
13261 | bool result; | |
13262 | PyObject * obj0 = 0 ; | |
13263 | PyObject * obj1 = 0 ; | |
13264 | char *kwnames[] = { | |
13265 | (char *) "self",(char *) "but", NULL | |
13266 | }; | |
13267 | ||
13268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13271 | if (obj1) { |
36ed4f51 RD |
13272 | { |
13273 | arg2 = (int)(SWIG_As_int(obj1)); | |
13274 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13275 | } | |
d55e5bfc RD |
13276 | } |
13277 | { | |
13278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13279 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
13280 | ||
13281 | wxPyEndAllowThreads(__tstate); | |
13282 | if (PyErr_Occurred()) SWIG_fail; | |
13283 | } | |
13284 | { | |
13285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13286 | } | |
13287 | return resultobj; | |
13288 | fail: | |
13289 | return NULL; | |
13290 | } | |
13291 | ||
13292 | ||
c370783e | 13293 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13294 | PyObject *resultobj; |
13295 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13296 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
13297 | bool result; | |
13298 | PyObject * obj0 = 0 ; | |
13299 | PyObject * obj1 = 0 ; | |
13300 | char *kwnames[] = { | |
13301 | (char *) "self",(char *) "but", NULL | |
13302 | }; | |
13303 | ||
13304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13307 | if (obj1) { |
36ed4f51 RD |
13308 | { |
13309 | arg2 = (int)(SWIG_As_int(obj1)); | |
13310 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13311 | } | |
d55e5bfc RD |
13312 | } |
13313 | { | |
13314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13315 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
13316 | ||
13317 | wxPyEndAllowThreads(__tstate); | |
13318 | if (PyErr_Occurred()) SWIG_fail; | |
13319 | } | |
13320 | { | |
13321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13322 | } | |
13323 | return resultobj; | |
13324 | fail: | |
13325 | return NULL; | |
13326 | } | |
13327 | ||
13328 | ||
c370783e | 13329 | static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13330 | PyObject *obj; |
13331 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13332 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
13333 | Py_INCREF(obj); | |
13334 | return Py_BuildValue((char *)""); | |
13335 | } | |
c370783e | 13336 | static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 13337 | PyObject *resultobj; |
0346c964 RD |
13338 | wxString const &arg1_defvalue = wxPyEmptyString ; |
13339 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc | 13340 | wxSound *result; |
b411df4a | 13341 | bool temp1 = false ; |
d55e5bfc | 13342 | PyObject * obj0 = 0 ; |
0346c964 RD |
13343 | char *kwnames[] = { |
13344 | (char *) "fileName", NULL | |
13345 | }; | |
d55e5bfc | 13346 | |
0346c964 RD |
13347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
13348 | if (obj0) { | |
13349 | { | |
13350 | arg1 = wxString_in_helper(obj0); | |
13351 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 13352 | temp1 = true; |
0346c964 | 13353 | } |
d55e5bfc RD |
13354 | } |
13355 | { | |
0439c23b | 13356 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 13357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0346c964 | 13358 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d55e5bfc RD |
13359 | |
13360 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13361 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13362 | } |
13363 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
13364 | { | |
13365 | if (temp1) | |
13366 | delete arg1; | |
13367 | } | |
13368 | return resultobj; | |
13369 | fail: | |
13370 | { | |
13371 | if (temp1) | |
13372 | delete arg1; | |
13373 | } | |
13374 | return NULL; | |
13375 | } | |
13376 | ||
13377 | ||
c370783e | 13378 | static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 13379 | PyObject *resultobj; |
0346c964 | 13380 | PyObject *arg1 = (PyObject *) 0 ; |
d55e5bfc RD |
13381 | wxSound *result; |
13382 | PyObject * obj0 = 0 ; | |
0346c964 RD |
13383 | char *kwnames[] = { |
13384 | (char *) "data", NULL | |
13385 | }; | |
d55e5bfc | 13386 | |
0346c964 RD |
13387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
13388 | arg1 = obj0; | |
d55e5bfc | 13389 | { |
0439c23b | 13390 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 13391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0346c964 | 13392 | result = (wxSound *)new_wxSound(arg1); |
d55e5bfc RD |
13393 | |
13394 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13395 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13396 | } |
13397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
13398 | return resultobj; | |
13399 | fail: | |
13400 | return NULL; | |
13401 | } | |
13402 | ||
13403 | ||
c370783e | 13404 | static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13405 | PyObject *resultobj; |
13406 | wxSound *arg1 = (wxSound *) 0 ; | |
13407 | PyObject * obj0 = 0 ; | |
13408 | char *kwnames[] = { | |
13409 | (char *) "self", NULL | |
13410 | }; | |
13411 | ||
13412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13413 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
13414 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13415 | { |
13416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13417 | delete arg1; | |
13418 | ||
13419 | wxPyEndAllowThreads(__tstate); | |
13420 | if (PyErr_Occurred()) SWIG_fail; | |
13421 | } | |
13422 | Py_INCREF(Py_None); resultobj = Py_None; | |
13423 | return resultobj; | |
13424 | fail: | |
13425 | return NULL; | |
13426 | } | |
13427 | ||
13428 | ||
c370783e | 13429 | static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13430 | PyObject *resultobj; |
13431 | wxSound *arg1 = (wxSound *) 0 ; | |
13432 | wxString *arg2 = 0 ; | |
d55e5bfc | 13433 | bool result; |
b411df4a | 13434 | bool temp2 = false ; |
d55e5bfc RD |
13435 | PyObject * obj0 = 0 ; |
13436 | PyObject * obj1 = 0 ; | |
0346c964 RD |
13437 | char *kwnames[] = { |
13438 | (char *) "self",(char *) "fileName", NULL | |
13439 | }; | |
d55e5bfc | 13440 | |
0346c964 | 13441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
13442 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
13443 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13444 | { |
13445 | arg2 = wxString_in_helper(obj1); | |
13446 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13447 | temp2 = true; |
d55e5bfc | 13448 | } |
d55e5bfc RD |
13449 | { |
13450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0346c964 | 13451 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d55e5bfc RD |
13452 | |
13453 | wxPyEndAllowThreads(__tstate); | |
13454 | if (PyErr_Occurred()) SWIG_fail; | |
13455 | } | |
13456 | { | |
13457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13458 | } | |
13459 | { | |
13460 | if (temp2) | |
13461 | delete arg2; | |
13462 | } | |
13463 | return resultobj; | |
13464 | fail: | |
13465 | { | |
13466 | if (temp2) | |
13467 | delete arg2; | |
13468 | } | |
13469 | return NULL; | |
13470 | } | |
13471 | ||
13472 | ||
c370783e | 13473 | static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13474 | PyObject *resultobj; |
13475 | wxSound *arg1 = (wxSound *) 0 ; | |
0346c964 | 13476 | PyObject *arg2 = (PyObject *) 0 ; |
d55e5bfc RD |
13477 | bool result; |
13478 | PyObject * obj0 = 0 ; | |
13479 | PyObject * obj1 = 0 ; | |
0346c964 RD |
13480 | char *kwnames[] = { |
13481 | (char *) "self",(char *) "data", NULL | |
13482 | }; | |
d55e5bfc | 13483 | |
0346c964 | 13484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
13485 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
13486 | if (SWIG_arg_fail(1)) SWIG_fail; | |
0346c964 | 13487 | arg2 = obj1; |
d55e5bfc RD |
13488 | { |
13489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0346c964 | 13490 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
d55e5bfc RD |
13491 | |
13492 | wxPyEndAllowThreads(__tstate); | |
13493 | if (PyErr_Occurred()) SWIG_fail; | |
13494 | } | |
13495 | { | |
13496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13497 | } | |
13498 | return resultobj; | |
13499 | fail: | |
13500 | return NULL; | |
13501 | } | |
13502 | ||
13503 | ||
c370783e | 13504 | static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13505 | PyObject *resultobj; |
13506 | wxSound *arg1 = (wxSound *) 0 ; | |
13507 | bool result; | |
13508 | PyObject * obj0 = 0 ; | |
13509 | char *kwnames[] = { | |
13510 | (char *) "self", NULL | |
13511 | }; | |
13512 | ||
13513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13514 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
13515 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13516 | { |
13517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13518 | result = (bool)(arg1)->IsOk(); | |
13519 | ||
13520 | wxPyEndAllowThreads(__tstate); | |
13521 | if (PyErr_Occurred()) SWIG_fail; | |
13522 | } | |
13523 | { | |
13524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13525 | } | |
13526 | return resultobj; | |
13527 | fail: | |
13528 | return NULL; | |
13529 | } | |
13530 | ||
13531 | ||
c370783e | 13532 | static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13533 | PyObject *resultobj; |
13534 | wxSound *arg1 = (wxSound *) 0 ; | |
13535 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
13536 | bool result; | |
13537 | PyObject * obj0 = 0 ; | |
13538 | PyObject * obj1 = 0 ; | |
0346c964 RD |
13539 | char *kwnames[] = { |
13540 | (char *) "self",(char *) "flags", NULL | |
13541 | }; | |
d55e5bfc | 13542 | |
0346c964 | 13543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
13544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
13545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13546 | if (obj1) { |
36ed4f51 RD |
13547 | { |
13548 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
13549 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13550 | } | |
d55e5bfc RD |
13551 | } |
13552 | { | |
0439c23b | 13553 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13555 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
13556 | ||
13557 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13558 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13559 | } |
13560 | { | |
13561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13562 | } | |
13563 | return resultobj; | |
13564 | fail: | |
13565 | return NULL; | |
13566 | } | |
13567 | ||
13568 | ||
c370783e | 13569 | static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13570 | PyObject *resultobj; |
13571 | wxString *arg1 = 0 ; | |
13572 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
13573 | bool result; | |
b411df4a | 13574 | bool temp1 = false ; |
d55e5bfc RD |
13575 | PyObject * obj0 = 0 ; |
13576 | PyObject * obj1 = 0 ; | |
0346c964 RD |
13577 | char *kwnames[] = { |
13578 | (char *) "filename",(char *) "flags", NULL | |
13579 | }; | |
d55e5bfc | 13580 | |
0346c964 | 13581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
13582 | { |
13583 | arg1 = wxString_in_helper(obj0); | |
13584 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 13585 | temp1 = true; |
d55e5bfc RD |
13586 | } |
13587 | if (obj1) { | |
36ed4f51 RD |
13588 | { |
13589 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
13590 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13591 | } | |
d55e5bfc RD |
13592 | } |
13593 | { | |
0439c23b | 13594 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13596 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
13597 | ||
13598 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13599 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13600 | } |
13601 | { | |
13602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13603 | } | |
13604 | { | |
13605 | if (temp1) | |
13606 | delete arg1; | |
13607 | } | |
13608 | return resultobj; | |
13609 | fail: | |
13610 | { | |
13611 | if (temp1) | |
13612 | delete arg1; | |
13613 | } | |
13614 | return NULL; | |
13615 | } | |
13616 | ||
13617 | ||
c370783e | 13618 | static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13619 | PyObject *resultobj; |
13620 | char *kwnames[] = { | |
13621 | NULL | |
13622 | }; | |
13623 | ||
13624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
13625 | { | |
0439c23b | 13626 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 13627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
fef4c27a | 13628 | wxSound::Stop(); |
d55e5bfc RD |
13629 | |
13630 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13631 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13632 | } |
13633 | Py_INCREF(Py_None); resultobj = Py_None; | |
13634 | return resultobj; | |
13635 | fail: | |
13636 | return NULL; | |
13637 | } | |
13638 | ||
13639 | ||
c370783e | 13640 | static PyObject * Sound_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13641 | PyObject *obj; |
13642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13643 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
13644 | Py_INCREF(obj); | |
13645 | return Py_BuildValue((char *)""); | |
13646 | } | |
c370783e | 13647 | static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13648 | PyObject *resultobj; |
13649 | wxString *arg1 = 0 ; | |
13650 | wxString *arg2 = 0 ; | |
13651 | wxString *arg3 = 0 ; | |
13652 | wxString *arg4 = 0 ; | |
13653 | wxFileTypeInfo *result; | |
b411df4a RD |
13654 | bool temp1 = false ; |
13655 | bool temp2 = false ; | |
13656 | bool temp3 = false ; | |
13657 | bool temp4 = false ; | |
d55e5bfc RD |
13658 | PyObject * obj0 = 0 ; |
13659 | PyObject * obj1 = 0 ; | |
13660 | PyObject * obj2 = 0 ; | |
13661 | PyObject * obj3 = 0 ; | |
13662 | char *kwnames[] = { | |
13663 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
13664 | }; | |
13665 | ||
13666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13667 | { | |
13668 | arg1 = wxString_in_helper(obj0); | |
13669 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 13670 | temp1 = true; |
d55e5bfc RD |
13671 | } |
13672 | { | |
13673 | arg2 = wxString_in_helper(obj1); | |
13674 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13675 | temp2 = true; |
d55e5bfc RD |
13676 | } |
13677 | { | |
13678 | arg3 = wxString_in_helper(obj2); | |
13679 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13680 | temp3 = true; |
d55e5bfc RD |
13681 | } |
13682 | { | |
13683 | arg4 = wxString_in_helper(obj3); | |
13684 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 13685 | temp4 = true; |
d55e5bfc RD |
13686 | } |
13687 | { | |
13688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13689 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
13690 | ||
13691 | wxPyEndAllowThreads(__tstate); | |
13692 | if (PyErr_Occurred()) SWIG_fail; | |
13693 | } | |
13694 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
13695 | { | |
13696 | if (temp1) | |
13697 | delete arg1; | |
13698 | } | |
13699 | { | |
13700 | if (temp2) | |
13701 | delete arg2; | |
13702 | } | |
13703 | { | |
13704 | if (temp3) | |
13705 | delete arg3; | |
13706 | } | |
13707 | { | |
13708 | if (temp4) | |
13709 | delete arg4; | |
13710 | } | |
13711 | return resultobj; | |
13712 | fail: | |
13713 | { | |
13714 | if (temp1) | |
13715 | delete arg1; | |
13716 | } | |
13717 | { | |
13718 | if (temp2) | |
13719 | delete arg2; | |
13720 | } | |
13721 | { | |
13722 | if (temp3) | |
13723 | delete arg3; | |
13724 | } | |
13725 | { | |
13726 | if (temp4) | |
13727 | delete arg4; | |
13728 | } | |
13729 | return NULL; | |
13730 | } | |
13731 | ||
13732 | ||
c370783e | 13733 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13734 | PyObject *resultobj; |
13735 | wxArrayString *arg1 = 0 ; | |
13736 | wxFileTypeInfo *result; | |
b411df4a | 13737 | bool temp1 = false ; |
d55e5bfc RD |
13738 | PyObject * obj0 = 0 ; |
13739 | char *kwnames[] = { | |
13740 | (char *) "sArray", NULL | |
13741 | }; | |
13742 | ||
13743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
13744 | { | |
13745 | if (! PySequence_Check(obj0)) { | |
13746 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13747 | SWIG_fail; | |
13748 | } | |
13749 | arg1 = new wxArrayString; | |
b411df4a | 13750 | temp1 = true; |
d55e5bfc RD |
13751 | int i, len=PySequence_Length(obj0); |
13752 | for (i=0; i<len; i++) { | |
13753 | PyObject* item = PySequence_GetItem(obj0, i); | |
13754 | #if wxUSE_UNICODE | |
13755 | PyObject* str = PyObject_Unicode(item); | |
13756 | #else | |
13757 | PyObject* str = PyObject_Str(item); | |
13758 | #endif | |
13759 | if (PyErr_Occurred()) SWIG_fail; | |
13760 | arg1->Add(Py2wxString(str)); | |
13761 | Py_DECREF(item); | |
13762 | Py_DECREF(str); | |
13763 | } | |
13764 | } | |
13765 | { | |
13766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13767 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
13768 | ||
13769 | wxPyEndAllowThreads(__tstate); | |
13770 | if (PyErr_Occurred()) SWIG_fail; | |
13771 | } | |
13772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
13773 | { | |
13774 | if (temp1) delete arg1; | |
13775 | } | |
13776 | return resultobj; | |
13777 | fail: | |
13778 | { | |
13779 | if (temp1) delete arg1; | |
13780 | } | |
13781 | return NULL; | |
13782 | } | |
13783 | ||
13784 | ||
c370783e | 13785 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13786 | PyObject *resultobj; |
13787 | wxFileTypeInfo *result; | |
13788 | char *kwnames[] = { | |
13789 | NULL | |
13790 | }; | |
13791 | ||
13792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
13793 | { | |
13794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13795 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
13796 | ||
13797 | wxPyEndAllowThreads(__tstate); | |
13798 | if (PyErr_Occurred()) SWIG_fail; | |
13799 | } | |
13800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
13801 | return resultobj; | |
13802 | fail: | |
13803 | return NULL; | |
13804 | } | |
13805 | ||
13806 | ||
c370783e | 13807 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13808 | PyObject *resultobj; |
13809 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
13810 | bool result; | |
13811 | PyObject * obj0 = 0 ; | |
13812 | char *kwnames[] = { | |
13813 | (char *) "self", NULL | |
13814 | }; | |
13815 | ||
13816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
13818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13819 | { |
13820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13821 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
13822 | ||
13823 | wxPyEndAllowThreads(__tstate); | |
13824 | if (PyErr_Occurred()) SWIG_fail; | |
13825 | } | |
13826 | { | |
13827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13828 | } | |
13829 | return resultobj; | |
13830 | fail: | |
13831 | return NULL; | |
13832 | } | |
13833 | ||
13834 | ||
c370783e | 13835 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13836 | PyObject *resultobj; |
13837 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
13838 | wxString *arg2 = 0 ; | |
13839 | int arg3 = (int) 0 ; | |
b411df4a | 13840 | bool temp2 = false ; |
d55e5bfc RD |
13841 | PyObject * obj0 = 0 ; |
13842 | PyObject * obj1 = 0 ; | |
13843 | PyObject * obj2 = 0 ; | |
13844 | char *kwnames[] = { | |
13845 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
13846 | }; | |
13847 | ||
13848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
13849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
13850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13851 | { |
13852 | arg2 = wxString_in_helper(obj1); | |
13853 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13854 | temp2 = true; |
d55e5bfc RD |
13855 | } |
13856 | if (obj2) { | |
36ed4f51 RD |
13857 | { |
13858 | arg3 = (int)(SWIG_As_int(obj2)); | |
13859 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13860 | } | |
d55e5bfc RD |
13861 | } |
13862 | { | |
13863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13864 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
13865 | ||
13866 | wxPyEndAllowThreads(__tstate); | |
13867 | if (PyErr_Occurred()) SWIG_fail; | |
13868 | } | |
13869 | Py_INCREF(Py_None); resultobj = Py_None; | |
13870 | { | |
13871 | if (temp2) | |
13872 | delete arg2; | |
13873 | } | |
13874 | return resultobj; | |
13875 | fail: | |
13876 | { | |
13877 | if (temp2) | |
13878 | delete arg2; | |
13879 | } | |
13880 | return NULL; | |
13881 | } | |
13882 | ||
13883 | ||
c370783e | 13884 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13885 | PyObject *resultobj; |
13886 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
13887 | wxString *arg2 = 0 ; | |
b411df4a | 13888 | bool temp2 = false ; |
d55e5bfc RD |
13889 | PyObject * obj0 = 0 ; |
13890 | PyObject * obj1 = 0 ; | |
13891 | char *kwnames[] = { | |
13892 | (char *) "self",(char *) "shortDesc", NULL | |
13893 | }; | |
13894 | ||
13895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13896 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
13897 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13898 | { |
13899 | arg2 = wxString_in_helper(obj1); | |
13900 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13901 | temp2 = true; |
d55e5bfc RD |
13902 | } |
13903 | { | |
13904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13905 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
13906 | ||
13907 | wxPyEndAllowThreads(__tstate); | |
13908 | if (PyErr_Occurred()) SWIG_fail; | |
13909 | } | |
13910 | Py_INCREF(Py_None); resultobj = Py_None; | |
13911 | { | |
13912 | if (temp2) | |
13913 | delete arg2; | |
13914 | } | |
13915 | return resultobj; | |
13916 | fail: | |
13917 | { | |
13918 | if (temp2) | |
13919 | delete arg2; | |
13920 | } | |
13921 | return NULL; | |
13922 | } | |
13923 | ||
13924 | ||
c370783e | 13925 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13926 | PyObject *resultobj; |
13927 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
13928 | wxString *result; | |
13929 | PyObject * obj0 = 0 ; | |
13930 | char *kwnames[] = { | |
13931 | (char *) "self", NULL | |
13932 | }; | |
13933 | ||
13934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13935 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
13936 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13937 | { |
13938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13939 | { | |
13940 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
13941 | result = (wxString *) &_result_ref; | |
13942 | } | |
13943 | ||
13944 | wxPyEndAllowThreads(__tstate); | |
13945 | if (PyErr_Occurred()) SWIG_fail; | |
13946 | } | |
13947 | { | |
13948 | #if wxUSE_UNICODE | |
13949 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13950 | #else | |
13951 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13952 | #endif | |
13953 | } | |
13954 | return resultobj; | |
13955 | fail: | |
13956 | return NULL; | |
13957 | } | |
13958 | ||
13959 | ||
c370783e | 13960 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13961 | PyObject *resultobj; |
13962 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
13963 | wxString *result; | |
13964 | PyObject * obj0 = 0 ; | |
13965 | char *kwnames[] = { | |
13966 | (char *) "self", NULL | |
13967 | }; | |
13968 | ||
13969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
13971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13972 | { |
13973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13974 | { | |
13975 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
13976 | result = (wxString *) &_result_ref; | |
13977 | } | |
13978 | ||
13979 | wxPyEndAllowThreads(__tstate); | |
13980 | if (PyErr_Occurred()) SWIG_fail; | |
13981 | } | |
13982 | { | |
13983 | #if wxUSE_UNICODE | |
13984 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13985 | #else | |
13986 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13987 | #endif | |
13988 | } | |
13989 | return resultobj; | |
13990 | fail: | |
13991 | return NULL; | |
13992 | } | |
13993 | ||
13994 | ||
c370783e | 13995 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13996 | PyObject *resultobj; |
13997 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
13998 | wxString *result; | |
13999 | PyObject * obj0 = 0 ; | |
14000 | char *kwnames[] = { | |
14001 | (char *) "self", NULL | |
14002 | }; | |
14003 | ||
14004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14005 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14006 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14007 | { |
14008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14009 | { | |
14010 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
14011 | result = (wxString *) &_result_ref; | |
14012 | } | |
14013 | ||
14014 | wxPyEndAllowThreads(__tstate); | |
14015 | if (PyErr_Occurred()) SWIG_fail; | |
14016 | } | |
14017 | { | |
14018 | #if wxUSE_UNICODE | |
14019 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14020 | #else | |
14021 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14022 | #endif | |
14023 | } | |
14024 | return resultobj; | |
14025 | fail: | |
14026 | return NULL; | |
14027 | } | |
14028 | ||
14029 | ||
c370783e | 14030 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14031 | PyObject *resultobj; |
14032 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14033 | wxString *result; | |
14034 | PyObject * obj0 = 0 ; | |
14035 | char *kwnames[] = { | |
14036 | (char *) "self", NULL | |
14037 | }; | |
14038 | ||
14039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14040 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14041 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14042 | { |
14043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14044 | { | |
14045 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
14046 | result = (wxString *) &_result_ref; | |
14047 | } | |
14048 | ||
14049 | wxPyEndAllowThreads(__tstate); | |
14050 | if (PyErr_Occurred()) SWIG_fail; | |
14051 | } | |
14052 | { | |
14053 | #if wxUSE_UNICODE | |
14054 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14055 | #else | |
14056 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14057 | #endif | |
14058 | } | |
14059 | return resultobj; | |
14060 | fail: | |
14061 | return NULL; | |
14062 | } | |
14063 | ||
14064 | ||
c370783e | 14065 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14066 | PyObject *resultobj; |
14067 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14068 | wxString *result; | |
14069 | PyObject * obj0 = 0 ; | |
14070 | char *kwnames[] = { | |
14071 | (char *) "self", NULL | |
14072 | }; | |
14073 | ||
14074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14077 | { |
14078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14079 | { | |
14080 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
14081 | result = (wxString *) &_result_ref; | |
14082 | } | |
14083 | ||
14084 | wxPyEndAllowThreads(__tstate); | |
14085 | if (PyErr_Occurred()) SWIG_fail; | |
14086 | } | |
14087 | { | |
14088 | #if wxUSE_UNICODE | |
14089 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14090 | #else | |
14091 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14092 | #endif | |
14093 | } | |
14094 | return resultobj; | |
14095 | fail: | |
14096 | return NULL; | |
14097 | } | |
14098 | ||
14099 | ||
c370783e | 14100 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14101 | PyObject *resultobj; |
14102 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14103 | wxArrayString *result; | |
14104 | PyObject * obj0 = 0 ; | |
14105 | char *kwnames[] = { | |
14106 | (char *) "self", NULL | |
14107 | }; | |
14108 | ||
14109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14112 | { |
14113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14114 | { | |
14115 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
14116 | result = (wxArrayString *) &_result_ref; | |
14117 | } | |
14118 | ||
14119 | wxPyEndAllowThreads(__tstate); | |
14120 | if (PyErr_Occurred()) SWIG_fail; | |
14121 | } | |
14122 | { | |
14123 | resultobj = wxArrayString2PyList_helper(*result); | |
14124 | } | |
14125 | return resultobj; | |
14126 | fail: | |
14127 | return NULL; | |
14128 | } | |
14129 | ||
14130 | ||
c370783e | 14131 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14132 | PyObject *resultobj; |
14133 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14134 | int result; | |
14135 | PyObject * obj0 = 0 ; | |
14136 | char *kwnames[] = { | |
14137 | (char *) "self", NULL | |
14138 | }; | |
14139 | ||
14140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14141 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14142 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14143 | { |
14144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14145 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
14146 | ||
14147 | wxPyEndAllowThreads(__tstate); | |
14148 | if (PyErr_Occurred()) SWIG_fail; | |
14149 | } | |
36ed4f51 RD |
14150 | { |
14151 | resultobj = SWIG_From_int((int)(result)); | |
14152 | } | |
d55e5bfc RD |
14153 | return resultobj; |
14154 | fail: | |
14155 | return NULL; | |
14156 | } | |
14157 | ||
14158 | ||
c370783e | 14159 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14160 | PyObject *resultobj; |
14161 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14162 | wxString *result; | |
14163 | PyObject * obj0 = 0 ; | |
14164 | char *kwnames[] = { | |
14165 | (char *) "self", NULL | |
14166 | }; | |
14167 | ||
14168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14171 | { |
14172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14173 | { | |
14174 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
14175 | result = (wxString *) &_result_ref; | |
14176 | } | |
14177 | ||
14178 | wxPyEndAllowThreads(__tstate); | |
14179 | if (PyErr_Occurred()) SWIG_fail; | |
14180 | } | |
14181 | { | |
14182 | #if wxUSE_UNICODE | |
14183 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14184 | #else | |
14185 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14186 | #endif | |
14187 | } | |
14188 | return resultobj; | |
14189 | fail: | |
14190 | return NULL; | |
14191 | } | |
14192 | ||
14193 | ||
c370783e | 14194 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14195 | PyObject *resultobj; |
14196 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14197 | int result; | |
14198 | PyObject * obj0 = 0 ; | |
14199 | char *kwnames[] = { | |
14200 | (char *) "self", NULL | |
14201 | }; | |
14202 | ||
14203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14204 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14205 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14206 | { |
14207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14208 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
14209 | ||
14210 | wxPyEndAllowThreads(__tstate); | |
14211 | if (PyErr_Occurred()) SWIG_fail; | |
14212 | } | |
36ed4f51 RD |
14213 | { |
14214 | resultobj = SWIG_From_int((int)(result)); | |
14215 | } | |
d55e5bfc RD |
14216 | return resultobj; |
14217 | fail: | |
14218 | return NULL; | |
14219 | } | |
14220 | ||
14221 | ||
c370783e | 14222 | static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14223 | PyObject *obj; |
14224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14225 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
14226 | Py_INCREF(obj); | |
14227 | return Py_BuildValue((char *)""); | |
14228 | } | |
c370783e | 14229 | static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14230 | PyObject *resultobj; |
14231 | wxFileTypeInfo *arg1 = 0 ; | |
14232 | wxFileType *result; | |
14233 | PyObject * obj0 = 0 ; | |
14234 | char *kwnames[] = { | |
14235 | (char *) "ftInfo", NULL | |
14236 | }; | |
14237 | ||
14238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14239 | { |
14240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
14241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14242 | if (arg1 == NULL) { | |
14243 | SWIG_null_ref("wxFileTypeInfo"); | |
14244 | } | |
14245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14246 | } |
14247 | { | |
14248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14249 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
14250 | ||
14251 | wxPyEndAllowThreads(__tstate); | |
14252 | if (PyErr_Occurred()) SWIG_fail; | |
14253 | } | |
14254 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
14255 | return resultobj; | |
14256 | fail: | |
14257 | return NULL; | |
14258 | } | |
14259 | ||
14260 | ||
c370783e | 14261 | static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14262 | PyObject *resultobj; |
14263 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14264 | PyObject * obj0 = 0 ; | |
14265 | char *kwnames[] = { | |
14266 | (char *) "self", NULL | |
14267 | }; | |
14268 | ||
14269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14272 | { |
14273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14274 | delete arg1; | |
14275 | ||
14276 | wxPyEndAllowThreads(__tstate); | |
14277 | if (PyErr_Occurred()) SWIG_fail; | |
14278 | } | |
14279 | Py_INCREF(Py_None); resultobj = Py_None; | |
14280 | return resultobj; | |
14281 | fail: | |
14282 | return NULL; | |
14283 | } | |
14284 | ||
14285 | ||
c370783e | 14286 | static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14287 | PyObject *resultobj; |
14288 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14289 | PyObject *result; | |
14290 | PyObject * obj0 = 0 ; | |
14291 | char *kwnames[] = { | |
14292 | (char *) "self", NULL | |
14293 | }; | |
14294 | ||
14295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14298 | { |
14299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14300 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
14301 | ||
14302 | wxPyEndAllowThreads(__tstate); | |
14303 | if (PyErr_Occurred()) SWIG_fail; | |
14304 | } | |
14305 | resultobj = result; | |
14306 | return resultobj; | |
14307 | fail: | |
14308 | return NULL; | |
14309 | } | |
14310 | ||
14311 | ||
c370783e | 14312 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14313 | PyObject *resultobj; |
14314 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14315 | PyObject *result; | |
14316 | PyObject * obj0 = 0 ; | |
14317 | char *kwnames[] = { | |
14318 | (char *) "self", NULL | |
14319 | }; | |
14320 | ||
14321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14322 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14323 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14324 | { |
14325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14326 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
14327 | ||
14328 | wxPyEndAllowThreads(__tstate); | |
14329 | if (PyErr_Occurred()) SWIG_fail; | |
14330 | } | |
14331 | resultobj = result; | |
14332 | return resultobj; | |
14333 | fail: | |
14334 | return NULL; | |
14335 | } | |
14336 | ||
14337 | ||
c370783e | 14338 | static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14339 | PyObject *resultobj; |
14340 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14341 | PyObject *result; | |
14342 | PyObject * obj0 = 0 ; | |
14343 | char *kwnames[] = { | |
14344 | (char *) "self", NULL | |
14345 | }; | |
14346 | ||
14347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14348 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14349 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14350 | { |
14351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14352 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
14353 | ||
14354 | wxPyEndAllowThreads(__tstate); | |
14355 | if (PyErr_Occurred()) SWIG_fail; | |
14356 | } | |
14357 | resultobj = result; | |
14358 | return resultobj; | |
14359 | fail: | |
14360 | return NULL; | |
14361 | } | |
14362 | ||
14363 | ||
c370783e | 14364 | static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14365 | PyObject *resultobj; |
14366 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14367 | wxIcon *result; | |
14368 | PyObject * obj0 = 0 ; | |
14369 | char *kwnames[] = { | |
14370 | (char *) "self", NULL | |
14371 | }; | |
14372 | ||
14373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14376 | { |
14377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14378 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
14379 | ||
14380 | wxPyEndAllowThreads(__tstate); | |
14381 | if (PyErr_Occurred()) SWIG_fail; | |
14382 | } | |
14383 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
14384 | return resultobj; | |
14385 | fail: | |
14386 | return NULL; | |
14387 | } | |
14388 | ||
14389 | ||
c370783e | 14390 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14391 | PyObject *resultobj; |
14392 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14393 | PyObject *result; | |
14394 | PyObject * obj0 = 0 ; | |
14395 | char *kwnames[] = { | |
14396 | (char *) "self", NULL | |
14397 | }; | |
14398 | ||
14399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14402 | { |
14403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14404 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
14405 | ||
14406 | wxPyEndAllowThreads(__tstate); | |
14407 | if (PyErr_Occurred()) SWIG_fail; | |
14408 | } | |
14409 | resultobj = result; | |
14410 | return resultobj; | |
14411 | fail: | |
14412 | return NULL; | |
14413 | } | |
14414 | ||
14415 | ||
c370783e | 14416 | static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14417 | PyObject *resultobj; |
14418 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14419 | PyObject *result; | |
14420 | PyObject * obj0 = 0 ; | |
14421 | char *kwnames[] = { | |
14422 | (char *) "self", NULL | |
14423 | }; | |
14424 | ||
14425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14428 | { |
14429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14430 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
14431 | ||
14432 | wxPyEndAllowThreads(__tstate); | |
14433 | if (PyErr_Occurred()) SWIG_fail; | |
14434 | } | |
14435 | resultobj = result; | |
14436 | return resultobj; | |
14437 | fail: | |
14438 | return NULL; | |
14439 | } | |
14440 | ||
14441 | ||
c370783e | 14442 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14443 | PyObject *resultobj; |
14444 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14445 | wxString *arg2 = 0 ; | |
14446 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14447 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14448 | PyObject *result; | |
b411df4a RD |
14449 | bool temp2 = false ; |
14450 | bool temp3 = false ; | |
d55e5bfc RD |
14451 | PyObject * obj0 = 0 ; |
14452 | PyObject * obj1 = 0 ; | |
14453 | PyObject * obj2 = 0 ; | |
14454 | char *kwnames[] = { | |
14455 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
14456 | }; | |
14457 | ||
14458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
14459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14461 | { |
14462 | arg2 = wxString_in_helper(obj1); | |
14463 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14464 | temp2 = true; |
d55e5bfc RD |
14465 | } |
14466 | if (obj2) { | |
14467 | { | |
14468 | arg3 = wxString_in_helper(obj2); | |
14469 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 14470 | temp3 = true; |
d55e5bfc RD |
14471 | } |
14472 | } | |
14473 | { | |
14474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14475 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
14476 | ||
14477 | wxPyEndAllowThreads(__tstate); | |
14478 | if (PyErr_Occurred()) SWIG_fail; | |
14479 | } | |
14480 | resultobj = result; | |
14481 | { | |
14482 | if (temp2) | |
14483 | delete arg2; | |
14484 | } | |
14485 | { | |
14486 | if (temp3) | |
14487 | delete arg3; | |
14488 | } | |
14489 | return resultobj; | |
14490 | fail: | |
14491 | { | |
14492 | if (temp2) | |
14493 | delete arg2; | |
14494 | } | |
14495 | { | |
14496 | if (temp3) | |
14497 | delete arg3; | |
14498 | } | |
14499 | return NULL; | |
14500 | } | |
14501 | ||
14502 | ||
c370783e | 14503 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14504 | PyObject *resultobj; |
14505 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14506 | wxString *arg2 = 0 ; | |
14507 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14508 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14509 | PyObject *result; | |
b411df4a RD |
14510 | bool temp2 = false ; |
14511 | bool temp3 = false ; | |
d55e5bfc RD |
14512 | PyObject * obj0 = 0 ; |
14513 | PyObject * obj1 = 0 ; | |
14514 | PyObject * obj2 = 0 ; | |
14515 | char *kwnames[] = { | |
14516 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
14517 | }; | |
14518 | ||
14519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
14520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14522 | { |
14523 | arg2 = wxString_in_helper(obj1); | |
14524 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14525 | temp2 = true; |
d55e5bfc RD |
14526 | } |
14527 | if (obj2) { | |
14528 | { | |
14529 | arg3 = wxString_in_helper(obj2); | |
14530 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 14531 | temp3 = true; |
d55e5bfc RD |
14532 | } |
14533 | } | |
14534 | { | |
14535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14536 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
14537 | ||
14538 | wxPyEndAllowThreads(__tstate); | |
14539 | if (PyErr_Occurred()) SWIG_fail; | |
14540 | } | |
14541 | resultobj = result; | |
14542 | { | |
14543 | if (temp2) | |
14544 | delete arg2; | |
14545 | } | |
14546 | { | |
14547 | if (temp3) | |
14548 | delete arg3; | |
14549 | } | |
14550 | return resultobj; | |
14551 | fail: | |
14552 | { | |
14553 | if (temp2) | |
14554 | delete arg2; | |
14555 | } | |
14556 | { | |
14557 | if (temp3) | |
14558 | delete arg3; | |
14559 | } | |
14560 | return NULL; | |
14561 | } | |
14562 | ||
14563 | ||
c370783e | 14564 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14565 | PyObject *resultobj; |
14566 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14567 | wxString *arg2 = 0 ; | |
14568 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14569 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14570 | PyObject *result; | |
b411df4a RD |
14571 | bool temp2 = false ; |
14572 | bool temp3 = false ; | |
d55e5bfc RD |
14573 | PyObject * obj0 = 0 ; |
14574 | PyObject * obj1 = 0 ; | |
14575 | PyObject * obj2 = 0 ; | |
14576 | char *kwnames[] = { | |
14577 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
14578 | }; | |
14579 | ||
14580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
14581 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14582 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14583 | { |
14584 | arg2 = wxString_in_helper(obj1); | |
14585 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14586 | temp2 = true; |
d55e5bfc RD |
14587 | } |
14588 | if (obj2) { | |
14589 | { | |
14590 | arg3 = wxString_in_helper(obj2); | |
14591 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 14592 | temp3 = true; |
d55e5bfc RD |
14593 | } |
14594 | } | |
14595 | { | |
14596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14597 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
14598 | ||
14599 | wxPyEndAllowThreads(__tstate); | |
14600 | if (PyErr_Occurred()) SWIG_fail; | |
14601 | } | |
14602 | resultobj = result; | |
14603 | { | |
14604 | if (temp2) | |
14605 | delete arg2; | |
14606 | } | |
14607 | { | |
14608 | if (temp3) | |
14609 | delete arg3; | |
14610 | } | |
14611 | return resultobj; | |
14612 | fail: | |
14613 | { | |
14614 | if (temp2) | |
14615 | delete arg2; | |
14616 | } | |
14617 | { | |
14618 | if (temp3) | |
14619 | delete arg3; | |
14620 | } | |
14621 | return NULL; | |
14622 | } | |
14623 | ||
14624 | ||
c370783e | 14625 | static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14626 | PyObject *resultobj; |
14627 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14628 | wxString *arg2 = 0 ; | |
14629 | wxString *arg3 = 0 ; | |
b411df4a | 14630 | bool arg4 = (bool) true ; |
d55e5bfc | 14631 | bool result; |
b411df4a RD |
14632 | bool temp2 = false ; |
14633 | bool temp3 = false ; | |
d55e5bfc RD |
14634 | PyObject * obj0 = 0 ; |
14635 | PyObject * obj1 = 0 ; | |
14636 | PyObject * obj2 = 0 ; | |
14637 | PyObject * obj3 = 0 ; | |
14638 | char *kwnames[] = { | |
14639 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
14640 | }; | |
14641 | ||
14642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
14643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14645 | { |
14646 | arg2 = wxString_in_helper(obj1); | |
14647 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14648 | temp2 = true; |
d55e5bfc RD |
14649 | } |
14650 | { | |
14651 | arg3 = wxString_in_helper(obj2); | |
14652 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 14653 | temp3 = true; |
d55e5bfc RD |
14654 | } |
14655 | if (obj3) { | |
36ed4f51 RD |
14656 | { |
14657 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
14658 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14659 | } | |
d55e5bfc RD |
14660 | } |
14661 | { | |
14662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14663 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
14664 | ||
14665 | wxPyEndAllowThreads(__tstate); | |
14666 | if (PyErr_Occurred()) SWIG_fail; | |
14667 | } | |
14668 | { | |
14669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14670 | } | |
14671 | { | |
14672 | if (temp2) | |
14673 | delete arg2; | |
14674 | } | |
14675 | { | |
14676 | if (temp3) | |
14677 | delete arg3; | |
14678 | } | |
14679 | return resultobj; | |
14680 | fail: | |
14681 | { | |
14682 | if (temp2) | |
14683 | delete arg2; | |
14684 | } | |
14685 | { | |
14686 | if (temp3) | |
14687 | delete arg3; | |
14688 | } | |
14689 | return NULL; | |
14690 | } | |
14691 | ||
14692 | ||
c370783e | 14693 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14694 | PyObject *resultobj; |
14695 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14696 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
14697 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14698 | int arg3 = (int) 0 ; | |
14699 | bool result; | |
b411df4a | 14700 | bool temp2 = false ; |
d55e5bfc RD |
14701 | PyObject * obj0 = 0 ; |
14702 | PyObject * obj1 = 0 ; | |
14703 | PyObject * obj2 = 0 ; | |
14704 | char *kwnames[] = { | |
14705 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
14706 | }; | |
14707 | ||
14708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
14709 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14710 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14711 | if (obj1) { |
14712 | { | |
14713 | arg2 = wxString_in_helper(obj1); | |
14714 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14715 | temp2 = true; |
d55e5bfc RD |
14716 | } |
14717 | } | |
14718 | if (obj2) { | |
36ed4f51 RD |
14719 | { |
14720 | arg3 = (int)(SWIG_As_int(obj2)); | |
14721 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14722 | } | |
d55e5bfc RD |
14723 | } |
14724 | { | |
14725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14726 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
14727 | ||
14728 | wxPyEndAllowThreads(__tstate); | |
14729 | if (PyErr_Occurred()) SWIG_fail; | |
14730 | } | |
14731 | { | |
14732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14733 | } | |
14734 | { | |
14735 | if (temp2) | |
14736 | delete arg2; | |
14737 | } | |
14738 | return resultobj; | |
14739 | fail: | |
14740 | { | |
14741 | if (temp2) | |
14742 | delete arg2; | |
14743 | } | |
14744 | return NULL; | |
14745 | } | |
14746 | ||
14747 | ||
c370783e | 14748 | static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14749 | PyObject *resultobj; |
14750 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14751 | bool result; | |
14752 | PyObject * obj0 = 0 ; | |
14753 | char *kwnames[] = { | |
14754 | (char *) "self", NULL | |
14755 | }; | |
14756 | ||
14757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14758 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14759 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14760 | { |
14761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14762 | result = (bool)(arg1)->Unassociate(); | |
14763 | ||
14764 | wxPyEndAllowThreads(__tstate); | |
14765 | if (PyErr_Occurred()) SWIG_fail; | |
14766 | } | |
14767 | { | |
14768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14769 | } | |
14770 | return resultobj; | |
14771 | fail: | |
14772 | return NULL; | |
14773 | } | |
14774 | ||
14775 | ||
c370783e | 14776 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14777 | PyObject *resultobj; |
14778 | wxString *arg1 = 0 ; | |
14779 | wxString *arg2 = 0 ; | |
14780 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14781 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14782 | wxString result; | |
b411df4a RD |
14783 | bool temp1 = false ; |
14784 | bool temp2 = false ; | |
14785 | bool temp3 = false ; | |
d55e5bfc RD |
14786 | PyObject * obj0 = 0 ; |
14787 | PyObject * obj1 = 0 ; | |
14788 | PyObject * obj2 = 0 ; | |
14789 | char *kwnames[] = { | |
14790 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
14791 | }; | |
14792 | ||
14793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14794 | { | |
14795 | arg1 = wxString_in_helper(obj0); | |
14796 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 14797 | temp1 = true; |
d55e5bfc RD |
14798 | } |
14799 | { | |
14800 | arg2 = wxString_in_helper(obj1); | |
14801 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14802 | temp2 = true; |
d55e5bfc RD |
14803 | } |
14804 | if (obj2) { | |
14805 | { | |
14806 | arg3 = wxString_in_helper(obj2); | |
14807 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 14808 | temp3 = true; |
d55e5bfc RD |
14809 | } |
14810 | } | |
14811 | { | |
14812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14813 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
14814 | ||
14815 | wxPyEndAllowThreads(__tstate); | |
14816 | if (PyErr_Occurred()) SWIG_fail; | |
14817 | } | |
14818 | { | |
14819 | #if wxUSE_UNICODE | |
14820 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14821 | #else | |
14822 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14823 | #endif | |
14824 | } | |
14825 | { | |
14826 | if (temp1) | |
14827 | delete arg1; | |
14828 | } | |
14829 | { | |
14830 | if (temp2) | |
14831 | delete arg2; | |
14832 | } | |
14833 | { | |
14834 | if (temp3) | |
14835 | delete arg3; | |
14836 | } | |
14837 | return resultobj; | |
14838 | fail: | |
14839 | { | |
14840 | if (temp1) | |
14841 | delete arg1; | |
14842 | } | |
14843 | { | |
14844 | if (temp2) | |
14845 | delete arg2; | |
14846 | } | |
14847 | { | |
14848 | if (temp3) | |
14849 | delete arg3; | |
14850 | } | |
14851 | return NULL; | |
14852 | } | |
14853 | ||
14854 | ||
c370783e | 14855 | static PyObject * FileType_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14856 | PyObject *obj; |
14857 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14858 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
14859 | Py_INCREF(obj); | |
14860 | return Py_BuildValue((char *)""); | |
14861 | } | |
c370783e | 14862 | static int _wrap_TheMimeTypesManager_set(PyObject *) { |
d55e5bfc RD |
14863 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); |
14864 | return 1; | |
14865 | } | |
14866 | ||
14867 | ||
36ed4f51 | 14868 | static PyObject *_wrap_TheMimeTypesManager_get(void) { |
d55e5bfc RD |
14869 | PyObject *pyobj; |
14870 | ||
14871 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
14872 | return pyobj; | |
14873 | } | |
14874 | ||
14875 | ||
c370783e | 14876 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14877 | PyObject *resultobj; |
14878 | wxString *arg1 = 0 ; | |
14879 | wxString *arg2 = 0 ; | |
14880 | bool result; | |
b411df4a RD |
14881 | bool temp1 = false ; |
14882 | bool temp2 = false ; | |
d55e5bfc RD |
14883 | PyObject * obj0 = 0 ; |
14884 | PyObject * obj1 = 0 ; | |
14885 | char *kwnames[] = { | |
14886 | (char *) "mimeType",(char *) "wildcard", NULL | |
14887 | }; | |
14888 | ||
14889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
14890 | { | |
14891 | arg1 = wxString_in_helper(obj0); | |
14892 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 14893 | temp1 = true; |
d55e5bfc RD |
14894 | } |
14895 | { | |
14896 | arg2 = wxString_in_helper(obj1); | |
14897 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14898 | temp2 = true; |
d55e5bfc RD |
14899 | } |
14900 | { | |
14901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14902 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
14903 | ||
14904 | wxPyEndAllowThreads(__tstate); | |
14905 | if (PyErr_Occurred()) SWIG_fail; | |
14906 | } | |
14907 | { | |
14908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14909 | } | |
14910 | { | |
14911 | if (temp1) | |
14912 | delete arg1; | |
14913 | } | |
14914 | { | |
14915 | if (temp2) | |
14916 | delete arg2; | |
14917 | } | |
14918 | return resultobj; | |
14919 | fail: | |
14920 | { | |
14921 | if (temp1) | |
14922 | delete arg1; | |
14923 | } | |
14924 | { | |
14925 | if (temp2) | |
14926 | delete arg2; | |
14927 | } | |
14928 | return NULL; | |
14929 | } | |
14930 | ||
14931 | ||
c370783e | 14932 | static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14933 | PyObject *resultobj; |
14934 | wxMimeTypesManager *result; | |
14935 | char *kwnames[] = { | |
14936 | NULL | |
14937 | }; | |
14938 | ||
14939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
14940 | { | |
14941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14942 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
14943 | ||
14944 | wxPyEndAllowThreads(__tstate); | |
14945 | if (PyErr_Occurred()) SWIG_fail; | |
14946 | } | |
14947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
14948 | return resultobj; | |
14949 | fail: | |
14950 | return NULL; | |
14951 | } | |
14952 | ||
14953 | ||
c370783e | 14954 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14955 | PyObject *resultobj; |
14956 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
14957 | int arg2 = (int) wxMAILCAP_ALL ; | |
14958 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14959 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
b411df4a | 14960 | bool temp3 = false ; |
d55e5bfc RD |
14961 | PyObject * obj0 = 0 ; |
14962 | PyObject * obj1 = 0 ; | |
14963 | PyObject * obj2 = 0 ; | |
14964 | char *kwnames[] = { | |
14965 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
14966 | }; | |
14967 | ||
14968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
14969 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
14970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14971 | if (obj1) { |
36ed4f51 RD |
14972 | { |
14973 | arg2 = (int)(SWIG_As_int(obj1)); | |
14974 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14975 | } | |
d55e5bfc RD |
14976 | } |
14977 | if (obj2) { | |
14978 | { | |
14979 | arg3 = wxString_in_helper(obj2); | |
14980 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 14981 | temp3 = true; |
d55e5bfc RD |
14982 | } |
14983 | } | |
14984 | { | |
14985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14986 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
14987 | ||
14988 | wxPyEndAllowThreads(__tstate); | |
14989 | if (PyErr_Occurred()) SWIG_fail; | |
14990 | } | |
14991 | Py_INCREF(Py_None); resultobj = Py_None; | |
14992 | { | |
14993 | if (temp3) | |
14994 | delete arg3; | |
14995 | } | |
14996 | return resultobj; | |
14997 | fail: | |
14998 | { | |
14999 | if (temp3) | |
15000 | delete arg3; | |
15001 | } | |
15002 | return NULL; | |
15003 | } | |
15004 | ||
15005 | ||
c370783e | 15006 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15007 | PyObject *resultobj; |
15008 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15009 | PyObject * obj0 = 0 ; | |
15010 | char *kwnames[] = { | |
15011 | (char *) "self", NULL | |
15012 | }; | |
15013 | ||
15014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15015 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15016 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15017 | { |
15018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15019 | (arg1)->ClearData(); | |
15020 | ||
15021 | wxPyEndAllowThreads(__tstate); | |
15022 | if (PyErr_Occurred()) SWIG_fail; | |
15023 | } | |
15024 | Py_INCREF(Py_None); resultobj = Py_None; | |
15025 | return resultobj; | |
15026 | fail: | |
15027 | return NULL; | |
15028 | } | |
15029 | ||
15030 | ||
c370783e | 15031 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15032 | PyObject *resultobj; |
15033 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15034 | wxString *arg2 = 0 ; | |
15035 | wxFileType *result; | |
b411df4a | 15036 | bool temp2 = false ; |
d55e5bfc RD |
15037 | PyObject * obj0 = 0 ; |
15038 | PyObject * obj1 = 0 ; | |
15039 | char *kwnames[] = { | |
15040 | (char *) "self",(char *) "ext", NULL | |
15041 | }; | |
15042 | ||
15043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15046 | { |
15047 | arg2 = wxString_in_helper(obj1); | |
15048 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15049 | temp2 = true; |
d55e5bfc RD |
15050 | } |
15051 | { | |
15052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15053 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
15054 | ||
15055 | wxPyEndAllowThreads(__tstate); | |
15056 | if (PyErr_Occurred()) SWIG_fail; | |
15057 | } | |
15058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
15059 | { | |
15060 | if (temp2) | |
15061 | delete arg2; | |
15062 | } | |
15063 | return resultobj; | |
15064 | fail: | |
15065 | { | |
15066 | if (temp2) | |
15067 | delete arg2; | |
15068 | } | |
15069 | return NULL; | |
15070 | } | |
15071 | ||
15072 | ||
c370783e | 15073 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15074 | PyObject *resultobj; |
15075 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15076 | wxString *arg2 = 0 ; | |
15077 | wxFileType *result; | |
b411df4a | 15078 | bool temp2 = false ; |
d55e5bfc RD |
15079 | PyObject * obj0 = 0 ; |
15080 | PyObject * obj1 = 0 ; | |
15081 | char *kwnames[] = { | |
15082 | (char *) "self",(char *) "mimeType", NULL | |
15083 | }; | |
15084 | ||
15085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15088 | { |
15089 | arg2 = wxString_in_helper(obj1); | |
15090 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15091 | temp2 = true; |
d55e5bfc RD |
15092 | } |
15093 | { | |
15094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15095 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
15096 | ||
15097 | wxPyEndAllowThreads(__tstate); | |
15098 | if (PyErr_Occurred()) SWIG_fail; | |
15099 | } | |
15100 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
15101 | { | |
15102 | if (temp2) | |
15103 | delete arg2; | |
15104 | } | |
15105 | return resultobj; | |
15106 | fail: | |
15107 | { | |
15108 | if (temp2) | |
15109 | delete arg2; | |
15110 | } | |
15111 | return NULL; | |
15112 | } | |
15113 | ||
15114 | ||
c370783e | 15115 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15116 | PyObject *resultobj; |
15117 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15118 | wxString *arg2 = 0 ; | |
b411df4a | 15119 | bool arg3 = (bool) false ; |
d55e5bfc | 15120 | bool result; |
b411df4a | 15121 | bool temp2 = false ; |
d55e5bfc RD |
15122 | PyObject * obj0 = 0 ; |
15123 | PyObject * obj1 = 0 ; | |
15124 | PyObject * obj2 = 0 ; | |
15125 | char *kwnames[] = { | |
15126 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
15127 | }; | |
15128 | ||
15129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
15130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15132 | { |
15133 | arg2 = wxString_in_helper(obj1); | |
15134 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15135 | temp2 = true; |
d55e5bfc RD |
15136 | } |
15137 | if (obj2) { | |
36ed4f51 RD |
15138 | { |
15139 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
15140 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15141 | } | |
d55e5bfc RD |
15142 | } |
15143 | { | |
15144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15145 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
15146 | ||
15147 | wxPyEndAllowThreads(__tstate); | |
15148 | if (PyErr_Occurred()) SWIG_fail; | |
15149 | } | |
15150 | { | |
15151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15152 | } | |
15153 | { | |
15154 | if (temp2) | |
15155 | delete arg2; | |
15156 | } | |
15157 | return resultobj; | |
15158 | fail: | |
15159 | { | |
15160 | if (temp2) | |
15161 | delete arg2; | |
15162 | } | |
15163 | return NULL; | |
15164 | } | |
15165 | ||
15166 | ||
c370783e | 15167 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15168 | PyObject *resultobj; |
15169 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15170 | wxString *arg2 = 0 ; | |
15171 | bool result; | |
b411df4a | 15172 | bool temp2 = false ; |
d55e5bfc RD |
15173 | PyObject * obj0 = 0 ; |
15174 | PyObject * obj1 = 0 ; | |
15175 | char *kwnames[] = { | |
15176 | (char *) "self",(char *) "filename", NULL | |
15177 | }; | |
15178 | ||
15179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15182 | { |
15183 | arg2 = wxString_in_helper(obj1); | |
15184 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15185 | temp2 = true; |
d55e5bfc RD |
15186 | } |
15187 | { | |
15188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15189 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
15190 | ||
15191 | wxPyEndAllowThreads(__tstate); | |
15192 | if (PyErr_Occurred()) SWIG_fail; | |
15193 | } | |
15194 | { | |
15195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15196 | } | |
15197 | { | |
15198 | if (temp2) | |
15199 | delete arg2; | |
15200 | } | |
15201 | return resultobj; | |
15202 | fail: | |
15203 | { | |
15204 | if (temp2) | |
15205 | delete arg2; | |
15206 | } | |
15207 | return NULL; | |
15208 | } | |
15209 | ||
15210 | ||
c370783e | 15211 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15212 | PyObject *resultobj; |
15213 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15214 | PyObject *result; | |
15215 | PyObject * obj0 = 0 ; | |
15216 | char *kwnames[] = { | |
15217 | (char *) "self", NULL | |
15218 | }; | |
15219 | ||
15220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15223 | { |
15224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15225 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
15226 | ||
15227 | wxPyEndAllowThreads(__tstate); | |
15228 | if (PyErr_Occurred()) SWIG_fail; | |
15229 | } | |
15230 | resultobj = result; | |
15231 | return resultobj; | |
15232 | fail: | |
15233 | return NULL; | |
15234 | } | |
15235 | ||
15236 | ||
c370783e | 15237 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15238 | PyObject *resultobj; |
15239 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15240 | wxFileTypeInfo *arg2 = 0 ; | |
15241 | PyObject * obj0 = 0 ; | |
15242 | PyObject * obj1 = 0 ; | |
15243 | char *kwnames[] = { | |
15244 | (char *) "self",(char *) "ft", NULL | |
15245 | }; | |
15246 | ||
15247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15250 | { | |
15251 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
15252 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15253 | if (arg2 == NULL) { | |
15254 | SWIG_null_ref("wxFileTypeInfo"); | |
15255 | } | |
15256 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
15257 | } |
15258 | { | |
15259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15260 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
15261 | ||
15262 | wxPyEndAllowThreads(__tstate); | |
15263 | if (PyErr_Occurred()) SWIG_fail; | |
15264 | } | |
15265 | Py_INCREF(Py_None); resultobj = Py_None; | |
15266 | return resultobj; | |
15267 | fail: | |
15268 | return NULL; | |
15269 | } | |
15270 | ||
15271 | ||
c370783e | 15272 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15273 | PyObject *resultobj; |
15274 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15275 | wxFileTypeInfo *arg2 = 0 ; | |
15276 | wxFileType *result; | |
15277 | PyObject * obj0 = 0 ; | |
15278 | PyObject * obj1 = 0 ; | |
15279 | char *kwnames[] = { | |
15280 | (char *) "self",(char *) "ftInfo", NULL | |
15281 | }; | |
15282 | ||
15283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15286 | { | |
15287 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
15288 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15289 | if (arg2 == NULL) { | |
15290 | SWIG_null_ref("wxFileTypeInfo"); | |
15291 | } | |
15292 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
15293 | } |
15294 | { | |
15295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15296 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
15297 | ||
15298 | wxPyEndAllowThreads(__tstate); | |
15299 | if (PyErr_Occurred()) SWIG_fail; | |
15300 | } | |
15301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
15302 | return resultobj; | |
15303 | fail: | |
15304 | return NULL; | |
15305 | } | |
15306 | ||
15307 | ||
c370783e | 15308 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15309 | PyObject *resultobj; |
15310 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15311 | wxFileType *arg2 = (wxFileType *) 0 ; | |
15312 | bool result; | |
15313 | PyObject * obj0 = 0 ; | |
15314 | PyObject * obj1 = 0 ; | |
15315 | char *kwnames[] = { | |
15316 | (char *) "self",(char *) "ft", NULL | |
15317 | }; | |
15318 | ||
15319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15320 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15322 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); | |
15323 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
15324 | { |
15325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15326 | result = (bool)(arg1)->Unassociate(arg2); | |
15327 | ||
15328 | wxPyEndAllowThreads(__tstate); | |
15329 | if (PyErr_Occurred()) SWIG_fail; | |
15330 | } | |
15331 | { | |
15332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15333 | } | |
15334 | return resultobj; | |
15335 | fail: | |
15336 | return NULL; | |
15337 | } | |
15338 | ||
15339 | ||
c370783e | 15340 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15341 | PyObject *resultobj; |
15342 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15343 | PyObject * obj0 = 0 ; | |
15344 | char *kwnames[] = { | |
15345 | (char *) "self", NULL | |
15346 | }; | |
15347 | ||
15348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15351 | { |
15352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15353 | delete arg1; | |
15354 | ||
15355 | wxPyEndAllowThreads(__tstate); | |
15356 | if (PyErr_Occurred()) SWIG_fail; | |
15357 | } | |
15358 | Py_INCREF(Py_None); resultobj = Py_None; | |
15359 | return resultobj; | |
15360 | fail: | |
15361 | return NULL; | |
15362 | } | |
15363 | ||
15364 | ||
c370783e | 15365 | static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15366 | PyObject *obj; |
15367 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15368 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
15369 | Py_INCREF(obj); | |
15370 | return Py_BuildValue((char *)""); | |
15371 | } | |
c370783e | 15372 | static int _wrap_ART_TOOLBAR_set(PyObject *) { |
d55e5bfc RD |
15373 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); |
15374 | return 1; | |
15375 | } | |
15376 | ||
15377 | ||
36ed4f51 | 15378 | static PyObject *_wrap_ART_TOOLBAR_get(void) { |
d55e5bfc RD |
15379 | PyObject *pyobj; |
15380 | ||
15381 | { | |
15382 | #if wxUSE_UNICODE | |
15383 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
15384 | #else | |
15385 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
15386 | #endif | |
15387 | } | |
15388 | return pyobj; | |
15389 | } | |
15390 | ||
15391 | ||
c370783e | 15392 | static int _wrap_ART_MENU_set(PyObject *) { |
d55e5bfc RD |
15393 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); |
15394 | return 1; | |
15395 | } | |
15396 | ||
15397 | ||
36ed4f51 | 15398 | static PyObject *_wrap_ART_MENU_get(void) { |
d55e5bfc RD |
15399 | PyObject *pyobj; |
15400 | ||
15401 | { | |
15402 | #if wxUSE_UNICODE | |
15403 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
15404 | #else | |
15405 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
15406 | #endif | |
15407 | } | |
15408 | return pyobj; | |
15409 | } | |
15410 | ||
15411 | ||
c370783e | 15412 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { |
d55e5bfc RD |
15413 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); |
15414 | return 1; | |
15415 | } | |
15416 | ||
15417 | ||
36ed4f51 | 15418 | static PyObject *_wrap_ART_FRAME_ICON_get(void) { |
d55e5bfc RD |
15419 | PyObject *pyobj; |
15420 | ||
15421 | { | |
15422 | #if wxUSE_UNICODE | |
15423 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
15424 | #else | |
15425 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
15426 | #endif | |
15427 | } | |
15428 | return pyobj; | |
15429 | } | |
15430 | ||
15431 | ||
c370783e | 15432 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { |
d55e5bfc RD |
15433 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); |
15434 | return 1; | |
15435 | } | |
15436 | ||
15437 | ||
36ed4f51 | 15438 | static PyObject *_wrap_ART_CMN_DIALOG_get(void) { |
d55e5bfc RD |
15439 | PyObject *pyobj; |
15440 | ||
15441 | { | |
15442 | #if wxUSE_UNICODE | |
15443 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
15444 | #else | |
15445 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
15446 | #endif | |
15447 | } | |
15448 | return pyobj; | |
15449 | } | |
15450 | ||
15451 | ||
c370783e | 15452 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { |
d55e5bfc RD |
15453 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); |
15454 | return 1; | |
15455 | } | |
15456 | ||
15457 | ||
36ed4f51 | 15458 | static PyObject *_wrap_ART_HELP_BROWSER_get(void) { |
d55e5bfc RD |
15459 | PyObject *pyobj; |
15460 | ||
15461 | { | |
15462 | #if wxUSE_UNICODE | |
15463 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
15464 | #else | |
15465 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
15466 | #endif | |
15467 | } | |
15468 | return pyobj; | |
15469 | } | |
15470 | ||
15471 | ||
c370783e | 15472 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { |
d55e5bfc RD |
15473 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); |
15474 | return 1; | |
15475 | } | |
15476 | ||
15477 | ||
36ed4f51 | 15478 | static PyObject *_wrap_ART_MESSAGE_BOX_get(void) { |
d55e5bfc RD |
15479 | PyObject *pyobj; |
15480 | ||
15481 | { | |
15482 | #if wxUSE_UNICODE | |
15483 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
15484 | #else | |
15485 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
15486 | #endif | |
15487 | } | |
15488 | return pyobj; | |
15489 | } | |
15490 | ||
15491 | ||
c370783e | 15492 | static int _wrap_ART_BUTTON_set(PyObject *) { |
4cf4100f RD |
15493 | PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only."); |
15494 | return 1; | |
15495 | } | |
15496 | ||
15497 | ||
36ed4f51 | 15498 | static PyObject *_wrap_ART_BUTTON_get(void) { |
4cf4100f RD |
15499 | PyObject *pyobj; |
15500 | ||
15501 | { | |
15502 | #if wxUSE_UNICODE | |
15503 | pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
15504 | #else | |
15505 | pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
15506 | #endif | |
15507 | } | |
15508 | return pyobj; | |
15509 | } | |
15510 | ||
15511 | ||
c370783e | 15512 | static int _wrap_ART_OTHER_set(PyObject *) { |
d55e5bfc RD |
15513 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); |
15514 | return 1; | |
15515 | } | |
15516 | ||
15517 | ||
36ed4f51 | 15518 | static PyObject *_wrap_ART_OTHER_get(void) { |
d55e5bfc RD |
15519 | PyObject *pyobj; |
15520 | ||
15521 | { | |
15522 | #if wxUSE_UNICODE | |
15523 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
15524 | #else | |
15525 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
15526 | #endif | |
15527 | } | |
15528 | return pyobj; | |
15529 | } | |
15530 | ||
15531 | ||
c370783e | 15532 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
15533 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); |
15534 | return 1; | |
15535 | } | |
15536 | ||
15537 | ||
36ed4f51 | 15538 | static PyObject *_wrap_ART_ADD_BOOKMARK_get(void) { |
d55e5bfc RD |
15539 | PyObject *pyobj; |
15540 | ||
15541 | { | |
15542 | #if wxUSE_UNICODE | |
15543 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
15544 | #else | |
15545 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
15546 | #endif | |
15547 | } | |
15548 | return pyobj; | |
15549 | } | |
15550 | ||
15551 | ||
c370783e | 15552 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
15553 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); |
15554 | return 1; | |
15555 | } | |
15556 | ||
15557 | ||
36ed4f51 | 15558 | static PyObject *_wrap_ART_DEL_BOOKMARK_get(void) { |
d55e5bfc RD |
15559 | PyObject *pyobj; |
15560 | ||
15561 | { | |
15562 | #if wxUSE_UNICODE | |
15563 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
15564 | #else | |
15565 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
15566 | #endif | |
15567 | } | |
15568 | return pyobj; | |
15569 | } | |
15570 | ||
15571 | ||
c370783e | 15572 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { |
d55e5bfc RD |
15573 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); |
15574 | return 1; | |
15575 | } | |
15576 | ||
15577 | ||
36ed4f51 | 15578 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get(void) { |
d55e5bfc RD |
15579 | PyObject *pyobj; |
15580 | ||
15581 | { | |
15582 | #if wxUSE_UNICODE | |
15583 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
15584 | #else | |
15585 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
15586 | #endif | |
15587 | } | |
15588 | return pyobj; | |
15589 | } | |
15590 | ||
15591 | ||
c370783e | 15592 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { |
d55e5bfc RD |
15593 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); |
15594 | return 1; | |
15595 | } | |
15596 | ||
15597 | ||
36ed4f51 | 15598 | static PyObject *_wrap_ART_HELP_SETTINGS_get(void) { |
d55e5bfc RD |
15599 | PyObject *pyobj; |
15600 | ||
15601 | { | |
15602 | #if wxUSE_UNICODE | |
15603 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
15604 | #else | |
15605 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
15606 | #endif | |
15607 | } | |
15608 | return pyobj; | |
15609 | } | |
15610 | ||
15611 | ||
c370783e | 15612 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { |
d55e5bfc RD |
15613 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); |
15614 | return 1; | |
15615 | } | |
15616 | ||
15617 | ||
36ed4f51 | 15618 | static PyObject *_wrap_ART_HELP_BOOK_get(void) { |
d55e5bfc RD |
15619 | PyObject *pyobj; |
15620 | ||
15621 | { | |
15622 | #if wxUSE_UNICODE | |
15623 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
15624 | #else | |
15625 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
15626 | #endif | |
15627 | } | |
15628 | return pyobj; | |
15629 | } | |
15630 | ||
15631 | ||
c370783e | 15632 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { |
d55e5bfc RD |
15633 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); |
15634 | return 1; | |
15635 | } | |
15636 | ||
15637 | ||
36ed4f51 | 15638 | static PyObject *_wrap_ART_HELP_FOLDER_get(void) { |
d55e5bfc RD |
15639 | PyObject *pyobj; |
15640 | ||
15641 | { | |
15642 | #if wxUSE_UNICODE | |
15643 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
15644 | #else | |
15645 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
15646 | #endif | |
15647 | } | |
15648 | return pyobj; | |
15649 | } | |
15650 | ||
15651 | ||
c370783e | 15652 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { |
d55e5bfc RD |
15653 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); |
15654 | return 1; | |
15655 | } | |
15656 | ||
15657 | ||
36ed4f51 | 15658 | static PyObject *_wrap_ART_HELP_PAGE_get(void) { |
d55e5bfc RD |
15659 | PyObject *pyobj; |
15660 | ||
15661 | { | |
15662 | #if wxUSE_UNICODE | |
15663 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
15664 | #else | |
15665 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
15666 | #endif | |
15667 | } | |
15668 | return pyobj; | |
15669 | } | |
15670 | ||
15671 | ||
c370783e | 15672 | static int _wrap_ART_GO_BACK_set(PyObject *) { |
d55e5bfc RD |
15673 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); |
15674 | return 1; | |
15675 | } | |
15676 | ||
15677 | ||
36ed4f51 | 15678 | static PyObject *_wrap_ART_GO_BACK_get(void) { |
d55e5bfc RD |
15679 | PyObject *pyobj; |
15680 | ||
15681 | { | |
15682 | #if wxUSE_UNICODE | |
15683 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
15684 | #else | |
15685 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
15686 | #endif | |
15687 | } | |
15688 | return pyobj; | |
15689 | } | |
15690 | ||
15691 | ||
c370783e | 15692 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { |
d55e5bfc RD |
15693 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); |
15694 | return 1; | |
15695 | } | |
15696 | ||
15697 | ||
36ed4f51 | 15698 | static PyObject *_wrap_ART_GO_FORWARD_get(void) { |
d55e5bfc RD |
15699 | PyObject *pyobj; |
15700 | ||
15701 | { | |
15702 | #if wxUSE_UNICODE | |
15703 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
15704 | #else | |
15705 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
15706 | #endif | |
15707 | } | |
15708 | return pyobj; | |
15709 | } | |
15710 | ||
15711 | ||
c370783e | 15712 | static int _wrap_ART_GO_UP_set(PyObject *) { |
d55e5bfc RD |
15713 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); |
15714 | return 1; | |
15715 | } | |
15716 | ||
15717 | ||
36ed4f51 | 15718 | static PyObject *_wrap_ART_GO_UP_get(void) { |
d55e5bfc RD |
15719 | PyObject *pyobj; |
15720 | ||
15721 | { | |
15722 | #if wxUSE_UNICODE | |
15723 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
15724 | #else | |
15725 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
15726 | #endif | |
15727 | } | |
15728 | return pyobj; | |
15729 | } | |
15730 | ||
15731 | ||
c370783e | 15732 | static int _wrap_ART_GO_DOWN_set(PyObject *) { |
d55e5bfc RD |
15733 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); |
15734 | return 1; | |
15735 | } | |
15736 | ||
15737 | ||
36ed4f51 | 15738 | static PyObject *_wrap_ART_GO_DOWN_get(void) { |
d55e5bfc RD |
15739 | PyObject *pyobj; |
15740 | ||
15741 | { | |
15742 | #if wxUSE_UNICODE | |
15743 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
15744 | #else | |
15745 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
15746 | #endif | |
15747 | } | |
15748 | return pyobj; | |
15749 | } | |
15750 | ||
15751 | ||
c370783e | 15752 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { |
d55e5bfc RD |
15753 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); |
15754 | return 1; | |
15755 | } | |
15756 | ||
15757 | ||
36ed4f51 | 15758 | static PyObject *_wrap_ART_GO_TO_PARENT_get(void) { |
d55e5bfc RD |
15759 | PyObject *pyobj; |
15760 | ||
15761 | { | |
15762 | #if wxUSE_UNICODE | |
15763 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
15764 | #else | |
15765 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
15766 | #endif | |
15767 | } | |
15768 | return pyobj; | |
15769 | } | |
15770 | ||
15771 | ||
c370783e | 15772 | static int _wrap_ART_GO_HOME_set(PyObject *) { |
d55e5bfc RD |
15773 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); |
15774 | return 1; | |
15775 | } | |
15776 | ||
15777 | ||
36ed4f51 | 15778 | static PyObject *_wrap_ART_GO_HOME_get(void) { |
d55e5bfc RD |
15779 | PyObject *pyobj; |
15780 | ||
15781 | { | |
15782 | #if wxUSE_UNICODE | |
15783 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
15784 | #else | |
15785 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
15786 | #endif | |
15787 | } | |
15788 | return pyobj; | |
15789 | } | |
15790 | ||
15791 | ||
c370783e | 15792 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { |
d55e5bfc RD |
15793 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); |
15794 | return 1; | |
15795 | } | |
15796 | ||
15797 | ||
36ed4f51 | 15798 | static PyObject *_wrap_ART_FILE_OPEN_get(void) { |
d55e5bfc RD |
15799 | PyObject *pyobj; |
15800 | ||
15801 | { | |
15802 | #if wxUSE_UNICODE | |
15803 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
15804 | #else | |
15805 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
15806 | #endif | |
15807 | } | |
15808 | return pyobj; | |
15809 | } | |
15810 | ||
15811 | ||
68350608 RD |
15812 | static int _wrap_ART_FILE_SAVE_set(PyObject *) { |
15813 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE is read-only."); | |
15814 | return 1; | |
15815 | } | |
15816 | ||
15817 | ||
15818 | static PyObject *_wrap_ART_FILE_SAVE_get(void) { | |
15819 | PyObject *pyobj; | |
15820 | ||
15821 | { | |
15822 | #if wxUSE_UNICODE | |
15823 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len()); | |
15824 | #else | |
15825 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len()); | |
15826 | #endif | |
15827 | } | |
15828 | return pyobj; | |
15829 | } | |
15830 | ||
15831 | ||
15832 | static int _wrap_ART_FILE_SAVE_AS_set(PyObject *) { | |
15833 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE_AS is read-only."); | |
15834 | return 1; | |
15835 | } | |
15836 | ||
15837 | ||
15838 | static PyObject *_wrap_ART_FILE_SAVE_AS_get(void) { | |
15839 | PyObject *pyobj; | |
15840 | ||
15841 | { | |
15842 | #if wxUSE_UNICODE | |
15843 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len()); | |
15844 | #else | |
15845 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len()); | |
15846 | #endif | |
15847 | } | |
15848 | return pyobj; | |
15849 | } | |
15850 | ||
15851 | ||
c370783e | 15852 | static int _wrap_ART_PRINT_set(PyObject *) { |
d55e5bfc RD |
15853 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); |
15854 | return 1; | |
15855 | } | |
15856 | ||
15857 | ||
36ed4f51 | 15858 | static PyObject *_wrap_ART_PRINT_get(void) { |
d55e5bfc RD |
15859 | PyObject *pyobj; |
15860 | ||
15861 | { | |
15862 | #if wxUSE_UNICODE | |
15863 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
15864 | #else | |
15865 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
15866 | #endif | |
15867 | } | |
15868 | return pyobj; | |
15869 | } | |
15870 | ||
15871 | ||
c370783e | 15872 | static int _wrap_ART_HELP_set(PyObject *) { |
d55e5bfc RD |
15873 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); |
15874 | return 1; | |
15875 | } | |
15876 | ||
15877 | ||
36ed4f51 | 15878 | static PyObject *_wrap_ART_HELP_get(void) { |
d55e5bfc RD |
15879 | PyObject *pyobj; |
15880 | ||
15881 | { | |
15882 | #if wxUSE_UNICODE | |
15883 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
15884 | #else | |
15885 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
15886 | #endif | |
15887 | } | |
15888 | return pyobj; | |
15889 | } | |
15890 | ||
15891 | ||
c370783e | 15892 | static int _wrap_ART_TIP_set(PyObject *) { |
d55e5bfc RD |
15893 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); |
15894 | return 1; | |
15895 | } | |
15896 | ||
15897 | ||
36ed4f51 | 15898 | static PyObject *_wrap_ART_TIP_get(void) { |
d55e5bfc RD |
15899 | PyObject *pyobj; |
15900 | ||
15901 | { | |
15902 | #if wxUSE_UNICODE | |
15903 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
15904 | #else | |
15905 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
15906 | #endif | |
15907 | } | |
15908 | return pyobj; | |
15909 | } | |
15910 | ||
15911 | ||
c370783e | 15912 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { |
d55e5bfc RD |
15913 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); |
15914 | return 1; | |
15915 | } | |
15916 | ||
15917 | ||
36ed4f51 | 15918 | static PyObject *_wrap_ART_REPORT_VIEW_get(void) { |
d55e5bfc RD |
15919 | PyObject *pyobj; |
15920 | ||
15921 | { | |
15922 | #if wxUSE_UNICODE | |
15923 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
15924 | #else | |
15925 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
15926 | #endif | |
15927 | } | |
15928 | return pyobj; | |
15929 | } | |
15930 | ||
15931 | ||
c370783e | 15932 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { |
d55e5bfc RD |
15933 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); |
15934 | return 1; | |
15935 | } | |
15936 | ||
15937 | ||
36ed4f51 | 15938 | static PyObject *_wrap_ART_LIST_VIEW_get(void) { |
d55e5bfc RD |
15939 | PyObject *pyobj; |
15940 | ||
15941 | { | |
15942 | #if wxUSE_UNICODE | |
15943 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
15944 | #else | |
15945 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
15946 | #endif | |
15947 | } | |
15948 | return pyobj; | |
15949 | } | |
15950 | ||
15951 | ||
c370783e | 15952 | static int _wrap_ART_NEW_DIR_set(PyObject *) { |
d55e5bfc RD |
15953 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); |
15954 | return 1; | |
15955 | } | |
15956 | ||
15957 | ||
36ed4f51 | 15958 | static PyObject *_wrap_ART_NEW_DIR_get(void) { |
d55e5bfc RD |
15959 | PyObject *pyobj; |
15960 | ||
15961 | { | |
15962 | #if wxUSE_UNICODE | |
15963 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
15964 | #else | |
15965 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
15966 | #endif | |
15967 | } | |
15968 | return pyobj; | |
15969 | } | |
15970 | ||
15971 | ||
f78cc896 RD |
15972 | static int _wrap_ART_HARDDISK_set(PyObject *) { |
15973 | PyErr_SetString(PyExc_TypeError,"Variable ART_HARDDISK is read-only."); | |
15974 | return 1; | |
15975 | } | |
15976 | ||
15977 | ||
36ed4f51 | 15978 | static PyObject *_wrap_ART_HARDDISK_get(void) { |
f78cc896 RD |
15979 | PyObject *pyobj; |
15980 | ||
15981 | { | |
15982 | #if wxUSE_UNICODE | |
15983 | pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
15984 | #else | |
15985 | pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
15986 | #endif | |
15987 | } | |
15988 | return pyobj; | |
15989 | } | |
15990 | ||
15991 | ||
15992 | static int _wrap_ART_FLOPPY_set(PyObject *) { | |
15993 | PyErr_SetString(PyExc_TypeError,"Variable ART_FLOPPY is read-only."); | |
15994 | return 1; | |
15995 | } | |
15996 | ||
15997 | ||
36ed4f51 | 15998 | static PyObject *_wrap_ART_FLOPPY_get(void) { |
f78cc896 RD |
15999 | PyObject *pyobj; |
16000 | ||
16001 | { | |
16002 | #if wxUSE_UNICODE | |
16003 | pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
16004 | #else | |
16005 | pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
16006 | #endif | |
16007 | } | |
16008 | return pyobj; | |
16009 | } | |
16010 | ||
16011 | ||
16012 | static int _wrap_ART_CDROM_set(PyObject *) { | |
16013 | PyErr_SetString(PyExc_TypeError,"Variable ART_CDROM is read-only."); | |
16014 | return 1; | |
16015 | } | |
16016 | ||
16017 | ||
36ed4f51 | 16018 | static PyObject *_wrap_ART_CDROM_get(void) { |
f78cc896 RD |
16019 | PyObject *pyobj; |
16020 | ||
16021 | { | |
16022 | #if wxUSE_UNICODE | |
16023 | pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
16024 | #else | |
16025 | pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
16026 | #endif | |
16027 | } | |
16028 | return pyobj; | |
16029 | } | |
16030 | ||
16031 | ||
16032 | static int _wrap_ART_REMOVABLE_set(PyObject *) { | |
16033 | PyErr_SetString(PyExc_TypeError,"Variable ART_REMOVABLE is read-only."); | |
16034 | return 1; | |
16035 | } | |
16036 | ||
16037 | ||
36ed4f51 | 16038 | static PyObject *_wrap_ART_REMOVABLE_get(void) { |
f78cc896 RD |
16039 | PyObject *pyobj; |
16040 | ||
16041 | { | |
16042 | #if wxUSE_UNICODE | |
16043 | pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
16044 | #else | |
16045 | pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
16046 | #endif | |
16047 | } | |
16048 | return pyobj; | |
16049 | } | |
16050 | ||
16051 | ||
c370783e | 16052 | static int _wrap_ART_FOLDER_set(PyObject *) { |
d55e5bfc RD |
16053 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); |
16054 | return 1; | |
16055 | } | |
16056 | ||
16057 | ||
36ed4f51 | 16058 | static PyObject *_wrap_ART_FOLDER_get(void) { |
d55e5bfc RD |
16059 | PyObject *pyobj; |
16060 | ||
16061 | { | |
16062 | #if wxUSE_UNICODE | |
16063 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
16064 | #else | |
16065 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
16066 | #endif | |
16067 | } | |
16068 | return pyobj; | |
16069 | } | |
16070 | ||
16071 | ||
f78cc896 RD |
16072 | static int _wrap_ART_FOLDER_OPEN_set(PyObject *) { |
16073 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER_OPEN is read-only."); | |
16074 | return 1; | |
16075 | } | |
16076 | ||
16077 | ||
36ed4f51 | 16078 | static PyObject *_wrap_ART_FOLDER_OPEN_get(void) { |
f78cc896 RD |
16079 | PyObject *pyobj; |
16080 | ||
16081 | { | |
16082 | #if wxUSE_UNICODE | |
16083 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
16084 | #else | |
16085 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
16086 | #endif | |
16087 | } | |
16088 | return pyobj; | |
16089 | } | |
16090 | ||
16091 | ||
c370783e | 16092 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { |
d55e5bfc RD |
16093 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); |
16094 | return 1; | |
16095 | } | |
16096 | ||
16097 | ||
36ed4f51 | 16098 | static PyObject *_wrap_ART_GO_DIR_UP_get(void) { |
d55e5bfc RD |
16099 | PyObject *pyobj; |
16100 | ||
16101 | { | |
16102 | #if wxUSE_UNICODE | |
16103 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
16104 | #else | |
16105 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
16106 | #endif | |
16107 | } | |
16108 | return pyobj; | |
16109 | } | |
16110 | ||
16111 | ||
c370783e | 16112 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { |
d55e5bfc RD |
16113 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); |
16114 | return 1; | |
16115 | } | |
16116 | ||
16117 | ||
36ed4f51 | 16118 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get(void) { |
d55e5bfc RD |
16119 | PyObject *pyobj; |
16120 | ||
16121 | { | |
16122 | #if wxUSE_UNICODE | |
16123 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
16124 | #else | |
16125 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
16126 | #endif | |
16127 | } | |
16128 | return pyobj; | |
16129 | } | |
16130 | ||
16131 | ||
c370783e | 16132 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { |
d55e5bfc RD |
16133 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); |
16134 | return 1; | |
16135 | } | |
16136 | ||
16137 | ||
36ed4f51 | 16138 | static PyObject *_wrap_ART_NORMAL_FILE_get(void) { |
d55e5bfc RD |
16139 | PyObject *pyobj; |
16140 | ||
16141 | { | |
16142 | #if wxUSE_UNICODE | |
16143 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
16144 | #else | |
16145 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
16146 | #endif | |
16147 | } | |
16148 | return pyobj; | |
16149 | } | |
16150 | ||
16151 | ||
c370783e | 16152 | static int _wrap_ART_TICK_MARK_set(PyObject *) { |
d55e5bfc RD |
16153 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); |
16154 | return 1; | |
16155 | } | |
16156 | ||
16157 | ||
36ed4f51 | 16158 | static PyObject *_wrap_ART_TICK_MARK_get(void) { |
d55e5bfc RD |
16159 | PyObject *pyobj; |
16160 | ||
16161 | { | |
16162 | #if wxUSE_UNICODE | |
16163 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
16164 | #else | |
16165 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
16166 | #endif | |
16167 | } | |
16168 | return pyobj; | |
16169 | } | |
16170 | ||
16171 | ||
c370783e | 16172 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { |
d55e5bfc RD |
16173 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); |
16174 | return 1; | |
16175 | } | |
16176 | ||
16177 | ||
36ed4f51 | 16178 | static PyObject *_wrap_ART_CROSS_MARK_get(void) { |
d55e5bfc RD |
16179 | PyObject *pyobj; |
16180 | ||
16181 | { | |
16182 | #if wxUSE_UNICODE | |
16183 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
16184 | #else | |
16185 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
16186 | #endif | |
16187 | } | |
16188 | return pyobj; | |
16189 | } | |
16190 | ||
16191 | ||
c370783e | 16192 | static int _wrap_ART_ERROR_set(PyObject *) { |
d55e5bfc RD |
16193 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); |
16194 | return 1; | |
16195 | } | |
16196 | ||
16197 | ||
36ed4f51 | 16198 | static PyObject *_wrap_ART_ERROR_get(void) { |
d55e5bfc RD |
16199 | PyObject *pyobj; |
16200 | ||
16201 | { | |
16202 | #if wxUSE_UNICODE | |
16203 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
16204 | #else | |
16205 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
16206 | #endif | |
16207 | } | |
16208 | return pyobj; | |
16209 | } | |
16210 | ||
16211 | ||
c370783e | 16212 | static int _wrap_ART_QUESTION_set(PyObject *) { |
d55e5bfc RD |
16213 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); |
16214 | return 1; | |
16215 | } | |
16216 | ||
16217 | ||
36ed4f51 | 16218 | static PyObject *_wrap_ART_QUESTION_get(void) { |
d55e5bfc RD |
16219 | PyObject *pyobj; |
16220 | ||
16221 | { | |
16222 | #if wxUSE_UNICODE | |
16223 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
16224 | #else | |
16225 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
16226 | #endif | |
16227 | } | |
16228 | return pyobj; | |
16229 | } | |
16230 | ||
16231 | ||
c370783e | 16232 | static int _wrap_ART_WARNING_set(PyObject *) { |
d55e5bfc RD |
16233 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); |
16234 | return 1; | |
16235 | } | |
16236 | ||
16237 | ||
36ed4f51 | 16238 | static PyObject *_wrap_ART_WARNING_get(void) { |
d55e5bfc RD |
16239 | PyObject *pyobj; |
16240 | ||
16241 | { | |
16242 | #if wxUSE_UNICODE | |
16243 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
16244 | #else | |
16245 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
16246 | #endif | |
16247 | } | |
16248 | return pyobj; | |
16249 | } | |
16250 | ||
16251 | ||
c370783e | 16252 | static int _wrap_ART_INFORMATION_set(PyObject *) { |
d55e5bfc RD |
16253 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); |
16254 | return 1; | |
16255 | } | |
16256 | ||
16257 | ||
36ed4f51 | 16258 | static PyObject *_wrap_ART_INFORMATION_get(void) { |
d55e5bfc RD |
16259 | PyObject *pyobj; |
16260 | ||
16261 | { | |
16262 | #if wxUSE_UNICODE | |
16263 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
16264 | #else | |
16265 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
16266 | #endif | |
16267 | } | |
16268 | return pyobj; | |
16269 | } | |
16270 | ||
16271 | ||
c370783e | 16272 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { |
d55e5bfc RD |
16273 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); |
16274 | return 1; | |
16275 | } | |
16276 | ||
16277 | ||
36ed4f51 | 16278 | static PyObject *_wrap_ART_MISSING_IMAGE_get(void) { |
d55e5bfc RD |
16279 | PyObject *pyobj; |
16280 | ||
16281 | { | |
16282 | #if wxUSE_UNICODE | |
16283 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
16284 | #else | |
16285 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
16286 | #endif | |
16287 | } | |
16288 | return pyobj; | |
16289 | } | |
16290 | ||
16291 | ||
68350608 RD |
16292 | static int _wrap_ART_COPY_set(PyObject *) { |
16293 | PyErr_SetString(PyExc_TypeError,"Variable ART_COPY is read-only."); | |
16294 | return 1; | |
16295 | } | |
16296 | ||
16297 | ||
16298 | static PyObject *_wrap_ART_COPY_get(void) { | |
16299 | PyObject *pyobj; | |
16300 | ||
16301 | { | |
16302 | #if wxUSE_UNICODE | |
16303 | pyobj = PyUnicode_FromWideChar((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len()); | |
16304 | #else | |
16305 | pyobj = PyString_FromStringAndSize((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len()); | |
16306 | #endif | |
16307 | } | |
16308 | return pyobj; | |
16309 | } | |
16310 | ||
16311 | ||
16312 | static int _wrap_ART_CUT_set(PyObject *) { | |
16313 | PyErr_SetString(PyExc_TypeError,"Variable ART_CUT is read-only."); | |
16314 | return 1; | |
16315 | } | |
16316 | ||
16317 | ||
16318 | static PyObject *_wrap_ART_CUT_get(void) { | |
16319 | PyObject *pyobj; | |
16320 | ||
16321 | { | |
16322 | #if wxUSE_UNICODE | |
16323 | pyobj = PyUnicode_FromWideChar((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len()); | |
16324 | #else | |
16325 | pyobj = PyString_FromStringAndSize((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len()); | |
16326 | #endif | |
16327 | } | |
16328 | return pyobj; | |
16329 | } | |
16330 | ||
16331 | ||
16332 | static int _wrap_ART_PASTE_set(PyObject *) { | |
16333 | PyErr_SetString(PyExc_TypeError,"Variable ART_PASTE is read-only."); | |
16334 | return 1; | |
16335 | } | |
16336 | ||
16337 | ||
16338 | static PyObject *_wrap_ART_PASTE_get(void) { | |
16339 | PyObject *pyobj; | |
16340 | ||
16341 | { | |
16342 | #if wxUSE_UNICODE | |
16343 | pyobj = PyUnicode_FromWideChar((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len()); | |
16344 | #else | |
16345 | pyobj = PyString_FromStringAndSize((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len()); | |
16346 | #endif | |
16347 | } | |
16348 | return pyobj; | |
16349 | } | |
16350 | ||
16351 | ||
16352 | static int _wrap_ART_DELETE_set(PyObject *) { | |
16353 | PyErr_SetString(PyExc_TypeError,"Variable ART_DELETE is read-only."); | |
16354 | return 1; | |
16355 | } | |
16356 | ||
16357 | ||
16358 | static PyObject *_wrap_ART_DELETE_get(void) { | |
16359 | PyObject *pyobj; | |
16360 | ||
16361 | { | |
16362 | #if wxUSE_UNICODE | |
16363 | pyobj = PyUnicode_FromWideChar((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len()); | |
16364 | #else | |
16365 | pyobj = PyString_FromStringAndSize((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len()); | |
16366 | #endif | |
16367 | } | |
16368 | return pyobj; | |
16369 | } | |
16370 | ||
16371 | ||
16372 | static int _wrap_ART_UNDO_set(PyObject *) { | |
16373 | PyErr_SetString(PyExc_TypeError,"Variable ART_UNDO is read-only."); | |
16374 | return 1; | |
16375 | } | |
16376 | ||
16377 | ||
16378 | static PyObject *_wrap_ART_UNDO_get(void) { | |
16379 | PyObject *pyobj; | |
16380 | ||
16381 | { | |
16382 | #if wxUSE_UNICODE | |
16383 | pyobj = PyUnicode_FromWideChar((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len()); | |
16384 | #else | |
16385 | pyobj = PyString_FromStringAndSize((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len()); | |
16386 | #endif | |
16387 | } | |
16388 | return pyobj; | |
16389 | } | |
16390 | ||
16391 | ||
16392 | static int _wrap_ART_REDO_set(PyObject *) { | |
16393 | PyErr_SetString(PyExc_TypeError,"Variable ART_REDO is read-only."); | |
16394 | return 1; | |
16395 | } | |
16396 | ||
16397 | ||
16398 | static PyObject *_wrap_ART_REDO_get(void) { | |
16399 | PyObject *pyobj; | |
16400 | ||
16401 | { | |
16402 | #if wxUSE_UNICODE | |
16403 | pyobj = PyUnicode_FromWideChar((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len()); | |
16404 | #else | |
16405 | pyobj = PyString_FromStringAndSize((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len()); | |
16406 | #endif | |
16407 | } | |
16408 | return pyobj; | |
16409 | } | |
16410 | ||
16411 | ||
16412 | static int _wrap_ART_QUIT_set(PyObject *) { | |
16413 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUIT is read-only."); | |
16414 | return 1; | |
16415 | } | |
16416 | ||
16417 | ||
16418 | static PyObject *_wrap_ART_QUIT_get(void) { | |
16419 | PyObject *pyobj; | |
16420 | ||
16421 | { | |
16422 | #if wxUSE_UNICODE | |
16423 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len()); | |
16424 | #else | |
16425 | pyobj = PyString_FromStringAndSize((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len()); | |
16426 | #endif | |
16427 | } | |
16428 | return pyobj; | |
16429 | } | |
16430 | ||
16431 | ||
16432 | static int _wrap_ART_FIND_set(PyObject *) { | |
16433 | PyErr_SetString(PyExc_TypeError,"Variable ART_FIND is read-only."); | |
16434 | return 1; | |
16435 | } | |
16436 | ||
16437 | ||
16438 | static PyObject *_wrap_ART_FIND_get(void) { | |
16439 | PyObject *pyobj; | |
16440 | ||
16441 | { | |
16442 | #if wxUSE_UNICODE | |
16443 | pyobj = PyUnicode_FromWideChar((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len()); | |
16444 | #else | |
16445 | pyobj = PyString_FromStringAndSize((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len()); | |
16446 | #endif | |
16447 | } | |
16448 | return pyobj; | |
16449 | } | |
16450 | ||
16451 | ||
16452 | static int _wrap_ART_FIND_AND_REPLACE_set(PyObject *) { | |
16453 | PyErr_SetString(PyExc_TypeError,"Variable ART_FIND_AND_REPLACE is read-only."); | |
16454 | return 1; | |
16455 | } | |
16456 | ||
16457 | ||
16458 | static PyObject *_wrap_ART_FIND_AND_REPLACE_get(void) { | |
16459 | PyObject *pyobj; | |
16460 | ||
16461 | { | |
16462 | #if wxUSE_UNICODE | |
16463 | pyobj = PyUnicode_FromWideChar((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len()); | |
16464 | #else | |
16465 | pyobj = PyString_FromStringAndSize((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len()); | |
16466 | #endif | |
16467 | } | |
16468 | return pyobj; | |
16469 | } | |
16470 | ||
16471 | ||
c370783e | 16472 | static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16473 | PyObject *resultobj; |
16474 | wxPyArtProvider *result; | |
16475 | char *kwnames[] = { | |
16476 | NULL | |
16477 | }; | |
16478 | ||
16479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
16480 | { | |
0439c23b | 16481 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16483 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
16484 | ||
16485 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16486 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16487 | } |
16488 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
16489 | return resultobj; | |
16490 | fail: | |
16491 | return NULL; | |
16492 | } | |
16493 | ||
16494 | ||
c370783e | 16495 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16496 | PyObject *resultobj; |
16497 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
16498 | PyObject *arg2 = (PyObject *) 0 ; | |
16499 | PyObject *arg3 = (PyObject *) 0 ; | |
16500 | PyObject * obj0 = 0 ; | |
16501 | PyObject * obj1 = 0 ; | |
16502 | PyObject * obj2 = 0 ; | |
16503 | char *kwnames[] = { | |
16504 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
16505 | }; | |
16506 | ||
16507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
16508 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
16509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16510 | arg2 = obj1; |
16511 | arg3 = obj2; | |
16512 | { | |
16513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16514 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16515 | ||
16516 | wxPyEndAllowThreads(__tstate); | |
16517 | if (PyErr_Occurred()) SWIG_fail; | |
16518 | } | |
16519 | Py_INCREF(Py_None); resultobj = Py_None; | |
16520 | return resultobj; | |
16521 | fail: | |
16522 | return NULL; | |
16523 | } | |
16524 | ||
16525 | ||
c370783e | 16526 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16527 | PyObject *resultobj; |
16528 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
16529 | PyObject * obj0 = 0 ; | |
16530 | char *kwnames[] = { | |
16531 | (char *) "provider", NULL | |
16532 | }; | |
16533 | ||
16534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
16535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
16536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16537 | { |
16538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16539 | wxPyArtProvider::PushProvider(arg1); | |
16540 | ||
16541 | wxPyEndAllowThreads(__tstate); | |
16542 | if (PyErr_Occurred()) SWIG_fail; | |
16543 | } | |
16544 | Py_INCREF(Py_None); resultobj = Py_None; | |
16545 | return resultobj; | |
16546 | fail: | |
16547 | return NULL; | |
16548 | } | |
16549 | ||
16550 | ||
c370783e | 16551 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16552 | PyObject *resultobj; |
16553 | bool result; | |
16554 | char *kwnames[] = { | |
16555 | NULL | |
16556 | }; | |
16557 | ||
16558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
16559 | { | |
16560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16561 | result = (bool)wxPyArtProvider::PopProvider(); | |
16562 | ||
16563 | wxPyEndAllowThreads(__tstate); | |
16564 | if (PyErr_Occurred()) SWIG_fail; | |
16565 | } | |
16566 | { | |
16567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16568 | } | |
16569 | return resultobj; | |
16570 | fail: | |
16571 | return NULL; | |
16572 | } | |
16573 | ||
16574 | ||
c370783e | 16575 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16576 | PyObject *resultobj; |
16577 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
16578 | bool result; | |
16579 | PyObject * obj0 = 0 ; | |
16580 | char *kwnames[] = { | |
16581 | (char *) "provider", NULL | |
16582 | }; | |
16583 | ||
16584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
16585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
16586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16587 | { |
16588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16589 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
16590 | ||
16591 | wxPyEndAllowThreads(__tstate); | |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
16593 | } | |
16594 | { | |
16595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16596 | } | |
16597 | return resultobj; | |
16598 | fail: | |
16599 | return NULL; | |
16600 | } | |
16601 | ||
16602 | ||
c370783e | 16603 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16604 | PyObject *resultobj; |
16605 | wxString *arg1 = 0 ; | |
16606 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
16607 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16608 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
16609 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
16610 | wxBitmap result; | |
b411df4a RD |
16611 | bool temp1 = false ; |
16612 | bool temp2 = false ; | |
d55e5bfc RD |
16613 | wxSize temp3 ; |
16614 | PyObject * obj0 = 0 ; | |
16615 | PyObject * obj1 = 0 ; | |
16616 | PyObject * obj2 = 0 ; | |
16617 | char *kwnames[] = { | |
16618 | (char *) "id",(char *) "client",(char *) "size", NULL | |
16619 | }; | |
16620 | ||
16621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16622 | { | |
16623 | arg1 = wxString_in_helper(obj0); | |
16624 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 16625 | temp1 = true; |
d55e5bfc RD |
16626 | } |
16627 | if (obj1) { | |
16628 | { | |
16629 | arg2 = wxString_in_helper(obj1); | |
16630 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16631 | temp2 = true; |
d55e5bfc RD |
16632 | } |
16633 | } | |
16634 | if (obj2) { | |
16635 | { | |
16636 | arg3 = &temp3; | |
16637 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16638 | } | |
16639 | } | |
16640 | { | |
0439c23b | 16641 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16643 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
16644 | ||
16645 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16646 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16647 | } |
16648 | { | |
16649 | wxBitmap * resultptr; | |
36ed4f51 | 16650 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
16651 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
16652 | } | |
16653 | { | |
16654 | if (temp1) | |
16655 | delete arg1; | |
16656 | } | |
16657 | { | |
16658 | if (temp2) | |
16659 | delete arg2; | |
16660 | } | |
16661 | return resultobj; | |
16662 | fail: | |
16663 | { | |
16664 | if (temp1) | |
16665 | delete arg1; | |
16666 | } | |
16667 | { | |
16668 | if (temp2) | |
16669 | delete arg2; | |
16670 | } | |
16671 | return NULL; | |
16672 | } | |
16673 | ||
16674 | ||
c370783e | 16675 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16676 | PyObject *resultobj; |
16677 | wxString *arg1 = 0 ; | |
16678 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
16679 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16680 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
16681 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
16682 | wxIcon result; | |
b411df4a RD |
16683 | bool temp1 = false ; |
16684 | bool temp2 = false ; | |
d55e5bfc RD |
16685 | wxSize temp3 ; |
16686 | PyObject * obj0 = 0 ; | |
16687 | PyObject * obj1 = 0 ; | |
16688 | PyObject * obj2 = 0 ; | |
16689 | char *kwnames[] = { | |
16690 | (char *) "id",(char *) "client",(char *) "size", NULL | |
16691 | }; | |
16692 | ||
16693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16694 | { | |
16695 | arg1 = wxString_in_helper(obj0); | |
16696 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 16697 | temp1 = true; |
d55e5bfc RD |
16698 | } |
16699 | if (obj1) { | |
16700 | { | |
16701 | arg2 = wxString_in_helper(obj1); | |
16702 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16703 | temp2 = true; |
d55e5bfc RD |
16704 | } |
16705 | } | |
16706 | if (obj2) { | |
16707 | { | |
16708 | arg3 = &temp3; | |
16709 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16710 | } | |
16711 | } | |
16712 | { | |
0439c23b | 16713 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16715 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
16716 | ||
16717 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16718 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16719 | } |
16720 | { | |
16721 | wxIcon * resultptr; | |
36ed4f51 | 16722 | resultptr = new wxIcon((wxIcon &)(result)); |
d55e5bfc RD |
16723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
16724 | } | |
16725 | { | |
16726 | if (temp1) | |
16727 | delete arg1; | |
16728 | } | |
16729 | { | |
16730 | if (temp2) | |
16731 | delete arg2; | |
16732 | } | |
16733 | return resultobj; | |
16734 | fail: | |
16735 | { | |
16736 | if (temp1) | |
16737 | delete arg1; | |
16738 | } | |
16739 | { | |
16740 | if (temp2) | |
16741 | delete arg2; | |
16742 | } | |
16743 | return NULL; | |
16744 | } | |
16745 | ||
16746 | ||
9c874b48 RD |
16747 | static PyObject *_wrap_ArtProvider_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
16748 | PyObject *resultobj; | |
16749 | wxString *arg1 = 0 ; | |
16750 | bool arg2 = (bool) false ; | |
16751 | wxSize result; | |
16752 | bool temp1 = false ; | |
16753 | PyObject * obj0 = 0 ; | |
16754 | PyObject * obj1 = 0 ; | |
16755 | char *kwnames[] = { | |
16756 | (char *) "client",(char *) "platform_dependent", NULL | |
16757 | }; | |
16758 | ||
16759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ArtProvider_GetSize",kwnames,&obj0,&obj1)) goto fail; | |
16760 | { | |
16761 | arg1 = wxString_in_helper(obj0); | |
16762 | if (arg1 == NULL) SWIG_fail; | |
16763 | temp1 = true; | |
16764 | } | |
16765 | if (obj1) { | |
16766 | { | |
16767 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
16768 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16769 | } | |
16770 | } | |
16771 | { | |
16772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16773 | result = wxPyArtProvider::GetSize((wxString const &)*arg1,arg2); | |
16774 | ||
16775 | wxPyEndAllowThreads(__tstate); | |
16776 | if (PyErr_Occurred()) SWIG_fail; | |
16777 | } | |
16778 | { | |
16779 | wxSize * resultptr; | |
16780 | resultptr = new wxSize((wxSize &)(result)); | |
16781 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16782 | } | |
16783 | { | |
16784 | if (temp1) | |
16785 | delete arg1; | |
16786 | } | |
16787 | return resultobj; | |
16788 | fail: | |
16789 | { | |
16790 | if (temp1) | |
16791 | delete arg1; | |
16792 | } | |
16793 | return NULL; | |
16794 | } | |
16795 | ||
16796 | ||
c370783e | 16797 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16798 | PyObject *resultobj; |
16799 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
16800 | PyObject * obj0 = 0 ; | |
16801 | char *kwnames[] = { | |
16802 | (char *) "self", NULL | |
16803 | }; | |
16804 | ||
16805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
16806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
16807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16808 | { |
16809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16810 | wxPyArtProvider_Destroy(arg1); | |
16811 | ||
16812 | wxPyEndAllowThreads(__tstate); | |
16813 | if (PyErr_Occurred()) SWIG_fail; | |
16814 | } | |
16815 | Py_INCREF(Py_None); resultobj = Py_None; | |
16816 | return resultobj; | |
16817 | fail: | |
16818 | return NULL; | |
16819 | } | |
16820 | ||
16821 | ||
c370783e | 16822 | static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16823 | PyObject *obj; |
16824 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16825 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
16826 | Py_INCREF(obj); | |
16827 | return Py_BuildValue((char *)""); | |
16828 | } | |
c370783e | 16829 | static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16830 | PyObject *resultobj; |
16831 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16832 | PyObject * obj0 = 0 ; | |
16833 | char *kwnames[] = { | |
16834 | (char *) "self", NULL | |
16835 | }; | |
16836 | ||
16837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
16838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
16839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16840 | { |
16841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16842 | delete arg1; | |
16843 | ||
16844 | wxPyEndAllowThreads(__tstate); | |
16845 | if (PyErr_Occurred()) SWIG_fail; | |
16846 | } | |
16847 | Py_INCREF(Py_None); resultobj = Py_None; | |
16848 | return resultobj; | |
16849 | fail: | |
16850 | return NULL; | |
16851 | } | |
16852 | ||
16853 | ||
c370783e | 16854 | static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16855 | PyObject *resultobj; |
16856 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16857 | wxConfigBase *result; | |
16858 | PyObject * obj0 = 0 ; | |
16859 | char *kwnames[] = { | |
16860 | (char *) "config", NULL | |
16861 | }; | |
16862 | ||
16863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
16864 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
16865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16866 | { |
16867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16868 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
16869 | ||
16870 | wxPyEndAllowThreads(__tstate); | |
16871 | if (PyErr_Occurred()) SWIG_fail; | |
16872 | } | |
16873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
16874 | return resultobj; | |
16875 | fail: | |
16876 | return NULL; | |
16877 | } | |
16878 | ||
16879 | ||
c370783e | 16880 | static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16881 | PyObject *resultobj; |
b411df4a | 16882 | bool arg1 = (bool) true ; |
d55e5bfc RD |
16883 | wxConfigBase *result; |
16884 | PyObject * obj0 = 0 ; | |
16885 | char *kwnames[] = { | |
16886 | (char *) "createOnDemand", NULL | |
16887 | }; | |
16888 | ||
16889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
16890 | if (obj0) { | |
36ed4f51 RD |
16891 | { |
16892 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
16893 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16894 | } | |
d55e5bfc RD |
16895 | } |
16896 | { | |
16897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16898 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
16899 | ||
16900 | wxPyEndAllowThreads(__tstate); | |
16901 | if (PyErr_Occurred()) SWIG_fail; | |
16902 | } | |
16903 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
16904 | return resultobj; | |
16905 | fail: | |
16906 | return NULL; | |
16907 | } | |
16908 | ||
16909 | ||
c370783e | 16910 | static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16911 | PyObject *resultobj; |
16912 | wxConfigBase *result; | |
16913 | char *kwnames[] = { | |
16914 | NULL | |
16915 | }; | |
16916 | ||
16917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
16918 | { | |
16919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16920 | result = (wxConfigBase *)wxConfigBase::Create(); | |
16921 | ||
16922 | wxPyEndAllowThreads(__tstate); | |
16923 | if (PyErr_Occurred()) SWIG_fail; | |
16924 | } | |
16925 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
16926 | return resultobj; | |
16927 | fail: | |
16928 | return NULL; | |
16929 | } | |
16930 | ||
16931 | ||
c370783e | 16932 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16933 | PyObject *resultobj; |
16934 | char *kwnames[] = { | |
16935 | NULL | |
16936 | }; | |
16937 | ||
16938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
16939 | { | |
16940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16941 | wxConfigBase::DontCreateOnDemand(); | |
16942 | ||
16943 | wxPyEndAllowThreads(__tstate); | |
16944 | if (PyErr_Occurred()) SWIG_fail; | |
16945 | } | |
16946 | Py_INCREF(Py_None); resultobj = Py_None; | |
16947 | return resultobj; | |
16948 | fail: | |
16949 | return NULL; | |
16950 | } | |
16951 | ||
16952 | ||
c370783e | 16953 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16954 | PyObject *resultobj; |
16955 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16956 | wxString *arg2 = 0 ; | |
b411df4a | 16957 | bool temp2 = false ; |
d55e5bfc RD |
16958 | PyObject * obj0 = 0 ; |
16959 | PyObject * obj1 = 0 ; | |
16960 | char *kwnames[] = { | |
16961 | (char *) "self",(char *) "path", NULL | |
16962 | }; | |
16963 | ||
16964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
16965 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
16966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16967 | { |
16968 | arg2 = wxString_in_helper(obj1); | |
16969 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16970 | temp2 = true; |
d55e5bfc RD |
16971 | } |
16972 | { | |
16973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16974 | (arg1)->SetPath((wxString const &)*arg2); | |
16975 | ||
16976 | wxPyEndAllowThreads(__tstate); | |
16977 | if (PyErr_Occurred()) SWIG_fail; | |
16978 | } | |
16979 | Py_INCREF(Py_None); resultobj = Py_None; | |
16980 | { | |
16981 | if (temp2) | |
16982 | delete arg2; | |
16983 | } | |
16984 | return resultobj; | |
16985 | fail: | |
16986 | { | |
16987 | if (temp2) | |
16988 | delete arg2; | |
16989 | } | |
16990 | return NULL; | |
16991 | } | |
16992 | ||
16993 | ||
c370783e | 16994 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16995 | PyObject *resultobj; |
16996 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16997 | wxString *result; | |
16998 | PyObject * obj0 = 0 ; | |
16999 | char *kwnames[] = { | |
17000 | (char *) "self", NULL | |
17001 | }; | |
17002 | ||
17003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
17004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17006 | { |
17007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17008 | { | |
17009 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
17010 | result = (wxString *) &_result_ref; | |
17011 | } | |
17012 | ||
17013 | wxPyEndAllowThreads(__tstate); | |
17014 | if (PyErr_Occurred()) SWIG_fail; | |
17015 | } | |
17016 | { | |
17017 | #if wxUSE_UNICODE | |
17018 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17019 | #else | |
17020 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17021 | #endif | |
17022 | } | |
17023 | return resultobj; | |
17024 | fail: | |
17025 | return NULL; | |
17026 | } | |
17027 | ||
17028 | ||
c370783e | 17029 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17030 | PyObject *resultobj; |
17031 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17032 | PyObject *result; | |
17033 | PyObject * obj0 = 0 ; | |
17034 | char *kwnames[] = { | |
17035 | (char *) "self", NULL | |
17036 | }; | |
17037 | ||
17038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
17039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17041 | { |
17042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17043 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
17044 | ||
17045 | wxPyEndAllowThreads(__tstate); | |
17046 | if (PyErr_Occurred()) SWIG_fail; | |
17047 | } | |
17048 | resultobj = result; | |
17049 | return resultobj; | |
17050 | fail: | |
17051 | return NULL; | |
17052 | } | |
17053 | ||
17054 | ||
c370783e | 17055 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17056 | PyObject *resultobj; |
17057 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17058 | long arg2 ; | |
17059 | PyObject *result; | |
17060 | PyObject * obj0 = 0 ; | |
17061 | PyObject * obj1 = 0 ; | |
17062 | char *kwnames[] = { | |
17063 | (char *) "self",(char *) "index", NULL | |
17064 | }; | |
17065 | ||
17066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17069 | { | |
17070 | arg2 = (long)(SWIG_As_long(obj1)); | |
17071 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17072 | } | |
d55e5bfc RD |
17073 | { |
17074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17075 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
17076 | ||
17077 | wxPyEndAllowThreads(__tstate); | |
17078 | if (PyErr_Occurred()) SWIG_fail; | |
17079 | } | |
17080 | resultobj = result; | |
17081 | return resultobj; | |
17082 | fail: | |
17083 | return NULL; | |
17084 | } | |
17085 | ||
17086 | ||
c370783e | 17087 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17088 | PyObject *resultobj; |
17089 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17090 | PyObject *result; | |
17091 | PyObject * obj0 = 0 ; | |
17092 | char *kwnames[] = { | |
17093 | (char *) "self", NULL | |
17094 | }; | |
17095 | ||
17096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
17097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17099 | { |
17100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17101 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
17102 | ||
17103 | wxPyEndAllowThreads(__tstate); | |
17104 | if (PyErr_Occurred()) SWIG_fail; | |
17105 | } | |
17106 | resultobj = result; | |
17107 | return resultobj; | |
17108 | fail: | |
17109 | return NULL; | |
17110 | } | |
17111 | ||
17112 | ||
c370783e | 17113 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17114 | PyObject *resultobj; |
17115 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17116 | long arg2 ; | |
17117 | PyObject *result; | |
17118 | PyObject * obj0 = 0 ; | |
17119 | PyObject * obj1 = 0 ; | |
17120 | char *kwnames[] = { | |
17121 | (char *) "self",(char *) "index", NULL | |
17122 | }; | |
17123 | ||
17124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17127 | { | |
17128 | arg2 = (long)(SWIG_As_long(obj1)); | |
17129 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17130 | } | |
d55e5bfc RD |
17131 | { |
17132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17133 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
17134 | ||
17135 | wxPyEndAllowThreads(__tstate); | |
17136 | if (PyErr_Occurred()) SWIG_fail; | |
17137 | } | |
17138 | resultobj = result; | |
17139 | return resultobj; | |
17140 | fail: | |
17141 | return NULL; | |
17142 | } | |
17143 | ||
17144 | ||
c370783e | 17145 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17146 | PyObject *resultobj; |
17147 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 17148 | bool arg2 = (bool) false ; |
d55e5bfc RD |
17149 | size_t result; |
17150 | PyObject * obj0 = 0 ; | |
17151 | PyObject * obj1 = 0 ; | |
17152 | char *kwnames[] = { | |
17153 | (char *) "self",(char *) "recursive", NULL | |
17154 | }; | |
17155 | ||
17156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 17159 | if (obj1) { |
36ed4f51 RD |
17160 | { |
17161 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17162 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17163 | } | |
d55e5bfc RD |
17164 | } |
17165 | { | |
17166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17167 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
17168 | ||
17169 | wxPyEndAllowThreads(__tstate); | |
17170 | if (PyErr_Occurred()) SWIG_fail; | |
17171 | } | |
36ed4f51 RD |
17172 | { |
17173 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
17174 | } | |
d55e5bfc RD |
17175 | return resultobj; |
17176 | fail: | |
17177 | return NULL; | |
17178 | } | |
17179 | ||
17180 | ||
c370783e | 17181 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17182 | PyObject *resultobj; |
17183 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 17184 | bool arg2 = (bool) false ; |
d55e5bfc RD |
17185 | size_t result; |
17186 | PyObject * obj0 = 0 ; | |
17187 | PyObject * obj1 = 0 ; | |
17188 | char *kwnames[] = { | |
17189 | (char *) "self",(char *) "recursive", NULL | |
17190 | }; | |
17191 | ||
17192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 17195 | if (obj1) { |
36ed4f51 RD |
17196 | { |
17197 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17198 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17199 | } | |
d55e5bfc RD |
17200 | } |
17201 | { | |
17202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17203 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
17204 | ||
17205 | wxPyEndAllowThreads(__tstate); | |
17206 | if (PyErr_Occurred()) SWIG_fail; | |
17207 | } | |
36ed4f51 RD |
17208 | { |
17209 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
17210 | } | |
d55e5bfc RD |
17211 | return resultobj; |
17212 | fail: | |
17213 | return NULL; | |
17214 | } | |
17215 | ||
17216 | ||
c370783e | 17217 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17218 | PyObject *resultobj; |
17219 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17220 | wxString *arg2 = 0 ; | |
17221 | bool result; | |
b411df4a | 17222 | bool temp2 = false ; |
d55e5bfc RD |
17223 | PyObject * obj0 = 0 ; |
17224 | PyObject * obj1 = 0 ; | |
17225 | char *kwnames[] = { | |
17226 | (char *) "self",(char *) "name", NULL | |
17227 | }; | |
17228 | ||
17229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17230 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17231 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17232 | { |
17233 | arg2 = wxString_in_helper(obj1); | |
17234 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17235 | temp2 = true; |
d55e5bfc RD |
17236 | } |
17237 | { | |
17238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17239 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
17240 | ||
17241 | wxPyEndAllowThreads(__tstate); | |
17242 | if (PyErr_Occurred()) SWIG_fail; | |
17243 | } | |
17244 | { | |
17245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17246 | } | |
17247 | { | |
17248 | if (temp2) | |
17249 | delete arg2; | |
17250 | } | |
17251 | return resultobj; | |
17252 | fail: | |
17253 | { | |
17254 | if (temp2) | |
17255 | delete arg2; | |
17256 | } | |
17257 | return NULL; | |
17258 | } | |
17259 | ||
17260 | ||
c370783e | 17261 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17262 | PyObject *resultobj; |
17263 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17264 | wxString *arg2 = 0 ; | |
17265 | bool result; | |
b411df4a | 17266 | bool temp2 = false ; |
d55e5bfc RD |
17267 | PyObject * obj0 = 0 ; |
17268 | PyObject * obj1 = 0 ; | |
17269 | char *kwnames[] = { | |
17270 | (char *) "self",(char *) "name", NULL | |
17271 | }; | |
17272 | ||
17273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17276 | { |
17277 | arg2 = wxString_in_helper(obj1); | |
17278 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17279 | temp2 = true; |
d55e5bfc RD |
17280 | } |
17281 | { | |
17282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17283 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
17284 | ||
17285 | wxPyEndAllowThreads(__tstate); | |
17286 | if (PyErr_Occurred()) SWIG_fail; | |
17287 | } | |
17288 | { | |
17289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17290 | } | |
17291 | { | |
17292 | if (temp2) | |
17293 | delete arg2; | |
17294 | } | |
17295 | return resultobj; | |
17296 | fail: | |
17297 | { | |
17298 | if (temp2) | |
17299 | delete arg2; | |
17300 | } | |
17301 | return NULL; | |
17302 | } | |
17303 | ||
17304 | ||
c370783e | 17305 | static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17306 | PyObject *resultobj; |
17307 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17308 | wxString *arg2 = 0 ; | |
17309 | bool result; | |
b411df4a | 17310 | bool temp2 = false ; |
d55e5bfc RD |
17311 | PyObject * obj0 = 0 ; |
17312 | PyObject * obj1 = 0 ; | |
17313 | char *kwnames[] = { | |
17314 | (char *) "self",(char *) "name", NULL | |
17315 | }; | |
17316 | ||
17317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17320 | { |
17321 | arg2 = wxString_in_helper(obj1); | |
17322 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17323 | temp2 = true; |
d55e5bfc RD |
17324 | } |
17325 | { | |
17326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17327 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
17328 | ||
17329 | wxPyEndAllowThreads(__tstate); | |
17330 | if (PyErr_Occurred()) SWIG_fail; | |
17331 | } | |
17332 | { | |
17333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17334 | } | |
17335 | { | |
17336 | if (temp2) | |
17337 | delete arg2; | |
17338 | } | |
17339 | return resultobj; | |
17340 | fail: | |
17341 | { | |
17342 | if (temp2) | |
17343 | delete arg2; | |
17344 | } | |
17345 | return NULL; | |
17346 | } | |
17347 | ||
17348 | ||
c370783e | 17349 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17350 | PyObject *resultobj; |
17351 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17352 | wxString *arg2 = 0 ; | |
36ed4f51 | 17353 | wxConfigBase::EntryType result; |
b411df4a | 17354 | bool temp2 = false ; |
d55e5bfc RD |
17355 | PyObject * obj0 = 0 ; |
17356 | PyObject * obj1 = 0 ; | |
17357 | char *kwnames[] = { | |
17358 | (char *) "self",(char *) "name", NULL | |
17359 | }; | |
17360 | ||
17361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17364 | { |
17365 | arg2 = wxString_in_helper(obj1); | |
17366 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17367 | temp2 = true; |
d55e5bfc RD |
17368 | } |
17369 | { | |
17370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17371 | result = (wxConfigBase::EntryType)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); |
d55e5bfc RD |
17372 | |
17373 | wxPyEndAllowThreads(__tstate); | |
17374 | if (PyErr_Occurred()) SWIG_fail; | |
17375 | } | |
36ed4f51 | 17376 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
17377 | { |
17378 | if (temp2) | |
17379 | delete arg2; | |
17380 | } | |
17381 | return resultobj; | |
17382 | fail: | |
17383 | { | |
17384 | if (temp2) | |
17385 | delete arg2; | |
17386 | } | |
17387 | return NULL; | |
17388 | } | |
17389 | ||
17390 | ||
c370783e | 17391 | static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17392 | PyObject *resultobj; |
17393 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17394 | wxString *arg2 = 0 ; | |
17395 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17396 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17397 | wxString result; | |
b411df4a RD |
17398 | bool temp2 = false ; |
17399 | bool temp3 = false ; | |
d55e5bfc RD |
17400 | PyObject * obj0 = 0 ; |
17401 | PyObject * obj1 = 0 ; | |
17402 | PyObject * obj2 = 0 ; | |
17403 | char *kwnames[] = { | |
17404 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
17405 | }; | |
17406 | ||
17407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
17408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17410 | { |
17411 | arg2 = wxString_in_helper(obj1); | |
17412 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17413 | temp2 = true; |
d55e5bfc RD |
17414 | } |
17415 | if (obj2) { | |
17416 | { | |
17417 | arg3 = wxString_in_helper(obj2); | |
17418 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 17419 | temp3 = true; |
d55e5bfc RD |
17420 | } |
17421 | } | |
17422 | { | |
17423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17424 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
17425 | ||
17426 | wxPyEndAllowThreads(__tstate); | |
17427 | if (PyErr_Occurred()) SWIG_fail; | |
17428 | } | |
17429 | { | |
17430 | #if wxUSE_UNICODE | |
17431 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17432 | #else | |
17433 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17434 | #endif | |
17435 | } | |
17436 | { | |
17437 | if (temp2) | |
17438 | delete arg2; | |
17439 | } | |
17440 | { | |
17441 | if (temp3) | |
17442 | delete arg3; | |
17443 | } | |
17444 | return resultobj; | |
17445 | fail: | |
17446 | { | |
17447 | if (temp2) | |
17448 | delete arg2; | |
17449 | } | |
17450 | { | |
17451 | if (temp3) | |
17452 | delete arg3; | |
17453 | } | |
17454 | return NULL; | |
17455 | } | |
17456 | ||
17457 | ||
c370783e | 17458 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17459 | PyObject *resultobj; |
17460 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17461 | wxString *arg2 = 0 ; | |
17462 | long arg3 = (long) 0 ; | |
17463 | long result; | |
b411df4a | 17464 | bool temp2 = false ; |
d55e5bfc RD |
17465 | PyObject * obj0 = 0 ; |
17466 | PyObject * obj1 = 0 ; | |
17467 | PyObject * obj2 = 0 ; | |
17468 | char *kwnames[] = { | |
17469 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
17470 | }; | |
17471 | ||
17472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
17473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17475 | { |
17476 | arg2 = wxString_in_helper(obj1); | |
17477 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17478 | temp2 = true; |
d55e5bfc RD |
17479 | } |
17480 | if (obj2) { | |
36ed4f51 RD |
17481 | { |
17482 | arg3 = (long)(SWIG_As_long(obj2)); | |
17483 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17484 | } | |
d55e5bfc RD |
17485 | } |
17486 | { | |
17487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17488 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
17489 | ||
17490 | wxPyEndAllowThreads(__tstate); | |
17491 | if (PyErr_Occurred()) SWIG_fail; | |
17492 | } | |
36ed4f51 RD |
17493 | { |
17494 | resultobj = SWIG_From_long((long)(result)); | |
17495 | } | |
d55e5bfc RD |
17496 | { |
17497 | if (temp2) | |
17498 | delete arg2; | |
17499 | } | |
17500 | return resultobj; | |
17501 | fail: | |
17502 | { | |
17503 | if (temp2) | |
17504 | delete arg2; | |
17505 | } | |
17506 | return NULL; | |
17507 | } | |
17508 | ||
17509 | ||
c370783e | 17510 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17511 | PyObject *resultobj; |
17512 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17513 | wxString *arg2 = 0 ; | |
17514 | double arg3 = (double) 0.0 ; | |
17515 | double result; | |
b411df4a | 17516 | bool temp2 = false ; |
d55e5bfc RD |
17517 | PyObject * obj0 = 0 ; |
17518 | PyObject * obj1 = 0 ; | |
17519 | PyObject * obj2 = 0 ; | |
17520 | char *kwnames[] = { | |
17521 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
17522 | }; | |
17523 | ||
17524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
17525 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17526 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17527 | { |
17528 | arg2 = wxString_in_helper(obj1); | |
17529 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17530 | temp2 = true; |
d55e5bfc RD |
17531 | } |
17532 | if (obj2) { | |
36ed4f51 RD |
17533 | { |
17534 | arg3 = (double)(SWIG_As_double(obj2)); | |
17535 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17536 | } | |
d55e5bfc RD |
17537 | } |
17538 | { | |
17539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17540 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
17541 | ||
17542 | wxPyEndAllowThreads(__tstate); | |
17543 | if (PyErr_Occurred()) SWIG_fail; | |
17544 | } | |
36ed4f51 RD |
17545 | { |
17546 | resultobj = SWIG_From_double((double)(result)); | |
17547 | } | |
d55e5bfc RD |
17548 | { |
17549 | if (temp2) | |
17550 | delete arg2; | |
17551 | } | |
17552 | return resultobj; | |
17553 | fail: | |
17554 | { | |
17555 | if (temp2) | |
17556 | delete arg2; | |
17557 | } | |
17558 | return NULL; | |
17559 | } | |
17560 | ||
17561 | ||
c370783e | 17562 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17563 | PyObject *resultobj; |
17564 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17565 | wxString *arg2 = 0 ; | |
b411df4a | 17566 | bool arg3 = (bool) false ; |
d55e5bfc | 17567 | bool result; |
b411df4a | 17568 | bool temp2 = false ; |
d55e5bfc RD |
17569 | PyObject * obj0 = 0 ; |
17570 | PyObject * obj1 = 0 ; | |
17571 | PyObject * obj2 = 0 ; | |
17572 | char *kwnames[] = { | |
17573 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
17574 | }; | |
17575 | ||
17576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
17577 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17578 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17579 | { |
17580 | arg2 = wxString_in_helper(obj1); | |
17581 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17582 | temp2 = true; |
d55e5bfc RD |
17583 | } |
17584 | if (obj2) { | |
36ed4f51 RD |
17585 | { |
17586 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
17587 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17588 | } | |
d55e5bfc RD |
17589 | } |
17590 | { | |
17591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17592 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
17593 | ||
17594 | wxPyEndAllowThreads(__tstate); | |
17595 | if (PyErr_Occurred()) SWIG_fail; | |
17596 | } | |
17597 | { | |
17598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17599 | } | |
17600 | { | |
17601 | if (temp2) | |
17602 | delete arg2; | |
17603 | } | |
17604 | return resultobj; | |
17605 | fail: | |
17606 | { | |
17607 | if (temp2) | |
17608 | delete arg2; | |
17609 | } | |
17610 | return NULL; | |
17611 | } | |
17612 | ||
17613 | ||
c370783e | 17614 | static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17615 | PyObject *resultobj; |
17616 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17617 | wxString *arg2 = 0 ; | |
17618 | wxString *arg3 = 0 ; | |
17619 | bool result; | |
b411df4a RD |
17620 | bool temp2 = false ; |
17621 | bool temp3 = false ; | |
d55e5bfc RD |
17622 | PyObject * obj0 = 0 ; |
17623 | PyObject * obj1 = 0 ; | |
17624 | PyObject * obj2 = 0 ; | |
17625 | char *kwnames[] = { | |
17626 | (char *) "self",(char *) "key",(char *) "value", NULL | |
17627 | }; | |
17628 | ||
17629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
17630 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17632 | { |
17633 | arg2 = wxString_in_helper(obj1); | |
17634 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17635 | temp2 = true; |
d55e5bfc RD |
17636 | } |
17637 | { | |
17638 | arg3 = wxString_in_helper(obj2); | |
17639 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 17640 | temp3 = true; |
d55e5bfc RD |
17641 | } |
17642 | { | |
17643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17644 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
17645 | ||
17646 | wxPyEndAllowThreads(__tstate); | |
17647 | if (PyErr_Occurred()) SWIG_fail; | |
17648 | } | |
17649 | { | |
17650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17651 | } | |
17652 | { | |
17653 | if (temp2) | |
17654 | delete arg2; | |
17655 | } | |
17656 | { | |
17657 | if (temp3) | |
17658 | delete arg3; | |
17659 | } | |
17660 | return resultobj; | |
17661 | fail: | |
17662 | { | |
17663 | if (temp2) | |
17664 | delete arg2; | |
17665 | } | |
17666 | { | |
17667 | if (temp3) | |
17668 | delete arg3; | |
17669 | } | |
17670 | return NULL; | |
17671 | } | |
17672 | ||
17673 | ||
c370783e | 17674 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17675 | PyObject *resultobj; |
17676 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17677 | wxString *arg2 = 0 ; | |
17678 | long arg3 ; | |
17679 | bool result; | |
b411df4a | 17680 | bool temp2 = false ; |
d55e5bfc RD |
17681 | PyObject * obj0 = 0 ; |
17682 | PyObject * obj1 = 0 ; | |
17683 | PyObject * obj2 = 0 ; | |
17684 | char *kwnames[] = { | |
17685 | (char *) "self",(char *) "key",(char *) "value", NULL | |
17686 | }; | |
17687 | ||
17688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
17689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17691 | { |
17692 | arg2 = wxString_in_helper(obj1); | |
17693 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17694 | temp2 = true; |
d55e5bfc | 17695 | } |
36ed4f51 RD |
17696 | { |
17697 | arg3 = (long)(SWIG_As_long(obj2)); | |
17698 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17699 | } | |
d55e5bfc RD |
17700 | { |
17701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17702 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
17703 | ||
17704 | wxPyEndAllowThreads(__tstate); | |
17705 | if (PyErr_Occurred()) SWIG_fail; | |
17706 | } | |
17707 | { | |
17708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17709 | } | |
17710 | { | |
17711 | if (temp2) | |
17712 | delete arg2; | |
17713 | } | |
17714 | return resultobj; | |
17715 | fail: | |
17716 | { | |
17717 | if (temp2) | |
17718 | delete arg2; | |
17719 | } | |
17720 | return NULL; | |
17721 | } | |
17722 | ||
17723 | ||
c370783e | 17724 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17725 | PyObject *resultobj; |
17726 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17727 | wxString *arg2 = 0 ; | |
17728 | double arg3 ; | |
17729 | bool result; | |
b411df4a | 17730 | bool temp2 = false ; |
d55e5bfc RD |
17731 | PyObject * obj0 = 0 ; |
17732 | PyObject * obj1 = 0 ; | |
17733 | PyObject * obj2 = 0 ; | |
17734 | char *kwnames[] = { | |
17735 | (char *) "self",(char *) "key",(char *) "value", NULL | |
17736 | }; | |
17737 | ||
17738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
17739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17741 | { |
17742 | arg2 = wxString_in_helper(obj1); | |
17743 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17744 | temp2 = true; |
d55e5bfc | 17745 | } |
36ed4f51 RD |
17746 | { |
17747 | arg3 = (double)(SWIG_As_double(obj2)); | |
17748 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17749 | } | |
d55e5bfc RD |
17750 | { |
17751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17752 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
17753 | ||
17754 | wxPyEndAllowThreads(__tstate); | |
17755 | if (PyErr_Occurred()) SWIG_fail; | |
17756 | } | |
17757 | { | |
17758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17759 | } | |
17760 | { | |
17761 | if (temp2) | |
17762 | delete arg2; | |
17763 | } | |
17764 | return resultobj; | |
17765 | fail: | |
17766 | { | |
17767 | if (temp2) | |
17768 | delete arg2; | |
17769 | } | |
17770 | return NULL; | |
17771 | } | |
17772 | ||
17773 | ||
c370783e | 17774 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17775 | PyObject *resultobj; |
17776 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17777 | wxString *arg2 = 0 ; | |
17778 | bool arg3 ; | |
17779 | bool result; | |
b411df4a | 17780 | bool temp2 = false ; |
d55e5bfc RD |
17781 | PyObject * obj0 = 0 ; |
17782 | PyObject * obj1 = 0 ; | |
17783 | PyObject * obj2 = 0 ; | |
17784 | char *kwnames[] = { | |
17785 | (char *) "self",(char *) "key",(char *) "value", NULL | |
17786 | }; | |
17787 | ||
17788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
17789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17791 | { |
17792 | arg2 = wxString_in_helper(obj1); | |
17793 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17794 | temp2 = true; |
d55e5bfc | 17795 | } |
36ed4f51 RD |
17796 | { |
17797 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
17798 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17799 | } | |
d55e5bfc RD |
17800 | { |
17801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17802 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
17803 | ||
17804 | wxPyEndAllowThreads(__tstate); | |
17805 | if (PyErr_Occurred()) SWIG_fail; | |
17806 | } | |
17807 | { | |
17808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17809 | } | |
17810 | { | |
17811 | if (temp2) | |
17812 | delete arg2; | |
17813 | } | |
17814 | return resultobj; | |
17815 | fail: | |
17816 | { | |
17817 | if (temp2) | |
17818 | delete arg2; | |
17819 | } | |
17820 | return NULL; | |
17821 | } | |
17822 | ||
17823 | ||
c370783e | 17824 | static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17825 | PyObject *resultobj; |
17826 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 17827 | bool arg2 = (bool) false ; |
d55e5bfc RD |
17828 | bool result; |
17829 | PyObject * obj0 = 0 ; | |
17830 | PyObject * obj1 = 0 ; | |
17831 | char *kwnames[] = { | |
17832 | (char *) "self",(char *) "currentOnly", NULL | |
17833 | }; | |
17834 | ||
17835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 17838 | if (obj1) { |
36ed4f51 RD |
17839 | { |
17840 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17841 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17842 | } | |
d55e5bfc RD |
17843 | } |
17844 | { | |
17845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17846 | result = (bool)(arg1)->Flush(arg2); | |
17847 | ||
17848 | wxPyEndAllowThreads(__tstate); | |
17849 | if (PyErr_Occurred()) SWIG_fail; | |
17850 | } | |
17851 | { | |
17852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17853 | } | |
17854 | return resultobj; | |
17855 | fail: | |
17856 | return NULL; | |
17857 | } | |
17858 | ||
17859 | ||
c370783e | 17860 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17861 | PyObject *resultobj; |
17862 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17863 | wxString *arg2 = 0 ; | |
17864 | wxString *arg3 = 0 ; | |
17865 | bool result; | |
b411df4a RD |
17866 | bool temp2 = false ; |
17867 | bool temp3 = false ; | |
d55e5bfc RD |
17868 | PyObject * obj0 = 0 ; |
17869 | PyObject * obj1 = 0 ; | |
17870 | PyObject * obj2 = 0 ; | |
17871 | char *kwnames[] = { | |
17872 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
17873 | }; | |
17874 | ||
17875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
17876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17878 | { |
17879 | arg2 = wxString_in_helper(obj1); | |
17880 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17881 | temp2 = true; |
d55e5bfc RD |
17882 | } |
17883 | { | |
17884 | arg3 = wxString_in_helper(obj2); | |
17885 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 17886 | temp3 = true; |
d55e5bfc RD |
17887 | } |
17888 | { | |
17889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17890 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
17891 | ||
17892 | wxPyEndAllowThreads(__tstate); | |
17893 | if (PyErr_Occurred()) SWIG_fail; | |
17894 | } | |
17895 | { | |
17896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17897 | } | |
17898 | { | |
17899 | if (temp2) | |
17900 | delete arg2; | |
17901 | } | |
17902 | { | |
17903 | if (temp3) | |
17904 | delete arg3; | |
17905 | } | |
17906 | return resultobj; | |
17907 | fail: | |
17908 | { | |
17909 | if (temp2) | |
17910 | delete arg2; | |
17911 | } | |
17912 | { | |
17913 | if (temp3) | |
17914 | delete arg3; | |
17915 | } | |
17916 | return NULL; | |
17917 | } | |
17918 | ||
17919 | ||
c370783e | 17920 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17921 | PyObject *resultobj; |
17922 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17923 | wxString *arg2 = 0 ; | |
17924 | wxString *arg3 = 0 ; | |
17925 | bool result; | |
b411df4a RD |
17926 | bool temp2 = false ; |
17927 | bool temp3 = false ; | |
d55e5bfc RD |
17928 | PyObject * obj0 = 0 ; |
17929 | PyObject * obj1 = 0 ; | |
17930 | PyObject * obj2 = 0 ; | |
17931 | char *kwnames[] = { | |
17932 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
17933 | }; | |
17934 | ||
17935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
17936 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17937 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17938 | { |
17939 | arg2 = wxString_in_helper(obj1); | |
17940 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17941 | temp2 = true; |
d55e5bfc RD |
17942 | } |
17943 | { | |
17944 | arg3 = wxString_in_helper(obj2); | |
17945 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 17946 | temp3 = true; |
d55e5bfc RD |
17947 | } |
17948 | { | |
17949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17950 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
17951 | ||
17952 | wxPyEndAllowThreads(__tstate); | |
17953 | if (PyErr_Occurred()) SWIG_fail; | |
17954 | } | |
17955 | { | |
17956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17957 | } | |
17958 | { | |
17959 | if (temp2) | |
17960 | delete arg2; | |
17961 | } | |
17962 | { | |
17963 | if (temp3) | |
17964 | delete arg3; | |
17965 | } | |
17966 | return resultobj; | |
17967 | fail: | |
17968 | { | |
17969 | if (temp2) | |
17970 | delete arg2; | |
17971 | } | |
17972 | { | |
17973 | if (temp3) | |
17974 | delete arg3; | |
17975 | } | |
17976 | return NULL; | |
17977 | } | |
17978 | ||
17979 | ||
c370783e | 17980 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17981 | PyObject *resultobj; |
17982 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17983 | wxString *arg2 = 0 ; | |
b411df4a | 17984 | bool arg3 = (bool) true ; |
d55e5bfc | 17985 | bool result; |
b411df4a | 17986 | bool temp2 = false ; |
d55e5bfc RD |
17987 | PyObject * obj0 = 0 ; |
17988 | PyObject * obj1 = 0 ; | |
17989 | PyObject * obj2 = 0 ; | |
17990 | char *kwnames[] = { | |
17991 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
17992 | }; | |
17993 | ||
17994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
17995 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17996 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17997 | { |
17998 | arg2 = wxString_in_helper(obj1); | |
17999 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18000 | temp2 = true; |
d55e5bfc RD |
18001 | } |
18002 | if (obj2) { | |
36ed4f51 RD |
18003 | { |
18004 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
18005 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18006 | } | |
d55e5bfc RD |
18007 | } |
18008 | { | |
18009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18010 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
18011 | ||
18012 | wxPyEndAllowThreads(__tstate); | |
18013 | if (PyErr_Occurred()) SWIG_fail; | |
18014 | } | |
18015 | { | |
18016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18017 | } | |
18018 | { | |
18019 | if (temp2) | |
18020 | delete arg2; | |
18021 | } | |
18022 | return resultobj; | |
18023 | fail: | |
18024 | { | |
18025 | if (temp2) | |
18026 | delete arg2; | |
18027 | } | |
18028 | return NULL; | |
18029 | } | |
18030 | ||
18031 | ||
c370783e | 18032 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18033 | PyObject *resultobj; |
18034 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18035 | wxString *arg2 = 0 ; | |
18036 | bool result; | |
b411df4a | 18037 | bool temp2 = false ; |
d55e5bfc RD |
18038 | PyObject * obj0 = 0 ; |
18039 | PyObject * obj1 = 0 ; | |
18040 | char *kwnames[] = { | |
18041 | (char *) "self",(char *) "key", NULL | |
18042 | }; | |
18043 | ||
18044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18047 | { |
18048 | arg2 = wxString_in_helper(obj1); | |
18049 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18050 | temp2 = true; |
d55e5bfc RD |
18051 | } |
18052 | { | |
18053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18054 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
18055 | ||
18056 | wxPyEndAllowThreads(__tstate); | |
18057 | if (PyErr_Occurred()) SWIG_fail; | |
18058 | } | |
18059 | { | |
18060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18061 | } | |
18062 | { | |
18063 | if (temp2) | |
18064 | delete arg2; | |
18065 | } | |
18066 | return resultobj; | |
18067 | fail: | |
18068 | { | |
18069 | if (temp2) | |
18070 | delete arg2; | |
18071 | } | |
18072 | return NULL; | |
18073 | } | |
18074 | ||
18075 | ||
c370783e | 18076 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18077 | PyObject *resultobj; |
18078 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18079 | bool result; | |
18080 | PyObject * obj0 = 0 ; | |
18081 | char *kwnames[] = { | |
18082 | (char *) "self", NULL | |
18083 | }; | |
18084 | ||
18085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18088 | { |
18089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18090 | result = (bool)(arg1)->DeleteAll(); | |
18091 | ||
18092 | wxPyEndAllowThreads(__tstate); | |
18093 | if (PyErr_Occurred()) SWIG_fail; | |
18094 | } | |
18095 | { | |
18096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18097 | } | |
18098 | return resultobj; | |
18099 | fail: | |
18100 | return NULL; | |
18101 | } | |
18102 | ||
18103 | ||
c370783e | 18104 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18105 | PyObject *resultobj; |
18106 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 18107 | bool arg2 = (bool) true ; |
d55e5bfc RD |
18108 | PyObject * obj0 = 0 ; |
18109 | PyObject * obj1 = 0 ; | |
18110 | char *kwnames[] = { | |
18111 | (char *) "self",(char *) "doIt", NULL | |
18112 | }; | |
18113 | ||
18114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 18117 | if (obj1) { |
36ed4f51 RD |
18118 | { |
18119 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18120 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18121 | } | |
d55e5bfc RD |
18122 | } |
18123 | { | |
18124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18125 | (arg1)->SetExpandEnvVars(arg2); | |
18126 | ||
18127 | wxPyEndAllowThreads(__tstate); | |
18128 | if (PyErr_Occurred()) SWIG_fail; | |
18129 | } | |
18130 | Py_INCREF(Py_None); resultobj = Py_None; | |
18131 | return resultobj; | |
18132 | fail: | |
18133 | return NULL; | |
18134 | } | |
18135 | ||
18136 | ||
c370783e | 18137 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18138 | PyObject *resultobj; |
18139 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18140 | bool result; | |
18141 | PyObject * obj0 = 0 ; | |
18142 | char *kwnames[] = { | |
18143 | (char *) "self", NULL | |
18144 | }; | |
18145 | ||
18146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18149 | { |
18150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18151 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
18152 | ||
18153 | wxPyEndAllowThreads(__tstate); | |
18154 | if (PyErr_Occurred()) SWIG_fail; | |
18155 | } | |
18156 | { | |
18157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18158 | } | |
18159 | return resultobj; | |
18160 | fail: | |
18161 | return NULL; | |
18162 | } | |
18163 | ||
18164 | ||
c370783e | 18165 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18166 | PyObject *resultobj; |
18167 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 18168 | bool arg2 = (bool) true ; |
d55e5bfc RD |
18169 | PyObject * obj0 = 0 ; |
18170 | PyObject * obj1 = 0 ; | |
18171 | char *kwnames[] = { | |
18172 | (char *) "self",(char *) "doIt", NULL | |
18173 | }; | |
18174 | ||
18175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18176 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 18178 | if (obj1) { |
36ed4f51 RD |
18179 | { |
18180 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18181 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18182 | } | |
d55e5bfc RD |
18183 | } |
18184 | { | |
18185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18186 | (arg1)->SetRecordDefaults(arg2); | |
18187 | ||
18188 | wxPyEndAllowThreads(__tstate); | |
18189 | if (PyErr_Occurred()) SWIG_fail; | |
18190 | } | |
18191 | Py_INCREF(Py_None); resultobj = Py_None; | |
18192 | return resultobj; | |
18193 | fail: | |
18194 | return NULL; | |
18195 | } | |
18196 | ||
18197 | ||
c370783e | 18198 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18199 | PyObject *resultobj; |
18200 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18201 | bool result; | |
18202 | PyObject * obj0 = 0 ; | |
18203 | char *kwnames[] = { | |
18204 | (char *) "self", NULL | |
18205 | }; | |
18206 | ||
18207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18210 | { |
18211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18212 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
18213 | ||
18214 | wxPyEndAllowThreads(__tstate); | |
18215 | if (PyErr_Occurred()) SWIG_fail; | |
18216 | } | |
18217 | { | |
18218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18219 | } | |
18220 | return resultobj; | |
18221 | fail: | |
18222 | return NULL; | |
18223 | } | |
18224 | ||
18225 | ||
c370783e | 18226 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18227 | PyObject *resultobj; |
18228 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18229 | wxString *arg2 = 0 ; | |
18230 | wxString result; | |
b411df4a | 18231 | bool temp2 = false ; |
d55e5bfc RD |
18232 | PyObject * obj0 = 0 ; |
18233 | PyObject * obj1 = 0 ; | |
18234 | char *kwnames[] = { | |
18235 | (char *) "self",(char *) "str", NULL | |
18236 | }; | |
18237 | ||
18238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18239 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18240 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18241 | { |
18242 | arg2 = wxString_in_helper(obj1); | |
18243 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18244 | temp2 = true; |
d55e5bfc RD |
18245 | } |
18246 | { | |
18247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18248 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
18249 | ||
18250 | wxPyEndAllowThreads(__tstate); | |
18251 | if (PyErr_Occurred()) SWIG_fail; | |
18252 | } | |
18253 | { | |
18254 | #if wxUSE_UNICODE | |
18255 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18256 | #else | |
18257 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18258 | #endif | |
18259 | } | |
18260 | { | |
18261 | if (temp2) | |
18262 | delete arg2; | |
18263 | } | |
18264 | return resultobj; | |
18265 | fail: | |
18266 | { | |
18267 | if (temp2) | |
18268 | delete arg2; | |
18269 | } | |
18270 | return NULL; | |
18271 | } | |
18272 | ||
18273 | ||
c370783e | 18274 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18275 | PyObject *resultobj; |
18276 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18277 | wxString result; | |
18278 | PyObject * obj0 = 0 ; | |
18279 | char *kwnames[] = { | |
18280 | (char *) "self", NULL | |
18281 | }; | |
18282 | ||
18283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18286 | { |
18287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18288 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
18289 | ||
18290 | wxPyEndAllowThreads(__tstate); | |
18291 | if (PyErr_Occurred()) SWIG_fail; | |
18292 | } | |
18293 | { | |
18294 | #if wxUSE_UNICODE | |
18295 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18296 | #else | |
18297 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18298 | #endif | |
18299 | } | |
18300 | return resultobj; | |
18301 | fail: | |
18302 | return NULL; | |
18303 | } | |
18304 | ||
18305 | ||
c370783e | 18306 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18307 | PyObject *resultobj; |
18308 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18309 | wxString result; | |
18310 | PyObject * obj0 = 0 ; | |
18311 | char *kwnames[] = { | |
18312 | (char *) "self", NULL | |
18313 | }; | |
18314 | ||
18315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18318 | { |
18319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18320 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
18321 | ||
18322 | wxPyEndAllowThreads(__tstate); | |
18323 | if (PyErr_Occurred()) SWIG_fail; | |
18324 | } | |
18325 | { | |
18326 | #if wxUSE_UNICODE | |
18327 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18328 | #else | |
18329 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18330 | #endif | |
18331 | } | |
18332 | return resultobj; | |
18333 | fail: | |
18334 | return NULL; | |
18335 | } | |
18336 | ||
18337 | ||
c370783e | 18338 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18339 | PyObject *resultobj; |
18340 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18341 | wxString *arg2 = 0 ; | |
b411df4a | 18342 | bool temp2 = false ; |
d55e5bfc RD |
18343 | PyObject * obj0 = 0 ; |
18344 | PyObject * obj1 = 0 ; | |
18345 | char *kwnames[] = { | |
18346 | (char *) "self",(char *) "appName", NULL | |
18347 | }; | |
18348 | ||
18349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18350 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18351 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18352 | { |
18353 | arg2 = wxString_in_helper(obj1); | |
18354 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18355 | temp2 = true; |
d55e5bfc RD |
18356 | } |
18357 | { | |
18358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18359 | (arg1)->SetAppName((wxString const &)*arg2); | |
18360 | ||
18361 | wxPyEndAllowThreads(__tstate); | |
18362 | if (PyErr_Occurred()) SWIG_fail; | |
18363 | } | |
18364 | Py_INCREF(Py_None); resultobj = Py_None; | |
18365 | { | |
18366 | if (temp2) | |
18367 | delete arg2; | |
18368 | } | |
18369 | return resultobj; | |
18370 | fail: | |
18371 | { | |
18372 | if (temp2) | |
18373 | delete arg2; | |
18374 | } | |
18375 | return NULL; | |
18376 | } | |
18377 | ||
18378 | ||
c370783e | 18379 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18380 | PyObject *resultobj; |
18381 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18382 | wxString *arg2 = 0 ; | |
b411df4a | 18383 | bool temp2 = false ; |
d55e5bfc RD |
18384 | PyObject * obj0 = 0 ; |
18385 | PyObject * obj1 = 0 ; | |
18386 | char *kwnames[] = { | |
18387 | (char *) "self",(char *) "vendorName", NULL | |
18388 | }; | |
18389 | ||
18390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18391 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18392 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18393 | { |
18394 | arg2 = wxString_in_helper(obj1); | |
18395 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18396 | temp2 = true; |
d55e5bfc RD |
18397 | } |
18398 | { | |
18399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18400 | (arg1)->SetVendorName((wxString const &)*arg2); | |
18401 | ||
18402 | wxPyEndAllowThreads(__tstate); | |
18403 | if (PyErr_Occurred()) SWIG_fail; | |
18404 | } | |
18405 | Py_INCREF(Py_None); resultobj = Py_None; | |
18406 | { | |
18407 | if (temp2) | |
18408 | delete arg2; | |
18409 | } | |
18410 | return resultobj; | |
18411 | fail: | |
18412 | { | |
18413 | if (temp2) | |
18414 | delete arg2; | |
18415 | } | |
18416 | return NULL; | |
18417 | } | |
18418 | ||
18419 | ||
c370783e | 18420 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18421 | PyObject *resultobj; |
18422 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18423 | long arg2 ; | |
18424 | PyObject * obj0 = 0 ; | |
18425 | PyObject * obj1 = 0 ; | |
18426 | char *kwnames[] = { | |
18427 | (char *) "self",(char *) "style", NULL | |
18428 | }; | |
18429 | ||
18430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18431 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18433 | { | |
18434 | arg2 = (long)(SWIG_As_long(obj1)); | |
18435 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18436 | } | |
d55e5bfc RD |
18437 | { |
18438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18439 | (arg1)->SetStyle(arg2); | |
18440 | ||
18441 | wxPyEndAllowThreads(__tstate); | |
18442 | if (PyErr_Occurred()) SWIG_fail; | |
18443 | } | |
18444 | Py_INCREF(Py_None); resultobj = Py_None; | |
18445 | return resultobj; | |
18446 | fail: | |
18447 | return NULL; | |
18448 | } | |
18449 | ||
18450 | ||
c370783e | 18451 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18452 | PyObject *resultobj; |
18453 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18454 | long result; | |
18455 | PyObject * obj0 = 0 ; | |
18456 | char *kwnames[] = { | |
18457 | (char *) "self", NULL | |
18458 | }; | |
18459 | ||
18460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18461 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18463 | { |
18464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18465 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
18466 | ||
18467 | wxPyEndAllowThreads(__tstate); | |
18468 | if (PyErr_Occurred()) SWIG_fail; | |
18469 | } | |
36ed4f51 RD |
18470 | { |
18471 | resultobj = SWIG_From_long((long)(result)); | |
18472 | } | |
d55e5bfc RD |
18473 | return resultobj; |
18474 | fail: | |
18475 | return NULL; | |
18476 | } | |
18477 | ||
18478 | ||
c370783e | 18479 | static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18480 | PyObject *obj; |
18481 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18482 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
18483 | Py_INCREF(obj); | |
18484 | return Py_BuildValue((char *)""); | |
18485 | } | |
c370783e | 18486 | static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18487 | PyObject *resultobj; |
18488 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
18489 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
18490 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
18491 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
18492 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18493 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18494 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18495 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18496 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
18497 | wxConfig *result; | |
b411df4a RD |
18498 | bool temp1 = false ; |
18499 | bool temp2 = false ; | |
18500 | bool temp3 = false ; | |
18501 | bool temp4 = false ; | |
d55e5bfc RD |
18502 | PyObject * obj0 = 0 ; |
18503 | PyObject * obj1 = 0 ; | |
18504 | PyObject * obj2 = 0 ; | |
18505 | PyObject * obj3 = 0 ; | |
18506 | PyObject * obj4 = 0 ; | |
18507 | char *kwnames[] = { | |
18508 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
18509 | }; | |
18510 | ||
18511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18512 | if (obj0) { | |
18513 | { | |
18514 | arg1 = wxString_in_helper(obj0); | |
18515 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 18516 | temp1 = true; |
d55e5bfc RD |
18517 | } |
18518 | } | |
18519 | if (obj1) { | |
18520 | { | |
18521 | arg2 = wxString_in_helper(obj1); | |
18522 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18523 | temp2 = true; |
d55e5bfc RD |
18524 | } |
18525 | } | |
18526 | if (obj2) { | |
18527 | { | |
18528 | arg3 = wxString_in_helper(obj2); | |
18529 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 18530 | temp3 = true; |
d55e5bfc RD |
18531 | } |
18532 | } | |
18533 | if (obj3) { | |
18534 | { | |
18535 | arg4 = wxString_in_helper(obj3); | |
18536 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 18537 | temp4 = true; |
d55e5bfc RD |
18538 | } |
18539 | } | |
18540 | if (obj4) { | |
36ed4f51 RD |
18541 | { |
18542 | arg5 = (long)(SWIG_As_long(obj4)); | |
18543 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18544 | } | |
d55e5bfc RD |
18545 | } |
18546 | { | |
18547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18548 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
18549 | ||
18550 | wxPyEndAllowThreads(__tstate); | |
18551 | if (PyErr_Occurred()) SWIG_fail; | |
18552 | } | |
18553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
18554 | { | |
18555 | if (temp1) | |
18556 | delete arg1; | |
18557 | } | |
18558 | { | |
18559 | if (temp2) | |
18560 | delete arg2; | |
18561 | } | |
18562 | { | |
18563 | if (temp3) | |
18564 | delete arg3; | |
18565 | } | |
18566 | { | |
18567 | if (temp4) | |
18568 | delete arg4; | |
18569 | } | |
18570 | return resultobj; | |
18571 | fail: | |
18572 | { | |
18573 | if (temp1) | |
18574 | delete arg1; | |
18575 | } | |
18576 | { | |
18577 | if (temp2) | |
18578 | delete arg2; | |
18579 | } | |
18580 | { | |
18581 | if (temp3) | |
18582 | delete arg3; | |
18583 | } | |
18584 | { | |
18585 | if (temp4) | |
18586 | delete arg4; | |
18587 | } | |
18588 | return NULL; | |
18589 | } | |
18590 | ||
18591 | ||
c370783e | 18592 | static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18593 | PyObject *resultobj; |
18594 | wxConfig *arg1 = (wxConfig *) 0 ; | |
18595 | PyObject * obj0 = 0 ; | |
18596 | char *kwnames[] = { | |
18597 | (char *) "self", NULL | |
18598 | }; | |
18599 | ||
18600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfig, SWIG_POINTER_EXCEPTION | 0); |
18602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18603 | { |
18604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18605 | delete arg1; | |
18606 | ||
18607 | wxPyEndAllowThreads(__tstate); | |
18608 | if (PyErr_Occurred()) SWIG_fail; | |
18609 | } | |
18610 | Py_INCREF(Py_None); resultobj = Py_None; | |
18611 | return resultobj; | |
18612 | fail: | |
18613 | return NULL; | |
18614 | } | |
18615 | ||
18616 | ||
c370783e | 18617 | static PyObject * Config_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18618 | PyObject *obj; |
18619 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18620 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
18621 | Py_INCREF(obj); | |
18622 | return Py_BuildValue((char *)""); | |
18623 | } | |
c370783e | 18624 | static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18625 | PyObject *resultobj; |
18626 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
18627 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
18628 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
18629 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
18630 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18631 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18632 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18633 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18634 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
18635 | wxFileConfig *result; | |
b411df4a RD |
18636 | bool temp1 = false ; |
18637 | bool temp2 = false ; | |
18638 | bool temp3 = false ; | |
18639 | bool temp4 = false ; | |
d55e5bfc RD |
18640 | PyObject * obj0 = 0 ; |
18641 | PyObject * obj1 = 0 ; | |
18642 | PyObject * obj2 = 0 ; | |
18643 | PyObject * obj3 = 0 ; | |
18644 | PyObject * obj4 = 0 ; | |
18645 | char *kwnames[] = { | |
18646 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
18647 | }; | |
18648 | ||
18649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18650 | if (obj0) { | |
18651 | { | |
18652 | arg1 = wxString_in_helper(obj0); | |
18653 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 18654 | temp1 = true; |
d55e5bfc RD |
18655 | } |
18656 | } | |
18657 | if (obj1) { | |
18658 | { | |
18659 | arg2 = wxString_in_helper(obj1); | |
18660 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18661 | temp2 = true; |
d55e5bfc RD |
18662 | } |
18663 | } | |
18664 | if (obj2) { | |
18665 | { | |
18666 | arg3 = wxString_in_helper(obj2); | |
18667 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 18668 | temp3 = true; |
d55e5bfc RD |
18669 | } |
18670 | } | |
18671 | if (obj3) { | |
18672 | { | |
18673 | arg4 = wxString_in_helper(obj3); | |
18674 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 18675 | temp4 = true; |
d55e5bfc RD |
18676 | } |
18677 | } | |
18678 | if (obj4) { | |
36ed4f51 RD |
18679 | { |
18680 | arg5 = (long)(SWIG_As_long(obj4)); | |
18681 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18682 | } | |
d55e5bfc RD |
18683 | } |
18684 | { | |
18685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18686 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
18687 | ||
18688 | wxPyEndAllowThreads(__tstate); | |
18689 | if (PyErr_Occurred()) SWIG_fail; | |
18690 | } | |
18691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
18692 | { | |
18693 | if (temp1) | |
18694 | delete arg1; | |
18695 | } | |
18696 | { | |
18697 | if (temp2) | |
18698 | delete arg2; | |
18699 | } | |
18700 | { | |
18701 | if (temp3) | |
18702 | delete arg3; | |
18703 | } | |
18704 | { | |
18705 | if (temp4) | |
18706 | delete arg4; | |
18707 | } | |
18708 | return resultobj; | |
18709 | fail: | |
18710 | { | |
18711 | if (temp1) | |
18712 | delete arg1; | |
18713 | } | |
18714 | { | |
18715 | if (temp2) | |
18716 | delete arg2; | |
18717 | } | |
18718 | { | |
18719 | if (temp3) | |
18720 | delete arg3; | |
18721 | } | |
18722 | { | |
18723 | if (temp4) | |
18724 | delete arg4; | |
18725 | } | |
18726 | return NULL; | |
18727 | } | |
18728 | ||
18729 | ||
c370783e | 18730 | static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18731 | PyObject *resultobj; |
18732 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
18733 | PyObject * obj0 = 0 ; | |
18734 | char *kwnames[] = { | |
18735 | (char *) "self", NULL | |
18736 | }; | |
18737 | ||
18738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileConfig, SWIG_POINTER_EXCEPTION | 0); |
18740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18741 | { |
18742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18743 | delete arg1; | |
18744 | ||
18745 | wxPyEndAllowThreads(__tstate); | |
18746 | if (PyErr_Occurred()) SWIG_fail; | |
18747 | } | |
18748 | Py_INCREF(Py_None); resultobj = Py_None; | |
18749 | return resultobj; | |
18750 | fail: | |
18751 | return NULL; | |
18752 | } | |
18753 | ||
18754 | ||
c370783e | 18755 | static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18756 | PyObject *obj; |
18757 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18758 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
18759 | Py_INCREF(obj); | |
18760 | return Py_BuildValue((char *)""); | |
18761 | } | |
c370783e | 18762 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18763 | PyObject *resultobj; |
18764 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18765 | wxString *arg2 = 0 ; | |
18766 | wxConfigPathChanger *result; | |
b411df4a | 18767 | bool temp2 = false ; |
d55e5bfc RD |
18768 | PyObject * obj0 = 0 ; |
18769 | PyObject * obj1 = 0 ; | |
18770 | char *kwnames[] = { | |
18771 | (char *) "config",(char *) "entry", NULL | |
18772 | }; | |
18773 | ||
18774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18775 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18776 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18777 | { |
18778 | arg2 = wxString_in_helper(obj1); | |
18779 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18780 | temp2 = true; |
d55e5bfc RD |
18781 | } |
18782 | { | |
18783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18784 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
18785 | ||
18786 | wxPyEndAllowThreads(__tstate); | |
18787 | if (PyErr_Occurred()) SWIG_fail; | |
18788 | } | |
18789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
18790 | { | |
18791 | if (temp2) | |
18792 | delete arg2; | |
18793 | } | |
18794 | return resultobj; | |
18795 | fail: | |
18796 | { | |
18797 | if (temp2) | |
18798 | delete arg2; | |
18799 | } | |
18800 | return NULL; | |
18801 | } | |
18802 | ||
18803 | ||
c370783e | 18804 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18805 | PyObject *resultobj; |
18806 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
18807 | PyObject * obj0 = 0 ; | |
18808 | char *kwnames[] = { | |
18809 | (char *) "self", NULL | |
18810 | }; | |
18811 | ||
18812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0); |
18814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18815 | { |
18816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18817 | delete arg1; | |
18818 | ||
18819 | wxPyEndAllowThreads(__tstate); | |
18820 | if (PyErr_Occurred()) SWIG_fail; | |
18821 | } | |
18822 | Py_INCREF(Py_None); resultobj = Py_None; | |
18823 | return resultobj; | |
18824 | fail: | |
18825 | return NULL; | |
18826 | } | |
18827 | ||
18828 | ||
c370783e | 18829 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18830 | PyObject *resultobj; |
18831 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
18832 | wxString *result; | |
18833 | PyObject * obj0 = 0 ; | |
18834 | char *kwnames[] = { | |
18835 | (char *) "self", NULL | |
18836 | }; | |
18837 | ||
18838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0); |
18840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18841 | { |
18842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18843 | { | |
18844 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
18845 | result = (wxString *) &_result_ref; | |
18846 | } | |
18847 | ||
18848 | wxPyEndAllowThreads(__tstate); | |
18849 | if (PyErr_Occurred()) SWIG_fail; | |
18850 | } | |
18851 | { | |
18852 | #if wxUSE_UNICODE | |
18853 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18854 | #else | |
18855 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18856 | #endif | |
18857 | } | |
18858 | return resultobj; | |
18859 | fail: | |
18860 | return NULL; | |
18861 | } | |
18862 | ||
18863 | ||
c370783e | 18864 | static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18865 | PyObject *obj; |
18866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18867 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
18868 | Py_INCREF(obj); | |
18869 | return Py_BuildValue((char *)""); | |
18870 | } | |
c370783e | 18871 | static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18872 | PyObject *resultobj; |
18873 | wxString *arg1 = 0 ; | |
18874 | wxString result; | |
b411df4a | 18875 | bool temp1 = false ; |
d55e5bfc RD |
18876 | PyObject * obj0 = 0 ; |
18877 | char *kwnames[] = { | |
18878 | (char *) "sz", NULL | |
18879 | }; | |
18880 | ||
18881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
18882 | { | |
18883 | arg1 = wxString_in_helper(obj0); | |
18884 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 18885 | temp1 = true; |
d55e5bfc RD |
18886 | } |
18887 | { | |
18888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18889 | result = wxExpandEnvVars((wxString const &)*arg1); | |
18890 | ||
18891 | wxPyEndAllowThreads(__tstate); | |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
18893 | } | |
18894 | { | |
18895 | #if wxUSE_UNICODE | |
18896 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18897 | #else | |
18898 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18899 | #endif | |
18900 | } | |
18901 | { | |
18902 | if (temp1) | |
18903 | delete arg1; | |
18904 | } | |
18905 | return resultobj; | |
18906 | fail: | |
18907 | { | |
18908 | if (temp1) | |
18909 | delete arg1; | |
18910 | } | |
18911 | return NULL; | |
18912 | } | |
18913 | ||
18914 | ||
fef4c27a RD |
18915 | static int _wrap_DefaultDateTimeFormat_set(PyObject *) { |
18916 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTimeFormat is read-only."); | |
d55e5bfc RD |
18917 | return 1; |
18918 | } | |
18919 | ||
18920 | ||
fef4c27a | 18921 | static PyObject *_wrap_DefaultDateTimeFormat_get(void) { |
d55e5bfc RD |
18922 | PyObject *pyobj; |
18923 | ||
18924 | { | |
18925 | #if wxUSE_UNICODE | |
fef4c27a | 18926 | pyobj = PyUnicode_FromWideChar((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len()); |
d55e5bfc | 18927 | #else |
fef4c27a | 18928 | pyobj = PyString_FromStringAndSize((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len()); |
d55e5bfc RD |
18929 | #endif |
18930 | } | |
18931 | return pyobj; | |
18932 | } | |
18933 | ||
18934 | ||
fef4c27a RD |
18935 | static int _wrap_DefaultTimeSpanFormat_set(PyObject *) { |
18936 | PyErr_SetString(PyExc_TypeError,"Variable DefaultTimeSpanFormat is read-only."); | |
d55e5bfc RD |
18937 | return 1; |
18938 | } | |
18939 | ||
18940 | ||
fef4c27a | 18941 | static PyObject *_wrap_DefaultTimeSpanFormat_get(void) { |
d55e5bfc RD |
18942 | PyObject *pyobj; |
18943 | ||
18944 | { | |
18945 | #if wxUSE_UNICODE | |
fef4c27a | 18946 | pyobj = PyUnicode_FromWideChar((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len()); |
d55e5bfc | 18947 | #else |
fef4c27a | 18948 | pyobj = PyString_FromStringAndSize((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len()); |
d55e5bfc RD |
18949 | #endif |
18950 | } | |
18951 | return pyobj; | |
18952 | } | |
18953 | ||
18954 | ||
c370783e | 18955 | static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 18956 | PyObject *resultobj; |
36ed4f51 | 18957 | wxDateTime::Country arg1 ; |
d55e5bfc RD |
18958 | PyObject * obj0 = 0 ; |
18959 | char *kwnames[] = { | |
18960 | (char *) "country", NULL | |
18961 | }; | |
18962 | ||
18963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18964 | { |
18965 | arg1 = (wxDateTime::Country)(SWIG_As_int(obj0)); | |
18966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18967 | } | |
d55e5bfc RD |
18968 | { |
18969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18970 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
18971 | ||
18972 | wxPyEndAllowThreads(__tstate); | |
18973 | if (PyErr_Occurred()) SWIG_fail; | |
18974 | } | |
18975 | Py_INCREF(Py_None); resultobj = Py_None; | |
18976 | return resultobj; | |
18977 | fail: | |
18978 | return NULL; | |
18979 | } | |
18980 | ||
18981 | ||
c370783e | 18982 | static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 18983 | PyObject *resultobj; |
36ed4f51 | 18984 | wxDateTime::Country result; |
d55e5bfc RD |
18985 | char *kwnames[] = { |
18986 | NULL | |
18987 | }; | |
18988 | ||
18989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
18990 | { | |
18991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18992 | result = (wxDateTime::Country)wxDateTime::GetCountry(); |
d55e5bfc RD |
18993 | |
18994 | wxPyEndAllowThreads(__tstate); | |
18995 | if (PyErr_Occurred()) SWIG_fail; | |
18996 | } | |
36ed4f51 | 18997 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
18998 | return resultobj; |
18999 | fail: | |
19000 | return NULL; | |
19001 | } | |
19002 | ||
19003 | ||
c370783e | 19004 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 19005 | PyObject *resultobj; |
36ed4f51 | 19006 | wxDateTime::Country arg1 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
19007 | bool result; |
19008 | PyObject * obj0 = 0 ; | |
19009 | char *kwnames[] = { | |
19010 | (char *) "country", NULL | |
19011 | }; | |
19012 | ||
19013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
19014 | if (obj0) { | |
36ed4f51 RD |
19015 | { |
19016 | arg1 = (wxDateTime::Country)(SWIG_As_int(obj0)); | |
19017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19018 | } | |
d55e5bfc RD |
19019 | } |
19020 | { | |
19021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19022 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
19023 | ||
19024 | wxPyEndAllowThreads(__tstate); | |
19025 | if (PyErr_Occurred()) SWIG_fail; | |
19026 | } | |
19027 | { | |
19028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19029 | } | |
19030 | return resultobj; | |
19031 | fail: | |
19032 | return NULL; | |
19033 | } | |
19034 | ||
19035 | ||
c370783e | 19036 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 19037 | PyObject *resultobj; |
36ed4f51 | 19038 | wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d55e5bfc RD |
19039 | int result; |
19040 | PyObject * obj0 = 0 ; | |
19041 | char *kwnames[] = { | |
19042 | (char *) "cal", NULL | |
19043 | }; | |
19044 | ||
19045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
19046 | if (obj0) { | |
36ed4f51 RD |
19047 | { |
19048 | arg1 = (wxDateTime::Calendar)(SWIG_As_int(obj0)); | |
19049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19050 | } | |
d55e5bfc RD |
19051 | } |
19052 | { | |
19053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19054 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
19055 | ||
19056 | wxPyEndAllowThreads(__tstate); | |
19057 | if (PyErr_Occurred()) SWIG_fail; | |
19058 | } | |
36ed4f51 RD |
19059 | { |
19060 | resultobj = SWIG_From_int((int)(result)); | |
19061 | } | |
d55e5bfc RD |
19062 | return resultobj; |
19063 | fail: | |
19064 | return NULL; | |
19065 | } | |
19066 | ||
19067 | ||
c370783e | 19068 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19069 | PyObject *resultobj; |
19070 | int arg1 ; | |
19071 | int result; | |
19072 | PyObject * obj0 = 0 ; | |
19073 | char *kwnames[] = { | |
19074 | (char *) "year", NULL | |
19075 | }; | |
19076 | ||
19077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
19078 | { |
19079 | arg1 = (int)(SWIG_As_int(obj0)); | |
19080 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19081 | } | |
d55e5bfc RD |
19082 | { |
19083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19084 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
19085 | ||
19086 | wxPyEndAllowThreads(__tstate); | |
19087 | if (PyErr_Occurred()) SWIG_fail; | |
19088 | } | |
36ed4f51 RD |
19089 | { |
19090 | resultobj = SWIG_From_int((int)(result)); | |
19091 | } | |
d55e5bfc RD |
19092 | return resultobj; |
19093 | fail: | |
19094 | return NULL; | |
19095 | } | |
19096 | ||
19097 | ||
c370783e | 19098 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 19099 | PyObject *resultobj; |
36ed4f51 RD |
19100 | wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
19101 | wxDateTime::Month result; | |
d55e5bfc RD |
19102 | PyObject * obj0 = 0 ; |
19103 | char *kwnames[] = { | |
19104 | (char *) "cal", NULL | |
19105 | }; | |
19106 | ||
19107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
19108 | if (obj0) { | |
36ed4f51 RD |
19109 | { |
19110 | arg1 = (wxDateTime::Calendar)(SWIG_As_int(obj0)); | |
19111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19112 | } | |
d55e5bfc RD |
19113 | } |
19114 | { | |
19115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 19116 | result = (wxDateTime::Month)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); |
d55e5bfc RD |
19117 | |
19118 | wxPyEndAllowThreads(__tstate); | |
19119 | if (PyErr_Occurred()) SWIG_fail; | |
19120 | } | |
36ed4f51 | 19121 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
19122 | return resultobj; |
19123 | fail: | |
19124 | return NULL; | |
19125 | } | |
19126 | ||
19127 | ||
c370783e | 19128 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19129 | PyObject *resultobj; |
19130 | int arg1 = (int) wxDateTime::Inv_Year ; | |
36ed4f51 | 19131 | wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d55e5bfc RD |
19132 | bool result; |
19133 | PyObject * obj0 = 0 ; | |
19134 | PyObject * obj1 = 0 ; | |
19135 | char *kwnames[] = { | |
19136 | (char *) "year",(char *) "cal", NULL | |
19137 | }; | |
19138 | ||
19139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
19140 | if (obj0) { | |
36ed4f51 RD |
19141 | { |
19142 | arg1 = (int)(SWIG_As_int(obj0)); | |
19143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19144 | } | |
d55e5bfc RD |
19145 | } |
19146 | if (obj1) { | |
36ed4f51 RD |
19147 | { |
19148 | arg2 = (wxDateTime::Calendar)(SWIG_As_int(obj1)); | |
19149 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19150 | } | |
d55e5bfc RD |
19151 | } |
19152 | { | |
19153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19154 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
19155 | ||
19156 | wxPyEndAllowThreads(__tstate); | |
19157 | if (PyErr_Occurred()) SWIG_fail; | |
19158 | } | |
19159 | { | |
19160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19161 | } | |
19162 | return resultobj; | |
19163 | fail: | |
19164 | return NULL; | |
19165 | } | |
19166 | ||
19167 | ||
c370783e | 19168 | static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19169 | PyObject *resultobj; |
19170 | int arg1 = (int) wxDateTime::Inv_Year ; | |
19171 | int result; | |
19172 | PyObject * obj0 = 0 ; | |
19173 | char *kwnames[] = { | |
19174 | (char *) "year", NULL | |
19175 | }; | |
19176 | ||
19177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
19178 | if (obj0) { | |
36ed4f51 RD |
19179 | { |
19180 | arg1 = (int)(SWIG_As_int(obj0)); | |
19181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19182 | } | |
d55e5bfc RD |
19183 | } |
19184 | { | |
19185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19186 | result = (int)wxDateTime::GetCentury(arg1); | |
19187 | ||
19188 | wxPyEndAllowThreads(__tstate); | |
19189 | if (PyErr_Occurred()) SWIG_fail; | |
19190 | } | |
36ed4f51 RD |
19191 | { |
19192 | resultobj = SWIG_From_int((int)(result)); | |
19193 | } | |
d55e5bfc RD |
19194 | return resultobj; |
19195 | fail: | |
19196 | return NULL; | |
19197 | } | |
19198 | ||
19199 | ||
c370783e | 19200 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19201 | PyObject *resultobj; |
19202 | int arg1 ; | |
36ed4f51 | 19203 | wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d55e5bfc RD |
19204 | int result; |
19205 | PyObject * obj0 = 0 ; | |
19206 | PyObject * obj1 = 0 ; | |
19207 | char *kwnames[] = { | |
19208 | (char *) "year",(char *) "cal", NULL | |
19209 | }; | |
19210 | ||
19211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19212 | { |
19213 | arg1 = (int)(SWIG_As_int(obj0)); | |
19214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19215 | } | |
d55e5bfc | 19216 | if (obj1) { |
36ed4f51 RD |
19217 | { |
19218 | arg2 = (wxDateTime::Calendar)(SWIG_As_int(obj1)); | |
19219 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19220 | } | |
d55e5bfc RD |
19221 | } |
19222 | { | |
19223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19224 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
19225 | ||
19226 | wxPyEndAllowThreads(__tstate); | |
19227 | if (PyErr_Occurred()) SWIG_fail; | |
19228 | } | |
36ed4f51 RD |
19229 | { |
19230 | resultobj = SWIG_From_int((int)(result)); | |
19231 | } | |
d55e5bfc RD |
19232 | return resultobj; |
19233 | fail: | |
19234 | return NULL; | |
19235 | } | |
19236 | ||
19237 | ||
c370783e | 19238 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 19239 | PyObject *resultobj; |
36ed4f51 | 19240 | wxDateTime::Month arg1 ; |
d55e5bfc | 19241 | int arg2 = (int) wxDateTime::Inv_Year ; |
36ed4f51 | 19242 | wxDateTime::Calendar arg3 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d55e5bfc RD |
19243 | int result; |
19244 | PyObject * obj0 = 0 ; | |
19245 | PyObject * obj1 = 0 ; | |
19246 | PyObject * obj2 = 0 ; | |
19247 | char *kwnames[] = { | |
19248 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
19249 | }; | |
19250 | ||
19251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
19252 | { |
19253 | arg1 = (wxDateTime::Month)(SWIG_As_int(obj0)); | |
19254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19255 | } | |
d55e5bfc | 19256 | if (obj1) { |
36ed4f51 RD |
19257 | { |
19258 | arg2 = (int)(SWIG_As_int(obj1)); | |
19259 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19260 | } | |
d55e5bfc RD |
19261 | } |
19262 | if (obj2) { | |
36ed4f51 RD |
19263 | { |
19264 | arg3 = (wxDateTime::Calendar)(SWIG_As_int(obj2)); | |
19265 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19266 | } | |
d55e5bfc RD |
19267 | } |
19268 | { | |
19269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19270 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
19271 | ||
19272 | wxPyEndAllowThreads(__tstate); | |
19273 | if (PyErr_Occurred()) SWIG_fail; | |
19274 | } | |
36ed4f51 RD |
19275 | { |
19276 | resultobj = SWIG_From_int((int)(result)); | |
19277 | } | |
d55e5bfc RD |
19278 | return resultobj; |
19279 | fail: | |
19280 | return NULL; | |
19281 | } | |
19282 | ||
19283 | ||
c370783e | 19284 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 19285 | PyObject *resultobj; |
36ed4f51 RD |
19286 | wxDateTime::Month arg1 ; |
19287 | wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ; | |
d55e5bfc RD |
19288 | wxString result; |
19289 | PyObject * obj0 = 0 ; | |
19290 | PyObject * obj1 = 0 ; | |
19291 | char *kwnames[] = { | |
19292 | (char *) "month",(char *) "flags", NULL | |
19293 | }; | |
19294 | ||
19295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19296 | { |
19297 | arg1 = (wxDateTime::Month)(SWIG_As_int(obj0)); | |
19298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19299 | } | |
d55e5bfc | 19300 | if (obj1) { |
36ed4f51 RD |
19301 | { |
19302 | arg2 = (wxDateTime::NameFlags)(SWIG_As_int(obj1)); | |
19303 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19304 | } | |
d55e5bfc RD |
19305 | } |
19306 | { | |
19307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19308 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
19309 | ||
19310 | wxPyEndAllowThreads(__tstate); | |
19311 | if (PyErr_Occurred()) SWIG_fail; | |
19312 | } | |
19313 | { | |
19314 | #if wxUSE_UNICODE | |
19315 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19316 | #else | |
19317 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19318 | #endif | |
19319 | } | |
19320 | return resultobj; | |
19321 | fail: | |
19322 | return NULL; | |
19323 | } | |
19324 | ||
19325 | ||
c370783e | 19326 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 19327 | PyObject *resultobj; |
36ed4f51 RD |
19328 | wxDateTime::WeekDay arg1 ; |
19329 | wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ; | |
d55e5bfc RD |
19330 | wxString result; |
19331 | PyObject * obj0 = 0 ; | |
19332 | PyObject * obj1 = 0 ; | |
19333 | char *kwnames[] = { | |
19334 | (char *) "weekday",(char *) "flags", NULL | |
19335 | }; | |
19336 | ||
19337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19338 | { |
19339 | arg1 = (wxDateTime::WeekDay)(SWIG_As_int(obj0)); | |
19340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19341 | } | |
d55e5bfc | 19342 | if (obj1) { |
36ed4f51 RD |
19343 | { |
19344 | arg2 = (wxDateTime::NameFlags)(SWIG_As_int(obj1)); | |
19345 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19346 | } | |
d55e5bfc RD |
19347 | } |
19348 | { | |
19349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19350 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
19351 | ||
19352 | wxPyEndAllowThreads(__tstate); | |
19353 | if (PyErr_Occurred()) SWIG_fail; | |
19354 | } | |
19355 | { | |
19356 | #if wxUSE_UNICODE | |
19357 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19358 | #else | |
19359 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19360 | #endif | |
19361 | } | |
19362 | return resultobj; | |
19363 | fail: | |
19364 | return NULL; | |
19365 | } | |
19366 | ||
19367 | ||
c370783e | 19368 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 19369 | PyObject *resultobj; |
7fbf8399 | 19370 | PyObject *result; |
d55e5bfc | 19371 | char *kwnames[] = { |
7fbf8399 | 19372 | NULL |
d55e5bfc RD |
19373 | }; |
19374 | ||
7fbf8399 | 19375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetAmPmStrings",kwnames)) goto fail; |
d55e5bfc RD |
19376 | { |
19377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7fbf8399 | 19378 | result = (PyObject *)DateTime_GetAmPmStrings(); |
d55e5bfc RD |
19379 | |
19380 | wxPyEndAllowThreads(__tstate); | |
19381 | if (PyErr_Occurred()) SWIG_fail; | |
19382 | } | |
7fbf8399 | 19383 | resultobj = result; |
d55e5bfc RD |
19384 | return resultobj; |
19385 | fail: | |
d55e5bfc RD |
19386 | return NULL; |
19387 | } | |
19388 | ||
19389 | ||
c370783e | 19390 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19391 | PyObject *resultobj; |
19392 | int arg1 = (int) wxDateTime::Inv_Year ; | |
36ed4f51 | 19393 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
19394 | bool result; |
19395 | PyObject * obj0 = 0 ; | |
19396 | PyObject * obj1 = 0 ; | |
19397 | char *kwnames[] = { | |
19398 | (char *) "year",(char *) "country", NULL | |
19399 | }; | |
19400 | ||
19401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
19402 | if (obj0) { | |
36ed4f51 RD |
19403 | { |
19404 | arg1 = (int)(SWIG_As_int(obj0)); | |
19405 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19406 | } | |
d55e5bfc RD |
19407 | } |
19408 | if (obj1) { | |
36ed4f51 RD |
19409 | { |
19410 | arg2 = (wxDateTime::Country)(SWIG_As_int(obj1)); | |
19411 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19412 | } | |
d55e5bfc RD |
19413 | } |
19414 | { | |
19415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19416 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
19417 | ||
19418 | wxPyEndAllowThreads(__tstate); | |
19419 | if (PyErr_Occurred()) SWIG_fail; | |
19420 | } | |
19421 | { | |
19422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19423 | } | |
19424 | return resultobj; | |
19425 | fail: | |
19426 | return NULL; | |
19427 | } | |
19428 | ||
19429 | ||
c370783e | 19430 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19431 | PyObject *resultobj; |
19432 | int arg1 = (int) wxDateTime::Inv_Year ; | |
36ed4f51 | 19433 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
19434 | wxDateTime result; |
19435 | PyObject * obj0 = 0 ; | |
19436 | PyObject * obj1 = 0 ; | |
19437 | char *kwnames[] = { | |
19438 | (char *) "year",(char *) "country", NULL | |
19439 | }; | |
19440 | ||
19441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
19442 | if (obj0) { | |
36ed4f51 RD |
19443 | { |
19444 | arg1 = (int)(SWIG_As_int(obj0)); | |
19445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19446 | } | |
d55e5bfc RD |
19447 | } |
19448 | if (obj1) { | |
36ed4f51 RD |
19449 | { |
19450 | arg2 = (wxDateTime::Country)(SWIG_As_int(obj1)); | |
19451 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19452 | } | |
d55e5bfc RD |
19453 | } |
19454 | { | |
19455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19456 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
19457 | ||
19458 | wxPyEndAllowThreads(__tstate); | |
19459 | if (PyErr_Occurred()) SWIG_fail; | |
19460 | } | |
19461 | { | |
19462 | wxDateTime * resultptr; | |
36ed4f51 | 19463 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
19464 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
19465 | } | |
19466 | return resultobj; | |
19467 | fail: | |
19468 | return NULL; | |
19469 | } | |
19470 | ||
19471 | ||
c370783e | 19472 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19473 | PyObject *resultobj; |
19474 | int arg1 = (int) wxDateTime::Inv_Year ; | |
36ed4f51 | 19475 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
19476 | wxDateTime result; |
19477 | PyObject * obj0 = 0 ; | |
19478 | PyObject * obj1 = 0 ; | |
19479 | char *kwnames[] = { | |
19480 | (char *) "year",(char *) "country", NULL | |
19481 | }; | |
19482 | ||
19483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
19484 | if (obj0) { | |
36ed4f51 RD |
19485 | { |
19486 | arg1 = (int)(SWIG_As_int(obj0)); | |
19487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19488 | } | |
d55e5bfc RD |
19489 | } |
19490 | if (obj1) { | |
36ed4f51 RD |
19491 | { |
19492 | arg2 = (wxDateTime::Country)(SWIG_As_int(obj1)); | |
19493 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19494 | } | |
d55e5bfc RD |
19495 | } |
19496 | { | |
19497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19498 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
19499 | ||
19500 | wxPyEndAllowThreads(__tstate); | |
19501 | if (PyErr_Occurred()) SWIG_fail; | |
19502 | } | |
19503 | { | |
19504 | wxDateTime * resultptr; | |
36ed4f51 | 19505 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
19506 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
19507 | } | |
19508 | return resultobj; | |
19509 | fail: | |
19510 | return NULL; | |
19511 | } | |
19512 | ||
19513 | ||
c370783e | 19514 | static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19515 | PyObject *resultobj; |
19516 | wxDateTime result; | |
19517 | char *kwnames[] = { | |
19518 | NULL | |
19519 | }; | |
19520 | ||
19521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
19522 | { | |
19523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19524 | result = wxDateTime::Now(); | |
19525 | ||
19526 | wxPyEndAllowThreads(__tstate); | |
19527 | if (PyErr_Occurred()) SWIG_fail; | |
19528 | } | |
19529 | { | |
19530 | wxDateTime * resultptr; | |
36ed4f51 | 19531 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
19532 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
19533 | } | |
19534 | return resultobj; | |
19535 | fail: | |
19536 | return NULL; | |
19537 | } | |
19538 | ||
19539 | ||
c370783e | 19540 | static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19541 | PyObject *resultobj; |
19542 | wxDateTime result; | |
19543 | char *kwnames[] = { | |
19544 | NULL | |
19545 | }; | |
19546 | ||
19547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
19548 | { | |
19549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19550 | result = wxDateTime::UNow(); | |
19551 | ||
19552 | wxPyEndAllowThreads(__tstate); | |
19553 | if (PyErr_Occurred()) SWIG_fail; | |
19554 | } | |
19555 | { | |
19556 | wxDateTime * resultptr; | |
36ed4f51 | 19557 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
19558 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
19559 | } | |
19560 | return resultobj; | |
19561 | fail: | |
19562 | return NULL; | |
19563 | } | |
19564 | ||
19565 | ||
c370783e | 19566 | static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19567 | PyObject *resultobj; |
19568 | wxDateTime result; | |
19569 | char *kwnames[] = { | |
19570 | NULL | |
19571 | }; | |
19572 | ||
19573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
19574 | { | |
19575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19576 | result = wxDateTime::Today(); | |
19577 | ||
19578 | wxPyEndAllowThreads(__tstate); | |
19579 | if (PyErr_Occurred()) SWIG_fail; | |
19580 | } | |
19581 | { | |
19582 | wxDateTime * resultptr; | |
36ed4f51 | 19583 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
19584 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
19585 | } | |
19586 | return resultobj; | |
19587 | fail: | |
19588 | return NULL; | |
19589 | } | |
19590 | ||
19591 | ||
c370783e | 19592 | static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19593 | PyObject *resultobj; |
19594 | wxDateTime *result; | |
19595 | char *kwnames[] = { | |
19596 | NULL | |
19597 | }; | |
19598 | ||
19599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
19600 | { | |
19601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19602 | result = (wxDateTime *)new wxDateTime(); | |
19603 | ||
19604 | wxPyEndAllowThreads(__tstate); | |
19605 | if (PyErr_Occurred()) SWIG_fail; | |
19606 | } | |
19607 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
19608 | return resultobj; | |
19609 | fail: | |
19610 | return NULL; | |
19611 | } | |
19612 | ||
19613 | ||
c370783e | 19614 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19615 | PyObject *resultobj; |
19616 | time_t arg1 ; | |
19617 | wxDateTime *result; | |
19618 | PyObject * obj0 = 0 ; | |
19619 | char *kwnames[] = { | |
19620 | (char *) "timet", NULL | |
19621 | }; | |
19622 | ||
19623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
19624 | { |
19625 | arg1 = (time_t)(SWIG_As_unsigned_SS_int(obj0)); | |
19626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19627 | } | |
d55e5bfc RD |
19628 | { |
19629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19630 | result = (wxDateTime *)new wxDateTime(arg1); | |
19631 | ||
19632 | wxPyEndAllowThreads(__tstate); | |
19633 | if (PyErr_Occurred()) SWIG_fail; | |
19634 | } | |
19635 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
19636 | return resultobj; | |
19637 | fail: | |
19638 | return NULL; | |
19639 | } | |
19640 | ||
19641 | ||
c370783e | 19642 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19643 | PyObject *resultobj; |
19644 | double arg1 ; | |
19645 | wxDateTime *result; | |
19646 | PyObject * obj0 = 0 ; | |
19647 | char *kwnames[] = { | |
19648 | (char *) "jdn", NULL | |
19649 | }; | |
19650 | ||
19651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
19652 | { |
19653 | arg1 = (double)(SWIG_As_double(obj0)); | |
19654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19655 | } | |
d55e5bfc RD |
19656 | { |
19657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19658 | result = (wxDateTime *)new wxDateTime(arg1); | |
19659 | ||
19660 | wxPyEndAllowThreads(__tstate); | |
19661 | if (PyErr_Occurred()) SWIG_fail; | |
19662 | } | |
19663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
19664 | return resultobj; | |
19665 | fail: | |
19666 | return NULL; | |
19667 | } | |
19668 | ||
19669 | ||
c370783e | 19670 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19671 | PyObject *resultobj; |
19672 | int arg1 ; | |
19673 | int arg2 = (int) 0 ; | |
19674 | int arg3 = (int) 0 ; | |
19675 | int arg4 = (int) 0 ; | |
19676 | wxDateTime *result; | |
19677 | PyObject * obj0 = 0 ; | |
19678 | PyObject * obj1 = 0 ; | |
19679 | PyObject * obj2 = 0 ; | |
19680 | PyObject * obj3 = 0 ; | |
19681 | char *kwnames[] = { | |
19682 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
19683 | }; | |
19684 | ||
19685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
19686 | { |
19687 | arg1 = (int)(SWIG_As_int(obj0)); | |
19688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19689 | } | |
d55e5bfc | 19690 | if (obj1) { |
36ed4f51 RD |
19691 | { |
19692 | arg2 = (int)(SWIG_As_int(obj1)); | |
19693 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19694 | } | |
d55e5bfc RD |
19695 | } |
19696 | if (obj2) { | |
36ed4f51 RD |
19697 | { |
19698 | arg3 = (int)(SWIG_As_int(obj2)); | |
19699 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19700 | } | |
d55e5bfc RD |
19701 | } |
19702 | if (obj3) { | |
36ed4f51 RD |
19703 | { |
19704 | arg4 = (int)(SWIG_As_int(obj3)); | |
19705 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19706 | } | |
d55e5bfc RD |
19707 | } |
19708 | { | |
19709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19710 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
19711 | ||
19712 | wxPyEndAllowThreads(__tstate); | |
19713 | if (PyErr_Occurred()) SWIG_fail; | |
19714 | } | |
19715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
19716 | return resultobj; | |
19717 | fail: | |
19718 | return NULL; | |
19719 | } | |
19720 | ||
19721 | ||
c370783e | 19722 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19723 | PyObject *resultobj; |
19724 | int arg1 ; | |
36ed4f51 | 19725 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d55e5bfc RD |
19726 | int arg3 = (int) wxDateTime::Inv_Year ; |
19727 | int arg4 = (int) 0 ; | |
19728 | int arg5 = (int) 0 ; | |
19729 | int arg6 = (int) 0 ; | |
19730 | int arg7 = (int) 0 ; | |
19731 | wxDateTime *result; | |
19732 | PyObject * obj0 = 0 ; | |
19733 | PyObject * obj1 = 0 ; | |
19734 | PyObject * obj2 = 0 ; | |
19735 | PyObject * obj3 = 0 ; | |
19736 | PyObject * obj4 = 0 ; | |
19737 | PyObject * obj5 = 0 ; | |
19738 | PyObject * obj6 = 0 ; | |
19739 | char *kwnames[] = { | |
19740 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
19741 | }; | |
19742 | ||
19743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36ed4f51 RD |
19744 | { |
19745 | arg1 = (int)(SWIG_As_int(obj0)); | |
19746 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19747 | } | |
d55e5bfc | 19748 | if (obj1) { |
36ed4f51 RD |
19749 | { |
19750 | arg2 = (wxDateTime::Month)(SWIG_As_int(obj1)); | |
19751 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19752 | } | |
d55e5bfc RD |
19753 | } |
19754 | if (obj2) { | |
36ed4f51 RD |
19755 | { |
19756 | arg3 = (int)(SWIG_As_int(obj2)); | |
19757 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19758 | } | |
d55e5bfc RD |
19759 | } |
19760 | if (obj3) { | |
36ed4f51 RD |
19761 | { |
19762 | arg4 = (int)(SWIG_As_int(obj3)); | |
19763 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19764 | } | |
d55e5bfc RD |
19765 | } |
19766 | if (obj4) { | |
36ed4f51 RD |
19767 | { |
19768 | arg5 = (int)(SWIG_As_int(obj4)); | |
19769 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19770 | } | |
d55e5bfc RD |
19771 | } |
19772 | if (obj5) { | |
36ed4f51 RD |
19773 | { |
19774 | arg6 = (int)(SWIG_As_int(obj5)); | |
19775 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19776 | } | |
d55e5bfc RD |
19777 | } |
19778 | if (obj6) { | |
36ed4f51 RD |
19779 | { |
19780 | arg7 = (int)(SWIG_As_int(obj6)); | |
19781 | if (SWIG_arg_fail(7)) SWIG_fail; | |
19782 | } | |
d55e5bfc RD |
19783 | } |
19784 | { | |
19785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19786 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
19787 | ||
19788 | wxPyEndAllowThreads(__tstate); | |
19789 | if (PyErr_Occurred()) SWIG_fail; | |
19790 | } | |
19791 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
19792 | return resultobj; | |
19793 | fail: | |
19794 | return NULL; | |
19795 | } | |
19796 | ||
19797 | ||
c370783e | 19798 | static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19799 | PyObject *resultobj; |
19800 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19801 | PyObject * obj0 = 0 ; | |
19802 | char *kwnames[] = { | |
19803 | (char *) "self", NULL | |
19804 | }; | |
19805 | ||
19806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
19807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
19808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19809 | { |
19810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19811 | delete arg1; | |
19812 | ||
19813 | wxPyEndAllowThreads(__tstate); | |
19814 | if (PyErr_Occurred()) SWIG_fail; | |
19815 | } | |
19816 | Py_INCREF(Py_None); resultobj = Py_None; | |
19817 | return resultobj; | |
19818 | fail: | |
19819 | return NULL; | |
19820 | } | |
19821 | ||
19822 | ||
c370783e | 19823 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19824 | PyObject *resultobj; |
19825 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19826 | wxDateTime *result; | |
19827 | PyObject * obj0 = 0 ; | |
19828 | char *kwnames[] = { | |
19829 | (char *) "self", NULL | |
19830 | }; | |
19831 | ||
19832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
19833 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
19834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19835 | { |
19836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19837 | { | |
19838 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
19839 | result = (wxDateTime *) &_result_ref; | |
19840 | } | |
19841 | ||
19842 | wxPyEndAllowThreads(__tstate); | |
19843 | if (PyErr_Occurred()) SWIG_fail; | |
19844 | } | |
19845 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19846 | return resultobj; | |
19847 | fail: | |
19848 | return NULL; | |
19849 | } | |
19850 | ||
19851 | ||
c370783e | 19852 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19853 | PyObject *resultobj; |
19854 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19855 | time_t arg2 ; | |
19856 | wxDateTime *result; | |
19857 | PyObject * obj0 = 0 ; | |
19858 | PyObject * obj1 = 0 ; | |
19859 | char *kwnames[] = { | |
19860 | (char *) "self",(char *) "timet", NULL | |
19861 | }; | |
19862 | ||
19863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19864 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
19865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19866 | { | |
19867 | arg2 = (time_t)(SWIG_As_unsigned_SS_int(obj1)); | |
19868 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19869 | } | |
d55e5bfc RD |
19870 | { |
19871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19872 | { | |
19873 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
19874 | result = (wxDateTime *) &_result_ref; | |
19875 | } | |
19876 | ||
19877 | wxPyEndAllowThreads(__tstate); | |
19878 | if (PyErr_Occurred()) SWIG_fail; | |
19879 | } | |
19880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19881 | return resultobj; | |
19882 | fail: | |
19883 | return NULL; | |
19884 | } | |
19885 | ||
19886 | ||
c370783e | 19887 | static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19888 | PyObject *resultobj; |
19889 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19890 | double arg2 ; | |
19891 | wxDateTime *result; | |
19892 | PyObject * obj0 = 0 ; | |
19893 | PyObject * obj1 = 0 ; | |
19894 | char *kwnames[] = { | |
19895 | (char *) "self",(char *) "jdn", NULL | |
19896 | }; | |
19897 | ||
19898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
19900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19901 | { | |
19902 | arg2 = (double)(SWIG_As_double(obj1)); | |
19903 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19904 | } | |
d55e5bfc RD |
19905 | { |
19906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19907 | { | |
19908 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
19909 | result = (wxDateTime *) &_result_ref; | |
19910 | } | |
19911 | ||
19912 | wxPyEndAllowThreads(__tstate); | |
19913 | if (PyErr_Occurred()) SWIG_fail; | |
19914 | } | |
19915 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19916 | return resultobj; | |
19917 | fail: | |
19918 | return NULL; | |
19919 | } | |
19920 | ||
19921 | ||
c370783e | 19922 | static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19923 | PyObject *resultobj; |
19924 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19925 | int arg2 ; | |
19926 | int arg3 = (int) 0 ; | |
19927 | int arg4 = (int) 0 ; | |
19928 | int arg5 = (int) 0 ; | |
19929 | wxDateTime *result; | |
19930 | PyObject * obj0 = 0 ; | |
19931 | PyObject * obj1 = 0 ; | |
19932 | PyObject * obj2 = 0 ; | |
19933 | PyObject * obj3 = 0 ; | |
19934 | PyObject * obj4 = 0 ; | |
19935 | char *kwnames[] = { | |
19936 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
19937 | }; | |
19938 | ||
19939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36ed4f51 RD |
19940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
19941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19942 | { | |
19943 | arg2 = (int)(SWIG_As_int(obj1)); | |
19944 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19945 | } | |
d55e5bfc | 19946 | if (obj2) { |
36ed4f51 RD |
19947 | { |
19948 | arg3 = (int)(SWIG_As_int(obj2)); | |
19949 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19950 | } | |
d55e5bfc RD |
19951 | } |
19952 | if (obj3) { | |
36ed4f51 RD |
19953 | { |
19954 | arg4 = (int)(SWIG_As_int(obj3)); | |
19955 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19956 | } | |
d55e5bfc RD |
19957 | } |
19958 | if (obj4) { | |
36ed4f51 RD |
19959 | { |
19960 | arg5 = (int)(SWIG_As_int(obj4)); | |
19961 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19962 | } | |
d55e5bfc RD |
19963 | } |
19964 | { | |
19965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19966 | { | |
19967 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
19968 | result = (wxDateTime *) &_result_ref; | |
19969 | } | |
19970 | ||
19971 | wxPyEndAllowThreads(__tstate); | |
19972 | if (PyErr_Occurred()) SWIG_fail; | |
19973 | } | |
19974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19975 | return resultobj; | |
19976 | fail: | |
19977 | return NULL; | |
19978 | } | |
19979 | ||
19980 | ||
c370783e | 19981 | static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19982 | PyObject *resultobj; |
19983 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19984 | int arg2 ; | |
36ed4f51 | 19985 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d55e5bfc RD |
19986 | int arg4 = (int) wxDateTime::Inv_Year ; |
19987 | int arg5 = (int) 0 ; | |
19988 | int arg6 = (int) 0 ; | |
19989 | int arg7 = (int) 0 ; | |
19990 | int arg8 = (int) 0 ; | |
19991 | wxDateTime *result; | |
19992 | PyObject * obj0 = 0 ; | |
19993 | PyObject * obj1 = 0 ; | |
19994 | PyObject * obj2 = 0 ; | |
19995 | PyObject * obj3 = 0 ; | |
19996 | PyObject * obj4 = 0 ; | |
19997 | PyObject * obj5 = 0 ; | |
19998 | PyObject * obj6 = 0 ; | |
19999 | PyObject * obj7 = 0 ; | |
20000 | char *kwnames[] = { | |
20001 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
20002 | }; | |
20003 | ||
20004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
36ed4f51 RD |
20005 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20006 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20007 | { | |
20008 | arg2 = (int)(SWIG_As_int(obj1)); | |
20009 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20010 | } | |
d55e5bfc | 20011 | if (obj2) { |
36ed4f51 RD |
20012 | { |
20013 | arg3 = (wxDateTime::Month)(SWIG_As_int(obj2)); | |
20014 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20015 | } | |
d55e5bfc RD |
20016 | } |
20017 | if (obj3) { | |
36ed4f51 RD |
20018 | { |
20019 | arg4 = (int)(SWIG_As_int(obj3)); | |
20020 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20021 | } | |
d55e5bfc RD |
20022 | } |
20023 | if (obj4) { | |
36ed4f51 RD |
20024 | { |
20025 | arg5 = (int)(SWIG_As_int(obj4)); | |
20026 | if (SWIG_arg_fail(5)) SWIG_fail; | |
20027 | } | |
d55e5bfc RD |
20028 | } |
20029 | if (obj5) { | |
36ed4f51 RD |
20030 | { |
20031 | arg6 = (int)(SWIG_As_int(obj5)); | |
20032 | if (SWIG_arg_fail(6)) SWIG_fail; | |
20033 | } | |
d55e5bfc RD |
20034 | } |
20035 | if (obj6) { | |
36ed4f51 RD |
20036 | { |
20037 | arg7 = (int)(SWIG_As_int(obj6)); | |
20038 | if (SWIG_arg_fail(7)) SWIG_fail; | |
20039 | } | |
d55e5bfc RD |
20040 | } |
20041 | if (obj7) { | |
36ed4f51 RD |
20042 | { |
20043 | arg8 = (int)(SWIG_As_int(obj7)); | |
20044 | if (SWIG_arg_fail(8)) SWIG_fail; | |
20045 | } | |
d55e5bfc RD |
20046 | } |
20047 | { | |
20048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20049 | { | |
20050 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
20051 | result = (wxDateTime *) &_result_ref; | |
20052 | } | |
20053 | ||
20054 | wxPyEndAllowThreads(__tstate); | |
20055 | if (PyErr_Occurred()) SWIG_fail; | |
20056 | } | |
20057 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20058 | return resultobj; | |
20059 | fail: | |
20060 | return NULL; | |
20061 | } | |
20062 | ||
20063 | ||
c370783e | 20064 | static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20065 | PyObject *resultobj; |
20066 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20067 | wxDateTime *result; | |
20068 | PyObject * obj0 = 0 ; | |
20069 | char *kwnames[] = { | |
20070 | (char *) "self", NULL | |
20071 | }; | |
20072 | ||
20073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
20074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20076 | { |
20077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20078 | { | |
20079 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
20080 | result = (wxDateTime *) &_result_ref; | |
20081 | } | |
20082 | ||
20083 | wxPyEndAllowThreads(__tstate); | |
20084 | if (PyErr_Occurred()) SWIG_fail; | |
20085 | } | |
20086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20087 | return resultobj; | |
20088 | fail: | |
20089 | return NULL; | |
20090 | } | |
20091 | ||
20092 | ||
c370783e | 20093 | static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20094 | PyObject *resultobj; |
20095 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20096 | int arg2 ; | |
20097 | wxDateTime *result; | |
20098 | PyObject * obj0 = 0 ; | |
20099 | PyObject * obj1 = 0 ; | |
20100 | char *kwnames[] = { | |
20101 | (char *) "self",(char *) "year", NULL | |
20102 | }; | |
20103 | ||
20104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20105 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20107 | { | |
20108 | arg2 = (int)(SWIG_As_int(obj1)); | |
20109 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20110 | } | |
d55e5bfc RD |
20111 | { |
20112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20113 | { | |
20114 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
20115 | result = (wxDateTime *) &_result_ref; | |
20116 | } | |
20117 | ||
20118 | wxPyEndAllowThreads(__tstate); | |
20119 | if (PyErr_Occurred()) SWIG_fail; | |
20120 | } | |
20121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20122 | return resultobj; | |
20123 | fail: | |
20124 | return NULL; | |
20125 | } | |
20126 | ||
20127 | ||
c370783e | 20128 | static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20129 | PyObject *resultobj; |
20130 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 20131 | wxDateTime::Month arg2 ; |
d55e5bfc RD |
20132 | wxDateTime *result; |
20133 | PyObject * obj0 = 0 ; | |
20134 | PyObject * obj1 = 0 ; | |
20135 | char *kwnames[] = { | |
20136 | (char *) "self",(char *) "month", NULL | |
20137 | }; | |
20138 | ||
20139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20142 | { | |
20143 | arg2 = (wxDateTime::Month)(SWIG_As_int(obj1)); | |
20144 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20145 | } | |
d55e5bfc RD |
20146 | { |
20147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20148 | { | |
20149 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
20150 | result = (wxDateTime *) &_result_ref; | |
20151 | } | |
20152 | ||
20153 | wxPyEndAllowThreads(__tstate); | |
20154 | if (PyErr_Occurred()) SWIG_fail; | |
20155 | } | |
20156 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20157 | return resultobj; | |
20158 | fail: | |
20159 | return NULL; | |
20160 | } | |
20161 | ||
20162 | ||
c370783e | 20163 | static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20164 | PyObject *resultobj; |
20165 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20166 | int arg2 ; | |
20167 | wxDateTime *result; | |
20168 | PyObject * obj0 = 0 ; | |
20169 | PyObject * obj1 = 0 ; | |
20170 | char *kwnames[] = { | |
20171 | (char *) "self",(char *) "day", NULL | |
20172 | }; | |
20173 | ||
20174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20177 | { | |
20178 | arg2 = (int)(SWIG_As_int(obj1)); | |
20179 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20180 | } | |
d55e5bfc RD |
20181 | { |
20182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20183 | { | |
20184 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
20185 | result = (wxDateTime *) &_result_ref; | |
20186 | } | |
20187 | ||
20188 | wxPyEndAllowThreads(__tstate); | |
20189 | if (PyErr_Occurred()) SWIG_fail; | |
20190 | } | |
20191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20192 | return resultobj; | |
20193 | fail: | |
20194 | return NULL; | |
20195 | } | |
20196 | ||
20197 | ||
c370783e | 20198 | static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20199 | PyObject *resultobj; |
20200 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20201 | int arg2 ; | |
20202 | wxDateTime *result; | |
20203 | PyObject * obj0 = 0 ; | |
20204 | PyObject * obj1 = 0 ; | |
20205 | char *kwnames[] = { | |
20206 | (char *) "self",(char *) "hour", NULL | |
20207 | }; | |
20208 | ||
20209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20210 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20211 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20212 | { | |
20213 | arg2 = (int)(SWIG_As_int(obj1)); | |
20214 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20215 | } | |
d55e5bfc RD |
20216 | { |
20217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20218 | { | |
20219 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
20220 | result = (wxDateTime *) &_result_ref; | |
20221 | } | |
20222 | ||
20223 | wxPyEndAllowThreads(__tstate); | |
20224 | if (PyErr_Occurred()) SWIG_fail; | |
20225 | } | |
20226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20227 | return resultobj; | |
20228 | fail: | |
20229 | return NULL; | |
20230 | } | |
20231 | ||
20232 | ||
c370783e | 20233 | static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20234 | PyObject *resultobj; |
20235 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20236 | int arg2 ; | |
20237 | wxDateTime *result; | |
20238 | PyObject * obj0 = 0 ; | |
20239 | PyObject * obj1 = 0 ; | |
20240 | char *kwnames[] = { | |
20241 | (char *) "self",(char *) "minute", NULL | |
20242 | }; | |
20243 | ||
20244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20247 | { | |
20248 | arg2 = (int)(SWIG_As_int(obj1)); | |
20249 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20250 | } | |
d55e5bfc RD |
20251 | { |
20252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20253 | { | |
20254 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
20255 | result = (wxDateTime *) &_result_ref; | |
20256 | } | |
20257 | ||
20258 | wxPyEndAllowThreads(__tstate); | |
20259 | if (PyErr_Occurred()) SWIG_fail; | |
20260 | } | |
20261 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20262 | return resultobj; | |
20263 | fail: | |
20264 | return NULL; | |
20265 | } | |
20266 | ||
20267 | ||
c370783e | 20268 | static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20269 | PyObject *resultobj; |
20270 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20271 | int arg2 ; | |
20272 | wxDateTime *result; | |
20273 | PyObject * obj0 = 0 ; | |
20274 | PyObject * obj1 = 0 ; | |
20275 | char *kwnames[] = { | |
20276 | (char *) "self",(char *) "second", NULL | |
20277 | }; | |
20278 | ||
20279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20282 | { | |
20283 | arg2 = (int)(SWIG_As_int(obj1)); | |
20284 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20285 | } | |
d55e5bfc RD |
20286 | { |
20287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20288 | { | |
20289 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
20290 | result = (wxDateTime *) &_result_ref; | |
20291 | } | |
20292 | ||
20293 | wxPyEndAllowThreads(__tstate); | |
20294 | if (PyErr_Occurred()) SWIG_fail; | |
20295 | } | |
20296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20297 | return resultobj; | |
20298 | fail: | |
20299 | return NULL; | |
20300 | } | |
20301 | ||
20302 | ||
c370783e | 20303 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20304 | PyObject *resultobj; |
20305 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20306 | int arg2 ; | |
20307 | wxDateTime *result; | |
20308 | PyObject * obj0 = 0 ; | |
20309 | PyObject * obj1 = 0 ; | |
20310 | char *kwnames[] = { | |
20311 | (char *) "self",(char *) "millisecond", NULL | |
20312 | }; | |
20313 | ||
20314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20317 | { | |
20318 | arg2 = (int)(SWIG_As_int(obj1)); | |
20319 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20320 | } | |
d55e5bfc RD |
20321 | { |
20322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20323 | { | |
20324 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
20325 | result = (wxDateTime *) &_result_ref; | |
20326 | } | |
20327 | ||
20328 | wxPyEndAllowThreads(__tstate); | |
20329 | if (PyErr_Occurred()) SWIG_fail; | |
20330 | } | |
20331 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20332 | return resultobj; | |
20333 | fail: | |
20334 | return NULL; | |
20335 | } | |
20336 | ||
20337 | ||
c370783e | 20338 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20339 | PyObject *resultobj; |
20340 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 RD |
20341 | wxDateTime::WeekDay arg2 ; |
20342 | wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d55e5bfc RD |
20343 | wxDateTime *result; |
20344 | PyObject * obj0 = 0 ; | |
20345 | PyObject * obj1 = 0 ; | |
20346 | PyObject * obj2 = 0 ; | |
20347 | char *kwnames[] = { | |
20348 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
20349 | }; | |
20350 | ||
20351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
20352 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20353 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20354 | { | |
20355 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20356 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20357 | } | |
d55e5bfc | 20358 | if (obj2) { |
36ed4f51 RD |
20359 | { |
20360 | arg3 = (wxDateTime::WeekFlags)(SWIG_As_int(obj2)); | |
20361 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20362 | } | |
d55e5bfc RD |
20363 | } |
20364 | { | |
20365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20366 | { | |
20367 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
20368 | result = (wxDateTime *) &_result_ref; | |
20369 | } | |
20370 | ||
20371 | wxPyEndAllowThreads(__tstate); | |
20372 | if (PyErr_Occurred()) SWIG_fail; | |
20373 | } | |
20374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20375 | return resultobj; | |
20376 | fail: | |
20377 | return NULL; | |
20378 | } | |
20379 | ||
20380 | ||
c370783e | 20381 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20382 | PyObject *resultobj; |
20383 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 RD |
20384 | wxDateTime::WeekDay arg2 ; |
20385 | wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d55e5bfc RD |
20386 | wxDateTime result; |
20387 | PyObject * obj0 = 0 ; | |
20388 | PyObject * obj1 = 0 ; | |
20389 | PyObject * obj2 = 0 ; | |
20390 | char *kwnames[] = { | |
20391 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
20392 | }; | |
20393 | ||
20394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
20395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20397 | { | |
20398 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20399 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20400 | } | |
d55e5bfc | 20401 | if (obj2) { |
36ed4f51 RD |
20402 | { |
20403 | arg3 = (wxDateTime::WeekFlags)(SWIG_As_int(obj2)); | |
20404 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20405 | } | |
d55e5bfc RD |
20406 | } |
20407 | { | |
20408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20409 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
20410 | ||
20411 | wxPyEndAllowThreads(__tstate); | |
20412 | if (PyErr_Occurred()) SWIG_fail; | |
20413 | } | |
20414 | { | |
20415 | wxDateTime * resultptr; | |
36ed4f51 | 20416 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
20417 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20418 | } | |
20419 | return resultobj; | |
20420 | fail: | |
20421 | return NULL; | |
20422 | } | |
20423 | ||
20424 | ||
c370783e | 20425 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20426 | PyObject *resultobj; |
20427 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 20428 | wxDateTime::WeekDay arg2 ; |
d55e5bfc RD |
20429 | wxDateTime *result; |
20430 | PyObject * obj0 = 0 ; | |
20431 | PyObject * obj1 = 0 ; | |
20432 | char *kwnames[] = { | |
20433 | (char *) "self",(char *) "weekday", NULL | |
20434 | }; | |
20435 | ||
20436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20439 | { | |
20440 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20441 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20442 | } | |
d55e5bfc RD |
20443 | { |
20444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20445 | { | |
20446 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
20447 | result = (wxDateTime *) &_result_ref; | |
20448 | } | |
20449 | ||
20450 | wxPyEndAllowThreads(__tstate); | |
20451 | if (PyErr_Occurred()) SWIG_fail; | |
20452 | } | |
20453 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20454 | return resultobj; | |
20455 | fail: | |
20456 | return NULL; | |
20457 | } | |
20458 | ||
20459 | ||
c370783e | 20460 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20461 | PyObject *resultobj; |
20462 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 20463 | wxDateTime::WeekDay arg2 ; |
d55e5bfc RD |
20464 | wxDateTime result; |
20465 | PyObject * obj0 = 0 ; | |
20466 | PyObject * obj1 = 0 ; | |
20467 | char *kwnames[] = { | |
20468 | (char *) "self",(char *) "weekday", NULL | |
20469 | }; | |
20470 | ||
20471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20474 | { | |
20475 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20476 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20477 | } | |
d55e5bfc RD |
20478 | { |
20479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20480 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
20481 | ||
20482 | wxPyEndAllowThreads(__tstate); | |
20483 | if (PyErr_Occurred()) SWIG_fail; | |
20484 | } | |
20485 | { | |
20486 | wxDateTime * resultptr; | |
36ed4f51 | 20487 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
20488 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20489 | } | |
20490 | return resultobj; | |
20491 | fail: | |
20492 | return NULL; | |
20493 | } | |
20494 | ||
20495 | ||
c370783e | 20496 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20497 | PyObject *resultobj; |
20498 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 20499 | wxDateTime::WeekDay arg2 ; |
d55e5bfc RD |
20500 | wxDateTime *result; |
20501 | PyObject * obj0 = 0 ; | |
20502 | PyObject * obj1 = 0 ; | |
20503 | char *kwnames[] = { | |
20504 | (char *) "self",(char *) "weekday", NULL | |
20505 | }; | |
20506 | ||
20507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20508 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20510 | { | |
20511 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20512 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20513 | } | |
d55e5bfc RD |
20514 | { |
20515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20516 | { | |
20517 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
20518 | result = (wxDateTime *) &_result_ref; | |
20519 | } | |
20520 | ||
20521 | wxPyEndAllowThreads(__tstate); | |
20522 | if (PyErr_Occurred()) SWIG_fail; | |
20523 | } | |
20524 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20525 | return resultobj; | |
20526 | fail: | |
20527 | return NULL; | |
20528 | } | |
20529 | ||
20530 | ||
c370783e | 20531 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20532 | PyObject *resultobj; |
20533 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 20534 | wxDateTime::WeekDay arg2 ; |
d55e5bfc RD |
20535 | wxDateTime result; |
20536 | PyObject * obj0 = 0 ; | |
20537 | PyObject * obj1 = 0 ; | |
20538 | char *kwnames[] = { | |
20539 | (char *) "self",(char *) "weekday", NULL | |
20540 | }; | |
20541 | ||
20542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20543 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20545 | { | |
20546 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20547 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20548 | } | |
d55e5bfc RD |
20549 | { |
20550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20551 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
20552 | ||
20553 | wxPyEndAllowThreads(__tstate); | |
20554 | if (PyErr_Occurred()) SWIG_fail; | |
20555 | } | |
20556 | { | |
20557 | wxDateTime * resultptr; | |
36ed4f51 | 20558 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
20559 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20560 | } | |
20561 | return resultobj; | |
20562 | fail: | |
20563 | return NULL; | |
20564 | } | |
20565 | ||
20566 | ||
c370783e | 20567 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20568 | PyObject *resultobj; |
20569 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 20570 | wxDateTime::WeekDay arg2 ; |
d55e5bfc | 20571 | int arg3 = (int) 1 ; |
36ed4f51 | 20572 | wxDateTime::Month arg4 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d55e5bfc RD |
20573 | int arg5 = (int) wxDateTime::Inv_Year ; |
20574 | bool result; | |
20575 | PyObject * obj0 = 0 ; | |
20576 | PyObject * obj1 = 0 ; | |
20577 | PyObject * obj2 = 0 ; | |
20578 | PyObject * obj3 = 0 ; | |
20579 | PyObject * obj4 = 0 ; | |
20580 | char *kwnames[] = { | |
20581 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
20582 | }; | |
20583 | ||
20584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36ed4f51 RD |
20585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20587 | { | |
20588 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20589 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20590 | } | |
d55e5bfc | 20591 | if (obj2) { |
36ed4f51 RD |
20592 | { |
20593 | arg3 = (int)(SWIG_As_int(obj2)); | |
20594 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20595 | } | |
d55e5bfc RD |
20596 | } |
20597 | if (obj3) { | |
36ed4f51 RD |
20598 | { |
20599 | arg4 = (wxDateTime::Month)(SWIG_As_int(obj3)); | |
20600 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20601 | } | |
d55e5bfc RD |
20602 | } |
20603 | if (obj4) { | |
36ed4f51 RD |
20604 | { |
20605 | arg5 = (int)(SWIG_As_int(obj4)); | |
20606 | if (SWIG_arg_fail(5)) SWIG_fail; | |
20607 | } | |
d55e5bfc RD |
20608 | } |
20609 | { | |
20610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20611 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
20612 | ||
20613 | wxPyEndAllowThreads(__tstate); | |
20614 | if (PyErr_Occurred()) SWIG_fail; | |
20615 | } | |
20616 | { | |
20617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20618 | } | |
20619 | return resultobj; | |
20620 | fail: | |
20621 | return NULL; | |
20622 | } | |
20623 | ||
20624 | ||
c370783e | 20625 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20626 | PyObject *resultobj; |
20627 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 RD |
20628 | wxDateTime::WeekDay arg2 ; |
20629 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; | |
d55e5bfc RD |
20630 | int arg4 = (int) wxDateTime::Inv_Year ; |
20631 | bool result; | |
20632 | PyObject * obj0 = 0 ; | |
20633 | PyObject * obj1 = 0 ; | |
20634 | PyObject * obj2 = 0 ; | |
20635 | PyObject * obj3 = 0 ; | |
20636 | char *kwnames[] = { | |
20637 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
20638 | }; | |
20639 | ||
20640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
20641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20643 | { | |
20644 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20645 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20646 | } | |
d55e5bfc | 20647 | if (obj2) { |
36ed4f51 RD |
20648 | { |
20649 | arg3 = (wxDateTime::Month)(SWIG_As_int(obj2)); | |
20650 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20651 | } | |
d55e5bfc RD |
20652 | } |
20653 | if (obj3) { | |
36ed4f51 RD |
20654 | { |
20655 | arg4 = (int)(SWIG_As_int(obj3)); | |
20656 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20657 | } | |
d55e5bfc RD |
20658 | } |
20659 | { | |
20660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20661 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
20662 | ||
20663 | wxPyEndAllowThreads(__tstate); | |
20664 | if (PyErr_Occurred()) SWIG_fail; | |
20665 | } | |
20666 | { | |
20667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20668 | } | |
20669 | return resultobj; | |
20670 | fail: | |
20671 | return NULL; | |
20672 | } | |
20673 | ||
20674 | ||
c370783e | 20675 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20676 | PyObject *resultobj; |
20677 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 RD |
20678 | wxDateTime::WeekDay arg2 ; |
20679 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; | |
d55e5bfc RD |
20680 | int arg4 = (int) wxDateTime::Inv_Year ; |
20681 | wxDateTime result; | |
20682 | PyObject * obj0 = 0 ; | |
20683 | PyObject * obj1 = 0 ; | |
20684 | PyObject * obj2 = 0 ; | |
20685 | PyObject * obj3 = 0 ; | |
20686 | char *kwnames[] = { | |
20687 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
20688 | }; | |
20689 | ||
20690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
20691 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20692 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20693 | { | |
20694 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20695 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20696 | } | |
d55e5bfc | 20697 | if (obj2) { |
36ed4f51 RD |
20698 | { |
20699 | arg3 = (wxDateTime::Month)(SWIG_As_int(obj2)); | |
20700 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20701 | } | |
d55e5bfc RD |
20702 | } |
20703 | if (obj3) { | |
36ed4f51 RD |
20704 | { |
20705 | arg4 = (int)(SWIG_As_int(obj3)); | |
20706 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20707 | } | |
d55e5bfc RD |
20708 | } |
20709 | { | |
20710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20711 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
20712 | ||
20713 | wxPyEndAllowThreads(__tstate); | |
20714 | if (PyErr_Occurred()) SWIG_fail; | |
20715 | } | |
20716 | { | |
20717 | wxDateTime * resultptr; | |
36ed4f51 | 20718 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
20719 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20720 | } | |
20721 | return resultobj; | |
20722 | fail: | |
20723 | return NULL; | |
20724 | } | |
20725 | ||
20726 | ||
c370783e | 20727 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20728 | PyObject *resultobj; |
20729 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20730 | int arg2 ; | |
36ed4f51 RD |
20731 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
20732 | wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d55e5bfc RD |
20733 | bool result; |
20734 | PyObject * obj0 = 0 ; | |
20735 | PyObject * obj1 = 0 ; | |
20736 | PyObject * obj2 = 0 ; | |
20737 | PyObject * obj3 = 0 ; | |
20738 | char *kwnames[] = { | |
20739 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
20740 | }; | |
20741 | ||
20742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
20743 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20744 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20745 | { | |
20746 | arg2 = (int)(SWIG_As_int(obj1)); | |
20747 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20748 | } | |
d55e5bfc | 20749 | if (obj2) { |
36ed4f51 RD |
20750 | { |
20751 | arg3 = (wxDateTime::WeekDay)(SWIG_As_int(obj2)); | |
20752 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20753 | } | |
d55e5bfc RD |
20754 | } |
20755 | if (obj3) { | |
36ed4f51 RD |
20756 | { |
20757 | arg4 = (wxDateTime::WeekFlags)(SWIG_As_int(obj3)); | |
20758 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20759 | } | |
d55e5bfc RD |
20760 | } |
20761 | { | |
20762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20763 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
20764 | ||
20765 | wxPyEndAllowThreads(__tstate); | |
20766 | if (PyErr_Occurred()) SWIG_fail; | |
20767 | } | |
20768 | { | |
20769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20770 | } | |
20771 | return resultobj; | |
20772 | fail: | |
20773 | return NULL; | |
20774 | } | |
20775 | ||
20776 | ||
c370783e | 20777 | static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20778 | PyObject *resultobj; |
20779 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20780 | int arg2 ; | |
36ed4f51 RD |
20781 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
20782 | wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d55e5bfc RD |
20783 | wxDateTime result; |
20784 | PyObject * obj0 = 0 ; | |
20785 | PyObject * obj1 = 0 ; | |
20786 | PyObject * obj2 = 0 ; | |
20787 | PyObject * obj3 = 0 ; | |
20788 | char *kwnames[] = { | |
20789 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
20790 | }; | |
20791 | ||
20792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
20793 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20794 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20795 | { | |
20796 | arg2 = (int)(SWIG_As_int(obj1)); | |
20797 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20798 | } | |
d55e5bfc | 20799 | if (obj2) { |
36ed4f51 RD |
20800 | { |
20801 | arg3 = (wxDateTime::WeekDay)(SWIG_As_int(obj2)); | |
20802 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20803 | } | |
d55e5bfc RD |
20804 | } |
20805 | if (obj3) { | |
36ed4f51 RD |
20806 | { |
20807 | arg4 = (wxDateTime::WeekFlags)(SWIG_As_int(obj3)); | |
20808 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20809 | } | |
d55e5bfc RD |
20810 | } |
20811 | { | |
20812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20813 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
20814 | ||
20815 | wxPyEndAllowThreads(__tstate); | |
20816 | if (PyErr_Occurred()) SWIG_fail; | |
20817 | } | |
20818 | { | |
20819 | wxDateTime * resultptr; | |
36ed4f51 | 20820 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
20821 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20822 | } | |
20823 | return resultobj; | |
20824 | fail: | |
20825 | return NULL; | |
20826 | } | |
20827 | ||
20828 | ||
629e65c2 RD |
20829 | static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
20830 | PyObject *resultobj; | |
20831 | int arg1 ; | |
20832 | int arg2 ; | |
36ed4f51 | 20833 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
629e65c2 RD |
20834 | wxDateTime result; |
20835 | PyObject * obj0 = 0 ; | |
20836 | PyObject * obj1 = 0 ; | |
20837 | PyObject * obj2 = 0 ; | |
20838 | char *kwnames[] = { | |
20839 | (char *) "year",(char *) "numWeek",(char *) "weekday", NULL | |
20840 | }; | |
20841 | ||
20842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
20843 | { |
20844 | arg1 = (int)(SWIG_As_int(obj0)); | |
20845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20846 | } | |
20847 | { | |
20848 | arg2 = (int)(SWIG_As_int(obj1)); | |
20849 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20850 | } | |
629e65c2 | 20851 | if (obj2) { |
36ed4f51 RD |
20852 | { |
20853 | arg3 = (wxDateTime::WeekDay)(SWIG_As_int(obj2)); | |
20854 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20855 | } | |
629e65c2 RD |
20856 | } |
20857 | { | |
20858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20859 | result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3); | |
20860 | ||
20861 | wxPyEndAllowThreads(__tstate); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | } | |
20864 | { | |
20865 | wxDateTime * resultptr; | |
36ed4f51 | 20866 | resultptr = new wxDateTime((wxDateTime &)(result)); |
629e65c2 RD |
20867 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20868 | } | |
20869 | return resultobj; | |
20870 | fail: | |
20871 | return NULL; | |
20872 | } | |
20873 | ||
20874 | ||
c370783e | 20875 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20876 | PyObject *resultobj; |
20877 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 20878 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d55e5bfc RD |
20879 | int arg3 = (int) wxDateTime::Inv_Year ; |
20880 | wxDateTime *result; | |
20881 | PyObject * obj0 = 0 ; | |
20882 | PyObject * obj1 = 0 ; | |
20883 | PyObject * obj2 = 0 ; | |
20884 | char *kwnames[] = { | |
20885 | (char *) "self",(char *) "month",(char *) "year", NULL | |
20886 | }; | |
20887 | ||
20888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
20889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 20891 | if (obj1) { |
36ed4f51 RD |
20892 | { |
20893 | arg2 = (wxDateTime::Month)(SWIG_As_int(obj1)); | |
20894 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20895 | } | |
d55e5bfc RD |
20896 | } |
20897 | if (obj2) { | |
36ed4f51 RD |
20898 | { |
20899 | arg3 = (int)(SWIG_As_int(obj2)); | |
20900 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20901 | } | |
d55e5bfc RD |
20902 | } |
20903 | { | |
20904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20905 | { | |
20906 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
20907 | result = (wxDateTime *) &_result_ref; | |
20908 | } | |
20909 | ||
20910 | wxPyEndAllowThreads(__tstate); | |
20911 | if (PyErr_Occurred()) SWIG_fail; | |
20912 | } | |
20913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20914 | return resultobj; | |
20915 | fail: | |
20916 | return NULL; | |
20917 | } | |
20918 | ||
20919 | ||
c370783e | 20920 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20921 | PyObject *resultobj; |
20922 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 20923 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d55e5bfc RD |
20924 | int arg3 = (int) wxDateTime::Inv_Year ; |
20925 | wxDateTime result; | |
20926 | PyObject * obj0 = 0 ; | |
20927 | PyObject * obj1 = 0 ; | |
20928 | PyObject * obj2 = 0 ; | |
20929 | char *kwnames[] = { | |
20930 | (char *) "self",(char *) "month",(char *) "year", NULL | |
20931 | }; | |
20932 | ||
20933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
20934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 20936 | if (obj1) { |
36ed4f51 RD |
20937 | { |
20938 | arg2 = (wxDateTime::Month)(SWIG_As_int(obj1)); | |
20939 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20940 | } | |
d55e5bfc RD |
20941 | } |
20942 | if (obj2) { | |
36ed4f51 RD |
20943 | { |
20944 | arg3 = (int)(SWIG_As_int(obj2)); | |
20945 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20946 | } | |
d55e5bfc RD |
20947 | } |
20948 | { | |
20949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20950 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
20951 | ||
20952 | wxPyEndAllowThreads(__tstate); | |
20953 | if (PyErr_Occurred()) SWIG_fail; | |
20954 | } | |
20955 | { | |
20956 | wxDateTime * resultptr; | |
36ed4f51 | 20957 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
20958 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20959 | } | |
20960 | return resultobj; | |
20961 | fail: | |
20962 | return NULL; | |
20963 | } | |
20964 | ||
20965 | ||
c370783e | 20966 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20967 | PyObject *resultobj; |
20968 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20969 | int arg2 ; | |
20970 | wxDateTime *result; | |
20971 | PyObject * obj0 = 0 ; | |
20972 | PyObject * obj1 = 0 ; | |
20973 | char *kwnames[] = { | |
20974 | (char *) "self",(char *) "yday", NULL | |
20975 | }; | |
20976 | ||
20977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20978 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20979 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20980 | { | |
20981 | arg2 = (int)(SWIG_As_int(obj1)); | |
20982 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20983 | } | |
d55e5bfc RD |
20984 | { |
20985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20986 | { | |
20987 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
20988 | result = (wxDateTime *) &_result_ref; | |
20989 | } | |
20990 | ||
20991 | wxPyEndAllowThreads(__tstate); | |
20992 | if (PyErr_Occurred()) SWIG_fail; | |
20993 | } | |
20994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20995 | return resultobj; | |
20996 | fail: | |
20997 | return NULL; | |
20998 | } | |
20999 | ||
21000 | ||
c370783e | 21001 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21002 | PyObject *resultobj; |
21003 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21004 | int arg2 ; | |
21005 | wxDateTime result; | |
21006 | PyObject * obj0 = 0 ; | |
21007 | PyObject * obj1 = 0 ; | |
21008 | char *kwnames[] = { | |
21009 | (char *) "self",(char *) "yday", NULL | |
21010 | }; | |
21011 | ||
21012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21015 | { | |
21016 | arg2 = (int)(SWIG_As_int(obj1)); | |
21017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21018 | } | |
d55e5bfc RD |
21019 | { |
21020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21021 | result = (arg1)->GetYearDay(arg2); | |
21022 | ||
21023 | wxPyEndAllowThreads(__tstate); | |
21024 | if (PyErr_Occurred()) SWIG_fail; | |
21025 | } | |
21026 | { | |
21027 | wxDateTime * resultptr; | |
36ed4f51 | 21028 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
21029 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21030 | } | |
21031 | return resultobj; | |
21032 | fail: | |
21033 | return NULL; | |
21034 | } | |
21035 | ||
21036 | ||
c370783e | 21037 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21038 | PyObject *resultobj; |
21039 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21040 | double result; | |
21041 | PyObject * obj0 = 0 ; | |
21042 | char *kwnames[] = { | |
21043 | (char *) "self", NULL | |
21044 | }; | |
21045 | ||
21046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21047 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21048 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21049 | { |
21050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21051 | result = (double)(arg1)->GetJulianDayNumber(); | |
21052 | ||
21053 | wxPyEndAllowThreads(__tstate); | |
21054 | if (PyErr_Occurred()) SWIG_fail; | |
21055 | } | |
36ed4f51 RD |
21056 | { |
21057 | resultobj = SWIG_From_double((double)(result)); | |
21058 | } | |
d55e5bfc RD |
21059 | return resultobj; |
21060 | fail: | |
21061 | return NULL; | |
21062 | } | |
21063 | ||
21064 | ||
c370783e | 21065 | static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21066 | PyObject *resultobj; |
21067 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21068 | double result; | |
21069 | PyObject * obj0 = 0 ; | |
21070 | char *kwnames[] = { | |
21071 | (char *) "self", NULL | |
21072 | }; | |
21073 | ||
21074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21077 | { |
21078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21079 | result = (double)(arg1)->GetJDN(); | |
21080 | ||
21081 | wxPyEndAllowThreads(__tstate); | |
21082 | if (PyErr_Occurred()) SWIG_fail; | |
21083 | } | |
36ed4f51 RD |
21084 | { |
21085 | resultobj = SWIG_From_double((double)(result)); | |
21086 | } | |
d55e5bfc RD |
21087 | return resultobj; |
21088 | fail: | |
21089 | return NULL; | |
21090 | } | |
21091 | ||
21092 | ||
c370783e | 21093 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21094 | PyObject *resultobj; |
21095 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21096 | double result; | |
21097 | PyObject * obj0 = 0 ; | |
21098 | char *kwnames[] = { | |
21099 | (char *) "self", NULL | |
21100 | }; | |
21101 | ||
21102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21105 | { |
21106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21107 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
21108 | ||
21109 | wxPyEndAllowThreads(__tstate); | |
21110 | if (PyErr_Occurred()) SWIG_fail; | |
21111 | } | |
36ed4f51 RD |
21112 | { |
21113 | resultobj = SWIG_From_double((double)(result)); | |
21114 | } | |
d55e5bfc RD |
21115 | return resultobj; |
21116 | fail: | |
21117 | return NULL; | |
21118 | } | |
21119 | ||
21120 | ||
c370783e | 21121 | static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21122 | PyObject *resultobj; |
21123 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21124 | double result; | |
21125 | PyObject * obj0 = 0 ; | |
21126 | char *kwnames[] = { | |
21127 | (char *) "self", NULL | |
21128 | }; | |
21129 | ||
21130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21133 | { |
21134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21135 | result = (double)(arg1)->GetMJD(); | |
21136 | ||
21137 | wxPyEndAllowThreads(__tstate); | |
21138 | if (PyErr_Occurred()) SWIG_fail; | |
21139 | } | |
36ed4f51 RD |
21140 | { |
21141 | resultobj = SWIG_From_double((double)(result)); | |
21142 | } | |
d55e5bfc RD |
21143 | return resultobj; |
21144 | fail: | |
21145 | return NULL; | |
21146 | } | |
21147 | ||
21148 | ||
c370783e | 21149 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21150 | PyObject *resultobj; |
21151 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21152 | double result; | |
21153 | PyObject * obj0 = 0 ; | |
21154 | char *kwnames[] = { | |
21155 | (char *) "self", NULL | |
21156 | }; | |
21157 | ||
21158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21161 | { |
21162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21163 | result = (double)(arg1)->GetRataDie(); | |
21164 | ||
21165 | wxPyEndAllowThreads(__tstate); | |
21166 | if (PyErr_Occurred()) SWIG_fail; | |
21167 | } | |
36ed4f51 RD |
21168 | { |
21169 | resultobj = SWIG_From_double((double)(result)); | |
21170 | } | |
d55e5bfc RD |
21171 | return resultobj; |
21172 | fail: | |
21173 | return NULL; | |
21174 | } | |
21175 | ||
21176 | ||
c370783e | 21177 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21178 | PyObject *resultobj; |
21179 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21180 | wxDateTime::TimeZone *arg2 = 0 ; | |
b411df4a | 21181 | bool arg3 = (bool) false ; |
d55e5bfc | 21182 | wxDateTime result; |
b411df4a | 21183 | bool temp2 = false ; |
d55e5bfc RD |
21184 | PyObject * obj0 = 0 ; |
21185 | PyObject * obj1 = 0 ; | |
21186 | PyObject * obj2 = 0 ; | |
21187 | char *kwnames[] = { | |
21188 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
21189 | }; | |
21190 | ||
21191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
21192 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21193 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21194 | { |
21195 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 21196 | temp2 = true; |
d55e5bfc RD |
21197 | } |
21198 | if (obj2) { | |
36ed4f51 RD |
21199 | { |
21200 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
21201 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21202 | } | |
d55e5bfc RD |
21203 | } |
21204 | { | |
21205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21206 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
21207 | ||
21208 | wxPyEndAllowThreads(__tstate); | |
21209 | if (PyErr_Occurred()) SWIG_fail; | |
21210 | } | |
21211 | { | |
21212 | wxDateTime * resultptr; | |
36ed4f51 | 21213 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
21214 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21215 | } | |
21216 | { | |
21217 | if (temp2) delete arg2; | |
21218 | } | |
21219 | return resultobj; | |
21220 | fail: | |
21221 | { | |
21222 | if (temp2) delete arg2; | |
21223 | } | |
21224 | return NULL; | |
21225 | } | |
21226 | ||
21227 | ||
c370783e | 21228 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21229 | PyObject *resultobj; |
21230 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21231 | wxDateTime::TimeZone *arg2 = 0 ; | |
b411df4a | 21232 | bool arg3 = (bool) false ; |
d55e5bfc | 21233 | wxDateTime *result; |
b411df4a | 21234 | bool temp2 = false ; |
d55e5bfc RD |
21235 | PyObject * obj0 = 0 ; |
21236 | PyObject * obj1 = 0 ; | |
21237 | PyObject * obj2 = 0 ; | |
21238 | char *kwnames[] = { | |
21239 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
21240 | }; | |
21241 | ||
21242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
21243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21245 | { |
21246 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 21247 | temp2 = true; |
d55e5bfc RD |
21248 | } |
21249 | if (obj2) { | |
36ed4f51 RD |
21250 | { |
21251 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
21252 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21253 | } | |
d55e5bfc RD |
21254 | } |
21255 | { | |
21256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21257 | { | |
21258 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
21259 | result = (wxDateTime *) &_result_ref; | |
21260 | } | |
21261 | ||
21262 | wxPyEndAllowThreads(__tstate); | |
21263 | if (PyErr_Occurred()) SWIG_fail; | |
21264 | } | |
21265 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21266 | { | |
21267 | if (temp2) delete arg2; | |
21268 | } | |
21269 | return resultobj; | |
21270 | fail: | |
21271 | { | |
21272 | if (temp2) delete arg2; | |
21273 | } | |
21274 | return NULL; | |
21275 | } | |
21276 | ||
21277 | ||
c370783e | 21278 | static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21279 | PyObject *resultobj; |
21280 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
b411df4a | 21281 | bool arg2 = (bool) false ; |
d55e5bfc RD |
21282 | wxDateTime result; |
21283 | PyObject * obj0 = 0 ; | |
21284 | PyObject * obj1 = 0 ; | |
21285 | char *kwnames[] = { | |
21286 | (char *) "self",(char *) "noDST", NULL | |
21287 | }; | |
21288 | ||
21289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 21292 | if (obj1) { |
36ed4f51 RD |
21293 | { |
21294 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21295 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21296 | } | |
d55e5bfc RD |
21297 | } |
21298 | { | |
21299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21300 | result = (arg1)->ToGMT(arg2); | |
21301 | ||
21302 | wxPyEndAllowThreads(__tstate); | |
21303 | if (PyErr_Occurred()) SWIG_fail; | |
21304 | } | |
21305 | { | |
21306 | wxDateTime * resultptr; | |
36ed4f51 | 21307 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
21308 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
21309 | } | |
21310 | return resultobj; | |
21311 | fail: | |
21312 | return NULL; | |
21313 | } | |
21314 | ||
21315 | ||
c370783e | 21316 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21317 | PyObject *resultobj; |
21318 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
b411df4a | 21319 | bool arg2 = (bool) false ; |
d55e5bfc RD |
21320 | wxDateTime *result; |
21321 | PyObject * obj0 = 0 ; | |
21322 | PyObject * obj1 = 0 ; | |
21323 | char *kwnames[] = { | |
21324 | (char *) "self",(char *) "noDST", NULL | |
21325 | }; | |
21326 | ||
21327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 21330 | if (obj1) { |
36ed4f51 RD |
21331 | { |
21332 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21333 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21334 | } | |
d55e5bfc RD |
21335 | } |
21336 | { | |
21337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21338 | { | |
21339 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
21340 | result = (wxDateTime *) &_result_ref; | |
21341 | } | |
21342 | ||
21343 | wxPyEndAllowThreads(__tstate); | |
21344 | if (PyErr_Occurred()) SWIG_fail; | |
21345 | } | |
21346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
21347 | return resultobj; | |
21348 | fail: | |
21349 | return NULL; | |
21350 | } | |
21351 | ||
21352 | ||
c370783e | 21353 | static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21354 | PyObject *resultobj; |
21355 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 21356 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
21357 | int result; |
21358 | PyObject * obj0 = 0 ; | |
21359 | PyObject * obj1 = 0 ; | |
21360 | char *kwnames[] = { | |
21361 | (char *) "self",(char *) "country", NULL | |
21362 | }; | |
21363 | ||
21364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21365 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21366 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 21367 | if (obj1) { |
36ed4f51 RD |
21368 | { |
21369 | arg2 = (wxDateTime::Country)(SWIG_As_int(obj1)); | |
21370 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21371 | } | |
d55e5bfc RD |
21372 | } |
21373 | { | |
21374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21375 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
21376 | ||
21377 | wxPyEndAllowThreads(__tstate); | |
21378 | if (PyErr_Occurred()) SWIG_fail; | |
21379 | } | |
36ed4f51 RD |
21380 | { |
21381 | resultobj = SWIG_From_int((int)(result)); | |
21382 | } | |
d55e5bfc RD |
21383 | return resultobj; |
21384 | fail: | |
21385 | return NULL; | |
21386 | } | |
21387 | ||
21388 | ||
c370783e | 21389 | static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21390 | PyObject *resultobj; |
21391 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21392 | bool result; | |
21393 | PyObject * obj0 = 0 ; | |
21394 | char *kwnames[] = { | |
21395 | (char *) "self", NULL | |
21396 | }; | |
21397 | ||
21398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21401 | { |
21402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21403 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
21404 | ||
21405 | wxPyEndAllowThreads(__tstate); | |
21406 | if (PyErr_Occurred()) SWIG_fail; | |
21407 | } | |
21408 | { | |
21409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21410 | } | |
21411 | return resultobj; | |
21412 | fail: | |
21413 | return NULL; | |
21414 | } | |
21415 | ||
21416 | ||
c370783e | 21417 | static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21418 | PyObject *resultobj; |
21419 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21420 | time_t result; | |
21421 | PyObject * obj0 = 0 ; | |
21422 | char *kwnames[] = { | |
21423 | (char *) "self", NULL | |
21424 | }; | |
21425 | ||
21426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21427 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21428 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21429 | { |
21430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21431 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
21432 | ||
21433 | wxPyEndAllowThreads(__tstate); | |
21434 | if (PyErr_Occurred()) SWIG_fail; | |
21435 | } | |
36ed4f51 RD |
21436 | { |
21437 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
21438 | } | |
d55e5bfc RD |
21439 | return resultobj; |
21440 | fail: | |
21441 | return NULL; | |
21442 | } | |
21443 | ||
21444 | ||
c370783e | 21445 | static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21446 | PyObject *resultobj; |
21447 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21448 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21449 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
21450 | int result; | |
b411df4a | 21451 | bool temp2 = false ; |
d55e5bfc RD |
21452 | PyObject * obj0 = 0 ; |
21453 | PyObject * obj1 = 0 ; | |
21454 | char *kwnames[] = { | |
21455 | (char *) "self",(char *) "tz", NULL | |
21456 | }; | |
21457 | ||
21458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21461 | if (obj1) { |
21462 | { | |
21463 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 21464 | temp2 = true; |
d55e5bfc RD |
21465 | } |
21466 | } | |
21467 | { | |
21468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21469 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
21470 | ||
21471 | wxPyEndAllowThreads(__tstate); | |
21472 | if (PyErr_Occurred()) SWIG_fail; | |
21473 | } | |
36ed4f51 RD |
21474 | { |
21475 | resultobj = SWIG_From_int((int)(result)); | |
21476 | } | |
d55e5bfc RD |
21477 | { |
21478 | if (temp2) delete arg2; | |
21479 | } | |
21480 | return resultobj; | |
21481 | fail: | |
21482 | { | |
21483 | if (temp2) delete arg2; | |
21484 | } | |
21485 | return NULL; | |
21486 | } | |
21487 | ||
21488 | ||
c370783e | 21489 | static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21490 | PyObject *resultobj; |
21491 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21492 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21493 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
36ed4f51 | 21494 | wxDateTime::Month result; |
b411df4a | 21495 | bool temp2 = false ; |
d55e5bfc RD |
21496 | PyObject * obj0 = 0 ; |
21497 | PyObject * obj1 = 0 ; | |
21498 | char *kwnames[] = { | |
21499 | (char *) "self",(char *) "tz", NULL | |
21500 | }; | |
21501 | ||
21502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21505 | if (obj1) { |
21506 | { | |
21507 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 21508 | temp2 = true; |
d55e5bfc RD |
21509 | } |
21510 | } | |
21511 | { | |
21512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 21513 | result = (wxDateTime::Month)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); |
d55e5bfc RD |
21514 | |
21515 | wxPyEndAllowThreads(__tstate); | |
21516 | if (PyErr_Occurred()) SWIG_fail; | |
21517 | } | |
36ed4f51 | 21518 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
21519 | { |
21520 | if (temp2) delete arg2; | |
21521 | } | |
21522 | return resultobj; | |
21523 | fail: | |
21524 | { | |
21525 | if (temp2) delete arg2; | |
21526 | } | |
21527 | return NULL; | |
21528 | } | |
21529 | ||
21530 | ||
c370783e | 21531 | static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21532 | PyObject *resultobj; |
21533 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21534 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21535 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
21536 | int result; | |
b411df4a | 21537 | bool temp2 = false ; |
d55e5bfc RD |
21538 | PyObject * obj0 = 0 ; |
21539 | PyObject * obj1 = 0 ; | |
21540 | char *kwnames[] = { | |
21541 | (char *) "self",(char *) "tz", NULL | |
21542 | }; | |
21543 | ||
21544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21547 | if (obj1) { |
21548 | { | |
21549 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 21550 | temp2 = true; |
d55e5bfc RD |
21551 | } |
21552 | } | |
21553 | { | |
21554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21555 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
21556 | ||
21557 | wxPyEndAllowThreads(__tstate); | |
21558 | if (PyErr_Occurred()) SWIG_fail; | |
21559 | } | |
36ed4f51 RD |
21560 | { |
21561 | resultobj = SWIG_From_int((int)(result)); | |
21562 | } | |
d55e5bfc RD |
21563 | { |
21564 | if (temp2) delete arg2; | |
21565 | } | |
21566 | return resultobj; | |
21567 | fail: | |
21568 | { | |
21569 | if (temp2) delete arg2; | |
21570 | } | |
21571 | return NULL; | |
21572 | } | |
21573 | ||
21574 | ||
c370783e | 21575 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21576 | PyObject *resultobj; |
21577 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21578 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21579 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
36ed4f51 | 21580 | wxDateTime::WeekDay result; |
b411df4a | 21581 | bool temp2 = false ; |
d55e5bfc RD |
21582 | PyObject * obj0 = 0 ; |
21583 | PyObject * obj1 = 0 ; | |
21584 | char *kwnames[] = { | |
21585 | (char *) "self",(char *) "tz", NULL | |
21586 | }; | |
21587 | ||
21588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21591 | if (obj1) { |
21592 | { | |
21593 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 21594 | temp2 = true; |
d55e5bfc RD |
21595 | } |
21596 | } | |
21597 | { | |
21598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 21599 | result = (wxDateTime::WeekDay)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); |
d55e5bfc RD |
21600 | |
21601 | wxPyEndAllowThreads(__tstate); | |
21602 | if (PyErr_Occurred()) SWIG_fail; | |
21603 | } | |
36ed4f51 | 21604 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
21605 | { |
21606 | if (temp2) delete arg2; | |
21607 | } | |
21608 | return resultobj; | |
21609 | fail: | |
21610 | { | |
21611 | if (temp2) delete arg2; | |
21612 | } | |
21613 | return NULL; | |
21614 | } | |
21615 | ||
21616 | ||
c370783e | 21617 | static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21618 | PyObject *resultobj; |
21619 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21620 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21621 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
21622 | int result; | |
b411df4a | 21623 | bool temp2 = false ; |
d55e5bfc RD |
21624 | PyObject * obj0 = 0 ; |
21625 | PyObject * obj1 = 0 ; | |
21626 | char *kwnames[] = { | |
21627 | (char *) "self",(char *) "tz", NULL | |
21628 | }; | |
21629 | ||
21630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21633 | if (obj1) { |
21634 | { | |
21635 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 21636 | temp2 = true; |
d55e5bfc RD |
21637 | } |
21638 | } | |
21639 | { | |
21640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21641 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
21642 | ||
21643 | wxPyEndAllowThreads(__tstate); | |
21644 | if (PyErr_Occurred()) SWIG_fail; | |
21645 | } | |
36ed4f51 RD |
21646 | { |
21647 | resultobj = SWIG_From_int((int)(result)); | |
21648 | } | |
d55e5bfc RD |
21649 | { |
21650 | if (temp2) delete arg2; | |
21651 | } | |
21652 | return resultobj; | |
21653 | fail: | |
21654 | { | |
21655 | if (temp2) delete arg2; | |
21656 | } | |
21657 | return NULL; | |
21658 | } | |
21659 | ||
21660 | ||
c370783e | 21661 | static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21662 | PyObject *resultobj; |
21663 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21664 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21665 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
21666 | int result; | |
b411df4a | 21667 | bool temp2 = false ; |
d55e5bfc RD |
21668 | PyObject * obj0 = 0 ; |
21669 | PyObject * obj1 = 0 ; | |
21670 | char *kwnames[] = { | |
21671 | (char *) "self",(char *) "tz", NULL | |
21672 | }; | |
21673 | ||
21674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21675 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21676 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21677 | if (obj1) { |
21678 | { | |
21679 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 21680 | temp2 = true; |
d55e5bfc RD |
21681 | } |
21682 | } | |
21683 | { | |
21684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21685 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
21686 | ||
21687 | wxPyEndAllowThreads(__tstate); | |
21688 | if (PyErr_Occurred()) SWIG_fail; | |
21689 | } | |
36ed4f51 RD |
21690 | { |
21691 | resultobj = SWIG_From_int((int)(result)); | |
21692 | } | |
d55e5bfc RD |
21693 | { |
21694 | if (temp2) delete arg2; | |
21695 | } | |
21696 | return resultobj; | |
21697 | fail: | |
21698 | { | |
21699 | if (temp2) delete arg2; | |
21700 | } | |
21701 | return NULL; | |
21702 | } | |
21703 | ||
21704 | ||
c370783e | 21705 | static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21706 | PyObject *resultobj; |
21707 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21708 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21709 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
21710 | int result; | |
b411df4a | 21711 | bool temp2 = false ; |
d55e5bfc RD |
21712 | PyObject * obj0 = 0 ; |
21713 | PyObject * obj1 = 0 ; | |
21714 | char *kwnames[] = { | |
21715 | (char *) "self",(char *) "tz", NULL | |
21716 | }; | |
21717 | ||
21718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21721 | if (obj1) { |
21722 | { | |
21723 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 21724 | temp2 = true; |
d55e5bfc RD |
21725 | } |
21726 | } | |
21727 | { | |
21728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21729 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
21730 | ||
21731 | wxPyEndAllowThreads(__tstate); | |
21732 | if (PyErr_Occurred()) SWIG_fail; | |
21733 | } | |
36ed4f51 RD |
21734 | { |
21735 | resultobj = SWIG_From_int((int)(result)); | |
21736 | } | |
d55e5bfc RD |
21737 | { |
21738 | if (temp2) delete arg2; | |
21739 | } | |
21740 | return resultobj; | |
21741 | fail: | |
21742 | { | |
21743 | if (temp2) delete arg2; | |
21744 | } | |
21745 | return NULL; | |
21746 | } | |
21747 | ||
21748 | ||
c370783e | 21749 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21750 | PyObject *resultobj; |
21751 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21752 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21753 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
21754 | int result; | |
b411df4a | 21755 | bool temp2 = false ; |
d55e5bfc RD |
21756 | PyObject * obj0 = 0 ; |
21757 | PyObject * obj1 = 0 ; | |
21758 | char *kwnames[] = { | |
21759 | (char *) "self",(char *) "tz", NULL | |
21760 | }; | |
21761 | ||
21762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21763 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21764 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21765 | if (obj1) { |
21766 | { | |
21767 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 21768 | temp2 = true; |
d55e5bfc RD |
21769 | } |
21770 | } | |
21771 | { | |
21772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21773 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
21774 | ||
21775 | wxPyEndAllowThreads(__tstate); | |
21776 | if (PyErr_Occurred()) SWIG_fail; | |
21777 | } | |
36ed4f51 RD |
21778 | { |
21779 | resultobj = SWIG_From_int((int)(result)); | |
21780 | } | |
d55e5bfc RD |
21781 | { |
21782 | if (temp2) delete arg2; | |
21783 | } | |
21784 | return resultobj; | |
21785 | fail: | |
21786 | { | |
21787 | if (temp2) delete arg2; | |
21788 | } | |
21789 | return NULL; | |
21790 | } | |
21791 | ||
21792 | ||
c370783e | 21793 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21794 | PyObject *resultobj; |
21795 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21796 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21797 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
21798 | int result; | |
b411df4a | 21799 | bool temp2 = false ; |
d55e5bfc RD |
21800 | PyObject * obj0 = 0 ; |
21801 | PyObject * obj1 = 0 ; | |
21802 | char *kwnames[] = { | |
21803 | (char *) "self",(char *) "tz", NULL | |
21804 | }; | |
21805 | ||
21806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21809 | if (obj1) { |
21810 | { | |
21811 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 21812 | temp2 = true; |
d55e5bfc RD |
21813 | } |
21814 | } | |
21815 | { | |
21816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21817 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
21818 | ||
21819 | wxPyEndAllowThreads(__tstate); | |
21820 | if (PyErr_Occurred()) SWIG_fail; | |
21821 | } | |
36ed4f51 RD |
21822 | { |
21823 | resultobj = SWIG_From_int((int)(result)); | |
21824 | } | |
d55e5bfc RD |
21825 | { |
21826 | if (temp2) delete arg2; | |
21827 | } | |
21828 | return resultobj; | |
21829 | fail: | |
21830 | { | |
21831 | if (temp2) delete arg2; | |
21832 | } | |
21833 | return NULL; | |
21834 | } | |
21835 | ||
21836 | ||
c370783e | 21837 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21838 | PyObject *resultobj; |
21839 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 21840 | wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; |
d55e5bfc RD |
21841 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; |
21842 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21843 | int result; | |
b411df4a | 21844 | bool temp3 = false ; |
d55e5bfc RD |
21845 | PyObject * obj0 = 0 ; |
21846 | PyObject * obj1 = 0 ; | |
21847 | PyObject * obj2 = 0 ; | |
21848 | char *kwnames[] = { | |
21849 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
21850 | }; | |
21851 | ||
21852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
21853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 21855 | if (obj1) { |
36ed4f51 RD |
21856 | { |
21857 | arg2 = (wxDateTime::WeekFlags)(SWIG_As_int(obj1)); | |
21858 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21859 | } | |
d55e5bfc RD |
21860 | } |
21861 | if (obj2) { | |
21862 | { | |
21863 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
b411df4a | 21864 | temp3 = true; |
d55e5bfc RD |
21865 | } |
21866 | } | |
21867 | { | |
21868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21869 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
21870 | ||
21871 | wxPyEndAllowThreads(__tstate); | |
21872 | if (PyErr_Occurred()) SWIG_fail; | |
21873 | } | |
36ed4f51 RD |
21874 | { |
21875 | resultobj = SWIG_From_int((int)(result)); | |
21876 | } | |
d55e5bfc RD |
21877 | { |
21878 | if (temp3) delete arg3; | |
21879 | } | |
21880 | return resultobj; | |
21881 | fail: | |
21882 | { | |
21883 | if (temp3) delete arg3; | |
21884 | } | |
21885 | return NULL; | |
21886 | } | |
21887 | ||
21888 | ||
c370783e | 21889 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21890 | PyObject *resultobj; |
21891 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 21892 | wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; |
d55e5bfc RD |
21893 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; |
21894 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21895 | int result; | |
b411df4a | 21896 | bool temp3 = false ; |
d55e5bfc RD |
21897 | PyObject * obj0 = 0 ; |
21898 | PyObject * obj1 = 0 ; | |
21899 | PyObject * obj2 = 0 ; | |
21900 | char *kwnames[] = { | |
21901 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
21902 | }; | |
21903 | ||
21904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
21905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 21907 | if (obj1) { |
36ed4f51 RD |
21908 | { |
21909 | arg2 = (wxDateTime::WeekFlags)(SWIG_As_int(obj1)); | |
21910 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21911 | } | |
d55e5bfc RD |
21912 | } |
21913 | if (obj2) { | |
21914 | { | |
21915 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
b411df4a | 21916 | temp3 = true; |
d55e5bfc RD |
21917 | } |
21918 | } | |
21919 | { | |
21920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21921 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
21922 | ||
21923 | wxPyEndAllowThreads(__tstate); | |
21924 | if (PyErr_Occurred()) SWIG_fail; | |
21925 | } | |
36ed4f51 RD |
21926 | { |
21927 | resultobj = SWIG_From_int((int)(result)); | |
21928 | } | |
d55e5bfc RD |
21929 | { |
21930 | if (temp3) delete arg3; | |
21931 | } | |
21932 | return resultobj; | |
21933 | fail: | |
21934 | { | |
21935 | if (temp3) delete arg3; | |
21936 | } | |
21937 | return NULL; | |
21938 | } | |
21939 | ||
21940 | ||
c370783e | 21941 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21942 | PyObject *resultobj; |
21943 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
36ed4f51 | 21944 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d55e5bfc RD |
21945 | bool result; |
21946 | PyObject * obj0 = 0 ; | |
21947 | PyObject * obj1 = 0 ; | |
21948 | char *kwnames[] = { | |
21949 | (char *) "self",(char *) "country", NULL | |
21950 | }; | |
21951 | ||
21952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 21955 | if (obj1) { |
36ed4f51 RD |
21956 | { |
21957 | arg2 = (wxDateTime::Country)(SWIG_As_int(obj1)); | |
21958 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21959 | } | |
d55e5bfc RD |
21960 | } |
21961 | { | |
21962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21963 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
21964 | ||
21965 | wxPyEndAllowThreads(__tstate); | |
21966 | if (PyErr_Occurred()) SWIG_fail; | |
21967 | } | |
21968 | { | |
21969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21970 | } | |
21971 | return resultobj; | |
21972 | fail: | |
21973 | return NULL; | |
21974 | } | |
21975 | ||
21976 | ||
c370783e | 21977 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21978 | PyObject *resultobj; |
21979 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21980 | wxDateTime *arg2 = 0 ; | |
21981 | bool result; | |
21982 | PyObject * obj0 = 0 ; | |
21983 | PyObject * obj1 = 0 ; | |
21984 | char *kwnames[] = { | |
21985 | (char *) "self",(char *) "datetime", NULL | |
21986 | }; | |
21987 | ||
21988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21989 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21990 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21991 | { | |
21992 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
21993 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21994 | if (arg2 == NULL) { | |
21995 | SWIG_null_ref("wxDateTime"); | |
21996 | } | |
21997 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
21998 | } |
21999 | { | |
22000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22001 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
22002 | ||
22003 | wxPyEndAllowThreads(__tstate); | |
22004 | if (PyErr_Occurred()) SWIG_fail; | |
22005 | } | |
22006 | { | |
22007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22008 | } | |
22009 | return resultobj; | |
22010 | fail: | |
22011 | return NULL; | |
22012 | } | |
22013 | ||
22014 | ||
c370783e | 22015 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22016 | PyObject *resultobj; |
22017 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22018 | wxDateTime *arg2 = 0 ; | |
22019 | bool result; | |
22020 | PyObject * obj0 = 0 ; | |
22021 | PyObject * obj1 = 0 ; | |
22022 | char *kwnames[] = { | |
22023 | (char *) "self",(char *) "datetime", NULL | |
22024 | }; | |
22025 | ||
22026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22027 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22028 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22029 | { | |
22030 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22031 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22032 | if (arg2 == NULL) { | |
22033 | SWIG_null_ref("wxDateTime"); | |
22034 | } | |
22035 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22036 | } |
22037 | { | |
22038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22039 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
22040 | ||
22041 | wxPyEndAllowThreads(__tstate); | |
22042 | if (PyErr_Occurred()) SWIG_fail; | |
22043 | } | |
22044 | { | |
22045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22046 | } | |
22047 | return resultobj; | |
22048 | fail: | |
22049 | return NULL; | |
22050 | } | |
22051 | ||
22052 | ||
c370783e | 22053 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22054 | PyObject *resultobj; |
22055 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22056 | wxDateTime *arg2 = 0 ; | |
22057 | bool result; | |
22058 | PyObject * obj0 = 0 ; | |
22059 | PyObject * obj1 = 0 ; | |
22060 | char *kwnames[] = { | |
22061 | (char *) "self",(char *) "datetime", NULL | |
22062 | }; | |
22063 | ||
22064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22065 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22066 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22067 | { | |
22068 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22069 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22070 | if (arg2 == NULL) { | |
22071 | SWIG_null_ref("wxDateTime"); | |
22072 | } | |
22073 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22074 | } |
22075 | { | |
22076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22077 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
22078 | ||
22079 | wxPyEndAllowThreads(__tstate); | |
22080 | if (PyErr_Occurred()) SWIG_fail; | |
22081 | } | |
22082 | { | |
22083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22084 | } | |
22085 | return resultobj; | |
22086 | fail: | |
22087 | return NULL; | |
22088 | } | |
22089 | ||
22090 | ||
c370783e | 22091 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22092 | PyObject *resultobj; |
22093 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22094 | wxDateTime *arg2 = 0 ; | |
22095 | wxDateTime *arg3 = 0 ; | |
22096 | bool result; | |
22097 | PyObject * obj0 = 0 ; | |
22098 | PyObject * obj1 = 0 ; | |
22099 | PyObject * obj2 = 0 ; | |
22100 | char *kwnames[] = { | |
22101 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
22102 | }; | |
22103 | ||
22104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
22105 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22107 | { | |
22108 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22109 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22110 | if (arg2 == NULL) { | |
22111 | SWIG_null_ref("wxDateTime"); | |
22112 | } | |
22113 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 22114 | } |
36ed4f51 RD |
22115 | { |
22116 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22117 | if (SWIG_arg_fail(3)) SWIG_fail; | |
22118 | if (arg3 == NULL) { | |
22119 | SWIG_null_ref("wxDateTime"); | |
22120 | } | |
22121 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
22122 | } |
22123 | { | |
22124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22125 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
22126 | ||
22127 | wxPyEndAllowThreads(__tstate); | |
22128 | if (PyErr_Occurred()) SWIG_fail; | |
22129 | } | |
22130 | { | |
22131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22132 | } | |
22133 | return resultobj; | |
22134 | fail: | |
22135 | return NULL; | |
22136 | } | |
22137 | ||
22138 | ||
c370783e | 22139 | static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22140 | PyObject *resultobj; |
22141 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22142 | wxDateTime *arg2 = 0 ; | |
22143 | wxDateTime *arg3 = 0 ; | |
22144 | bool result; | |
22145 | PyObject * obj0 = 0 ; | |
22146 | PyObject * obj1 = 0 ; | |
22147 | PyObject * obj2 = 0 ; | |
22148 | char *kwnames[] = { | |
22149 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
22150 | }; | |
22151 | ||
22152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
22153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22155 | { | |
22156 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22157 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22158 | if (arg2 == NULL) { | |
22159 | SWIG_null_ref("wxDateTime"); | |
22160 | } | |
22161 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 22162 | } |
36ed4f51 RD |
22163 | { |
22164 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22165 | if (SWIG_arg_fail(3)) SWIG_fail; | |
22166 | if (arg3 == NULL) { | |
22167 | SWIG_null_ref("wxDateTime"); | |
22168 | } | |
22169 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
22170 | } |
22171 | { | |
22172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22173 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
22174 | ||
22175 | wxPyEndAllowThreads(__tstate); | |
22176 | if (PyErr_Occurred()) SWIG_fail; | |
22177 | } | |
22178 | { | |
22179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22180 | } | |
22181 | return resultobj; | |
22182 | fail: | |
22183 | return NULL; | |
22184 | } | |
22185 | ||
22186 | ||
c370783e | 22187 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22188 | PyObject *resultobj; |
22189 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22190 | wxDateTime *arg2 = 0 ; | |
22191 | bool result; | |
22192 | PyObject * obj0 = 0 ; | |
22193 | PyObject * obj1 = 0 ; | |
22194 | char *kwnames[] = { | |
22195 | (char *) "self",(char *) "dt", NULL | |
22196 | }; | |
22197 | ||
22198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22201 | { | |
22202 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22203 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22204 | if (arg2 == NULL) { | |
22205 | SWIG_null_ref("wxDateTime"); | |
22206 | } | |
22207 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22208 | } |
22209 | { | |
22210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22211 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
22212 | ||
22213 | wxPyEndAllowThreads(__tstate); | |
22214 | if (PyErr_Occurred()) SWIG_fail; | |
22215 | } | |
22216 | { | |
22217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22218 | } | |
22219 | return resultobj; | |
22220 | fail: | |
22221 | return NULL; | |
22222 | } | |
22223 | ||
22224 | ||
c370783e | 22225 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22226 | PyObject *resultobj; |
22227 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22228 | wxDateTime *arg2 = 0 ; | |
22229 | bool result; | |
22230 | PyObject * obj0 = 0 ; | |
22231 | PyObject * obj1 = 0 ; | |
22232 | char *kwnames[] = { | |
22233 | (char *) "self",(char *) "dt", NULL | |
22234 | }; | |
22235 | ||
22236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22237 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22238 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22239 | { | |
22240 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22241 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22242 | if (arg2 == NULL) { | |
22243 | SWIG_null_ref("wxDateTime"); | |
22244 | } | |
22245 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22246 | } |
22247 | { | |
22248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22249 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
22250 | ||
22251 | wxPyEndAllowThreads(__tstate); | |
22252 | if (PyErr_Occurred()) SWIG_fail; | |
22253 | } | |
22254 | { | |
22255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22256 | } | |
22257 | return resultobj; | |
22258 | fail: | |
22259 | return NULL; | |
22260 | } | |
22261 | ||
22262 | ||
c370783e | 22263 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22264 | PyObject *resultobj; |
22265 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22266 | wxDateTime *arg2 = 0 ; | |
22267 | wxTimeSpan *arg3 = 0 ; | |
22268 | bool result; | |
22269 | PyObject * obj0 = 0 ; | |
22270 | PyObject * obj1 = 0 ; | |
22271 | PyObject * obj2 = 0 ; | |
22272 | char *kwnames[] = { | |
22273 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
22274 | }; | |
22275 | ||
22276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
22277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22279 | { | |
22280 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22281 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22282 | if (arg2 == NULL) { | |
22283 | SWIG_null_ref("wxDateTime"); | |
22284 | } | |
22285 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 22286 | } |
36ed4f51 RD |
22287 | { |
22288 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22289 | if (SWIG_arg_fail(3)) SWIG_fail; | |
22290 | if (arg3 == NULL) { | |
22291 | SWIG_null_ref("wxTimeSpan"); | |
22292 | } | |
22293 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
22294 | } |
22295 | { | |
22296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22297 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
22298 | ||
22299 | wxPyEndAllowThreads(__tstate); | |
22300 | if (PyErr_Occurred()) SWIG_fail; | |
22301 | } | |
22302 | { | |
22303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22304 | } | |
22305 | return resultobj; | |
22306 | fail: | |
22307 | return NULL; | |
22308 | } | |
22309 | ||
22310 | ||
c370783e | 22311 | static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22312 | PyObject *resultobj; |
22313 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22314 | wxTimeSpan *arg2 = 0 ; | |
22315 | wxDateTime *result; | |
22316 | PyObject * obj0 = 0 ; | |
22317 | PyObject * obj1 = 0 ; | |
22318 | char *kwnames[] = { | |
22319 | (char *) "self",(char *) "diff", NULL | |
22320 | }; | |
22321 | ||
22322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22323 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22324 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22325 | { | |
22326 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22327 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22328 | if (arg2 == NULL) { | |
22329 | SWIG_null_ref("wxTimeSpan"); | |
22330 | } | |
22331 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22332 | } |
22333 | { | |
22334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22335 | { | |
22336 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
22337 | result = (wxDateTime *) &_result_ref; | |
22338 | } | |
22339 | ||
22340 | wxPyEndAllowThreads(__tstate); | |
22341 | if (PyErr_Occurred()) SWIG_fail; | |
22342 | } | |
22343 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22344 | return resultobj; | |
22345 | fail: | |
22346 | return NULL; | |
22347 | } | |
22348 | ||
22349 | ||
c370783e | 22350 | static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22351 | PyObject *resultobj; |
22352 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22353 | wxDateSpan *arg2 = 0 ; | |
22354 | wxDateTime *result; | |
22355 | PyObject * obj0 = 0 ; | |
22356 | PyObject * obj1 = 0 ; | |
22357 | char *kwnames[] = { | |
22358 | (char *) "self",(char *) "diff", NULL | |
22359 | }; | |
22360 | ||
22361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22364 | { | |
22365 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
22366 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22367 | if (arg2 == NULL) { | |
22368 | SWIG_null_ref("wxDateSpan"); | |
22369 | } | |
22370 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22371 | } |
22372 | { | |
22373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22374 | { | |
22375 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
22376 | result = (wxDateTime *) &_result_ref; | |
22377 | } | |
22378 | ||
22379 | wxPyEndAllowThreads(__tstate); | |
22380 | if (PyErr_Occurred()) SWIG_fail; | |
22381 | } | |
22382 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22383 | return resultobj; | |
22384 | fail: | |
22385 | return NULL; | |
22386 | } | |
22387 | ||
22388 | ||
c370783e | 22389 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22390 | PyObject *resultobj; |
22391 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22392 | wxTimeSpan *arg2 = 0 ; | |
22393 | wxDateTime *result; | |
22394 | PyObject * obj0 = 0 ; | |
22395 | PyObject * obj1 = 0 ; | |
22396 | char *kwnames[] = { | |
22397 | (char *) "self",(char *) "diff", NULL | |
22398 | }; | |
22399 | ||
22400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22401 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22402 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22403 | { | |
22404 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22405 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22406 | if (arg2 == NULL) { | |
22407 | SWIG_null_ref("wxTimeSpan"); | |
22408 | } | |
22409 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22410 | } |
22411 | { | |
22412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22413 | { | |
22414 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
22415 | result = (wxDateTime *) &_result_ref; | |
22416 | } | |
22417 | ||
22418 | wxPyEndAllowThreads(__tstate); | |
22419 | if (PyErr_Occurred()) SWIG_fail; | |
22420 | } | |
22421 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22422 | return resultobj; | |
22423 | fail: | |
22424 | return NULL; | |
22425 | } | |
22426 | ||
22427 | ||
c370783e | 22428 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22429 | PyObject *resultobj; |
22430 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22431 | wxDateSpan *arg2 = 0 ; | |
22432 | wxDateTime *result; | |
22433 | PyObject * obj0 = 0 ; | |
22434 | PyObject * obj1 = 0 ; | |
22435 | char *kwnames[] = { | |
22436 | (char *) "self",(char *) "diff", NULL | |
22437 | }; | |
22438 | ||
22439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22442 | { | |
22443 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
22444 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22445 | if (arg2 == NULL) { | |
22446 | SWIG_null_ref("wxDateSpan"); | |
22447 | } | |
22448 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22449 | } |
22450 | { | |
22451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22452 | { | |
22453 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
22454 | result = (wxDateTime *) &_result_ref; | |
22455 | } | |
22456 | ||
22457 | wxPyEndAllowThreads(__tstate); | |
22458 | if (PyErr_Occurred()) SWIG_fail; | |
22459 | } | |
22460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22461 | return resultobj; | |
22462 | fail: | |
22463 | return NULL; | |
22464 | } | |
22465 | ||
22466 | ||
c370783e | 22467 | static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22468 | PyObject *resultobj; |
22469 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22470 | wxDateTime *arg2 = 0 ; | |
22471 | wxTimeSpan result; | |
22472 | PyObject * obj0 = 0 ; | |
22473 | PyObject * obj1 = 0 ; | |
22474 | char *kwnames[] = { | |
22475 | (char *) "self",(char *) "dt", NULL | |
22476 | }; | |
22477 | ||
22478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22481 | { | |
22482 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22483 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22484 | if (arg2 == NULL) { | |
22485 | SWIG_null_ref("wxDateTime"); | |
22486 | } | |
22487 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22488 | } |
22489 | { | |
22490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22491 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
22492 | ||
22493 | wxPyEndAllowThreads(__tstate); | |
22494 | if (PyErr_Occurred()) SWIG_fail; | |
22495 | } | |
22496 | { | |
22497 | wxTimeSpan * resultptr; | |
36ed4f51 | 22498 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
22499 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
22500 | } | |
22501 | return resultobj; | |
22502 | fail: | |
22503 | return NULL; | |
22504 | } | |
22505 | ||
22506 | ||
c370783e | 22507 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
22508 | PyObject *resultobj; |
22509 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22510 | wxTimeSpan *arg2 = 0 ; | |
22511 | wxDateTime *result; | |
22512 | PyObject * obj0 = 0 ; | |
22513 | PyObject * obj1 = 0 ; | |
22514 | ||
22515 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
22517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22518 | { | |
22519 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22520 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22521 | if (arg2 == NULL) { | |
22522 | SWIG_null_ref("wxTimeSpan"); | |
22523 | } | |
22524 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22525 | } |
22526 | { | |
22527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22528 | { | |
22529 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
22530 | result = (wxDateTime *) &_result_ref; | |
22531 | } | |
22532 | ||
22533 | wxPyEndAllowThreads(__tstate); | |
22534 | if (PyErr_Occurred()) SWIG_fail; | |
22535 | } | |
c370783e | 22536 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
22537 | return resultobj; |
22538 | fail: | |
22539 | return NULL; | |
22540 | } | |
22541 | ||
22542 | ||
c370783e | 22543 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
22544 | PyObject *resultobj; |
22545 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22546 | wxDateSpan *arg2 = 0 ; | |
22547 | wxDateTime *result; | |
22548 | PyObject * obj0 = 0 ; | |
22549 | PyObject * obj1 = 0 ; | |
22550 | ||
22551 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22552 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
22553 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22554 | { | |
22555 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
22556 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22557 | if (arg2 == NULL) { | |
22558 | SWIG_null_ref("wxDateSpan"); | |
22559 | } | |
22560 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22561 | } |
22562 | { | |
22563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22564 | { | |
22565 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
22566 | result = (wxDateTime *) &_result_ref; | |
22567 | } | |
22568 | ||
22569 | wxPyEndAllowThreads(__tstate); | |
22570 | if (PyErr_Occurred()) SWIG_fail; | |
22571 | } | |
c370783e | 22572 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
22573 | return resultobj; |
22574 | fail: | |
22575 | return NULL; | |
22576 | } | |
22577 | ||
22578 | ||
22579 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
22580 | int argc; | |
22581 | PyObject *argv[3]; | |
22582 | int ii; | |
22583 | ||
22584 | argc = PyObject_Length(args); | |
22585 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
22586 | argv[ii] = PyTuple_GetItem(args,ii); | |
22587 | } | |
22588 | if (argc == 2) { | |
22589 | int _v; | |
22590 | { | |
22591 | void *ptr; | |
22592 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
22593 | _v = 0; | |
22594 | PyErr_Clear(); | |
22595 | } else { | |
22596 | _v = 1; | |
22597 | } | |
22598 | } | |
22599 | if (_v) { | |
22600 | { | |
36ed4f51 | 22601 | void *ptr = 0; |
d55e5bfc RD |
22602 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
22603 | _v = 0; | |
22604 | PyErr_Clear(); | |
22605 | } else { | |
36ed4f51 | 22606 | _v = (ptr != 0); |
d55e5bfc RD |
22607 | } |
22608 | } | |
22609 | if (_v) { | |
22610 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
22611 | } | |
22612 | } | |
22613 | } | |
22614 | if (argc == 2) { | |
22615 | int _v; | |
22616 | { | |
22617 | void *ptr; | |
22618 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
22619 | _v = 0; | |
22620 | PyErr_Clear(); | |
22621 | } else { | |
22622 | _v = 1; | |
22623 | } | |
22624 | } | |
22625 | if (_v) { | |
22626 | { | |
36ed4f51 | 22627 | void *ptr = 0; |
d55e5bfc RD |
22628 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
22629 | _v = 0; | |
22630 | PyErr_Clear(); | |
22631 | } else { | |
36ed4f51 | 22632 | _v = (ptr != 0); |
d55e5bfc RD |
22633 | } |
22634 | } | |
22635 | if (_v) { | |
22636 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
22637 | } | |
22638 | } | |
22639 | } | |
22640 | ||
36ed4f51 | 22641 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___iadd__'"); |
d55e5bfc RD |
22642 | return NULL; |
22643 | } | |
22644 | ||
22645 | ||
c370783e | 22646 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
22647 | PyObject *resultobj; |
22648 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22649 | wxTimeSpan *arg2 = 0 ; | |
22650 | wxDateTime *result; | |
22651 | PyObject * obj0 = 0 ; | |
22652 | PyObject * obj1 = 0 ; | |
22653 | ||
22654 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22655 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
22656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22657 | { | |
22658 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22659 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22660 | if (arg2 == NULL) { | |
22661 | SWIG_null_ref("wxTimeSpan"); | |
22662 | } | |
22663 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22664 | } |
22665 | { | |
22666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22667 | { | |
22668 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
22669 | result = (wxDateTime *) &_result_ref; | |
22670 | } | |
22671 | ||
22672 | wxPyEndAllowThreads(__tstate); | |
22673 | if (PyErr_Occurred()) SWIG_fail; | |
22674 | } | |
c370783e | 22675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
22676 | return resultobj; |
22677 | fail: | |
22678 | return NULL; | |
22679 | } | |
22680 | ||
22681 | ||
c370783e | 22682 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
22683 | PyObject *resultobj; |
22684 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22685 | wxDateSpan *arg2 = 0 ; | |
22686 | wxDateTime *result; | |
22687 | PyObject * obj0 = 0 ; | |
22688 | PyObject * obj1 = 0 ; | |
22689 | ||
22690 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22691 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
22692 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22693 | { | |
22694 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
22695 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22696 | if (arg2 == NULL) { | |
22697 | SWIG_null_ref("wxDateSpan"); | |
22698 | } | |
22699 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22700 | } |
22701 | { | |
22702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22703 | { | |
22704 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
22705 | result = (wxDateTime *) &_result_ref; | |
22706 | } | |
22707 | ||
22708 | wxPyEndAllowThreads(__tstate); | |
22709 | if (PyErr_Occurred()) SWIG_fail; | |
22710 | } | |
c370783e | 22711 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
22712 | return resultobj; |
22713 | fail: | |
22714 | return NULL; | |
22715 | } | |
22716 | ||
22717 | ||
22718 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
22719 | int argc; | |
22720 | PyObject *argv[3]; | |
22721 | int ii; | |
22722 | ||
22723 | argc = PyObject_Length(args); | |
22724 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
22725 | argv[ii] = PyTuple_GetItem(args,ii); | |
22726 | } | |
22727 | if (argc == 2) { | |
22728 | int _v; | |
22729 | { | |
22730 | void *ptr; | |
22731 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
22732 | _v = 0; | |
22733 | PyErr_Clear(); | |
22734 | } else { | |
22735 | _v = 1; | |
22736 | } | |
22737 | } | |
22738 | if (_v) { | |
22739 | { | |
36ed4f51 | 22740 | void *ptr = 0; |
d55e5bfc RD |
22741 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
22742 | _v = 0; | |
22743 | PyErr_Clear(); | |
22744 | } else { | |
36ed4f51 | 22745 | _v = (ptr != 0); |
d55e5bfc RD |
22746 | } |
22747 | } | |
22748 | if (_v) { | |
22749 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
22750 | } | |
22751 | } | |
22752 | } | |
22753 | if (argc == 2) { | |
22754 | int _v; | |
22755 | { | |
22756 | void *ptr; | |
22757 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
22758 | _v = 0; | |
22759 | PyErr_Clear(); | |
22760 | } else { | |
22761 | _v = 1; | |
22762 | } | |
22763 | } | |
22764 | if (_v) { | |
22765 | { | |
36ed4f51 | 22766 | void *ptr = 0; |
d55e5bfc RD |
22767 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
22768 | _v = 0; | |
22769 | PyErr_Clear(); | |
22770 | } else { | |
36ed4f51 | 22771 | _v = (ptr != 0); |
d55e5bfc RD |
22772 | } |
22773 | } | |
22774 | if (_v) { | |
22775 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
22776 | } | |
22777 | } | |
22778 | } | |
22779 | ||
36ed4f51 | 22780 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___isub__'"); |
d55e5bfc RD |
22781 | return NULL; |
22782 | } | |
22783 | ||
22784 | ||
c370783e | 22785 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
22786 | PyObject *resultobj; |
22787 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22788 | wxTimeSpan *arg2 = 0 ; | |
22789 | wxDateTime result; | |
22790 | PyObject * obj0 = 0 ; | |
22791 | PyObject * obj1 = 0 ; | |
22792 | ||
22793 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22794 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22796 | { | |
22797 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22798 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22799 | if (arg2 == NULL) { | |
22800 | SWIG_null_ref("wxTimeSpan"); | |
22801 | } | |
22802 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22803 | } |
22804 | { | |
22805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22806 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
22807 | ||
22808 | wxPyEndAllowThreads(__tstate); | |
22809 | if (PyErr_Occurred()) SWIG_fail; | |
22810 | } | |
22811 | { | |
22812 | wxDateTime * resultptr; | |
36ed4f51 | 22813 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
22814 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
22815 | } | |
22816 | return resultobj; | |
22817 | fail: | |
22818 | return NULL; | |
22819 | } | |
22820 | ||
22821 | ||
c370783e | 22822 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
22823 | PyObject *resultobj; |
22824 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22825 | wxDateSpan *arg2 = 0 ; | |
22826 | wxDateTime result; | |
22827 | PyObject * obj0 = 0 ; | |
22828 | PyObject * obj1 = 0 ; | |
22829 | ||
22830 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22833 | { | |
22834 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
22835 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22836 | if (arg2 == NULL) { | |
22837 | SWIG_null_ref("wxDateSpan"); | |
22838 | } | |
22839 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22840 | } |
22841 | { | |
22842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22843 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
22844 | ||
22845 | wxPyEndAllowThreads(__tstate); | |
22846 | if (PyErr_Occurred()) SWIG_fail; | |
22847 | } | |
22848 | { | |
22849 | wxDateTime * resultptr; | |
36ed4f51 | 22850 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
22851 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
22852 | } | |
22853 | return resultobj; | |
22854 | fail: | |
22855 | return NULL; | |
22856 | } | |
22857 | ||
22858 | ||
22859 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
22860 | int argc; | |
22861 | PyObject *argv[3]; | |
22862 | int ii; | |
22863 | ||
22864 | argc = PyObject_Length(args); | |
22865 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
22866 | argv[ii] = PyTuple_GetItem(args,ii); | |
22867 | } | |
22868 | if (argc == 2) { | |
22869 | int _v; | |
22870 | { | |
22871 | void *ptr; | |
22872 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
22873 | _v = 0; | |
22874 | PyErr_Clear(); | |
22875 | } else { | |
22876 | _v = 1; | |
22877 | } | |
22878 | } | |
22879 | if (_v) { | |
22880 | { | |
36ed4f51 | 22881 | void *ptr = 0; |
d55e5bfc RD |
22882 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
22883 | _v = 0; | |
22884 | PyErr_Clear(); | |
22885 | } else { | |
36ed4f51 | 22886 | _v = (ptr != 0); |
d55e5bfc RD |
22887 | } |
22888 | } | |
22889 | if (_v) { | |
22890 | return _wrap_DateTime___add____SWIG_0(self,args); | |
22891 | } | |
22892 | } | |
22893 | } | |
22894 | if (argc == 2) { | |
22895 | int _v; | |
22896 | { | |
22897 | void *ptr; | |
22898 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
22899 | _v = 0; | |
22900 | PyErr_Clear(); | |
22901 | } else { | |
22902 | _v = 1; | |
22903 | } | |
22904 | } | |
22905 | if (_v) { | |
22906 | { | |
36ed4f51 | 22907 | void *ptr = 0; |
d55e5bfc RD |
22908 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
22909 | _v = 0; | |
22910 | PyErr_Clear(); | |
22911 | } else { | |
36ed4f51 | 22912 | _v = (ptr != 0); |
d55e5bfc RD |
22913 | } |
22914 | } | |
22915 | if (_v) { | |
22916 | return _wrap_DateTime___add____SWIG_1(self,args); | |
22917 | } | |
22918 | } | |
22919 | } | |
22920 | ||
36ed4f51 RD |
22921 | Py_INCREF(Py_NotImplemented); |
22922 | return Py_NotImplemented; | |
d55e5bfc RD |
22923 | } |
22924 | ||
22925 | ||
c370783e | 22926 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
22927 | PyObject *resultobj; |
22928 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22929 | wxDateTime *arg2 = 0 ; | |
22930 | wxTimeSpan result; | |
22931 | PyObject * obj0 = 0 ; | |
22932 | PyObject * obj1 = 0 ; | |
22933 | ||
22934 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22935 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22936 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22937 | { | |
22938 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22939 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22940 | if (arg2 == NULL) { | |
22941 | SWIG_null_ref("wxDateTime"); | |
22942 | } | |
22943 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22944 | } |
22945 | { | |
22946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22947 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
22948 | ||
22949 | wxPyEndAllowThreads(__tstate); | |
22950 | if (PyErr_Occurred()) SWIG_fail; | |
22951 | } | |
22952 | { | |
22953 | wxTimeSpan * resultptr; | |
36ed4f51 | 22954 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
22955 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
22956 | } | |
22957 | return resultobj; | |
22958 | fail: | |
22959 | return NULL; | |
22960 | } | |
22961 | ||
22962 | ||
c370783e | 22963 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
22964 | PyObject *resultobj; |
22965 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22966 | wxTimeSpan *arg2 = 0 ; | |
22967 | wxDateTime result; | |
22968 | PyObject * obj0 = 0 ; | |
22969 | PyObject * obj1 = 0 ; | |
22970 | ||
22971 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22974 | { | |
22975 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22976 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22977 | if (arg2 == NULL) { | |
22978 | SWIG_null_ref("wxTimeSpan"); | |
22979 | } | |
22980 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22981 | } |
22982 | { | |
22983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22984 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
22985 | ||
22986 | wxPyEndAllowThreads(__tstate); | |
22987 | if (PyErr_Occurred()) SWIG_fail; | |
22988 | } | |
22989 | { | |
22990 | wxDateTime * resultptr; | |
36ed4f51 | 22991 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
22992 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
22993 | } | |
22994 | return resultobj; | |
22995 | fail: | |
22996 | return NULL; | |
22997 | } | |
22998 | ||
22999 | ||
c370783e | 23000 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
23001 | PyObject *resultobj; |
23002 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23003 | wxDateSpan *arg2 = 0 ; | |
23004 | wxDateTime result; | |
23005 | PyObject * obj0 = 0 ; | |
23006 | PyObject * obj1 = 0 ; | |
23007 | ||
23008 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23011 | { | |
23012 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
23013 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23014 | if (arg2 == NULL) { | |
23015 | SWIG_null_ref("wxDateSpan"); | |
23016 | } | |
23017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23018 | } |
23019 | { | |
23020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23021 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
23022 | ||
23023 | wxPyEndAllowThreads(__tstate); | |
23024 | if (PyErr_Occurred()) SWIG_fail; | |
23025 | } | |
23026 | { | |
23027 | wxDateTime * resultptr; | |
36ed4f51 | 23028 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
23029 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
23030 | } | |
23031 | return resultobj; | |
23032 | fail: | |
23033 | return NULL; | |
23034 | } | |
23035 | ||
23036 | ||
23037 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
23038 | int argc; | |
23039 | PyObject *argv[3]; | |
23040 | int ii; | |
23041 | ||
23042 | argc = PyObject_Length(args); | |
23043 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23044 | argv[ii] = PyTuple_GetItem(args,ii); | |
23045 | } | |
23046 | if (argc == 2) { | |
23047 | int _v; | |
23048 | { | |
23049 | void *ptr; | |
23050 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
23051 | _v = 0; | |
23052 | PyErr_Clear(); | |
23053 | } else { | |
23054 | _v = 1; | |
23055 | } | |
23056 | } | |
23057 | if (_v) { | |
23058 | { | |
36ed4f51 | 23059 | void *ptr = 0; |
d55e5bfc RD |
23060 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
23061 | _v = 0; | |
23062 | PyErr_Clear(); | |
23063 | } else { | |
36ed4f51 | 23064 | _v = (ptr != 0); |
d55e5bfc RD |
23065 | } |
23066 | } | |
23067 | if (_v) { | |
23068 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
23069 | } | |
23070 | } | |
23071 | } | |
23072 | if (argc == 2) { | |
23073 | int _v; | |
23074 | { | |
23075 | void *ptr; | |
23076 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
23077 | _v = 0; | |
23078 | PyErr_Clear(); | |
23079 | } else { | |
23080 | _v = 1; | |
23081 | } | |
23082 | } | |
23083 | if (_v) { | |
23084 | { | |
36ed4f51 | 23085 | void *ptr = 0; |
d55e5bfc RD |
23086 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
23087 | _v = 0; | |
23088 | PyErr_Clear(); | |
23089 | } else { | |
36ed4f51 | 23090 | _v = (ptr != 0); |
d55e5bfc RD |
23091 | } |
23092 | } | |
23093 | if (_v) { | |
23094 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
23095 | } | |
23096 | } | |
23097 | } | |
23098 | if (argc == 2) { | |
23099 | int _v; | |
23100 | { | |
23101 | void *ptr; | |
23102 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
23103 | _v = 0; | |
23104 | PyErr_Clear(); | |
23105 | } else { | |
23106 | _v = 1; | |
23107 | } | |
23108 | } | |
23109 | if (_v) { | |
23110 | { | |
36ed4f51 | 23111 | void *ptr = 0; |
d55e5bfc RD |
23112 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
23113 | _v = 0; | |
23114 | PyErr_Clear(); | |
23115 | } else { | |
36ed4f51 | 23116 | _v = (ptr != 0); |
d55e5bfc RD |
23117 | } |
23118 | } | |
23119 | if (_v) { | |
23120 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
23121 | } | |
23122 | } | |
23123 | } | |
23124 | ||
36ed4f51 RD |
23125 | Py_INCREF(Py_NotImplemented); |
23126 | return Py_NotImplemented; | |
d55e5bfc RD |
23127 | } |
23128 | ||
23129 | ||
fef4c27a | 23130 | static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23131 | PyObject *resultobj; |
23132 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23133 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
23134 | bool result; | |
23135 | PyObject * obj0 = 0 ; | |
23136 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23137 | char *kwnames[] = { |
23138 | (char *) "self",(char *) "other", NULL | |
23139 | }; | |
d55e5bfc | 23140 | |
fef4c27a | 23141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___lt__",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
23142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23144 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23145 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23146 | { |
23147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23148 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
23149 | ||
23150 | wxPyEndAllowThreads(__tstate); | |
23151 | if (PyErr_Occurred()) SWIG_fail; | |
23152 | } | |
23153 | { | |
23154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23155 | } | |
23156 | return resultobj; | |
23157 | fail: | |
23158 | return NULL; | |
23159 | } | |
23160 | ||
23161 | ||
fef4c27a | 23162 | static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23163 | PyObject *resultobj; |
23164 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23165 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
23166 | bool result; | |
23167 | PyObject * obj0 = 0 ; | |
23168 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23169 | char *kwnames[] = { |
23170 | (char *) "self",(char *) "other", NULL | |
23171 | }; | |
d55e5bfc | 23172 | |
fef4c27a | 23173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___le__",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
23174 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23175 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23176 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23177 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23178 | { |
23179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23180 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
23181 | ||
23182 | wxPyEndAllowThreads(__tstate); | |
23183 | if (PyErr_Occurred()) SWIG_fail; | |
23184 | } | |
23185 | { | |
23186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23187 | } | |
23188 | return resultobj; | |
23189 | fail: | |
23190 | return NULL; | |
23191 | } | |
23192 | ||
23193 | ||
fef4c27a | 23194 | static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23195 | PyObject *resultobj; |
23196 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23197 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
23198 | bool result; | |
23199 | PyObject * obj0 = 0 ; | |
23200 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23201 | char *kwnames[] = { |
23202 | (char *) "self",(char *) "other", NULL | |
23203 | }; | |
d55e5bfc | 23204 | |
fef4c27a | 23205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___gt__",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
23206 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23207 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23208 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23209 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23210 | { |
23211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23212 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
23213 | ||
23214 | wxPyEndAllowThreads(__tstate); | |
23215 | if (PyErr_Occurred()) SWIG_fail; | |
23216 | } | |
23217 | { | |
23218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23219 | } | |
23220 | return resultobj; | |
23221 | fail: | |
23222 | return NULL; | |
23223 | } | |
23224 | ||
23225 | ||
fef4c27a | 23226 | static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23227 | PyObject *resultobj; |
23228 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23229 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
23230 | bool result; | |
23231 | PyObject * obj0 = 0 ; | |
23232 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23233 | char *kwnames[] = { |
23234 | (char *) "self",(char *) "other", NULL | |
23235 | }; | |
d55e5bfc | 23236 | |
fef4c27a | 23237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ge__",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
23238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23240 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23241 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23242 | { |
23243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23244 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
23245 | ||
23246 | wxPyEndAllowThreads(__tstate); | |
23247 | if (PyErr_Occurred()) SWIG_fail; | |
23248 | } | |
23249 | { | |
23250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23251 | } | |
23252 | return resultobj; | |
23253 | fail: | |
23254 | return NULL; | |
23255 | } | |
23256 | ||
23257 | ||
fef4c27a | 23258 | static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23259 | PyObject *resultobj; |
23260 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23261 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
23262 | bool result; | |
23263 | PyObject * obj0 = 0 ; | |
23264 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23265 | char *kwnames[] = { |
23266 | (char *) "self",(char *) "other", NULL | |
23267 | }; | |
d55e5bfc | 23268 | |
fef4c27a | 23269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___eq__",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
23270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23272 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23273 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23274 | { |
23275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23276 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
23277 | ||
23278 | wxPyEndAllowThreads(__tstate); | |
23279 | if (PyErr_Occurred()) SWIG_fail; | |
23280 | } | |
23281 | { | |
23282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23283 | } | |
23284 | return resultobj; | |
23285 | fail: | |
23286 | return NULL; | |
23287 | } | |
23288 | ||
23289 | ||
fef4c27a | 23290 | static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23291 | PyObject *resultobj; |
23292 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23293 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
23294 | bool result; | |
23295 | PyObject * obj0 = 0 ; | |
23296 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23297 | char *kwnames[] = { |
23298 | (char *) "self",(char *) "other", NULL | |
23299 | }; | |
d55e5bfc | 23300 | |
fef4c27a | 23301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ne__",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
23302 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23303 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23304 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23305 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23306 | { |
23307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23308 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
23309 | ||
23310 | wxPyEndAllowThreads(__tstate); | |
23311 | if (PyErr_Occurred()) SWIG_fail; | |
23312 | } | |
23313 | { | |
23314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23315 | } | |
23316 | return resultobj; | |
23317 | fail: | |
23318 | return NULL; | |
23319 | } | |
23320 | ||
23321 | ||
c370783e | 23322 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23323 | PyObject *resultobj; |
23324 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23325 | wxString *arg2 = 0 ; | |
23326 | int result; | |
b411df4a | 23327 | bool temp2 = false ; |
d55e5bfc RD |
23328 | PyObject * obj0 = 0 ; |
23329 | PyObject * obj1 = 0 ; | |
23330 | char *kwnames[] = { | |
23331 | (char *) "self",(char *) "date", NULL | |
23332 | }; | |
23333 | ||
23334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23337 | { |
23338 | arg2 = wxString_in_helper(obj1); | |
23339 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 23340 | temp2 = true; |
d55e5bfc RD |
23341 | } |
23342 | { | |
23343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23344 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
23345 | ||
23346 | wxPyEndAllowThreads(__tstate); | |
23347 | if (PyErr_Occurred()) SWIG_fail; | |
23348 | } | |
36ed4f51 RD |
23349 | { |
23350 | resultobj = SWIG_From_int((int)(result)); | |
23351 | } | |
d55e5bfc RD |
23352 | { |
23353 | if (temp2) | |
23354 | delete arg2; | |
23355 | } | |
23356 | return resultobj; | |
23357 | fail: | |
23358 | { | |
23359 | if (temp2) | |
23360 | delete arg2; | |
23361 | } | |
23362 | return NULL; | |
23363 | } | |
23364 | ||
23365 | ||
c370783e | 23366 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23367 | PyObject *resultobj; |
23368 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23369 | wxString *arg2 = 0 ; | |
fef4c27a | 23370 | wxString const &arg3_defvalue = wxPyDefaultDateTimeFormat ; |
d55e5bfc RD |
23371 | wxString *arg3 = (wxString *) &arg3_defvalue ; |
23372 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
23373 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
23374 | int result; | |
b411df4a RD |
23375 | bool temp2 = false ; |
23376 | bool temp3 = false ; | |
d55e5bfc RD |
23377 | PyObject * obj0 = 0 ; |
23378 | PyObject * obj1 = 0 ; | |
23379 | PyObject * obj2 = 0 ; | |
23380 | PyObject * obj3 = 0 ; | |
23381 | char *kwnames[] = { | |
23382 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
23383 | }; | |
23384 | ||
23385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
23386 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23387 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23388 | { |
23389 | arg2 = wxString_in_helper(obj1); | |
23390 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 23391 | temp2 = true; |
d55e5bfc RD |
23392 | } |
23393 | if (obj2) { | |
23394 | { | |
23395 | arg3 = wxString_in_helper(obj2); | |
23396 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 23397 | temp3 = true; |
d55e5bfc RD |
23398 | } |
23399 | } | |
23400 | if (obj3) { | |
36ed4f51 RD |
23401 | { |
23402 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23403 | if (SWIG_arg_fail(4)) SWIG_fail; | |
23404 | if (arg4 == NULL) { | |
23405 | SWIG_null_ref("wxDateTime"); | |
23406 | } | |
23407 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
23408 | } |
23409 | } | |
23410 | { | |
23411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23412 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
23413 | ||
23414 | wxPyEndAllowThreads(__tstate); | |
23415 | if (PyErr_Occurred()) SWIG_fail; | |
23416 | } | |
36ed4f51 RD |
23417 | { |
23418 | resultobj = SWIG_From_int((int)(result)); | |
23419 | } | |
d55e5bfc RD |
23420 | { |
23421 | if (temp2) | |
23422 | delete arg2; | |
23423 | } | |
23424 | { | |
23425 | if (temp3) | |
23426 | delete arg3; | |
23427 | } | |
23428 | return resultobj; | |
23429 | fail: | |
23430 | { | |
23431 | if (temp2) | |
23432 | delete arg2; | |
23433 | } | |
23434 | { | |
23435 | if (temp3) | |
23436 | delete arg3; | |
23437 | } | |
23438 | return NULL; | |
23439 | } | |
23440 | ||
23441 | ||
c370783e | 23442 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23443 | PyObject *resultobj; |
23444 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23445 | wxString *arg2 = 0 ; | |
23446 | int result; | |
b411df4a | 23447 | bool temp2 = false ; |
d55e5bfc RD |
23448 | PyObject * obj0 = 0 ; |
23449 | PyObject * obj1 = 0 ; | |
23450 | char *kwnames[] = { | |
23451 | (char *) "self",(char *) "datetime", NULL | |
23452 | }; | |
23453 | ||
23454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23455 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23456 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23457 | { |
23458 | arg2 = wxString_in_helper(obj1); | |
23459 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 23460 | temp2 = true; |
d55e5bfc RD |
23461 | } |
23462 | { | |
23463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23464 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
23465 | ||
23466 | wxPyEndAllowThreads(__tstate); | |
23467 | if (PyErr_Occurred()) SWIG_fail; | |
23468 | } | |
36ed4f51 RD |
23469 | { |
23470 | resultobj = SWIG_From_int((int)(result)); | |
23471 | } | |
d55e5bfc RD |
23472 | { |
23473 | if (temp2) | |
23474 | delete arg2; | |
23475 | } | |
23476 | return resultobj; | |
23477 | fail: | |
23478 | { | |
23479 | if (temp2) | |
23480 | delete arg2; | |
23481 | } | |
23482 | return NULL; | |
23483 | } | |
23484 | ||
23485 | ||
c370783e | 23486 | static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23487 | PyObject *resultobj; |
23488 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23489 | wxString *arg2 = 0 ; | |
23490 | int result; | |
b411df4a | 23491 | bool temp2 = false ; |
d55e5bfc RD |
23492 | PyObject * obj0 = 0 ; |
23493 | PyObject * obj1 = 0 ; | |
23494 | char *kwnames[] = { | |
23495 | (char *) "self",(char *) "date", NULL | |
23496 | }; | |
23497 | ||
23498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23501 | { |
23502 | arg2 = wxString_in_helper(obj1); | |
23503 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 23504 | temp2 = true; |
d55e5bfc RD |
23505 | } |
23506 | { | |
23507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23508 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
23509 | ||
23510 | wxPyEndAllowThreads(__tstate); | |
23511 | if (PyErr_Occurred()) SWIG_fail; | |
23512 | } | |
36ed4f51 RD |
23513 | { |
23514 | resultobj = SWIG_From_int((int)(result)); | |
23515 | } | |
d55e5bfc RD |
23516 | { |
23517 | if (temp2) | |
23518 | delete arg2; | |
23519 | } | |
23520 | return resultobj; | |
23521 | fail: | |
23522 | { | |
23523 | if (temp2) | |
23524 | delete arg2; | |
23525 | } | |
23526 | return NULL; | |
23527 | } | |
23528 | ||
23529 | ||
c370783e | 23530 | static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23531 | PyObject *resultobj; |
23532 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23533 | wxString *arg2 = 0 ; | |
23534 | int result; | |
b411df4a | 23535 | bool temp2 = false ; |
d55e5bfc RD |
23536 | PyObject * obj0 = 0 ; |
23537 | PyObject * obj1 = 0 ; | |
23538 | char *kwnames[] = { | |
23539 | (char *) "self",(char *) "time", NULL | |
23540 | }; | |
23541 | ||
23542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23543 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23545 | { |
23546 | arg2 = wxString_in_helper(obj1); | |
23547 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 23548 | temp2 = true; |
d55e5bfc RD |
23549 | } |
23550 | { | |
23551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23552 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
23553 | ||
23554 | wxPyEndAllowThreads(__tstate); | |
23555 | if (PyErr_Occurred()) SWIG_fail; | |
23556 | } | |
36ed4f51 RD |
23557 | { |
23558 | resultobj = SWIG_From_int((int)(result)); | |
23559 | } | |
d55e5bfc RD |
23560 | { |
23561 | if (temp2) | |
23562 | delete arg2; | |
23563 | } | |
23564 | return resultobj; | |
23565 | fail: | |
23566 | { | |
23567 | if (temp2) | |
23568 | delete arg2; | |
23569 | } | |
23570 | return NULL; | |
23571 | } | |
23572 | ||
23573 | ||
c370783e | 23574 | static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23575 | PyObject *resultobj; |
23576 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
fef4c27a | 23577 | wxString const &arg2_defvalue = wxPyDefaultDateTimeFormat ; |
d55e5bfc RD |
23578 | wxString *arg2 = (wxString *) &arg2_defvalue ; |
23579 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
23580 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
23581 | wxString result; | |
b411df4a RD |
23582 | bool temp2 = false ; |
23583 | bool temp3 = false ; | |
d55e5bfc RD |
23584 | PyObject * obj0 = 0 ; |
23585 | PyObject * obj1 = 0 ; | |
23586 | PyObject * obj2 = 0 ; | |
23587 | char *kwnames[] = { | |
23588 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
23589 | }; | |
23590 | ||
23591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
23592 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23593 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23594 | if (obj1) { |
23595 | { | |
23596 | arg2 = wxString_in_helper(obj1); | |
23597 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 23598 | temp2 = true; |
d55e5bfc RD |
23599 | } |
23600 | } | |
23601 | if (obj2) { | |
23602 | { | |
23603 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
b411df4a | 23604 | temp3 = true; |
d55e5bfc RD |
23605 | } |
23606 | } | |
23607 | { | |
23608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23609 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
23610 | ||
23611 | wxPyEndAllowThreads(__tstate); | |
23612 | if (PyErr_Occurred()) SWIG_fail; | |
23613 | } | |
23614 | { | |
23615 | #if wxUSE_UNICODE | |
23616 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23617 | #else | |
23618 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23619 | #endif | |
23620 | } | |
23621 | { | |
23622 | if (temp2) | |
23623 | delete arg2; | |
23624 | } | |
23625 | { | |
23626 | if (temp3) delete arg3; | |
23627 | } | |
23628 | return resultobj; | |
23629 | fail: | |
23630 | { | |
23631 | if (temp2) | |
23632 | delete arg2; | |
23633 | } | |
23634 | { | |
23635 | if (temp3) delete arg3; | |
23636 | } | |
23637 | return NULL; | |
23638 | } | |
23639 | ||
23640 | ||
c370783e | 23641 | static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23642 | PyObject *resultobj; |
23643 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23644 | wxString result; | |
23645 | PyObject * obj0 = 0 ; | |
23646 | char *kwnames[] = { | |
23647 | (char *) "self", NULL | |
23648 | }; | |
23649 | ||
23650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23653 | { |
23654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23655 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
23656 | ||
23657 | wxPyEndAllowThreads(__tstate); | |
23658 | if (PyErr_Occurred()) SWIG_fail; | |
23659 | } | |
23660 | { | |
23661 | #if wxUSE_UNICODE | |
23662 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23663 | #else | |
23664 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23665 | #endif | |
23666 | } | |
23667 | return resultobj; | |
23668 | fail: | |
23669 | return NULL; | |
23670 | } | |
23671 | ||
23672 | ||
c370783e | 23673 | static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23674 | PyObject *resultobj; |
23675 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23676 | wxString result; | |
23677 | PyObject * obj0 = 0 ; | |
23678 | char *kwnames[] = { | |
23679 | (char *) "self", NULL | |
23680 | }; | |
23681 | ||
23682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23685 | { |
23686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23687 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
23688 | ||
23689 | wxPyEndAllowThreads(__tstate); | |
23690 | if (PyErr_Occurred()) SWIG_fail; | |
23691 | } | |
23692 | { | |
23693 | #if wxUSE_UNICODE | |
23694 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23695 | #else | |
23696 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23697 | #endif | |
23698 | } | |
23699 | return resultobj; | |
23700 | fail: | |
23701 | return NULL; | |
23702 | } | |
23703 | ||
23704 | ||
c370783e | 23705 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23706 | PyObject *resultobj; |
23707 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23708 | wxString result; | |
23709 | PyObject * obj0 = 0 ; | |
23710 | char *kwnames[] = { | |
23711 | (char *) "self", NULL | |
23712 | }; | |
23713 | ||
23714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23717 | { |
23718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23719 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
23720 | ||
23721 | wxPyEndAllowThreads(__tstate); | |
23722 | if (PyErr_Occurred()) SWIG_fail; | |
23723 | } | |
23724 | { | |
23725 | #if wxUSE_UNICODE | |
23726 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23727 | #else | |
23728 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23729 | #endif | |
23730 | } | |
23731 | return resultobj; | |
23732 | fail: | |
23733 | return NULL; | |
23734 | } | |
23735 | ||
23736 | ||
c370783e | 23737 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23738 | PyObject *resultobj; |
23739 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23740 | wxString result; | |
23741 | PyObject * obj0 = 0 ; | |
23742 | char *kwnames[] = { | |
23743 | (char *) "self", NULL | |
23744 | }; | |
23745 | ||
23746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23747 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23748 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23749 | { |
23750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23751 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
23752 | ||
23753 | wxPyEndAllowThreads(__tstate); | |
23754 | if (PyErr_Occurred()) SWIG_fail; | |
23755 | } | |
23756 | { | |
23757 | #if wxUSE_UNICODE | |
23758 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23759 | #else | |
23760 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23761 | #endif | |
23762 | } | |
23763 | return resultobj; | |
23764 | fail: | |
23765 | return NULL; | |
23766 | } | |
23767 | ||
23768 | ||
c370783e | 23769 | static PyObject * DateTime_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23770 | PyObject *obj; |
23771 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23772 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
23773 | Py_INCREF(obj); | |
23774 | return Py_BuildValue((char *)""); | |
23775 | } | |
c370783e | 23776 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23777 | PyObject *resultobj; |
23778 | long arg1 ; | |
23779 | wxTimeSpan result; | |
23780 | PyObject * obj0 = 0 ; | |
23781 | char *kwnames[] = { | |
23782 | (char *) "sec", NULL | |
23783 | }; | |
23784 | ||
23785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23786 | { |
23787 | arg1 = (long)(SWIG_As_long(obj0)); | |
23788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23789 | } | |
d55e5bfc RD |
23790 | { |
23791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23792 | result = wxTimeSpan::Seconds(arg1); | |
23793 | ||
23794 | wxPyEndAllowThreads(__tstate); | |
23795 | if (PyErr_Occurred()) SWIG_fail; | |
23796 | } | |
23797 | { | |
23798 | wxTimeSpan * resultptr; | |
36ed4f51 | 23799 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
23800 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
23801 | } | |
23802 | return resultobj; | |
23803 | fail: | |
23804 | return NULL; | |
23805 | } | |
23806 | ||
23807 | ||
c370783e | 23808 | static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23809 | PyObject *resultobj; |
23810 | wxTimeSpan result; | |
23811 | char *kwnames[] = { | |
23812 | NULL | |
23813 | }; | |
23814 | ||
23815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
23816 | { | |
23817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23818 | result = wxTimeSpan::Second(); | |
23819 | ||
23820 | wxPyEndAllowThreads(__tstate); | |
23821 | if (PyErr_Occurred()) SWIG_fail; | |
23822 | } | |
23823 | { | |
23824 | wxTimeSpan * resultptr; | |
36ed4f51 | 23825 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
23826 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
23827 | } | |
23828 | return resultobj; | |
23829 | fail: | |
23830 | return NULL; | |
23831 | } | |
23832 | ||
23833 | ||
c370783e | 23834 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23835 | PyObject *resultobj; |
23836 | long arg1 ; | |
23837 | wxTimeSpan result; | |
23838 | PyObject * obj0 = 0 ; | |
23839 | char *kwnames[] = { | |
23840 | (char *) "min", NULL | |
23841 | }; | |
23842 | ||
23843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23844 | { |
23845 | arg1 = (long)(SWIG_As_long(obj0)); | |
23846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23847 | } | |
d55e5bfc RD |
23848 | { |
23849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23850 | result = wxTimeSpan::Minutes(arg1); | |
23851 | ||
23852 | wxPyEndAllowThreads(__tstate); | |
23853 | if (PyErr_Occurred()) SWIG_fail; | |
23854 | } | |
23855 | { | |
23856 | wxTimeSpan * resultptr; | |
36ed4f51 | 23857 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
23858 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
23859 | } | |
23860 | return resultobj; | |
23861 | fail: | |
23862 | return NULL; | |
23863 | } | |
23864 | ||
23865 | ||
c370783e | 23866 | static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23867 | PyObject *resultobj; |
23868 | wxTimeSpan result; | |
23869 | char *kwnames[] = { | |
23870 | NULL | |
23871 | }; | |
23872 | ||
23873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
23874 | { | |
23875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23876 | result = wxTimeSpan::Minute(); | |
23877 | ||
23878 | wxPyEndAllowThreads(__tstate); | |
23879 | if (PyErr_Occurred()) SWIG_fail; | |
23880 | } | |
23881 | { | |
23882 | wxTimeSpan * resultptr; | |
36ed4f51 | 23883 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
23884 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
23885 | } | |
23886 | return resultobj; | |
23887 | fail: | |
23888 | return NULL; | |
23889 | } | |
23890 | ||
23891 | ||
c370783e | 23892 | static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23893 | PyObject *resultobj; |
23894 | long arg1 ; | |
23895 | wxTimeSpan result; | |
23896 | PyObject * obj0 = 0 ; | |
23897 | char *kwnames[] = { | |
23898 | (char *) "hours", NULL | |
23899 | }; | |
23900 | ||
23901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23902 | { |
23903 | arg1 = (long)(SWIG_As_long(obj0)); | |
23904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23905 | } | |
d55e5bfc RD |
23906 | { |
23907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23908 | result = wxTimeSpan::Hours(arg1); | |
23909 | ||
23910 | wxPyEndAllowThreads(__tstate); | |
23911 | if (PyErr_Occurred()) SWIG_fail; | |
23912 | } | |
23913 | { | |
23914 | wxTimeSpan * resultptr; | |
36ed4f51 | 23915 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
23916 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
23917 | } | |
23918 | return resultobj; | |
23919 | fail: | |
23920 | return NULL; | |
23921 | } | |
23922 | ||
23923 | ||
c370783e | 23924 | static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23925 | PyObject *resultobj; |
23926 | wxTimeSpan result; | |
23927 | char *kwnames[] = { | |
23928 | NULL | |
23929 | }; | |
23930 | ||
23931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
23932 | { | |
23933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23934 | result = wxTimeSpan::Hour(); | |
23935 | ||
23936 | wxPyEndAllowThreads(__tstate); | |
23937 | if (PyErr_Occurred()) SWIG_fail; | |
23938 | } | |
23939 | { | |
23940 | wxTimeSpan * resultptr; | |
36ed4f51 | 23941 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
23942 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
23943 | } | |
23944 | return resultobj; | |
23945 | fail: | |
23946 | return NULL; | |
23947 | } | |
23948 | ||
23949 | ||
c370783e | 23950 | static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23951 | PyObject *resultobj; |
23952 | long arg1 ; | |
23953 | wxTimeSpan result; | |
23954 | PyObject * obj0 = 0 ; | |
23955 | char *kwnames[] = { | |
23956 | (char *) "days", NULL | |
23957 | }; | |
23958 | ||
23959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23960 | { |
23961 | arg1 = (long)(SWIG_As_long(obj0)); | |
23962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23963 | } | |
d55e5bfc RD |
23964 | { |
23965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23966 | result = wxTimeSpan::Days(arg1); | |
23967 | ||
23968 | wxPyEndAllowThreads(__tstate); | |
23969 | if (PyErr_Occurred()) SWIG_fail; | |
23970 | } | |
23971 | { | |
23972 | wxTimeSpan * resultptr; | |
36ed4f51 | 23973 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
23974 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
23975 | } | |
23976 | return resultobj; | |
23977 | fail: | |
23978 | return NULL; | |
23979 | } | |
23980 | ||
23981 | ||
c370783e | 23982 | static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23983 | PyObject *resultobj; |
23984 | wxTimeSpan result; | |
23985 | char *kwnames[] = { | |
23986 | NULL | |
23987 | }; | |
23988 | ||
23989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
23990 | { | |
23991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23992 | result = wxTimeSpan::Day(); | |
23993 | ||
23994 | wxPyEndAllowThreads(__tstate); | |
23995 | if (PyErr_Occurred()) SWIG_fail; | |
23996 | } | |
23997 | { | |
23998 | wxTimeSpan * resultptr; | |
36ed4f51 | 23999 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
24000 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
24001 | } | |
24002 | return resultobj; | |
24003 | fail: | |
24004 | return NULL; | |
24005 | } | |
24006 | ||
24007 | ||
c370783e | 24008 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24009 | PyObject *resultobj; |
24010 | long arg1 ; | |
24011 | wxTimeSpan result; | |
24012 | PyObject * obj0 = 0 ; | |
24013 | char *kwnames[] = { | |
24014 | (char *) "days", NULL | |
24015 | }; | |
24016 | ||
24017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24018 | { |
24019 | arg1 = (long)(SWIG_As_long(obj0)); | |
24020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24021 | } | |
d55e5bfc RD |
24022 | { |
24023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24024 | result = wxTimeSpan::Weeks(arg1); | |
24025 | ||
24026 | wxPyEndAllowThreads(__tstate); | |
24027 | if (PyErr_Occurred()) SWIG_fail; | |
24028 | } | |
24029 | { | |
24030 | wxTimeSpan * resultptr; | |
36ed4f51 | 24031 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
24032 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
24033 | } | |
24034 | return resultobj; | |
24035 | fail: | |
24036 | return NULL; | |
24037 | } | |
24038 | ||
24039 | ||
c370783e | 24040 | static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24041 | PyObject *resultobj; |
24042 | wxTimeSpan result; | |
24043 | char *kwnames[] = { | |
24044 | NULL | |
24045 | }; | |
24046 | ||
24047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
24048 | { | |
24049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24050 | result = wxTimeSpan::Week(); | |
24051 | ||
24052 | wxPyEndAllowThreads(__tstate); | |
24053 | if (PyErr_Occurred()) SWIG_fail; | |
24054 | } | |
24055 | { | |
24056 | wxTimeSpan * resultptr; | |
36ed4f51 | 24057 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
24058 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
24059 | } | |
24060 | return resultobj; | |
24061 | fail: | |
24062 | return NULL; | |
24063 | } | |
24064 | ||
24065 | ||
c370783e | 24066 | static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24067 | PyObject *resultobj; |
24068 | long arg1 = (long) 0 ; | |
24069 | long arg2 = (long) 0 ; | |
24070 | long arg3 = (long) 0 ; | |
24071 | long arg4 = (long) 0 ; | |
24072 | wxTimeSpan *result; | |
24073 | PyObject * obj0 = 0 ; | |
24074 | PyObject * obj1 = 0 ; | |
24075 | PyObject * obj2 = 0 ; | |
24076 | PyObject * obj3 = 0 ; | |
24077 | char *kwnames[] = { | |
24078 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
24079 | }; | |
24080 | ||
24081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24082 | if (obj0) { | |
36ed4f51 RD |
24083 | { |
24084 | arg1 = (long)(SWIG_As_long(obj0)); | |
24085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24086 | } | |
d55e5bfc RD |
24087 | } |
24088 | if (obj1) { | |
36ed4f51 RD |
24089 | { |
24090 | arg2 = (long)(SWIG_As_long(obj1)); | |
24091 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24092 | } | |
d55e5bfc RD |
24093 | } |
24094 | if (obj2) { | |
36ed4f51 RD |
24095 | { |
24096 | arg3 = (long)(SWIG_As_long(obj2)); | |
24097 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24098 | } | |
d55e5bfc RD |
24099 | } |
24100 | if (obj3) { | |
36ed4f51 RD |
24101 | { |
24102 | arg4 = (long)(SWIG_As_long(obj3)); | |
24103 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24104 | } | |
d55e5bfc RD |
24105 | } |
24106 | { | |
24107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24108 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
24109 | ||
24110 | wxPyEndAllowThreads(__tstate); | |
24111 | if (PyErr_Occurred()) SWIG_fail; | |
24112 | } | |
24113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
24114 | return resultobj; | |
24115 | fail: | |
24116 | return NULL; | |
24117 | } | |
24118 | ||
24119 | ||
c370783e | 24120 | static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24121 | PyObject *resultobj; |
24122 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24123 | PyObject * obj0 = 0 ; | |
24124 | char *kwnames[] = { | |
24125 | (char *) "self", NULL | |
24126 | }; | |
24127 | ||
24128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24129 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24131 | { |
24132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24133 | delete arg1; | |
24134 | ||
24135 | wxPyEndAllowThreads(__tstate); | |
24136 | if (PyErr_Occurred()) SWIG_fail; | |
24137 | } | |
24138 | Py_INCREF(Py_None); resultobj = Py_None; | |
24139 | return resultobj; | |
24140 | fail: | |
24141 | return NULL; | |
24142 | } | |
24143 | ||
24144 | ||
c370783e | 24145 | static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24146 | PyObject *resultobj; |
24147 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24148 | wxTimeSpan *arg2 = 0 ; | |
24149 | wxTimeSpan *result; | |
24150 | PyObject * obj0 = 0 ; | |
24151 | PyObject * obj1 = 0 ; | |
24152 | char *kwnames[] = { | |
24153 | (char *) "self",(char *) "diff", NULL | |
24154 | }; | |
24155 | ||
24156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24159 | { | |
24160 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24161 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24162 | if (arg2 == NULL) { | |
24163 | SWIG_null_ref("wxTimeSpan"); | |
24164 | } | |
24165 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24166 | } |
24167 | { | |
24168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24169 | { | |
24170 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
24171 | result = (wxTimeSpan *) &_result_ref; | |
24172 | } | |
24173 | ||
24174 | wxPyEndAllowThreads(__tstate); | |
24175 | if (PyErr_Occurred()) SWIG_fail; | |
24176 | } | |
24177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
24178 | return resultobj; | |
24179 | fail: | |
24180 | return NULL; | |
24181 | } | |
24182 | ||
24183 | ||
c370783e | 24184 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24185 | PyObject *resultobj; |
24186 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24187 | wxTimeSpan *arg2 = 0 ; | |
24188 | wxTimeSpan *result; | |
24189 | PyObject * obj0 = 0 ; | |
24190 | PyObject * obj1 = 0 ; | |
24191 | char *kwnames[] = { | |
24192 | (char *) "self",(char *) "diff", NULL | |
24193 | }; | |
24194 | ||
24195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24198 | { | |
24199 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24200 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24201 | if (arg2 == NULL) { | |
24202 | SWIG_null_ref("wxTimeSpan"); | |
24203 | } | |
24204 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24205 | } |
24206 | { | |
24207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24208 | { | |
24209 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
24210 | result = (wxTimeSpan *) &_result_ref; | |
24211 | } | |
24212 | ||
24213 | wxPyEndAllowThreads(__tstate); | |
24214 | if (PyErr_Occurred()) SWIG_fail; | |
24215 | } | |
24216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
24217 | return resultobj; | |
24218 | fail: | |
24219 | return NULL; | |
24220 | } | |
24221 | ||
24222 | ||
c370783e | 24223 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24224 | PyObject *resultobj; |
24225 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24226 | int arg2 ; | |
24227 | wxTimeSpan *result; | |
24228 | PyObject * obj0 = 0 ; | |
24229 | PyObject * obj1 = 0 ; | |
24230 | char *kwnames[] = { | |
24231 | (char *) "self",(char *) "n", NULL | |
24232 | }; | |
24233 | ||
24234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24237 | { | |
24238 | arg2 = (int)(SWIG_As_int(obj1)); | |
24239 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24240 | } | |
d55e5bfc RD |
24241 | { |
24242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24243 | { | |
24244 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
24245 | result = (wxTimeSpan *) &_result_ref; | |
24246 | } | |
24247 | ||
24248 | wxPyEndAllowThreads(__tstate); | |
24249 | if (PyErr_Occurred()) SWIG_fail; | |
24250 | } | |
24251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
24252 | return resultobj; | |
24253 | fail: | |
24254 | return NULL; | |
24255 | } | |
24256 | ||
24257 | ||
c370783e | 24258 | static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24259 | PyObject *resultobj; |
24260 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24261 | wxTimeSpan *result; | |
24262 | PyObject * obj0 = 0 ; | |
24263 | char *kwnames[] = { | |
24264 | (char *) "self", NULL | |
24265 | }; | |
24266 | ||
24267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24270 | { |
24271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24272 | { | |
24273 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
24274 | result = (wxTimeSpan *) &_result_ref; | |
24275 | } | |
24276 | ||
24277 | wxPyEndAllowThreads(__tstate); | |
24278 | if (PyErr_Occurred()) SWIG_fail; | |
24279 | } | |
24280 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
24281 | return resultobj; | |
24282 | fail: | |
24283 | return NULL; | |
24284 | } | |
24285 | ||
24286 | ||
c370783e | 24287 | static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24288 | PyObject *resultobj; |
24289 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24290 | wxTimeSpan result; | |
24291 | PyObject * obj0 = 0 ; | |
24292 | char *kwnames[] = { | |
24293 | (char *) "self", NULL | |
24294 | }; | |
24295 | ||
24296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24297 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24299 | { |
24300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24301 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
24302 | ||
24303 | wxPyEndAllowThreads(__tstate); | |
24304 | if (PyErr_Occurred()) SWIG_fail; | |
24305 | } | |
24306 | { | |
24307 | wxTimeSpan * resultptr; | |
36ed4f51 | 24308 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
24309 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
24310 | } | |
24311 | return resultobj; | |
24312 | fail: | |
24313 | return NULL; | |
24314 | } | |
24315 | ||
24316 | ||
c370783e | 24317 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24318 | PyObject *resultobj; |
24319 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24320 | wxTimeSpan *arg2 = 0 ; | |
24321 | wxTimeSpan *result; | |
24322 | PyObject * obj0 = 0 ; | |
24323 | PyObject * obj1 = 0 ; | |
24324 | char *kwnames[] = { | |
24325 | (char *) "self",(char *) "diff", NULL | |
24326 | }; | |
24327 | ||
24328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
24330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24331 | { | |
24332 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24333 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24334 | if (arg2 == NULL) { | |
24335 | SWIG_null_ref("wxTimeSpan"); | |
24336 | } | |
24337 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24338 | } |
24339 | { | |
24340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24341 | { | |
24342 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
24343 | result = (wxTimeSpan *) &_result_ref; | |
24344 | } | |
24345 | ||
24346 | wxPyEndAllowThreads(__tstate); | |
24347 | if (PyErr_Occurred()) SWIG_fail; | |
24348 | } | |
c370783e | 24349 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
24350 | return resultobj; |
24351 | fail: | |
24352 | return NULL; | |
24353 | } | |
24354 | ||
24355 | ||
c370783e | 24356 | static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24357 | PyObject *resultobj; |
24358 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24359 | wxTimeSpan *arg2 = 0 ; | |
24360 | wxTimeSpan *result; | |
24361 | PyObject * obj0 = 0 ; | |
24362 | PyObject * obj1 = 0 ; | |
24363 | char *kwnames[] = { | |
24364 | (char *) "self",(char *) "diff", NULL | |
24365 | }; | |
24366 | ||
24367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
24369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24370 | { | |
24371 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24372 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24373 | if (arg2 == NULL) { | |
24374 | SWIG_null_ref("wxTimeSpan"); | |
24375 | } | |
24376 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24377 | } |
24378 | { | |
24379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24380 | { | |
24381 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
24382 | result = (wxTimeSpan *) &_result_ref; | |
24383 | } | |
24384 | ||
24385 | wxPyEndAllowThreads(__tstate); | |
24386 | if (PyErr_Occurred()) SWIG_fail; | |
24387 | } | |
c370783e | 24388 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
24389 | return resultobj; |
24390 | fail: | |
24391 | return NULL; | |
24392 | } | |
24393 | ||
24394 | ||
c370783e | 24395 | static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24396 | PyObject *resultobj; |
24397 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24398 | int arg2 ; | |
24399 | wxTimeSpan *result; | |
24400 | PyObject * obj0 = 0 ; | |
24401 | PyObject * obj1 = 0 ; | |
24402 | char *kwnames[] = { | |
24403 | (char *) "self",(char *) "n", NULL | |
24404 | }; | |
24405 | ||
24406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24407 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
24408 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24409 | { | |
24410 | arg2 = (int)(SWIG_As_int(obj1)); | |
24411 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24412 | } | |
d55e5bfc RD |
24413 | { |
24414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24415 | { | |
24416 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
24417 | result = (wxTimeSpan *) &_result_ref; | |
24418 | } | |
24419 | ||
24420 | wxPyEndAllowThreads(__tstate); | |
24421 | if (PyErr_Occurred()) SWIG_fail; | |
24422 | } | |
c370783e | 24423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
24424 | return resultobj; |
24425 | fail: | |
24426 | return NULL; | |
24427 | } | |
24428 | ||
24429 | ||
c370783e | 24430 | static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24431 | PyObject *resultobj; |
24432 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24433 | wxTimeSpan *result; | |
24434 | PyObject * obj0 = 0 ; | |
24435 | char *kwnames[] = { | |
24436 | (char *) "self", NULL | |
24437 | }; | |
24438 | ||
24439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24442 | { |
24443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24444 | { | |
24445 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
24446 | result = (wxTimeSpan *) &_result_ref; | |
24447 | } | |
24448 | ||
24449 | wxPyEndAllowThreads(__tstate); | |
24450 | if (PyErr_Occurred()) SWIG_fail; | |
24451 | } | |
24452 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
24453 | return resultobj; | |
24454 | fail: | |
24455 | return NULL; | |
24456 | } | |
24457 | ||
24458 | ||
c370783e | 24459 | static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24460 | PyObject *resultobj; |
24461 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24462 | wxTimeSpan *arg2 = 0 ; | |
24463 | wxTimeSpan result; | |
24464 | PyObject * obj0 = 0 ; | |
24465 | PyObject * obj1 = 0 ; | |
24466 | char *kwnames[] = { | |
24467 | (char *) "self",(char *) "other", NULL | |
24468 | }; | |
24469 | ||
24470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24473 | { | |
24474 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24475 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24476 | if (arg2 == NULL) { | |
24477 | SWIG_null_ref("wxTimeSpan"); | |
24478 | } | |
24479 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24480 | } |
24481 | { | |
24482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24483 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
24484 | ||
24485 | wxPyEndAllowThreads(__tstate); | |
24486 | if (PyErr_Occurred()) SWIG_fail; | |
24487 | } | |
24488 | { | |
24489 | wxTimeSpan * resultptr; | |
36ed4f51 | 24490 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
24491 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
24492 | } | |
24493 | return resultobj; | |
24494 | fail: | |
24495 | return NULL; | |
24496 | } | |
24497 | ||
24498 | ||
c370783e | 24499 | static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24500 | PyObject *resultobj; |
24501 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24502 | wxTimeSpan *arg2 = 0 ; | |
24503 | wxTimeSpan result; | |
24504 | PyObject * obj0 = 0 ; | |
24505 | PyObject * obj1 = 0 ; | |
24506 | char *kwnames[] = { | |
24507 | (char *) "self",(char *) "other", NULL | |
24508 | }; | |
24509 | ||
24510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24513 | { | |
24514 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24515 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24516 | if (arg2 == NULL) { | |
24517 | SWIG_null_ref("wxTimeSpan"); | |
24518 | } | |
24519 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24520 | } |
24521 | { | |
24522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24523 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
24524 | ||
24525 | wxPyEndAllowThreads(__tstate); | |
24526 | if (PyErr_Occurred()) SWIG_fail; | |
24527 | } | |
24528 | { | |
24529 | wxTimeSpan * resultptr; | |
36ed4f51 | 24530 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
24531 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
24532 | } | |
24533 | return resultobj; | |
24534 | fail: | |
24535 | return NULL; | |
24536 | } | |
24537 | ||
24538 | ||
c370783e | 24539 | static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24540 | PyObject *resultobj; |
24541 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24542 | int arg2 ; | |
24543 | wxTimeSpan result; | |
24544 | PyObject * obj0 = 0 ; | |
24545 | PyObject * obj1 = 0 ; | |
24546 | char *kwnames[] = { | |
24547 | (char *) "self",(char *) "n", NULL | |
24548 | }; | |
24549 | ||
24550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24553 | { | |
24554 | arg2 = (int)(SWIG_As_int(obj1)); | |
24555 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24556 | } | |
d55e5bfc RD |
24557 | { |
24558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24559 | result = wxTimeSpan___mul__(arg1,arg2); | |
24560 | ||
24561 | wxPyEndAllowThreads(__tstate); | |
24562 | if (PyErr_Occurred()) SWIG_fail; | |
24563 | } | |
24564 | { | |
24565 | wxTimeSpan * resultptr; | |
36ed4f51 | 24566 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
24567 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
24568 | } | |
24569 | return resultobj; | |
24570 | fail: | |
24571 | return NULL; | |
24572 | } | |
24573 | ||
24574 | ||
c370783e | 24575 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24576 | PyObject *resultobj; |
24577 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24578 | int arg2 ; | |
24579 | wxTimeSpan result; | |
24580 | PyObject * obj0 = 0 ; | |
24581 | PyObject * obj1 = 0 ; | |
24582 | char *kwnames[] = { | |
24583 | (char *) "self",(char *) "n", NULL | |
24584 | }; | |
24585 | ||
24586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24589 | { | |
24590 | arg2 = (int)(SWIG_As_int(obj1)); | |
24591 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24592 | } | |
d55e5bfc RD |
24593 | { |
24594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24595 | result = wxTimeSpan___rmul__(arg1,arg2); | |
24596 | ||
24597 | wxPyEndAllowThreads(__tstate); | |
24598 | if (PyErr_Occurred()) SWIG_fail; | |
24599 | } | |
24600 | { | |
24601 | wxTimeSpan * resultptr; | |
36ed4f51 | 24602 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
d55e5bfc RD |
24603 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
24604 | } | |
24605 | return resultobj; | |
24606 | fail: | |
24607 | return NULL; | |
24608 | } | |
24609 | ||
24610 | ||
c370783e | 24611 | static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24612 | PyObject *resultobj; |
24613 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24614 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
24615 | bool result; | |
24616 | PyObject * obj0 = 0 ; | |
24617 | PyObject * obj1 = 0 ; | |
24618 | char *kwnames[] = { | |
24619 | (char *) "self",(char *) "other", NULL | |
24620 | }; | |
24621 | ||
24622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24623 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24624 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24625 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24626 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24627 | { |
24628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24629 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
24630 | ||
24631 | wxPyEndAllowThreads(__tstate); | |
24632 | if (PyErr_Occurred()) SWIG_fail; | |
24633 | } | |
24634 | { | |
24635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24636 | } | |
24637 | return resultobj; | |
24638 | fail: | |
24639 | return NULL; | |
24640 | } | |
24641 | ||
24642 | ||
c370783e | 24643 | static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24644 | PyObject *resultobj; |
24645 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24646 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
24647 | bool result; | |
24648 | PyObject * obj0 = 0 ; | |
24649 | PyObject * obj1 = 0 ; | |
24650 | char *kwnames[] = { | |
24651 | (char *) "self",(char *) "other", NULL | |
24652 | }; | |
24653 | ||
24654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24655 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24657 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24658 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24659 | { |
24660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24661 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
24662 | ||
24663 | wxPyEndAllowThreads(__tstate); | |
24664 | if (PyErr_Occurred()) SWIG_fail; | |
24665 | } | |
24666 | { | |
24667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24668 | } | |
24669 | return resultobj; | |
24670 | fail: | |
24671 | return NULL; | |
24672 | } | |
24673 | ||
24674 | ||
c370783e | 24675 | static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24676 | PyObject *resultobj; |
24677 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24678 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
24679 | bool result; | |
24680 | PyObject * obj0 = 0 ; | |
24681 | PyObject * obj1 = 0 ; | |
24682 | char *kwnames[] = { | |
24683 | (char *) "self",(char *) "other", NULL | |
24684 | }; | |
24685 | ||
24686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24687 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24689 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24690 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24691 | { |
24692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24693 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
24694 | ||
24695 | wxPyEndAllowThreads(__tstate); | |
24696 | if (PyErr_Occurred()) SWIG_fail; | |
24697 | } | |
24698 | { | |
24699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24700 | } | |
24701 | return resultobj; | |
24702 | fail: | |
24703 | return NULL; | |
24704 | } | |
24705 | ||
24706 | ||
c370783e | 24707 | static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24708 | PyObject *resultobj; |
24709 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24710 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
24711 | bool result; | |
24712 | PyObject * obj0 = 0 ; | |
24713 | PyObject * obj1 = 0 ; | |
24714 | char *kwnames[] = { | |
24715 | (char *) "self",(char *) "other", NULL | |
24716 | }; | |
24717 | ||
24718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24721 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24722 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24723 | { |
24724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24725 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
24726 | ||
24727 | wxPyEndAllowThreads(__tstate); | |
24728 | if (PyErr_Occurred()) SWIG_fail; | |
24729 | } | |
24730 | { | |
24731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24732 | } | |
24733 | return resultobj; | |
24734 | fail: | |
24735 | return NULL; | |
24736 | } | |
24737 | ||
24738 | ||
c370783e | 24739 | static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24740 | PyObject *resultobj; |
24741 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24742 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
24743 | bool result; | |
24744 | PyObject * obj0 = 0 ; | |
24745 | PyObject * obj1 = 0 ; | |
24746 | char *kwnames[] = { | |
24747 | (char *) "self",(char *) "other", NULL | |
24748 | }; | |
24749 | ||
24750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24753 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24754 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24755 | { |
24756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24757 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
24758 | ||
24759 | wxPyEndAllowThreads(__tstate); | |
24760 | if (PyErr_Occurred()) SWIG_fail; | |
24761 | } | |
24762 | { | |
24763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24764 | } | |
24765 | return resultobj; | |
24766 | fail: | |
24767 | return NULL; | |
24768 | } | |
24769 | ||
24770 | ||
c370783e | 24771 | static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24772 | PyObject *resultobj; |
24773 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24774 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
24775 | bool result; | |
24776 | PyObject * obj0 = 0 ; | |
24777 | PyObject * obj1 = 0 ; | |
24778 | char *kwnames[] = { | |
24779 | (char *) "self",(char *) "other", NULL | |
24780 | }; | |
24781 | ||
24782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24785 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24786 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24787 | { |
24788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24789 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
24790 | ||
24791 | wxPyEndAllowThreads(__tstate); | |
24792 | if (PyErr_Occurred()) SWIG_fail; | |
24793 | } | |
24794 | { | |
24795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24796 | } | |
24797 | return resultobj; | |
24798 | fail: | |
24799 | return NULL; | |
24800 | } | |
24801 | ||
24802 | ||
c370783e | 24803 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24804 | PyObject *resultobj; |
24805 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24806 | bool result; | |
24807 | PyObject * obj0 = 0 ; | |
24808 | char *kwnames[] = { | |
24809 | (char *) "self", NULL | |
24810 | }; | |
24811 | ||
24812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24815 | { |
24816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24817 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
24818 | ||
24819 | wxPyEndAllowThreads(__tstate); | |
24820 | if (PyErr_Occurred()) SWIG_fail; | |
24821 | } | |
24822 | { | |
24823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24824 | } | |
24825 | return resultobj; | |
24826 | fail: | |
24827 | return NULL; | |
24828 | } | |
24829 | ||
24830 | ||
c370783e | 24831 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24832 | PyObject *resultobj; |
24833 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24834 | bool result; | |
24835 | PyObject * obj0 = 0 ; | |
24836 | char *kwnames[] = { | |
24837 | (char *) "self", NULL | |
24838 | }; | |
24839 | ||
24840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24843 | { |
24844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24845 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
24846 | ||
24847 | wxPyEndAllowThreads(__tstate); | |
24848 | if (PyErr_Occurred()) SWIG_fail; | |
24849 | } | |
24850 | { | |
24851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24852 | } | |
24853 | return resultobj; | |
24854 | fail: | |
24855 | return NULL; | |
24856 | } | |
24857 | ||
24858 | ||
c370783e | 24859 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24860 | PyObject *resultobj; |
24861 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24862 | bool result; | |
24863 | PyObject * obj0 = 0 ; | |
24864 | char *kwnames[] = { | |
24865 | (char *) "self", NULL | |
24866 | }; | |
24867 | ||
24868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24869 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24870 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24871 | { |
24872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24873 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
24874 | ||
24875 | wxPyEndAllowThreads(__tstate); | |
24876 | if (PyErr_Occurred()) SWIG_fail; | |
24877 | } | |
24878 | { | |
24879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24880 | } | |
24881 | return resultobj; | |
24882 | fail: | |
24883 | return NULL; | |
24884 | } | |
24885 | ||
24886 | ||
c370783e | 24887 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24888 | PyObject *resultobj; |
24889 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24890 | wxTimeSpan *arg2 = 0 ; | |
24891 | bool result; | |
24892 | PyObject * obj0 = 0 ; | |
24893 | PyObject * obj1 = 0 ; | |
24894 | char *kwnames[] = { | |
24895 | (char *) "self",(char *) "ts", NULL | |
24896 | }; | |
24897 | ||
24898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24901 | { | |
24902 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24903 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24904 | if (arg2 == NULL) { | |
24905 | SWIG_null_ref("wxTimeSpan"); | |
24906 | } | |
24907 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24908 | } |
24909 | { | |
24910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24911 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
24912 | ||
24913 | wxPyEndAllowThreads(__tstate); | |
24914 | if (PyErr_Occurred()) SWIG_fail; | |
24915 | } | |
24916 | { | |
24917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24918 | } | |
24919 | return resultobj; | |
24920 | fail: | |
24921 | return NULL; | |
24922 | } | |
24923 | ||
24924 | ||
c370783e | 24925 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24926 | PyObject *resultobj; |
24927 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24928 | wxTimeSpan *arg2 = 0 ; | |
24929 | bool result; | |
24930 | PyObject * obj0 = 0 ; | |
24931 | PyObject * obj1 = 0 ; | |
24932 | char *kwnames[] = { | |
24933 | (char *) "self",(char *) "ts", NULL | |
24934 | }; | |
24935 | ||
24936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24939 | { | |
24940 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24941 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24942 | if (arg2 == NULL) { | |
24943 | SWIG_null_ref("wxTimeSpan"); | |
24944 | } | |
24945 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24946 | } |
24947 | { | |
24948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24949 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
24950 | ||
24951 | wxPyEndAllowThreads(__tstate); | |
24952 | if (PyErr_Occurred()) SWIG_fail; | |
24953 | } | |
24954 | { | |
24955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24956 | } | |
24957 | return resultobj; | |
24958 | fail: | |
24959 | return NULL; | |
24960 | } | |
24961 | ||
24962 | ||
c370783e | 24963 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24964 | PyObject *resultobj; |
24965 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24966 | wxTimeSpan *arg2 = 0 ; | |
24967 | bool result; | |
24968 | PyObject * obj0 = 0 ; | |
24969 | PyObject * obj1 = 0 ; | |
24970 | char *kwnames[] = { | |
24971 | (char *) "self",(char *) "t", NULL | |
24972 | }; | |
24973 | ||
24974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24975 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24976 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24977 | { | |
24978 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24979 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24980 | if (arg2 == NULL) { | |
24981 | SWIG_null_ref("wxTimeSpan"); | |
24982 | } | |
24983 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24984 | } |
24985 | { | |
24986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24987 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
24988 | ||
24989 | wxPyEndAllowThreads(__tstate); | |
24990 | if (PyErr_Occurred()) SWIG_fail; | |
24991 | } | |
24992 | { | |
24993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24994 | } | |
24995 | return resultobj; | |
24996 | fail: | |
24997 | return NULL; | |
24998 | } | |
24999 | ||
25000 | ||
c370783e | 25001 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25002 | PyObject *resultobj; |
25003 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25004 | int result; | |
25005 | PyObject * obj0 = 0 ; | |
25006 | char *kwnames[] = { | |
25007 | (char *) "self", NULL | |
25008 | }; | |
25009 | ||
25010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25013 | { |
25014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25015 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
25016 | ||
25017 | wxPyEndAllowThreads(__tstate); | |
25018 | if (PyErr_Occurred()) SWIG_fail; | |
25019 | } | |
36ed4f51 RD |
25020 | { |
25021 | resultobj = SWIG_From_int((int)(result)); | |
25022 | } | |
d55e5bfc RD |
25023 | return resultobj; |
25024 | fail: | |
25025 | return NULL; | |
25026 | } | |
25027 | ||
25028 | ||
c370783e | 25029 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25030 | PyObject *resultobj; |
25031 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25032 | int result; | |
25033 | PyObject * obj0 = 0 ; | |
25034 | char *kwnames[] = { | |
25035 | (char *) "self", NULL | |
25036 | }; | |
25037 | ||
25038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25041 | { |
25042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25043 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
25044 | ||
25045 | wxPyEndAllowThreads(__tstate); | |
25046 | if (PyErr_Occurred()) SWIG_fail; | |
25047 | } | |
36ed4f51 RD |
25048 | { |
25049 | resultobj = SWIG_From_int((int)(result)); | |
25050 | } | |
d55e5bfc RD |
25051 | return resultobj; |
25052 | fail: | |
25053 | return NULL; | |
25054 | } | |
25055 | ||
25056 | ||
c370783e | 25057 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25058 | PyObject *resultobj; |
25059 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25060 | int result; | |
25061 | PyObject * obj0 = 0 ; | |
25062 | char *kwnames[] = { | |
25063 | (char *) "self", NULL | |
25064 | }; | |
25065 | ||
25066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25069 | { |
25070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25071 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
25072 | ||
25073 | wxPyEndAllowThreads(__tstate); | |
25074 | if (PyErr_Occurred()) SWIG_fail; | |
25075 | } | |
36ed4f51 RD |
25076 | { |
25077 | resultobj = SWIG_From_int((int)(result)); | |
25078 | } | |
d55e5bfc RD |
25079 | return resultobj; |
25080 | fail: | |
25081 | return NULL; | |
25082 | } | |
25083 | ||
25084 | ||
c370783e | 25085 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25086 | PyObject *resultobj; |
25087 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25088 | int result; | |
25089 | PyObject * obj0 = 0 ; | |
25090 | char *kwnames[] = { | |
25091 | (char *) "self", NULL | |
25092 | }; | |
25093 | ||
25094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25097 | { |
25098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25099 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
25100 | ||
25101 | wxPyEndAllowThreads(__tstate); | |
25102 | if (PyErr_Occurred()) SWIG_fail; | |
25103 | } | |
36ed4f51 RD |
25104 | { |
25105 | resultobj = SWIG_From_int((int)(result)); | |
25106 | } | |
d55e5bfc RD |
25107 | return resultobj; |
25108 | fail: | |
25109 | return NULL; | |
25110 | } | |
25111 | ||
25112 | ||
c370783e | 25113 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25114 | PyObject *resultobj; |
25115 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25116 | wxLongLong result; | |
25117 | PyObject * obj0 = 0 ; | |
25118 | char *kwnames[] = { | |
25119 | (char *) "self", NULL | |
25120 | }; | |
25121 | ||
25122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25125 | { |
25126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25127 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
25128 | ||
25129 | wxPyEndAllowThreads(__tstate); | |
25130 | if (PyErr_Occurred()) SWIG_fail; | |
25131 | } | |
25132 | { | |
25133 | PyObject *hi, *lo, *shifter, *shifted; | |
25134 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
25135 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
25136 | shifter = PyLong_FromLong(32); | |
25137 | shifted = PyNumber_Lshift(hi, shifter); | |
25138 | resultobj = PyNumber_Or(shifted, lo); | |
25139 | Py_DECREF(hi); | |
25140 | Py_DECREF(lo); | |
25141 | Py_DECREF(shifter); | |
25142 | Py_DECREF(shifted); | |
25143 | } | |
25144 | return resultobj; | |
25145 | fail: | |
25146 | return NULL; | |
25147 | } | |
25148 | ||
25149 | ||
c370783e | 25150 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25151 | PyObject *resultobj; |
25152 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25153 | wxLongLong result; | |
25154 | PyObject * obj0 = 0 ; | |
25155 | char *kwnames[] = { | |
25156 | (char *) "self", NULL | |
25157 | }; | |
25158 | ||
25159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25160 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25162 | { |
25163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25164 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
25165 | ||
25166 | wxPyEndAllowThreads(__tstate); | |
25167 | if (PyErr_Occurred()) SWIG_fail; | |
25168 | } | |
25169 | { | |
25170 | PyObject *hi, *lo, *shifter, *shifted; | |
25171 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
25172 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
25173 | shifter = PyLong_FromLong(32); | |
25174 | shifted = PyNumber_Lshift(hi, shifter); | |
25175 | resultobj = PyNumber_Or(shifted, lo); | |
25176 | Py_DECREF(hi); | |
25177 | Py_DECREF(lo); | |
25178 | Py_DECREF(shifter); | |
25179 | Py_DECREF(shifted); | |
25180 | } | |
25181 | return resultobj; | |
25182 | fail: | |
25183 | return NULL; | |
25184 | } | |
25185 | ||
25186 | ||
c370783e | 25187 | static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25188 | PyObject *resultobj; |
25189 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
fef4c27a | 25190 | wxString const &arg2_defvalue = wxPyDefaultTimeSpanFormat ; |
d55e5bfc RD |
25191 | wxString *arg2 = (wxString *) &arg2_defvalue ; |
25192 | wxString result; | |
b411df4a | 25193 | bool temp2 = false ; |
d55e5bfc RD |
25194 | PyObject * obj0 = 0 ; |
25195 | PyObject * obj1 = 0 ; | |
25196 | char *kwnames[] = { | |
25197 | (char *) "self",(char *) "format", NULL | |
25198 | }; | |
25199 | ||
25200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25203 | if (obj1) { |
25204 | { | |
25205 | arg2 = wxString_in_helper(obj1); | |
25206 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 25207 | temp2 = true; |
d55e5bfc RD |
25208 | } |
25209 | } | |
25210 | { | |
25211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25212 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
25213 | ||
25214 | wxPyEndAllowThreads(__tstate); | |
25215 | if (PyErr_Occurred()) SWIG_fail; | |
25216 | } | |
25217 | { | |
25218 | #if wxUSE_UNICODE | |
25219 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25220 | #else | |
25221 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25222 | #endif | |
25223 | } | |
25224 | { | |
25225 | if (temp2) | |
25226 | delete arg2; | |
25227 | } | |
25228 | return resultobj; | |
25229 | fail: | |
25230 | { | |
25231 | if (temp2) | |
25232 | delete arg2; | |
25233 | } | |
25234 | return NULL; | |
25235 | } | |
25236 | ||
25237 | ||
c370783e | 25238 | static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25239 | PyObject *obj; |
25240 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25241 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
25242 | Py_INCREF(obj); | |
25243 | return Py_BuildValue((char *)""); | |
25244 | } | |
c370783e | 25245 | static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25246 | PyObject *resultobj; |
25247 | int arg1 = (int) 0 ; | |
25248 | int arg2 = (int) 0 ; | |
25249 | int arg3 = (int) 0 ; | |
25250 | int arg4 = (int) 0 ; | |
25251 | wxDateSpan *result; | |
25252 | PyObject * obj0 = 0 ; | |
25253 | PyObject * obj1 = 0 ; | |
25254 | PyObject * obj2 = 0 ; | |
25255 | PyObject * obj3 = 0 ; | |
25256 | char *kwnames[] = { | |
25257 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
25258 | }; | |
25259 | ||
25260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25261 | if (obj0) { | |
36ed4f51 RD |
25262 | { |
25263 | arg1 = (int)(SWIG_As_int(obj0)); | |
25264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25265 | } | |
d55e5bfc RD |
25266 | } |
25267 | if (obj1) { | |
36ed4f51 RD |
25268 | { |
25269 | arg2 = (int)(SWIG_As_int(obj1)); | |
25270 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25271 | } | |
d55e5bfc RD |
25272 | } |
25273 | if (obj2) { | |
36ed4f51 RD |
25274 | { |
25275 | arg3 = (int)(SWIG_As_int(obj2)); | |
25276 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25277 | } | |
d55e5bfc RD |
25278 | } |
25279 | if (obj3) { | |
36ed4f51 RD |
25280 | { |
25281 | arg4 = (int)(SWIG_As_int(obj3)); | |
25282 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25283 | } | |
d55e5bfc RD |
25284 | } |
25285 | { | |
25286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25287 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
25288 | ||
25289 | wxPyEndAllowThreads(__tstate); | |
25290 | if (PyErr_Occurred()) SWIG_fail; | |
25291 | } | |
25292 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
25293 | return resultobj; | |
25294 | fail: | |
25295 | return NULL; | |
25296 | } | |
25297 | ||
25298 | ||
c370783e | 25299 | static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25300 | PyObject *resultobj; |
25301 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25302 | PyObject * obj0 = 0 ; | |
25303 | char *kwnames[] = { | |
25304 | (char *) "self", NULL | |
25305 | }; | |
25306 | ||
25307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25310 | { |
25311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25312 | delete arg1; | |
25313 | ||
25314 | wxPyEndAllowThreads(__tstate); | |
25315 | if (PyErr_Occurred()) SWIG_fail; | |
25316 | } | |
25317 | Py_INCREF(Py_None); resultobj = Py_None; | |
25318 | return resultobj; | |
25319 | fail: | |
25320 | return NULL; | |
25321 | } | |
25322 | ||
25323 | ||
c370783e | 25324 | static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25325 | PyObject *resultobj; |
25326 | int arg1 ; | |
25327 | wxDateSpan result; | |
25328 | PyObject * obj0 = 0 ; | |
25329 | char *kwnames[] = { | |
25330 | (char *) "days", NULL | |
25331 | }; | |
25332 | ||
25333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25334 | { |
25335 | arg1 = (int)(SWIG_As_int(obj0)); | |
25336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25337 | } | |
d55e5bfc RD |
25338 | { |
25339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25340 | result = wxDateSpan::Days(arg1); | |
25341 | ||
25342 | wxPyEndAllowThreads(__tstate); | |
25343 | if (PyErr_Occurred()) SWIG_fail; | |
25344 | } | |
25345 | { | |
25346 | wxDateSpan * resultptr; | |
36ed4f51 | 25347 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
25348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
25349 | } | |
25350 | return resultobj; | |
25351 | fail: | |
25352 | return NULL; | |
25353 | } | |
25354 | ||
25355 | ||
c370783e | 25356 | static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25357 | PyObject *resultobj; |
25358 | wxDateSpan result; | |
25359 | char *kwnames[] = { | |
25360 | NULL | |
25361 | }; | |
25362 | ||
25363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
25364 | { | |
25365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25366 | result = wxDateSpan::Day(); | |
25367 | ||
25368 | wxPyEndAllowThreads(__tstate); | |
25369 | if (PyErr_Occurred()) SWIG_fail; | |
25370 | } | |
25371 | { | |
25372 | wxDateSpan * resultptr; | |
36ed4f51 | 25373 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
25374 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
25375 | } | |
25376 | return resultobj; | |
25377 | fail: | |
25378 | return NULL; | |
25379 | } | |
25380 | ||
25381 | ||
c370783e | 25382 | static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25383 | PyObject *resultobj; |
25384 | int arg1 ; | |
25385 | wxDateSpan result; | |
25386 | PyObject * obj0 = 0 ; | |
25387 | char *kwnames[] = { | |
25388 | (char *) "weeks", NULL | |
25389 | }; | |
25390 | ||
25391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25392 | { |
25393 | arg1 = (int)(SWIG_As_int(obj0)); | |
25394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25395 | } | |
d55e5bfc RD |
25396 | { |
25397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25398 | result = wxDateSpan::Weeks(arg1); | |
25399 | ||
25400 | wxPyEndAllowThreads(__tstate); | |
25401 | if (PyErr_Occurred()) SWIG_fail; | |
25402 | } | |
25403 | { | |
25404 | wxDateSpan * resultptr; | |
36ed4f51 | 25405 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
25406 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
25407 | } | |
25408 | return resultobj; | |
25409 | fail: | |
25410 | return NULL; | |
25411 | } | |
25412 | ||
25413 | ||
c370783e | 25414 | static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25415 | PyObject *resultobj; |
25416 | wxDateSpan result; | |
25417 | char *kwnames[] = { | |
25418 | NULL | |
25419 | }; | |
25420 | ||
25421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
25422 | { | |
25423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25424 | result = wxDateSpan::Week(); | |
25425 | ||
25426 | wxPyEndAllowThreads(__tstate); | |
25427 | if (PyErr_Occurred()) SWIG_fail; | |
25428 | } | |
25429 | { | |
25430 | wxDateSpan * resultptr; | |
36ed4f51 | 25431 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
25432 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
25433 | } | |
25434 | return resultobj; | |
25435 | fail: | |
25436 | return NULL; | |
25437 | } | |
25438 | ||
25439 | ||
c370783e | 25440 | static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25441 | PyObject *resultobj; |
25442 | int arg1 ; | |
25443 | wxDateSpan result; | |
25444 | PyObject * obj0 = 0 ; | |
25445 | char *kwnames[] = { | |
25446 | (char *) "mon", NULL | |
25447 | }; | |
25448 | ||
25449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25450 | { |
25451 | arg1 = (int)(SWIG_As_int(obj0)); | |
25452 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25453 | } | |
d55e5bfc RD |
25454 | { |
25455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25456 | result = wxDateSpan::Months(arg1); | |
25457 | ||
25458 | wxPyEndAllowThreads(__tstate); | |
25459 | if (PyErr_Occurred()) SWIG_fail; | |
25460 | } | |
25461 | { | |
25462 | wxDateSpan * resultptr; | |
36ed4f51 | 25463 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
25464 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
25465 | } | |
25466 | return resultobj; | |
25467 | fail: | |
25468 | return NULL; | |
25469 | } | |
25470 | ||
25471 | ||
c370783e | 25472 | static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25473 | PyObject *resultobj; |
25474 | wxDateSpan result; | |
25475 | char *kwnames[] = { | |
25476 | NULL | |
25477 | }; | |
25478 | ||
25479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
25480 | { | |
25481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25482 | result = wxDateSpan::Month(); | |
25483 | ||
25484 | wxPyEndAllowThreads(__tstate); | |
25485 | if (PyErr_Occurred()) SWIG_fail; | |
25486 | } | |
25487 | { | |
25488 | wxDateSpan * resultptr; | |
36ed4f51 | 25489 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
25490 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
25491 | } | |
25492 | return resultobj; | |
25493 | fail: | |
25494 | return NULL; | |
25495 | } | |
25496 | ||
25497 | ||
c370783e | 25498 | static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25499 | PyObject *resultobj; |
25500 | int arg1 ; | |
25501 | wxDateSpan result; | |
25502 | PyObject * obj0 = 0 ; | |
25503 | char *kwnames[] = { | |
25504 | (char *) "years", NULL | |
25505 | }; | |
25506 | ||
25507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25508 | { |
25509 | arg1 = (int)(SWIG_As_int(obj0)); | |
25510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25511 | } | |
d55e5bfc RD |
25512 | { |
25513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25514 | result = wxDateSpan::Years(arg1); | |
25515 | ||
25516 | wxPyEndAllowThreads(__tstate); | |
25517 | if (PyErr_Occurred()) SWIG_fail; | |
25518 | } | |
25519 | { | |
25520 | wxDateSpan * resultptr; | |
36ed4f51 | 25521 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
25522 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
25523 | } | |
25524 | return resultobj; | |
25525 | fail: | |
25526 | return NULL; | |
25527 | } | |
25528 | ||
25529 | ||
c370783e | 25530 | static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25531 | PyObject *resultobj; |
25532 | wxDateSpan result; | |
25533 | char *kwnames[] = { | |
25534 | NULL | |
25535 | }; | |
25536 | ||
25537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
25538 | { | |
25539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25540 | result = wxDateSpan::Year(); | |
25541 | ||
25542 | wxPyEndAllowThreads(__tstate); | |
25543 | if (PyErr_Occurred()) SWIG_fail; | |
25544 | } | |
25545 | { | |
25546 | wxDateSpan * resultptr; | |
36ed4f51 | 25547 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
25548 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
25549 | } | |
25550 | return resultobj; | |
25551 | fail: | |
25552 | return NULL; | |
25553 | } | |
25554 | ||
25555 | ||
c370783e | 25556 | static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25557 | PyObject *resultobj; |
25558 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25559 | int arg2 ; | |
25560 | wxDateSpan *result; | |
25561 | PyObject * obj0 = 0 ; | |
25562 | PyObject * obj1 = 0 ; | |
25563 | char *kwnames[] = { | |
25564 | (char *) "self",(char *) "n", NULL | |
25565 | }; | |
25566 | ||
25567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25570 | { | |
25571 | arg2 = (int)(SWIG_As_int(obj1)); | |
25572 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25573 | } | |
d55e5bfc RD |
25574 | { |
25575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25576 | { | |
25577 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
25578 | result = (wxDateSpan *) &_result_ref; | |
25579 | } | |
25580 | ||
25581 | wxPyEndAllowThreads(__tstate); | |
25582 | if (PyErr_Occurred()) SWIG_fail; | |
25583 | } | |
25584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
25585 | return resultobj; | |
25586 | fail: | |
25587 | return NULL; | |
25588 | } | |
25589 | ||
25590 | ||
c370783e | 25591 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25592 | PyObject *resultobj; |
25593 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25594 | int arg2 ; | |
25595 | wxDateSpan *result; | |
25596 | PyObject * obj0 = 0 ; | |
25597 | PyObject * obj1 = 0 ; | |
25598 | char *kwnames[] = { | |
25599 | (char *) "self",(char *) "n", NULL | |
25600 | }; | |
25601 | ||
25602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25605 | { | |
25606 | arg2 = (int)(SWIG_As_int(obj1)); | |
25607 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25608 | } | |
d55e5bfc RD |
25609 | { |
25610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25611 | { | |
25612 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
25613 | result = (wxDateSpan *) &_result_ref; | |
25614 | } | |
25615 | ||
25616 | wxPyEndAllowThreads(__tstate); | |
25617 | if (PyErr_Occurred()) SWIG_fail; | |
25618 | } | |
25619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
25620 | return resultobj; | |
25621 | fail: | |
25622 | return NULL; | |
25623 | } | |
25624 | ||
25625 | ||
c370783e | 25626 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25627 | PyObject *resultobj; |
25628 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25629 | int arg2 ; | |
25630 | wxDateSpan *result; | |
25631 | PyObject * obj0 = 0 ; | |
25632 | PyObject * obj1 = 0 ; | |
25633 | char *kwnames[] = { | |
25634 | (char *) "self",(char *) "n", NULL | |
25635 | }; | |
25636 | ||
25637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25638 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25639 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25640 | { | |
25641 | arg2 = (int)(SWIG_As_int(obj1)); | |
25642 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25643 | } | |
d55e5bfc RD |
25644 | { |
25645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25646 | { | |
25647 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
25648 | result = (wxDateSpan *) &_result_ref; | |
25649 | } | |
25650 | ||
25651 | wxPyEndAllowThreads(__tstate); | |
25652 | if (PyErr_Occurred()) SWIG_fail; | |
25653 | } | |
25654 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
25655 | return resultobj; | |
25656 | fail: | |
25657 | return NULL; | |
25658 | } | |
25659 | ||
25660 | ||
c370783e | 25661 | static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25662 | PyObject *resultobj; |
25663 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25664 | int arg2 ; | |
25665 | wxDateSpan *result; | |
25666 | PyObject * obj0 = 0 ; | |
25667 | PyObject * obj1 = 0 ; | |
25668 | char *kwnames[] = { | |
25669 | (char *) "self",(char *) "n", NULL | |
25670 | }; | |
25671 | ||
25672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25675 | { | |
25676 | arg2 = (int)(SWIG_As_int(obj1)); | |
25677 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25678 | } | |
d55e5bfc RD |
25679 | { |
25680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25681 | { | |
25682 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
25683 | result = (wxDateSpan *) &_result_ref; | |
25684 | } | |
25685 | ||
25686 | wxPyEndAllowThreads(__tstate); | |
25687 | if (PyErr_Occurred()) SWIG_fail; | |
25688 | } | |
25689 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
25690 | return resultobj; | |
25691 | fail: | |
25692 | return NULL; | |
25693 | } | |
25694 | ||
25695 | ||
c370783e | 25696 | static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25697 | PyObject *resultobj; |
25698 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25699 | int result; | |
25700 | PyObject * obj0 = 0 ; | |
25701 | char *kwnames[] = { | |
25702 | (char *) "self", NULL | |
25703 | }; | |
25704 | ||
25705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25706 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25707 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25708 | { |
25709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25710 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
25711 | ||
25712 | wxPyEndAllowThreads(__tstate); | |
25713 | if (PyErr_Occurred()) SWIG_fail; | |
25714 | } | |
36ed4f51 RD |
25715 | { |
25716 | resultobj = SWIG_From_int((int)(result)); | |
25717 | } | |
d55e5bfc RD |
25718 | return resultobj; |
25719 | fail: | |
25720 | return NULL; | |
25721 | } | |
25722 | ||
25723 | ||
c370783e | 25724 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25725 | PyObject *resultobj; |
25726 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25727 | int result; | |
25728 | PyObject * obj0 = 0 ; | |
25729 | char *kwnames[] = { | |
25730 | (char *) "self", NULL | |
25731 | }; | |
25732 | ||
25733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25734 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25735 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25736 | { |
25737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25738 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
25739 | ||
25740 | wxPyEndAllowThreads(__tstate); | |
25741 | if (PyErr_Occurred()) SWIG_fail; | |
25742 | } | |
36ed4f51 RD |
25743 | { |
25744 | resultobj = SWIG_From_int((int)(result)); | |
25745 | } | |
d55e5bfc RD |
25746 | return resultobj; |
25747 | fail: | |
25748 | return NULL; | |
25749 | } | |
25750 | ||
25751 | ||
c370783e | 25752 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25753 | PyObject *resultobj; |
25754 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25755 | int result; | |
25756 | PyObject * obj0 = 0 ; | |
25757 | char *kwnames[] = { | |
25758 | (char *) "self", NULL | |
25759 | }; | |
25760 | ||
25761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25764 | { |
25765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25766 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
25767 | ||
25768 | wxPyEndAllowThreads(__tstate); | |
25769 | if (PyErr_Occurred()) SWIG_fail; | |
25770 | } | |
36ed4f51 RD |
25771 | { |
25772 | resultobj = SWIG_From_int((int)(result)); | |
25773 | } | |
d55e5bfc RD |
25774 | return resultobj; |
25775 | fail: | |
25776 | return NULL; | |
25777 | } | |
25778 | ||
25779 | ||
c370783e | 25780 | static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25781 | PyObject *resultobj; |
25782 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25783 | int result; | |
25784 | PyObject * obj0 = 0 ; | |
25785 | char *kwnames[] = { | |
25786 | (char *) "self", NULL | |
25787 | }; | |
25788 | ||
25789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25790 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25792 | { |
25793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25794 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
25795 | ||
25796 | wxPyEndAllowThreads(__tstate); | |
25797 | if (PyErr_Occurred()) SWIG_fail; | |
25798 | } | |
36ed4f51 RD |
25799 | { |
25800 | resultobj = SWIG_From_int((int)(result)); | |
25801 | } | |
d55e5bfc RD |
25802 | return resultobj; |
25803 | fail: | |
25804 | return NULL; | |
25805 | } | |
25806 | ||
25807 | ||
c370783e | 25808 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25809 | PyObject *resultobj; |
25810 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25811 | int result; | |
25812 | PyObject * obj0 = 0 ; | |
25813 | char *kwnames[] = { | |
25814 | (char *) "self", NULL | |
25815 | }; | |
25816 | ||
25817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25820 | { |
25821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25822 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
25823 | ||
25824 | wxPyEndAllowThreads(__tstate); | |
25825 | if (PyErr_Occurred()) SWIG_fail; | |
25826 | } | |
36ed4f51 RD |
25827 | { |
25828 | resultobj = SWIG_From_int((int)(result)); | |
25829 | } | |
d55e5bfc RD |
25830 | return resultobj; |
25831 | fail: | |
25832 | return NULL; | |
25833 | } | |
25834 | ||
25835 | ||
c370783e | 25836 | static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25837 | PyObject *resultobj; |
25838 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25839 | wxDateSpan *arg2 = 0 ; | |
25840 | wxDateSpan *result; | |
25841 | PyObject * obj0 = 0 ; | |
25842 | PyObject * obj1 = 0 ; | |
25843 | char *kwnames[] = { | |
25844 | (char *) "self",(char *) "other", NULL | |
25845 | }; | |
25846 | ||
25847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25850 | { | |
25851 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
25852 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25853 | if (arg2 == NULL) { | |
25854 | SWIG_null_ref("wxDateSpan"); | |
25855 | } | |
25856 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25857 | } |
25858 | { | |
25859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25860 | { | |
25861 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
25862 | result = (wxDateSpan *) &_result_ref; | |
25863 | } | |
25864 | ||
25865 | wxPyEndAllowThreads(__tstate); | |
25866 | if (PyErr_Occurred()) SWIG_fail; | |
25867 | } | |
25868 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
25869 | return resultobj; | |
25870 | fail: | |
25871 | return NULL; | |
25872 | } | |
25873 | ||
25874 | ||
c370783e | 25875 | static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25876 | PyObject *resultobj; |
25877 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25878 | wxDateSpan *arg2 = 0 ; | |
25879 | wxDateSpan *result; | |
25880 | PyObject * obj0 = 0 ; | |
25881 | PyObject * obj1 = 0 ; | |
25882 | char *kwnames[] = { | |
25883 | (char *) "self",(char *) "other", NULL | |
25884 | }; | |
25885 | ||
25886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25889 | { | |
25890 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
25891 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25892 | if (arg2 == NULL) { | |
25893 | SWIG_null_ref("wxDateSpan"); | |
25894 | } | |
25895 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25896 | } |
25897 | { | |
25898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25899 | { | |
25900 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
25901 | result = (wxDateSpan *) &_result_ref; | |
25902 | } | |
25903 | ||
25904 | wxPyEndAllowThreads(__tstate); | |
25905 | if (PyErr_Occurred()) SWIG_fail; | |
25906 | } | |
25907 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
25908 | return resultobj; | |
25909 | fail: | |
25910 | return NULL; | |
25911 | } | |
25912 | ||
25913 | ||
c370783e | 25914 | static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25915 | PyObject *resultobj; |
25916 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25917 | wxDateSpan *result; | |
25918 | PyObject * obj0 = 0 ; | |
25919 | char *kwnames[] = { | |
25920 | (char *) "self", NULL | |
25921 | }; | |
25922 | ||
25923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25926 | { |
25927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25928 | { | |
25929 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
25930 | result = (wxDateSpan *) &_result_ref; | |
25931 | } | |
25932 | ||
25933 | wxPyEndAllowThreads(__tstate); | |
25934 | if (PyErr_Occurred()) SWIG_fail; | |
25935 | } | |
25936 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
25937 | return resultobj; | |
25938 | fail: | |
25939 | return NULL; | |
25940 | } | |
25941 | ||
25942 | ||
c370783e | 25943 | static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25944 | PyObject *resultobj; |
25945 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25946 | int arg2 ; | |
25947 | wxDateSpan *result; | |
25948 | PyObject * obj0 = 0 ; | |
25949 | PyObject * obj1 = 0 ; | |
25950 | char *kwnames[] = { | |
25951 | (char *) "self",(char *) "factor", NULL | |
25952 | }; | |
25953 | ||
25954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25957 | { | |
25958 | arg2 = (int)(SWIG_As_int(obj1)); | |
25959 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25960 | } | |
d55e5bfc RD |
25961 | { |
25962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25963 | { | |
25964 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
25965 | result = (wxDateSpan *) &_result_ref; | |
25966 | } | |
25967 | ||
25968 | wxPyEndAllowThreads(__tstate); | |
25969 | if (PyErr_Occurred()) SWIG_fail; | |
25970 | } | |
25971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
25972 | return resultobj; | |
25973 | fail: | |
25974 | return NULL; | |
25975 | } | |
25976 | ||
25977 | ||
c370783e | 25978 | static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25979 | PyObject *resultobj; |
25980 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25981 | wxDateSpan *arg2 = 0 ; | |
25982 | wxDateSpan *result; | |
25983 | PyObject * obj0 = 0 ; | |
25984 | PyObject * obj1 = 0 ; | |
25985 | char *kwnames[] = { | |
25986 | (char *) "self",(char *) "other", NULL | |
25987 | }; | |
25988 | ||
25989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
25991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25992 | { | |
25993 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
25994 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25995 | if (arg2 == NULL) { | |
25996 | SWIG_null_ref("wxDateSpan"); | |
25997 | } | |
25998 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25999 | } |
26000 | { | |
26001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26002 | { | |
26003 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
26004 | result = (wxDateSpan *) &_result_ref; | |
26005 | } | |
26006 | ||
26007 | wxPyEndAllowThreads(__tstate); | |
26008 | if (PyErr_Occurred()) SWIG_fail; | |
26009 | } | |
c370783e | 26010 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
26011 | return resultobj; |
26012 | fail: | |
26013 | return NULL; | |
26014 | } | |
26015 | ||
26016 | ||
c370783e | 26017 | static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26018 | PyObject *resultobj; |
26019 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26020 | wxDateSpan *arg2 = 0 ; | |
26021 | wxDateSpan *result; | |
26022 | PyObject * obj0 = 0 ; | |
26023 | PyObject * obj1 = 0 ; | |
26024 | char *kwnames[] = { | |
26025 | (char *) "self",(char *) "other", NULL | |
26026 | }; | |
26027 | ||
26028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26029 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
26030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26031 | { | |
26032 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
26033 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26034 | if (arg2 == NULL) { | |
26035 | SWIG_null_ref("wxDateSpan"); | |
26036 | } | |
26037 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26038 | } |
26039 | { | |
26040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26041 | { | |
26042 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
26043 | result = (wxDateSpan *) &_result_ref; | |
26044 | } | |
26045 | ||
26046 | wxPyEndAllowThreads(__tstate); | |
26047 | if (PyErr_Occurred()) SWIG_fail; | |
26048 | } | |
c370783e | 26049 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
26050 | return resultobj; |
26051 | fail: | |
26052 | return NULL; | |
26053 | } | |
26054 | ||
26055 | ||
c370783e | 26056 | static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26057 | PyObject *resultobj; |
26058 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26059 | wxDateSpan *result; | |
26060 | PyObject * obj0 = 0 ; | |
26061 | char *kwnames[] = { | |
26062 | (char *) "self", NULL | |
26063 | }; | |
26064 | ||
26065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
26066 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26068 | { |
26069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26070 | { | |
26071 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
26072 | result = (wxDateSpan *) &_result_ref; | |
26073 | } | |
26074 | ||
26075 | wxPyEndAllowThreads(__tstate); | |
26076 | if (PyErr_Occurred()) SWIG_fail; | |
26077 | } | |
26078 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
26079 | return resultobj; | |
26080 | fail: | |
26081 | return NULL; | |
26082 | } | |
26083 | ||
26084 | ||
c370783e | 26085 | static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26086 | PyObject *resultobj; |
26087 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26088 | int arg2 ; | |
26089 | wxDateSpan *result; | |
26090 | PyObject * obj0 = 0 ; | |
26091 | PyObject * obj1 = 0 ; | |
26092 | char *kwnames[] = { | |
26093 | (char *) "self",(char *) "factor", NULL | |
26094 | }; | |
26095 | ||
26096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
26098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26099 | { | |
26100 | arg2 = (int)(SWIG_As_int(obj1)); | |
26101 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26102 | } | |
d55e5bfc RD |
26103 | { |
26104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26105 | { | |
26106 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
26107 | result = (wxDateSpan *) &_result_ref; | |
26108 | } | |
26109 | ||
26110 | wxPyEndAllowThreads(__tstate); | |
26111 | if (PyErr_Occurred()) SWIG_fail; | |
26112 | } | |
c370783e | 26113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
26114 | return resultobj; |
26115 | fail: | |
26116 | return NULL; | |
26117 | } | |
26118 | ||
26119 | ||
c370783e | 26120 | static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26121 | PyObject *resultobj; |
26122 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26123 | wxDateSpan *arg2 = 0 ; | |
26124 | wxDateSpan result; | |
26125 | PyObject * obj0 = 0 ; | |
26126 | PyObject * obj1 = 0 ; | |
26127 | char *kwnames[] = { | |
26128 | (char *) "self",(char *) "other", NULL | |
26129 | }; | |
26130 | ||
26131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26134 | { | |
26135 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
26136 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26137 | if (arg2 == NULL) { | |
26138 | SWIG_null_ref("wxDateSpan"); | |
26139 | } | |
26140 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26141 | } |
26142 | { | |
26143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26144 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
26145 | ||
26146 | wxPyEndAllowThreads(__tstate); | |
26147 | if (PyErr_Occurred()) SWIG_fail; | |
26148 | } | |
26149 | { | |
26150 | wxDateSpan * resultptr; | |
36ed4f51 | 26151 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
26152 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26153 | } | |
26154 | return resultobj; | |
26155 | fail: | |
26156 | return NULL; | |
26157 | } | |
26158 | ||
26159 | ||
c370783e | 26160 | static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26161 | PyObject *resultobj; |
26162 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26163 | wxDateSpan *arg2 = 0 ; | |
26164 | wxDateSpan result; | |
26165 | PyObject * obj0 = 0 ; | |
26166 | PyObject * obj1 = 0 ; | |
26167 | char *kwnames[] = { | |
26168 | (char *) "self",(char *) "other", NULL | |
26169 | }; | |
26170 | ||
26171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26174 | { | |
26175 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
26176 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26177 | if (arg2 == NULL) { | |
26178 | SWIG_null_ref("wxDateSpan"); | |
26179 | } | |
26180 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26181 | } |
26182 | { | |
26183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26184 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
26185 | ||
26186 | wxPyEndAllowThreads(__tstate); | |
26187 | if (PyErr_Occurred()) SWIG_fail; | |
26188 | } | |
26189 | { | |
26190 | wxDateSpan * resultptr; | |
36ed4f51 | 26191 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
26192 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26193 | } | |
26194 | return resultobj; | |
26195 | fail: | |
26196 | return NULL; | |
26197 | } | |
26198 | ||
26199 | ||
c370783e | 26200 | static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26201 | PyObject *resultobj; |
26202 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26203 | int arg2 ; | |
26204 | wxDateSpan result; | |
26205 | PyObject * obj0 = 0 ; | |
26206 | PyObject * obj1 = 0 ; | |
26207 | char *kwnames[] = { | |
26208 | (char *) "self",(char *) "n", NULL | |
26209 | }; | |
26210 | ||
26211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26212 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26213 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26214 | { | |
26215 | arg2 = (int)(SWIG_As_int(obj1)); | |
26216 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26217 | } | |
d55e5bfc RD |
26218 | { |
26219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26220 | result = wxDateSpan___mul__(arg1,arg2); | |
26221 | ||
26222 | wxPyEndAllowThreads(__tstate); | |
26223 | if (PyErr_Occurred()) SWIG_fail; | |
26224 | } | |
26225 | { | |
26226 | wxDateSpan * resultptr; | |
36ed4f51 | 26227 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
26228 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26229 | } | |
26230 | return resultobj; | |
26231 | fail: | |
26232 | return NULL; | |
26233 | } | |
26234 | ||
26235 | ||
c370783e | 26236 | static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26237 | PyObject *resultobj; |
26238 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26239 | int arg2 ; | |
26240 | wxDateSpan result; | |
26241 | PyObject * obj0 = 0 ; | |
26242 | PyObject * obj1 = 0 ; | |
26243 | char *kwnames[] = { | |
26244 | (char *) "self",(char *) "n", NULL | |
26245 | }; | |
26246 | ||
26247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26250 | { | |
26251 | arg2 = (int)(SWIG_As_int(obj1)); | |
26252 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26253 | } | |
d55e5bfc RD |
26254 | { |
26255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26256 | result = wxDateSpan___rmul__(arg1,arg2); | |
26257 | ||
26258 | wxPyEndAllowThreads(__tstate); | |
26259 | if (PyErr_Occurred()) SWIG_fail; | |
26260 | } | |
26261 | { | |
26262 | wxDateSpan * resultptr; | |
36ed4f51 | 26263 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
d55e5bfc RD |
26264 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
26265 | } | |
26266 | return resultobj; | |
26267 | fail: | |
26268 | return NULL; | |
26269 | } | |
26270 | ||
26271 | ||
c370783e | 26272 | static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26273 | PyObject *resultobj; |
26274 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26275 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
26276 | bool result; | |
26277 | PyObject * obj0 = 0 ; | |
26278 | PyObject * obj1 = 0 ; | |
26279 | char *kwnames[] = { | |
26280 | (char *) "self",(char *) "other", NULL | |
26281 | }; | |
26282 | ||
26283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26286 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
26287 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26288 | { |
26289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26290 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
26291 | ||
26292 | wxPyEndAllowThreads(__tstate); | |
26293 | if (PyErr_Occurred()) SWIG_fail; | |
26294 | } | |
26295 | { | |
26296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26297 | } | |
26298 | return resultobj; | |
26299 | fail: | |
26300 | return NULL; | |
26301 | } | |
26302 | ||
26303 | ||
c370783e | 26304 | static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26305 | PyObject *resultobj; |
26306 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26307 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
26308 | bool result; | |
26309 | PyObject * obj0 = 0 ; | |
26310 | PyObject * obj1 = 0 ; | |
26311 | char *kwnames[] = { | |
26312 | (char *) "self",(char *) "other", NULL | |
26313 | }; | |
26314 | ||
26315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26318 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
26319 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26320 | { |
26321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26322 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
26323 | ||
26324 | wxPyEndAllowThreads(__tstate); | |
26325 | if (PyErr_Occurred()) SWIG_fail; | |
26326 | } | |
26327 | { | |
26328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26329 | } | |
26330 | return resultobj; | |
26331 | fail: | |
26332 | return NULL; | |
26333 | } | |
26334 | ||
26335 | ||
c370783e | 26336 | static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26337 | PyObject *obj; |
26338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26339 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
26340 | Py_INCREF(obj); | |
26341 | return Py_BuildValue((char *)""); | |
26342 | } | |
c370783e | 26343 | static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26344 | PyObject *resultobj; |
26345 | long result; | |
26346 | char *kwnames[] = { | |
26347 | NULL | |
26348 | }; | |
26349 | ||
26350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
26351 | { | |
26352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26353 | result = (long)wxGetLocalTime(); | |
26354 | ||
26355 | wxPyEndAllowThreads(__tstate); | |
26356 | if (PyErr_Occurred()) SWIG_fail; | |
26357 | } | |
36ed4f51 RD |
26358 | { |
26359 | resultobj = SWIG_From_long((long)(result)); | |
26360 | } | |
d55e5bfc RD |
26361 | return resultobj; |
26362 | fail: | |
26363 | return NULL; | |
26364 | } | |
26365 | ||
26366 | ||
c370783e | 26367 | static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26368 | PyObject *resultobj; |
26369 | long result; | |
26370 | char *kwnames[] = { | |
26371 | NULL | |
26372 | }; | |
26373 | ||
26374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
26375 | { | |
26376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26377 | result = (long)wxGetUTCTime(); | |
26378 | ||
26379 | wxPyEndAllowThreads(__tstate); | |
26380 | if (PyErr_Occurred()) SWIG_fail; | |
26381 | } | |
36ed4f51 RD |
26382 | { |
26383 | resultobj = SWIG_From_long((long)(result)); | |
26384 | } | |
d55e5bfc RD |
26385 | return resultobj; |
26386 | fail: | |
26387 | return NULL; | |
26388 | } | |
26389 | ||
26390 | ||
c370783e | 26391 | static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26392 | PyObject *resultobj; |
26393 | long result; | |
26394 | char *kwnames[] = { | |
26395 | NULL | |
26396 | }; | |
26397 | ||
26398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
26399 | { | |
26400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26401 | result = (long)wxGetCurrentTime(); | |
26402 | ||
26403 | wxPyEndAllowThreads(__tstate); | |
26404 | if (PyErr_Occurred()) SWIG_fail; | |
26405 | } | |
36ed4f51 RD |
26406 | { |
26407 | resultobj = SWIG_From_long((long)(result)); | |
26408 | } | |
d55e5bfc RD |
26409 | return resultobj; |
26410 | fail: | |
26411 | return NULL; | |
26412 | } | |
26413 | ||
26414 | ||
c370783e | 26415 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26416 | PyObject *resultobj; |
26417 | wxLongLong result; | |
26418 | char *kwnames[] = { | |
26419 | NULL | |
26420 | }; | |
26421 | ||
26422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
26423 | { | |
26424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26425 | result = wxGetLocalTimeMillis(); | |
26426 | ||
26427 | wxPyEndAllowThreads(__tstate); | |
26428 | if (PyErr_Occurred()) SWIG_fail; | |
26429 | } | |
26430 | { | |
26431 | PyObject *hi, *lo, *shifter, *shifted; | |
26432 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
26433 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
26434 | shifter = PyLong_FromLong(32); | |
26435 | shifted = PyNumber_Lshift(hi, shifter); | |
26436 | resultobj = PyNumber_Or(shifted, lo); | |
26437 | Py_DECREF(hi); | |
26438 | Py_DECREF(lo); | |
26439 | Py_DECREF(shifter); | |
26440 | Py_DECREF(shifted); | |
26441 | } | |
26442 | return resultobj; | |
26443 | fail: | |
26444 | return NULL; | |
26445 | } | |
26446 | ||
26447 | ||
c370783e | 26448 | static int _wrap_DefaultDateTime_set(PyObject *) { |
d55e5bfc RD |
26449 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); |
26450 | return 1; | |
26451 | } | |
26452 | ||
26453 | ||
36ed4f51 | 26454 | static PyObject *_wrap_DefaultDateTime_get(void) { |
d55e5bfc RD |
26455 | PyObject *pyobj; |
26456 | ||
26457 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
26458 | return pyobj; | |
26459 | } | |
26460 | ||
26461 | ||
c370783e | 26462 | static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 26463 | PyObject *resultobj; |
36ed4f51 | 26464 | wxDataFormatId arg1 ; |
d55e5bfc RD |
26465 | wxDataFormat *result; |
26466 | PyObject * obj0 = 0 ; | |
26467 | char *kwnames[] = { | |
26468 | (char *) "type", NULL | |
26469 | }; | |
26470 | ||
26471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
26472 | { |
26473 | arg1 = (wxDataFormatId)(SWIG_As_int(obj0)); | |
26474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26475 | } | |
d55e5bfc RD |
26476 | { |
26477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26478 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
26479 | ||
26480 | wxPyEndAllowThreads(__tstate); | |
26481 | if (PyErr_Occurred()) SWIG_fail; | |
26482 | } | |
26483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
26484 | return resultobj; | |
26485 | fail: | |
26486 | return NULL; | |
26487 | } | |
26488 | ||
26489 | ||
c370783e | 26490 | static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26491 | PyObject *resultobj; |
26492 | wxString *arg1 = 0 ; | |
26493 | wxDataFormat *result; | |
b411df4a | 26494 | bool temp1 = false ; |
d55e5bfc RD |
26495 | PyObject * obj0 = 0 ; |
26496 | char *kwnames[] = { | |
26497 | (char *) "format", NULL | |
26498 | }; | |
26499 | ||
26500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
26501 | { | |
26502 | arg1 = wxString_in_helper(obj0); | |
26503 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 26504 | temp1 = true; |
d55e5bfc RD |
26505 | } |
26506 | { | |
26507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26508 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
26509 | ||
26510 | wxPyEndAllowThreads(__tstate); | |
26511 | if (PyErr_Occurred()) SWIG_fail; | |
26512 | } | |
26513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
26514 | { | |
26515 | if (temp1) | |
26516 | delete arg1; | |
26517 | } | |
26518 | return resultobj; | |
26519 | fail: | |
26520 | { | |
26521 | if (temp1) | |
26522 | delete arg1; | |
26523 | } | |
26524 | return NULL; | |
26525 | } | |
26526 | ||
26527 | ||
c370783e | 26528 | static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26529 | PyObject *resultobj; |
26530 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
26531 | PyObject * obj0 = 0 ; | |
26532 | char *kwnames[] = { | |
26533 | (char *) "self", NULL | |
26534 | }; | |
26535 | ||
26536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
26537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26539 | { |
26540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26541 | delete arg1; | |
26542 | ||
26543 | wxPyEndAllowThreads(__tstate); | |
26544 | if (PyErr_Occurred()) SWIG_fail; | |
26545 | } | |
26546 | Py_INCREF(Py_None); resultobj = Py_None; | |
26547 | return resultobj; | |
26548 | fail: | |
26549 | return NULL; | |
26550 | } | |
26551 | ||
26552 | ||
c370783e | 26553 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
26554 | PyObject *resultobj; |
26555 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
36ed4f51 | 26556 | wxDataFormatId arg2 ; |
d55e5bfc RD |
26557 | bool result; |
26558 | PyObject * obj0 = 0 ; | |
26559 | PyObject * obj1 = 0 ; | |
26560 | ||
26561 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26562 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26563 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26564 | { | |
26565 | arg2 = (wxDataFormatId)(SWIG_As_int(obj1)); | |
26566 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26567 | } | |
d55e5bfc RD |
26568 | { |
26569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26570 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
26571 | ||
26572 | wxPyEndAllowThreads(__tstate); | |
26573 | if (PyErr_Occurred()) SWIG_fail; | |
26574 | } | |
26575 | { | |
26576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26577 | } | |
26578 | return resultobj; | |
26579 | fail: | |
26580 | return NULL; | |
26581 | } | |
26582 | ||
26583 | ||
c370783e | 26584 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
26585 | PyObject *resultobj; |
26586 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
36ed4f51 | 26587 | wxDataFormatId arg2 ; |
d55e5bfc RD |
26588 | bool result; |
26589 | PyObject * obj0 = 0 ; | |
26590 | PyObject * obj1 = 0 ; | |
26591 | ||
26592 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26595 | { | |
26596 | arg2 = (wxDataFormatId)(SWIG_As_int(obj1)); | |
26597 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26598 | } | |
d55e5bfc RD |
26599 | { |
26600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26601 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
26602 | ||
26603 | wxPyEndAllowThreads(__tstate); | |
26604 | if (PyErr_Occurred()) SWIG_fail; | |
26605 | } | |
26606 | { | |
26607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26608 | } | |
26609 | return resultobj; | |
26610 | fail: | |
26611 | return NULL; | |
26612 | } | |
26613 | ||
26614 | ||
c370783e | 26615 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
26616 | PyObject *resultobj; |
26617 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
26618 | wxDataFormat *arg2 = 0 ; | |
26619 | bool result; | |
26620 | PyObject * obj0 = 0 ; | |
26621 | PyObject * obj1 = 0 ; | |
26622 | ||
26623 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26626 | { | |
26627 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
26628 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26629 | if (arg2 == NULL) { | |
26630 | SWIG_null_ref("wxDataFormat"); | |
26631 | } | |
26632 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26633 | } |
26634 | { | |
26635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26636 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
26637 | ||
26638 | wxPyEndAllowThreads(__tstate); | |
26639 | if (PyErr_Occurred()) SWIG_fail; | |
26640 | } | |
26641 | { | |
26642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26643 | } | |
26644 | return resultobj; | |
26645 | fail: | |
26646 | return NULL; | |
26647 | } | |
26648 | ||
26649 | ||
26650 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
26651 | int argc; | |
26652 | PyObject *argv[3]; | |
26653 | int ii; | |
26654 | ||
26655 | argc = PyObject_Length(args); | |
26656 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
26657 | argv[ii] = PyTuple_GetItem(args,ii); | |
26658 | } | |
26659 | if (argc == 2) { | |
26660 | int _v; | |
26661 | { | |
26662 | void *ptr; | |
26663 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
26664 | _v = 0; | |
26665 | PyErr_Clear(); | |
26666 | } else { | |
26667 | _v = 1; | |
26668 | } | |
26669 | } | |
26670 | if (_v) { | |
26671 | { | |
36ed4f51 | 26672 | void *ptr = 0; |
d55e5bfc RD |
26673 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
26674 | _v = 0; | |
26675 | PyErr_Clear(); | |
26676 | } else { | |
36ed4f51 | 26677 | _v = (ptr != 0); |
d55e5bfc RD |
26678 | } |
26679 | } | |
26680 | if (_v) { | |
26681 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
26682 | } | |
26683 | } | |
26684 | } | |
26685 | if (argc == 2) { | |
26686 | int _v; | |
26687 | { | |
26688 | void *ptr; | |
26689 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
26690 | _v = 0; | |
26691 | PyErr_Clear(); | |
26692 | } else { | |
26693 | _v = 1; | |
26694 | } | |
26695 | } | |
26696 | if (_v) { | |
c370783e | 26697 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
26698 | if (_v) { |
26699 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
26700 | } | |
26701 | } | |
26702 | } | |
26703 | ||
36ed4f51 RD |
26704 | Py_INCREF(Py_NotImplemented); |
26705 | return Py_NotImplemented; | |
d55e5bfc RD |
26706 | } |
26707 | ||
26708 | ||
c370783e | 26709 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
26710 | PyObject *resultobj; |
26711 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
26712 | wxDataFormat *arg2 = 0 ; | |
26713 | bool result; | |
26714 | PyObject * obj0 = 0 ; | |
26715 | PyObject * obj1 = 0 ; | |
26716 | ||
26717 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26720 | { | |
26721 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
26722 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26723 | if (arg2 == NULL) { | |
26724 | SWIG_null_ref("wxDataFormat"); | |
26725 | } | |
26726 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26727 | } |
26728 | { | |
26729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26730 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
26731 | ||
26732 | wxPyEndAllowThreads(__tstate); | |
26733 | if (PyErr_Occurred()) SWIG_fail; | |
26734 | } | |
26735 | { | |
26736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26737 | } | |
26738 | return resultobj; | |
26739 | fail: | |
26740 | return NULL; | |
26741 | } | |
26742 | ||
26743 | ||
26744 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
26745 | int argc; | |
26746 | PyObject *argv[3]; | |
26747 | int ii; | |
26748 | ||
26749 | argc = PyObject_Length(args); | |
26750 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
26751 | argv[ii] = PyTuple_GetItem(args,ii); | |
26752 | } | |
26753 | if (argc == 2) { | |
26754 | int _v; | |
26755 | { | |
26756 | void *ptr; | |
26757 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
26758 | _v = 0; | |
26759 | PyErr_Clear(); | |
26760 | } else { | |
26761 | _v = 1; | |
26762 | } | |
26763 | } | |
26764 | if (_v) { | |
26765 | { | |
36ed4f51 | 26766 | void *ptr = 0; |
d55e5bfc RD |
26767 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
26768 | _v = 0; | |
26769 | PyErr_Clear(); | |
26770 | } else { | |
36ed4f51 | 26771 | _v = (ptr != 0); |
d55e5bfc RD |
26772 | } |
26773 | } | |
26774 | if (_v) { | |
26775 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
26776 | } | |
26777 | } | |
26778 | } | |
26779 | if (argc == 2) { | |
26780 | int _v; | |
26781 | { | |
26782 | void *ptr; | |
26783 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
26784 | _v = 0; | |
26785 | PyErr_Clear(); | |
26786 | } else { | |
26787 | _v = 1; | |
26788 | } | |
26789 | } | |
26790 | if (_v) { | |
c370783e | 26791 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
26792 | if (_v) { |
26793 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
26794 | } | |
26795 | } | |
26796 | } | |
26797 | ||
36ed4f51 RD |
26798 | Py_INCREF(Py_NotImplemented); |
26799 | return Py_NotImplemented; | |
d55e5bfc RD |
26800 | } |
26801 | ||
26802 | ||
c370783e | 26803 | static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26804 | PyObject *resultobj; |
26805 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
36ed4f51 | 26806 | wxDataFormatId arg2 ; |
d55e5bfc RD |
26807 | PyObject * obj0 = 0 ; |
26808 | PyObject * obj1 = 0 ; | |
26809 | char *kwnames[] = { | |
26810 | (char *) "self",(char *) "format", NULL | |
26811 | }; | |
26812 | ||
26813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26816 | { | |
26817 | arg2 = (wxDataFormatId)(SWIG_As_int(obj1)); | |
26818 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26819 | } | |
d55e5bfc RD |
26820 | { |
26821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26822 | (arg1)->SetType((wxDataFormatId )arg2); | |
26823 | ||
26824 | wxPyEndAllowThreads(__tstate); | |
26825 | if (PyErr_Occurred()) SWIG_fail; | |
26826 | } | |
26827 | Py_INCREF(Py_None); resultobj = Py_None; | |
26828 | return resultobj; | |
26829 | fail: | |
26830 | return NULL; | |
26831 | } | |
26832 | ||
26833 | ||
c370783e | 26834 | static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26835 | PyObject *resultobj; |
26836 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
36ed4f51 | 26837 | wxDataFormatId result; |
d55e5bfc RD |
26838 | PyObject * obj0 = 0 ; |
26839 | char *kwnames[] = { | |
26840 | (char *) "self", NULL | |
26841 | }; | |
26842 | ||
26843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
26844 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26846 | { |
26847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 26848 | result = (wxDataFormatId)((wxDataFormat const *)arg1)->GetType(); |
d55e5bfc RD |
26849 | |
26850 | wxPyEndAllowThreads(__tstate); | |
26851 | if (PyErr_Occurred()) SWIG_fail; | |
26852 | } | |
36ed4f51 | 26853 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
26854 | return resultobj; |
26855 | fail: | |
26856 | return NULL; | |
26857 | } | |
26858 | ||
26859 | ||
c370783e | 26860 | static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26861 | PyObject *resultobj; |
26862 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
26863 | wxString result; | |
26864 | PyObject * obj0 = 0 ; | |
26865 | char *kwnames[] = { | |
26866 | (char *) "self", NULL | |
26867 | }; | |
26868 | ||
26869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
26870 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26871 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26872 | { |
26873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26874 | result = ((wxDataFormat const *)arg1)->GetId(); | |
26875 | ||
26876 | wxPyEndAllowThreads(__tstate); | |
26877 | if (PyErr_Occurred()) SWIG_fail; | |
26878 | } | |
26879 | { | |
26880 | #if wxUSE_UNICODE | |
26881 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26882 | #else | |
26883 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26884 | #endif | |
26885 | } | |
26886 | return resultobj; | |
26887 | fail: | |
26888 | return NULL; | |
26889 | } | |
26890 | ||
26891 | ||
c370783e | 26892 | static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26893 | PyObject *resultobj; |
26894 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
26895 | wxString *arg2 = 0 ; | |
b411df4a | 26896 | bool temp2 = false ; |
d55e5bfc RD |
26897 | PyObject * obj0 = 0 ; |
26898 | PyObject * obj1 = 0 ; | |
26899 | char *kwnames[] = { | |
26900 | (char *) "self",(char *) "format", NULL | |
26901 | }; | |
26902 | ||
26903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26906 | { |
26907 | arg2 = wxString_in_helper(obj1); | |
26908 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 26909 | temp2 = true; |
d55e5bfc RD |
26910 | } |
26911 | { | |
26912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26913 | (arg1)->SetId((wxString const &)*arg2); | |
26914 | ||
26915 | wxPyEndAllowThreads(__tstate); | |
26916 | if (PyErr_Occurred()) SWIG_fail; | |
26917 | } | |
26918 | Py_INCREF(Py_None); resultobj = Py_None; | |
26919 | { | |
26920 | if (temp2) | |
26921 | delete arg2; | |
26922 | } | |
26923 | return resultobj; | |
26924 | fail: | |
26925 | { | |
26926 | if (temp2) | |
26927 | delete arg2; | |
26928 | } | |
26929 | return NULL; | |
26930 | } | |
26931 | ||
26932 | ||
c370783e | 26933 | static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26934 | PyObject *obj; |
26935 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26936 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
26937 | Py_INCREF(obj); | |
26938 | return Py_BuildValue((char *)""); | |
26939 | } | |
c370783e | 26940 | static int _wrap_FormatInvalid_set(PyObject *) { |
d55e5bfc RD |
26941 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); |
26942 | return 1; | |
26943 | } | |
26944 | ||
26945 | ||
36ed4f51 | 26946 | static PyObject *_wrap_FormatInvalid_get(void) { |
d55e5bfc RD |
26947 | PyObject *pyobj; |
26948 | ||
26949 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
26950 | return pyobj; | |
26951 | } | |
26952 | ||
26953 | ||
c370783e | 26954 | static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26955 | PyObject *resultobj; |
26956 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
26957 | PyObject * obj0 = 0 ; | |
26958 | char *kwnames[] = { | |
26959 | (char *) "self", NULL | |
26960 | }; | |
26961 | ||
26962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
26963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
26964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26965 | { |
26966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26967 | delete arg1; | |
26968 | ||
26969 | wxPyEndAllowThreads(__tstate); | |
26970 | if (PyErr_Occurred()) SWIG_fail; | |
26971 | } | |
26972 | Py_INCREF(Py_None); resultobj = Py_None; | |
26973 | return resultobj; | |
26974 | fail: | |
26975 | return NULL; | |
26976 | } | |
26977 | ||
26978 | ||
c370783e | 26979 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26980 | PyObject *resultobj; |
26981 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
36ed4f51 RD |
26982 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
26983 | SwigValueWrapper<wxDataFormat > result; | |
d55e5bfc RD |
26984 | PyObject * obj0 = 0 ; |
26985 | PyObject * obj1 = 0 ; | |
26986 | char *kwnames[] = { | |
26987 | (char *) "self",(char *) "dir", NULL | |
26988 | }; | |
26989 | ||
26990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26991 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
26992 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 26993 | if (obj1) { |
36ed4f51 RD |
26994 | { |
26995 | arg2 = (wxDataObject::Direction)(SWIG_As_int(obj1)); | |
26996 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26997 | } | |
d55e5bfc RD |
26998 | } |
26999 | { | |
27000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27001 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
27002 | ||
27003 | wxPyEndAllowThreads(__tstate); | |
27004 | if (PyErr_Occurred()) SWIG_fail; | |
27005 | } | |
27006 | { | |
27007 | wxDataFormat * resultptr; | |
36ed4f51 | 27008 | resultptr = new wxDataFormat((wxDataFormat &)(result)); |
d55e5bfc RD |
27009 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); |
27010 | } | |
27011 | return resultobj; | |
27012 | fail: | |
27013 | return NULL; | |
27014 | } | |
27015 | ||
27016 | ||
c370783e | 27017 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27018 | PyObject *resultobj; |
27019 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
36ed4f51 | 27020 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
d55e5bfc RD |
27021 | size_t result; |
27022 | PyObject * obj0 = 0 ; | |
27023 | PyObject * obj1 = 0 ; | |
27024 | char *kwnames[] = { | |
27025 | (char *) "self",(char *) "dir", NULL | |
27026 | }; | |
27027 | ||
27028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27029 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 27031 | if (obj1) { |
36ed4f51 RD |
27032 | { |
27033 | arg2 = (wxDataObject::Direction)(SWIG_As_int(obj1)); | |
27034 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27035 | } | |
d55e5bfc RD |
27036 | } |
27037 | { | |
27038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27039 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
27040 | ||
27041 | wxPyEndAllowThreads(__tstate); | |
27042 | if (PyErr_Occurred()) SWIG_fail; | |
27043 | } | |
36ed4f51 RD |
27044 | { |
27045 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
27046 | } | |
d55e5bfc RD |
27047 | return resultobj; |
27048 | fail: | |
27049 | return NULL; | |
27050 | } | |
27051 | ||
27052 | ||
c370783e | 27053 | static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27054 | PyObject *resultobj; |
27055 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
27056 | wxDataFormat *arg2 = 0 ; | |
36ed4f51 | 27057 | wxDataObject::Direction arg3 = (wxDataObject::Direction) wxDataObject::Get ; |
d55e5bfc RD |
27058 | bool result; |
27059 | PyObject * obj0 = 0 ; | |
27060 | PyObject * obj1 = 0 ; | |
27061 | PyObject * obj2 = 0 ; | |
27062 | char *kwnames[] = { | |
27063 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
27064 | }; | |
27065 | ||
27066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
27067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27069 | { | |
27070 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27071 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27072 | if (arg2 == NULL) { | |
27073 | SWIG_null_ref("wxDataFormat"); | |
27074 | } | |
27075 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27076 | } |
27077 | if (obj2) { | |
36ed4f51 RD |
27078 | { |
27079 | arg3 = (wxDataObject::Direction)(SWIG_As_int(obj2)); | |
27080 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27081 | } | |
d55e5bfc RD |
27082 | } |
27083 | { | |
27084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27085 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
27086 | ||
27087 | wxPyEndAllowThreads(__tstate); | |
27088 | if (PyErr_Occurred()) SWIG_fail; | |
27089 | } | |
27090 | { | |
27091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27092 | } | |
27093 | return resultobj; | |
27094 | fail: | |
27095 | return NULL; | |
27096 | } | |
27097 | ||
27098 | ||
c370783e | 27099 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27100 | PyObject *resultobj; |
27101 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
27102 | wxDataFormat *arg2 = 0 ; | |
27103 | size_t result; | |
27104 | PyObject * obj0 = 0 ; | |
27105 | PyObject * obj1 = 0 ; | |
27106 | char *kwnames[] = { | |
27107 | (char *) "self",(char *) "format", NULL | |
27108 | }; | |
27109 | ||
27110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27113 | { | |
27114 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27115 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27116 | if (arg2 == NULL) { | |
27117 | SWIG_null_ref("wxDataFormat"); | |
27118 | } | |
27119 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27120 | } |
27121 | { | |
27122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27123 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
27124 | ||
27125 | wxPyEndAllowThreads(__tstate); | |
27126 | if (PyErr_Occurred()) SWIG_fail; | |
27127 | } | |
36ed4f51 RD |
27128 | { |
27129 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
27130 | } | |
d55e5bfc RD |
27131 | return resultobj; |
27132 | fail: | |
27133 | return NULL; | |
27134 | } | |
27135 | ||
27136 | ||
c370783e | 27137 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27138 | PyObject *resultobj; |
27139 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
36ed4f51 | 27140 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
68e533f8 | 27141 | PyObject *result; |
d55e5bfc RD |
27142 | PyObject * obj0 = 0 ; |
27143 | PyObject * obj1 = 0 ; | |
d55e5bfc | 27144 | char *kwnames[] = { |
68e533f8 | 27145 | (char *) "self",(char *) "dir", NULL |
d55e5bfc RD |
27146 | }; |
27147 | ||
68e533f8 | 27148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
27149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
68e533f8 | 27151 | if (obj1) { |
36ed4f51 RD |
27152 | { |
27153 | arg2 = (wxDataObject::Direction)(SWIG_As_int(obj1)); | |
27154 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27155 | } | |
d55e5bfc RD |
27156 | } |
27157 | { | |
27158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 27159 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d55e5bfc RD |
27160 | |
27161 | wxPyEndAllowThreads(__tstate); | |
27162 | if (PyErr_Occurred()) SWIG_fail; | |
27163 | } | |
68e533f8 | 27164 | resultobj = result; |
d55e5bfc RD |
27165 | return resultobj; |
27166 | fail: | |
27167 | return NULL; | |
27168 | } | |
27169 | ||
27170 | ||
c370783e | 27171 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27172 | PyObject *resultobj; |
27173 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
27174 | wxDataFormat *arg2 = 0 ; | |
68e533f8 | 27175 | PyObject *result; |
d55e5bfc RD |
27176 | PyObject * obj0 = 0 ; |
27177 | PyObject * obj1 = 0 ; | |
d55e5bfc | 27178 | char *kwnames[] = { |
68e533f8 | 27179 | (char *) "self",(char *) "format", NULL |
d55e5bfc RD |
27180 | }; |
27181 | ||
68e533f8 | 27182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
27183 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27184 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27185 | { | |
27186 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27187 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27188 | if (arg2 == NULL) { | |
27189 | SWIG_null_ref("wxDataFormat"); | |
27190 | } | |
27191 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 27192 | } |
d55e5bfc RD |
27193 | { |
27194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 27195 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d55e5bfc RD |
27196 | |
27197 | wxPyEndAllowThreads(__tstate); | |
27198 | if (PyErr_Occurred()) SWIG_fail; | |
27199 | } | |
68e533f8 | 27200 | resultobj = result; |
d55e5bfc RD |
27201 | return resultobj; |
27202 | fail: | |
27203 | return NULL; | |
27204 | } | |
27205 | ||
27206 | ||
c370783e | 27207 | static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27208 | PyObject *resultobj; |
27209 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
27210 | wxDataFormat *arg2 = 0 ; | |
68e533f8 | 27211 | PyObject *arg3 = (PyObject *) 0 ; |
d55e5bfc RD |
27212 | bool result; |
27213 | PyObject * obj0 = 0 ; | |
27214 | PyObject * obj1 = 0 ; | |
27215 | PyObject * obj2 = 0 ; | |
d55e5bfc | 27216 | char *kwnames[] = { |
68e533f8 | 27217 | (char *) "self",(char *) "format",(char *) "data", NULL |
d55e5bfc RD |
27218 | }; |
27219 | ||
68e533f8 | 27220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
27221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27223 | { | |
27224 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27225 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27226 | if (arg2 == NULL) { | |
27227 | SWIG_null_ref("wxDataFormat"); | |
27228 | } | |
27229 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 27230 | } |
68e533f8 | 27231 | arg3 = obj2; |
d55e5bfc RD |
27232 | { |
27233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 27234 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d55e5bfc RD |
27235 | |
27236 | wxPyEndAllowThreads(__tstate); | |
27237 | if (PyErr_Occurred()) SWIG_fail; | |
27238 | } | |
27239 | { | |
27240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27241 | } | |
27242 | return resultobj; | |
27243 | fail: | |
27244 | return NULL; | |
27245 | } | |
27246 | ||
27247 | ||
c370783e | 27248 | static PyObject * DataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27249 | PyObject *obj; |
27250 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27251 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
27252 | Py_INCREF(obj); | |
27253 | return Py_BuildValue((char *)""); | |
27254 | } | |
c370783e | 27255 | static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27256 | PyObject *resultobj; |
27257 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
27258 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
27259 | wxDataObjectSimple *result; | |
27260 | PyObject * obj0 = 0 ; | |
27261 | char *kwnames[] = { | |
27262 | (char *) "format", NULL | |
27263 | }; | |
27264 | ||
27265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
27266 | if (obj0) { | |
36ed4f51 RD |
27267 | { |
27268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27270 | if (arg1 == NULL) { | |
27271 | SWIG_null_ref("wxDataFormat"); | |
27272 | } | |
27273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27274 | } |
27275 | } | |
27276 | { | |
27277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27278 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
27279 | ||
27280 | wxPyEndAllowThreads(__tstate); | |
27281 | if (PyErr_Occurred()) SWIG_fail; | |
27282 | } | |
27283 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
27284 | return resultobj; | |
27285 | fail: | |
27286 | return NULL; | |
27287 | } | |
27288 | ||
27289 | ||
c370783e | 27290 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27291 | PyObject *resultobj; |
27292 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
27293 | wxDataFormat *result; | |
27294 | PyObject * obj0 = 0 ; | |
27295 | char *kwnames[] = { | |
27296 | (char *) "self", NULL | |
27297 | }; | |
27298 | ||
27299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27300 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27301 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27302 | { |
27303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27304 | { | |
27305 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
27306 | result = (wxDataFormat *) &_result_ref; | |
27307 | } | |
27308 | ||
27309 | wxPyEndAllowThreads(__tstate); | |
27310 | if (PyErr_Occurred()) SWIG_fail; | |
27311 | } | |
27312 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
27313 | return resultobj; | |
27314 | fail: | |
27315 | return NULL; | |
27316 | } | |
27317 | ||
27318 | ||
c370783e | 27319 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27320 | PyObject *resultobj; |
27321 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
27322 | wxDataFormat *arg2 = 0 ; | |
27323 | PyObject * obj0 = 0 ; | |
27324 | PyObject * obj1 = 0 ; | |
27325 | char *kwnames[] = { | |
27326 | (char *) "self",(char *) "format", NULL | |
27327 | }; | |
27328 | ||
27329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27332 | { | |
27333 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27334 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27335 | if (arg2 == NULL) { | |
27336 | SWIG_null_ref("wxDataFormat"); | |
27337 | } | |
27338 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27339 | } |
27340 | { | |
27341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27342 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
27343 | ||
27344 | wxPyEndAllowThreads(__tstate); | |
27345 | if (PyErr_Occurred()) SWIG_fail; | |
27346 | } | |
27347 | Py_INCREF(Py_None); resultobj = Py_None; | |
27348 | return resultobj; | |
27349 | fail: | |
27350 | return NULL; | |
27351 | } | |
27352 | ||
27353 | ||
c370783e | 27354 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
27355 | PyObject *resultobj; |
27356 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
27357 | size_t result; | |
27358 | PyObject * obj0 = 0 ; | |
27359 | char *kwnames[] = { | |
27360 | (char *) "self", NULL | |
27361 | }; | |
27362 | ||
27363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
68e533f8 RD |
27366 | { |
27367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27368 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
27369 | ||
27370 | wxPyEndAllowThreads(__tstate); | |
27371 | if (PyErr_Occurred()) SWIG_fail; | |
27372 | } | |
36ed4f51 RD |
27373 | { |
27374 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
27375 | } | |
68e533f8 RD |
27376 | return resultobj; |
27377 | fail: | |
27378 | return NULL; | |
27379 | } | |
27380 | ||
27381 | ||
c370783e | 27382 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
27383 | PyObject *resultobj; |
27384 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
27385 | PyObject *result; | |
27386 | PyObject * obj0 = 0 ; | |
27387 | char *kwnames[] = { | |
27388 | (char *) "self", NULL | |
27389 | }; | |
27390 | ||
27391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
68e533f8 RD |
27394 | { |
27395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27396 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
27397 | ||
27398 | wxPyEndAllowThreads(__tstate); | |
27399 | if (PyErr_Occurred()) SWIG_fail; | |
27400 | } | |
27401 | resultobj = result; | |
27402 | return resultobj; | |
27403 | fail: | |
27404 | return NULL; | |
27405 | } | |
27406 | ||
27407 | ||
c370783e | 27408 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
27409 | PyObject *resultobj; |
27410 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
27411 | PyObject *arg2 = (PyObject *) 0 ; | |
27412 | bool result; | |
27413 | PyObject * obj0 = 0 ; | |
27414 | PyObject * obj1 = 0 ; | |
27415 | char *kwnames[] = { | |
27416 | (char *) "self",(char *) "data", NULL | |
27417 | }; | |
27418 | ||
27419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27420 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27421 | if (SWIG_arg_fail(1)) SWIG_fail; | |
68e533f8 RD |
27422 | arg2 = obj1; |
27423 | { | |
27424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27425 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
27426 | ||
27427 | wxPyEndAllowThreads(__tstate); | |
27428 | if (PyErr_Occurred()) SWIG_fail; | |
27429 | } | |
27430 | { | |
27431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27432 | } | |
27433 | return resultobj; | |
27434 | fail: | |
27435 | return NULL; | |
27436 | } | |
27437 | ||
27438 | ||
c370783e | 27439 | static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27440 | PyObject *obj; |
27441 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27442 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
27443 | Py_INCREF(obj); | |
27444 | return Py_BuildValue((char *)""); | |
27445 | } | |
c370783e | 27446 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27447 | PyObject *resultobj; |
27448 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
27449 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
27450 | wxPyDataObjectSimple *result; | |
27451 | PyObject * obj0 = 0 ; | |
27452 | char *kwnames[] = { | |
27453 | (char *) "format", NULL | |
27454 | }; | |
27455 | ||
27456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
27457 | if (obj0) { | |
36ed4f51 RD |
27458 | { |
27459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27461 | if (arg1 == NULL) { | |
27462 | SWIG_null_ref("wxDataFormat"); | |
27463 | } | |
27464 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27465 | } |
27466 | } | |
27467 | { | |
27468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27469 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
27470 | ||
27471 | wxPyEndAllowThreads(__tstate); | |
27472 | if (PyErr_Occurred()) SWIG_fail; | |
27473 | } | |
27474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
27475 | return resultobj; | |
27476 | fail: | |
27477 | return NULL; | |
27478 | } | |
27479 | ||
27480 | ||
c370783e | 27481 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27482 | PyObject *resultobj; |
27483 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
27484 | PyObject *arg2 = (PyObject *) 0 ; | |
27485 | PyObject *arg3 = (PyObject *) 0 ; | |
27486 | PyObject * obj0 = 0 ; | |
27487 | PyObject * obj1 = 0 ; | |
27488 | PyObject * obj2 = 0 ; | |
27489 | char *kwnames[] = { | |
27490 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27491 | }; | |
27492 | ||
27493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
27494 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27495 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27496 | arg2 = obj1; |
27497 | arg3 = obj2; | |
27498 | { | |
27499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27500 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27501 | ||
27502 | wxPyEndAllowThreads(__tstate); | |
27503 | if (PyErr_Occurred()) SWIG_fail; | |
27504 | } | |
27505 | Py_INCREF(Py_None); resultobj = Py_None; | |
27506 | return resultobj; | |
27507 | fail: | |
27508 | return NULL; | |
27509 | } | |
27510 | ||
27511 | ||
c370783e | 27512 | static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27513 | PyObject *obj; |
27514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27515 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
27516 | Py_INCREF(obj); | |
27517 | return Py_BuildValue((char *)""); | |
27518 | } | |
c370783e | 27519 | static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27520 | PyObject *resultobj; |
27521 | wxDataObjectComposite *result; | |
27522 | char *kwnames[] = { | |
27523 | NULL | |
27524 | }; | |
27525 | ||
27526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
27527 | { | |
27528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27529 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
27530 | ||
27531 | wxPyEndAllowThreads(__tstate); | |
27532 | if (PyErr_Occurred()) SWIG_fail; | |
27533 | } | |
27534 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
27535 | return resultobj; | |
27536 | fail: | |
27537 | return NULL; | |
27538 | } | |
27539 | ||
27540 | ||
c370783e | 27541 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27542 | PyObject *resultobj; |
27543 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
27544 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
b411df4a | 27545 | bool arg3 = (bool) false ; |
d55e5bfc RD |
27546 | PyObject * obj0 = 0 ; |
27547 | PyObject * obj1 = 0 ; | |
27548 | PyObject * obj2 = 0 ; | |
27549 | char *kwnames[] = { | |
27550 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
27551 | }; | |
27552 | ||
27553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
27554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectComposite, SWIG_POINTER_EXCEPTION | 0); |
27555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27556 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
27557 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 27558 | if (obj2) { |
36ed4f51 RD |
27559 | { |
27560 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
27561 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27562 | } | |
d55e5bfc RD |
27563 | } |
27564 | { | |
27565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27566 | (arg1)->Add(arg2,arg3); | |
27567 | ||
27568 | wxPyEndAllowThreads(__tstate); | |
27569 | if (PyErr_Occurred()) SWIG_fail; | |
27570 | } | |
27571 | Py_INCREF(Py_None); resultobj = Py_None; | |
27572 | return resultobj; | |
27573 | fail: | |
27574 | return NULL; | |
27575 | } | |
27576 | ||
27577 | ||
c370783e | 27578 | static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27579 | PyObject *obj; |
27580 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27581 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
27582 | Py_INCREF(obj); | |
27583 | return Py_BuildValue((char *)""); | |
27584 | } | |
c370783e | 27585 | static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27586 | PyObject *resultobj; |
27587 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
27588 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27589 | wxTextDataObject *result; | |
b411df4a | 27590 | bool temp1 = false ; |
d55e5bfc RD |
27591 | PyObject * obj0 = 0 ; |
27592 | char *kwnames[] = { | |
27593 | (char *) "text", NULL | |
27594 | }; | |
27595 | ||
27596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
27597 | if (obj0) { | |
27598 | { | |
27599 | arg1 = wxString_in_helper(obj0); | |
27600 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 27601 | temp1 = true; |
d55e5bfc RD |
27602 | } |
27603 | } | |
27604 | { | |
27605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27606 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
27607 | ||
27608 | wxPyEndAllowThreads(__tstate); | |
27609 | if (PyErr_Occurred()) SWIG_fail; | |
27610 | } | |
27611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
27612 | { | |
27613 | if (temp1) | |
27614 | delete arg1; | |
27615 | } | |
27616 | return resultobj; | |
27617 | fail: | |
27618 | { | |
27619 | if (temp1) | |
27620 | delete arg1; | |
27621 | } | |
27622 | return NULL; | |
27623 | } | |
27624 | ||
27625 | ||
c370783e | 27626 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27627 | PyObject *resultobj; |
27628 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
27629 | size_t result; | |
27630 | PyObject * obj0 = 0 ; | |
27631 | char *kwnames[] = { | |
27632 | (char *) "self", NULL | |
27633 | }; | |
27634 | ||
27635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
27637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27638 | { |
27639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27640 | result = (size_t)(arg1)->GetTextLength(); | |
27641 | ||
27642 | wxPyEndAllowThreads(__tstate); | |
27643 | if (PyErr_Occurred()) SWIG_fail; | |
27644 | } | |
36ed4f51 RD |
27645 | { |
27646 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
27647 | } | |
d55e5bfc RD |
27648 | return resultobj; |
27649 | fail: | |
27650 | return NULL; | |
27651 | } | |
27652 | ||
27653 | ||
c370783e | 27654 | static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27655 | PyObject *resultobj; |
27656 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
27657 | wxString result; | |
27658 | PyObject * obj0 = 0 ; | |
27659 | char *kwnames[] = { | |
27660 | (char *) "self", NULL | |
27661 | }; | |
27662 | ||
27663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27664 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
27665 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27666 | { |
27667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27668 | result = (arg1)->GetText(); | |
27669 | ||
27670 | wxPyEndAllowThreads(__tstate); | |
27671 | if (PyErr_Occurred()) SWIG_fail; | |
27672 | } | |
27673 | { | |
27674 | #if wxUSE_UNICODE | |
27675 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27676 | #else | |
27677 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27678 | #endif | |
27679 | } | |
27680 | return resultobj; | |
27681 | fail: | |
27682 | return NULL; | |
27683 | } | |
27684 | ||
27685 | ||
c370783e | 27686 | static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27687 | PyObject *resultobj; |
27688 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
27689 | wxString *arg2 = 0 ; | |
b411df4a | 27690 | bool temp2 = false ; |
d55e5bfc RD |
27691 | PyObject * obj0 = 0 ; |
27692 | PyObject * obj1 = 0 ; | |
27693 | char *kwnames[] = { | |
27694 | (char *) "self",(char *) "text", NULL | |
27695 | }; | |
27696 | ||
27697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27698 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
27699 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27700 | { |
27701 | arg2 = wxString_in_helper(obj1); | |
27702 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 27703 | temp2 = true; |
d55e5bfc RD |
27704 | } |
27705 | { | |
27706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27707 | (arg1)->SetText((wxString const &)*arg2); | |
27708 | ||
27709 | wxPyEndAllowThreads(__tstate); | |
27710 | if (PyErr_Occurred()) SWIG_fail; | |
27711 | } | |
27712 | Py_INCREF(Py_None); resultobj = Py_None; | |
27713 | { | |
27714 | if (temp2) | |
27715 | delete arg2; | |
27716 | } | |
27717 | return resultobj; | |
27718 | fail: | |
27719 | { | |
27720 | if (temp2) | |
27721 | delete arg2; | |
27722 | } | |
27723 | return NULL; | |
27724 | } | |
27725 | ||
27726 | ||
c370783e | 27727 | static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27728 | PyObject *obj; |
27729 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27730 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
27731 | Py_INCREF(obj); | |
27732 | return Py_BuildValue((char *)""); | |
27733 | } | |
c370783e | 27734 | static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27735 | PyObject *resultobj; |
27736 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
27737 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27738 | wxPyTextDataObject *result; | |
b411df4a | 27739 | bool temp1 = false ; |
d55e5bfc RD |
27740 | PyObject * obj0 = 0 ; |
27741 | char *kwnames[] = { | |
27742 | (char *) "text", NULL | |
27743 | }; | |
27744 | ||
27745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
27746 | if (obj0) { | |
27747 | { | |
27748 | arg1 = wxString_in_helper(obj0); | |
27749 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 27750 | temp1 = true; |
d55e5bfc RD |
27751 | } |
27752 | } | |
27753 | { | |
27754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27755 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
27756 | ||
27757 | wxPyEndAllowThreads(__tstate); | |
27758 | if (PyErr_Occurred()) SWIG_fail; | |
27759 | } | |
27760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
27761 | { | |
27762 | if (temp1) | |
27763 | delete arg1; | |
27764 | } | |
27765 | return resultobj; | |
27766 | fail: | |
27767 | { | |
27768 | if (temp1) | |
27769 | delete arg1; | |
27770 | } | |
27771 | return NULL; | |
27772 | } | |
27773 | ||
27774 | ||
c370783e | 27775 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27776 | PyObject *resultobj; |
27777 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
27778 | PyObject *arg2 = (PyObject *) 0 ; | |
27779 | PyObject *arg3 = (PyObject *) 0 ; | |
27780 | PyObject * obj0 = 0 ; | |
27781 | PyObject * obj1 = 0 ; | |
27782 | PyObject * obj2 = 0 ; | |
27783 | char *kwnames[] = { | |
27784 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27785 | }; | |
27786 | ||
27787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
27788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
27789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27790 | arg2 = obj1; |
27791 | arg3 = obj2; | |
27792 | { | |
27793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27794 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27795 | ||
27796 | wxPyEndAllowThreads(__tstate); | |
27797 | if (PyErr_Occurred()) SWIG_fail; | |
27798 | } | |
27799 | Py_INCREF(Py_None); resultobj = Py_None; | |
27800 | return resultobj; | |
27801 | fail: | |
27802 | return NULL; | |
27803 | } | |
27804 | ||
27805 | ||
c370783e | 27806 | static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27807 | PyObject *obj; |
27808 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27809 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
27810 | Py_INCREF(obj); | |
27811 | return Py_BuildValue((char *)""); | |
27812 | } | |
c370783e | 27813 | static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27814 | PyObject *resultobj; |
27815 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
27816 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
27817 | wxBitmapDataObject *result; | |
27818 | PyObject * obj0 = 0 ; | |
27819 | char *kwnames[] = { | |
27820 | (char *) "bitmap", NULL | |
27821 | }; | |
27822 | ||
27823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
27824 | if (obj0) { | |
36ed4f51 RD |
27825 | { |
27826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
27827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27828 | if (arg1 == NULL) { | |
27829 | SWIG_null_ref("wxBitmap"); | |
27830 | } | |
27831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27832 | } |
27833 | } | |
27834 | { | |
27835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27836 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
27837 | ||
27838 | wxPyEndAllowThreads(__tstate); | |
27839 | if (PyErr_Occurred()) SWIG_fail; | |
27840 | } | |
27841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
27842 | return resultobj; | |
27843 | fail: | |
27844 | return NULL; | |
27845 | } | |
27846 | ||
27847 | ||
c370783e | 27848 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27849 | PyObject *resultobj; |
27850 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
27851 | wxBitmap result; | |
27852 | PyObject * obj0 = 0 ; | |
27853 | char *kwnames[] = { | |
27854 | (char *) "self", NULL | |
27855 | }; | |
27856 | ||
27857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
27859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27860 | { |
27861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27862 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
27863 | ||
27864 | wxPyEndAllowThreads(__tstate); | |
27865 | if (PyErr_Occurred()) SWIG_fail; | |
27866 | } | |
27867 | { | |
27868 | wxBitmap * resultptr; | |
36ed4f51 | 27869 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
27870 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
27871 | } | |
27872 | return resultobj; | |
27873 | fail: | |
27874 | return NULL; | |
27875 | } | |
27876 | ||
27877 | ||
c370783e | 27878 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27879 | PyObject *resultobj; |
27880 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
27881 | wxBitmap *arg2 = 0 ; | |
27882 | PyObject * obj0 = 0 ; | |
27883 | PyObject * obj1 = 0 ; | |
27884 | char *kwnames[] = { | |
27885 | (char *) "self",(char *) "bitmap", NULL | |
27886 | }; | |
27887 | ||
27888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
27890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27891 | { | |
27892 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
27893 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27894 | if (arg2 == NULL) { | |
27895 | SWIG_null_ref("wxBitmap"); | |
27896 | } | |
27897 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27898 | } |
27899 | { | |
27900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27901 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
27902 | ||
27903 | wxPyEndAllowThreads(__tstate); | |
27904 | if (PyErr_Occurred()) SWIG_fail; | |
27905 | } | |
27906 | Py_INCREF(Py_None); resultobj = Py_None; | |
27907 | return resultobj; | |
27908 | fail: | |
27909 | return NULL; | |
27910 | } | |
27911 | ||
27912 | ||
c370783e | 27913 | static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27914 | PyObject *obj; |
27915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27916 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
27917 | Py_INCREF(obj); | |
27918 | return Py_BuildValue((char *)""); | |
27919 | } | |
c370783e | 27920 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27921 | PyObject *resultobj; |
27922 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
27923 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
27924 | wxPyBitmapDataObject *result; | |
27925 | PyObject * obj0 = 0 ; | |
27926 | char *kwnames[] = { | |
27927 | (char *) "bitmap", NULL | |
27928 | }; | |
27929 | ||
27930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
27931 | if (obj0) { | |
36ed4f51 RD |
27932 | { |
27933 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
27934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27935 | if (arg1 == NULL) { | |
27936 | SWIG_null_ref("wxBitmap"); | |
27937 | } | |
27938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27939 | } |
27940 | } | |
27941 | { | |
27942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27943 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
27944 | ||
27945 | wxPyEndAllowThreads(__tstate); | |
27946 | if (PyErr_Occurred()) SWIG_fail; | |
27947 | } | |
27948 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
27949 | return resultobj; | |
27950 | fail: | |
27951 | return NULL; | |
27952 | } | |
27953 | ||
27954 | ||
c370783e | 27955 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27956 | PyObject *resultobj; |
27957 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
27958 | PyObject *arg2 = (PyObject *) 0 ; | |
27959 | PyObject *arg3 = (PyObject *) 0 ; | |
27960 | PyObject * obj0 = 0 ; | |
27961 | PyObject * obj1 = 0 ; | |
27962 | PyObject * obj2 = 0 ; | |
27963 | char *kwnames[] = { | |
27964 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27965 | }; | |
27966 | ||
27967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
27968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
27969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27970 | arg2 = obj1; |
27971 | arg3 = obj2; | |
27972 | { | |
27973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27974 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27975 | ||
27976 | wxPyEndAllowThreads(__tstate); | |
27977 | if (PyErr_Occurred()) SWIG_fail; | |
27978 | } | |
27979 | Py_INCREF(Py_None); resultobj = Py_None; | |
27980 | return resultobj; | |
27981 | fail: | |
27982 | return NULL; | |
27983 | } | |
27984 | ||
27985 | ||
c370783e | 27986 | static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27987 | PyObject *obj; |
27988 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27989 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
27990 | Py_INCREF(obj); | |
27991 | return Py_BuildValue((char *)""); | |
27992 | } | |
c370783e | 27993 | static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27994 | PyObject *resultobj; |
27995 | wxFileDataObject *result; | |
27996 | char *kwnames[] = { | |
27997 | NULL | |
27998 | }; | |
27999 | ||
28000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
28001 | { | |
28002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28003 | result = (wxFileDataObject *)new wxFileDataObject(); | |
28004 | ||
28005 | wxPyEndAllowThreads(__tstate); | |
28006 | if (PyErr_Occurred()) SWIG_fail; | |
28007 | } | |
28008 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
28009 | return resultobj; | |
28010 | fail: | |
28011 | return NULL; | |
28012 | } | |
28013 | ||
28014 | ||
c370783e | 28015 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28016 | PyObject *resultobj; |
28017 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
28018 | wxArrayString *result; | |
28019 | PyObject * obj0 = 0 ; | |
28020 | char *kwnames[] = { | |
28021 | (char *) "self", NULL | |
28022 | }; | |
28023 | ||
28024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28025 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0); |
28026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28027 | { |
28028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28029 | { | |
28030 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
28031 | result = (wxArrayString *) &_result_ref; | |
28032 | } | |
28033 | ||
28034 | wxPyEndAllowThreads(__tstate); | |
28035 | if (PyErr_Occurred()) SWIG_fail; | |
28036 | } | |
28037 | { | |
28038 | resultobj = wxArrayString2PyList_helper(*result); | |
28039 | } | |
28040 | return resultobj; | |
28041 | fail: | |
28042 | return NULL; | |
28043 | } | |
28044 | ||
28045 | ||
c370783e | 28046 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28047 | PyObject *resultobj; |
28048 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
28049 | wxString *arg2 = 0 ; | |
b411df4a | 28050 | bool temp2 = false ; |
d55e5bfc RD |
28051 | PyObject * obj0 = 0 ; |
28052 | PyObject * obj1 = 0 ; | |
28053 | char *kwnames[] = { | |
28054 | (char *) "self",(char *) "filename", NULL | |
28055 | }; | |
28056 | ||
28057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0); |
28059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28060 | { |
28061 | arg2 = wxString_in_helper(obj1); | |
28062 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 28063 | temp2 = true; |
d55e5bfc RD |
28064 | } |
28065 | { | |
28066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28067 | (arg1)->AddFile((wxString const &)*arg2); | |
28068 | ||
28069 | wxPyEndAllowThreads(__tstate); | |
28070 | if (PyErr_Occurred()) SWIG_fail; | |
28071 | } | |
28072 | Py_INCREF(Py_None); resultobj = Py_None; | |
28073 | { | |
28074 | if (temp2) | |
28075 | delete arg2; | |
28076 | } | |
28077 | return resultobj; | |
28078 | fail: | |
28079 | { | |
28080 | if (temp2) | |
28081 | delete arg2; | |
28082 | } | |
28083 | return NULL; | |
28084 | } | |
28085 | ||
28086 | ||
c370783e | 28087 | static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28088 | PyObject *obj; |
28089 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28090 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
28091 | Py_INCREF(obj); | |
28092 | return Py_BuildValue((char *)""); | |
28093 | } | |
fef4c27a | 28094 | static PyObject *_wrap_new_CustomDataObject__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc | 28095 | PyObject *resultobj; |
fef4c27a | 28096 | wxDataFormat *arg1 = 0 ; |
d55e5bfc RD |
28097 | wxCustomDataObject *result; |
28098 | PyObject * obj0 = 0 ; | |
d55e5bfc | 28099 | |
fef4c27a RD |
28100 | if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail; |
28101 | { | |
28102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28104 | if (arg1 == NULL) { | |
28105 | SWIG_null_ref("wxDataFormat"); | |
d55e5bfc | 28106 | } |
fef4c27a | 28107 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc RD |
28108 | } |
28109 | { | |
28110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28111 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
28112 | ||
28113 | wxPyEndAllowThreads(__tstate); | |
28114 | if (PyErr_Occurred()) SWIG_fail; | |
28115 | } | |
28116 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
28117 | return resultobj; | |
28118 | fail: | |
28119 | return NULL; | |
28120 | } | |
28121 | ||
28122 | ||
fef4c27a RD |
28123 | static PyObject *_wrap_new_CustomDataObject__SWIG_1(PyObject *, PyObject *args) { |
28124 | PyObject *resultobj; | |
28125 | wxString *arg1 = 0 ; | |
28126 | wxCustomDataObject *result; | |
28127 | bool temp1 = false ; | |
28128 | PyObject * obj0 = 0 ; | |
28129 | ||
28130 | if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail; | |
28131 | { | |
28132 | arg1 = wxString_in_helper(obj0); | |
28133 | if (arg1 == NULL) SWIG_fail; | |
28134 | temp1 = true; | |
28135 | } | |
28136 | { | |
28137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28138 | result = (wxCustomDataObject *)new_wxCustomDataObject__SWIG_1((wxString const &)*arg1); | |
28139 | ||
28140 | wxPyEndAllowThreads(__tstate); | |
28141 | if (PyErr_Occurred()) SWIG_fail; | |
28142 | } | |
28143 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
28144 | { | |
28145 | if (temp1) | |
28146 | delete arg1; | |
28147 | } | |
28148 | return resultobj; | |
28149 | fail: | |
28150 | { | |
28151 | if (temp1) | |
28152 | delete arg1; | |
28153 | } | |
28154 | return NULL; | |
28155 | } | |
28156 | ||
28157 | ||
28158 | static PyObject *_wrap_new_CustomDataObject__SWIG_2(PyObject *, PyObject *args) { | |
28159 | PyObject *resultobj; | |
28160 | wxCustomDataObject *result; | |
28161 | ||
28162 | if(!PyArg_ParseTuple(args,(char *)":new_CustomDataObject")) goto fail; | |
28163 | { | |
28164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28165 | result = (wxCustomDataObject *)new wxCustomDataObject(); | |
28166 | ||
28167 | wxPyEndAllowThreads(__tstate); | |
28168 | if (PyErr_Occurred()) SWIG_fail; | |
28169 | } | |
28170 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
28171 | return resultobj; | |
28172 | fail: | |
28173 | return NULL; | |
28174 | } | |
28175 | ||
28176 | ||
28177 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args) { | |
28178 | int argc; | |
28179 | PyObject *argv[2]; | |
28180 | int ii; | |
28181 | ||
28182 | argc = PyObject_Length(args); | |
28183 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
28184 | argv[ii] = PyTuple_GetItem(args,ii); | |
28185 | } | |
28186 | if (argc == 0) { | |
28187 | return _wrap_new_CustomDataObject__SWIG_2(self,args); | |
28188 | } | |
28189 | if (argc == 1) { | |
28190 | int _v; | |
28191 | { | |
28192 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
28193 | } | |
28194 | if (_v) { | |
28195 | return _wrap_new_CustomDataObject__SWIG_1(self,args); | |
28196 | } | |
28197 | } | |
28198 | if (argc == 1) { | |
28199 | int _v; | |
28200 | { | |
28201 | void *ptr = 0; | |
28202 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
28203 | _v = 0; | |
28204 | PyErr_Clear(); | |
28205 | } else { | |
28206 | _v = (ptr != 0); | |
28207 | } | |
28208 | } | |
28209 | if (_v) { | |
28210 | return _wrap_new_CustomDataObject__SWIG_0(self,args); | |
28211 | } | |
28212 | } | |
28213 | ||
28214 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_CustomDataObject'"); | |
28215 | return NULL; | |
28216 | } | |
28217 | ||
28218 | ||
c370783e | 28219 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28220 | PyObject *resultobj; |
28221 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
28222 | PyObject *arg2 = (PyObject *) 0 ; | |
28223 | bool result; | |
28224 | PyObject * obj0 = 0 ; | |
28225 | PyObject * obj1 = 0 ; | |
28226 | char *kwnames[] = { | |
28227 | (char *) "self",(char *) "data", NULL | |
28228 | }; | |
28229 | ||
28230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
28232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28233 | arg2 = obj1; |
28234 | { | |
28235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28236 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
28237 | ||
28238 | wxPyEndAllowThreads(__tstate); | |
28239 | if (PyErr_Occurred()) SWIG_fail; | |
28240 | } | |
28241 | { | |
28242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28243 | } | |
28244 | return resultobj; | |
28245 | fail: | |
28246 | return NULL; | |
28247 | } | |
28248 | ||
28249 | ||
c370783e | 28250 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28251 | PyObject *resultobj; |
28252 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
28253 | size_t result; | |
28254 | PyObject * obj0 = 0 ; | |
28255 | char *kwnames[] = { | |
28256 | (char *) "self", NULL | |
28257 | }; | |
28258 | ||
28259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28260 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
28261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28262 | { |
28263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28264 | result = (size_t)(arg1)->GetSize(); | |
28265 | ||
28266 | wxPyEndAllowThreads(__tstate); | |
28267 | if (PyErr_Occurred()) SWIG_fail; | |
28268 | } | |
36ed4f51 RD |
28269 | { |
28270 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
28271 | } | |
d55e5bfc RD |
28272 | return resultobj; |
28273 | fail: | |
28274 | return NULL; | |
28275 | } | |
28276 | ||
28277 | ||
c370783e | 28278 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28279 | PyObject *resultobj; |
28280 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
28281 | PyObject *result; | |
28282 | PyObject * obj0 = 0 ; | |
28283 | char *kwnames[] = { | |
28284 | (char *) "self", NULL | |
28285 | }; | |
28286 | ||
28287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
28289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28290 | { |
28291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28292 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
28293 | ||
28294 | wxPyEndAllowThreads(__tstate); | |
28295 | if (PyErr_Occurred()) SWIG_fail; | |
28296 | } | |
28297 | resultobj = result; | |
28298 | return resultobj; | |
28299 | fail: | |
28300 | return NULL; | |
28301 | } | |
28302 | ||
28303 | ||
c370783e | 28304 | static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28305 | PyObject *obj; |
28306 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28307 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
28308 | Py_INCREF(obj); | |
28309 | return Py_BuildValue((char *)""); | |
28310 | } | |
c370783e | 28311 | static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28312 | PyObject *resultobj; |
28313 | wxURLDataObject *result; | |
28314 | char *kwnames[] = { | |
28315 | NULL | |
28316 | }; | |
28317 | ||
28318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
28319 | { | |
28320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28321 | result = (wxURLDataObject *)new wxURLDataObject(); | |
28322 | ||
28323 | wxPyEndAllowThreads(__tstate); | |
28324 | if (PyErr_Occurred()) SWIG_fail; | |
28325 | } | |
28326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
28327 | return resultobj; | |
28328 | fail: | |
28329 | return NULL; | |
28330 | } | |
28331 | ||
28332 | ||
c370783e | 28333 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28334 | PyObject *resultobj; |
28335 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
28336 | wxString result; | |
28337 | PyObject * obj0 = 0 ; | |
28338 | char *kwnames[] = { | |
28339 | (char *) "self", NULL | |
28340 | }; | |
28341 | ||
28342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0); |
28344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28345 | { |
28346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28347 | result = (arg1)->GetURL(); | |
28348 | ||
28349 | wxPyEndAllowThreads(__tstate); | |
28350 | if (PyErr_Occurred()) SWIG_fail; | |
28351 | } | |
28352 | { | |
28353 | #if wxUSE_UNICODE | |
28354 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28355 | #else | |
28356 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28357 | #endif | |
28358 | } | |
28359 | return resultobj; | |
28360 | fail: | |
28361 | return NULL; | |
28362 | } | |
28363 | ||
28364 | ||
c370783e | 28365 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28366 | PyObject *resultobj; |
28367 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
28368 | wxString *arg2 = 0 ; | |
b411df4a | 28369 | bool temp2 = false ; |
d55e5bfc RD |
28370 | PyObject * obj0 = 0 ; |
28371 | PyObject * obj1 = 0 ; | |
28372 | char *kwnames[] = { | |
28373 | (char *) "self",(char *) "url", NULL | |
28374 | }; | |
28375 | ||
28376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0); |
28378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28379 | { |
28380 | arg2 = wxString_in_helper(obj1); | |
28381 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 28382 | temp2 = true; |
d55e5bfc RD |
28383 | } |
28384 | { | |
28385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28386 | (arg1)->SetURL((wxString const &)*arg2); | |
28387 | ||
28388 | wxPyEndAllowThreads(__tstate); | |
28389 | if (PyErr_Occurred()) SWIG_fail; | |
28390 | } | |
28391 | Py_INCREF(Py_None); resultobj = Py_None; | |
28392 | { | |
28393 | if (temp2) | |
28394 | delete arg2; | |
28395 | } | |
28396 | return resultobj; | |
28397 | fail: | |
28398 | { | |
28399 | if (temp2) | |
28400 | delete arg2; | |
28401 | } | |
28402 | return NULL; | |
28403 | } | |
28404 | ||
28405 | ||
c370783e | 28406 | static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28407 | PyObject *obj; |
28408 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28409 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
28410 | Py_INCREF(obj); | |
28411 | return Py_BuildValue((char *)""); | |
28412 | } | |
c370783e | 28413 | static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28414 | PyObject *resultobj; |
28415 | wxMetafileDataObject *result; | |
28416 | char *kwnames[] = { | |
28417 | NULL | |
28418 | }; | |
28419 | ||
28420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
28421 | { | |
28422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28423 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
28424 | ||
28425 | wxPyEndAllowThreads(__tstate); | |
28426 | if (PyErr_Occurred()) SWIG_fail; | |
28427 | } | |
28428 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
28429 | return resultobj; | |
28430 | fail: | |
28431 | return NULL; | |
28432 | } | |
28433 | ||
28434 | ||
c370783e | 28435 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28436 | PyObject *resultobj; |
28437 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
28438 | wxMetafile *arg2 = 0 ; | |
28439 | PyObject * obj0 = 0 ; | |
28440 | PyObject * obj1 = 0 ; | |
28441 | char *kwnames[] = { | |
28442 | (char *) "self",(char *) "metafile", NULL | |
28443 | }; | |
28444 | ||
28445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_EXCEPTION | 0); |
28447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28448 | { | |
28449 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMetafile, SWIG_POINTER_EXCEPTION | 0); | |
28450 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28451 | if (arg2 == NULL) { | |
28452 | SWIG_null_ref("wxMetafile"); | |
28453 | } | |
28454 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28455 | } |
28456 | { | |
28457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28458 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
28459 | ||
28460 | wxPyEndAllowThreads(__tstate); | |
28461 | if (PyErr_Occurred()) SWIG_fail; | |
28462 | } | |
28463 | Py_INCREF(Py_None); resultobj = Py_None; | |
28464 | return resultobj; | |
28465 | fail: | |
28466 | return NULL; | |
28467 | } | |
28468 | ||
28469 | ||
c370783e | 28470 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28471 | PyObject *resultobj; |
28472 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
28473 | wxMetafile result; | |
28474 | PyObject * obj0 = 0 ; | |
28475 | char *kwnames[] = { | |
28476 | (char *) "self", NULL | |
28477 | }; | |
28478 | ||
28479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_EXCEPTION | 0); |
28481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28482 | { |
28483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28484 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
28485 | ||
28486 | wxPyEndAllowThreads(__tstate); | |
28487 | if (PyErr_Occurred()) SWIG_fail; | |
28488 | } | |
28489 | { | |
28490 | wxMetafile * resultptr; | |
36ed4f51 | 28491 | resultptr = new wxMetafile((wxMetafile &)(result)); |
d55e5bfc RD |
28492 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); |
28493 | } | |
28494 | return resultobj; | |
28495 | fail: | |
28496 | return NULL; | |
28497 | } | |
28498 | ||
28499 | ||
c370783e | 28500 | static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28501 | PyObject *obj; |
28502 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28503 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
28504 | Py_INCREF(obj); | |
28505 | return Py_BuildValue((char *)""); | |
28506 | } | |
c370783e | 28507 | static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 28508 | PyObject *resultobj; |
36ed4f51 | 28509 | wxDragResult arg1 ; |
d55e5bfc RD |
28510 | bool result; |
28511 | PyObject * obj0 = 0 ; | |
28512 | char *kwnames[] = { | |
28513 | (char *) "res", NULL | |
28514 | }; | |
28515 | ||
28516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28517 | { |
28518 | arg1 = (wxDragResult)(SWIG_As_int(obj0)); | |
28519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28520 | } | |
d55e5bfc RD |
28521 | { |
28522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28523 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
28524 | ||
28525 | wxPyEndAllowThreads(__tstate); | |
28526 | if (PyErr_Occurred()) SWIG_fail; | |
28527 | } | |
28528 | { | |
28529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28530 | } | |
28531 | return resultobj; | |
28532 | fail: | |
28533 | return NULL; | |
28534 | } | |
28535 | ||
28536 | ||
c370783e | 28537 | static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28538 | PyObject *resultobj; |
28539 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28540 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28541 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28542 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
28543 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
28544 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
28545 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
28546 | wxPyDropSource *result; | |
28547 | PyObject * obj0 = 0 ; | |
28548 | PyObject * obj1 = 0 ; | |
28549 | PyObject * obj2 = 0 ; | |
28550 | PyObject * obj3 = 0 ; | |
28551 | char *kwnames[] = { | |
28552 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
28553 | }; | |
28554 | ||
28555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
28556 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28557 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 28558 | if (obj1) { |
36ed4f51 RD |
28559 | { |
28560 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
28561 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28562 | if (arg2 == NULL) { | |
28563 | SWIG_null_ref("wxCursor"); | |
28564 | } | |
28565 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28566 | } |
28567 | } | |
28568 | if (obj2) { | |
36ed4f51 RD |
28569 | { |
28570 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
28571 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28572 | if (arg3 == NULL) { | |
28573 | SWIG_null_ref("wxCursor"); | |
28574 | } | |
28575 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
28576 | } |
28577 | } | |
28578 | if (obj3) { | |
36ed4f51 RD |
28579 | { |
28580 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
28581 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28582 | if (arg4 == NULL) { | |
28583 | SWIG_null_ref("wxCursor"); | |
28584 | } | |
28585 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
28586 | } |
28587 | } | |
28588 | { | |
28589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28590 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
28591 | ||
28592 | wxPyEndAllowThreads(__tstate); | |
28593 | if (PyErr_Occurred()) SWIG_fail; | |
28594 | } | |
28595 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
28596 | return resultobj; | |
28597 | fail: | |
28598 | return NULL; | |
28599 | } | |
28600 | ||
28601 | ||
c370783e | 28602 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28603 | PyObject *resultobj; |
28604 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
28605 | PyObject *arg2 = (PyObject *) 0 ; | |
28606 | PyObject *arg3 = (PyObject *) 0 ; | |
28607 | int arg4 ; | |
28608 | PyObject * obj0 = 0 ; | |
28609 | PyObject * obj1 = 0 ; | |
28610 | PyObject * obj2 = 0 ; | |
28611 | PyObject * obj3 = 0 ; | |
28612 | char *kwnames[] = { | |
28613 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
28614 | }; | |
28615 | ||
28616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
28617 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28618 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28619 | arg2 = obj1; |
28620 | arg3 = obj2; | |
36ed4f51 RD |
28621 | { |
28622 | arg4 = (int)(SWIG_As_int(obj3)); | |
28623 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28624 | } | |
d55e5bfc RD |
28625 | { |
28626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28627 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
28628 | ||
28629 | wxPyEndAllowThreads(__tstate); | |
28630 | if (PyErr_Occurred()) SWIG_fail; | |
28631 | } | |
28632 | Py_INCREF(Py_None); resultobj = Py_None; | |
28633 | return resultobj; | |
28634 | fail: | |
28635 | return NULL; | |
28636 | } | |
28637 | ||
28638 | ||
c370783e | 28639 | static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28640 | PyObject *resultobj; |
28641 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
28642 | PyObject * obj0 = 0 ; | |
28643 | char *kwnames[] = { | |
28644 | (char *) "self", NULL | |
28645 | }; | |
28646 | ||
28647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28648 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28649 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28650 | { |
28651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28652 | delete arg1; | |
28653 | ||
28654 | wxPyEndAllowThreads(__tstate); | |
28655 | if (PyErr_Occurred()) SWIG_fail; | |
28656 | } | |
28657 | Py_INCREF(Py_None); resultobj = Py_None; | |
28658 | return resultobj; | |
28659 | fail: | |
28660 | return NULL; | |
28661 | } | |
28662 | ||
28663 | ||
c370783e | 28664 | static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28665 | PyObject *resultobj; |
28666 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
28667 | wxDataObject *arg2 = 0 ; | |
28668 | PyObject * obj0 = 0 ; | |
28669 | PyObject * obj1 = 0 ; | |
28670 | char *kwnames[] = { | |
28671 | (char *) "self",(char *) "data", NULL | |
28672 | }; | |
28673 | ||
28674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28675 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28676 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28677 | { | |
28678 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); | |
28679 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28680 | if (arg2 == NULL) { | |
28681 | SWIG_null_ref("wxDataObject"); | |
28682 | } | |
28683 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28684 | } |
28685 | { | |
28686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28687 | (arg1)->SetData(*arg2); | |
28688 | ||
28689 | wxPyEndAllowThreads(__tstate); | |
28690 | if (PyErr_Occurred()) SWIG_fail; | |
28691 | } | |
28692 | Py_INCREF(Py_None); resultobj = Py_None; | |
28693 | return resultobj; | |
28694 | fail: | |
28695 | return NULL; | |
28696 | } | |
28697 | ||
28698 | ||
c370783e | 28699 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28700 | PyObject *resultobj; |
28701 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
28702 | wxDataObject *result; | |
28703 | PyObject * obj0 = 0 ; | |
28704 | char *kwnames[] = { | |
28705 | (char *) "self", NULL | |
28706 | }; | |
28707 | ||
28708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28709 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28710 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28711 | { |
28712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28713 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
28714 | ||
28715 | wxPyEndAllowThreads(__tstate); | |
28716 | if (PyErr_Occurred()) SWIG_fail; | |
28717 | } | |
28718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
28719 | return resultobj; | |
28720 | fail: | |
28721 | return NULL; | |
28722 | } | |
28723 | ||
28724 | ||
c370783e | 28725 | static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28726 | PyObject *resultobj; |
28727 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
36ed4f51 | 28728 | wxDragResult arg2 ; |
d55e5bfc RD |
28729 | wxCursor *arg3 = 0 ; |
28730 | PyObject * obj0 = 0 ; | |
28731 | PyObject * obj1 = 0 ; | |
28732 | PyObject * obj2 = 0 ; | |
28733 | char *kwnames[] = { | |
28734 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
28735 | }; | |
28736 | ||
28737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
28738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28740 | { | |
28741 | arg2 = (wxDragResult)(SWIG_As_int(obj1)); | |
28742 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28743 | } | |
28744 | { | |
28745 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
28746 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28747 | if (arg3 == NULL) { | |
28748 | SWIG_null_ref("wxCursor"); | |
28749 | } | |
28750 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
28751 | } |
28752 | { | |
28753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28754 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
28755 | ||
28756 | wxPyEndAllowThreads(__tstate); | |
28757 | if (PyErr_Occurred()) SWIG_fail; | |
28758 | } | |
28759 | Py_INCREF(Py_None); resultobj = Py_None; | |
28760 | return resultobj; | |
28761 | fail: | |
28762 | return NULL; | |
28763 | } | |
28764 | ||
28765 | ||
c370783e | 28766 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28767 | PyObject *resultobj; |
28768 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
28769 | int arg2 = (int) wxDrag_CopyOnly ; | |
36ed4f51 | 28770 | wxDragResult result; |
d55e5bfc RD |
28771 | PyObject * obj0 = 0 ; |
28772 | PyObject * obj1 = 0 ; | |
28773 | char *kwnames[] = { | |
28774 | (char *) "self",(char *) "flags", NULL | |
28775 | }; | |
28776 | ||
28777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 28780 | if (obj1) { |
36ed4f51 RD |
28781 | { |
28782 | arg2 = (int)(SWIG_As_int(obj1)); | |
28783 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28784 | } | |
d55e5bfc RD |
28785 | } |
28786 | { | |
28787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 28788 | result = (wxDragResult)(arg1)->DoDragDrop(arg2); |
d55e5bfc RD |
28789 | |
28790 | wxPyEndAllowThreads(__tstate); | |
28791 | if (PyErr_Occurred()) SWIG_fail; | |
28792 | } | |
36ed4f51 | 28793 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
28794 | return resultobj; |
28795 | fail: | |
28796 | return NULL; | |
28797 | } | |
28798 | ||
28799 | ||
c370783e | 28800 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28801 | PyObject *resultobj; |
28802 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
36ed4f51 | 28803 | wxDragResult arg2 ; |
d55e5bfc RD |
28804 | bool result; |
28805 | PyObject * obj0 = 0 ; | |
28806 | PyObject * obj1 = 0 ; | |
28807 | char *kwnames[] = { | |
28808 | (char *) "self",(char *) "effect", NULL | |
28809 | }; | |
28810 | ||
28811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28812 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28813 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28814 | { | |
28815 | arg2 = (wxDragResult)(SWIG_As_int(obj1)); | |
28816 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28817 | } | |
d55e5bfc RD |
28818 | { |
28819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28820 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
28821 | ||
28822 | wxPyEndAllowThreads(__tstate); | |
28823 | if (PyErr_Occurred()) SWIG_fail; | |
28824 | } | |
28825 | { | |
28826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28827 | } | |
28828 | return resultobj; | |
28829 | fail: | |
28830 | return NULL; | |
28831 | } | |
28832 | ||
28833 | ||
c370783e | 28834 | static PyObject * DropSource_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28835 | PyObject *obj; |
28836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28837 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
28838 | Py_INCREF(obj); | |
28839 | return Py_BuildValue((char *)""); | |
28840 | } | |
c370783e | 28841 | static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28842 | PyObject *resultobj; |
28843 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
28844 | wxPyDropTarget *result; | |
28845 | PyObject * obj0 = 0 ; | |
28846 | char *kwnames[] = { | |
28847 | (char *) "dataObject", NULL | |
28848 | }; | |
28849 | ||
28850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
28851 | if (obj0) { | |
36ed4f51 RD |
28852 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
28853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28854 | } |
28855 | { | |
28856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28857 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
28858 | ||
28859 | wxPyEndAllowThreads(__tstate); | |
28860 | if (PyErr_Occurred()) SWIG_fail; | |
28861 | } | |
28862 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
28863 | return resultobj; | |
28864 | fail: | |
28865 | return NULL; | |
28866 | } | |
28867 | ||
28868 | ||
c370783e | 28869 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28870 | PyObject *resultobj; |
28871 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
28872 | PyObject *arg2 = (PyObject *) 0 ; | |
28873 | PyObject *arg3 = (PyObject *) 0 ; | |
28874 | PyObject * obj0 = 0 ; | |
28875 | PyObject * obj1 = 0 ; | |
28876 | PyObject * obj2 = 0 ; | |
28877 | char *kwnames[] = { | |
28878 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28879 | }; | |
28880 | ||
28881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
28882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
28883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28884 | arg2 = obj1; |
28885 | arg3 = obj2; | |
28886 | { | |
28887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28888 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28889 | ||
28890 | wxPyEndAllowThreads(__tstate); | |
28891 | if (PyErr_Occurred()) SWIG_fail; | |
28892 | } | |
28893 | Py_INCREF(Py_None); resultobj = Py_None; | |
28894 | return resultobj; | |
28895 | fail: | |
28896 | return NULL; | |
28897 | } | |
28898 | ||
28899 | ||
c370783e | 28900 | static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28901 | PyObject *resultobj; |
28902 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
28903 | PyObject * obj0 = 0 ; | |
28904 | char *kwnames[] = { | |
28905 | (char *) "self", NULL | |
28906 | }; | |
28907 | ||
28908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28909 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
28910 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28911 | { |
28912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28913 | delete arg1; | |
28914 | ||
28915 | wxPyEndAllowThreads(__tstate); | |
28916 | if (PyErr_Occurred()) SWIG_fail; | |
28917 | } | |
28918 | Py_INCREF(Py_None); resultobj = Py_None; | |
28919 | return resultobj; | |
28920 | fail: | |
28921 | return NULL; | |
28922 | } | |
28923 | ||
28924 | ||
c370783e | 28925 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28926 | PyObject *resultobj; |
28927 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
28928 | wxDataObject *result; | |
28929 | PyObject * obj0 = 0 ; | |
28930 | char *kwnames[] = { | |
28931 | (char *) "self", NULL | |
28932 | }; | |
28933 | ||
28934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28935 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
28936 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28937 | { |
28938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28939 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
28940 | ||
28941 | wxPyEndAllowThreads(__tstate); | |
28942 | if (PyErr_Occurred()) SWIG_fail; | |
28943 | } | |
28944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
28945 | return resultobj; | |
28946 | fail: | |
28947 | return NULL; | |
28948 | } | |
28949 | ||
28950 | ||
c370783e | 28951 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28952 | PyObject *resultobj; |
28953 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
28954 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
28955 | PyObject * obj0 = 0 ; | |
28956 | PyObject * obj1 = 0 ; | |
28957 | char *kwnames[] = { | |
28958 | (char *) "self",(char *) "dataObject", NULL | |
28959 | }; | |
28960 | ||
28961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28962 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
28963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28964 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28965 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28966 | { |
28967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28968 | (arg1)->SetDataObject(arg2); | |
28969 | ||
28970 | wxPyEndAllowThreads(__tstate); | |
28971 | if (PyErr_Occurred()) SWIG_fail; | |
28972 | } | |
28973 | Py_INCREF(Py_None); resultobj = Py_None; | |
28974 | return resultobj; | |
28975 | fail: | |
28976 | return NULL; | |
28977 | } | |
28978 | ||
28979 | ||
c370783e | 28980 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28981 | PyObject *resultobj; |
28982 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
28983 | int arg2 ; | |
28984 | int arg3 ; | |
36ed4f51 RD |
28985 | wxDragResult arg4 ; |
28986 | wxDragResult result; | |
d55e5bfc RD |
28987 | PyObject * obj0 = 0 ; |
28988 | PyObject * obj1 = 0 ; | |
28989 | PyObject * obj2 = 0 ; | |
28990 | PyObject * obj3 = 0 ; | |
28991 | char *kwnames[] = { | |
28992 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
28993 | }; | |
28994 | ||
28995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
28996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
28997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28998 | { | |
28999 | arg2 = (int)(SWIG_As_int(obj1)); | |
29000 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29001 | } | |
29002 | { | |
29003 | arg3 = (int)(SWIG_As_int(obj2)); | |
29004 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29005 | } | |
29006 | { | |
29007 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29008 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29009 | } | |
d55e5bfc RD |
29010 | { |
29011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 29012 | result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); |
d55e5bfc RD |
29013 | |
29014 | wxPyEndAllowThreads(__tstate); | |
29015 | if (PyErr_Occurred()) SWIG_fail; | |
29016 | } | |
36ed4f51 | 29017 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29018 | return resultobj; |
29019 | fail: | |
29020 | return NULL; | |
29021 | } | |
29022 | ||
29023 | ||
c370783e | 29024 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29025 | PyObject *resultobj; |
29026 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
29027 | int arg2 ; | |
29028 | int arg3 ; | |
36ed4f51 RD |
29029 | wxDragResult arg4 ; |
29030 | wxDragResult result; | |
d55e5bfc RD |
29031 | PyObject * obj0 = 0 ; |
29032 | PyObject * obj1 = 0 ; | |
29033 | PyObject * obj2 = 0 ; | |
29034 | PyObject * obj3 = 0 ; | |
29035 | char *kwnames[] = { | |
29036 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29037 | }; | |
29038 | ||
29039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
29040 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29041 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29042 | { | |
29043 | arg2 = (int)(SWIG_As_int(obj1)); | |
29044 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29045 | } | |
29046 | { | |
29047 | arg3 = (int)(SWIG_As_int(obj2)); | |
29048 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29049 | } | |
29050 | { | |
29051 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29052 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29053 | } | |
d55e5bfc RD |
29054 | { |
29055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 29056 | result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); |
d55e5bfc RD |
29057 | |
29058 | wxPyEndAllowThreads(__tstate); | |
29059 | if (PyErr_Occurred()) SWIG_fail; | |
29060 | } | |
36ed4f51 | 29061 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29062 | return resultobj; |
29063 | fail: | |
29064 | return NULL; | |
29065 | } | |
29066 | ||
29067 | ||
c370783e | 29068 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29069 | PyObject *resultobj; |
29070 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
29071 | PyObject * obj0 = 0 ; | |
29072 | char *kwnames[] = { | |
29073 | (char *) "self", NULL | |
29074 | }; | |
29075 | ||
29076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29079 | { |
29080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29081 | (arg1)->base_OnLeave(); | |
29082 | ||
29083 | wxPyEndAllowThreads(__tstate); | |
29084 | if (PyErr_Occurred()) SWIG_fail; | |
29085 | } | |
29086 | Py_INCREF(Py_None); resultobj = Py_None; | |
29087 | return resultobj; | |
29088 | fail: | |
29089 | return NULL; | |
29090 | } | |
29091 | ||
29092 | ||
c370783e | 29093 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29094 | PyObject *resultobj; |
29095 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
29096 | int arg2 ; | |
29097 | int arg3 ; | |
29098 | bool result; | |
29099 | PyObject * obj0 = 0 ; | |
29100 | PyObject * obj1 = 0 ; | |
29101 | PyObject * obj2 = 0 ; | |
29102 | char *kwnames[] = { | |
29103 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29104 | }; | |
29105 | ||
29106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
29107 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29108 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29109 | { | |
29110 | arg2 = (int)(SWIG_As_int(obj1)); | |
29111 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29112 | } | |
29113 | { | |
29114 | arg3 = (int)(SWIG_As_int(obj2)); | |
29115 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29116 | } | |
d55e5bfc RD |
29117 | { |
29118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29119 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
29120 | ||
29121 | wxPyEndAllowThreads(__tstate); | |
29122 | if (PyErr_Occurred()) SWIG_fail; | |
29123 | } | |
29124 | { | |
29125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29126 | } | |
29127 | return resultobj; | |
29128 | fail: | |
29129 | return NULL; | |
29130 | } | |
29131 | ||
29132 | ||
c370783e | 29133 | static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29134 | PyObject *resultobj; |
29135 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
29136 | bool result; | |
29137 | PyObject * obj0 = 0 ; | |
29138 | char *kwnames[] = { | |
29139 | (char *) "self", NULL | |
29140 | }; | |
29141 | ||
29142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29145 | { |
29146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29147 | result = (bool)(arg1)->GetData(); | |
29148 | ||
29149 | wxPyEndAllowThreads(__tstate); | |
29150 | if (PyErr_Occurred()) SWIG_fail; | |
29151 | } | |
29152 | { | |
29153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29154 | } | |
29155 | return resultobj; | |
29156 | fail: | |
29157 | return NULL; | |
29158 | } | |
29159 | ||
29160 | ||
c370783e | 29161 | static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29162 | PyObject *obj; |
29163 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29164 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
29165 | Py_INCREF(obj); | |
29166 | return Py_BuildValue((char *)""); | |
29167 | } | |
c370783e | 29168 | static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29169 | PyObject *resultobj; |
29170 | wxPyTextDropTarget *result; | |
29171 | char *kwnames[] = { | |
29172 | NULL | |
29173 | }; | |
29174 | ||
29175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
29176 | { | |
29177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29178 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
29179 | ||
29180 | wxPyEndAllowThreads(__tstate); | |
29181 | if (PyErr_Occurred()) SWIG_fail; | |
29182 | } | |
29183 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
29184 | return resultobj; | |
29185 | fail: | |
29186 | return NULL; | |
29187 | } | |
29188 | ||
29189 | ||
c370783e | 29190 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29191 | PyObject *resultobj; |
29192 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
29193 | PyObject *arg2 = (PyObject *) 0 ; | |
29194 | PyObject *arg3 = (PyObject *) 0 ; | |
29195 | PyObject * obj0 = 0 ; | |
29196 | PyObject * obj1 = 0 ; | |
29197 | PyObject * obj2 = 0 ; | |
29198 | char *kwnames[] = { | |
29199 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29200 | }; | |
29201 | ||
29202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
29203 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29204 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29205 | arg2 = obj1; |
29206 | arg3 = obj2; | |
29207 | { | |
29208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29209 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29210 | ||
29211 | wxPyEndAllowThreads(__tstate); | |
29212 | if (PyErr_Occurred()) SWIG_fail; | |
29213 | } | |
29214 | Py_INCREF(Py_None); resultobj = Py_None; | |
29215 | return resultobj; | |
29216 | fail: | |
29217 | return NULL; | |
29218 | } | |
29219 | ||
29220 | ||
c370783e | 29221 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29222 | PyObject *resultobj; |
29223 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
29224 | int arg2 ; | |
29225 | int arg3 ; | |
36ed4f51 RD |
29226 | wxDragResult arg4 ; |
29227 | wxDragResult result; | |
d55e5bfc RD |
29228 | PyObject * obj0 = 0 ; |
29229 | PyObject * obj1 = 0 ; | |
29230 | PyObject * obj2 = 0 ; | |
29231 | PyObject * obj3 = 0 ; | |
29232 | char *kwnames[] = { | |
29233 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29234 | }; | |
29235 | ||
29236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
29237 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29238 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29239 | { | |
29240 | arg2 = (int)(SWIG_As_int(obj1)); | |
29241 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29242 | } | |
29243 | { | |
29244 | arg3 = (int)(SWIG_As_int(obj2)); | |
29245 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29246 | } | |
29247 | { | |
29248 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29249 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29250 | } | |
d55e5bfc RD |
29251 | { |
29252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 29253 | result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); |
d55e5bfc RD |
29254 | |
29255 | wxPyEndAllowThreads(__tstate); | |
29256 | if (PyErr_Occurred()) SWIG_fail; | |
29257 | } | |
36ed4f51 | 29258 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29259 | return resultobj; |
29260 | fail: | |
29261 | return NULL; | |
29262 | } | |
29263 | ||
29264 | ||
c370783e | 29265 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29266 | PyObject *resultobj; |
29267 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
29268 | int arg2 ; | |
29269 | int arg3 ; | |
36ed4f51 RD |
29270 | wxDragResult arg4 ; |
29271 | wxDragResult result; | |
d55e5bfc RD |
29272 | PyObject * obj0 = 0 ; |
29273 | PyObject * obj1 = 0 ; | |
29274 | PyObject * obj2 = 0 ; | |
29275 | PyObject * obj3 = 0 ; | |
29276 | char *kwnames[] = { | |
29277 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29278 | }; | |
29279 | ||
29280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
29281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29283 | { | |
29284 | arg2 = (int)(SWIG_As_int(obj1)); | |
29285 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29286 | } | |
29287 | { | |
29288 | arg3 = (int)(SWIG_As_int(obj2)); | |
29289 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29290 | } | |
29291 | { | |
29292 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29293 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29294 | } | |
d55e5bfc RD |
29295 | { |
29296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 29297 | result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); |
d55e5bfc RD |
29298 | |
29299 | wxPyEndAllowThreads(__tstate); | |
29300 | if (PyErr_Occurred()) SWIG_fail; | |
29301 | } | |
36ed4f51 | 29302 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29303 | return resultobj; |
29304 | fail: | |
29305 | return NULL; | |
29306 | } | |
29307 | ||
29308 | ||
c370783e | 29309 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29310 | PyObject *resultobj; |
29311 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
29312 | PyObject * obj0 = 0 ; | |
29313 | char *kwnames[] = { | |
29314 | (char *) "self", NULL | |
29315 | }; | |
29316 | ||
29317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29320 | { |
29321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29322 | (arg1)->base_OnLeave(); | |
29323 | ||
29324 | wxPyEndAllowThreads(__tstate); | |
29325 | if (PyErr_Occurred()) SWIG_fail; | |
29326 | } | |
29327 | Py_INCREF(Py_None); resultobj = Py_None; | |
29328 | return resultobj; | |
29329 | fail: | |
29330 | return NULL; | |
29331 | } | |
29332 | ||
29333 | ||
c370783e | 29334 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29335 | PyObject *resultobj; |
29336 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
29337 | int arg2 ; | |
29338 | int arg3 ; | |
29339 | bool result; | |
29340 | PyObject * obj0 = 0 ; | |
29341 | PyObject * obj1 = 0 ; | |
29342 | PyObject * obj2 = 0 ; | |
29343 | char *kwnames[] = { | |
29344 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29345 | }; | |
29346 | ||
29347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
29348 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29349 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29350 | { | |
29351 | arg2 = (int)(SWIG_As_int(obj1)); | |
29352 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29353 | } | |
29354 | { | |
29355 | arg3 = (int)(SWIG_As_int(obj2)); | |
29356 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29357 | } | |
d55e5bfc RD |
29358 | { |
29359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29360 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
29361 | ||
29362 | wxPyEndAllowThreads(__tstate); | |
29363 | if (PyErr_Occurred()) SWIG_fail; | |
29364 | } | |
29365 | { | |
29366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29367 | } | |
29368 | return resultobj; | |
29369 | fail: | |
29370 | return NULL; | |
29371 | } | |
29372 | ||
29373 | ||
c370783e | 29374 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29375 | PyObject *resultobj; |
29376 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
29377 | int arg2 ; | |
29378 | int arg3 ; | |
36ed4f51 RD |
29379 | wxDragResult arg4 ; |
29380 | wxDragResult result; | |
d55e5bfc RD |
29381 | PyObject * obj0 = 0 ; |
29382 | PyObject * obj1 = 0 ; | |
29383 | PyObject * obj2 = 0 ; | |
29384 | PyObject * obj3 = 0 ; | |
29385 | char *kwnames[] = { | |
29386 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29387 | }; | |
29388 | ||
29389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
29390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29392 | { | |
29393 | arg2 = (int)(SWIG_As_int(obj1)); | |
29394 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29395 | } | |
29396 | { | |
29397 | arg3 = (int)(SWIG_As_int(obj2)); | |
29398 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29399 | } | |
29400 | { | |
29401 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29402 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29403 | } | |
d55e5bfc RD |
29404 | { |
29405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 29406 | result = (wxDragResult)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); |
d55e5bfc RD |
29407 | |
29408 | wxPyEndAllowThreads(__tstate); | |
29409 | if (PyErr_Occurred()) SWIG_fail; | |
29410 | } | |
36ed4f51 | 29411 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29412 | return resultobj; |
29413 | fail: | |
29414 | return NULL; | |
29415 | } | |
29416 | ||
29417 | ||
c370783e | 29418 | static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29419 | PyObject *obj; |
29420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29421 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
29422 | Py_INCREF(obj); | |
29423 | return Py_BuildValue((char *)""); | |
29424 | } | |
c370783e | 29425 | static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29426 | PyObject *resultobj; |
29427 | wxPyFileDropTarget *result; | |
29428 | char *kwnames[] = { | |
29429 | NULL | |
29430 | }; | |
29431 | ||
29432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
29433 | { | |
29434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29435 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
29436 | ||
29437 | wxPyEndAllowThreads(__tstate); | |
29438 | if (PyErr_Occurred()) SWIG_fail; | |
29439 | } | |
29440 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
29441 | return resultobj; | |
29442 | fail: | |
29443 | return NULL; | |
29444 | } | |
29445 | ||
29446 | ||
c370783e | 29447 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29448 | PyObject *resultobj; |
29449 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
29450 | PyObject *arg2 = (PyObject *) 0 ; | |
29451 | PyObject *arg3 = (PyObject *) 0 ; | |
29452 | PyObject * obj0 = 0 ; | |
29453 | PyObject * obj1 = 0 ; | |
29454 | PyObject * obj2 = 0 ; | |
29455 | char *kwnames[] = { | |
29456 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29457 | }; | |
29458 | ||
29459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
29460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29462 | arg2 = obj1; |
29463 | arg3 = obj2; | |
29464 | { | |
29465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29466 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29467 | ||
29468 | wxPyEndAllowThreads(__tstate); | |
29469 | if (PyErr_Occurred()) SWIG_fail; | |
29470 | } | |
29471 | Py_INCREF(Py_None); resultobj = Py_None; | |
29472 | return resultobj; | |
29473 | fail: | |
29474 | return NULL; | |
29475 | } | |
29476 | ||
29477 | ||
c370783e | 29478 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29479 | PyObject *resultobj; |
29480 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
29481 | int arg2 ; | |
29482 | int arg3 ; | |
36ed4f51 RD |
29483 | wxDragResult arg4 ; |
29484 | wxDragResult result; | |
d55e5bfc RD |
29485 | PyObject * obj0 = 0 ; |
29486 | PyObject * obj1 = 0 ; | |
29487 | PyObject * obj2 = 0 ; | |
29488 | PyObject * obj3 = 0 ; | |
29489 | char *kwnames[] = { | |
29490 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29491 | }; | |
29492 | ||
29493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
29494 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29495 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29496 | { | |
29497 | arg2 = (int)(SWIG_As_int(obj1)); | |
29498 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29499 | } | |
29500 | { | |
29501 | arg3 = (int)(SWIG_As_int(obj2)); | |
29502 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29503 | } | |
29504 | { | |
29505 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29506 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29507 | } | |
d55e5bfc RD |
29508 | { |
29509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 29510 | result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); |
d55e5bfc RD |
29511 | |
29512 | wxPyEndAllowThreads(__tstate); | |
29513 | if (PyErr_Occurred()) SWIG_fail; | |
29514 | } | |
36ed4f51 | 29515 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29516 | return resultobj; |
29517 | fail: | |
29518 | return NULL; | |
29519 | } | |
29520 | ||
29521 | ||
c370783e | 29522 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29523 | PyObject *resultobj; |
29524 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
29525 | int arg2 ; | |
29526 | int arg3 ; | |
36ed4f51 RD |
29527 | wxDragResult arg4 ; |
29528 | wxDragResult result; | |
d55e5bfc RD |
29529 | PyObject * obj0 = 0 ; |
29530 | PyObject * obj1 = 0 ; | |
29531 | PyObject * obj2 = 0 ; | |
29532 | PyObject * obj3 = 0 ; | |
29533 | char *kwnames[] = { | |
29534 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29535 | }; | |
29536 | ||
29537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
29538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29540 | { | |
29541 | arg2 = (int)(SWIG_As_int(obj1)); | |
29542 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29543 | } | |
29544 | { | |
29545 | arg3 = (int)(SWIG_As_int(obj2)); | |
29546 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29547 | } | |
29548 | { | |
29549 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29550 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29551 | } | |
d55e5bfc RD |
29552 | { |
29553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 29554 | result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); |
d55e5bfc RD |
29555 | |
29556 | wxPyEndAllowThreads(__tstate); | |
29557 | if (PyErr_Occurred()) SWIG_fail; | |
29558 | } | |
36ed4f51 | 29559 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29560 | return resultobj; |
29561 | fail: | |
29562 | return NULL; | |
29563 | } | |
29564 | ||
29565 | ||
c370783e | 29566 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29567 | PyObject *resultobj; |
29568 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
29569 | PyObject * obj0 = 0 ; | |
29570 | char *kwnames[] = { | |
29571 | (char *) "self", NULL | |
29572 | }; | |
29573 | ||
29574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29575 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29576 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29577 | { |
29578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29579 | (arg1)->base_OnLeave(); | |
29580 | ||
29581 | wxPyEndAllowThreads(__tstate); | |
29582 | if (PyErr_Occurred()) SWIG_fail; | |
29583 | } | |
29584 | Py_INCREF(Py_None); resultobj = Py_None; | |
29585 | return resultobj; | |
29586 | fail: | |
29587 | return NULL; | |
29588 | } | |
29589 | ||
29590 | ||
c370783e | 29591 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29592 | PyObject *resultobj; |
29593 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
29594 | int arg2 ; | |
29595 | int arg3 ; | |
29596 | bool result; | |
29597 | PyObject * obj0 = 0 ; | |
29598 | PyObject * obj1 = 0 ; | |
29599 | PyObject * obj2 = 0 ; | |
29600 | char *kwnames[] = { | |
29601 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29602 | }; | |
29603 | ||
29604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
29605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29607 | { | |
29608 | arg2 = (int)(SWIG_As_int(obj1)); | |
29609 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29610 | } | |
29611 | { | |
29612 | arg3 = (int)(SWIG_As_int(obj2)); | |
29613 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29614 | } | |
d55e5bfc RD |
29615 | { |
29616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29617 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
29618 | ||
29619 | wxPyEndAllowThreads(__tstate); | |
29620 | if (PyErr_Occurred()) SWIG_fail; | |
29621 | } | |
29622 | { | |
29623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29624 | } | |
29625 | return resultobj; | |
29626 | fail: | |
29627 | return NULL; | |
29628 | } | |
29629 | ||
29630 | ||
c370783e | 29631 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29632 | PyObject *resultobj; |
29633 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
29634 | int arg2 ; | |
29635 | int arg3 ; | |
36ed4f51 RD |
29636 | wxDragResult arg4 ; |
29637 | wxDragResult result; | |
d55e5bfc RD |
29638 | PyObject * obj0 = 0 ; |
29639 | PyObject * obj1 = 0 ; | |
29640 | PyObject * obj2 = 0 ; | |
29641 | PyObject * obj3 = 0 ; | |
29642 | char *kwnames[] = { | |
29643 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29644 | }; | |
29645 | ||
29646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
29647 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29649 | { | |
29650 | arg2 = (int)(SWIG_As_int(obj1)); | |
29651 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29652 | } | |
29653 | { | |
29654 | arg3 = (int)(SWIG_As_int(obj2)); | |
29655 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29656 | } | |
29657 | { | |
29658 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29659 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29660 | } | |
d55e5bfc RD |
29661 | { |
29662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 29663 | result = (wxDragResult)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); |
d55e5bfc RD |
29664 | |
29665 | wxPyEndAllowThreads(__tstate); | |
29666 | if (PyErr_Occurred()) SWIG_fail; | |
29667 | } | |
36ed4f51 | 29668 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29669 | return resultobj; |
29670 | fail: | |
29671 | return NULL; | |
29672 | } | |
29673 | ||
29674 | ||
c370783e | 29675 | static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29676 | PyObject *obj; |
29677 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29678 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
29679 | Py_INCREF(obj); | |
29680 | return Py_BuildValue((char *)""); | |
29681 | } | |
c370783e | 29682 | static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29683 | PyObject *resultobj; |
29684 | wxClipboard *result; | |
29685 | char *kwnames[] = { | |
29686 | NULL | |
29687 | }; | |
29688 | ||
29689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
29690 | { | |
29691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29692 | result = (wxClipboard *)new wxClipboard(); | |
29693 | ||
29694 | wxPyEndAllowThreads(__tstate); | |
29695 | if (PyErr_Occurred()) SWIG_fail; | |
29696 | } | |
29697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
29698 | return resultobj; | |
29699 | fail: | |
29700 | return NULL; | |
29701 | } | |
29702 | ||
29703 | ||
c370783e | 29704 | static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29705 | PyObject *resultobj; |
29706 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29707 | PyObject * obj0 = 0 ; | |
29708 | char *kwnames[] = { | |
29709 | (char *) "self", NULL | |
29710 | }; | |
29711 | ||
29712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29715 | { |
29716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29717 | delete arg1; | |
29718 | ||
29719 | wxPyEndAllowThreads(__tstate); | |
29720 | if (PyErr_Occurred()) SWIG_fail; | |
29721 | } | |
29722 | Py_INCREF(Py_None); resultobj = Py_None; | |
29723 | return resultobj; | |
29724 | fail: | |
29725 | return NULL; | |
29726 | } | |
29727 | ||
29728 | ||
c370783e | 29729 | static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29730 | PyObject *resultobj; |
29731 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29732 | bool result; | |
29733 | PyObject * obj0 = 0 ; | |
29734 | char *kwnames[] = { | |
29735 | (char *) "self", NULL | |
29736 | }; | |
29737 | ||
29738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29741 | { |
29742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29743 | result = (bool)(arg1)->Open(); | |
29744 | ||
29745 | wxPyEndAllowThreads(__tstate); | |
29746 | if (PyErr_Occurred()) SWIG_fail; | |
29747 | } | |
29748 | { | |
29749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29750 | } | |
29751 | return resultobj; | |
29752 | fail: | |
29753 | return NULL; | |
29754 | } | |
29755 | ||
29756 | ||
c370783e | 29757 | static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29758 | PyObject *resultobj; |
29759 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29760 | PyObject * obj0 = 0 ; | |
29761 | char *kwnames[] = { | |
29762 | (char *) "self", NULL | |
29763 | }; | |
29764 | ||
29765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29768 | { |
29769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29770 | (arg1)->Close(); | |
29771 | ||
29772 | wxPyEndAllowThreads(__tstate); | |
29773 | if (PyErr_Occurred()) SWIG_fail; | |
29774 | } | |
29775 | Py_INCREF(Py_None); resultobj = Py_None; | |
29776 | return resultobj; | |
29777 | fail: | |
29778 | return NULL; | |
29779 | } | |
29780 | ||
29781 | ||
c370783e | 29782 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29783 | PyObject *resultobj; |
29784 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29785 | bool result; | |
29786 | PyObject * obj0 = 0 ; | |
29787 | char *kwnames[] = { | |
29788 | (char *) "self", NULL | |
29789 | }; | |
29790 | ||
29791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29794 | { |
29795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29796 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
29797 | ||
29798 | wxPyEndAllowThreads(__tstate); | |
29799 | if (PyErr_Occurred()) SWIG_fail; | |
29800 | } | |
29801 | { | |
29802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29803 | } | |
29804 | return resultobj; | |
29805 | fail: | |
29806 | return NULL; | |
29807 | } | |
29808 | ||
29809 | ||
c370783e | 29810 | static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29811 | PyObject *resultobj; |
29812 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29813 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
29814 | bool result; | |
29815 | PyObject * obj0 = 0 ; | |
29816 | PyObject * obj1 = 0 ; | |
29817 | char *kwnames[] = { | |
29818 | (char *) "self",(char *) "data", NULL | |
29819 | }; | |
29820 | ||
29821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29822 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29823 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29824 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
29825 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29826 | { |
29827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29828 | result = (bool)(arg1)->AddData(arg2); | |
29829 | ||
29830 | wxPyEndAllowThreads(__tstate); | |
29831 | if (PyErr_Occurred()) SWIG_fail; | |
29832 | } | |
29833 | { | |
29834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29835 | } | |
29836 | return resultobj; | |
29837 | fail: | |
29838 | return NULL; | |
29839 | } | |
29840 | ||
29841 | ||
c370783e | 29842 | static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29843 | PyObject *resultobj; |
29844 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29845 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
29846 | bool result; | |
29847 | PyObject * obj0 = 0 ; | |
29848 | PyObject * obj1 = 0 ; | |
29849 | char *kwnames[] = { | |
29850 | (char *) "self",(char *) "data", NULL | |
29851 | }; | |
29852 | ||
29853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29856 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
29857 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29858 | { |
29859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29860 | result = (bool)(arg1)->SetData(arg2); | |
29861 | ||
29862 | wxPyEndAllowThreads(__tstate); | |
29863 | if (PyErr_Occurred()) SWIG_fail; | |
29864 | } | |
29865 | { | |
29866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29867 | } | |
29868 | return resultobj; | |
29869 | fail: | |
29870 | return NULL; | |
29871 | } | |
29872 | ||
29873 | ||
c370783e | 29874 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29875 | PyObject *resultobj; |
29876 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29877 | wxDataFormat *arg2 = 0 ; | |
29878 | bool result; | |
29879 | PyObject * obj0 = 0 ; | |
29880 | PyObject * obj1 = 0 ; | |
29881 | char *kwnames[] = { | |
29882 | (char *) "self",(char *) "format", NULL | |
29883 | }; | |
29884 | ||
29885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29886 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29887 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29888 | { | |
29889 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
29890 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29891 | if (arg2 == NULL) { | |
29892 | SWIG_null_ref("wxDataFormat"); | |
29893 | } | |
29894 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29895 | } |
29896 | { | |
29897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29898 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
29899 | ||
29900 | wxPyEndAllowThreads(__tstate); | |
29901 | if (PyErr_Occurred()) SWIG_fail; | |
29902 | } | |
29903 | { | |
29904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29905 | } | |
29906 | return resultobj; | |
29907 | fail: | |
29908 | return NULL; | |
29909 | } | |
29910 | ||
29911 | ||
c370783e | 29912 | static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29913 | PyObject *resultobj; |
29914 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29915 | wxDataObject *arg2 = 0 ; | |
29916 | bool result; | |
29917 | PyObject * obj0 = 0 ; | |
29918 | PyObject * obj1 = 0 ; | |
29919 | char *kwnames[] = { | |
29920 | (char *) "self",(char *) "data", NULL | |
29921 | }; | |
29922 | ||
29923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29926 | { | |
29927 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); | |
29928 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29929 | if (arg2 == NULL) { | |
29930 | SWIG_null_ref("wxDataObject"); | |
29931 | } | |
29932 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29933 | } |
29934 | { | |
29935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29936 | result = (bool)(arg1)->GetData(*arg2); | |
29937 | ||
29938 | wxPyEndAllowThreads(__tstate); | |
29939 | if (PyErr_Occurred()) SWIG_fail; | |
29940 | } | |
29941 | { | |
29942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29943 | } | |
29944 | return resultobj; | |
29945 | fail: | |
29946 | return NULL; | |
29947 | } | |
29948 | ||
29949 | ||
c370783e | 29950 | static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29951 | PyObject *resultobj; |
29952 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29953 | PyObject * obj0 = 0 ; | |
29954 | char *kwnames[] = { | |
29955 | (char *) "self", NULL | |
29956 | }; | |
29957 | ||
29958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29959 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29960 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29961 | { |
29962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29963 | (arg1)->Clear(); | |
29964 | ||
29965 | wxPyEndAllowThreads(__tstate); | |
29966 | if (PyErr_Occurred()) SWIG_fail; | |
29967 | } | |
29968 | Py_INCREF(Py_None); resultobj = Py_None; | |
29969 | return resultobj; | |
29970 | fail: | |
29971 | return NULL; | |
29972 | } | |
29973 | ||
29974 | ||
c370783e | 29975 | static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29976 | PyObject *resultobj; |
29977 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29978 | bool result; | |
29979 | PyObject * obj0 = 0 ; | |
29980 | char *kwnames[] = { | |
29981 | (char *) "self", NULL | |
29982 | }; | |
29983 | ||
29984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29987 | { |
29988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29989 | result = (bool)(arg1)->Flush(); | |
29990 | ||
29991 | wxPyEndAllowThreads(__tstate); | |
29992 | if (PyErr_Occurred()) SWIG_fail; | |
29993 | } | |
29994 | { | |
29995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29996 | } | |
29997 | return resultobj; | |
29998 | fail: | |
29999 | return NULL; | |
30000 | } | |
30001 | ||
30002 | ||
c370783e | 30003 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30004 | PyObject *resultobj; |
30005 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
b411df4a | 30006 | bool arg2 = (bool) true ; |
d55e5bfc RD |
30007 | PyObject * obj0 = 0 ; |
30008 | PyObject * obj1 = 0 ; | |
30009 | char *kwnames[] = { | |
30010 | (char *) "self",(char *) "primary", NULL | |
30011 | }; | |
30012 | ||
30013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
30015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 30016 | if (obj1) { |
36ed4f51 RD |
30017 | { |
30018 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
30019 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30020 | } | |
d55e5bfc RD |
30021 | } |
30022 | { | |
30023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30024 | (arg1)->UsePrimarySelection(arg2); | |
30025 | ||
30026 | wxPyEndAllowThreads(__tstate); | |
30027 | if (PyErr_Occurred()) SWIG_fail; | |
30028 | } | |
30029 | Py_INCREF(Py_None); resultobj = Py_None; | |
30030 | return resultobj; | |
30031 | fail: | |
30032 | return NULL; | |
30033 | } | |
30034 | ||
30035 | ||
c370783e | 30036 | static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
30037 | PyObject *resultobj; |
30038 | wxClipboard *result; | |
30039 | char *kwnames[] = { | |
30040 | NULL | |
30041 | }; | |
30042 | ||
30043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
30044 | { | |
30045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30046 | result = (wxClipboard *)wxClipboard::Get(); | |
30047 | ||
30048 | wxPyEndAllowThreads(__tstate); | |
30049 | if (PyErr_Occurred()) SWIG_fail; | |
30050 | } | |
30051 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
30052 | return resultobj; | |
30053 | fail: | |
30054 | return NULL; | |
30055 | } | |
30056 | ||
30057 | ||
c370783e | 30058 | static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30059 | PyObject *obj; |
30060 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30061 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
30062 | Py_INCREF(obj); | |
30063 | return Py_BuildValue((char *)""); | |
30064 | } | |
c370783e | 30065 | static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30066 | PyObject *resultobj; |
30067 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
30068 | wxClipboardLocker *result; | |
30069 | PyObject * obj0 = 0 ; | |
30070 | char *kwnames[] = { | |
30071 | (char *) "clipboard", NULL | |
30072 | }; | |
30073 | ||
30074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
30075 | if (obj0) { | |
36ed4f51 RD |
30076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
30077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30078 | } |
30079 | { | |
30080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30081 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
30082 | ||
30083 | wxPyEndAllowThreads(__tstate); | |
30084 | if (PyErr_Occurred()) SWIG_fail; | |
30085 | } | |
30086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
30087 | return resultobj; | |
30088 | fail: | |
30089 | return NULL; | |
30090 | } | |
30091 | ||
30092 | ||
c370783e | 30093 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30094 | PyObject *resultobj; |
30095 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
30096 | PyObject * obj0 = 0 ; | |
30097 | char *kwnames[] = { | |
30098 | (char *) "self", NULL | |
30099 | }; | |
30100 | ||
30101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0); |
30103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30104 | { |
30105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30106 | delete arg1; | |
30107 | ||
30108 | wxPyEndAllowThreads(__tstate); | |
30109 | if (PyErr_Occurred()) SWIG_fail; | |
30110 | } | |
30111 | Py_INCREF(Py_None); resultobj = Py_None; | |
30112 | return resultobj; | |
30113 | fail: | |
30114 | return NULL; | |
30115 | } | |
30116 | ||
30117 | ||
c370783e | 30118 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30119 | PyObject *resultobj; |
30120 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
30121 | bool result; | |
30122 | PyObject * obj0 = 0 ; | |
30123 | char *kwnames[] = { | |
30124 | (char *) "self", NULL | |
30125 | }; | |
30126 | ||
30127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0); |
30129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30130 | { |
30131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30132 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
30133 | ||
30134 | wxPyEndAllowThreads(__tstate); | |
30135 | if (PyErr_Occurred()) SWIG_fail; | |
30136 | } | |
30137 | { | |
30138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30139 | } | |
30140 | return resultobj; | |
30141 | fail: | |
30142 | return NULL; | |
30143 | } | |
30144 | ||
30145 | ||
c370783e | 30146 | static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30147 | PyObject *obj; |
30148 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30149 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
30150 | Py_INCREF(obj); | |
30151 | return Py_BuildValue((char *)""); | |
30152 | } | |
c370783e | 30153 | static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30154 | PyObject *resultobj; |
30155 | int arg1 = (int) 0 ; | |
30156 | int arg2 = (int) 0 ; | |
30157 | int arg3 = (int) 0 ; | |
30158 | int arg4 = (int) 0 ; | |
30159 | wxVideoMode *result; | |
30160 | PyObject * obj0 = 0 ; | |
30161 | PyObject * obj1 = 0 ; | |
30162 | PyObject * obj2 = 0 ; | |
30163 | PyObject * obj3 = 0 ; | |
30164 | char *kwnames[] = { | |
30165 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
30166 | }; | |
30167 | ||
30168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30169 | if (obj0) { | |
36ed4f51 RD |
30170 | { |
30171 | arg1 = (int)(SWIG_As_int(obj0)); | |
30172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30173 | } | |
d55e5bfc RD |
30174 | } |
30175 | if (obj1) { | |
36ed4f51 RD |
30176 | { |
30177 | arg2 = (int)(SWIG_As_int(obj1)); | |
30178 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30179 | } | |
d55e5bfc RD |
30180 | } |
30181 | if (obj2) { | |
36ed4f51 RD |
30182 | { |
30183 | arg3 = (int)(SWIG_As_int(obj2)); | |
30184 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30185 | } | |
d55e5bfc RD |
30186 | } |
30187 | if (obj3) { | |
36ed4f51 RD |
30188 | { |
30189 | arg4 = (int)(SWIG_As_int(obj3)); | |
30190 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30191 | } | |
d55e5bfc RD |
30192 | } |
30193 | { | |
30194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30195 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
30196 | ||
30197 | wxPyEndAllowThreads(__tstate); | |
30198 | if (PyErr_Occurred()) SWIG_fail; | |
30199 | } | |
30200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
30201 | return resultobj; | |
30202 | fail: | |
30203 | return NULL; | |
30204 | } | |
30205 | ||
30206 | ||
c370783e | 30207 | static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30208 | PyObject *resultobj; |
30209 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30210 | PyObject * obj0 = 0 ; | |
30211 | char *kwnames[] = { | |
30212 | (char *) "self", NULL | |
30213 | }; | |
30214 | ||
30215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30218 | { |
30219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30220 | delete arg1; | |
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 | ||
c370783e | 30232 | static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30233 | PyObject *resultobj; |
30234 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30235 | wxVideoMode *arg2 = 0 ; | |
30236 | bool result; | |
30237 | PyObject * obj0 = 0 ; | |
30238 | PyObject * obj1 = 0 ; | |
30239 | char *kwnames[] = { | |
30240 | (char *) "self",(char *) "other", NULL | |
30241 | }; | |
30242 | ||
30243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30246 | { | |
30247 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
30248 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30249 | if (arg2 == NULL) { | |
30250 | SWIG_null_ref("wxVideoMode"); | |
30251 | } | |
30252 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30253 | } |
30254 | { | |
30255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30256 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
30257 | ||
30258 | wxPyEndAllowThreads(__tstate); | |
30259 | if (PyErr_Occurred()) SWIG_fail; | |
30260 | } | |
30261 | { | |
30262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30263 | } | |
30264 | return resultobj; | |
30265 | fail: | |
30266 | return NULL; | |
30267 | } | |
30268 | ||
30269 | ||
c370783e | 30270 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30271 | PyObject *resultobj; |
30272 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30273 | int result; | |
30274 | PyObject * obj0 = 0 ; | |
30275 | char *kwnames[] = { | |
30276 | (char *) "self", NULL | |
30277 | }; | |
30278 | ||
30279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30282 | { |
30283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30284 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
30285 | ||
30286 | wxPyEndAllowThreads(__tstate); | |
30287 | if (PyErr_Occurred()) SWIG_fail; | |
30288 | } | |
36ed4f51 RD |
30289 | { |
30290 | resultobj = SWIG_From_int((int)(result)); | |
30291 | } | |
d55e5bfc RD |
30292 | return resultobj; |
30293 | fail: | |
30294 | return NULL; | |
30295 | } | |
30296 | ||
30297 | ||
c370783e | 30298 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30299 | PyObject *resultobj; |
30300 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30301 | int result; | |
30302 | PyObject * obj0 = 0 ; | |
30303 | char *kwnames[] = { | |
30304 | (char *) "self", NULL | |
30305 | }; | |
30306 | ||
30307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30310 | { |
30311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30312 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
30313 | ||
30314 | wxPyEndAllowThreads(__tstate); | |
30315 | if (PyErr_Occurred()) SWIG_fail; | |
30316 | } | |
36ed4f51 RD |
30317 | { |
30318 | resultobj = SWIG_From_int((int)(result)); | |
30319 | } | |
d55e5bfc RD |
30320 | return resultobj; |
30321 | fail: | |
30322 | return NULL; | |
30323 | } | |
30324 | ||
30325 | ||
c370783e | 30326 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30327 | PyObject *resultobj; |
30328 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30329 | int result; | |
30330 | PyObject * obj0 = 0 ; | |
30331 | char *kwnames[] = { | |
30332 | (char *) "self", NULL | |
30333 | }; | |
30334 | ||
30335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30338 | { |
30339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30340 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
30341 | ||
30342 | wxPyEndAllowThreads(__tstate); | |
30343 | if (PyErr_Occurred()) SWIG_fail; | |
30344 | } | |
36ed4f51 RD |
30345 | { |
30346 | resultobj = SWIG_From_int((int)(result)); | |
30347 | } | |
d55e5bfc RD |
30348 | return resultobj; |
30349 | fail: | |
30350 | return NULL; | |
30351 | } | |
30352 | ||
30353 | ||
c370783e | 30354 | static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30355 | PyObject *resultobj; |
30356 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30357 | bool result; | |
30358 | PyObject * obj0 = 0 ; | |
30359 | char *kwnames[] = { | |
30360 | (char *) "self", NULL | |
30361 | }; | |
30362 | ||
30363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30366 | { |
30367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30368 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
30369 | ||
30370 | wxPyEndAllowThreads(__tstate); | |
30371 | if (PyErr_Occurred()) SWIG_fail; | |
30372 | } | |
30373 | { | |
30374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30375 | } | |
30376 | return resultobj; | |
30377 | fail: | |
30378 | return NULL; | |
30379 | } | |
30380 | ||
30381 | ||
c370783e | 30382 | static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30383 | PyObject *resultobj; |
30384 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30385 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
30386 | bool result; | |
30387 | PyObject * obj0 = 0 ; | |
30388 | PyObject * obj1 = 0 ; | |
30389 | char *kwnames[] = { | |
30390 | (char *) "self",(char *) "other", NULL | |
30391 | }; | |
30392 | ||
30393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30396 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
30397 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30398 | { |
30399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30400 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
30401 | ||
30402 | wxPyEndAllowThreads(__tstate); | |
30403 | if (PyErr_Occurred()) SWIG_fail; | |
30404 | } | |
30405 | { | |
30406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30407 | } | |
30408 | return resultobj; | |
30409 | fail: | |
30410 | return NULL; | |
30411 | } | |
30412 | ||
30413 | ||
c370783e | 30414 | static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30415 | PyObject *resultobj; |
30416 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30417 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
30418 | bool result; | |
30419 | PyObject * obj0 = 0 ; | |
30420 | PyObject * obj1 = 0 ; | |
30421 | char *kwnames[] = { | |
30422 | (char *) "self",(char *) "other", NULL | |
30423 | }; | |
30424 | ||
30425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30428 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
30429 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30430 | { |
30431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30432 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
30433 | ||
30434 | wxPyEndAllowThreads(__tstate); | |
30435 | if (PyErr_Occurred()) SWIG_fail; | |
30436 | } | |
30437 | { | |
30438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30439 | } | |
30440 | return resultobj; | |
30441 | fail: | |
30442 | return NULL; | |
30443 | } | |
30444 | ||
30445 | ||
c370783e | 30446 | static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30447 | PyObject *resultobj; |
30448 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30449 | int arg2 ; | |
30450 | PyObject * obj0 = 0 ; | |
30451 | PyObject * obj1 = 0 ; | |
30452 | char *kwnames[] = { | |
30453 | (char *) "self",(char *) "w", NULL | |
30454 | }; | |
30455 | ||
30456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30459 | { | |
30460 | arg2 = (int)(SWIG_As_int(obj1)); | |
30461 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30462 | } | |
d55e5bfc RD |
30463 | if (arg1) (arg1)->w = arg2; |
30464 | ||
30465 | Py_INCREF(Py_None); resultobj = Py_None; | |
30466 | return resultobj; | |
30467 | fail: | |
30468 | return NULL; | |
30469 | } | |
30470 | ||
30471 | ||
c370783e | 30472 | static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30473 | PyObject *resultobj; |
30474 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30475 | int result; | |
30476 | PyObject * obj0 = 0 ; | |
30477 | char *kwnames[] = { | |
30478 | (char *) "self", NULL | |
30479 | }; | |
30480 | ||
30481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30484 | result = (int) ((arg1)->w); |
30485 | ||
36ed4f51 RD |
30486 | { |
30487 | resultobj = SWIG_From_int((int)(result)); | |
30488 | } | |
d55e5bfc RD |
30489 | return resultobj; |
30490 | fail: | |
30491 | return NULL; | |
30492 | } | |
30493 | ||
30494 | ||
c370783e | 30495 | static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30496 | PyObject *resultobj; |
30497 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30498 | int arg2 ; | |
30499 | PyObject * obj0 = 0 ; | |
30500 | PyObject * obj1 = 0 ; | |
30501 | char *kwnames[] = { | |
30502 | (char *) "self",(char *) "h", NULL | |
30503 | }; | |
30504 | ||
30505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30508 | { | |
30509 | arg2 = (int)(SWIG_As_int(obj1)); | |
30510 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30511 | } | |
d55e5bfc RD |
30512 | if (arg1) (arg1)->h = arg2; |
30513 | ||
30514 | Py_INCREF(Py_None); resultobj = Py_None; | |
30515 | return resultobj; | |
30516 | fail: | |
30517 | return NULL; | |
30518 | } | |
30519 | ||
30520 | ||
c370783e | 30521 | static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30522 | PyObject *resultobj; |
30523 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30524 | int result; | |
30525 | PyObject * obj0 = 0 ; | |
30526 | char *kwnames[] = { | |
30527 | (char *) "self", NULL | |
30528 | }; | |
30529 | ||
30530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30533 | result = (int) ((arg1)->h); |
30534 | ||
36ed4f51 RD |
30535 | { |
30536 | resultobj = SWIG_From_int((int)(result)); | |
30537 | } | |
d55e5bfc RD |
30538 | return resultobj; |
30539 | fail: | |
30540 | return NULL; | |
30541 | } | |
30542 | ||
30543 | ||
c370783e | 30544 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30545 | PyObject *resultobj; |
30546 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30547 | int arg2 ; | |
30548 | PyObject * obj0 = 0 ; | |
30549 | PyObject * obj1 = 0 ; | |
30550 | char *kwnames[] = { | |
30551 | (char *) "self",(char *) "bpp", NULL | |
30552 | }; | |
30553 | ||
30554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30555 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30556 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30557 | { | |
30558 | arg2 = (int)(SWIG_As_int(obj1)); | |
30559 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30560 | } | |
d55e5bfc RD |
30561 | if (arg1) (arg1)->bpp = arg2; |
30562 | ||
30563 | Py_INCREF(Py_None); resultobj = Py_None; | |
30564 | return resultobj; | |
30565 | fail: | |
30566 | return NULL; | |
30567 | } | |
30568 | ||
30569 | ||
c370783e | 30570 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30571 | PyObject *resultobj; |
30572 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30573 | int result; | |
30574 | PyObject * obj0 = 0 ; | |
30575 | char *kwnames[] = { | |
30576 | (char *) "self", NULL | |
30577 | }; | |
30578 | ||
30579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30582 | result = (int) ((arg1)->bpp); |
30583 | ||
36ed4f51 RD |
30584 | { |
30585 | resultobj = SWIG_From_int((int)(result)); | |
30586 | } | |
d55e5bfc RD |
30587 | return resultobj; |
30588 | fail: | |
30589 | return NULL; | |
30590 | } | |
30591 | ||
30592 | ||
c370783e | 30593 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30594 | PyObject *resultobj; |
30595 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30596 | int arg2 ; | |
30597 | PyObject * obj0 = 0 ; | |
30598 | PyObject * obj1 = 0 ; | |
30599 | char *kwnames[] = { | |
30600 | (char *) "self",(char *) "refresh", NULL | |
30601 | }; | |
30602 | ||
30603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30604 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30606 | { | |
30607 | arg2 = (int)(SWIG_As_int(obj1)); | |
30608 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30609 | } | |
d55e5bfc RD |
30610 | if (arg1) (arg1)->refresh = arg2; |
30611 | ||
30612 | Py_INCREF(Py_None); resultobj = Py_None; | |
30613 | return resultobj; | |
30614 | fail: | |
30615 | return NULL; | |
30616 | } | |
30617 | ||
30618 | ||
c370783e | 30619 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30620 | PyObject *resultobj; |
30621 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30622 | int result; | |
30623 | PyObject * obj0 = 0 ; | |
30624 | char *kwnames[] = { | |
30625 | (char *) "self", NULL | |
30626 | }; | |
30627 | ||
30628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30631 | result = (int) ((arg1)->refresh); |
30632 | ||
36ed4f51 RD |
30633 | { |
30634 | resultobj = SWIG_From_int((int)(result)); | |
30635 | } | |
d55e5bfc RD |
30636 | return resultobj; |
30637 | fail: | |
30638 | return NULL; | |
30639 | } | |
30640 | ||
30641 | ||
c370783e | 30642 | static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30643 | PyObject *obj; |
30644 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30645 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
30646 | Py_INCREF(obj); | |
30647 | return Py_BuildValue((char *)""); | |
30648 | } | |
c370783e | 30649 | static int _wrap_DefaultVideoMode_set(PyObject *) { |
d55e5bfc RD |
30650 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); |
30651 | return 1; | |
30652 | } | |
30653 | ||
30654 | ||
36ed4f51 | 30655 | static PyObject *_wrap_DefaultVideoMode_get(void) { |
d55e5bfc RD |
30656 | PyObject *pyobj; |
30657 | ||
30658 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
30659 | return pyobj; | |
30660 | } | |
30661 | ||
30662 | ||
c370783e | 30663 | static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30664 | PyObject *resultobj; |
30665 | size_t arg1 = (size_t) 0 ; | |
30666 | wxDisplay *result; | |
30667 | PyObject * obj0 = 0 ; | |
30668 | char *kwnames[] = { | |
30669 | (char *) "index", NULL | |
30670 | }; | |
30671 | ||
30672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
30673 | if (obj0) { | |
36ed4f51 RD |
30674 | { |
30675 | arg1 = (size_t)(SWIG_As_unsigned_SS_long(obj0)); | |
30676 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30677 | } | |
d55e5bfc RD |
30678 | } |
30679 | { | |
30680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30681 | result = (wxDisplay *)new wxDisplay(arg1); | |
30682 | ||
30683 | wxPyEndAllowThreads(__tstate); | |
30684 | if (PyErr_Occurred()) SWIG_fail; | |
30685 | } | |
30686 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
30687 | return resultobj; | |
30688 | fail: | |
30689 | return NULL; | |
30690 | } | |
30691 | ||
30692 | ||
c370783e | 30693 | static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30694 | PyObject *resultobj; |
30695 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30696 | PyObject * obj0 = 0 ; | |
30697 | char *kwnames[] = { | |
30698 | (char *) "self", NULL | |
30699 | }; | |
30700 | ||
30701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30704 | { |
30705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30706 | delete arg1; | |
30707 | ||
30708 | wxPyEndAllowThreads(__tstate); | |
30709 | if (PyErr_Occurred()) SWIG_fail; | |
30710 | } | |
30711 | Py_INCREF(Py_None); resultobj = Py_None; | |
30712 | return resultobj; | |
30713 | fail: | |
30714 | return NULL; | |
30715 | } | |
30716 | ||
30717 | ||
c370783e | 30718 | static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30719 | PyObject *resultobj; |
30720 | size_t result; | |
30721 | char *kwnames[] = { | |
30722 | NULL | |
30723 | }; | |
30724 | ||
30725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
30726 | { | |
30727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30728 | result = (size_t)wxDisplay::GetCount(); | |
30729 | ||
30730 | wxPyEndAllowThreads(__tstate); | |
30731 | if (PyErr_Occurred()) SWIG_fail; | |
30732 | } | |
36ed4f51 RD |
30733 | { |
30734 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
30735 | } | |
d55e5bfc RD |
30736 | return resultobj; |
30737 | fail: | |
30738 | return NULL; | |
30739 | } | |
30740 | ||
30741 | ||
c370783e | 30742 | static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30743 | PyObject *resultobj; |
30744 | wxPoint *arg1 = 0 ; | |
30745 | int result; | |
30746 | wxPoint temp1 ; | |
30747 | PyObject * obj0 = 0 ; | |
30748 | char *kwnames[] = { | |
30749 | (char *) "pt", NULL | |
30750 | }; | |
30751 | ||
30752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
30753 | { | |
30754 | arg1 = &temp1; | |
30755 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
30756 | } | |
30757 | { | |
30758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30759 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
30760 | ||
30761 | wxPyEndAllowThreads(__tstate); | |
30762 | if (PyErr_Occurred()) SWIG_fail; | |
30763 | } | |
36ed4f51 RD |
30764 | { |
30765 | resultobj = SWIG_From_int((int)(result)); | |
30766 | } | |
d55e5bfc RD |
30767 | return resultobj; |
30768 | fail: | |
30769 | return NULL; | |
30770 | } | |
30771 | ||
30772 | ||
c370783e | 30773 | static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30774 | PyObject *resultobj; |
30775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30776 | int result; | |
30777 | PyObject * obj0 = 0 ; | |
30778 | char *kwnames[] = { | |
30779 | (char *) "window", NULL | |
30780 | }; | |
30781 | ||
30782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30785 | { |
30786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30787 | result = (int)Display_GetFromWindow(arg1); | |
30788 | ||
30789 | wxPyEndAllowThreads(__tstate); | |
30790 | if (PyErr_Occurred()) SWIG_fail; | |
30791 | } | |
36ed4f51 RD |
30792 | { |
30793 | resultobj = SWIG_From_int((int)(result)); | |
30794 | } | |
d55e5bfc RD |
30795 | return resultobj; |
30796 | fail: | |
30797 | return NULL; | |
30798 | } | |
30799 | ||
30800 | ||
c370783e | 30801 | static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30802 | PyObject *resultobj; |
30803 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30804 | bool result; | |
30805 | PyObject * obj0 = 0 ; | |
30806 | char *kwnames[] = { | |
30807 | (char *) "self", NULL | |
30808 | }; | |
30809 | ||
30810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30811 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30813 | { |
30814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30815 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
30816 | ||
30817 | wxPyEndAllowThreads(__tstate); | |
30818 | if (PyErr_Occurred()) SWIG_fail; | |
30819 | } | |
30820 | { | |
30821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30822 | } | |
30823 | return resultobj; | |
30824 | fail: | |
30825 | return NULL; | |
30826 | } | |
30827 | ||
30828 | ||
c370783e | 30829 | static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30830 | PyObject *resultobj; |
30831 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30832 | wxRect result; | |
30833 | PyObject * obj0 = 0 ; | |
30834 | char *kwnames[] = { | |
30835 | (char *) "self", NULL | |
30836 | }; | |
30837 | ||
30838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30841 | { |
30842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30843 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
30844 | ||
30845 | wxPyEndAllowThreads(__tstate); | |
30846 | if (PyErr_Occurred()) SWIG_fail; | |
30847 | } | |
30848 | { | |
30849 | wxRect * resultptr; | |
36ed4f51 | 30850 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
30851 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
30852 | } | |
30853 | return resultobj; | |
30854 | fail: | |
30855 | return NULL; | |
30856 | } | |
30857 | ||
30858 | ||
c370783e | 30859 | static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30860 | PyObject *resultobj; |
30861 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30862 | wxString result; | |
30863 | PyObject * obj0 = 0 ; | |
30864 | char *kwnames[] = { | |
30865 | (char *) "self", NULL | |
30866 | }; | |
30867 | ||
30868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30869 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30870 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30871 | { |
30872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30873 | result = ((wxDisplay const *)arg1)->GetName(); | |
30874 | ||
30875 | wxPyEndAllowThreads(__tstate); | |
30876 | if (PyErr_Occurred()) SWIG_fail; | |
30877 | } | |
30878 | { | |
30879 | #if wxUSE_UNICODE | |
30880 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30881 | #else | |
30882 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30883 | #endif | |
30884 | } | |
30885 | return resultobj; | |
30886 | fail: | |
30887 | return NULL; | |
30888 | } | |
30889 | ||
30890 | ||
c370783e | 30891 | static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30892 | PyObject *resultobj; |
30893 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30894 | bool result; | |
30895 | PyObject * obj0 = 0 ; | |
30896 | char *kwnames[] = { | |
30897 | (char *) "self", NULL | |
30898 | }; | |
30899 | ||
30900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30901 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30902 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30903 | { |
30904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30905 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
30906 | ||
30907 | wxPyEndAllowThreads(__tstate); | |
30908 | if (PyErr_Occurred()) SWIG_fail; | |
30909 | } | |
30910 | { | |
30911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30912 | } | |
30913 | return resultobj; | |
30914 | fail: | |
30915 | return NULL; | |
30916 | } | |
30917 | ||
30918 | ||
c370783e | 30919 | static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30920 | PyObject *resultobj; |
30921 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30922 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
30923 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
30924 | PyObject *result; | |
30925 | PyObject * obj0 = 0 ; | |
30926 | PyObject * obj1 = 0 ; | |
30927 | char *kwnames[] = { | |
30928 | (char *) "self",(char *) "mode", NULL | |
30929 | }; | |
30930 | ||
30931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 30934 | if (obj1) { |
36ed4f51 RD |
30935 | { |
30936 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
30937 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30938 | if (arg2 == NULL) { | |
30939 | SWIG_null_ref("wxVideoMode"); | |
30940 | } | |
30941 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30942 | } |
30943 | } | |
30944 | { | |
30945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30946 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
30947 | ||
30948 | wxPyEndAllowThreads(__tstate); | |
30949 | if (PyErr_Occurred()) SWIG_fail; | |
30950 | } | |
30951 | resultobj = result; | |
30952 | return resultobj; | |
30953 | fail: | |
30954 | return NULL; | |
30955 | } | |
30956 | ||
30957 | ||
c370783e | 30958 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30959 | PyObject *resultobj; |
30960 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30961 | wxVideoMode result; | |
30962 | PyObject * obj0 = 0 ; | |
30963 | char *kwnames[] = { | |
30964 | (char *) "self", NULL | |
30965 | }; | |
30966 | ||
30967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30970 | { |
30971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30972 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
30973 | ||
30974 | wxPyEndAllowThreads(__tstate); | |
30975 | if (PyErr_Occurred()) SWIG_fail; | |
30976 | } | |
30977 | { | |
30978 | wxVideoMode * resultptr; | |
36ed4f51 | 30979 | resultptr = new wxVideoMode((wxVideoMode &)(result)); |
d55e5bfc RD |
30980 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); |
30981 | } | |
30982 | return resultobj; | |
30983 | fail: | |
30984 | return NULL; | |
30985 | } | |
30986 | ||
30987 | ||
c370783e | 30988 | static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30989 | PyObject *resultobj; |
30990 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30991 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
30992 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
30993 | bool result; | |
30994 | PyObject * obj0 = 0 ; | |
30995 | PyObject * obj1 = 0 ; | |
30996 | char *kwnames[] = { | |
30997 | (char *) "self",(char *) "mode", NULL | |
30998 | }; | |
30999 | ||
31000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
31001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
31002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 31003 | if (obj1) { |
36ed4f51 RD |
31004 | { |
31005 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
31006 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31007 | if (arg2 == NULL) { | |
31008 | SWIG_null_ref("wxVideoMode"); | |
31009 | } | |
31010 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31011 | } |
31012 | } | |
31013 | { | |
31014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31015 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
31016 | ||
31017 | wxPyEndAllowThreads(__tstate); | |
31018 | if (PyErr_Occurred()) SWIG_fail; | |
31019 | } | |
31020 | { | |
31021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31022 | } | |
31023 | return resultobj; | |
31024 | fail: | |
31025 | return NULL; | |
31026 | } | |
31027 | ||
31028 | ||
c370783e | 31029 | static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31030 | PyObject *resultobj; |
31031 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
31032 | PyObject * obj0 = 0 ; | |
31033 | char *kwnames[] = { | |
31034 | (char *) "self", NULL | |
31035 | }; | |
31036 | ||
31037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31038 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
31039 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31040 | { |
31041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31042 | (arg1)->ResetMode(); | |
31043 | ||
31044 | wxPyEndAllowThreads(__tstate); | |
31045 | if (PyErr_Occurred()) SWIG_fail; | |
31046 | } | |
31047 | Py_INCREF(Py_None); resultobj = Py_None; | |
31048 | return resultobj; | |
31049 | fail: | |
31050 | return NULL; | |
31051 | } | |
31052 | ||
31053 | ||
c370783e | 31054 | static PyObject * Display_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31055 | PyObject *obj; |
31056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31057 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
31058 | Py_INCREF(obj); | |
31059 | return Py_BuildValue((char *)""); | |
31060 | } | |
070c48b4 RD |
31061 | static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
31062 | PyObject *resultobj; | |
31063 | wxStandardPaths *result; | |
31064 | char *kwnames[] = { | |
31065 | NULL | |
31066 | }; | |
31067 | ||
31068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail; | |
31069 | { | |
31070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8fb0e70a | 31071 | result = (wxStandardPaths *)StandardPaths_Get(); |
070c48b4 RD |
31072 | |
31073 | wxPyEndAllowThreads(__tstate); | |
31074 | if (PyErr_Occurred()) SWIG_fail; | |
31075 | } | |
31076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0); | |
31077 | return resultobj; | |
31078 | fail: | |
31079 | return NULL; | |
31080 | } | |
31081 | ||
31082 | ||
31083 | static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31084 | PyObject *resultobj; | |
31085 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31086 | wxString result; | |
31087 | PyObject * obj0 = 0 ; | |
31088 | char *kwnames[] = { | |
31089 | (char *) "self", NULL | |
31090 | }; | |
31091 | ||
31092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
070c48b4 RD |
31095 | { |
31096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31097 | result = ((wxStandardPaths const *)arg1)->GetConfigDir(); | |
31098 | ||
31099 | wxPyEndAllowThreads(__tstate); | |
31100 | if (PyErr_Occurred()) SWIG_fail; | |
31101 | } | |
31102 | { | |
31103 | #if wxUSE_UNICODE | |
31104 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31105 | #else | |
31106 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31107 | #endif | |
31108 | } | |
31109 | return resultobj; | |
31110 | fail: | |
31111 | return NULL; | |
31112 | } | |
31113 | ||
31114 | ||
31115 | static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31116 | PyObject *resultobj; | |
31117 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31118 | wxString result; | |
31119 | PyObject * obj0 = 0 ; | |
31120 | char *kwnames[] = { | |
31121 | (char *) "self", NULL | |
31122 | }; | |
31123 | ||
31124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
070c48b4 RD |
31127 | { |
31128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31129 | result = ((wxStandardPaths const *)arg1)->GetUserConfigDir(); | |
31130 | ||
31131 | wxPyEndAllowThreads(__tstate); | |
31132 | if (PyErr_Occurred()) SWIG_fail; | |
31133 | } | |
31134 | { | |
31135 | #if wxUSE_UNICODE | |
31136 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31137 | #else | |
31138 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31139 | #endif | |
31140 | } | |
31141 | return resultobj; | |
31142 | fail: | |
31143 | return NULL; | |
31144 | } | |
31145 | ||
31146 | ||
31147 | static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31148 | PyObject *resultobj; | |
31149 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31150 | wxString result; | |
31151 | PyObject * obj0 = 0 ; | |
31152 | char *kwnames[] = { | |
31153 | (char *) "self", NULL | |
31154 | }; | |
31155 | ||
31156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
070c48b4 RD |
31159 | { |
31160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31161 | result = ((wxStandardPaths const *)arg1)->GetDataDir(); | |
31162 | ||
31163 | wxPyEndAllowThreads(__tstate); | |
31164 | if (PyErr_Occurred()) SWIG_fail; | |
31165 | } | |
31166 | { | |
31167 | #if wxUSE_UNICODE | |
31168 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31169 | #else | |
31170 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31171 | #endif | |
31172 | } | |
31173 | return resultobj; | |
31174 | fail: | |
31175 | return NULL; | |
31176 | } | |
31177 | ||
31178 | ||
31179 | static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31180 | PyObject *resultobj; | |
31181 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31182 | wxString result; | |
31183 | PyObject * obj0 = 0 ; | |
31184 | char *kwnames[] = { | |
31185 | (char *) "self", NULL | |
31186 | }; | |
31187 | ||
31188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
070c48b4 RD |
31191 | { |
31192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31193 | result = ((wxStandardPaths const *)arg1)->GetLocalDataDir(); | |
31194 | ||
31195 | wxPyEndAllowThreads(__tstate); | |
31196 | if (PyErr_Occurred()) SWIG_fail; | |
31197 | } | |
31198 | { | |
31199 | #if wxUSE_UNICODE | |
31200 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31201 | #else | |
31202 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31203 | #endif | |
31204 | } | |
31205 | return resultobj; | |
31206 | fail: | |
31207 | return NULL; | |
31208 | } | |
31209 | ||
31210 | ||
31211 | static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31212 | PyObject *resultobj; | |
31213 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31214 | wxString result; | |
31215 | PyObject * obj0 = 0 ; | |
31216 | char *kwnames[] = { | |
31217 | (char *) "self", NULL | |
31218 | }; | |
31219 | ||
31220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
070c48b4 RD |
31223 | { |
31224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31225 | result = ((wxStandardPaths const *)arg1)->GetUserDataDir(); | |
31226 | ||
31227 | wxPyEndAllowThreads(__tstate); | |
31228 | if (PyErr_Occurred()) SWIG_fail; | |
31229 | } | |
31230 | { | |
31231 | #if wxUSE_UNICODE | |
31232 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31233 | #else | |
31234 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31235 | #endif | |
31236 | } | |
31237 | return resultobj; | |
31238 | fail: | |
31239 | return NULL; | |
31240 | } | |
31241 | ||
31242 | ||
31243 | static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31244 | PyObject *resultobj; | |
31245 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31246 | wxString result; | |
31247 | PyObject * obj0 = 0 ; | |
31248 | char *kwnames[] = { | |
31249 | (char *) "self", NULL | |
31250 | }; | |
31251 | ||
31252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31253 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
070c48b4 RD |
31255 | { |
31256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31257 | result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir(); | |
31258 | ||
31259 | wxPyEndAllowThreads(__tstate); | |
31260 | if (PyErr_Occurred()) SWIG_fail; | |
31261 | } | |
31262 | { | |
31263 | #if wxUSE_UNICODE | |
31264 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31265 | #else | |
31266 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31267 | #endif | |
31268 | } | |
31269 | return resultobj; | |
31270 | fail: | |
31271 | return NULL; | |
31272 | } | |
31273 | ||
31274 | ||
31275 | static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31276 | PyObject *resultobj; | |
31277 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31278 | wxString result; | |
31279 | PyObject * obj0 = 0 ; | |
31280 | char *kwnames[] = { | |
31281 | (char *) "self", NULL | |
31282 | }; | |
31283 | ||
31284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
070c48b4 RD |
31287 | { |
31288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31289 | result = ((wxStandardPaths const *)arg1)->GetPluginsDir(); | |
31290 | ||
31291 | wxPyEndAllowThreads(__tstate); | |
31292 | if (PyErr_Occurred()) SWIG_fail; | |
31293 | } | |
31294 | { | |
31295 | #if wxUSE_UNICODE | |
31296 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31297 | #else | |
31298 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31299 | #endif | |
31300 | } | |
31301 | return resultobj; | |
31302 | fail: | |
31303 | return NULL; | |
31304 | } | |
31305 | ||
31306 | ||
31307 | static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
31308 | PyObject *resultobj; | |
31309 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31310 | wxString *arg2 = 0 ; | |
31311 | bool temp2 = false ; | |
31312 | PyObject * obj0 = 0 ; | |
31313 | PyObject * obj1 = 0 ; | |
31314 | char *kwnames[] = { | |
31315 | (char *) "self",(char *) "prefix", NULL | |
31316 | }; | |
31317 | ||
31318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
31319 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31320 | if (SWIG_arg_fail(1)) SWIG_fail; | |
070c48b4 RD |
31321 | { |
31322 | arg2 = wxString_in_helper(obj1); | |
31323 | if (arg2 == NULL) SWIG_fail; | |
31324 | temp2 = true; | |
31325 | } | |
31326 | { | |
31327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31328 | wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2); | |
31329 | ||
31330 | wxPyEndAllowThreads(__tstate); | |
31331 | if (PyErr_Occurred()) SWIG_fail; | |
31332 | } | |
31333 | Py_INCREF(Py_None); resultobj = Py_None; | |
31334 | { | |
31335 | if (temp2) | |
31336 | delete arg2; | |
31337 | } | |
31338 | return resultobj; | |
31339 | fail: | |
31340 | { | |
31341 | if (temp2) | |
31342 | delete arg2; | |
31343 | } | |
31344 | return NULL; | |
31345 | } | |
31346 | ||
31347 | ||
31348 | static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
31349 | PyObject *resultobj; | |
31350 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31351 | wxString result; | |
31352 | PyObject * obj0 = 0 ; | |
31353 | char *kwnames[] = { | |
31354 | (char *) "self", NULL | |
31355 | }; | |
31356 | ||
31357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31358 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31359 | if (SWIG_arg_fail(1)) SWIG_fail; | |
070c48b4 RD |
31360 | { |
31361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31362 | result = wxStandardPaths_GetInstallPrefix(arg1); | |
31363 | ||
31364 | wxPyEndAllowThreads(__tstate); | |
31365 | if (PyErr_Occurred()) SWIG_fail; | |
31366 | } | |
31367 | { | |
31368 | #if wxUSE_UNICODE | |
31369 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31370 | #else | |
31371 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31372 | #endif | |
31373 | } | |
31374 | return resultobj; | |
31375 | fail: | |
31376 | return NULL; | |
31377 | } | |
31378 | ||
31379 | ||
31380 | static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) { | |
31381 | PyObject *obj; | |
31382 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31383 | SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj); | |
31384 | Py_INCREF(obj); | |
31385 | return Py_BuildValue((char *)""); | |
31386 | } | |
d55e5bfc | 31387 | static PyMethodDef SwigMethods[] = { |
36ed4f51 RD |
31388 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
31389 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31390 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31391 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31392 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31393 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31394 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL}, | |
31395 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31396 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31397 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31398 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31399 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31400 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31401 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL}, | |
31402 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31403 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31404 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31405 | { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31406 | { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31407 | { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31408 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31409 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31410 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31411 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31412 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31413 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31414 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31415 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31416 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31417 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31418 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31419 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31420 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31421 | { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31422 | { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31423 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31424 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31425 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31426 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31427 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31428 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31429 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31430 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31431 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31432 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31433 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31434 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31435 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31436 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31437 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31438 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31439 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31440 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31441 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31442 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31443 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31444 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31445 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31446 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31447 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31448 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31449 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31450 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31451 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31452 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31453 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31454 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31455 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31456 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31457 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31458 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31459 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31460 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31461 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31462 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31463 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31464 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31465 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL}, | |
31466 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31467 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31468 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31469 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31470 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31471 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31472 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31473 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL}, | |
31474 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
091fdbfa | 31475 | { (char *)"Caret_Destroy", (PyCFunction) _wrap_Caret_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
31476 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, |
31477 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31478 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31479 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31480 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31481 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31482 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31483 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31484 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31485 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31486 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31487 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31488 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 RD |
31489 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL}, |
31490 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
091fdbfa | 31491 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL}, |
36ed4f51 RD |
31492 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, |
31493 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31494 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL}, | |
31495 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31496 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31497 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL}, | |
31498 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31499 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31500 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL}, | |
31501 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31502 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31503 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31504 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31505 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31506 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL}, | |
31507 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31508 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31509 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31510 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31511 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31512 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31513 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31514 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31515 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31516 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31517 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31518 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31519 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31520 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL}, | |
31521 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31522 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31523 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31524 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31525 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31526 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL}, | |
68350608 | 31527 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
31528 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, |
31529 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31530 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31531 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31532 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL}, | |
31533 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31534 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31535 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL}, | |
31536 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31537 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31538 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31539 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31540 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31541 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31542 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31543 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31544 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31545 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31546 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31547 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31548 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31549 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL}, | |
31550 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31551 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31552 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL}, | |
31553 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL}, | |
31554 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31555 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31556 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL}, | |
31557 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31558 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31559 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31560 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31561 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31562 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31563 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31564 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31565 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31566 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31567 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31568 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31569 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31570 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31571 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31572 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31573 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31574 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31575 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31576 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31577 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31578 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31579 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31580 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31581 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31582 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31583 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL}, | |
31584 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31585 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL}, | |
31586 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31587 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL}, | |
31588 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31589 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL}, | |
31590 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31591 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31592 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31593 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31594 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31595 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31596 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL}, | |
31597 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31598 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31599 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31600 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31601 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31602 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL}, | |
31603 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31604 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31605 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31606 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31607 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31608 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31609 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31610 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31611 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31612 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31613 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31614 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31615 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31616 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL}, | |
31617 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31618 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31619 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31620 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL}, | |
31621 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31622 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31623 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL}, | |
31624 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31625 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31626 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31627 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31628 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31629 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31630 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31631 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31632 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31633 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31634 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31635 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31636 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31637 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31638 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31639 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31640 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL}, | |
31641 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31642 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31643 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31644 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31645 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31646 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31647 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31648 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL}, | |
31649 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31650 | { (char *)"Kill", (PyCFunction) _wrap_Kill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31651 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31652 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31653 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31654 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31655 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31656 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31657 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31658 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31659 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31660 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31661 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31662 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31663 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31664 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31665 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31666 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31667 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31668 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31669 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31670 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31671 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31672 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31673 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31674 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31675 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31676 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31677 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31678 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31679 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31680 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31681 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31682 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31683 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31684 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31685 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31686 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31687 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31688 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31689 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31690 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31691 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31692 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31693 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31694 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31695 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL}, | |
36ed4f51 RD |
31696 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31697 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31698 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31699 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31700 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31701 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31702 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31703 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31704 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31705 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31706 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31707 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31708 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31709 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31710 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31711 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31712 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31713 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL}, | |
31714 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31715 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31716 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31717 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31718 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31719 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31720 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31721 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31722 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31723 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL}, | |
31724 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31725 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31726 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31727 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31728 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31729 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31730 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31731 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31732 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31733 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31734 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31735 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31736 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31737 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31738 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31739 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL}, | |
31740 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31741 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31742 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31743 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31744 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31745 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31746 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31747 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31748 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31749 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31750 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31751 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31752 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31753 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31754 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31755 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL}, | |
31756 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31757 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31758 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31759 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31760 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31761 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31762 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31763 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31764 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31765 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31766 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31767 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31768 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31769 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL}, | |
31770 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31771 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31772 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31773 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31774 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31775 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31776 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
9c874b48 | 31777 | { (char *)"ArtProvider_GetSize", (PyCFunction) _wrap_ArtProvider_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
31778 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, |
31779 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL}, | |
31780 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31781 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31782 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31783 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31784 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31785 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31786 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31787 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31788 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31789 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31790 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31791 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31792 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31793 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31794 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31795 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31796 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31797 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31798 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31799 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31800 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31801 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31802 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31803 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31804 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31805 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31806 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31807 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31808 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31809 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31810 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31811 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31812 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31813 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31814 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31815 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31816 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31817 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31818 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31819 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31820 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31821 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31822 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL}, | |
31823 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31824 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31825 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL}, | |
31826 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31827 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31828 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL}, | |
31829 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31830 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31831 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31832 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL}, | |
31833 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31834 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31835 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31836 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31837 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31838 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31839 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31840 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31841 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31842 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31843 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31844 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31845 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31846 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31847 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31848 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31849 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31850 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31851 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31852 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31853 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31854 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31855 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31856 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31857 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31858 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31859 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31860 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31861 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31862 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31863 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31864 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31865 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31866 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31867 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31868 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31869 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31870 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31871 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31872 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31873 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31874 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31875 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31876 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31877 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31878 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31879 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31880 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31881 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31882 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31883 | { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31884 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31885 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31886 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31887 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31888 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31889 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31890 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31891 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31892 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31893 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31894 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31895 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31896 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31897 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31898 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31899 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31900 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31901 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31902 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31903 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31904 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31905 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31906 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31907 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31908 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31909 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31910 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31911 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31912 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31913 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31914 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31915 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31916 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31917 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31918 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31919 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31920 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31921 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31922 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31923 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31924 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31925 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL}, | |
31926 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL}, | |
31927 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL}, | |
31928 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL}, | |
fef4c27a RD |
31929 | { (char *)"DateTime___lt__", (PyCFunction) _wrap_DateTime___lt__, METH_VARARGS | METH_KEYWORDS, NULL}, |
31930 | { (char *)"DateTime___le__", (PyCFunction) _wrap_DateTime___le__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31931 | { (char *)"DateTime___gt__", (PyCFunction) _wrap_DateTime___gt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31932 | { (char *)"DateTime___ge__", (PyCFunction) _wrap_DateTime___ge__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31933 | { (char *)"DateTime___eq__", (PyCFunction) _wrap_DateTime___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31934 | { (char *)"DateTime___ne__", (PyCFunction) _wrap_DateTime___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 RD |
31935 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL}, |
31936 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31937 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31938 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31939 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31940 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31941 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31942 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31943 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31944 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31945 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL}, | |
31946 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31947 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31948 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31949 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31950 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31951 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31952 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31953 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31954 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31955 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31956 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31957 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31958 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31959 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31960 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31961 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31962 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31963 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31964 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31965 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31966 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31967 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31968 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31969 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31970 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31971 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31972 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31973 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31974 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31975 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31976 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31977 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31978 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31979 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31980 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31981 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31982 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31983 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31984 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31985 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31986 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31987 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31988 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31989 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31990 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL}, | |
31991 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31992 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31993 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31994 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31995 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31996 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31997 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31998 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31999 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32000 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32001 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32002 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32003 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32004 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32005 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32006 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32007 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32008 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32009 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32010 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32011 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32012 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32013 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32014 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32015 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32016 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32017 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32018 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32019 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32020 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32021 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32022 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32023 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32024 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL}, | |
32025 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32026 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32027 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32028 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32029 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32030 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32031 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32032 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL}, | |
32033 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL}, | |
32034 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32035 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32036 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32037 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32038 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL}, | |
32039 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32040 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32041 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32042 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32043 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32044 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32045 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32046 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32047 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL}, | |
32048 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32049 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32050 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32051 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32052 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32053 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32054 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL}, | |
32055 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32056 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32057 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL}, | |
32058 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32059 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32060 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL}, | |
32061 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32062 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32063 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32064 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32065 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL}, | |
32066 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32067 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32068 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL}, | |
32069 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32070 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32071 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32072 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL}, | |
32073 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32074 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32075 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL}, | |
32076 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32077 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32078 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32079 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL}, | |
fef4c27a | 32080 | { (char *)"new_CustomDataObject", _wrap_new_CustomDataObject, METH_VARARGS, NULL}, |
36ed4f51 RD |
32081 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
32082 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32083 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32084 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL}, | |
32085 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32086 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32087 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32088 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL}, | |
32089 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32090 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32091 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32092 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL}, | |
32093 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32094 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32095 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32096 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32097 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32098 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32099 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32100 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32101 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32102 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL}, | |
32103 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32104 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32105 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32106 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32107 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32108 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32109 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32110 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32111 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32112 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32113 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL}, | |
32114 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32115 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32116 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32117 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32118 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32119 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32120 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32121 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL}, | |
32122 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32123 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32124 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32125 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32126 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32127 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32128 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32129 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL}, | |
32130 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32131 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32132 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32133 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32134 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32135 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32136 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32137 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32138 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32139 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32140 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32141 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32142 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32143 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL}, | |
32144 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32145 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32146 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32147 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL}, | |
32148 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32149 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32150 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32151 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32152 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32153 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32154 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32155 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32156 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32157 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32158 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32159 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32160 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32161 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32162 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32163 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32164 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32165 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL}, | |
32166 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32167 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32168 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32169 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32170 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32171 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32172 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32173 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32174 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32175 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32176 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32177 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32178 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32179 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL}, | |
32180 | { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32181 | { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32182 | { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32183 | { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32184 | { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32185 | { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32186 | { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32187 | { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32188 | { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32189 | { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32190 | { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL}, | |
c370783e | 32191 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
32192 | }; |
32193 | ||
32194 | ||
32195 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32196 | ||
32197 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32198 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32199 | } | |
32200 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32201 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32202 | } | |
32203 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32204 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32205 | } | |
32206 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32207 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32208 | } | |
32209 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32210 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32211 | } | |
32212 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32213 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32214 | } | |
32215 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
32216 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
32217 | } | |
32218 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32219 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32220 | } | |
32221 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32222 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32223 | } | |
32224 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
32225 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32226 | } | |
32227 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
32228 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32229 | } | |
32230 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
32231 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
32232 | } | |
32233 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32234 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32235 | } | |
32236 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32237 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32238 | } | |
32239 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32240 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32241 | } | |
32242 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32243 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32244 | } | |
32245 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32246 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32247 | } | |
32248 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32249 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32250 | } | |
32251 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32252 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32253 | } | |
32254 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32255 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32256 | } | |
53aa7709 RD |
32257 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
32258 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
32259 | } | |
d55e5bfc RD |
32260 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
32261 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32262 | } | |
32263 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32264 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32265 | } | |
32266 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32267 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32268 | } | |
32269 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32270 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32271 | } | |
32272 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32273 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32274 | } | |
32275 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32276 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32277 | } | |
32278 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32279 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32280 | } | |
32281 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32282 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32283 | } | |
32284 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32285 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32286 | } | |
32287 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32288 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32289 | } | |
32290 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
32291 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
32292 | } | |
32293 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32294 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32295 | } | |
32296 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32297 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32298 | } | |
32299 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32300 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32301 | } | |
32302 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32303 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32304 | } | |
32305 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32306 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32307 | } | |
32308 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32309 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32310 | } | |
32311 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32312 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32313 | } | |
32314 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
32315 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
32316 | } | |
32317 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
32318 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
32319 | } | |
32320 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
32321 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
32322 | } | |
32323 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
32324 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
32325 | } | |
32326 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
32327 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
32328 | } | |
32329 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
32330 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
32331 | } | |
32332 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
32333 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
32334 | } | |
32335 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
32336 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
32337 | } | |
32338 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
32339 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
32340 | } | |
32341 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
32342 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
32343 | } | |
32344 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
32345 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
32346 | } | |
32347 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
32348 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
32349 | } | |
32350 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
32351 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
32352 | } | |
32353 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
32354 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
32355 | } | |
32356 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
32357 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
32358 | } | |
32359 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
32360 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
32361 | } | |
32362 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
32363 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
32364 | } | |
32365 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32366 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
32367 | } | |
32368 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32369 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
32370 | } | |
32371 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32372 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
32373 | } | |
32374 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32375 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
32376 | } | |
32377 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32378 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
32379 | } | |
32380 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32381 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
32382 | } | |
32383 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32384 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
32385 | } | |
32386 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32387 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32388 | } | |
32389 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32390 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32391 | } | |
32392 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32393 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32394 | } | |
32395 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32396 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32397 | } | |
32398 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
32399 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
32400 | } | |
32401 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32402 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32403 | } | |
32404 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32405 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32406 | } | |
32407 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32408 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32409 | } | |
32410 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32411 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32412 | } | |
32413 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
32414 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
32415 | } | |
32416 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
32417 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
32418 | } | |
32419 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32420 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32421 | } | |
32422 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32423 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32424 | } | |
32425 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32426 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32427 | } | |
32428 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32429 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32430 | } | |
32431 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32432 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32433 | } | |
32434 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32435 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32436 | } | |
32437 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32438 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32439 | } | |
32440 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32441 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32442 | } | |
32443 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32444 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32445 | } | |
32446 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
32447 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
32448 | } | |
32449 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32450 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32451 | } | |
32452 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32453 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32454 | } | |
32455 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32456 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32457 | } | |
32458 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32459 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32460 | } | |
32461 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32462 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32463 | } | |
32464 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
32465 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32466 | } | |
32467 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32468 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32469 | } | |
32470 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32471 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32472 | } | |
32473 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32474 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32475 | } | |
32476 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32477 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32478 | } | |
32479 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32480 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32481 | } | |
32482 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32483 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32484 | } | |
32485 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32486 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32487 | } | |
32488 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
32489 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
32490 | } | |
32491 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32492 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32493 | } | |
32494 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
32495 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
32496 | } | |
32497 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32498 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32499 | } | |
32500 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32501 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32502 | } | |
32503 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32504 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32505 | } | |
32506 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32507 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32508 | } | |
32509 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
32510 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
32511 | } | |
32512 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32513 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32514 | } | |
53aa7709 RD |
32515 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
32516 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
32517 | } | |
d55e5bfc RD |
32518 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
32519 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32520 | } | |
32521 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32522 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32523 | } | |
32524 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32525 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32526 | } | |
32527 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32528 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32529 | } | |
32530 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32531 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32532 | } | |
32533 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32534 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32535 | } | |
32536 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32537 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32538 | } | |
32539 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32540 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32541 | } | |
32542 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32543 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32544 | } | |
32545 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32546 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32547 | } | |
32548 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32549 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32550 | } | |
32551 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32552 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32553 | } | |
32554 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32555 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32556 | } | |
32557 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32558 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32559 | } | |
32560 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32561 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32562 | } | |
32563 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32564 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32565 | } | |
32566 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32567 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32568 | } | |
32569 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32570 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32571 | } | |
32572 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32573 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32574 | } | |
32575 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32576 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32577 | } | |
32578 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32579 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32580 | } | |
51b83b37 RD |
32581 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
32582 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
32583 | } | |
d55e5bfc RD |
32584 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
32585 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32586 | } | |
32587 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32588 | return (void *)((wxObject *) ((wxImage *) x)); | |
32589 | } | |
32590 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32591 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32592 | } | |
32593 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
32594 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
32595 | } | |
32596 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
32597 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
32598 | } | |
32599 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32600 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32601 | } | |
32602 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32603 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32604 | } | |
32605 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32606 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32607 | } | |
32608 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32609 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32610 | } | |
32611 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32612 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32613 | } | |
32614 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32615 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32616 | } | |
32617 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
32618 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
32619 | } | |
32620 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32621 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32622 | } | |
32623 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32624 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32625 | } | |
32626 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32627 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32628 | } | |
32629 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32630 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32631 | } | |
32632 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32633 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32634 | } | |
32635 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32636 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32637 | } | |
32638 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32639 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32640 | } | |
32641 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
32642 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
32643 | } | |
32644 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32645 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32646 | } | |
32647 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32648 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32649 | } | |
32650 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32651 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32652 | } | |
32653 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32654 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32655 | } | |
32656 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32657 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32658 | } | |
32659 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
32660 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
32661 | } | |
32662 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32663 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32664 | } | |
32665 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32666 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32667 | } | |
32668 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32669 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32670 | } | |
32671 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
32672 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
32673 | } | |
32674 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
32675 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
32676 | } | |
32677 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
32678 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
32679 | } | |
32680 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
32681 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
32682 | } | |
32683 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
32684 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
32685 | } | |
32686 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
32687 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
32688 | } | |
32689 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
32690 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
32691 | } | |
32692 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32693 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32694 | } | |
32695 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32696 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32697 | } | |
32698 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32699 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32700 | } | |
32701 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
32702 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
32703 | } | |
32704 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
32705 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
32706 | } | |
32707 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0, 0, 0, 0},{"_p_wxLogChain", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32708 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0, 0, 0, 0},{"_p_wxMutexGuiLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32709 | static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0, 0, 0, 0},{"_p_wxMetafile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32710 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0, 0, 0, 0},{"_p_wxFileHistory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32711 | static swig_type_info _swigt__p_wxLog[] = {{"_p_wxLog", 0, "wxLog *", 0, 0, 0, 0},{"_p_wxLogStderr", _p_wxLogStderrTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogTextCtrl", _p_wxLogTextCtrlTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogWindow", _p_wxLogWindowTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogChain", _p_wxLogChainTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogGui", _p_wxLogGuiTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxPyLog", _p_wxPyLogTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc | 32712 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 32713 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36ed4f51 | 32714 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0, 0, 0, 0},{"_p_wxDateTime__TimeZone", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
32715 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxFileConfig", _p_wxFileConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{"_p_wxConfig", _p_wxConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32716 | static swig_type_info _swigt__p_wxDisplay[] = {{"_p_wxDisplay", 0, "wxDisplay *", 0, 0, 0, 0},{"_p_wxDisplay", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32717 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0, 0, 0, 0},{"_p_wxFileType", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32718 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0, 0, 0, 0},{"_p_wxLogGui", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32719 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32720 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0, 0, 0, 0},{"_p_wxDataFormat", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32721 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0, 0, 0, 0},{"_p_wxTimerEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32722 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 RD |
32723 | static swig_type_info _swigt__ptrdiff_t[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32724 | static swig_type_info _swigt__std__ptrdiff_t[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
32725 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32726 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32727 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0, 0, 0, 0},{"_p_wxClipboard", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32728 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0, 0, 0, 0},{"_p_wxStopWatch", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
68350608 | 32729 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
32730 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0, 0, 0, 0},{"_p_wxClipboardLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32731 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32732 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0, 0, 0, 0},{"_p_wxLogStderr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32733 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0, 0, 0, 0},{"_p_wxLogTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32734 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32735 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
32736 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0, 0, 0, 0},{"_p_wxBitmapDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32737 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0, 0, 0, 0},{"_p_wxTextDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32738 | static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 | 32739 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0, 0, 0, 0},{"_p_wxPyTextDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
03e46024 | 32740 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
32741 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0, 0, 0, 0},{"_p_wxFileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32742 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0, 0, 0, 0},{"_p_wxCustomDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32743 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0, 0, 0, 0},{"_p_wxURLDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32744 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0, 0, 0, 0},{"_p_wxMetafileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32745 | static swig_type_info _swigt__p_wxSound[] = {{"_p_wxSound", 0, "wxSound *", 0, 0, 0, 0},{"_p_wxSound", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32746 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0, 0, 0, 0},{"_p_wxTimerRunner", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32747 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0, 0, 0, 0},{"_p_wxLogWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32748 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0, 0, 0, 0},{"_p_wxTimeSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32749 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32750 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0, 0, 0, 0},{"_p_wxWindowDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 | 32751 | static swig_type_info _swigt__p_form_ops_t[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
32752 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32753 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0, 0, 0, 0},{"_p_wxDataObjectComposite", 0, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
51b83b37 | 32754 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0, 0, 0, 0},{"_p_wxSystemSettings", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
68350608 | 32755 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0, 0, 0, 0},{"_p_wxFileConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc | 32756 | static swig_type_info _swigt__p_wxVideoMode[] = {{"_p_wxVideoMode", 0, "wxVideoMode *", 0, 0, 0, 0},{"_p_wxVideoMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc | 32757 | static swig_type_info _swigt__p_wxDataObjectSimple[] = {{"_p_wxDataObjectSimple", 0, "wxDataObjectSimple *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", 0, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36ed4f51 RD |
32758 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32759 | static swig_type_info _swigt__p_wxDuplexMode[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
32760 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32761 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32762 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32763 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0, 0, 0, 0},{"_p_wxSingleInstanceChecker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
070c48b4 | 32764 | static swig_type_info _swigt__p_wxStandardPaths[] = {{"_p_wxStandardPaths", 0, "wxStandardPaths *", 0, 0, 0, 0},{"_p_wxStandardPaths", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
32765 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0, 0, 0, 0},{"_p_wxFileTypeInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32766 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32767 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0, 0, 0, 0},{"_p_wxTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 | 32768 | static swig_type_info _swigt__p_wxPaperSize[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
32769 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0, 0, 0, 0},{"_p_wxMimeTypesManager", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32770 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0, 0, 0, 0},{"_p_wxPyArtProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32771 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0, 0, 0, 0},{"_p_wxPyTipProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32772 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0, 0, 0, 0},{"_p_wxTipProvider", 0, 0, 0, 0, 0, 0},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32773 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0, 0, 0, 0},{"_p_wxJoystick", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32774 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0, 0, 0, 0},{"_p_wxSystemOptions", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32775 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32776 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0, 0, 0, 0},{"_p_wxJoystickEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32777 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
53aa7709 | 32778 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
32779 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32780 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32781 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0, 0, 0, 0},{"_p_wxPyDropSource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 | 32782 | static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *|wxLogLevel *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
03e46024 | 32783 | static swig_type_info _swigt__p_wxKillError[] = {{"_p_wxKillError", 0, "enum wxKillError *|wxKillError *", 0, 0, 0, 0},{"_p_wxKillError", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
32784 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32785 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32786 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0, 0, 0, 0},{"_p_wxPyProcess", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32787 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32788 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0, 0, 0, 0},{"_p_wxConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 RD |
32789 | static swig_type_info _swigt__unsigned_int[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32790 | static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32791 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
32792 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0, 0, 0, 0},{"_p_wxChar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32793 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0, 0, 0, 0},{"_p_wxBusyInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32794 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDropTarget", _p_wxPyTextDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{"_p_wxPyFileDropTarget", _p_wxPyFileDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32795 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0, 0, 0, 0},{"_p_wxPyTextDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32796 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0, 0, 0, 0},{"_p_wxPyFileDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32797 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0, 0, 0, 0},{"_p_wxProcessEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32798 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0, 0, 0, 0},{"_p_wxPyLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32799 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0, 0, 0, 0},{"_p_wxLogNull", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32800 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc | 32801 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0, 0, 0, 0},{"_p_wxPyTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36ed4f51 | 32802 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0, 0, 0, 0},{"_p_wxConfigPathChanger", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
32803 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0, 0, 0, 0},{"_p_wxDateSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32804 | ||
32805 | static swig_type_info *swig_types_initial[] = { | |
32806 | _swigt__p_wxLogChain, | |
32807 | _swigt__p_wxMutexGuiLocker, | |
32808 | _swigt__p_wxMetafile, | |
32809 | _swigt__p_wxFileHistory, | |
32810 | _swigt__p_wxLog, | |
d55e5bfc RD |
32811 | _swigt__p_wxMenu, |
32812 | _swigt__p_wxEvent, | |
36ed4f51 | 32813 | _swigt__p_wxDateTime__TimeZone, |
d55e5bfc RD |
32814 | _swigt__p_wxConfigBase, |
32815 | _swigt__p_wxDisplay, | |
32816 | _swigt__p_wxFileType, | |
32817 | _swigt__p_wxLogGui, | |
32818 | _swigt__p_wxFont, | |
32819 | _swigt__p_wxDataFormat, | |
32820 | _swigt__p_wxTimerEvent, | |
32821 | _swigt__p_wxCaret, | |
36ed4f51 RD |
32822 | _swigt__ptrdiff_t, |
32823 | _swigt__std__ptrdiff_t, | |
d55e5bfc RD |
32824 | _swigt__p_int, |
32825 | _swigt__p_wxSize, | |
32826 | _swigt__p_wxClipboard, | |
32827 | _swigt__p_wxStopWatch, | |
68350608 | 32828 | _swigt__p_wxDC, |
d55e5bfc RD |
32829 | _swigt__p_wxClipboardLocker, |
32830 | _swigt__p_wxIcon, | |
32831 | _swigt__p_wxLogStderr, | |
32832 | _swigt__p_wxLogTextCtrl, | |
32833 | _swigt__p_wxTextCtrl, | |
32834 | _swigt__p_wxBusyCursor, | |
d55e5bfc RD |
32835 | _swigt__p_wxBitmapDataObject, |
32836 | _swigt__p_wxTextDataObject, | |
32837 | _swigt__p_wxDataObject, | |
36ed4f51 | 32838 | _swigt__p_wxPyTextDataObject, |
03e46024 | 32839 | _swigt__p_wxPyBitmapDataObject, |
d55e5bfc RD |
32840 | _swigt__p_wxFileDataObject, |
32841 | _swigt__p_wxCustomDataObject, | |
32842 | _swigt__p_wxURLDataObject, | |
32843 | _swigt__p_wxMetafileDataObject, | |
32844 | _swigt__p_wxSound, | |
32845 | _swigt__p_wxTimerRunner, | |
32846 | _swigt__p_wxLogWindow, | |
32847 | _swigt__p_wxTimeSpan, | |
32848 | _swigt__p_wxArrayString, | |
32849 | _swigt__p_wxWindowDisabler, | |
36ed4f51 | 32850 | _swigt__p_form_ops_t, |
d55e5bfc RD |
32851 | _swigt__p_wxToolTip, |
32852 | _swigt__p_wxDataObjectComposite, | |
51b83b37 | 32853 | _swigt__p_wxSystemSettings, |
68350608 | 32854 | _swigt__p_wxFileConfig, |
d55e5bfc | 32855 | _swigt__p_wxVideoMode, |
d55e5bfc | 32856 | _swigt__p_wxDataObjectSimple, |
36ed4f51 RD |
32857 | _swigt__p_wxPyDataObjectSimple, |
32858 | _swigt__p_wxDuplexMode, | |
d55e5bfc RD |
32859 | _swigt__p_wxEvtHandler, |
32860 | _swigt__p_wxRect, | |
32861 | _swigt__p_char, | |
32862 | _swigt__p_wxSingleInstanceChecker, | |
070c48b4 | 32863 | _swigt__p_wxStandardPaths, |
d55e5bfc RD |
32864 | _swigt__p_wxFileTypeInfo, |
32865 | _swigt__p_wxFrame, | |
32866 | _swigt__p_wxTimer, | |
36ed4f51 | 32867 | _swigt__p_wxPaperSize, |
d55e5bfc RD |
32868 | _swigt__p_wxMimeTypesManager, |
32869 | _swigt__p_wxPyArtProvider, | |
32870 | _swigt__p_wxPyTipProvider, | |
32871 | _swigt__p_wxTipProvider, | |
32872 | _swigt__p_wxJoystick, | |
32873 | _swigt__p_wxSystemOptions, | |
32874 | _swigt__p_wxPoint, | |
32875 | _swigt__p_wxJoystickEvent, | |
32876 | _swigt__p_wxCursor, | |
32877 | _swigt__p_wxObject, | |
32878 | _swigt__p_wxOutputStream, | |
32879 | _swigt__p_wxDateTime, | |
32880 | _swigt__p_wxPyDropSource, | |
36ed4f51 | 32881 | _swigt__p_unsigned_long, |
03e46024 | 32882 | _swigt__p_wxKillError, |
d55e5bfc RD |
32883 | _swigt__p_wxWindow, |
32884 | _swigt__p_wxString, | |
32885 | _swigt__p_wxPyProcess, | |
32886 | _swigt__p_wxBitmap, | |
32887 | _swigt__p_wxConfig, | |
36ed4f51 RD |
32888 | _swigt__unsigned_int, |
32889 | _swigt__p_unsigned_int, | |
32890 | _swigt__p_unsigned_char, | |
d55e5bfc RD |
32891 | _swigt__p_wxChar, |
32892 | _swigt__p_wxBusyInfo, | |
32893 | _swigt__p_wxPyDropTarget, | |
32894 | _swigt__p_wxPyTextDropTarget, | |
32895 | _swigt__p_wxPyFileDropTarget, | |
32896 | _swigt__p_wxProcessEvent, | |
32897 | _swigt__p_wxPyLog, | |
32898 | _swigt__p_wxLogNull, | |
32899 | _swigt__p_wxColour, | |
d55e5bfc | 32900 | _swigt__p_wxPyTimer, |
36ed4f51 | 32901 | _swigt__p_wxConfigPathChanger, |
d55e5bfc RD |
32902 | _swigt__p_wxDateSpan, |
32903 | 0 | |
32904 | }; | |
32905 | ||
32906 | ||
32907 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
32908 | ||
32909 | static swig_const_info swig_const_table[] = { | |
32910 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
32911 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
32912 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
32913 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
32914 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
c370783e | 32915 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
32916 | |
32917 | #ifdef __cplusplus | |
32918 | } | |
32919 | #endif | |
32920 | ||
36ed4f51 RD |
32921 | |
32922 | #ifdef __cplusplus | |
32923 | extern "C" { | |
32924 | #endif | |
32925 | ||
32926 | /* Python-specific SWIG API */ | |
32927 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
32928 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
32929 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
32930 | ||
32931 | /* ----------------------------------------------------------------------------- | |
32932 | * global variable support code. | |
32933 | * ----------------------------------------------------------------------------- */ | |
32934 | ||
32935 | typedef struct swig_globalvar { | |
32936 | char *name; /* Name of global variable */ | |
32937 | PyObject *(*get_attr)(); /* Return the current value */ | |
32938 | int (*set_attr)(PyObject *); /* Set the value */ | |
32939 | struct swig_globalvar *next; | |
32940 | } swig_globalvar; | |
32941 | ||
32942 | typedef struct swig_varlinkobject { | |
32943 | PyObject_HEAD | |
32944 | swig_globalvar *vars; | |
32945 | } swig_varlinkobject; | |
32946 | ||
32947 | static PyObject * | |
32948 | swig_varlink_repr(swig_varlinkobject *v) { | |
32949 | v = v; | |
32950 | return PyString_FromString("<Swig global variables>"); | |
32951 | } | |
32952 | ||
32953 | static int | |
32954 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
32955 | swig_globalvar *var; | |
32956 | flags = flags; | |
32957 | fprintf(fp,"Swig global variables { "); | |
32958 | for (var = v->vars; var; var=var->next) { | |
32959 | fprintf(fp,"%s", var->name); | |
32960 | if (var->next) fprintf(fp,", "); | |
32961 | } | |
32962 | fprintf(fp," }\n"); | |
32963 | return 0; | |
32964 | } | |
32965 | ||
32966 | static PyObject * | |
32967 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
32968 | swig_globalvar *var = v->vars; | |
32969 | while (var) { | |
32970 | if (strcmp(var->name,n) == 0) { | |
32971 | return (*var->get_attr)(); | |
32972 | } | |
32973 | var = var->next; | |
32974 | } | |
32975 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
32976 | return NULL; | |
32977 | } | |
32978 | ||
32979 | static int | |
32980 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
32981 | swig_globalvar *var = v->vars; | |
32982 | while (var) { | |
32983 | if (strcmp(var->name,n) == 0) { | |
32984 | return (*var->set_attr)(p); | |
32985 | } | |
32986 | var = var->next; | |
32987 | } | |
32988 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
32989 | return 1; | |
32990 | } | |
32991 | ||
32992 | static PyTypeObject varlinktype = { | |
32993 | PyObject_HEAD_INIT(0) | |
32994 | 0, /* Number of items in variable part (ob_size) */ | |
32995 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
32996 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
32997 | 0, /* Itemsize (tp_itemsize) */ | |
32998 | 0, /* Deallocator (tp_dealloc) */ | |
32999 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
33000 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
33001 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
33002 | 0, /* tp_compare */ | |
33003 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
33004 | 0, /* tp_as_number */ | |
33005 | 0, /* tp_as_sequence */ | |
33006 | 0, /* tp_as_mapping */ | |
33007 | 0, /* tp_hash */ | |
33008 | 0, /* tp_call */ | |
33009 | 0, /* tp_str */ | |
33010 | 0, /* tp_getattro */ | |
33011 | 0, /* tp_setattro */ | |
33012 | 0, /* tp_as_buffer */ | |
33013 | 0, /* tp_flags */ | |
33014 | 0, /* tp_doc */ | |
33015 | #if PY_VERSION_HEX >= 0x02000000 | |
33016 | 0, /* tp_traverse */ | |
33017 | 0, /* tp_clear */ | |
33018 | #endif | |
33019 | #if PY_VERSION_HEX >= 0x02010000 | |
33020 | 0, /* tp_richcompare */ | |
33021 | 0, /* tp_weaklistoffset */ | |
33022 | #endif | |
33023 | #if PY_VERSION_HEX >= 0x02020000 | |
33024 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
33025 | #endif | |
33026 | #if PY_VERSION_HEX >= 0x02030000 | |
33027 | 0, /* tp_del */ | |
33028 | #endif | |
33029 | #ifdef COUNT_ALLOCS | |
33030 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
33031 | #endif | |
33032 | }; | |
33033 | ||
33034 | /* Create a variable linking object for use later */ | |
33035 | static PyObject * | |
33036 | SWIG_Python_newvarlink(void) { | |
33037 | swig_varlinkobject *result = 0; | |
33038 | result = PyMem_NEW(swig_varlinkobject,1); | |
33039 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
33040 | result->ob_type = &varlinktype; | |
33041 | result->vars = 0; | |
33042 | result->ob_refcnt = 0; | |
33043 | Py_XINCREF((PyObject *) result); | |
33044 | return ((PyObject*) result); | |
33045 | } | |
33046 | ||
33047 | static void | |
33048 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
33049 | swig_varlinkobject *v; | |
33050 | swig_globalvar *gv; | |
33051 | v= (swig_varlinkobject *) p; | |
33052 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
33053 | gv->name = (char *) malloc(strlen(name)+1); | |
33054 | strcpy(gv->name,name); | |
33055 | gv->get_attr = get_attr; | |
33056 | gv->set_attr = set_attr; | |
33057 | gv->next = v->vars; | |
33058 | v->vars = gv; | |
33059 | } | |
33060 | ||
33061 | /* ----------------------------------------------------------------------------- | |
33062 | * constants/methods manipulation | |
33063 | * ----------------------------------------------------------------------------- */ | |
33064 | ||
33065 | /* Install Constants */ | |
33066 | static void | |
33067 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
33068 | PyObject *obj = 0; | |
33069 | size_t i; | |
33070 | for (i = 0; constants[i].type; i++) { | |
33071 | switch(constants[i].type) { | |
33072 | case SWIG_PY_INT: | |
33073 | obj = PyInt_FromLong(constants[i].lvalue); | |
33074 | break; | |
33075 | case SWIG_PY_FLOAT: | |
33076 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
33077 | break; | |
33078 | case SWIG_PY_STRING: | |
33079 | if (constants[i].pvalue) { | |
33080 | obj = PyString_FromString((char *) constants[i].pvalue); | |
33081 | } else { | |
33082 | Py_INCREF(Py_None); | |
33083 | obj = Py_None; | |
33084 | } | |
33085 | break; | |
33086 | case SWIG_PY_POINTER: | |
33087 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
33088 | break; | |
33089 | case SWIG_PY_BINARY: | |
33090 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
33091 | break; | |
33092 | default: | |
33093 | obj = 0; | |
33094 | break; | |
33095 | } | |
33096 | if (obj) { | |
33097 | PyDict_SetItemString(d,constants[i].name,obj); | |
33098 | Py_DECREF(obj); | |
33099 | } | |
33100 | } | |
33101 | } | |
33102 | ||
33103 | /* -----------------------------------------------------------------------------*/ | |
33104 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33105 | /* -----------------------------------------------------------------------------*/ | |
33106 | ||
33107 | static void | |
33108 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
33109 | swig_const_info *const_table, | |
33110 | swig_type_info **types, | |
33111 | swig_type_info **types_initial) { | |
33112 | size_t i; | |
33113 | for (i = 0; methods[i].ml_name; ++i) { | |
33114 | char *c = methods[i].ml_doc; | |
33115 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
33116 | int j; | |
33117 | swig_const_info *ci = 0; | |
33118 | char *name = c + 10; | |
33119 | for (j = 0; const_table[j].type; j++) { | |
33120 | if (strncmp(const_table[j].name, name, | |
33121 | strlen(const_table[j].name)) == 0) { | |
33122 | ci = &(const_table[j]); | |
33123 | break; | |
33124 | } | |
33125 | } | |
33126 | if (ci) { | |
33127 | size_t shift = (ci->ptype) - types; | |
33128 | swig_type_info *ty = types_initial[shift]; | |
33129 | size_t ldoc = (c - methods[i].ml_doc); | |
33130 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
33131 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
33132 | char *buff = ndoc; | |
33133 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
33134 | strncpy(buff, methods[i].ml_doc, ldoc); | |
33135 | buff += ldoc; | |
33136 | strncpy(buff, "swig_ptr: ", 10); | |
33137 | buff += 10; | |
33138 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
33139 | methods[i].ml_doc = ndoc; | |
33140 | } | |
33141 | } | |
33142 | } | |
33143 | } | |
33144 | ||
33145 | /* -----------------------------------------------------------------------------* | |
33146 | * Initialize type list | |
33147 | * -----------------------------------------------------------------------------*/ | |
33148 | ||
33149 | #if PY_MAJOR_VERSION < 2 | |
33150 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
33151 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
33152 | static int | |
33153 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
33154 | { | |
33155 | PyObject *dict; | |
33156 | if (!PyModule_Check(m)) { | |
33157 | PyErr_SetString(PyExc_TypeError, | |
33158 | "PyModule_AddObject() needs module as first arg"); | |
33159 | return -1; | |
33160 | } | |
33161 | if (!o) { | |
33162 | PyErr_SetString(PyExc_TypeError, | |
33163 | "PyModule_AddObject() needs non-NULL value"); | |
33164 | return -1; | |
33165 | } | |
33166 | ||
33167 | dict = PyModule_GetDict(m); | |
33168 | if (dict == NULL) { | |
33169 | /* Internal error -- modules must have a dict! */ | |
33170 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
33171 | PyModule_GetName(m)); | |
33172 | return -1; | |
33173 | } | |
33174 | if (PyDict_SetItemString(dict, name, o)) | |
33175 | return -1; | |
33176 | Py_DECREF(o); | |
33177 | return 0; | |
33178 | } | |
33179 | #endif | |
33180 | ||
33181 | static swig_type_info ** | |
33182 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
33183 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
33184 | { | |
33185 | NULL, NULL, 0, NULL | |
33186 | } | |
33187 | };/* Sentinel */ | |
33188 | ||
33189 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
33190 | swig_empty_runtime_method_table); | |
33191 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
33192 | if (pointer && module) { | |
33193 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
33194 | } | |
33195 | return type_list_handle; | |
33196 | } | |
33197 | ||
33198 | static swig_type_info ** | |
33199 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
33200 | swig_type_info **type_pointer; | |
33201 | ||
33202 | /* first check if module already created */ | |
33203 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
33204 | if (type_pointer) { | |
33205 | return type_pointer; | |
33206 | } else { | |
33207 | /* create a new module and variable */ | |
33208 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
33209 | } | |
33210 | } | |
33211 | ||
33212 | #ifdef __cplusplus | |
33213 | } | |
33214 | #endif | |
33215 | ||
33216 | /* -----------------------------------------------------------------------------* | |
33217 | * Partial Init method | |
33218 | * -----------------------------------------------------------------------------*/ | |
33219 | ||
33220 | #ifdef SWIG_LINK_RUNTIME | |
33221 | #ifdef __cplusplus | |
33222 | extern "C" | |
33223 | #endif | |
33224 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
33225 | #endif | |
33226 | ||
d55e5bfc RD |
33227 | #ifdef __cplusplus |
33228 | extern "C" | |
33229 | #endif | |
33230 | SWIGEXPORT(void) SWIG_init(void) { | |
33231 | static PyObject *SWIG_globals = 0; | |
33232 | static int typeinit = 0; | |
33233 | PyObject *m, *d; | |
33234 | int i; | |
33235 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
36ed4f51 RD |
33236 | |
33237 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33238 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
33239 | ||
d55e5bfc RD |
33240 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
33241 | d = PyModule_GetDict(m); | |
33242 | ||
33243 | if (!typeinit) { | |
36ed4f51 RD |
33244 | #ifdef SWIG_LINK_RUNTIME |
33245 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
33246 | #else | |
33247 | # ifndef SWIG_STATIC_RUNTIME | |
33248 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
33249 | # endif | |
33250 | #endif | |
d55e5bfc RD |
33251 | for (i = 0; swig_types_initial[i]; i++) { |
33252 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33253 | } | |
33254 | typeinit = 1; | |
33255 | } | |
33256 | SWIG_InstallConstants(d,swig_const_table); | |
33257 | ||
36ed4f51 RD |
33258 | { |
33259 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)(wxSYS_OEM_FIXED_FONT))); | |
33260 | } | |
33261 | { | |
33262 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)(wxSYS_ANSI_FIXED_FONT))); | |
33263 | } | |
33264 | { | |
33265 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)(wxSYS_ANSI_VAR_FONT))); | |
33266 | } | |
33267 | { | |
33268 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)(wxSYS_SYSTEM_FONT))); | |
33269 | } | |
33270 | { | |
33271 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)(wxSYS_DEVICE_DEFAULT_FONT))); | |
33272 | } | |
33273 | { | |
33274 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)(wxSYS_DEFAULT_PALETTE))); | |
33275 | } | |
33276 | { | |
33277 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)(wxSYS_SYSTEM_FIXED_FONT))); | |
33278 | } | |
33279 | { | |
33280 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)(wxSYS_DEFAULT_GUI_FONT))); | |
33281 | } | |
33282 | { | |
33283 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)(wxSYS_ICONTITLE_FONT))); | |
33284 | } | |
33285 | { | |
33286 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)(wxSYS_COLOUR_SCROLLBAR))); | |
33287 | } | |
33288 | { | |
33289 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)(wxSYS_COLOUR_BACKGROUND))); | |
33290 | } | |
33291 | { | |
33292 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)(wxSYS_COLOUR_DESKTOP))); | |
33293 | } | |
33294 | { | |
33295 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)(wxSYS_COLOUR_ACTIVECAPTION))); | |
33296 | } | |
33297 | { | |
33298 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)(wxSYS_COLOUR_INACTIVECAPTION))); | |
33299 | } | |
33300 | { | |
33301 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)(wxSYS_COLOUR_MENU))); | |
33302 | } | |
33303 | { | |
33304 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)(wxSYS_COLOUR_WINDOW))); | |
33305 | } | |
33306 | { | |
33307 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)(wxSYS_COLOUR_WINDOWFRAME))); | |
33308 | } | |
33309 | { | |
33310 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)(wxSYS_COLOUR_MENUTEXT))); | |
33311 | } | |
33312 | { | |
33313 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)(wxSYS_COLOUR_WINDOWTEXT))); | |
33314 | } | |
33315 | { | |
33316 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)(wxSYS_COLOUR_CAPTIONTEXT))); | |
33317 | } | |
33318 | { | |
33319 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)(wxSYS_COLOUR_ACTIVEBORDER))); | |
33320 | } | |
33321 | { | |
33322 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)(wxSYS_COLOUR_INACTIVEBORDER))); | |
33323 | } | |
33324 | { | |
33325 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)(wxSYS_COLOUR_APPWORKSPACE))); | |
33326 | } | |
33327 | { | |
33328 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)(wxSYS_COLOUR_HIGHLIGHT))); | |
33329 | } | |
33330 | { | |
33331 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)(wxSYS_COLOUR_HIGHLIGHTTEXT))); | |
33332 | } | |
33333 | { | |
33334 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)(wxSYS_COLOUR_BTNFACE))); | |
33335 | } | |
33336 | { | |
33337 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)(wxSYS_COLOUR_3DFACE))); | |
33338 | } | |
33339 | { | |
33340 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)(wxSYS_COLOUR_BTNSHADOW))); | |
33341 | } | |
33342 | { | |
33343 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)(wxSYS_COLOUR_3DSHADOW))); | |
33344 | } | |
33345 | { | |
33346 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)(wxSYS_COLOUR_GRAYTEXT))); | |
33347 | } | |
33348 | { | |
33349 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)(wxSYS_COLOUR_BTNTEXT))); | |
33350 | } | |
33351 | { | |
33352 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)(wxSYS_COLOUR_INACTIVECAPTIONTEXT))); | |
33353 | } | |
33354 | { | |
33355 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)(wxSYS_COLOUR_BTNHIGHLIGHT))); | |
33356 | } | |
33357 | { | |
33358 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)(wxSYS_COLOUR_BTNHILIGHT))); | |
33359 | } | |
33360 | { | |
33361 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)(wxSYS_COLOUR_3DHIGHLIGHT))); | |
33362 | } | |
33363 | { | |
33364 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)(wxSYS_COLOUR_3DHILIGHT))); | |
33365 | } | |
33366 | { | |
33367 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)(wxSYS_COLOUR_3DDKSHADOW))); | |
33368 | } | |
33369 | { | |
33370 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)(wxSYS_COLOUR_3DLIGHT))); | |
33371 | } | |
33372 | { | |
33373 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)(wxSYS_COLOUR_INFOTEXT))); | |
33374 | } | |
33375 | { | |
33376 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)(wxSYS_COLOUR_INFOBK))); | |
33377 | } | |
33378 | { | |
33379 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)(wxSYS_COLOUR_LISTBOX))); | |
33380 | } | |
33381 | { | |
33382 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)(wxSYS_COLOUR_HOTLIGHT))); | |
33383 | } | |
33384 | { | |
33385 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)(wxSYS_COLOUR_GRADIENTACTIVECAPTION))); | |
33386 | } | |
33387 | { | |
33388 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)(wxSYS_COLOUR_GRADIENTINACTIVECAPTION))); | |
33389 | } | |
33390 | { | |
33391 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)(wxSYS_COLOUR_MENUHILIGHT))); | |
33392 | } | |
33393 | { | |
33394 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)(wxSYS_COLOUR_MENUBAR))); | |
33395 | } | |
33396 | { | |
33397 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)(wxSYS_COLOUR_MAX))); | |
33398 | } | |
33399 | { | |
33400 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)(wxSYS_MOUSE_BUTTONS))); | |
33401 | } | |
33402 | { | |
33403 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)(wxSYS_BORDER_X))); | |
33404 | } | |
33405 | { | |
33406 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)(wxSYS_BORDER_Y))); | |
33407 | } | |
33408 | { | |
33409 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)(wxSYS_CURSOR_X))); | |
33410 | } | |
33411 | { | |
33412 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)(wxSYS_CURSOR_Y))); | |
33413 | } | |
33414 | { | |
33415 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)(wxSYS_DCLICK_X))); | |
33416 | } | |
33417 | { | |
33418 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)(wxSYS_DCLICK_Y))); | |
33419 | } | |
33420 | { | |
33421 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)(wxSYS_DRAG_X))); | |
33422 | } | |
33423 | { | |
33424 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)(wxSYS_DRAG_Y))); | |
33425 | } | |
33426 | { | |
33427 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)(wxSYS_EDGE_X))); | |
33428 | } | |
33429 | { | |
33430 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)(wxSYS_EDGE_Y))); | |
33431 | } | |
33432 | { | |
33433 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)(wxSYS_HSCROLL_ARROW_X))); | |
33434 | } | |
33435 | { | |
33436 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)(wxSYS_HSCROLL_ARROW_Y))); | |
33437 | } | |
33438 | { | |
33439 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)(wxSYS_HTHUMB_X))); | |
33440 | } | |
33441 | { | |
33442 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)(wxSYS_ICON_X))); | |
33443 | } | |
33444 | { | |
33445 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)(wxSYS_ICON_Y))); | |
33446 | } | |
33447 | { | |
33448 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)(wxSYS_ICONSPACING_X))); | |
33449 | } | |
33450 | { | |
33451 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)(wxSYS_ICONSPACING_Y))); | |
33452 | } | |
33453 | { | |
33454 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)(wxSYS_WINDOWMIN_X))); | |
33455 | } | |
33456 | { | |
33457 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)(wxSYS_WINDOWMIN_Y))); | |
33458 | } | |
33459 | { | |
33460 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)(wxSYS_SCREEN_X))); | |
33461 | } | |
33462 | { | |
33463 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)(wxSYS_SCREEN_Y))); | |
33464 | } | |
33465 | { | |
33466 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)(wxSYS_FRAMESIZE_X))); | |
33467 | } | |
33468 | { | |
33469 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)(wxSYS_FRAMESIZE_Y))); | |
33470 | } | |
33471 | { | |
33472 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)(wxSYS_SMALLICON_X))); | |
33473 | } | |
33474 | { | |
33475 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)(wxSYS_SMALLICON_Y))); | |
33476 | } | |
33477 | { | |
33478 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)(wxSYS_HSCROLL_Y))); | |
33479 | } | |
33480 | { | |
33481 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)(wxSYS_VSCROLL_X))); | |
33482 | } | |
33483 | { | |
33484 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)(wxSYS_VSCROLL_ARROW_X))); | |
33485 | } | |
33486 | { | |
33487 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)(wxSYS_VSCROLL_ARROW_Y))); | |
33488 | } | |
33489 | { | |
33490 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)(wxSYS_VTHUMB_Y))); | |
33491 | } | |
33492 | { | |
33493 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)(wxSYS_CAPTION_Y))); | |
33494 | } | |
33495 | { | |
33496 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)(wxSYS_MENU_Y))); | |
33497 | } | |
33498 | { | |
33499 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)(wxSYS_NETWORK_PRESENT))); | |
33500 | } | |
33501 | { | |
33502 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)(wxSYS_PENWINDOWS_PRESENT))); | |
33503 | } | |
33504 | { | |
33505 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)(wxSYS_SHOW_SOUNDS))); | |
33506 | } | |
33507 | { | |
33508 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)(wxSYS_SWAP_BUTTONS))); | |
33509 | } | |
33510 | { | |
33511 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)(wxSYS_CAN_DRAW_FRAME_DECORATIONS))); | |
33512 | } | |
33513 | { | |
33514 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)(wxSYS_CAN_ICONIZE_FRAME))); | |
33515 | } | |
33516 | { | |
33517 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)(wxSYS_SCREEN_NONE))); | |
33518 | } | |
33519 | { | |
33520 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)(wxSYS_SCREEN_TINY))); | |
33521 | } | |
33522 | { | |
33523 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)(wxSYS_SCREEN_PDA))); | |
33524 | } | |
33525 | { | |
33526 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)(wxSYS_SCREEN_SMALL))); | |
33527 | } | |
33528 | { | |
33529 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)(wxSYS_SCREEN_DESKTOP))); | |
33530 | } | |
d55e5bfc | 33531 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
629e65c2 | 33532 | SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set); |
d55e5bfc RD |
33533 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); |
33534 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
33535 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
36ed4f51 RD |
33536 | { |
33537 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)(wxSHUTDOWN_POWEROFF))); | |
33538 | } | |
33539 | { | |
33540 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)(wxSHUTDOWN_REBOOT))); | |
33541 | } | |
33542 | { | |
33543 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)(wxTIMER_CONTINUOUS))); | |
33544 | } | |
33545 | { | |
33546 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)(wxTIMER_ONE_SHOT))); | |
33547 | } | |
d55e5bfc | 33548 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
1a6bba1e RD |
33549 | |
33550 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
33551 | ||
36ed4f51 RD |
33552 | { |
33553 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)(wxLOG_FatalError))); | |
33554 | } | |
33555 | { | |
33556 | PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)(wxLOG_Error))); | |
33557 | } | |
33558 | { | |
33559 | PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)(wxLOG_Warning))); | |
33560 | } | |
33561 | { | |
33562 | PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)(wxLOG_Message))); | |
33563 | } | |
33564 | { | |
33565 | PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)(wxLOG_Status))); | |
33566 | } | |
33567 | { | |
33568 | PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)(wxLOG_Info))); | |
33569 | } | |
33570 | { | |
33571 | PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)(wxLOG_Debug))); | |
33572 | } | |
33573 | { | |
33574 | PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)(wxLOG_Trace))); | |
33575 | } | |
33576 | { | |
33577 | PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)(wxLOG_Progress))); | |
33578 | } | |
33579 | { | |
33580 | PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)(wxLOG_User))); | |
33581 | } | |
33582 | { | |
33583 | PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)(wxLOG_Max))); | |
33584 | } | |
d55e5bfc RD |
33585 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); |
33586 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
33587 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
33588 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
33589 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
36ed4f51 RD |
33590 | { |
33591 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)(0x0001))); | |
33592 | } | |
33593 | { | |
33594 | PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)(0x0002))); | |
33595 | } | |
33596 | { | |
33597 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)(0x0004))); | |
33598 | } | |
33599 | { | |
33600 | PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)(0x0008))); | |
33601 | } | |
33602 | { | |
33603 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)(0x0100))); | |
33604 | } | |
33605 | { | |
33606 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)(wxPROCESS_DEFAULT))); | |
33607 | } | |
33608 | { | |
33609 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)(wxPROCESS_REDIRECT))); | |
33610 | } | |
33611 | { | |
33612 | PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)(wxKILL_OK))); | |
33613 | } | |
33614 | { | |
33615 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)(wxKILL_BAD_SIGNAL))); | |
33616 | } | |
33617 | { | |
33618 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)(wxKILL_ACCESS_DENIED))); | |
33619 | } | |
33620 | { | |
33621 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)(wxKILL_NO_PROCESS))); | |
33622 | } | |
33623 | { | |
33624 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)(wxKILL_ERROR))); | |
33625 | } | |
33626 | { | |
33627 | PyDict_SetItemString(d,"KILL_NOCHILDREN", SWIG_From_int((int)(wxKILL_NOCHILDREN))); | |
33628 | } | |
33629 | { | |
33630 | PyDict_SetItemString(d,"KILL_CHILDREN", SWIG_From_int((int)(wxKILL_CHILDREN))); | |
33631 | } | |
33632 | { | |
33633 | PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)(wxSIGNONE))); | |
33634 | } | |
33635 | { | |
33636 | PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)(wxSIGHUP))); | |
33637 | } | |
33638 | { | |
33639 | PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)(wxSIGINT))); | |
33640 | } | |
33641 | { | |
33642 | PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)(wxSIGQUIT))); | |
33643 | } | |
33644 | { | |
33645 | PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)(wxSIGILL))); | |
33646 | } | |
33647 | { | |
33648 | PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)(wxSIGTRAP))); | |
33649 | } | |
33650 | { | |
33651 | PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)(wxSIGABRT))); | |
33652 | } | |
33653 | { | |
33654 | PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)(wxSIGIOT))); | |
33655 | } | |
33656 | { | |
33657 | PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)(wxSIGEMT))); | |
33658 | } | |
33659 | { | |
33660 | PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)(wxSIGFPE))); | |
33661 | } | |
33662 | { | |
33663 | PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)(wxSIGKILL))); | |
33664 | } | |
33665 | { | |
33666 | PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)(wxSIGBUS))); | |
33667 | } | |
33668 | { | |
33669 | PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)(wxSIGSEGV))); | |
33670 | } | |
33671 | { | |
33672 | PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)(wxSIGSYS))); | |
33673 | } | |
33674 | { | |
33675 | PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)(wxSIGPIPE))); | |
33676 | } | |
33677 | { | |
33678 | PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)(wxSIGALRM))); | |
33679 | } | |
33680 | { | |
33681 | PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)(wxSIGTERM))); | |
33682 | } | |
33683 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
33684 | { | |
33685 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)(wxEXEC_ASYNC))); | |
33686 | } | |
33687 | { | |
33688 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)(wxEXEC_SYNC))); | |
33689 | } | |
33690 | { | |
33691 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)(wxEXEC_NOHIDE))); | |
33692 | } | |
33693 | { | |
33694 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)(wxEXEC_MAKE_GROUP_LEADER))); | |
33695 | } | |
33696 | { | |
33697 | PyDict_SetItemString(d,"EXEC_NODISABLE", SWIG_From_int((int)(wxEXEC_NODISABLE))); | |
33698 | } | |
33699 | ||
33700 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
33701 | ||
33702 | { | |
33703 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)(wxJOYSTICK1))); | |
33704 | } | |
33705 | { | |
33706 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)(wxJOYSTICK2))); | |
33707 | } | |
33708 | { | |
33709 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)(wxJOY_BUTTON_ANY))); | |
33710 | } | |
33711 | { | |
33712 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)(wxJOY_BUTTON1))); | |
33713 | } | |
33714 | { | |
33715 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)(wxJOY_BUTTON2))); | |
33716 | } | |
33717 | { | |
33718 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)(wxJOY_BUTTON3))); | |
33719 | } | |
33720 | { | |
33721 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)(wxJOY_BUTTON4))); | |
33722 | } | |
33723 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
33724 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
33725 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
33726 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
33727 | { | |
33728 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)(wxSOUND_SYNC))); | |
33729 | } | |
33730 | { | |
33731 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)(wxSOUND_ASYNC))); | |
33732 | } | |
33733 | { | |
33734 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)(wxSOUND_LOOP))); | |
33735 | } | |
33736 | { | |
33737 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)(wxMAILCAP_STANDARD))); | |
33738 | } | |
33739 | { | |
33740 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)(wxMAILCAP_NETSCAPE))); | |
33741 | } | |
33742 | { | |
33743 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)(wxMAILCAP_KDE))); | |
33744 | } | |
33745 | { | |
33746 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)(wxMAILCAP_GNOME))); | |
33747 | } | |
33748 | { | |
33749 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)(wxMAILCAP_ALL))); | |
33750 | } | |
33751 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
33752 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
33753 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
33754 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
33755 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
33756 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
33757 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
33758 | SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set); | |
33759 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
33760 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
33761 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
33762 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
33763 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
33764 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
33765 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
33766 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
33767 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
33768 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
33769 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
33770 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
33771 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
33772 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
33773 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
68350608 RD |
33774 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE",_wrap_ART_FILE_SAVE_get, _wrap_ART_FILE_SAVE_set); |
33775 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE_AS",_wrap_ART_FILE_SAVE_AS_get, _wrap_ART_FILE_SAVE_AS_set); | |
36ed4f51 RD |
33776 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); |
33777 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
33778 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
33779 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
33780 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
33781 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
33782 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HARDDISK",_wrap_ART_HARDDISK_get, _wrap_ART_HARDDISK_set); | |
33783 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FLOPPY",_wrap_ART_FLOPPY_get, _wrap_ART_FLOPPY_set); | |
33784 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CDROM",_wrap_ART_CDROM_get, _wrap_ART_CDROM_set); | |
33785 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REMOVABLE",_wrap_ART_REMOVABLE_get, _wrap_ART_REMOVABLE_set); | |
d55e5bfc | 33786 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); |
f78cc896 | 33787 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER_OPEN",_wrap_ART_FOLDER_OPEN_get, _wrap_ART_FOLDER_OPEN_set); |
d55e5bfc RD |
33788 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); |
33789 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
33790 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
33791 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
33792 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
33793 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
33794 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
33795 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
33796 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
33797 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
68350608 RD |
33798 | SWIG_addvarlink(SWIG_globals,(char*)"ART_COPY",_wrap_ART_COPY_get, _wrap_ART_COPY_set); |
33799 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CUT",_wrap_ART_CUT_get, _wrap_ART_CUT_set); | |
33800 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PASTE",_wrap_ART_PASTE_get, _wrap_ART_PASTE_set); | |
33801 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DELETE",_wrap_ART_DELETE_get, _wrap_ART_DELETE_set); | |
33802 | SWIG_addvarlink(SWIG_globals,(char*)"ART_UNDO",_wrap_ART_UNDO_get, _wrap_ART_UNDO_set); | |
33803 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REDO",_wrap_ART_REDO_get, _wrap_ART_REDO_set); | |
33804 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUIT",_wrap_ART_QUIT_get, _wrap_ART_QUIT_set); | |
33805 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND",_wrap_ART_FIND_get, _wrap_ART_FIND_set); | |
33806 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND_AND_REPLACE",_wrap_ART_FIND_AND_REPLACE_get, _wrap_ART_FIND_AND_REPLACE_set); | |
d55e5bfc RD |
33807 | |
33808 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
33809 | ||
36ed4f51 RD |
33810 | { |
33811 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)(wxCONFIG_USE_LOCAL_FILE))); | |
33812 | } | |
33813 | { | |
33814 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)(wxCONFIG_USE_GLOBAL_FILE))); | |
33815 | } | |
33816 | { | |
33817 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)(wxCONFIG_USE_RELATIVE_PATH))); | |
33818 | } | |
33819 | { | |
33820 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)(wxCONFIG_USE_NO_ESCAPE_CHARACTERS))); | |
33821 | } | |
33822 | { | |
33823 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)(wxConfigBase::Type_Unknown))); | |
33824 | } | |
33825 | { | |
33826 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)(wxConfigBase::Type_String))); | |
33827 | } | |
33828 | { | |
33829 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)(wxConfigBase::Type_Boolean))); | |
33830 | } | |
33831 | { | |
33832 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)(wxConfigBase::Type_Integer))); | |
33833 | } | |
33834 | { | |
33835 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)(wxConfigBase::Type_Float))); | |
33836 | } | |
fef4c27a RD |
33837 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTimeFormat",_wrap_DefaultDateTimeFormat_get, _wrap_DefaultDateTimeFormat_set); |
33838 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultTimeSpanFormat",_wrap_DefaultTimeSpanFormat_get, _wrap_DefaultTimeSpanFormat_set); | |
36ed4f51 RD |
33839 | { |
33840 | PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)(wxDateTime::Local))); | |
33841 | } | |
33842 | { | |
33843 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)(wxDateTime::GMT_12))); | |
33844 | } | |
33845 | { | |
33846 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)(wxDateTime::GMT_11))); | |
33847 | } | |
33848 | { | |
33849 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)(wxDateTime::GMT_10))); | |
33850 | } | |
33851 | { | |
33852 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)(wxDateTime::GMT_9))); | |
33853 | } | |
33854 | { | |
33855 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)(wxDateTime::GMT_8))); | |
33856 | } | |
33857 | { | |
33858 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)(wxDateTime::GMT_7))); | |
33859 | } | |
33860 | { | |
33861 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)(wxDateTime::GMT_6))); | |
33862 | } | |
33863 | { | |
33864 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)(wxDateTime::GMT_5))); | |
33865 | } | |
33866 | { | |
33867 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)(wxDateTime::GMT_4))); | |
33868 | } | |
33869 | { | |
33870 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)(wxDateTime::GMT_3))); | |
33871 | } | |
33872 | { | |
33873 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)(wxDateTime::GMT_2))); | |
33874 | } | |
33875 | { | |
33876 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)(wxDateTime::GMT_1))); | |
33877 | } | |
33878 | { | |
33879 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)(wxDateTime::GMT0))); | |
33880 | } | |
33881 | { | |
33882 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)(wxDateTime::GMT1))); | |
33883 | } | |
33884 | { | |
33885 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)(wxDateTime::GMT2))); | |
33886 | } | |
33887 | { | |
33888 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)(wxDateTime::GMT3))); | |
33889 | } | |
33890 | { | |
33891 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)(wxDateTime::GMT4))); | |
33892 | } | |
33893 | { | |
33894 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)(wxDateTime::GMT5))); | |
33895 | } | |
33896 | { | |
33897 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)(wxDateTime::GMT6))); | |
33898 | } | |
33899 | { | |
33900 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)(wxDateTime::GMT7))); | |
33901 | } | |
33902 | { | |
33903 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)(wxDateTime::GMT8))); | |
33904 | } | |
33905 | { | |
33906 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)(wxDateTime::GMT9))); | |
33907 | } | |
33908 | { | |
33909 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)(wxDateTime::GMT10))); | |
33910 | } | |
33911 | { | |
33912 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)(wxDateTime::GMT11))); | |
33913 | } | |
33914 | { | |
33915 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)(wxDateTime::GMT12))); | |
33916 | } | |
33917 | { | |
33918 | PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)(wxDateTime::WET))); | |
33919 | } | |
33920 | { | |
33921 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)(wxDateTime::WEST))); | |
33922 | } | |
33923 | { | |
33924 | PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)(wxDateTime::CET))); | |
33925 | } | |
33926 | { | |
33927 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)(wxDateTime::CEST))); | |
33928 | } | |
33929 | { | |
33930 | PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)(wxDateTime::EET))); | |
33931 | } | |
33932 | { | |
33933 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)(wxDateTime::EEST))); | |
33934 | } | |
33935 | { | |
33936 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)(wxDateTime::MSK))); | |
33937 | } | |
33938 | { | |
33939 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)(wxDateTime::MSD))); | |
33940 | } | |
33941 | { | |
33942 | PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)(wxDateTime::AST))); | |
33943 | } | |
33944 | { | |
33945 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)(wxDateTime::ADT))); | |
33946 | } | |
33947 | { | |
33948 | PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)(wxDateTime::EST))); | |
33949 | } | |
33950 | { | |
33951 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)(wxDateTime::EDT))); | |
33952 | } | |
33953 | { | |
33954 | PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)(wxDateTime::CST))); | |
33955 | } | |
33956 | { | |
33957 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)(wxDateTime::CDT))); | |
33958 | } | |
33959 | { | |
33960 | PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)(wxDateTime::MST))); | |
33961 | } | |
33962 | { | |
33963 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)(wxDateTime::MDT))); | |
33964 | } | |
33965 | { | |
33966 | PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)(wxDateTime::PST))); | |
33967 | } | |
33968 | { | |
33969 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)(wxDateTime::PDT))); | |
33970 | } | |
33971 | { | |
33972 | PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)(wxDateTime::HST))); | |
33973 | } | |
33974 | { | |
33975 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)(wxDateTime::AKST))); | |
33976 | } | |
33977 | { | |
33978 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)(wxDateTime::AKDT))); | |
33979 | } | |
33980 | { | |
33981 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)(wxDateTime::A_WST))); | |
33982 | } | |
33983 | { | |
33984 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)(wxDateTime::A_CST))); | |
33985 | } | |
33986 | { | |
33987 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)(wxDateTime::A_EST))); | |
33988 | } | |
33989 | { | |
33990 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)(wxDateTime::A_ESST))); | |
33991 | } | |
33992 | { | |
33993 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)(wxDateTime::UTC))); | |
33994 | } | |
33995 | { | |
33996 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)(wxDateTime::Gregorian))); | |
33997 | } | |
33998 | { | |
33999 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)(wxDateTime::Julian))); | |
34000 | } | |
34001 | { | |
34002 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)(wxDateTime::Gr_Unknown))); | |
34003 | } | |
34004 | { | |
34005 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)(wxDateTime::Gr_Standard))); | |
34006 | } | |
34007 | { | |
34008 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)(wxDateTime::Gr_Alaska))); | |
34009 | } | |
34010 | { | |
34011 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)(wxDateTime::Gr_Albania))); | |
34012 | } | |
34013 | { | |
34014 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)(wxDateTime::Gr_Austria))); | |
34015 | } | |
34016 | { | |
34017 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)(wxDateTime::Gr_Austria_Brixen))); | |
34018 | } | |
34019 | { | |
34020 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)(wxDateTime::Gr_Austria_Salzburg))); | |
34021 | } | |
34022 | { | |
34023 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)(wxDateTime::Gr_Austria_Tyrol))); | |
34024 | } | |
34025 | { | |
34026 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)(wxDateTime::Gr_Austria_Carinthia))); | |
34027 | } | |
34028 | { | |
34029 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)(wxDateTime::Gr_Austria_Styria))); | |
34030 | } | |
34031 | { | |
34032 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)(wxDateTime::Gr_Belgium))); | |
34033 | } | |
34034 | { | |
34035 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)(wxDateTime::Gr_Bulgaria))); | |
34036 | } | |
34037 | { | |
34038 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)(wxDateTime::Gr_Bulgaria_1))); | |
34039 | } | |
34040 | { | |
34041 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)(wxDateTime::Gr_Bulgaria_2))); | |
34042 | } | |
34043 | { | |
34044 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)(wxDateTime::Gr_Bulgaria_3))); | |
34045 | } | |
34046 | { | |
34047 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)(wxDateTime::Gr_Canada))); | |
34048 | } | |
34049 | { | |
34050 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)(wxDateTime::Gr_China))); | |
34051 | } | |
34052 | { | |
34053 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)(wxDateTime::Gr_China_1))); | |
34054 | } | |
34055 | { | |
34056 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)(wxDateTime::Gr_China_2))); | |
34057 | } | |
34058 | { | |
34059 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)(wxDateTime::Gr_Czechoslovakia))); | |
34060 | } | |
34061 | { | |
34062 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)(wxDateTime::Gr_Denmark))); | |
34063 | } | |
34064 | { | |
34065 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)(wxDateTime::Gr_Egypt))); | |
34066 | } | |
34067 | { | |
34068 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)(wxDateTime::Gr_Estonia))); | |
34069 | } | |
34070 | { | |
34071 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)(wxDateTime::Gr_Finland))); | |
34072 | } | |
34073 | { | |
34074 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)(wxDateTime::Gr_France))); | |
34075 | } | |
34076 | { | |
34077 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)(wxDateTime::Gr_France_Alsace))); | |
34078 | } | |
34079 | { | |
34080 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)(wxDateTime::Gr_France_Lorraine))); | |
34081 | } | |
34082 | { | |
34083 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)(wxDateTime::Gr_France_Strasbourg))); | |
34084 | } | |
34085 | { | |
34086 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)(wxDateTime::Gr_Germany))); | |
34087 | } | |
34088 | { | |
34089 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)(wxDateTime::Gr_Germany_Catholic))); | |
34090 | } | |
34091 | { | |
34092 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)(wxDateTime::Gr_Germany_Prussia))); | |
34093 | } | |
34094 | { | |
34095 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)(wxDateTime::Gr_Germany_Protestant))); | |
34096 | } | |
34097 | { | |
34098 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)(wxDateTime::Gr_GreatBritain))); | |
34099 | } | |
34100 | { | |
34101 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)(wxDateTime::Gr_Greece))); | |
34102 | } | |
34103 | { | |
34104 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)(wxDateTime::Gr_Hungary))); | |
34105 | } | |
34106 | { | |
34107 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)(wxDateTime::Gr_Ireland))); | |
34108 | } | |
34109 | { | |
34110 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)(wxDateTime::Gr_Italy))); | |
34111 | } | |
34112 | { | |
34113 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)(wxDateTime::Gr_Japan))); | |
34114 | } | |
34115 | { | |
34116 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)(wxDateTime::Gr_Japan_1))); | |
34117 | } | |
34118 | { | |
34119 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)(wxDateTime::Gr_Japan_2))); | |
34120 | } | |
34121 | { | |
34122 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)(wxDateTime::Gr_Japan_3))); | |
34123 | } | |
34124 | { | |
34125 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)(wxDateTime::Gr_Latvia))); | |
34126 | } | |
34127 | { | |
34128 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)(wxDateTime::Gr_Lithuania))); | |
34129 | } | |
34130 | { | |
34131 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)(wxDateTime::Gr_Luxemburg))); | |
34132 | } | |
34133 | { | |
34134 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)(wxDateTime::Gr_Netherlands))); | |
34135 | } | |
34136 | { | |
34137 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)(wxDateTime::Gr_Netherlands_Groningen))); | |
34138 | } | |
34139 | { | |
34140 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)(wxDateTime::Gr_Netherlands_Gelderland))); | |
34141 | } | |
34142 | { | |
34143 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)(wxDateTime::Gr_Netherlands_Utrecht))); | |
34144 | } | |
34145 | { | |
34146 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)(wxDateTime::Gr_Netherlands_Friesland))); | |
34147 | } | |
34148 | { | |
34149 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)(wxDateTime::Gr_Norway))); | |
34150 | } | |
34151 | { | |
34152 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)(wxDateTime::Gr_Poland))); | |
34153 | } | |
34154 | { | |
34155 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)(wxDateTime::Gr_Portugal))); | |
34156 | } | |
34157 | { | |
34158 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)(wxDateTime::Gr_Romania))); | |
34159 | } | |
34160 | { | |
34161 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)(wxDateTime::Gr_Russia))); | |
34162 | } | |
34163 | { | |
34164 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)(wxDateTime::Gr_Scotland))); | |
34165 | } | |
34166 | { | |
34167 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)(wxDateTime::Gr_Spain))); | |
34168 | } | |
34169 | { | |
34170 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)(wxDateTime::Gr_Sweden))); | |
34171 | } | |
34172 | { | |
34173 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)(wxDateTime::Gr_Switzerland))); | |
34174 | } | |
34175 | { | |
34176 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)(wxDateTime::Gr_Switzerland_Catholic))); | |
34177 | } | |
34178 | { | |
34179 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)(wxDateTime::Gr_Switzerland_Protestant))); | |
34180 | } | |
34181 | { | |
34182 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)(wxDateTime::Gr_Turkey))); | |
34183 | } | |
34184 | { | |
34185 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)(wxDateTime::Gr_USA))); | |
34186 | } | |
34187 | { | |
34188 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)(wxDateTime::Gr_Wales))); | |
34189 | } | |
34190 | { | |
34191 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)(wxDateTime::Gr_Yugoslavia))); | |
34192 | } | |
34193 | { | |
34194 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)(wxDateTime::Country_Unknown))); | |
34195 | } | |
34196 | { | |
34197 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)(wxDateTime::Country_Default))); | |
34198 | } | |
34199 | { | |
34200 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)(wxDateTime::Country_WesternEurope_Start))); | |
34201 | } | |
34202 | { | |
34203 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)(wxDateTime::Country_EEC))); | |
34204 | } | |
34205 | { | |
34206 | PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)(wxDateTime::France))); | |
34207 | } | |
34208 | { | |
34209 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)(wxDateTime::Germany))); | |
34210 | } | |
34211 | { | |
34212 | PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)(wxDateTime::UK))); | |
34213 | } | |
34214 | { | |
34215 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)(wxDateTime::Country_WesternEurope_End))); | |
34216 | } | |
34217 | { | |
34218 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)(wxDateTime::Russia))); | |
34219 | } | |
34220 | { | |
34221 | PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)(wxDateTime::USA))); | |
34222 | } | |
34223 | { | |
34224 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)(wxDateTime::Jan))); | |
34225 | } | |
34226 | { | |
34227 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)(wxDateTime::Feb))); | |
34228 | } | |
34229 | { | |
34230 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)(wxDateTime::Mar))); | |
34231 | } | |
34232 | { | |
34233 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)(wxDateTime::Apr))); | |
34234 | } | |
34235 | { | |
34236 | PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)(wxDateTime::May))); | |
34237 | } | |
34238 | { | |
34239 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)(wxDateTime::Jun))); | |
34240 | } | |
34241 | { | |
34242 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)(wxDateTime::Jul))); | |
34243 | } | |
34244 | { | |
34245 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)(wxDateTime::Aug))); | |
34246 | } | |
34247 | { | |
34248 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)(wxDateTime::Sep))); | |
34249 | } | |
34250 | { | |
34251 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)(wxDateTime::Oct))); | |
34252 | } | |
34253 | { | |
34254 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)(wxDateTime::Nov))); | |
34255 | } | |
34256 | { | |
34257 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)(wxDateTime::Dec))); | |
34258 | } | |
34259 | { | |
34260 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)(wxDateTime::Inv_Month))); | |
34261 | } | |
34262 | { | |
34263 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)(wxDateTime::Sun))); | |
34264 | } | |
34265 | { | |
34266 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)(wxDateTime::Mon))); | |
34267 | } | |
34268 | { | |
34269 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)(wxDateTime::Tue))); | |
34270 | } | |
34271 | { | |
34272 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)(wxDateTime::Wed))); | |
34273 | } | |
34274 | { | |
34275 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)(wxDateTime::Thu))); | |
34276 | } | |
34277 | { | |
34278 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)(wxDateTime::Fri))); | |
34279 | } | |
34280 | { | |
34281 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)(wxDateTime::Sat))); | |
34282 | } | |
34283 | { | |
34284 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)(wxDateTime::Inv_WeekDay))); | |
34285 | } | |
34286 | { | |
34287 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)(wxDateTime::Inv_Year))); | |
34288 | } | |
34289 | { | |
34290 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)(wxDateTime::Name_Full))); | |
34291 | } | |
34292 | { | |
34293 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)(wxDateTime::Name_Abbr))); | |
34294 | } | |
34295 | { | |
34296 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)(wxDateTime::Default_First))); | |
34297 | } | |
34298 | { | |
34299 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)(wxDateTime::Monday_First))); | |
34300 | } | |
34301 | { | |
34302 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)(wxDateTime::Sunday_First))); | |
34303 | } | |
34304 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); | |
34305 | { | |
34306 | PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)(wxDF_INVALID))); | |
34307 | } | |
34308 | { | |
34309 | PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)(wxDF_TEXT))); | |
34310 | } | |
34311 | { | |
34312 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)(wxDF_BITMAP))); | |
34313 | } | |
34314 | { | |
34315 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)(wxDF_METAFILE))); | |
34316 | } | |
34317 | { | |
34318 | PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)(wxDF_SYLK))); | |
34319 | } | |
34320 | { | |
34321 | PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)(wxDF_DIF))); | |
34322 | } | |
34323 | { | |
34324 | PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)(wxDF_TIFF))); | |
34325 | } | |
34326 | { | |
34327 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)(wxDF_OEMTEXT))); | |
34328 | } | |
34329 | { | |
34330 | PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)(wxDF_DIB))); | |
34331 | } | |
34332 | { | |
34333 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)(wxDF_PALETTE))); | |
34334 | } | |
34335 | { | |
34336 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)(wxDF_PENDATA))); | |
34337 | } | |
34338 | { | |
34339 | PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)(wxDF_RIFF))); | |
34340 | } | |
34341 | { | |
34342 | PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)(wxDF_WAVE))); | |
34343 | } | |
34344 | { | |
34345 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)(wxDF_UNICODETEXT))); | |
34346 | } | |
34347 | { | |
34348 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)(wxDF_ENHMETAFILE))); | |
34349 | } | |
34350 | { | |
34351 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)(wxDF_FILENAME))); | |
34352 | } | |
34353 | { | |
34354 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)(wxDF_LOCALE))); | |
34355 | } | |
34356 | { | |
34357 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)(wxDF_PRIVATE))); | |
34358 | } | |
34359 | { | |
34360 | PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)(wxDF_HTML))); | |
34361 | } | |
34362 | { | |
34363 | PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)(wxDF_MAX))); | |
34364 | } | |
34365 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
34366 | { | |
34367 | PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)(wxDataObject::Get))); | |
34368 | } | |
34369 | { | |
34370 | PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)(wxDataObject::Set))); | |
34371 | } | |
34372 | { | |
34373 | PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)(wxDataObject::Both))); | |
34374 | } | |
34375 | { | |
34376 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)(wxDrag_CopyOnly))); | |
34377 | } | |
34378 | { | |
34379 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)(wxDrag_AllowMove))); | |
34380 | } | |
34381 | { | |
34382 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)(wxDrag_DefaultMove))); | |
34383 | } | |
34384 | { | |
34385 | PyDict_SetItemString(d,"DragError", SWIG_From_int((int)(wxDragError))); | |
34386 | } | |
34387 | { | |
34388 | PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)(wxDragNone))); | |
34389 | } | |
34390 | { | |
34391 | PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)(wxDragCopy))); | |
34392 | } | |
34393 | { | |
34394 | PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)(wxDragMove))); | |
34395 | } | |
34396 | { | |
34397 | PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)(wxDragLink))); | |
34398 | } | |
34399 | { | |
34400 | PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)(wxDragCancel))); | |
34401 | } | |
d55e5bfc RD |
34402 | |
34403 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
34404 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
34405 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
34406 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
34407 | ||
d55e5bfc RD |
34408 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
34409 | } | |
34410 |