]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
093d3ff1 | 3 | * Version 1.3.24 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
d14a1e28 RD |
12 | |
13 | #ifdef __cplusplus | |
14 | template<class T> class SwigValueWrapper { | |
15 | T *tt; | |
16 | public: | |
17 | SwigValueWrapper() : tt(0) { } | |
18 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
19 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
20 | ~SwigValueWrapper() { delete tt; } | |
21 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
22 | operator T&() const { return *tt; } | |
23 | T *operator&() { return tt; } | |
24 | private: | |
25 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 26 | }; |
d14a1e28 RD |
27 | #endif |
28 | ||
29 | ||
093d3ff1 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 | |
d14a1e28 | 37 | |
c9c7117a | 38 | |
093d3ff1 | 39 | #include <Python.h> |
d14a1e28 RD |
40 | |
41 | /*********************************************************************** | |
093d3ff1 | 42 | * swigrun.swg |
d14a1e28 | 43 | * |
093d3ff1 RD |
44 | * This file contains generic CAPI SWIG runtime support for pointer |
45 | * type checking. | |
d14a1e28 RD |
46 | * |
47 | ************************************************************************/ | |
48 | ||
093d3ff1 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" | |
d14a1e28 | 52 | |
093d3ff1 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) | |
d14a1e28 | 58 | #else |
093d3ff1 | 59 | #define SWIG_TYPE_TABLE_NAME |
d14a1e28 RD |
60 | #endif |
61 | ||
093d3ff1 RD |
62 | #include <string.h> |
63 | ||
64 | #ifndef SWIGINLINE | |
65 | #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
66 | # define SWIGINLINE inline | |
d14a1e28 | 67 | #else |
093d3ff1 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 | |
d14a1e28 RD |
85 | #endif |
86 | ||
d14a1e28 RD |
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 { | |
cc6dd355 | 95 | const char *name; |
d14a1e28 RD |
96 | swig_converter_func converter; |
97 | const char *str; | |
cc6dd355 | 98 | void *clientdata; |
d14a1e28 RD |
99 | swig_dycast_func dcast; |
100 | struct swig_type_info *next; | |
101 | struct swig_type_info *prev; | |
102 | } swig_type_info; | |
103 | ||
093d3ff1 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 | } | |
d14a1e28 | 375 | |
093d3ff1 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 | } | |
d14a1e28 | 417 | |
093d3ff1 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 | } | |
d14a1e28 RD |
430 | |
431 | #ifdef __cplusplus | |
432 | } | |
433 | #endif | |
434 | ||
435 | /*********************************************************************** | |
093d3ff1 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. | |
d14a1e28 | 441 | * |
093d3ff1 | 442 | * Author : David Beazley (beazley@cs.uchicago.edu) |
d14a1e28 | 443 | * |
093d3ff1 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. | |
d14a1e28 RD |
448 | ************************************************************************/ |
449 | ||
093d3ff1 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 | ||
d14a1e28 RD |
461 | #ifdef __cplusplus |
462 | extern "C" { | |
463 | #endif | |
464 | ||
d14a1e28 | 465 | |
093d3ff1 | 466 | /*************************************************************************/ |
d14a1e28 | 467 | |
d14a1e28 | 468 | |
093d3ff1 | 469 | /* The static type info list */ |
d14a1e28 | 470 | |
093d3ff1 RD |
471 | static swig_type_info *swig_type_list = 0; |
472 | static swig_type_info **swig_type_list_handle = &swig_type_list; | |
473 | ||
d14a1e28 | 474 | |
093d3ff1 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 | } | |
d14a1e28 | 480 | |
093d3ff1 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 | } | |
d14a1e28 | 486 | |
093d3ff1 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 | } | |
d14a1e28 | 492 | |
093d3ff1 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 | } | |
d14a1e28 | 502 | |
d14a1e28 RD |
503 | #ifdef __cplusplus |
504 | } | |
505 | #endif | |
506 | ||
093d3ff1 RD |
507 | /* ----------------------------------------------------------------------------- |
508 | * SWIG API. Portion that goes into the runtime | |
509 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 510 | |
093d3ff1 RD |
511 | #ifdef __cplusplus |
512 | extern "C" { | |
513 | #endif | |
c32bde28 | 514 | |
093d3ff1 RD |
515 | /* ----------------------------------------------------------------------------- |
516 | * for internal method declarations | |
517 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 518 | |
093d3ff1 RD |
519 | #ifndef SWIGINTERN |
520 | #define SWIGINTERN static | |
521 | #endif | |
d14a1e28 | 522 | |
093d3ff1 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 | |
d14a1e28 RD |
530 | |
531 | ||
093d3ff1 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 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 551 | |
093d3ff1 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; | |
d14a1e28 | 568 | |
c32bde28 | 569 | |
093d3ff1 RD |
570 | /* ----------------------------------------------------------------------------- |
571 | * Alloc. memory flags | |
572 | * ----------------------------------------------------------------------------- */ | |
c32bde28 RD |
573 | #define SWIG_OLDOBJ 1 |
574 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
575 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
994141e6 | 576 | |
994141e6 | 577 | #ifdef __cplusplus |
093d3ff1 RD |
578 | } |
579 | #endif | |
994141e6 | 580 | |
15afbcd0 | 581 | |
093d3ff1 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 | ************************************************************************/ | |
15afbcd0 | 591 | |
093d3ff1 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 | ||
994141e6 | 597 | |
093d3ff1 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) | |
994141e6 | 601 | |
994141e6 | 602 | |
093d3ff1 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 | |
614 | ||
615 | /* Flags for pointer conversion */ | |
616 | #define SWIG_POINTER_EXCEPTION 0x1 | |
617 | #define SWIG_POINTER_DISOWN 0x2 | |
994141e6 | 618 | |
d14a1e28 | 619 | |
093d3ff1 RD |
620 | #ifdef __cplusplus |
621 | extern "C" { | |
622 | #endif | |
d14a1e28 | 623 | |
093d3ff1 RD |
624 | /* ----------------------------------------------------------------------------- |
625 | * Create a new pointer string | |
626 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 627 | |
093d3ff1 RD |
628 | #ifndef SWIG_BUFFER_SIZE |
629 | #define SWIG_BUFFER_SIZE 1024 | |
630 | #endif | |
994141e6 | 631 | |
093d3ff1 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 | * ----------------------------------------------------------------------------- */ | |
15afbcd0 | 637 | |
093d3ff1 RD |
638 | typedef struct { |
639 | PyObject_HEAD | |
640 | void *ptr; | |
641 | const char *desc; | |
642 | } PySwigObject; | |
15afbcd0 | 643 | |
093d3ff1 RD |
644 | /* Declarations for objects of type PySwigObject */ |
645 | ||
646 | SWIGRUNTIME int | |
647 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
15afbcd0 | 648 | { |
093d3ff1 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; | |
15afbcd0 | 655 | } |
15afbcd0 | 656 | } |
093d3ff1 RD |
657 | |
658 | SWIGRUNTIME PyObject * | |
659 | PySwigObject_repr(PySwigObject *v) | |
15afbcd0 | 660 | { |
093d3ff1 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; | |
15afbcd0 RD |
664 | } |
665 | ||
093d3ff1 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 | } | |
15afbcd0 | 673 | |
093d3ff1 RD |
674 | SWIGRUNTIME PyObject * |
675 | PySwigObject_long(PySwigObject *v) | |
676 | { | |
677 | return PyLong_FromUnsignedLong((unsigned long) v->ptr); | |
15afbcd0 | 678 | } |
093d3ff1 RD |
679 | |
680 | SWIGRUNTIME PyObject * | |
681 | PySwigObject_oct(PySwigObject *v) | |
c32bde28 | 682 | { |
093d3ff1 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); | |
c32bde28 | 690 | } |
15afbcd0 | 691 | |
093d3ff1 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 | } | |
15afbcd0 | 699 | |
093d3ff1 RD |
700 | SWIGRUNTIME int |
701 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
15afbcd0 | 702 | { |
093d3ff1 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; | |
15afbcd0 | 710 | } |
c32bde28 RD |
711 | } |
712 | ||
093d3ff1 RD |
713 | SWIGRUNTIME void |
714 | PySwigObject_dealloc(PySwigObject *self) | |
c32bde28 | 715 | { |
093d3ff1 | 716 | PyObject_DEL(self); |
994141e6 RD |
717 | } |
718 | ||
093d3ff1 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 | }; | |
d14a1e28 | 797 | |
093d3ff1 RD |
798 | PySwigObject_Type = tmp; |
799 | type_init = 1; | |
c32bde28 | 800 | } |
093d3ff1 RD |
801 | |
802 | return &PySwigObject_Type; | |
c32bde28 RD |
803 | } |
804 | ||
093d3ff1 RD |
805 | SWIGRUNTIME PyObject * |
806 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
994141e6 | 807 | { |
093d3ff1 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; | |
c32bde28 RD |
813 | } |
814 | ||
093d3ff1 RD |
815 | SWIGRUNTIMEINLINE void * |
816 | PySwigObject_AsVoidPtr(PyObject *self) | |
817 | { | |
818 | return ((PySwigObject *)self)->ptr; | |
819 | } | |
c32bde28 | 820 | |
093d3ff1 RD |
821 | SWIGRUNTIMEINLINE const char * |
822 | PySwigObject_GetDesc(PyObject *self) | |
c32bde28 | 823 | { |
093d3ff1 RD |
824 | return ((PySwigObject *)self)->desc; |
825 | } | |
826 | ||
827 | SWIGRUNTIMEINLINE int | |
828 | PySwigObject_Check(PyObject *op) { | |
829 | return ((op)->ob_type == PySwigObject_GetType()) | |
830 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
994141e6 RD |
831 | } |
832 | ||
093d3ff1 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; | |
994141e6 | 843 | |
093d3ff1 RD |
844 | SWIGRUNTIME int |
845 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
994141e6 | 846 | { |
093d3ff1 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); | |
c32bde28 | 852 | } |
093d3ff1 RD |
853 | fputs(v->desc,fp); |
854 | fputs(">", fp); | |
855 | return 0; | |
994141e6 | 856 | } |
c32bde28 | 857 | |
093d3ff1 RD |
858 | SWIGRUNTIME PyObject * |
859 | PySwigPacked_repr(PySwigPacked *v) | |
15afbcd0 | 860 | { |
093d3ff1 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 | } | |
15afbcd0 RD |
867 | } |
868 | ||
093d3ff1 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 | } | |
15afbcd0 | 879 | |
093d3ff1 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); | |
7e63a440 | 891 | } |
093d3ff1 | 892 | } |
d14a1e28 | 893 | |
093d3ff1 RD |
894 | SWIGRUNTIME void |
895 | PySwigPacked_dealloc(PySwigPacked *self) | |
896 | { | |
897 | free(self->pack); | |
898 | PyObject_DEL(self); | |
899 | } | |
d14a1e28 | 900 | |
093d3ff1 RD |
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 | }; | |
c32bde28 | 949 | |
093d3ff1 RD |
950 | PySwigPacked_Type = tmp; |
951 | type_init = 1; | |
952 | } | |
953 | ||
954 | ||
39f61e25 | 955 | |
093d3ff1 RD |
956 | return &PySwigPacked_Type; |
957 | } | |
39f61e25 | 958 | |
093d3ff1 RD |
959 | SWIGRUNTIME PyObject * |
960 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
15afbcd0 | 961 | { |
093d3ff1 RD |
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 | } | |
15afbcd0 RD |
973 | } |
974 | ||
093d3ff1 RD |
975 | SWIGRUNTIMEINLINE const char * |
976 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
977 | { | |
978 | PySwigPacked *self = (PySwigPacked *)obj; | |
979 | if (self->size != size) return 0; | |
980 | memcpy(ptr, self->pack, size); | |
981 | return self->desc; | |
982 | } | |
15afbcd0 | 983 | |
093d3ff1 RD |
984 | SWIGRUNTIMEINLINE const char * |
985 | PySwigPacked_GetDesc(PyObject *self) | |
15afbcd0 | 986 | { |
093d3ff1 RD |
987 | return ((PySwigPacked *)self)->desc; |
988 | } | |
989 | ||
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 | } | |
995 | ||
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) | |
1016 | { | |
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"); | |
15afbcd0 | 1047 | } |
c32bde28 RD |
1048 | } |
1049 | ||
093d3ff1 RD |
1050 | SWIGRUNTIMEINLINE void |
1051 | SWIG_Python_NullRef(const char *type) | |
c32bde28 | 1052 | { |
093d3ff1 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 | } | |
15afbcd0 RD |
1058 | } |
1059 | ||
093d3ff1 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 | } | |
15afbcd0 | 1084 | |
093d3ff1 RD |
1085 | SWIGRUNTIME int |
1086 | SWIG_Python_ArgFail(int argnum) | |
994141e6 | 1087 | { |
093d3ff1 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 | } | |
994141e6 RD |
1096 | } |
1097 | ||
1098 | ||
093d3ff1 RD |
1099 | /* ----------------------------------------------------------------------------- |
1100 | * pointers/data manipulation | |
1101 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 1102 | |
093d3ff1 RD |
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 | } | |
d14a1e28 | 1118 | |
093d3ff1 RD |
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; | |
d14a1e28 | 1136 | #else |
093d3ff1 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; | |
d14a1e28 | 1154 | #endif |
d14a1e28 | 1155 | |
093d3ff1 | 1156 | type_check: |
d14a1e28 | 1157 | |
093d3ff1 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); | |
d14a1e28 | 1191 | } |
093d3ff1 RD |
1192 | } |
1193 | return -1; | |
1194 | } | |
d14a1e28 | 1195 | |
093d3ff1 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); | |
d14a1e28 | 1205 | } |
093d3ff1 RD |
1206 | } |
1207 | return result; | |
1208 | } | |
d14a1e28 | 1209 | |
093d3ff1 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; | |
d14a1e28 | 1215 | |
093d3ff1 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; | |
d14a1e28 | 1230 | |
093d3ff1 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 | } | |
d14a1e28 | 1276 | |
093d3ff1 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 | } | |
d14a1e28 | 1292 | #endif |
093d3ff1 RD |
1293 | return robj; |
1294 | } | |
d14a1e28 | 1295 | |
093d3ff1 RD |
1296 | /* -----------------------------------------------------------------------------* |
1297 | * Get type list | |
1298 | * -----------------------------------------------------------------------------*/ | |
d14a1e28 | 1299 | |
093d3ff1 RD |
1300 | #ifdef SWIG_LINK_RUNTIME |
1301 | void *SWIG_ReturnGlobalTypeList(void *); | |
1302 | #endif | |
d14a1e28 | 1303 | |
093d3ff1 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 | } | |
d14a1e28 | 1322 | |
093d3ff1 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 | } | |
d14a1e28 | 1331 | |
093d3ff1 | 1332 | #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList |
d14a1e28 | 1333 | |
093d3ff1 RD |
1334 | #ifdef __cplusplus |
1335 | } | |
1336 | #endif | |
d14a1e28 | 1337 | |
d14a1e28 | 1338 | |
093d3ff1 | 1339 | /* -------- TYPES TABLE (BEGIN) -------- */ |
d14a1e28 | 1340 | |
093d3ff1 RD |
1341 | #define SWIGTYPE_p_wxLogChain swig_types[0] |
1342 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
1343 | #define SWIGTYPE_p_wxFileHistory swig_types[2] | |
1344 | #define SWIGTYPE_p_wxLog swig_types[3] | |
1345 | #define SWIGTYPE_p_wxMenu swig_types[4] | |
1346 | #define SWIGTYPE_p_wxEvent swig_types[5] | |
1347 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[6] | |
1348 | #define SWIGTYPE_p_wxConfigBase swig_types[7] | |
1349 | #define SWIGTYPE_p_wxDisplay swig_types[8] | |
1350 | #define SWIGTYPE_p_wxFileType swig_types[9] | |
1351 | #define SWIGTYPE_p_wxLogGui swig_types[10] | |
1352 | #define SWIGTYPE_p_wxFont swig_types[11] | |
1353 | #define SWIGTYPE_p_wxDataFormat swig_types[12] | |
1354 | #define SWIGTYPE_p_wxTimerEvent swig_types[13] | |
1355 | #define SWIGTYPE_p_wxCaret swig_types[14] | |
1356 | #define SWIGTYPE_ptrdiff_t swig_types[15] | |
1357 | #define SWIGTYPE_std__ptrdiff_t swig_types[16] | |
1358 | #define SWIGTYPE_p_int swig_types[17] | |
1359 | #define SWIGTYPE_p_wxSize swig_types[18] | |
1360 | #define SWIGTYPE_p_wxClipboard swig_types[19] | |
1361 | #define SWIGTYPE_p_wxStopWatch swig_types[20] | |
68350608 RD |
1362 | #define SWIGTYPE_p_wxDC swig_types[21] |
1363 | #define SWIGTYPE_p_wxClipboardLocker swig_types[22] | |
1364 | #define SWIGTYPE_p_wxIcon swig_types[23] | |
1365 | #define SWIGTYPE_p_wxLogStderr swig_types[24] | |
1366 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[25] | |
1367 | #define SWIGTYPE_p_wxTextCtrl swig_types[26] | |
1368 | #define SWIGTYPE_p_wxBusyCursor swig_types[27] | |
1369 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[28] | |
1370 | #define SWIGTYPE_p_wxTextDataObject swig_types[29] | |
1371 | #define SWIGTYPE_p_wxDataObject swig_types[30] | |
1372 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[31] | |
1373 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[32] | |
1374 | #define SWIGTYPE_p_wxFileDataObject swig_types[33] | |
1375 | #define SWIGTYPE_p_wxCustomDataObject swig_types[34] | |
1376 | #define SWIGTYPE_p_wxURLDataObject swig_types[35] | |
1377 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[36] | |
1378 | #define SWIGTYPE_p_wxSound swig_types[37] | |
1379 | #define SWIGTYPE_p_wxTimerRunner swig_types[38] | |
1380 | #define SWIGTYPE_p_wxLogWindow swig_types[39] | |
1381 | #define SWIGTYPE_p_wxTimeSpan swig_types[40] | |
1382 | #define SWIGTYPE_p_wxArrayString swig_types[41] | |
1383 | #define SWIGTYPE_p_wxWindowDisabler swig_types[42] | |
1384 | #define SWIGTYPE_p_form_ops_t swig_types[43] | |
1385 | #define SWIGTYPE_p_wxToolTip swig_types[44] | |
1386 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[45] | |
093d3ff1 | 1387 | #define SWIGTYPE_p_wxSystemSettings swig_types[46] |
68350608 RD |
1388 | #define SWIGTYPE_p_wxFileConfig swig_types[47] |
1389 | #define SWIGTYPE_p_wxVideoMode swig_types[48] | |
1390 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[49] | |
1391 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[50] | |
1392 | #define SWIGTYPE_p_wxDuplexMode swig_types[51] | |
1393 | #define SWIGTYPE_p_wxEvtHandler swig_types[52] | |
1394 | #define SWIGTYPE_p_wxRect swig_types[53] | |
1395 | #define SWIGTYPE_p_char swig_types[54] | |
1396 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[55] | |
1397 | #define SWIGTYPE_p_wxStandardPaths swig_types[56] | |
1398 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[57] | |
1399 | #define SWIGTYPE_p_wxFrame swig_types[58] | |
1400 | #define SWIGTYPE_p_wxTimer swig_types[59] | |
1401 | #define SWIGTYPE_p_wxPaperSize swig_types[60] | |
1402 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[61] | |
1403 | #define SWIGTYPE_p_wxPyArtProvider swig_types[62] | |
1404 | #define SWIGTYPE_p_wxPyTipProvider swig_types[63] | |
1405 | #define SWIGTYPE_p_wxTipProvider swig_types[64] | |
1406 | #define SWIGTYPE_p_wxJoystick swig_types[65] | |
1407 | #define SWIGTYPE_p_wxSystemOptions swig_types[66] | |
1408 | #define SWIGTYPE_p_wxPoint swig_types[67] | |
1409 | #define SWIGTYPE_p_wxJoystickEvent swig_types[68] | |
1410 | #define SWIGTYPE_p_wxCursor swig_types[69] | |
1411 | #define SWIGTYPE_p_wxObject swig_types[70] | |
1412 | #define SWIGTYPE_p_wxOutputStream swig_types[71] | |
1413 | #define SWIGTYPE_p_wxDateTime swig_types[72] | |
1414 | #define SWIGTYPE_p_wxPyDropSource swig_types[73] | |
1415 | #define SWIGTYPE_p_unsigned_long swig_types[74] | |
1416 | #define SWIGTYPE_p_wxKillError swig_types[75] | |
1417 | #define SWIGTYPE_p_wxWindow swig_types[76] | |
1418 | #define SWIGTYPE_p_wxString swig_types[77] | |
1419 | #define SWIGTYPE_p_wxPyProcess swig_types[78] | |
1420 | #define SWIGTYPE_p_wxBitmap swig_types[79] | |
1421 | #define SWIGTYPE_p_wxConfig swig_types[80] | |
1422 | #define SWIGTYPE_unsigned_int swig_types[81] | |
1423 | #define SWIGTYPE_p_unsigned_int swig_types[82] | |
1424 | #define SWIGTYPE_p_unsigned_char swig_types[83] | |
1425 | #define SWIGTYPE_p_wxChar swig_types[84] | |
1426 | #define SWIGTYPE_p_wxBusyInfo swig_types[85] | |
1427 | #define SWIGTYPE_p_wxPyDropTarget swig_types[86] | |
1428 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[87] | |
1429 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[88] | |
1430 | #define SWIGTYPE_p_wxProcessEvent swig_types[89] | |
1431 | #define SWIGTYPE_p_wxPyLog swig_types[90] | |
1432 | #define SWIGTYPE_p_wxLogNull swig_types[91] | |
1433 | #define SWIGTYPE_p_wxColour swig_types[92] | |
1434 | #define SWIGTYPE_p_wxPyTimer swig_types[93] | |
1435 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[94] | |
1436 | #define SWIGTYPE_p_wxDateSpan swig_types[95] | |
1437 | static swig_type_info *swig_types[97]; | |
d14a1e28 | 1438 | |
093d3ff1 | 1439 | /* -------- TYPES TABLE (END) -------- */ |
d14a1e28 | 1440 | |
d14a1e28 | 1441 | |
093d3ff1 RD |
1442 | /*----------------------------------------------- |
1443 | @(target):= _misc_.so | |
1444 | ------------------------------------------------*/ | |
1445 | #define SWIG_init init_misc_ | |
d14a1e28 | 1446 | |
093d3ff1 | 1447 | #define SWIG_name "_misc_" |
4276dc52 | 1448 | |
093d3ff1 RD |
1449 | #include "wx/wxPython/wxPython.h" |
1450 | #include "wx/wxPython/pyclasses.h" | |
1451 | #include "wx/wxPython/pyistream.h" | |
689b42ee | 1452 | |
093d3ff1 | 1453 | static const wxString wxPyEmptyString(wxEmptyString); |
689b42ee RD |
1454 | |
1455 | ||
4276dc52 | 1456 | |
093d3ff1 RD |
1457 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
1458 | #define SWIG_From_int PyInt_FromLong | |
1459 | /*@@*/ | |
d14a1e28 | 1460 | |
994141e6 | 1461 | |
093d3ff1 | 1462 | #include <limits.h> |
15afbcd0 RD |
1463 | |
1464 | ||
093d3ff1 RD |
1465 | SWIGINTERN int |
1466 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1467 | const char *errmsg) | |
15afbcd0 | 1468 | { |
093d3ff1 RD |
1469 | if (value < min_value) { |
1470 | if (errmsg) { | |
1471 | PyErr_Format(PyExc_OverflowError, | |
1472 | "value %ld is less than '%s' minimum %ld", | |
1473 | value, errmsg, min_value); | |
1474 | } | |
1475 | return 0; | |
1476 | } else if (value > max_value) { | |
c32bde28 RD |
1477 | if (errmsg) { |
1478 | PyErr_Format(PyExc_OverflowError, | |
093d3ff1 | 1479 | "value %ld is greater than '%s' maximum %ld", |
c32bde28 | 1480 | value, errmsg, max_value); |
15afbcd0 | 1481 | } |
c32bde28 | 1482 | return 0; |
15afbcd0 | 1483 | } |
c32bde28 | 1484 | return 1; |
093d3ff1 | 1485 | } |
15afbcd0 RD |
1486 | |
1487 | ||
093d3ff1 RD |
1488 | SWIGINTERN int |
1489 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1490 | { | |
1491 | if (PyNumber_Check(obj)) { | |
1492 | if (val) *val = PyInt_AsLong(obj); | |
1493 | return 1; | |
1494 | } | |
1495 | else { | |
1496 | SWIG_type_error("number", obj); | |
1497 | } | |
1498 | return 0; | |
1499 | } | |
1500 | ||
1501 | ||
1502 | #if INT_MAX != LONG_MAX | |
1503 | SWIGINTERN int | |
1504 | SWIG_AsVal_int(PyObject *obj, int *val) | |
994141e6 | 1505 | { |
093d3ff1 RD |
1506 | const char* errmsg = val ? "int" : (char*)0; |
1507 | long v; | |
1508 | if (SWIG_AsVal_long(obj, &v)) { | |
1509 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
1510 | if (val) *val = (int)(v); | |
c32bde28 | 1511 | return 1; |
093d3ff1 RD |
1512 | } else { |
1513 | return 0; | |
c32bde28 RD |
1514 | } |
1515 | } else { | |
1516 | PyErr_Clear(); | |
1517 | } | |
1518 | if (val) { | |
093d3ff1 | 1519 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
1520 | } |
1521 | return 0; | |
15afbcd0 RD |
1522 | } |
1523 | #else | |
093d3ff1 RD |
1524 | SWIGINTERNSHORT int |
1525 | SWIG_AsVal_int(PyObject *obj, int *val) | |
c32bde28 | 1526 | { |
093d3ff1 | 1527 | return SWIG_AsVal_long(obj,(long*)val); |
c32bde28 | 1528 | } |
15afbcd0 RD |
1529 | #endif |
1530 | ||
1531 | ||
093d3ff1 RD |
1532 | SWIGINTERNSHORT int |
1533 | SWIG_As_int(PyObject* obj) | |
15afbcd0 | 1534 | { |
093d3ff1 RD |
1535 | int v; |
1536 | if (!SWIG_AsVal_int(obj, &v)) { | |
c32bde28 | 1537 | /* |
093d3ff1 | 1538 | this is needed to make valgrind/purify happier. |
c32bde28 | 1539 | */ |
093d3ff1 | 1540 | memset((void*)&v, 0, sizeof(int)); |
15afbcd0 | 1541 | } |
c32bde28 RD |
1542 | return v; |
1543 | } | |
1544 | ||
1545 | ||
093d3ff1 RD |
1546 | SWIGINTERNSHORT int |
1547 | SWIG_Check_int(PyObject* obj) | |
c32bde28 | 1548 | { |
093d3ff1 | 1549 | return SWIG_AsVal_int(obj, (int*)0); |
994141e6 RD |
1550 | } |
1551 | ||
093d3ff1 | 1552 | static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT); |
f78cc896 | 1553 | |
093d3ff1 | 1554 | #include <wx/stockitem.h> |
f78cc896 | 1555 | |
093d3ff1 RD |
1556 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
1557 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
1558 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
f78cc896 | 1559 | |
093d3ff1 RD |
1560 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
1561 | #define SWIG_From_long PyInt_FromLong | |
1562 | /*@@*/ | |
f78cc896 | 1563 | |
f78cc896 | 1564 | |
093d3ff1 RD |
1565 | SWIGINTERNSHORT long |
1566 | SWIG_As_long(PyObject* obj) | |
1567 | { | |
1568 | long v; | |
1569 | if (!SWIG_AsVal_long(obj, &v)) { | |
1570 | /* | |
1571 | this is needed to make valgrind/purify happier. | |
1572 | */ | |
1573 | memset((void*)&v, 0, sizeof(long)); | |
1574 | } | |
1575 | return v; | |
1576 | } | |
f78cc896 | 1577 | |
093d3ff1 RD |
1578 | |
1579 | SWIGINTERNSHORT int | |
1580 | SWIG_Check_long(PyObject* obj) | |
1581 | { | |
1582 | return SWIG_AsVal_long(obj, (long*)0); | |
1583 | } | |
f78cc896 | 1584 | |
f78cc896 | 1585 | |
093d3ff1 RD |
1586 | SWIGINTERN int |
1587 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
1588 | { | |
1589 | if (obj == Py_True) { | |
1590 | if (val) *val = true; | |
1591 | return 1; | |
1592 | } | |
1593 | if (obj == Py_False) { | |
1594 | if (val) *val = false; | |
1595 | return 1; | |
1596 | } | |
1597 | int res = 0; | |
1598 | if (SWIG_AsVal_int(obj, &res)) { | |
1599 | if (val) *val = res ? true : false; | |
1600 | return 1; | |
1601 | } else { | |
1602 | PyErr_Clear(); | |
1603 | } | |
1604 | if (val) { | |
1605 | SWIG_type_error("bool", obj); | |
1606 | } | |
1607 | return 0; | |
1608 | } | |
f78cc896 | 1609 | |
f78cc896 | 1610 | |
093d3ff1 RD |
1611 | SWIGINTERNSHORT bool |
1612 | SWIG_As_bool(PyObject* obj) | |
1613 | { | |
1614 | bool v; | |
1615 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1616 | /* | |
1617 | this is needed to make valgrind/purify happier. | |
1618 | */ | |
1619 | memset((void*)&v, 0, sizeof(bool)); | |
1620 | } | |
1621 | return v; | |
1622 | } | |
d14a1e28 | 1623 | |
093d3ff1 RD |
1624 | |
1625 | SWIGINTERNSHORT int | |
1626 | SWIG_Check_bool(PyObject* obj) | |
1627 | { | |
1628 | return SWIG_AsVal_bool(obj, (bool*)0); | |
1629 | } | |
d14a1e28 | 1630 | |
d14a1e28 | 1631 | |
093d3ff1 RD |
1632 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
1633 | PyObject* o2; | |
1634 | PyObject* o3; | |
1635 | ||
1636 | if (!target) { | |
1637 | target = o; | |
1638 | } else if (target == Py_None) { | |
1639 | Py_DECREF(Py_None); | |
1640 | target = o; | |
1641 | } else { | |
1642 | if (!PyTuple_Check(target)) { | |
1643 | o2 = target; | |
1644 | target = PyTuple_New(1); | |
1645 | PyTuple_SetItem(target, 0, o2); | |
1646 | } | |
1647 | o3 = PyTuple_New(1); | |
1648 | PyTuple_SetItem(o3, 0, o); | |
d14a1e28 | 1649 | |
093d3ff1 RD |
1650 | o2 = target; |
1651 | target = PySequence_Concat(o2, o3); | |
1652 | Py_DECREF(o2); | |
1653 | Py_DECREF(o3); | |
1654 | } | |
1655 | return target; | |
1656 | } | |
d14a1e28 RD |
1657 | |
1658 | ||
1659 | ||
093d3ff1 RD |
1660 | long wxGetFreeMemory() |
1661 | { wxPyRaiseNotImplemented(); return 0; } | |
d14a1e28 RD |
1662 | |
1663 | ||
093d3ff1 RD |
1664 | SWIGINTERN int |
1665 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
1666 | { | |
1667 | long v = 0; | |
1668 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
1669 | SWIG_type_error("unsigned number", obj); | |
1670 | } | |
1671 | else if (val) | |
1672 | *val = (unsigned long)v; | |
1673 | return 1; | |
1674 | } | |
d14a1e28 RD |
1675 | |
1676 | ||
093d3ff1 RD |
1677 | SWIGINTERNSHORT unsigned long |
1678 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
1679 | { | |
1680 | unsigned long v; | |
1681 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1682 | /* | |
1683 | this is needed to make valgrind/purify happier. | |
1684 | */ | |
1685 | memset((void*)&v, 0, sizeof(unsigned long)); | |
1686 | } | |
1687 | return v; | |
1688 | } | |
d14a1e28 | 1689 | |
093d3ff1 RD |
1690 | |
1691 | SWIGINTERNSHORT int | |
1692 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
1693 | { | |
1694 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
1695 | } | |
d14a1e28 | 1696 | |
d14a1e28 | 1697 | |
093d3ff1 RD |
1698 | SWIGINTERNSHORT PyObject* |
1699 | SWIG_From_unsigned_SS_long(unsigned long value) | |
1700 | { | |
1701 | return (value > LONG_MAX) ? | |
1702 | PyLong_FromUnsignedLong(value) | |
1703 | : PyInt_FromLong((long)(value)); | |
1704 | } | |
d14a1e28 RD |
1705 | |
1706 | ||
093d3ff1 | 1707 | void wxWakeUpMainThread() {} |
d14a1e28 RD |
1708 | |
1709 | ||
093d3ff1 RD |
1710 | bool wxThread_IsMain() { |
1711 | #ifdef WXP_WITH_THREAD | |
1712 | return wxThread::IsMain(); | |
1713 | #else | |
1714 | return true; | |
1715 | #endif | |
d14a1e28 | 1716 | } |
093d3ff1 | 1717 | |
8e738329 RD |
1718 | static void wxCaret_Destroy(wxCaret *self){ |
1719 | delete self; | |
1720 | } | |
d14a1e28 | 1721 | |
093d3ff1 RD |
1722 | #include <wx/snglinst.h> |
1723 | ||
1724 | ||
68350608 RD |
1725 | #ifdef __WXMSW__ |
1726 | #include <wx/msw/private.h> | |
1727 | #include <wx/dynload.h> | |
1728 | #endif | |
1729 | ||
1730 | ||
1731 | ||
1732 | bool wxDrawWindowOnDC(wxWindow* window, const wxDC& dc | |
1733 | #if 0 | |
1734 | , int method | |
1735 | #endif | |
1736 | ) | |
1737 | { | |
1738 | #ifdef __WXMSW__ | |
1739 | #if 0 | |
1740 | switch (method) | |
1741 | { | |
1742 | case 1: | |
1743 | // This one only partially works. Appears to be an undocumented | |
1744 | // "standard" convention that not all widgets adhear to. For | |
1745 | // example, for some widgets backgrounds or non-client areas may | |
1746 | // not be painted. | |
1747 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
1748 | break; | |
1749 | ||
1750 | case 2: | |
1751 | #endif | |
1752 | // This one works much better, nearly all widgets and their | |
1753 | // children are captured correctly[**]. Prior to the big | |
1754 | // background erase changes that Vadim did in 2004-2005 this | |
1755 | // method failed badly on XP with Themes activated, most native | |
1756 | // widgets draw only partially, if at all. Without themes it | |
1757 | // worked just like on Win2k. After those changes this method | |
1758 | // works very well. | |
1759 | // | |
1760 | // ** For example the radio buttons in a wxRadioBox are not its | |
1761 | // children by default, but you can capture it via the panel | |
1762 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
1763 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
1764 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
1765 | PRF_ERASEBKGND | PRF_OWNED ); | |
1766 | return true; | |
1767 | #if 0 | |
1768 | break; | |
1769 | ||
1770 | case 3: | |
1771 | // This one is only defined in the latest SDK and is only | |
1772 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
1773 | // so I expect that it will work similar to the above. Since it | |
1774 | // is avaialble only on XP, it can't be compiled like this and | |
1775 | // will have to be loaded dynamically. | |
1776 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
1777 | ||
1778 | // fall through | |
1779 | ||
1780 | case 4: | |
1781 | // Use PrintWindow if available, or fallback to WM_PRINT | |
1782 | // otherwise. Unfortunately using PrintWindow is even worse than | |
1783 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
1784 | // at all, with or without Themes. | |
1785 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
1786 | static bool s_triedToLoad = false; | |
1787 | static PrintWindow_t pfnPrintWindow = NULL; | |
1788 | if ( !s_triedToLoad ) | |
1789 | { | |
1790 | ||
1791 | s_triedToLoad = true; | |
1792 | wxDynamicLibrary dllUser32(_T("user32.dll")); | |
1793 | if ( dllUser32.IsLoaded() ) | |
1794 | { | |
1795 | wxLogNull nolog; // Don't report errors here | |
1796 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
1797 | } | |
1798 | } | |
1799 | if (pfnPrintWindow) | |
1800 | { | |
1801 | //printf("Using PrintWindow\n"); | |
1802 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
1803 | } | |
1804 | else | |
1805 | { | |
1806 | //printf("Using WM_PRINT\n"); | |
1807 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
1808 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
1809 | PRF_ERASEBKGND | PRF_OWNED ); | |
1810 | } | |
1811 | } | |
1812 | #endif // 0 | |
1813 | #else | |
1814 | return false; | |
1815 | #endif // __WXMSW__ | |
1816 | } | |
1817 | ||
1818 | ||
1819 | ||
093d3ff1 RD |
1820 | #include <wx/tipdlg.h> |
1821 | ||
1822 | ||
1823 | class wxPyTipProvider : public wxTipProvider { | |
1824 | public: | |
1825 | wxPyTipProvider(size_t currentTip) | |
1826 | : wxTipProvider(currentTip) {} | |
d14a1e28 | 1827 | |
093d3ff1 RD |
1828 | DEC_PYCALLBACK_STRING__pure(GetTip); |
1829 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
d14a1e28 RD |
1830 | PYPRIVATE; |
1831 | }; | |
1832 | ||
093d3ff1 RD |
1833 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); |
1834 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
d14a1e28 RD |
1835 | |
1836 | ||
093d3ff1 | 1837 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); |
d14a1e28 | 1838 | |
093d3ff1 | 1839 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
d14a1e28 | 1840 | |
093d3ff1 RD |
1841 | wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id) |
1842 | : wxTimer(owner, id) | |
1843 | { | |
1844 | if (owner == NULL) SetOwner(this); | |
1845 | } | |
d14a1e28 | 1846 | |
d14a1e28 | 1847 | |
093d3ff1 RD |
1848 | void wxPyTimer::Notify() { |
1849 | bool found; | |
1850 | bool blocked = wxPyBeginBlockThreads(); | |
1851 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
1852 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
1853 | wxPyEndBlockThreads(blocked); | |
1854 | if (! found) | |
1855 | wxTimer::Notify(); | |
1856 | } | |
1857 | void wxPyTimer::base_Notify() { | |
1858 | wxTimer::Notify(); | |
1859 | } | |
d14a1e28 | 1860 | |
d14a1e28 | 1861 | |
994141e6 | 1862 | |
093d3ff1 RD |
1863 | SWIGINTERN PyObject * |
1864 | SWIG_FromCharPtr(const char* cptr) | |
1865 | { | |
1866 | if (cptr) { | |
1867 | size_t size = strlen(cptr); | |
1868 | if (size > INT_MAX) { | |
1869 | return SWIG_NewPointerObj((char*)(cptr), | |
1870 | SWIG_TypeQuery("char *"), 0); | |
1871 | } else { | |
1872 | if (size != 0) { | |
1873 | return PyString_FromStringAndSize(cptr, size); | |
1874 | } else { | |
1875 | return PyString_FromString(cptr); | |
1876 | } | |
c32bde28 | 1877 | } |
093d3ff1 RD |
1878 | } |
1879 | Py_INCREF(Py_None); | |
1880 | return Py_None; | |
1881 | } | |
1882 | ||
1883 | ||
1884 | SWIGINTERNSHORT int | |
1885 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
1886 | unsigned long max_value, | |
1887 | const char *errmsg) | |
1888 | { | |
1889 | if (value > max_value) { | |
1890 | if (errmsg) { | |
1891 | PyErr_Format(PyExc_OverflowError, | |
1892 | "value %lu is greater than '%s' minimum %lu", | |
1893 | value, errmsg, max_value); | |
69223c70 | 1894 | } |
c32bde28 | 1895 | return 0; |
093d3ff1 RD |
1896 | } |
1897 | return 1; | |
1898 | } | |
1899 | ||
1900 | ||
1901 | #if UINT_MAX != ULONG_MAX | |
1902 | SWIGINTERN int | |
1903 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
1904 | { | |
1905 | const char* errmsg = val ? "unsigned int" : (char*)0; | |
1906 | unsigned long v; | |
1907 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1908 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
1909 | if (val) *val = (unsigned int)(v); | |
1910 | return 1; | |
1911 | } | |
1912 | } else { | |
1913 | PyErr_Clear(); | |
1914 | } | |
1915 | if (val) { | |
1916 | SWIG_type_error(errmsg, obj); | |
1917 | } | |
1918 | return 0; | |
1919 | } | |
1920 | #else | |
1921 | SWIGINTERNSHORT unsigned int | |
1922 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
1923 | { | |
1924 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
15afbcd0 | 1925 | } |
093d3ff1 | 1926 | #endif |
15afbcd0 RD |
1927 | |
1928 | ||
093d3ff1 RD |
1929 | SWIGINTERNSHORT unsigned int |
1930 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
15afbcd0 | 1931 | { |
093d3ff1 RD |
1932 | unsigned int v; |
1933 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
c32bde28 | 1934 | /* |
093d3ff1 | 1935 | this is needed to make valgrind/purify happier. |
c32bde28 | 1936 | */ |
093d3ff1 | 1937 | memset((void*)&v, 0, sizeof(unsigned int)); |
15afbcd0 | 1938 | } |
c32bde28 RD |
1939 | return v; |
1940 | } | |
1941 | ||
1942 | ||
093d3ff1 RD |
1943 | SWIGINTERNSHORT int |
1944 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
c32bde28 | 1945 | { |
093d3ff1 | 1946 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); |
994141e6 RD |
1947 | } |
1948 | ||
093d3ff1 RD |
1949 | static wxString Log_TimeStamp(){ |
1950 | wxString msg; | |
1951 | wxLog::TimeStamp(&msg); | |
1952 | return msg; | |
d14a1e28 | 1953 | } |
093d3ff1 RD |
1954 | static void wxLog_Destroy(wxLog *self){ delete self; } |
1955 | // Make somce wrappers that double any % signs so they are 'escaped' | |
1956 | void wxPyLogFatalError(const wxString& msg) | |
1957 | { | |
1958 | wxString m(msg); | |
1959 | m.Replace(wxT("%"), wxT("%%")); | |
1960 | wxLogFatalError(m); | |
1961 | } | |
1962 | ||
1963 | void wxPyLogError(const wxString& msg) | |
1964 | { | |
1965 | wxString m(msg); | |
1966 | m.Replace(wxT("%"), wxT("%%")); | |
1967 | wxLogError(m); | |
1968 | } | |
d14a1e28 | 1969 | |
093d3ff1 RD |
1970 | void wxPyLogWarning(const wxString& msg) |
1971 | { | |
1972 | wxString m(msg); | |
1973 | m.Replace(wxT("%"), wxT("%%")); | |
1974 | wxLogWarning(m); | |
1975 | } | |
d14a1e28 | 1976 | |
093d3ff1 RD |
1977 | void wxPyLogMessage(const wxString& msg) |
1978 | { | |
1979 | wxString m(msg); | |
1980 | m.Replace(wxT("%"), wxT("%%")); | |
1981 | wxLogMessage(m); | |
1982 | } | |
d14a1e28 | 1983 | |
093d3ff1 RD |
1984 | void wxPyLogInfo(const wxString& msg) |
1985 | { | |
1986 | wxString m(msg); | |
1987 | m.Replace(wxT("%"), wxT("%%")); | |
1988 | wxLogInfo(m); | |
1989 | } | |
d14a1e28 | 1990 | |
093d3ff1 RD |
1991 | void wxPyLogDebug(const wxString& msg) |
1992 | { | |
1993 | wxString m(msg); | |
1994 | m.Replace(wxT("%"), wxT("%%")); | |
1995 | wxLogDebug(m); | |
1996 | } | |
d14a1e28 | 1997 | |
093d3ff1 RD |
1998 | void wxPyLogVerbose(const wxString& msg) |
1999 | { | |
2000 | wxString m(msg); | |
2001 | m.Replace(wxT("%"), wxT("%%")); | |
2002 | wxLogVerbose(m); | |
2003 | } | |
994141e6 | 2004 | |
093d3ff1 RD |
2005 | void wxPyLogStatus(const wxString& msg) |
2006 | { | |
2007 | wxString m(msg); | |
2008 | m.Replace(wxT("%"), wxT("%%")); | |
2009 | wxLogStatus(m); | |
2010 | } | |
994141e6 | 2011 | |
093d3ff1 RD |
2012 | void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg) |
2013 | { | |
2014 | wxString m(msg); | |
2015 | m.Replace(wxT("%"), wxT("%%")); | |
2016 | wxLogStatus(pFrame, m); | |
2017 | } | |
d14a1e28 | 2018 | |
093d3ff1 RD |
2019 | void wxPyLogSysError(const wxString& msg) |
2020 | { | |
2021 | wxString m(msg); | |
2022 | m.Replace(wxT("%"), wxT("%%")); | |
2023 | wxLogSysError(m); | |
2024 | } | |
d14a1e28 | 2025 | |
093d3ff1 RD |
2026 | void wxPyLogGeneric(unsigned long level, const wxString& msg) |
2027 | { | |
2028 | wxString m(msg); | |
2029 | m.Replace(wxT("%"), wxT("%%")); | |
2030 | wxLogGeneric(level, m); | |
2031 | } | |
1a10c483 | 2032 | |
093d3ff1 RD |
2033 | void wxPyLogTrace(unsigned long mask, const wxString& msg) |
2034 | { | |
2035 | wxString m(msg); | |
2036 | m.Replace(wxT("%"), wxT("%%")); | |
2037 | wxLogTrace(mask, m); | |
2038 | } | |
2039 | ||
2040 | void wxPyLogTrace(const wxString& mask, const wxString& msg) | |
2041 | { | |
2042 | wxString m(msg); | |
2043 | m.Replace(wxT("%"), wxT("%%")); | |
2044 | wxLogTrace(mask, m); | |
2045 | } | |
2046 | ||
d14a1e28 | 2047 | |
d14a1e28 | 2048 | |
093d3ff1 RD |
2049 | // A wxLog class that can be derived from in wxPython |
2050 | class wxPyLog : public wxLog { | |
2051 | public: | |
2052 | wxPyLog() : wxLog() {} | |
d14a1e28 | 2053 | |
093d3ff1 RD |
2054 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { |
2055 | bool found; | |
2056 | bool blocked = wxPyBeginBlockThreads(); | |
2057 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
2058 | PyObject* s = wx2PyString(szString); | |
2059 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
2060 | Py_DECREF(s); | |
d14a1e28 | 2061 | } |
093d3ff1 RD |
2062 | wxPyEndBlockThreads(blocked); |
2063 | if (! found) | |
2064 | wxLog::DoLog(level, szString, t); | |
d14a1e28 | 2065 | } |
d14a1e28 | 2066 | |
093d3ff1 RD |
2067 | virtual void DoLogString(const wxChar *szString, time_t t) { |
2068 | bool found; | |
2069 | bool blocked = wxPyBeginBlockThreads(); | |
2070 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
2071 | PyObject* s = wx2PyString(szString); | |
2072 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
2073 | Py_DECREF(s); | |
2074 | } | |
2075 | wxPyEndBlockThreads(blocked); | |
2076 | if (! found) | |
2077 | wxLog::DoLogString(szString, t); | |
d14a1e28 | 2078 | } |
d14a1e28 | 2079 | |
d14a1e28 RD |
2080 | PYPRIVATE; |
2081 | }; | |
2082 | ||
d14a1e28 | 2083 | |
d14a1e28 | 2084 | |
1a10c483 | 2085 | |
093d3ff1 | 2086 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); |
d14a1e28 RD |
2087 | |
2088 | ||
093d3ff1 | 2089 | #include <wx/joystick.h> |
d14a1e28 RD |
2090 | |
2091 | ||
093d3ff1 RD |
2092 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
2093 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
2094 | class wxJoystick : public wxObject { | |
d14a1e28 | 2095 | public: |
093d3ff1 RD |
2096 | wxJoystick(int joystick = wxJOYSTICK1) { |
2097 | bool blocked = wxPyBeginBlockThreads(); | |
2098 | PyErr_SetString(PyExc_NotImplementedError, | |
2099 | "wxJoystick is not available on this platform."); | |
2100 | wxPyEndBlockThreads(blocked); | |
2101 | } | |
2102 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
2103 | int GetZPosition() { return -1; } | |
2104 | int GetButtonState() { return -1; } | |
2105 | int GetPOVPosition() { return -1; } | |
2106 | int GetPOVCTSPosition() { return -1; } | |
2107 | int GetRudderPosition() { return -1; } | |
2108 | int GetUPosition() { return -1; } | |
2109 | int GetVPosition() { return -1; } | |
2110 | int GetMovementThreshold() { return -1; } | |
2111 | void SetMovementThreshold(int threshold) {} | |
d14a1e28 | 2112 | |
093d3ff1 RD |
2113 | bool IsOk(void) { return false; } |
2114 | int GetNumberJoysticks() { return -1; } | |
2115 | int GetManufacturerId() { return -1; } | |
2116 | int GetProductId() { return -1; } | |
2117 | wxString GetProductName() { return wxEmptyString; } | |
2118 | int GetXMin() { return -1; } | |
2119 | int GetYMin() { return -1; } | |
2120 | int GetZMin() { return -1; } | |
2121 | int GetXMax() { return -1; } | |
2122 | int GetYMax() { return -1; } | |
2123 | int GetZMax() { return -1; } | |
2124 | int GetNumberButtons() { return -1; } | |
2125 | int GetNumberAxes() { return -1; } | |
2126 | int GetMaxButtons() { return -1; } | |
2127 | int GetMaxAxes() { return -1; } | |
2128 | int GetPollingMin() { return -1; } | |
2129 | int GetPollingMax() { return -1; } | |
2130 | int GetRudderMin() { return -1; } | |
2131 | int GetRudderMax() { return -1; } | |
2132 | int GetUMin() { return -1; } | |
2133 | int GetUMax() { return -1; } | |
2134 | int GetVMin() { return -1; } | |
2135 | int GetVMax() { return -1; } | |
d14a1e28 | 2136 | |
093d3ff1 RD |
2137 | bool HasRudder() { return false; } |
2138 | bool HasZ() { return false; } | |
2139 | bool HasU() { return false; } | |
2140 | bool HasV() { return false; } | |
2141 | bool HasPOV() { return false; } | |
2142 | bool HasPOV4Dir() { return false; } | |
2143 | bool HasPOVCTS() { return false; } | |
d14a1e28 | 2144 | |
093d3ff1 RD |
2145 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; } |
2146 | bool ReleaseCapture() { return false; } | |
d14a1e28 | 2147 | }; |
093d3ff1 | 2148 | #endif |
d14a1e28 | 2149 | |
6923d0a9 | 2150 | |
093d3ff1 | 2151 | #include <wx/sound.h> |
6923d0a9 | 2152 | |
6923d0a9 | 2153 | |
093d3ff1 RD |
2154 | #if !wxUSE_SOUND |
2155 | // A C++ stub class for wxWave for platforms that don't have it. | |
2156 | class wxSound : public wxObject | |
6923d0a9 RD |
2157 | { |
2158 | public: | |
093d3ff1 RD |
2159 | wxSound() { |
2160 | bool blocked = wxPyBeginBlockThreads(); | |
2161 | PyErr_SetString(PyExc_NotImplementedError, | |
2162 | "wxSound is not available on this platform."); | |
2163 | wxPyEndBlockThreads(blocked); | |
2164 | } | |
2165 | wxSound(const wxString&/*, bool*/) { | |
2166 | bool blocked = wxPyBeginBlockThreads(); | |
2167 | PyErr_SetString(PyExc_NotImplementedError, | |
2168 | "wxSound is not available on this platform."); | |
2169 | wxPyEndBlockThreads(blocked); | |
2170 | } | |
2171 | wxSound(int, const wxByte*) { | |
2172 | bool blocked = wxPyBeginBlockThreads(); | |
2173 | PyErr_SetString(PyExc_NotImplementedError, | |
2174 | "wxSound is not available on this platform."); | |
2175 | wxPyEndBlockThreads(blocked); | |
2176 | } | |
6923d0a9 | 2177 | |
093d3ff1 | 2178 | ~wxSound() {}; |
6923d0a9 | 2179 | |
093d3ff1 RD |
2180 | bool Create(const wxString&/*, bool*/) { return false; } |
2181 | bool Create(int, const wxByte*) { return false; }; | |
2182 | bool IsOk() { return false; }; | |
2183 | bool Play(unsigned) const { return false; } | |
2184 | static bool Play(const wxString&, unsigned) { return false; } | |
2185 | static void Stop() {} | |
6923d0a9 | 2186 | }; |
093d3ff1 | 2187 | |
6923d0a9 RD |
2188 | #endif |
2189 | ||
093d3ff1 RD |
2190 | static wxSound *new_wxSound(wxString const &fileName=wxPyEmptyString){ |
2191 | if (fileName.Length() == 0) | |
2192 | return new wxSound; | |
2193 | else | |
2194 | return new wxSound(fileName); | |
2195 | } | |
2196 | static wxSound *new_wxSound(PyObject *data){ | |
2197 | unsigned char* buffer; int size; | |
2198 | wxSound *sound = NULL; | |
2199 | ||
4f89f6a3 | 2200 | bool blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2201 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
2202 | goto done; | |
2203 | sound = new wxSound(size, buffer); | |
2204 | done: | |
4f89f6a3 | 2205 | wxPyEndBlockThreads(blocked); |
093d3ff1 | 2206 | return sound; |
4276dc52 | 2207 | } |
093d3ff1 RD |
2208 | static bool wxSound_CreateFromData(wxSound *self,PyObject *data){ |
2209 | #ifndef __WXMAC__ | |
2210 | unsigned char* buffer; | |
2211 | int size; | |
2212 | bool rv = false; | |
d3b6e4ff | 2213 | |
093d3ff1 RD |
2214 | bool blocked = wxPyBeginBlockThreads(); |
2215 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
2216 | goto done; | |
2217 | rv = self->Create(size, buffer); | |
2218 | done: | |
2219 | wxPyEndBlockThreads(blocked); | |
2220 | return rv; | |
2221 | #else | |
2222 | bool blocked = wxPyBeginBlockThreads(); | |
2223 | PyErr_SetString(PyExc_NotImplementedError, | |
2224 | "Create from data is not available on this platform."); | |
2225 | wxPyEndBlockThreads(blocked); | |
2226 | return false; | |
2227 | #endif | |
2228 | } | |
d3b6e4ff | 2229 | |
093d3ff1 RD |
2230 | #include <wx/mimetype.h> |
2231 | ||
2232 | static PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
2233 | wxString str; | |
2234 | if (self->GetMimeType(&str)) | |
2235 | return wx2PyString(str); | |
2236 | else | |
2237 | RETURN_NONE(); | |
8fb0e70a | 2238 | } |
093d3ff1 RD |
2239 | static PyObject *wxFileType_GetMimeTypes(wxFileType *self){ |
2240 | wxArrayString arr; | |
2241 | if (self->GetMimeTypes(arr)) | |
2242 | return wxArrayString2PyList_helper(arr); | |
2243 | else | |
2244 | RETURN_NONE(); | |
2245 | } | |
2246 | static PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
2247 | wxArrayString arr; | |
2248 | if (self->GetExtensions(arr)) | |
2249 | return wxArrayString2PyList_helper(arr); | |
2250 | else | |
2251 | RETURN_NONE(); | |
2252 | } | |
2253 | static wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
2254 | wxIconLocation loc; | |
2255 | if (self->GetIcon(&loc)) | |
2256 | return new wxIcon(loc); | |
2257 | else | |
2258 | return NULL; | |
2259 | } | |
2260 | static PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
2261 | wxIconLocation loc; | |
2262 | if (self->GetIcon(&loc)) { | |
2263 | wxString iconFile = loc.GetFileName(); | |
2264 | int iconIndex = -1; | |
d14a1e28 RD |
2265 | |
2266 | ||
d14a1e28 | 2267 | |
093d3ff1 RD |
2268 | // Make a tuple and put the values in it |
2269 | bool blocked = wxPyBeginBlockThreads(); | |
2270 | PyObject* tuple = PyTuple_New(3); | |
2271 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
2272 | wxT("wxIcon"), true)); | |
2273 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); | |
2274 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
2275 | wxPyEndBlockThreads(blocked); | |
2276 | return tuple; | |
2277 | } | |
2278 | else | |
2279 | RETURN_NONE(); | |
2280 | } | |
2281 | static PyObject *wxFileType_GetDescription(wxFileType *self){ | |
2282 | wxString str; | |
2283 | if (self->GetDescription(&str)) | |
2284 | return wx2PyString(str); | |
2285 | else | |
2286 | RETURN_NONE(); | |
2287 | } | |
2288 | static PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2289 | wxString str; | |
2290 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
2291 | return wx2PyString(str); | |
2292 | else | |
2293 | RETURN_NONE(); | |
2294 | } | |
2295 | static PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2296 | wxString str; | |
2297 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
2298 | return wx2PyString(str); | |
2299 | else | |
2300 | RETURN_NONE(); | |
2301 | } | |
2302 | static PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2303 | wxArrayString verbs; | |
2304 | wxArrayString commands; | |
2305 | if (self->GetAllCommands(&verbs, &commands, | |
2306 | wxFileType::MessageParameters(filename, mimetype))) { | |
2307 | bool blocked = wxPyBeginBlockThreads(); | |
2308 | PyObject* tuple = PyTuple_New(2); | |
2309 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
2310 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
2311 | wxPyEndBlockThreads(blocked); | |
2312 | return tuple; | |
2313 | } | |
2314 | else | |
2315 | RETURN_NONE(); | |
2316 | } | |
2317 | static wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype=wxPyEmptyString){ | |
2318 | return wxFileType::ExpandCommand(command, | |
2319 | wxFileType::MessageParameters(filename, mimetype)); | |
2320 | } | |
2321 | static PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
2322 | wxArrayString arr; | |
2323 | self->EnumAllFileTypes(arr); | |
2324 | return wxArrayString2PyList_helper(arr); | |
2325 | } | |
d14a1e28 | 2326 | |
093d3ff1 | 2327 | #include <wx/artprov.h> |
d14a1e28 | 2328 | |
093d3ff1 RD |
2329 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); |
2330 | static const wxString wxPyART_MENU(wxART_MENU); | |
2331 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
2332 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
2333 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
2334 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
2335 | static const wxString wxPyART_BUTTON(wxART_BUTTON); | |
2336 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
2337 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
2338 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
2339 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
2340 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
2341 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
2342 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
2343 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
2344 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
2345 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
2346 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
2347 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
2348 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
2349 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
2350 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
0c243d93 RD |
2351 | static const wxString wxPyART_FILE_SAVE(wxART_FILE_SAVE); |
2352 | static const wxString wxPyART_FILE_SAVE_AS(wxART_FILE_SAVE_AS); | |
093d3ff1 RD |
2353 | static const wxString wxPyART_PRINT(wxART_PRINT); |
2354 | static const wxString wxPyART_HELP(wxART_HELP); | |
2355 | static const wxString wxPyART_TIP(wxART_TIP); | |
2356 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
2357 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
2358 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
2359 | static const wxString wxPyART_HARDDISK(wxART_HARDDISK); | |
2360 | static const wxString wxPyART_FLOPPY(wxART_FLOPPY); | |
2361 | static const wxString wxPyART_CDROM(wxART_CDROM); | |
2362 | static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE); | |
2363 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
2364 | static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN); | |
2365 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
2366 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
2367 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
2368 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
2369 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
2370 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
2371 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
2372 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
2373 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
2374 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
0c243d93 RD |
2375 | static const wxString wxPyART_COPY(wxART_COPY); |
2376 | static const wxString wxPyART_CUT(wxART_CUT); | |
2377 | static const wxString wxPyART_PASTE(wxART_PASTE); | |
2378 | static const wxString wxPyART_DELETE(wxART_DELETE); | |
2379 | static const wxString wxPyART_UNDO(wxART_UNDO); | |
2380 | static const wxString wxPyART_REDO(wxART_REDO); | |
2381 | static const wxString wxPyART_QUIT(wxART_QUIT); | |
2382 | static const wxString wxPyART_FIND(wxART_FIND); | |
2383 | static const wxString wxPyART_FIND_AND_REPLACE(wxART_FIND_AND_REPLACE); | |
093d3ff1 RD |
2384 | // Python aware wxArtProvider |
2385 | class wxPyArtProvider : public wxArtProvider { | |
2386 | public: | |
d14a1e28 | 2387 | |
093d3ff1 RD |
2388 | virtual wxBitmap CreateBitmap(const wxArtID& id, |
2389 | const wxArtClient& client, | |
2390 | const wxSize& size) { | |
2391 | wxBitmap rval = wxNullBitmap; | |
2392 | bool blocked = wxPyBeginBlockThreads(); | |
2393 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
2394 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
2395 | PyObject* ro; | |
2396 | wxBitmap* ptr; | |
2397 | PyObject* s1, *s2; | |
2398 | s1 = wx2PyString(id); | |
2399 | s2 = wx2PyString(client); | |
2400 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
2401 | Py_DECREF(so); | |
2402 | Py_DECREF(s1); | |
2403 | Py_DECREF(s2); | |
2404 | if (ro) { | |
2405 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
2406 | rval = *ptr; | |
2407 | Py_DECREF(ro); | |
2408 | } | |
2409 | } | |
2410 | wxPyEndBlockThreads(blocked); | |
2411 | return rval; | |
4f89f6a3 | 2412 | } |
d14a1e28 | 2413 | |
093d3ff1 RD |
2414 | PYPRIVATE; |
2415 | }; | |
d14a1e28 | 2416 | |
093d3ff1 | 2417 | static void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
2418 | |
2419 | ||
093d3ff1 RD |
2420 | |
2421 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
2422 | PyObject* ret = PyTuple_New(3); | |
2423 | if (ret) { | |
2424 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
2425 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
2426 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
2427 | } | |
2428 | return ret; | |
d14a1e28 | 2429 | } |
d14a1e28 | 2430 | |
093d3ff1 RD |
2431 | static PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ |
2432 | bool cont; | |
2433 | long index = 0; | |
2434 | wxString value; | |
d14a1e28 | 2435 | |
093d3ff1 RD |
2436 | cont = self->GetFirstGroup(value, index); |
2437 | return __EnumerationHelper(cont, value, index); | |
2438 | } | |
2439 | static PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
2440 | bool cont; | |
2441 | wxString value; | |
7e63a440 | 2442 | |
093d3ff1 RD |
2443 | cont = self->GetNextGroup(value, index); |
2444 | return __EnumerationHelper(cont, value, index); | |
2445 | } | |
2446 | static PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
2447 | bool cont; | |
2448 | long index = 0; | |
2449 | wxString value; | |
7e63a440 | 2450 | |
093d3ff1 RD |
2451 | cont = self->GetFirstEntry(value, index); |
2452 | return __EnumerationHelper(cont, value, index); | |
2453 | } | |
2454 | static PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
2455 | bool cont; | |
2456 | wxString value; | |
7e63a440 | 2457 | |
093d3ff1 RD |
2458 | cont = self->GetNextEntry(value, index); |
2459 | return __EnumerationHelper(cont, value, index); | |
2460 | } | |
2461 | static long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal=0){ | |
2462 | long rv; | |
2463 | self->Read(key, &rv, defaultVal); | |
2464 | return rv; | |
2465 | } | |
7e63a440 | 2466 | |
093d3ff1 RD |
2467 | SWIGINTERN int |
2468 | SWIG_AsVal_double(PyObject *obj, double* val) | |
2469 | { | |
2470 | if (PyNumber_Check(obj)) { | |
2471 | if (val) *val = PyFloat_AsDouble(obj); | |
2472 | return 1; | |
d14a1e28 | 2473 | } |
093d3ff1 RD |
2474 | else { |
2475 | SWIG_type_error("number", obj); | |
2476 | } | |
2477 | return 0; | |
d14a1e28 RD |
2478 | } |
2479 | ||
2480 | ||
093d3ff1 RD |
2481 | SWIGINTERNSHORT double |
2482 | SWIG_As_double(PyObject* obj) | |
2483 | { | |
2484 | double v; | |
2485 | if (!SWIG_AsVal_double(obj, &v)) { | |
2486 | /* | |
2487 | this is needed to make valgrind/purify happier. | |
2488 | */ | |
2489 | memset((void*)&v, 0, sizeof(double)); | |
2490 | } | |
2491 | return v; | |
d14a1e28 RD |
2492 | } |
2493 | ||
093d3ff1 RD |
2494 | |
2495 | SWIGINTERNSHORT int | |
2496 | SWIG_Check_double(PyObject* obj) | |
2497 | { | |
2498 | return SWIG_AsVal_double(obj, (double*)0); | |
d14a1e28 RD |
2499 | } |
2500 | ||
093d3ff1 RD |
2501 | static double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal=0.0){ |
2502 | double rv; | |
2503 | self->Read(key, &rv, defaultVal); | |
2504 | return rv; | |
2505 | } | |
d14a1e28 | 2506 | |
093d3ff1 RD |
2507 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
2508 | #define SWIG_From_double PyFloat_FromDouble | |
2509 | /*@@*/ | |
d14a1e28 | 2510 | |
093d3ff1 RD |
2511 | static bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal=false){ |
2512 | bool rv; | |
2513 | self->Read(key, &rv, defaultVal); | |
2514 | return rv; | |
2515 | } | |
d14a1e28 | 2516 | |
093d3ff1 | 2517 | #include <wx/datetime.h> |
d14a1e28 | 2518 | |
7557b9b5 RD |
2519 | static const wxString wxPyDefaultDateTimeFormat(wxDefaultDateTimeFormat); |
2520 | static const wxString wxPyDefaultTimeSpanFormat(wxDefaultTimeSpanFormat); | |
d14a1e28 | 2521 | |
093d3ff1 | 2522 | #define LOCAL_TZ wxDateTime::Local |
b2dc1044 | 2523 | |
b9d6a5f3 RD |
2524 | static PyObject *DateTime_GetAmPmStrings(){ |
2525 | wxString am; | |
2526 | wxString pm; | |
2527 | wxDateTime::GetAmPmStrings(&am, &pm); | |
2528 | bool blocked = wxPyBeginBlockThreads(); | |
2529 | PyObject* tup = PyTuple_New(2); | |
2530 | PyTuple_SET_ITEM(tup, 0, wx2PyString(am)); | |
2531 | PyTuple_SET_ITEM(tup, 1, wx2PyString(pm)); | |
2532 | wxPyEndBlockThreads(blocked); | |
2533 | return tup; | |
2534 | } | |
b2dc1044 | 2535 | |
093d3ff1 RD |
2536 | #if UINT_MAX < LONG_MAX |
2537 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
2538 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
2539 | /*@@*/ | |
b2dc1044 | 2540 | #else |
093d3ff1 RD |
2541 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
2542 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
2543 | /*@@*/ | |
b2dc1044 | 2544 | #endif |
b2dc1044 | 2545 | |
093d3ff1 RD |
2546 | static wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } |
2547 | static wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
2548 | static wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
2549 | static wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
2550 | static wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
2551 | static bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
2552 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
2553 | return (*self < *other); | |
2554 | } | |
2555 | static bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
2556 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
2557 | return (*self <= *other); | |
2558 | } | |
2559 | static bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
2560 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
2561 | return (*self > *other); | |
2562 | } | |
2563 | static bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
2564 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
2565 | return (*self >= *other); | |
2566 | } | |
2567 | static bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
2568 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
2569 | return (*self == *other); | |
2570 | } | |
2571 | static bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
2572 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
2573 | return (*self != *other); | |
2574 | } | |
2575 | static int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
2576 | const wxChar* rv; | |
2577 | const wxChar* _date = date; | |
2578 | rv = self->ParseRfc822Date(_date); | |
2579 | if (rv == NULL) return -1; | |
2580 | return rv - _date; | |
2581 | } | |
7557b9b5 | 2582 | static int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format=wxPyDefaultDateTimeFormat,wxDateTime const &dateDef=wxDefaultDateTime){ |
093d3ff1 RD |
2583 | const wxChar* rv; |
2584 | const wxChar* _date = date; | |
2585 | rv = self->ParseFormat(_date, format, dateDef); | |
2586 | if (rv == NULL) return -1; | |
2587 | return rv - _date; | |
2588 | } | |
2589 | static int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
2590 | const wxChar* rv; | |
2591 | const wxChar* _datetime = datetime; | |
2592 | rv = self->ParseDateTime(_datetime); | |
2593 | if (rv == NULL) return -1; | |
2594 | return rv - _datetime; | |
2595 | } | |
2596 | static int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
2597 | const wxChar* rv; | |
2598 | const wxChar* _date = date; | |
2599 | rv = self->ParseDate(_date); | |
2600 | if (rv == NULL) return -1; | |
2601 | return rv - _date; | |
2602 | } | |
2603 | static int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
2604 | const wxChar* rv; | |
2605 | const wxChar* _time = time; | |
2606 | rv = self->ParseTime(_time); | |
2607 | if (rv == NULL) return -1; | |
2608 | return rv - _time; | |
2609 | } | |
2610 | static wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
2611 | static wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
2612 | static wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
2613 | static wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
2614 | static bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; } | |
2615 | static bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; } | |
2616 | static bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; } | |
2617 | static bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; } | |
2618 | static bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; } | |
2619 | static bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; } | |
2620 | static wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
2621 | static wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
2622 | static wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
2623 | static wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
2624 | static bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; } | |
2625 | static bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; } | |
b2dc1044 | 2626 | |
093d3ff1 | 2627 | #include <wx/dataobj.h> |
b2dc1044 | 2628 | |
093d3ff1 RD |
2629 | static PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir=wxDataObject::Get){ |
2630 | size_t count = self->GetFormatCount(dir); | |
2631 | wxDataFormat* formats = new wxDataFormat[count]; | |
2632 | self->GetAllFormats(formats, dir); | |
b2dc1044 | 2633 | |
093d3ff1 RD |
2634 | bool blocked = wxPyBeginBlockThreads(); |
2635 | PyObject* list = PyList_New(count); | |
2636 | for (size_t i=0; i<count; i++) { | |
2637 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
2638 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true); | |
2639 | PyList_Append(list, obj); | |
2640 | Py_DECREF(obj); | |
2641 | } | |
2642 | wxPyEndBlockThreads(blocked); | |
2643 | delete [] formats; | |
2644 | return list; | |
2645 | } | |
2646 | static PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
2647 | PyObject* rval = NULL; | |
2648 | size_t size = self->GetDataSize(format); | |
2649 | bool blocked = wxPyBeginBlockThreads(); | |
2650 | if (size) { | |
2651 | char* buf = new char[size]; | |
2652 | if (self->GetDataHere(format, buf)) | |
2653 | rval = PyString_FromStringAndSize(buf, size); | |
2654 | delete [] buf; | |
2655 | } | |
2656 | if (! rval) { | |
2657 | rval = Py_None; | |
2658 | Py_INCREF(rval); | |
2659 | } | |
2660 | wxPyEndBlockThreads(blocked); | |
2661 | return rval; | |
2662 | } | |
2663 | static bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
2664 | bool rval; | |
2665 | bool blocked = wxPyBeginBlockThreads(); | |
2666 | if (PyString_Check(data)) { | |
2667 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
2668 | } | |
2669 | else { | |
2670 | // raise a TypeError if not a string | |
2671 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
2672 | rval = false; | |
2673 | } | |
2674 | wxPyEndBlockThreads(blocked); | |
2675 | return rval; | |
2676 | } | |
2677 | static PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
2678 | PyObject* rval = NULL; | |
2679 | size_t size = self->GetDataSize(); | |
2680 | bool blocked = wxPyBeginBlockThreads(); | |
2681 | if (size) { | |
2682 | char* buf = new char[size]; | |
2683 | if (self->GetDataHere(buf)) | |
2684 | rval = PyString_FromStringAndSize(buf, size); | |
2685 | delete [] buf; | |
2686 | } | |
2687 | if (! rval) { | |
2688 | rval = Py_None; | |
2689 | Py_INCREF(rval); | |
2690 | } | |
2691 | wxPyEndBlockThreads(blocked); | |
2692 | return rval; | |
2693 | } | |
2694 | static bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
2695 | bool rval; | |
2696 | bool blocked = wxPyBeginBlockThreads(); | |
2697 | if (PyString_Check(data)) { | |
2698 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
2699 | } | |
2700 | else { | |
2701 | // raise a TypeError if not a string | |
2702 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
2703 | rval = false; | |
2704 | } | |
2705 | wxPyEndBlockThreads(blocked); | |
2706 | return rval; | |
2707 | } | |
2708 | // Create a new class for wxPython to use | |
2709 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
2710 | public: | |
2711 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
2712 | : wxDataObjectSimple(format) {} | |
b2dc1044 | 2713 | |
093d3ff1 RD |
2714 | DEC_PYCALLBACK_SIZET__const(GetDataSize); |
2715 | bool GetDataHere(void *buf) const; | |
2716 | bool SetData(size_t len, const void *buf) const; | |
2717 | PYPRIVATE; | |
2718 | }; | |
b2dc1044 | 2719 | |
093d3ff1 | 2720 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); |
b2dc1044 | 2721 | |
093d3ff1 RD |
2722 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { |
2723 | // We need to get the data for this object and write it to buf. I think | |
2724 | // the best way to do this for wxPython is to have the Python method | |
2725 | // return either a string or None and then act appropriately with the | |
2726 | // C++ version. | |
b2dc1044 | 2727 | |
093d3ff1 RD |
2728 | bool rval = false; |
2729 | bool blocked = wxPyBeginBlockThreads(); | |
2730 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
2731 | PyObject* ro; | |
2732 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
2733 | if (ro) { | |
2734 | rval = (ro != Py_None && PyString_Check(ro)); | |
2735 | if (rval) | |
2736 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
2737 | Py_DECREF(ro); | |
2738 | } | |
b2dc1044 | 2739 | } |
093d3ff1 RD |
2740 | wxPyEndBlockThreads(blocked); |
2741 | return rval; | |
b2dc1044 RD |
2742 | } |
2743 | ||
093d3ff1 RD |
2744 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ |
2745 | // For this one we simply need to make a string from buf and len | |
2746 | // and send it to the Python method. | |
2747 | bool rval = false; | |
2748 | bool blocked = wxPyBeginBlockThreads(); | |
2749 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
2750 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
2751 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
2752 | Py_DECREF(data); | |
2753 | } | |
2754 | wxPyEndBlockThreads(blocked); | |
2755 | return rval; | |
2756 | } | |
b2dc1044 | 2757 | |
093d3ff1 RD |
2758 | // Create a new class for wxPython to use |
2759 | class wxPyTextDataObject : public wxTextDataObject { | |
2760 | public: | |
2761 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
2762 | : wxTextDataObject(text) {} | |
2763 | ||
2764 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
2765 | DEC_PYCALLBACK_STRING__const(GetText); | |
2766 | DEC_PYCALLBACK__STRING(SetText); | |
2767 | PYPRIVATE; | |
2768 | }; | |
2769 | ||
2770 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
2771 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
2772 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
2773 | ||
2774 | ||
2775 | // Create a new class for wxPython to use | |
2776 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
2777 | public: | |
2778 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
2779 | : wxBitmapDataObject(bitmap) {} | |
2780 | ||
2781 | wxBitmap GetBitmap() const; | |
2782 | void SetBitmap(const wxBitmap& bitmap); | |
2783 | PYPRIVATE; | |
2784 | }; | |
2785 | ||
2786 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
2787 | wxBitmap* rval = &wxNullBitmap; | |
2788 | bool blocked = wxPyBeginBlockThreads(); | |
2789 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
2790 | PyObject* ro; | |
2791 | wxBitmap* ptr; | |
2792 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
2793 | if (ro) { | |
2794 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
2795 | rval = ptr; | |
2796 | Py_DECREF(ro); | |
2797 | } | |
2798 | } | |
2799 | wxPyEndBlockThreads(blocked); | |
2800 | return *rval; | |
2801 | } | |
2802 | ||
2803 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
2804 | bool blocked = wxPyBeginBlockThreads(); | |
2805 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
2806 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false); | |
2807 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); | |
2808 | Py_DECREF(bo); | |
2809 | } | |
2810 | wxPyEndBlockThreads(blocked); | |
2811 | } | |
2812 | ||
7557b9b5 RD |
2813 | static wxCustomDataObject *new_wxCustomDataObject__SWIG_1(wxString const &formatName){ |
2814 | return new wxCustomDataObject(wxDataFormat(formatName)); | |
2815 | } | |
093d3ff1 RD |
2816 | static bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
2817 | bool rval; | |
2818 | bool blocked = wxPyBeginBlockThreads(); | |
2819 | if (PyString_Check(data)) { | |
2820 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
2821 | } | |
2822 | else { | |
2823 | // raise a TypeError if not a string | |
2824 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
2825 | rval = false; | |
2826 | } | |
2827 | wxPyEndBlockThreads(blocked); | |
2828 | return rval; | |
2829 | } | |
2830 | static PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
2831 | PyObject* obj; | |
2832 | bool blocked = wxPyBeginBlockThreads(); | |
2833 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
2834 | wxPyEndBlockThreads(blocked); | |
2835 | return obj; | |
2836 | } | |
2837 | ||
2838 | class wxMetafileDataObject : public wxDataObjectSimple | |
2839 | { | |
2840 | public: | |
2841 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } | |
2842 | }; | |
2843 | ||
2844 | ||
2845 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
2846 | ||
2847 | ||
2848 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
2849 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
2850 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
2851 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
2852 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
2853 | ||
2854 | ||
2855 | class wxPyTextDropTarget : public wxTextDropTarget { | |
2856 | public: | |
2857 | wxPyTextDropTarget() {} | |
2858 | ||
2859 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
2860 | ||
2861 | DEC_PYCALLBACK__(OnLeave); | |
2862 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
2863 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
2864 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
2865 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
2866 | ||
2867 | PYPRIVATE; | |
2868 | }; | |
2869 | ||
2870 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
2871 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
2872 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
2873 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
2874 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
2875 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
2876 | ||
2877 | ||
2878 | ||
2879 | class wxPyFileDropTarget : public wxFileDropTarget { | |
2880 | public: | |
2881 | wxPyFileDropTarget() {} | |
2882 | ||
2883 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
2884 | ||
2885 | DEC_PYCALLBACK__(OnLeave); | |
2886 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
2887 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
2888 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
2889 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
2890 | ||
2891 | PYPRIVATE; | |
2892 | }; | |
2893 | ||
2894 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
2895 | const wxArrayString& filenames) { | |
2896 | bool rval = false; | |
2897 | bool blocked = wxPyBeginBlockThreads(); | |
2898 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
2899 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
2900 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
2901 | Py_DECREF(list); | |
2902 | } | |
2903 | wxPyEndBlockThreads(blocked); | |
2904 | return rval; | |
2905 | } | |
2906 | ||
2907 | ||
2908 | ||
2909 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
2910 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
2911 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
2912 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
2913 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
2914 | ||
2915 | ||
2916 | ||
2917 | ||
2918 | static bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
2919 | ||
2920 | #include <wx/display.h> | |
2921 | ||
2922 | static bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; } | |
2923 | static bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; } | |
2924 | ||
2925 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
2926 | #if !wxUSE_DISPLAY | |
2927 | #include <wx/dynarray.h> | |
2928 | #include <wx/vidmode.h> | |
2929 | ||
2930 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); | |
2931 | #include "wx/arrimpl.cpp" | |
2932 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
2933 | const wxVideoMode wxDefaultVideoMode; | |
2934 | ||
2935 | class wxDisplay | |
2936 | { | |
2937 | public: | |
2938 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
2939 | ~wxDisplay() {} | |
2940 | ||
2941 | static size_t GetCount() | |
2942 | { wxPyRaiseNotImplemented(); return 0; } | |
2943 | ||
2944 | static int GetFromPoint(const wxPoint& pt) | |
2945 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
2946 | static int GetFromWindow(wxWindow *window) | |
2947 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
2948 | ||
2949 | virtual bool IsOk() const { return false; } | |
2950 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
2951 | virtual wxString GetName() const { return wxEmptyString; } | |
2952 | bool IsPrimary() const { return false; } | |
2953 | ||
2954 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
2955 | { wxArrayVideoModes a; return a; } | |
2956 | ||
2957 | virtual wxVideoMode GetCurrentMode() const | |
2958 | { return wxDefaultVideoMode; } | |
2959 | ||
2960 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
2961 | { return false; } | |
2962 | ||
2963 | void ResetMode() {} | |
2964 | }; | |
2965 | #endif | |
2966 | ||
2967 | static int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
2968 | static PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode=wxDefaultVideoMode){ | |
2969 | PyObject* pyList = NULL; | |
2970 | wxArrayVideoModes arr = self->GetModes(mode); | |
2971 | bool blocked = wxPyBeginBlockThreads(); | |
2972 | pyList = PyList_New(0); | |
2973 | for (int i=0; i < arr.GetCount(); i++) { | |
2974 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
2975 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
2976 | PyList_Append(pyList, pyObj); | |
2977 | Py_DECREF(pyObj); | |
2978 | } | |
2979 | wxPyEndBlockThreads(blocked); | |
2980 | return pyList; | |
2981 | } | |
2982 | ||
2983 | #include <wx/stdpaths.h> | |
2984 | ||
2985 | static wxStandardPaths *StandardPaths_Get(){ | |
2986 | return (wxStandardPaths*) &wxStandardPaths::Get(); | |
2987 | } | |
2988 | #ifdef __cplusplus | |
2989 | extern "C" { | |
2990 | #endif | |
2991 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
2992 | PyObject *resultobj; | |
2993 | wxSystemColour arg1 ; | |
2994 | wxColour result; | |
2995 | PyObject * obj0 = 0 ; | |
d14a1e28 | 2996 | char *kwnames[] = { |
093d3ff1 | 2997 | (char *) "index", NULL |
d14a1e28 RD |
2998 | }; |
2999 | ||
093d3ff1 RD |
3000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
3001 | { | |
3002 | arg1 = (wxSystemColour)(SWIG_As_int(obj0)); | |
3003 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3004 | } | |
d14a1e28 | 3005 | { |
093d3ff1 | 3006 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3008 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); |
d14a1e28 RD |
3009 | |
3010 | wxPyEndAllowThreads(__tstate); | |
3011 | if (PyErr_Occurred()) SWIG_fail; | |
3012 | } | |
093d3ff1 RD |
3013 | { |
3014 | wxColour * resultptr; | |
3015 | resultptr = new wxColour((wxColour &)(result)); | |
3016 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
3017 | } | |
d14a1e28 RD |
3018 | return resultobj; |
3019 | fail: | |
3020 | return NULL; | |
3021 | } | |
3022 | ||
3023 | ||
093d3ff1 | 3024 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3025 | PyObject *resultobj; |
093d3ff1 RD |
3026 | wxSystemFont arg1 ; |
3027 | wxFont result; | |
994141e6 | 3028 | PyObject * obj0 = 0 ; |
d14a1e28 | 3029 | char *kwnames[] = { |
093d3ff1 | 3030 | (char *) "index", NULL |
d14a1e28 RD |
3031 | }; |
3032 | ||
093d3ff1 | 3033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
d14a1e28 | 3034 | { |
093d3ff1 RD |
3035 | arg1 = (wxSystemFont)(SWIG_As_int(obj0)); |
3036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3037 | } | |
3038 | { | |
3039 | if (!wxPyCheckForApp()) SWIG_fail; | |
d14a1e28 | 3040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3041 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); |
d14a1e28 RD |
3042 | |
3043 | wxPyEndAllowThreads(__tstate); | |
3044 | if (PyErr_Occurred()) SWIG_fail; | |
3045 | } | |
d14a1e28 | 3046 | { |
093d3ff1 RD |
3047 | wxFont * resultptr; |
3048 | resultptr = new wxFont((wxFont &)(result)); | |
3049 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
d14a1e28 | 3050 | } |
d14a1e28 RD |
3051 | return resultobj; |
3052 | fail: | |
3053 | return NULL; | |
3054 | } | |
3055 | ||
3056 | ||
093d3ff1 | 3057 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) { |
023a034e | 3058 | PyObject *resultobj; |
093d3ff1 | 3059 | wxSystemMetric arg1 ; |
8f4d7c19 | 3060 | wxWindow *arg2 = (wxWindow *) NULL ; |
093d3ff1 | 3061 | int result; |
023a034e | 3062 | PyObject * obj0 = 0 ; |
8f4d7c19 | 3063 | PyObject * obj1 = 0 ; |
023a034e | 3064 | char *kwnames[] = { |
8f4d7c19 | 3065 | (char *) "index",(char *) "win", NULL |
023a034e RD |
3066 | }; |
3067 | ||
8f4d7c19 | 3068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SystemSettings_GetMetric",kwnames,&obj0,&obj1)) goto fail; |
023a034e | 3069 | { |
093d3ff1 RD |
3070 | arg1 = (wxSystemMetric)(SWIG_As_int(obj0)); |
3071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3072 | } | |
8f4d7c19 RD |
3073 | if (obj1) { |
3074 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3075 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3076 | } | |
093d3ff1 RD |
3077 | { |
3078 | if (!wxPyCheckForApp()) SWIG_fail; | |
023a034e | 3079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8f4d7c19 | 3080 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1,arg2); |
023a034e RD |
3081 | |
3082 | wxPyEndAllowThreads(__tstate); | |
3083 | if (PyErr_Occurred()) SWIG_fail; | |
3084 | } | |
3085 | { | |
093d3ff1 | 3086 | resultobj = SWIG_From_int((int)(result)); |
023a034e RD |
3087 | } |
3088 | return resultobj; | |
3089 | fail: | |
3090 | return NULL; | |
3091 | } | |
3092 | ||
3093 | ||
093d3ff1 | 3094 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) { |
023a034e | 3095 | PyObject *resultobj; |
093d3ff1 | 3096 | wxSystemFeature arg1 ; |
023a034e | 3097 | bool result; |
023a034e | 3098 | PyObject * obj0 = 0 ; |
023a034e | 3099 | char *kwnames[] = { |
093d3ff1 | 3100 | (char *) "index", NULL |
023a034e RD |
3101 | }; |
3102 | ||
093d3ff1 | 3103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
023a034e | 3104 | { |
093d3ff1 RD |
3105 | arg1 = (wxSystemFeature)(SWIG_As_int(obj0)); |
3106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
023a034e RD |
3107 | } |
3108 | { | |
093d3ff1 | 3109 | if (!wxPyCheckForApp()) SWIG_fail; |
023a034e | 3110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3111 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); |
023a034e RD |
3112 | |
3113 | wxPyEndAllowThreads(__tstate); | |
3114 | if (PyErr_Occurred()) SWIG_fail; | |
3115 | } | |
3116 | { | |
3117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3118 | } | |
023a034e RD |
3119 | return resultobj; |
3120 | fail: | |
023a034e RD |
3121 | return NULL; |
3122 | } | |
3123 | ||
3124 | ||
093d3ff1 | 3125 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
023a034e | 3126 | PyObject *resultobj; |
093d3ff1 | 3127 | wxSystemScreenType result; |
023a034e | 3128 | char *kwnames[] = { |
093d3ff1 | 3129 | NULL |
023a034e RD |
3130 | }; |
3131 | ||
093d3ff1 | 3132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; |
023a034e | 3133 | { |
093d3ff1 | 3134 | if (!wxPyCheckForApp()) SWIG_fail; |
023a034e | 3135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3136 | result = (wxSystemScreenType)wxSystemSettings::GetScreenType(); |
023a034e RD |
3137 | |
3138 | wxPyEndAllowThreads(__tstate); | |
3139 | if (PyErr_Occurred()) SWIG_fail; | |
3140 | } | |
093d3ff1 | 3141 | resultobj = SWIG_From_int((result)); |
023a034e RD |
3142 | return resultobj; |
3143 | fail: | |
3144 | return NULL; | |
3145 | } | |
3146 | ||
3147 | ||
093d3ff1 | 3148 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3149 | PyObject *resultobj; |
093d3ff1 RD |
3150 | wxSystemScreenType arg1 ; |
3151 | PyObject * obj0 = 0 ; | |
d14a1e28 | 3152 | char *kwnames[] = { |
093d3ff1 | 3153 | (char *) "screen", NULL |
d14a1e28 RD |
3154 | }; |
3155 | ||
093d3ff1 RD |
3156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
3157 | { | |
3158 | arg1 = (wxSystemScreenType)(SWIG_As_int(obj0)); | |
3159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3160 | } | |
d14a1e28 | 3161 | { |
e3b71cb8 | 3162 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3164 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); |
d14a1e28 RD |
3165 | |
3166 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3167 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3168 | } |
3169 | Py_INCREF(Py_None); resultobj = Py_None; | |
3170 | return resultobj; | |
3171 | fail: | |
3172 | return NULL; | |
3173 | } | |
3174 | ||
3175 | ||
093d3ff1 RD |
3176 | static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) { |
3177 | PyObject *obj; | |
3178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3179 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
3180 | Py_INCREF(obj); | |
3181 | return Py_BuildValue((char *)""); | |
3182 | } | |
3183 | static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) { | |
3184 | PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only."); | |
3185 | return 1; | |
3186 | } | |
3187 | ||
3188 | ||
3189 | static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get(void) { | |
3190 | PyObject *pyobj; | |
d14a1e28 | 3191 | |
d14a1e28 | 3192 | { |
093d3ff1 RD |
3193 | #if wxUSE_UNICODE |
3194 | pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
3195 | #else | |
3196 | pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
3197 | #endif | |
d14a1e28 | 3198 | } |
093d3ff1 | 3199 | return pyobj; |
d14a1e28 RD |
3200 | } |
3201 | ||
3202 | ||
093d3ff1 | 3203 | static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3204 | PyObject *resultobj; |
093d3ff1 | 3205 | wxSystemOptions *result; |
d14a1e28 | 3206 | char *kwnames[] = { |
093d3ff1 | 3207 | NULL |
d14a1e28 RD |
3208 | }; |
3209 | ||
093d3ff1 | 3210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; |
d14a1e28 RD |
3211 | { |
3212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3213 | result = (wxSystemOptions *)new wxSystemOptions(); |
d14a1e28 RD |
3214 | |
3215 | wxPyEndAllowThreads(__tstate); | |
3216 | if (PyErr_Occurred()) SWIG_fail; | |
3217 | } | |
093d3ff1 | 3218 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); |
d14a1e28 RD |
3219 | return resultobj; |
3220 | fail: | |
3221 | return NULL; | |
3222 | } | |
3223 | ||
3224 | ||
093d3ff1 | 3225 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3226 | PyObject *resultobj; |
093d3ff1 RD |
3227 | wxString *arg1 = 0 ; |
3228 | wxString *arg2 = 0 ; | |
3229 | bool temp1 = false ; | |
3230 | bool temp2 = false ; | |
3231 | PyObject * obj0 = 0 ; | |
3232 | PyObject * obj1 = 0 ; | |
d14a1e28 | 3233 | char *kwnames[] = { |
093d3ff1 | 3234 | (char *) "name",(char *) "value", NULL |
d14a1e28 RD |
3235 | }; |
3236 | ||
093d3ff1 RD |
3237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; |
3238 | { | |
3239 | arg1 = wxString_in_helper(obj0); | |
3240 | if (arg1 == NULL) SWIG_fail; | |
3241 | temp1 = true; | |
3242 | } | |
3243 | { | |
3244 | arg2 = wxString_in_helper(obj1); | |
3245 | if (arg2 == NULL) SWIG_fail; | |
3246 | temp2 = true; | |
3247 | } | |
d14a1e28 RD |
3248 | { |
3249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3250 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); |
d14a1e28 RD |
3251 | |
3252 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3253 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3254 | } |
3255 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
3256 | { |
3257 | if (temp1) | |
3258 | delete arg1; | |
3259 | } | |
3260 | { | |
3261 | if (temp2) | |
3262 | delete arg2; | |
3263 | } | |
d14a1e28 RD |
3264 | return resultobj; |
3265 | fail: | |
093d3ff1 RD |
3266 | { |
3267 | if (temp1) | |
3268 | delete arg1; | |
3269 | } | |
3270 | { | |
3271 | if (temp2) | |
3272 | delete arg2; | |
3273 | } | |
d14a1e28 RD |
3274 | return NULL; |
3275 | } | |
3276 | ||
3277 | ||
093d3ff1 | 3278 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3279 | PyObject *resultobj; |
093d3ff1 RD |
3280 | wxString *arg1 = 0 ; |
3281 | int arg2 ; | |
3282 | bool temp1 = false ; | |
3283 | PyObject * obj0 = 0 ; | |
3284 | PyObject * obj1 = 0 ; | |
d14a1e28 | 3285 | char *kwnames[] = { |
093d3ff1 | 3286 | (char *) "name",(char *) "value", NULL |
d14a1e28 RD |
3287 | }; |
3288 | ||
093d3ff1 RD |
3289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
3290 | { | |
3291 | arg1 = wxString_in_helper(obj0); | |
3292 | if (arg1 == NULL) SWIG_fail; | |
3293 | temp1 = true; | |
3294 | } | |
3295 | { | |
3296 | arg2 = (int)(SWIG_As_int(obj1)); | |
3297 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3298 | } | |
d14a1e28 RD |
3299 | { |
3300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3301 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); |
d14a1e28 RD |
3302 | |
3303 | wxPyEndAllowThreads(__tstate); | |
3304 | if (PyErr_Occurred()) SWIG_fail; | |
3305 | } | |
093d3ff1 | 3306 | Py_INCREF(Py_None); resultobj = Py_None; |
4f89f6a3 | 3307 | { |
093d3ff1 RD |
3308 | if (temp1) |
3309 | delete arg1; | |
4f89f6a3 | 3310 | } |
d14a1e28 RD |
3311 | return resultobj; |
3312 | fail: | |
093d3ff1 RD |
3313 | { |
3314 | if (temp1) | |
3315 | delete arg1; | |
3316 | } | |
d14a1e28 RD |
3317 | return NULL; |
3318 | } | |
3319 | ||
3320 | ||
093d3ff1 | 3321 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3322 | PyObject *resultobj; |
093d3ff1 | 3323 | wxString *arg1 = 0 ; |
d14a1e28 | 3324 | wxString result; |
093d3ff1 RD |
3325 | bool temp1 = false ; |
3326 | PyObject * obj0 = 0 ; | |
d14a1e28 | 3327 | char *kwnames[] = { |
093d3ff1 | 3328 | (char *) "name", NULL |
d14a1e28 RD |
3329 | }; |
3330 | ||
093d3ff1 RD |
3331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; |
3332 | { | |
3333 | arg1 = wxString_in_helper(obj0); | |
3334 | if (arg1 == NULL) SWIG_fail; | |
3335 | temp1 = true; | |
3336 | } | |
d14a1e28 RD |
3337 | { |
3338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3339 | result = wxSystemOptions::GetOption((wxString const &)*arg1); |
d14a1e28 RD |
3340 | |
3341 | wxPyEndAllowThreads(__tstate); | |
3342 | if (PyErr_Occurred()) SWIG_fail; | |
3343 | } | |
3344 | { | |
3345 | #if wxUSE_UNICODE | |
3346 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3347 | #else | |
3348 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3349 | #endif | |
3350 | } | |
093d3ff1 RD |
3351 | { |
3352 | if (temp1) | |
3353 | delete arg1; | |
3354 | } | |
d14a1e28 RD |
3355 | return resultobj; |
3356 | fail: | |
093d3ff1 RD |
3357 | { |
3358 | if (temp1) | |
3359 | delete arg1; | |
3360 | } | |
d14a1e28 RD |
3361 | return NULL; |
3362 | } | |
3363 | ||
3364 | ||
093d3ff1 | 3365 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3366 | PyObject *resultobj; |
093d3ff1 RD |
3367 | wxString *arg1 = 0 ; |
3368 | int result; | |
ae8162c8 | 3369 | bool temp1 = false ; |
d14a1e28 RD |
3370 | PyObject * obj0 = 0 ; |
3371 | char *kwnames[] = { | |
093d3ff1 | 3372 | (char *) "name", NULL |
d14a1e28 RD |
3373 | }; |
3374 | ||
093d3ff1 RD |
3375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; |
3376 | { | |
3377 | arg1 = wxString_in_helper(obj0); | |
3378 | if (arg1 == NULL) SWIG_fail; | |
3379 | temp1 = true; | |
d14a1e28 RD |
3380 | } |
3381 | { | |
3382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3383 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); |
d14a1e28 RD |
3384 | |
3385 | wxPyEndAllowThreads(__tstate); | |
3386 | if (PyErr_Occurred()) SWIG_fail; | |
3387 | } | |
4f89f6a3 | 3388 | { |
093d3ff1 | 3389 | resultobj = SWIG_From_int((int)(result)); |
4f89f6a3 | 3390 | } |
d14a1e28 RD |
3391 | { |
3392 | if (temp1) | |
3393 | delete arg1; | |
3394 | } | |
3395 | return resultobj; | |
3396 | fail: | |
3397 | { | |
3398 | if (temp1) | |
3399 | delete arg1; | |
3400 | } | |
3401 | return NULL; | |
3402 | } | |
3403 | ||
3404 | ||
093d3ff1 | 3405 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3406 | PyObject *resultobj; |
093d3ff1 RD |
3407 | wxString *arg1 = 0 ; |
3408 | bool result; | |
3409 | bool temp1 = false ; | |
3410 | PyObject * obj0 = 0 ; | |
d14a1e28 | 3411 | char *kwnames[] = { |
093d3ff1 | 3412 | (char *) "name", NULL |
d14a1e28 RD |
3413 | }; |
3414 | ||
093d3ff1 RD |
3415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; |
3416 | { | |
3417 | arg1 = wxString_in_helper(obj0); | |
3418 | if (arg1 == NULL) SWIG_fail; | |
3419 | temp1 = true; | |
3420 | } | |
d14a1e28 RD |
3421 | { |
3422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3423 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); |
d14a1e28 RD |
3424 | |
3425 | wxPyEndAllowThreads(__tstate); | |
3426 | if (PyErr_Occurred()) SWIG_fail; | |
3427 | } | |
093d3ff1 RD |
3428 | { |
3429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3430 | } | |
3431 | { | |
3432 | if (temp1) | |
3433 | delete arg1; | |
3434 | } | |
d14a1e28 RD |
3435 | return resultobj; |
3436 | fail: | |
093d3ff1 RD |
3437 | { |
3438 | if (temp1) | |
3439 | delete arg1; | |
3440 | } | |
d14a1e28 RD |
3441 | return NULL; |
3442 | } | |
3443 | ||
3444 | ||
093d3ff1 RD |
3445 | static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) { |
3446 | PyObject *obj; | |
3447 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3448 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
3449 | Py_INCREF(obj); | |
3450 | return Py_BuildValue((char *)""); | |
3451 | } | |
3452 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { | |
3453 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
3454 | return 1; | |
3455 | } | |
3456 | ||
3457 | ||
3458 | static PyObject *_wrap_FileSelectorPromptStr_get(void) { | |
3459 | PyObject *pyobj; | |
3460 | ||
3461 | { | |
3462 | #if wxUSE_UNICODE | |
3463 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
3464 | #else | |
3465 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
3466 | #endif | |
3467 | } | |
3468 | return pyobj; | |
3469 | } | |
3470 | ||
3471 | ||
3472 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { | |
3473 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
3474 | return 1; | |
3475 | } | |
3476 | ||
3477 | ||
3478 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get(void) { | |
3479 | PyObject *pyobj; | |
3480 | ||
3481 | { | |
3482 | #if wxUSE_UNICODE | |
3483 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
3484 | #else | |
3485 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
3486 | #endif | |
3487 | } | |
3488 | return pyobj; | |
3489 | } | |
3490 | ||
3491 | ||
3492 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { | |
3493 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
3494 | return 1; | |
3495 | } | |
3496 | ||
3497 | ||
3498 | static PyObject *_wrap_DirSelectorPromptStr_get(void) { | |
3499 | PyObject *pyobj; | |
3500 | ||
3501 | { | |
3502 | #if wxUSE_UNICODE | |
3503 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
3504 | #else | |
3505 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
3506 | #endif | |
3507 | } | |
3508 | return pyobj; | |
3509 | } | |
3510 | ||
3511 | ||
3512 | static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 3513 | PyObject *resultobj; |
093d3ff1 | 3514 | long result; |
d14a1e28 RD |
3515 | char *kwnames[] = { |
3516 | NULL | |
3517 | }; | |
3518 | ||
093d3ff1 | 3519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; |
d14a1e28 RD |
3520 | { |
3521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3522 | result = (long)wxNewId(); |
d14a1e28 RD |
3523 | |
3524 | wxPyEndAllowThreads(__tstate); | |
3525 | if (PyErr_Occurred()) SWIG_fail; | |
3526 | } | |
093d3ff1 RD |
3527 | { |
3528 | resultobj = SWIG_From_long((long)(result)); | |
3529 | } | |
d14a1e28 RD |
3530 | return resultobj; |
3531 | fail: | |
3532 | return NULL; | |
3533 | } | |
3534 | ||
3535 | ||
093d3ff1 | 3536 | static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3537 | PyObject *resultobj; |
093d3ff1 RD |
3538 | long arg1 ; |
3539 | PyObject * obj0 = 0 ; | |
d14a1e28 | 3540 | char *kwnames[] = { |
093d3ff1 | 3541 | (char *) "id", NULL |
d14a1e28 RD |
3542 | }; |
3543 | ||
093d3ff1 RD |
3544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
3545 | { | |
3546 | arg1 = (long)(SWIG_As_long(obj0)); | |
3547 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3548 | } | |
d14a1e28 RD |
3549 | { |
3550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3551 | wxRegisterId(arg1); |
d14a1e28 RD |
3552 | |
3553 | wxPyEndAllowThreads(__tstate); | |
3554 | if (PyErr_Occurred()) SWIG_fail; | |
3555 | } | |
093d3ff1 | 3556 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3557 | return resultobj; |
3558 | fail: | |
3559 | return NULL; | |
3560 | } | |
3561 | ||
3562 | ||
093d3ff1 | 3563 | static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3564 | PyObject *resultobj; |
3565 | long result; | |
3566 | char *kwnames[] = { | |
3567 | NULL | |
3568 | }; | |
3569 | ||
093d3ff1 | 3570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; |
d14a1e28 RD |
3571 | { |
3572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3573 | result = (long)wxGetCurrentId(); |
d14a1e28 RD |
3574 | |
3575 | wxPyEndAllowThreads(__tstate); | |
3576 | if (PyErr_Occurred()) SWIG_fail; | |
3577 | } | |
093d3ff1 RD |
3578 | { |
3579 | resultobj = SWIG_From_long((long)(result)); | |
3580 | } | |
d14a1e28 RD |
3581 | return resultobj; |
3582 | fail: | |
3583 | return NULL; | |
3584 | } | |
3585 | ||
3586 | ||
093d3ff1 | 3587 | static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3588 | PyObject *resultobj; |
3589 | int arg1 ; | |
3590 | bool result; | |
994141e6 | 3591 | PyObject * obj0 = 0 ; |
d14a1e28 | 3592 | char *kwnames[] = { |
093d3ff1 | 3593 | (char *) "id", NULL |
d14a1e28 RD |
3594 | }; |
3595 | ||
093d3ff1 RD |
3596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail; |
3597 | { | |
3598 | arg1 = (int)(SWIG_As_int(obj0)); | |
3599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3600 | } | |
d14a1e28 RD |
3601 | { |
3602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3603 | result = (bool)wxIsStockID(arg1); |
d14a1e28 RD |
3604 | |
3605 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3606 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3607 | } |
4f89f6a3 RD |
3608 | { |
3609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3610 | } | |
d14a1e28 RD |
3611 | return resultobj; |
3612 | fail: | |
3613 | return NULL; | |
3614 | } | |
3615 | ||
3616 | ||
093d3ff1 | 3617 | static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3618 | PyObject *resultobj; |
3619 | int arg1 ; | |
093d3ff1 RD |
3620 | wxString *arg2 = 0 ; |
3621 | bool result; | |
3622 | bool temp2 = false ; | |
994141e6 | 3623 | PyObject * obj0 = 0 ; |
093d3ff1 | 3624 | PyObject * obj1 = 0 ; |
d14a1e28 | 3625 | char *kwnames[] = { |
093d3ff1 | 3626 | (char *) "id",(char *) "label", NULL |
d14a1e28 RD |
3627 | }; |
3628 | ||
093d3ff1 RD |
3629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail; |
3630 | { | |
3631 | arg1 = (int)(SWIG_As_int(obj0)); | |
3632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3633 | } | |
3634 | { | |
3635 | arg2 = wxString_in_helper(obj1); | |
3636 | if (arg2 == NULL) SWIG_fail; | |
3637 | temp2 = true; | |
3638 | } | |
d14a1e28 RD |
3639 | { |
3640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3641 | result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
3642 | |
3643 | wxPyEndAllowThreads(__tstate); | |
3644 | if (PyErr_Occurred()) SWIG_fail; | |
3645 | } | |
093d3ff1 RD |
3646 | { |
3647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3648 | } | |
3649 | { | |
3650 | if (temp2) | |
3651 | delete arg2; | |
3652 | } | |
d14a1e28 RD |
3653 | return resultobj; |
3654 | fail: | |
093d3ff1 RD |
3655 | { |
3656 | if (temp2) | |
3657 | delete arg2; | |
3658 | } | |
d14a1e28 RD |
3659 | return NULL; |
3660 | } | |
3661 | ||
3662 | ||
093d3ff1 | 3663 | static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3664 | PyObject *resultobj; |
093d3ff1 | 3665 | int arg1 ; |
fef4c27a RD |
3666 | bool arg2 = (bool) true ; |
3667 | wxString arg3 = (wxString) wxPyEmptyString ; | |
093d3ff1 | 3668 | wxString result; |
d14a1e28 | 3669 | PyObject * obj0 = 0 ; |
fef4c27a RD |
3670 | PyObject * obj1 = 0 ; |
3671 | PyObject * obj2 = 0 ; | |
d14a1e28 | 3672 | char *kwnames[] = { |
fef4c27a | 3673 | (char *) "id",(char *) "withCodes",(char *) "accelerator", NULL |
d14a1e28 RD |
3674 | }; |
3675 | ||
fef4c27a | 3676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GetStockLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
3677 | { |
3678 | arg1 = (int)(SWIG_As_int(obj0)); | |
3679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3680 | } | |
fef4c27a RD |
3681 | if (obj1) { |
3682 | { | |
3683 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
3684 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3685 | } | |
3686 | } | |
3687 | if (obj2) { | |
3688 | { | |
3689 | wxString* sptr = wxString_in_helper(obj2); | |
3690 | if (sptr == NULL) SWIG_fail; | |
3691 | arg3 = *sptr; | |
3692 | delete sptr; | |
3693 | } | |
3694 | } | |
d14a1e28 RD |
3695 | { |
3696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fef4c27a | 3697 | result = wxGetStockLabel(arg1,arg2,arg3); |
7f98d120 RD |
3698 | |
3699 | wxPyEndAllowThreads(__tstate); | |
3700 | if (PyErr_Occurred()) SWIG_fail; | |
3701 | } | |
093d3ff1 RD |
3702 | { |
3703 | #if wxUSE_UNICODE | |
3704 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3705 | #else | |
3706 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3707 | #endif | |
3708 | } | |
7f98d120 RD |
3709 | return resultobj; |
3710 | fail: | |
3711 | return NULL; | |
3712 | } | |
3713 | ||
3714 | ||
093d3ff1 | 3715 | static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) { |
7f98d120 | 3716 | PyObject *resultobj; |
7f98d120 | 3717 | char *kwnames[] = { |
093d3ff1 | 3718 | NULL |
7f98d120 RD |
3719 | }; |
3720 | ||
093d3ff1 | 3721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; |
7f98d120 | 3722 | { |
093d3ff1 | 3723 | if (!wxPyCheckForApp()) SWIG_fail; |
7f98d120 | 3724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3725 | wxBell(); |
d14a1e28 RD |
3726 | |
3727 | wxPyEndAllowThreads(__tstate); | |
3728 | if (PyErr_Occurred()) SWIG_fail; | |
3729 | } | |
3730 | Py_INCREF(Py_None); resultobj = Py_None; | |
3731 | return resultobj; | |
3732 | fail: | |
3733 | return NULL; | |
3734 | } | |
3735 | ||
3736 | ||
093d3ff1 | 3737 | static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3738 | PyObject *resultobj; |
d14a1e28 | 3739 | char *kwnames[] = { |
093d3ff1 | 3740 | NULL |
d14a1e28 RD |
3741 | }; |
3742 | ||
093d3ff1 | 3743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; |
d14a1e28 | 3744 | { |
093d3ff1 | 3745 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3747 | wxEndBusyCursor(); |
d14a1e28 RD |
3748 | |
3749 | wxPyEndAllowThreads(__tstate); | |
3750 | if (PyErr_Occurred()) SWIG_fail; | |
3751 | } | |
3752 | Py_INCREF(Py_None); resultobj = Py_None; | |
3753 | return resultobj; | |
3754 | fail: | |
3755 | return NULL; | |
3756 | } | |
3757 | ||
3758 | ||
093d3ff1 | 3759 | static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3760 | PyObject *resultobj; |
093d3ff1 RD |
3761 | bool arg1 = (bool) true ; |
3762 | long result; | |
d14a1e28 RD |
3763 | PyObject * obj0 = 0 ; |
3764 | char *kwnames[] = { | |
093d3ff1 | 3765 | (char *) "resetTimer", NULL |
d14a1e28 RD |
3766 | }; |
3767 | ||
093d3ff1 RD |
3768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; |
3769 | if (obj0) { | |
3770 | { | |
3771 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
3772 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3773 | } | |
d14a1e28 RD |
3774 | } |
3775 | { | |
3776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3777 | result = (long)wxGetElapsedTime(arg1); |
d14a1e28 RD |
3778 | |
3779 | wxPyEndAllowThreads(__tstate); | |
3780 | if (PyErr_Occurred()) SWIG_fail; | |
3781 | } | |
3782 | { | |
093d3ff1 | 3783 | resultobj = SWIG_From_long((long)(result)); |
d14a1e28 RD |
3784 | } |
3785 | return resultobj; | |
3786 | fail: | |
093d3ff1 RD |
3787 | return NULL; |
3788 | } | |
3789 | ||
3790 | ||
3791 | static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
3792 | PyObject *resultobj; | |
3793 | int *arg1 = (int *) 0 ; | |
3794 | int *arg2 = (int *) 0 ; | |
3795 | int temp1 ; | |
3796 | int res1 = 0 ; | |
3797 | int temp2 ; | |
3798 | int res2 = 0 ; | |
3799 | char *kwnames[] = { | |
3800 | NULL | |
3801 | }; | |
3802 | ||
3803 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
3804 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
d14a1e28 | 3806 | { |
093d3ff1 RD |
3807 | if (!wxPyCheckForApp()) SWIG_fail; |
3808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3809 | wxGetMousePosition(arg1,arg2); | |
3810 | ||
3811 | wxPyEndAllowThreads(__tstate); | |
3812 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 3813 | } |
093d3ff1 RD |
3814 | Py_INCREF(Py_None); resultobj = Py_None; |
3815 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
3816 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
3817 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
3818 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
3819 | return resultobj; | |
3820 | fail: | |
d14a1e28 RD |
3821 | return NULL; |
3822 | } | |
3823 | ||
3824 | ||
093d3ff1 | 3825 | static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3826 | PyObject *resultobj; |
093d3ff1 | 3827 | bool result; |
d14a1e28 RD |
3828 | char *kwnames[] = { |
3829 | NULL | |
3830 | }; | |
3831 | ||
093d3ff1 | 3832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; |
d14a1e28 RD |
3833 | { |
3834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3835 | result = (bool)wxIsBusy(); |
d14a1e28 RD |
3836 | |
3837 | wxPyEndAllowThreads(__tstate); | |
3838 | if (PyErr_Occurred()) SWIG_fail; | |
3839 | } | |
3840 | { | |
093d3ff1 | 3841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3842 | } |
3843 | return resultobj; | |
3844 | fail: | |
3845 | return NULL; | |
3846 | } | |
3847 | ||
3848 | ||
093d3ff1 | 3849 | static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3850 | PyObject *resultobj; |
3851 | wxString result; | |
3852 | char *kwnames[] = { | |
3853 | NULL | |
3854 | }; | |
3855 | ||
093d3ff1 | 3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; |
d14a1e28 RD |
3857 | { |
3858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3859 | result = wxNow(); |
d14a1e28 RD |
3860 | |
3861 | wxPyEndAllowThreads(__tstate); | |
3862 | if (PyErr_Occurred()) SWIG_fail; | |
3863 | } | |
3864 | { | |
3865 | #if wxUSE_UNICODE | |
3866 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3867 | #else | |
3868 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3869 | #endif | |
3870 | } | |
3871 | return resultobj; | |
3872 | fail: | |
3873 | return NULL; | |
3874 | } | |
3875 | ||
3876 | ||
093d3ff1 | 3877 | static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3878 | PyObject *resultobj; |
093d3ff1 RD |
3879 | wxString const &arg1_defvalue = wxPyEmptyString ; |
3880 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3881 | bool result; | |
3882 | bool temp1 = false ; | |
3883 | PyObject * obj0 = 0 ; | |
d14a1e28 | 3884 | char *kwnames[] = { |
093d3ff1 | 3885 | (char *) "command", NULL |
d14a1e28 RD |
3886 | }; |
3887 | ||
093d3ff1 RD |
3888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; |
3889 | if (obj0) { | |
3890 | { | |
3891 | arg1 = wxString_in_helper(obj0); | |
3892 | if (arg1 == NULL) SWIG_fail; | |
3893 | temp1 = true; | |
3894 | } | |
3895 | } | |
d14a1e28 RD |
3896 | { |
3897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3898 | result = (bool)wxShell((wxString const &)*arg1); |
d14a1e28 RD |
3899 | |
3900 | wxPyEndAllowThreads(__tstate); | |
3901 | if (PyErr_Occurred()) SWIG_fail; | |
3902 | } | |
3903 | { | |
093d3ff1 RD |
3904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
3905 | } | |
3906 | { | |
3907 | if (temp1) | |
3908 | delete arg1; | |
d14a1e28 RD |
3909 | } |
3910 | return resultobj; | |
3911 | fail: | |
093d3ff1 RD |
3912 | { |
3913 | if (temp1) | |
3914 | delete arg1; | |
3915 | } | |
d14a1e28 RD |
3916 | return NULL; |
3917 | } | |
3918 | ||
3919 | ||
093d3ff1 | 3920 | static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3921 | PyObject *resultobj; |
d14a1e28 RD |
3922 | char *kwnames[] = { |
3923 | NULL | |
3924 | }; | |
3925 | ||
093d3ff1 | 3926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; |
d14a1e28 RD |
3927 | { |
3928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
3929 | wxStartTimer(); |
3930 | ||
3931 | wxPyEndAllowThreads(__tstate); | |
3932 | if (PyErr_Occurred()) SWIG_fail; | |
3933 | } | |
3934 | Py_INCREF(Py_None); resultobj = Py_None; | |
3935 | return resultobj; | |
3936 | fail: | |
3937 | return NULL; | |
3938 | } | |
3939 | ||
3940 | ||
3941 | static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
3942 | PyObject *resultobj; | |
3943 | int *arg1 = (int *) 0 ; | |
3944 | int *arg2 = (int *) 0 ; | |
3945 | int result; | |
3946 | int temp1 ; | |
3947 | int res1 = 0 ; | |
3948 | int temp2 ; | |
3949 | int res2 = 0 ; | |
3950 | char *kwnames[] = { | |
3951 | NULL | |
3952 | }; | |
3953 | ||
3954 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
3955 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
3956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
3957 | { | |
3958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3959 | result = (int)wxGetOsVersion(arg1,arg2); | |
d14a1e28 RD |
3960 | |
3961 | wxPyEndAllowThreads(__tstate); | |
3962 | if (PyErr_Occurred()) SWIG_fail; | |
3963 | } | |
3964 | { | |
093d3ff1 | 3965 | resultobj = SWIG_From_int((int)(result)); |
d14a1e28 | 3966 | } |
093d3ff1 RD |
3967 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
3968 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
3969 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
3970 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
3971 | return resultobj; |
3972 | fail: | |
3973 | return NULL; | |
3974 | } | |
3975 | ||
3976 | ||
093d3ff1 | 3977 | static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3978 | PyObject *resultobj; |
3979 | wxString result; | |
3980 | char *kwnames[] = { | |
3981 | NULL | |
3982 | }; | |
3983 | ||
093d3ff1 | 3984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; |
d14a1e28 RD |
3985 | { |
3986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3987 | result = wxGetOsDescription(); |
d14a1e28 RD |
3988 | |
3989 | wxPyEndAllowThreads(__tstate); | |
3990 | if (PyErr_Occurred()) SWIG_fail; | |
3991 | } | |
3992 | { | |
3993 | #if wxUSE_UNICODE | |
3994 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3995 | #else | |
3996 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3997 | #endif | |
3998 | } | |
3999 | return resultobj; | |
4000 | fail: | |
4001 | return NULL; | |
4002 | } | |
4003 | ||
4004 | ||
093d3ff1 | 4005 | static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4006 | PyObject *resultobj; |
093d3ff1 | 4007 | long result; |
d14a1e28 RD |
4008 | char *kwnames[] = { |
4009 | NULL | |
4010 | }; | |
4011 | ||
093d3ff1 | 4012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; |
d14a1e28 RD |
4013 | { |
4014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4015 | result = (long)wxGetFreeMemory(); |
d14a1e28 RD |
4016 | |
4017 | wxPyEndAllowThreads(__tstate); | |
4018 | if (PyErr_Occurred()) SWIG_fail; | |
4019 | } | |
4020 | { | |
093d3ff1 | 4021 | resultobj = SWIG_From_long((long)(result)); |
d14a1e28 RD |
4022 | } |
4023 | return resultobj; | |
4024 | fail: | |
4025 | return NULL; | |
4026 | } | |
4027 | ||
4028 | ||
093d3ff1 | 4029 | static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4030 | PyObject *resultobj; |
093d3ff1 RD |
4031 | wxShutdownFlags arg1 ; |
4032 | bool result; | |
d14a1e28 RD |
4033 | PyObject * obj0 = 0 ; |
4034 | char *kwnames[] = { | |
093d3ff1 | 4035 | (char *) "wFlags", NULL |
d14a1e28 RD |
4036 | }; |
4037 | ||
093d3ff1 RD |
4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
4039 | { | |
4040 | arg1 = (wxShutdownFlags)(SWIG_As_int(obj0)); | |
4041 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4042 | } |
4043 | { | |
093d3ff1 | 4044 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4046 | result = (bool)wxShutdown((wxShutdownFlags )arg1); |
d14a1e28 RD |
4047 | |
4048 | wxPyEndAllowThreads(__tstate); | |
4049 | if (PyErr_Occurred()) SWIG_fail; | |
4050 | } | |
4051 | { | |
093d3ff1 | 4052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4053 | } |
4054 | return resultobj; | |
4055 | fail: | |
093d3ff1 RD |
4056 | return NULL; |
4057 | } | |
4058 | ||
4059 | ||
4060 | static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) { | |
4061 | PyObject *resultobj; | |
4062 | int arg1 ; | |
4063 | PyObject * obj0 = 0 ; | |
4064 | char *kwnames[] = { | |
4065 | (char *) "secs", NULL | |
4066 | }; | |
4067 | ||
4068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
d14a1e28 | 4069 | { |
093d3ff1 RD |
4070 | arg1 = (int)(SWIG_As_int(obj0)); |
4071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4072 | } | |
4073 | { | |
4074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4075 | wxSleep(arg1); | |
4076 | ||
4077 | wxPyEndAllowThreads(__tstate); | |
4078 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 4079 | } |
093d3ff1 RD |
4080 | Py_INCREF(Py_None); resultobj = Py_None; |
4081 | return resultobj; | |
4082 | fail: | |
d14a1e28 RD |
4083 | return NULL; |
4084 | } | |
4085 | ||
4086 | ||
093d3ff1 | 4087 | static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4088 | PyObject *resultobj; |
093d3ff1 RD |
4089 | unsigned long arg1 ; |
4090 | PyObject * obj0 = 0 ; | |
d14a1e28 | 4091 | char *kwnames[] = { |
093d3ff1 | 4092 | (char *) "milliseconds", NULL |
d14a1e28 RD |
4093 | }; |
4094 | ||
093d3ff1 RD |
4095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail; |
4096 | { | |
4097 | arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0)); | |
4098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4099 | } | |
d14a1e28 RD |
4100 | { |
4101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4102 | wxMilliSleep(arg1); |
d14a1e28 RD |
4103 | |
4104 | wxPyEndAllowThreads(__tstate); | |
4105 | if (PyErr_Occurred()) SWIG_fail; | |
4106 | } | |
093d3ff1 | 4107 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
4108 | return resultobj; |
4109 | fail: | |
4110 | return NULL; | |
4111 | } | |
4112 | ||
4113 | ||
093d3ff1 | 4114 | static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4115 | PyObject *resultobj; |
093d3ff1 RD |
4116 | unsigned long arg1 ; |
4117 | PyObject * obj0 = 0 ; | |
d14a1e28 | 4118 | char *kwnames[] = { |
093d3ff1 | 4119 | (char *) "microseconds", NULL |
d14a1e28 RD |
4120 | }; |
4121 | ||
093d3ff1 RD |
4122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail; |
4123 | { | |
4124 | arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0)); | |
4125 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4126 | } | |
d14a1e28 RD |
4127 | { |
4128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4129 | wxMicroSleep(arg1); |
d14a1e28 RD |
4130 | |
4131 | wxPyEndAllowThreads(__tstate); | |
4132 | if (PyErr_Occurred()) SWIG_fail; | |
4133 | } | |
4134 | Py_INCREF(Py_None); resultobj = Py_None; | |
4135 | return resultobj; | |
4136 | fail: | |
4137 | return NULL; | |
4138 | } | |
4139 | ||
4140 | ||
093d3ff1 | 4141 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4142 | PyObject *resultobj; |
093d3ff1 | 4143 | bool arg1 ; |
d14a1e28 | 4144 | PyObject * obj0 = 0 ; |
d14a1e28 | 4145 | char *kwnames[] = { |
093d3ff1 | 4146 | (char *) "enable", NULL |
d14a1e28 RD |
4147 | }; |
4148 | ||
093d3ff1 RD |
4149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; |
4150 | { | |
4151 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
4152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 4153 | } |
d14a1e28 RD |
4154 | { |
4155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4156 | wxEnableTopLevelWindows(arg1); |
d14a1e28 RD |
4157 | |
4158 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4159 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4160 | } |
093d3ff1 | 4161 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
4162 | return resultobj; |
4163 | fail: | |
d14a1e28 RD |
4164 | return NULL; |
4165 | } | |
4166 | ||
4167 | ||
093d3ff1 | 4168 | static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4169 | PyObject *resultobj; |
4170 | wxString *arg1 = 0 ; | |
d14a1e28 | 4171 | wxString result; |
ae8162c8 | 4172 | bool temp1 = false ; |
d14a1e28 | 4173 | PyObject * obj0 = 0 ; |
d14a1e28 | 4174 | char *kwnames[] = { |
093d3ff1 | 4175 | (char *) "in", NULL |
d14a1e28 RD |
4176 | }; |
4177 | ||
093d3ff1 | 4178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4179 | { |
4180 | arg1 = wxString_in_helper(obj0); | |
4181 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4182 | temp1 = true; |
d14a1e28 RD |
4183 | } |
4184 | { | |
d14a1e28 | 4185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4186 | result = wxStripMenuCodes((wxString const &)*arg1); |
d14a1e28 RD |
4187 | |
4188 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4189 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4190 | } |
4191 | { | |
4192 | #if wxUSE_UNICODE | |
4193 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4194 | #else | |
4195 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4196 | #endif | |
4197 | } | |
4198 | { | |
4199 | if (temp1) | |
4200 | delete arg1; | |
4201 | } | |
d14a1e28 RD |
4202 | return resultobj; |
4203 | fail: | |
4204 | { | |
4205 | if (temp1) | |
4206 | delete arg1; | |
4207 | } | |
d14a1e28 RD |
4208 | return NULL; |
4209 | } | |
4210 | ||
4211 | ||
093d3ff1 | 4212 | static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4213 | PyObject *resultobj; |
d14a1e28 | 4214 | wxString result; |
d14a1e28 | 4215 | char *kwnames[] = { |
093d3ff1 | 4216 | NULL |
d14a1e28 RD |
4217 | }; |
4218 | ||
093d3ff1 | 4219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; |
d14a1e28 RD |
4220 | { |
4221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4222 | result = wxGetEmailAddress(); |
d14a1e28 RD |
4223 | |
4224 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4225 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4226 | } |
4227 | { | |
4228 | #if wxUSE_UNICODE | |
4229 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4230 | #else | |
4231 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4232 | #endif | |
4233 | } | |
d14a1e28 RD |
4234 | return resultobj; |
4235 | fail: | |
d14a1e28 RD |
4236 | return NULL; |
4237 | } | |
4238 | ||
4239 | ||
093d3ff1 | 4240 | static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4241 | PyObject *resultobj; |
d14a1e28 | 4242 | wxString result; |
d14a1e28 | 4243 | char *kwnames[] = { |
093d3ff1 | 4244 | NULL |
d14a1e28 RD |
4245 | }; |
4246 | ||
093d3ff1 | 4247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; |
d14a1e28 RD |
4248 | { |
4249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4250 | result = wxGetHostName(); |
d14a1e28 RD |
4251 | |
4252 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4253 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4254 | } |
4255 | { | |
4256 | #if wxUSE_UNICODE | |
4257 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4258 | #else | |
4259 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4260 | #endif | |
4261 | } | |
d14a1e28 RD |
4262 | return resultobj; |
4263 | fail: | |
d14a1e28 RD |
4264 | return NULL; |
4265 | } | |
4266 | ||
4267 | ||
093d3ff1 | 4268 | static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4269 | PyObject *resultobj; |
d14a1e28 | 4270 | wxString result; |
d14a1e28 | 4271 | char *kwnames[] = { |
093d3ff1 | 4272 | NULL |
d14a1e28 RD |
4273 | }; |
4274 | ||
093d3ff1 | 4275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; |
d14a1e28 | 4276 | { |
093d3ff1 RD |
4277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4278 | result = wxGetFullHostName(); | |
4279 | ||
4280 | wxPyEndAllowThreads(__tstate); | |
15afbcd0 | 4281 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4282 | } |
093d3ff1 RD |
4283 | { |
4284 | #if wxUSE_UNICODE | |
4285 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4286 | #else | |
4287 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4288 | #endif | |
d14a1e28 | 4289 | } |
093d3ff1 RD |
4290 | return resultobj; |
4291 | fail: | |
4292 | return NULL; | |
4293 | } | |
4294 | ||
4295 | ||
4296 | static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) { | |
4297 | PyObject *resultobj; | |
4298 | wxString result; | |
4299 | char *kwnames[] = { | |
4300 | NULL | |
4301 | }; | |
4302 | ||
4303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
d14a1e28 RD |
4304 | { |
4305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4306 | result = wxGetUserId(); |
d14a1e28 RD |
4307 | |
4308 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4309 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4310 | } |
4311 | { | |
4312 | #if wxUSE_UNICODE | |
4313 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4314 | #else | |
4315 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4316 | #endif | |
4317 | } | |
093d3ff1 RD |
4318 | return resultobj; |
4319 | fail: | |
4320 | return NULL; | |
4321 | } | |
4322 | ||
4323 | ||
4324 | static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) { | |
4325 | PyObject *resultobj; | |
4326 | wxString result; | |
4327 | char *kwnames[] = { | |
4328 | NULL | |
4329 | }; | |
4330 | ||
4331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
d14a1e28 | 4332 | { |
093d3ff1 RD |
4333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4334 | result = wxGetUserName(); | |
4335 | ||
4336 | wxPyEndAllowThreads(__tstate); | |
4337 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4338 | } |
4339 | { | |
093d3ff1 RD |
4340 | #if wxUSE_UNICODE |
4341 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4342 | #else | |
4343 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4344 | #endif | |
d14a1e28 RD |
4345 | } |
4346 | return resultobj; | |
4347 | fail: | |
093d3ff1 RD |
4348 | return NULL; |
4349 | } | |
4350 | ||
4351 | ||
4352 | static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
4353 | PyObject *resultobj; | |
4354 | wxString result; | |
4355 | char *kwnames[] = { | |
4356 | NULL | |
4357 | }; | |
4358 | ||
4359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
d14a1e28 | 4360 | { |
093d3ff1 RD |
4361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4362 | result = wxGetHomeDir(); | |
4363 | ||
4364 | wxPyEndAllowThreads(__tstate); | |
4365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4366 | } |
4367 | { | |
093d3ff1 RD |
4368 | #if wxUSE_UNICODE |
4369 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4370 | #else | |
4371 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4372 | #endif | |
d14a1e28 | 4373 | } |
093d3ff1 RD |
4374 | return resultobj; |
4375 | fail: | |
d14a1e28 RD |
4376 | return NULL; |
4377 | } | |
4378 | ||
4379 | ||
093d3ff1 | 4380 | static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4381 | PyObject *resultobj; |
093d3ff1 RD |
4382 | wxString const &arg1_defvalue = wxPyEmptyString ; |
4383 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d14a1e28 | 4384 | wxString result; |
ae8162c8 | 4385 | bool temp1 = false ; |
d14a1e28 | 4386 | PyObject * obj0 = 0 ; |
d14a1e28 | 4387 | char *kwnames[] = { |
093d3ff1 | 4388 | (char *) "user", NULL |
d14a1e28 RD |
4389 | }; |
4390 | ||
093d3ff1 RD |
4391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; |
4392 | if (obj0) { | |
d14a1e28 | 4393 | { |
093d3ff1 RD |
4394 | arg1 = wxString_in_helper(obj0); |
4395 | if (arg1 == NULL) SWIG_fail; | |
4396 | temp1 = true; | |
d14a1e28 RD |
4397 | } |
4398 | } | |
d14a1e28 RD |
4399 | { |
4400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4401 | result = wxGetUserHome((wxString const &)*arg1); |
d14a1e28 RD |
4402 | |
4403 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4404 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4405 | } |
4406 | { | |
4407 | #if wxUSE_UNICODE | |
4408 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4409 | #else | |
4410 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4411 | #endif | |
4412 | } | |
4413 | { | |
4414 | if (temp1) | |
4415 | delete arg1; | |
4416 | } | |
d14a1e28 RD |
4417 | return resultobj; |
4418 | fail: | |
4419 | { | |
4420 | if (temp1) | |
4421 | delete arg1; | |
4422 | } | |
d14a1e28 RD |
4423 | return NULL; |
4424 | } | |
4425 | ||
4426 | ||
093d3ff1 | 4427 | static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4428 | PyObject *resultobj; |
093d3ff1 RD |
4429 | unsigned long result; |
4430 | char *kwnames[] = { | |
4431 | NULL | |
4432 | }; | |
4433 | ||
4434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
4435 | { | |
4436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4437 | result = (unsigned long)wxGetProcessId(); | |
4438 | ||
4439 | wxPyEndAllowThreads(__tstate); | |
4440 | if (PyErr_Occurred()) SWIG_fail; | |
4441 | } | |
4442 | { | |
4443 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
4444 | } | |
4445 | return resultobj; | |
4446 | fail: | |
4447 | return NULL; | |
4448 | } | |
4449 | ||
4450 | ||
4451 | static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) { | |
4452 | PyObject *resultobj; | |
4453 | char *kwnames[] = { | |
4454 | NULL | |
4455 | }; | |
4456 | ||
4457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
4458 | { | |
4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4460 | wxTrap(); | |
4461 | ||
4462 | wxPyEndAllowThreads(__tstate); | |
4463 | if (PyErr_Occurred()) SWIG_fail; | |
4464 | } | |
4465 | Py_INCREF(Py_None); resultobj = Py_None; | |
4466 | return resultobj; | |
4467 | fail: | |
4468 | return NULL; | |
4469 | } | |
4470 | ||
4471 | ||
4472 | static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) { | |
4473 | PyObject *resultobj; | |
4474 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
4475 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4476 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4477 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4478 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4479 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4480 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4481 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4482 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
4483 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
4484 | int arg6 = (int) 0 ; | |
4485 | wxWindow *arg7 = (wxWindow *) NULL ; | |
4486 | int arg8 = (int) -1 ; | |
4487 | int arg9 = (int) -1 ; | |
d14a1e28 | 4488 | wxString result; |
ae8162c8 RD |
4489 | bool temp1 = false ; |
4490 | bool temp2 = false ; | |
093d3ff1 RD |
4491 | bool temp3 = false ; |
4492 | bool temp4 = false ; | |
4493 | bool temp5 = false ; | |
d14a1e28 RD |
4494 | PyObject * obj0 = 0 ; |
4495 | PyObject * obj1 = 0 ; | |
4496 | PyObject * obj2 = 0 ; | |
4497 | PyObject * obj3 = 0 ; | |
994141e6 RD |
4498 | PyObject * obj4 = 0 ; |
4499 | PyObject * obj5 = 0 ; | |
d14a1e28 | 4500 | PyObject * obj6 = 0 ; |
994141e6 RD |
4501 | PyObject * obj7 = 0 ; |
4502 | PyObject * obj8 = 0 ; | |
d14a1e28 | 4503 | char *kwnames[] = { |
093d3ff1 | 4504 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
4505 | }; |
4506 | ||
093d3ff1 RD |
4507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
4508 | if (obj0) { | |
4509 | { | |
4510 | arg1 = wxString_in_helper(obj0); | |
4511 | if (arg1 == NULL) SWIG_fail; | |
4512 | temp1 = true; | |
4513 | } | |
d14a1e28 | 4514 | } |
093d3ff1 RD |
4515 | if (obj1) { |
4516 | { | |
4517 | arg2 = wxString_in_helper(obj1); | |
4518 | if (arg2 == NULL) SWIG_fail; | |
4519 | temp2 = true; | |
4520 | } | |
d14a1e28 | 4521 | } |
093d3ff1 RD |
4522 | if (obj2) { |
4523 | { | |
4524 | arg3 = wxString_in_helper(obj2); | |
4525 | if (arg3 == NULL) SWIG_fail; | |
4526 | temp3 = true; | |
4527 | } | |
d14a1e28 RD |
4528 | } |
4529 | if (obj3) { | |
093d3ff1 RD |
4530 | { |
4531 | arg4 = wxString_in_helper(obj3); | |
4532 | if (arg4 == NULL) SWIG_fail; | |
4533 | temp4 = true; | |
4534 | } | |
d14a1e28 | 4535 | } |
994141e6 | 4536 | if (obj4) { |
093d3ff1 RD |
4537 | { |
4538 | arg5 = wxString_in_helper(obj4); | |
4539 | if (arg5 == NULL) SWIG_fail; | |
4540 | temp5 = true; | |
4541 | } | |
994141e6 RD |
4542 | } |
4543 | if (obj5) { | |
093d3ff1 RD |
4544 | { |
4545 | arg6 = (int)(SWIG_As_int(obj5)); | |
4546 | if (SWIG_arg_fail(6)) SWIG_fail; | |
4547 | } | |
994141e6 | 4548 | } |
d14a1e28 | 4549 | if (obj6) { |
093d3ff1 RD |
4550 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4551 | if (SWIG_arg_fail(7)) SWIG_fail; | |
994141e6 RD |
4552 | } |
4553 | if (obj7) { | |
093d3ff1 RD |
4554 | { |
4555 | arg8 = (int)(SWIG_As_int(obj7)); | |
4556 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4557 | } | |
994141e6 RD |
4558 | } |
4559 | if (obj8) { | |
093d3ff1 RD |
4560 | { |
4561 | arg9 = (int)(SWIG_As_int(obj8)); | |
4562 | if (SWIG_arg_fail(9)) SWIG_fail; | |
4563 | } | |
d14a1e28 RD |
4564 | } |
4565 | { | |
e3b71cb8 | 4566 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4568 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); |
d14a1e28 RD |
4569 | |
4570 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4571 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4572 | } |
4573 | { | |
4574 | #if wxUSE_UNICODE | |
4575 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4576 | #else | |
4577 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4578 | #endif | |
4579 | } | |
4580 | { | |
4581 | if (temp1) | |
4582 | delete arg1; | |
4583 | } | |
4584 | { | |
4585 | if (temp2) | |
4586 | delete arg2; | |
4587 | } | |
4588 | { | |
093d3ff1 RD |
4589 | if (temp3) |
4590 | delete arg3; | |
4591 | } | |
4592 | { | |
4593 | if (temp4) | |
4594 | delete arg4; | |
4595 | } | |
4596 | { | |
4597 | if (temp5) | |
4598 | delete arg5; | |
d14a1e28 RD |
4599 | } |
4600 | return resultobj; | |
4601 | fail: | |
4602 | { | |
4603 | if (temp1) | |
4604 | delete arg1; | |
4605 | } | |
4606 | { | |
4607 | if (temp2) | |
4608 | delete arg2; | |
4609 | } | |
4610 | { | |
093d3ff1 RD |
4611 | if (temp3) |
4612 | delete arg3; | |
4613 | } | |
4614 | { | |
4615 | if (temp4) | |
4616 | delete arg4; | |
4617 | } | |
4618 | { | |
4619 | if (temp5) | |
4620 | delete arg5; | |
d14a1e28 RD |
4621 | } |
4622 | return NULL; | |
4623 | } | |
4624 | ||
4625 | ||
093d3ff1 | 4626 | static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4627 | PyObject *resultobj; |
4628 | wxString *arg1 = 0 ; | |
4629 | wxString *arg2 = 0 ; | |
093d3ff1 RD |
4630 | wxString const &arg3_defvalue = wxPyEmptyString ; |
4631 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4632 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4633 | wxString result; | |
ae8162c8 RD |
4634 | bool temp1 = false ; |
4635 | bool temp2 = false ; | |
093d3ff1 | 4636 | bool temp3 = false ; |
d14a1e28 RD |
4637 | PyObject * obj0 = 0 ; |
4638 | PyObject * obj1 = 0 ; | |
4639 | PyObject * obj2 = 0 ; | |
4640 | PyObject * obj3 = 0 ; | |
d14a1e28 | 4641 | char *kwnames[] = { |
093d3ff1 | 4642 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL |
d14a1e28 RD |
4643 | }; |
4644 | ||
093d3ff1 | 4645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
4646 | { |
4647 | arg1 = wxString_in_helper(obj0); | |
4648 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4649 | temp1 = true; |
d14a1e28 RD |
4650 | } |
4651 | { | |
4652 | arg2 = wxString_in_helper(obj1); | |
4653 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4654 | temp2 = true; |
d14a1e28 | 4655 | } |
093d3ff1 RD |
4656 | if (obj2) { |
4657 | { | |
4658 | arg3 = wxString_in_helper(obj2); | |
4659 | if (arg3 == NULL) SWIG_fail; | |
4660 | temp3 = true; | |
4661 | } | |
d14a1e28 RD |
4662 | } |
4663 | if (obj3) { | |
093d3ff1 RD |
4664 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4665 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
4666 | } |
4667 | { | |
e3b71cb8 | 4668 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4670 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d14a1e28 RD |
4671 | |
4672 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4673 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4674 | } |
093d3ff1 RD |
4675 | { |
4676 | #if wxUSE_UNICODE | |
4677 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4678 | #else | |
4679 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4680 | #endif | |
4681 | } | |
d14a1e28 RD |
4682 | { |
4683 | if (temp1) | |
4684 | delete arg1; | |
4685 | } | |
4686 | { | |
4687 | if (temp2) | |
4688 | delete arg2; | |
4689 | } | |
4690 | { | |
093d3ff1 RD |
4691 | if (temp3) |
4692 | delete arg3; | |
d14a1e28 RD |
4693 | } |
4694 | return resultobj; | |
4695 | fail: | |
4696 | { | |
4697 | if (temp1) | |
4698 | delete arg1; | |
4699 | } | |
4700 | { | |
4701 | if (temp2) | |
4702 | delete arg2; | |
4703 | } | |
4704 | { | |
093d3ff1 RD |
4705 | if (temp3) |
4706 | delete arg3; | |
d14a1e28 RD |
4707 | } |
4708 | return NULL; | |
4709 | } | |
4710 | ||
4711 | ||
093d3ff1 | 4712 | static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4713 | PyObject *resultobj; |
4714 | wxString *arg1 = 0 ; | |
093d3ff1 RD |
4715 | wxString *arg2 = 0 ; |
4716 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4717 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 | 4718 | wxWindow *arg4 = (wxWindow *) NULL ; |
093d3ff1 | 4719 | wxString result; |
ae8162c8 RD |
4720 | bool temp1 = false ; |
4721 | bool temp2 = false ; | |
093d3ff1 | 4722 | bool temp3 = false ; |
d14a1e28 RD |
4723 | PyObject * obj0 = 0 ; |
4724 | PyObject * obj1 = 0 ; | |
994141e6 | 4725 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4726 | PyObject * obj3 = 0 ; |
4727 | char *kwnames[] = { | |
093d3ff1 | 4728 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL |
d14a1e28 RD |
4729 | }; |
4730 | ||
093d3ff1 | 4731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
4732 | { |
4733 | arg1 = wxString_in_helper(obj0); | |
4734 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4735 | temp1 = true; |
d14a1e28 | 4736 | } |
093d3ff1 RD |
4737 | { |
4738 | arg2 = wxString_in_helper(obj1); | |
4739 | if (arg2 == NULL) SWIG_fail; | |
4740 | temp2 = true; | |
d14a1e28 | 4741 | } |
994141e6 | 4742 | if (obj2) { |
093d3ff1 RD |
4743 | { |
4744 | arg3 = wxString_in_helper(obj2); | |
4745 | if (arg3 == NULL) SWIG_fail; | |
4746 | temp3 = true; | |
4747 | } | |
994141e6 | 4748 | } |
d14a1e28 | 4749 | if (obj3) { |
093d3ff1 RD |
4750 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4751 | if (SWIG_arg_fail(4)) SWIG_fail; | |
994141e6 | 4752 | } |
d14a1e28 | 4753 | { |
e3b71cb8 | 4754 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4756 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d14a1e28 RD |
4757 | |
4758 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4759 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4760 | } |
d14a1e28 | 4761 | { |
093d3ff1 RD |
4762 | #if wxUSE_UNICODE |
4763 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4764 | #else | |
4765 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4766 | #endif | |
4767 | } | |
4768 | { | |
4769 | if (temp1) | |
d14a1e28 RD |
4770 | delete arg1; |
4771 | } | |
4772 | { | |
4773 | if (temp2) | |
4774 | delete arg2; | |
4775 | } | |
093d3ff1 RD |
4776 | { |
4777 | if (temp3) | |
4778 | delete arg3; | |
4779 | } | |
d14a1e28 RD |
4780 | return resultobj; |
4781 | fail: | |
4782 | { | |
4783 | if (temp1) | |
4784 | delete arg1; | |
4785 | } | |
4786 | { | |
4787 | if (temp2) | |
4788 | delete arg2; | |
4789 | } | |
093d3ff1 RD |
4790 | { |
4791 | if (temp3) | |
4792 | delete arg3; | |
4793 | } | |
d14a1e28 RD |
4794 | return NULL; |
4795 | } | |
4796 | ||
4797 | ||
093d3ff1 RD |
4798 | static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
4799 | PyObject *resultobj; | |
4800 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
4801 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4802 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4803 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4804 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
4805 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4806 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4807 | wxWindow *arg5 = (wxWindow *) NULL ; | |
4808 | wxString result; | |
4809 | bool temp1 = false ; | |
4810 | bool temp2 = false ; | |
4811 | wxPoint temp4 ; | |
4812 | PyObject * obj0 = 0 ; | |
4813 | PyObject * obj1 = 0 ; | |
4814 | PyObject * obj2 = 0 ; | |
4815 | PyObject * obj3 = 0 ; | |
4816 | PyObject * obj4 = 0 ; | |
4817 | char *kwnames[] = { | |
4818 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
4819 | }; | |
4820 | ||
4821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
4822 | if (obj0) { | |
4823 | { | |
4824 | arg1 = wxString_in_helper(obj0); | |
4825 | if (arg1 == NULL) SWIG_fail; | |
4826 | temp1 = true; | |
4827 | } | |
4828 | } | |
4829 | if (obj1) { | |
4830 | { | |
4831 | arg2 = wxString_in_helper(obj1); | |
4832 | if (arg2 == NULL) SWIG_fail; | |
4833 | temp2 = true; | |
4834 | } | |
4835 | } | |
4836 | if (obj2) { | |
4837 | { | |
4838 | arg3 = (long)(SWIG_As_long(obj2)); | |
4839 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4840 | } | |
4841 | } | |
4842 | if (obj3) { | |
4843 | { | |
4844 | arg4 = &temp4; | |
4845 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4846 | } | |
4847 | } | |
4848 | if (obj4) { | |
4849 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4850 | if (SWIG_arg_fail(5)) SWIG_fail; | |
4851 | } | |
4852 | { | |
4853 | if (!wxPyCheckForApp()) SWIG_fail; | |
4854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4855 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
4856 | ||
4857 | wxPyEndAllowThreads(__tstate); | |
4858 | if (PyErr_Occurred()) SWIG_fail; | |
4859 | } | |
4860 | { | |
4861 | #if wxUSE_UNICODE | |
4862 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4863 | #else | |
4864 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4865 | #endif | |
4866 | } | |
4867 | { | |
4868 | if (temp1) | |
4869 | delete arg1; | |
4870 | } | |
4871 | { | |
4872 | if (temp2) | |
4873 | delete arg2; | |
4874 | } | |
4875 | return resultobj; | |
4876 | fail: | |
4877 | { | |
4878 | if (temp1) | |
4879 | delete arg1; | |
4880 | } | |
4881 | { | |
4882 | if (temp2) | |
4883 | delete arg2; | |
4884 | } | |
4885 | return NULL; | |
4886 | } | |
4887 | ||
4888 | ||
4889 | static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
4890 | PyObject *resultobj; |
4891 | wxString *arg1 = 0 ; | |
093d3ff1 RD |
4892 | wxString const &arg2_defvalue = wxPyEmptyString ; |
4893 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4894 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4895 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4896 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4897 | int arg5 = (int) -1 ; | |
4898 | int arg6 = (int) -1 ; | |
4899 | bool arg7 = (bool) true ; | |
4900 | wxString result; | |
ae8162c8 RD |
4901 | bool temp1 = false ; |
4902 | bool temp2 = false ; | |
4903 | bool temp3 = false ; | |
d14a1e28 RD |
4904 | PyObject * obj0 = 0 ; |
4905 | PyObject * obj1 = 0 ; | |
4906 | PyObject * obj2 = 0 ; | |
994141e6 RD |
4907 | PyObject * obj3 = 0 ; |
4908 | PyObject * obj4 = 0 ; | |
4909 | PyObject * obj5 = 0 ; | |
4910 | PyObject * obj6 = 0 ; | |
d14a1e28 | 4911 | char *kwnames[] = { |
093d3ff1 | 4912 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL |
d14a1e28 RD |
4913 | }; |
4914 | ||
093d3ff1 | 4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
4916 | { |
4917 | arg1 = wxString_in_helper(obj0); | |
4918 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4919 | temp1 = true; |
d14a1e28 | 4920 | } |
093d3ff1 RD |
4921 | if (obj1) { |
4922 | { | |
4923 | arg2 = wxString_in_helper(obj1); | |
4924 | if (arg2 == NULL) SWIG_fail; | |
4925 | temp2 = true; | |
4926 | } | |
d14a1e28 | 4927 | } |
093d3ff1 RD |
4928 | if (obj2) { |
4929 | { | |
4930 | arg3 = wxString_in_helper(obj2); | |
4931 | if (arg3 == NULL) SWIG_fail; | |
4932 | temp3 = true; | |
4933 | } | |
4934 | } | |
4935 | if (obj3) { | |
4936 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4937 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 | 4938 | } |
994141e6 | 4939 | if (obj4) { |
093d3ff1 RD |
4940 | { |
4941 | arg5 = (int)(SWIG_As_int(obj4)); | |
4942 | if (SWIG_arg_fail(5)) SWIG_fail; | |
4943 | } | |
994141e6 RD |
4944 | } |
4945 | if (obj5) { | |
093d3ff1 RD |
4946 | { |
4947 | arg6 = (int)(SWIG_As_int(obj5)); | |
4948 | if (SWIG_arg_fail(6)) SWIG_fail; | |
4949 | } | |
994141e6 | 4950 | } |
d14a1e28 | 4951 | if (obj6) { |
d14a1e28 | 4952 | { |
093d3ff1 RD |
4953 | arg7 = (bool)(SWIG_As_bool(obj6)); |
4954 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
4955 | } |
4956 | } | |
4957 | { | |
e3b71cb8 | 4958 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4960 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); |
d14a1e28 RD |
4961 | |
4962 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4963 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4964 | } |
093d3ff1 RD |
4965 | { |
4966 | #if wxUSE_UNICODE | |
4967 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4968 | #else | |
4969 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4970 | #endif | |
4971 | } | |
d14a1e28 RD |
4972 | { |
4973 | if (temp1) | |
4974 | delete arg1; | |
4975 | } | |
4976 | { | |
4977 | if (temp2) | |
4978 | delete arg2; | |
4979 | } | |
4980 | { | |
4981 | if (temp3) | |
4982 | delete arg3; | |
4983 | } | |
4984 | return resultobj; | |
4985 | fail: | |
4986 | { | |
4987 | if (temp1) | |
4988 | delete arg1; | |
4989 | } | |
4990 | { | |
4991 | if (temp2) | |
4992 | delete arg2; | |
4993 | } | |
4994 | { | |
4995 | if (temp3) | |
4996 | delete arg3; | |
4997 | } | |
4998 | return NULL; | |
4999 | } | |
5000 | ||
5001 | ||
093d3ff1 | 5002 | static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5003 | PyObject *resultobj; |
093d3ff1 RD |
5004 | wxString *arg1 = 0 ; |
5005 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5006 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5007 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5008 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5009 | wxWindow *arg4 = (wxWindow *) NULL ; | |
5010 | wxString result; | |
5011 | bool temp1 = false ; | |
5012 | bool temp2 = false ; | |
5013 | bool temp3 = false ; | |
5014 | PyObject * obj0 = 0 ; | |
5015 | PyObject * obj1 = 0 ; | |
5016 | PyObject * obj2 = 0 ; | |
5017 | PyObject * obj3 = 0 ; | |
d14a1e28 | 5018 | char *kwnames[] = { |
093d3ff1 | 5019 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL |
d14a1e28 RD |
5020 | }; |
5021 | ||
093d3ff1 RD |
5022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
5023 | { | |
5024 | arg1 = wxString_in_helper(obj0); | |
5025 | if (arg1 == NULL) SWIG_fail; | |
5026 | temp1 = true; | |
5027 | } | |
5028 | if (obj1) { | |
5029 | { | |
5030 | arg2 = wxString_in_helper(obj1); | |
5031 | if (arg2 == NULL) SWIG_fail; | |
5032 | temp2 = true; | |
5033 | } | |
5034 | } | |
5035 | if (obj2) { | |
5036 | { | |
5037 | arg3 = wxString_in_helper(obj2); | |
5038 | if (arg3 == NULL) SWIG_fail; | |
5039 | temp3 = true; | |
5040 | } | |
5041 | } | |
5042 | if (obj3) { | |
5043 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5044 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5045 | } | |
d14a1e28 | 5046 | { |
e3b71cb8 | 5047 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5049 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); |
d14a1e28 RD |
5050 | |
5051 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5052 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5053 | } |
4f89f6a3 | 5054 | { |
093d3ff1 RD |
5055 | #if wxUSE_UNICODE |
5056 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5057 | #else | |
5058 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5059 | #endif | |
5060 | } | |
5061 | { | |
5062 | if (temp1) | |
5063 | delete arg1; | |
5064 | } | |
5065 | { | |
5066 | if (temp2) | |
5067 | delete arg2; | |
5068 | } | |
5069 | { | |
5070 | if (temp3) | |
5071 | delete arg3; | |
4f89f6a3 | 5072 | } |
d14a1e28 RD |
5073 | return resultobj; |
5074 | fail: | |
093d3ff1 RD |
5075 | { |
5076 | if (temp1) | |
5077 | delete arg1; | |
5078 | } | |
5079 | { | |
5080 | if (temp2) | |
5081 | delete arg2; | |
5082 | } | |
5083 | { | |
5084 | if (temp3) | |
5085 | delete arg3; | |
5086 | } | |
d14a1e28 RD |
5087 | return NULL; |
5088 | } | |
5089 | ||
5090 | ||
093d3ff1 | 5091 | static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5092 | PyObject *resultobj; |
093d3ff1 RD |
5093 | wxString *arg1 = 0 ; |
5094 | wxString *arg2 = 0 ; | |
5095 | int arg3 ; | |
5096 | wxString *arg4 = (wxString *) 0 ; | |
5097 | wxWindow *arg5 = (wxWindow *) NULL ; | |
5098 | int arg6 = (int) -1 ; | |
5099 | int arg7 = (int) -1 ; | |
5100 | bool arg8 = (bool) true ; | |
5101 | int arg9 = (int) 150 ; | |
5102 | int arg10 = (int) 200 ; | |
5103 | wxString result; | |
5104 | bool temp1 = false ; | |
5105 | bool temp2 = false ; | |
5106 | PyObject * obj0 = 0 ; | |
5107 | PyObject * obj1 = 0 ; | |
5108 | PyObject * obj2 = 0 ; | |
5109 | PyObject * obj3 = 0 ; | |
5110 | PyObject * obj4 = 0 ; | |
5111 | PyObject * obj5 = 0 ; | |
5112 | PyObject * obj6 = 0 ; | |
5113 | PyObject * obj7 = 0 ; | |
5114 | PyObject * obj8 = 0 ; | |
d14a1e28 | 5115 | char *kwnames[] = { |
093d3ff1 | 5116 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
5117 | }; |
5118 | ||
093d3ff1 | 5119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 5120 | { |
093d3ff1 RD |
5121 | arg1 = wxString_in_helper(obj0); |
5122 | if (arg1 == NULL) SWIG_fail; | |
5123 | temp1 = true; | |
5124 | } | |
5125 | { | |
5126 | arg2 = wxString_in_helper(obj1); | |
5127 | if (arg2 == NULL) SWIG_fail; | |
5128 | temp2 = true; | |
5129 | } | |
5130 | { | |
5131 | arg3 = PyList_Size(obj2); | |
5132 | arg4 = wxString_LIST_helper(obj2); | |
5133 | if (arg4 == NULL) SWIG_fail; | |
5134 | } | |
5135 | if (obj3) { | |
5136 | SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5137 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5138 | } | |
5139 | if (obj4) { | |
5140 | { | |
5141 | arg6 = (int)(SWIG_As_int(obj4)); | |
5142 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5143 | } | |
5144 | } | |
5145 | if (obj5) { | |
5146 | { | |
5147 | arg7 = (int)(SWIG_As_int(obj5)); | |
5148 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5149 | } | |
5150 | } | |
5151 | if (obj6) { | |
5152 | { | |
5153 | arg8 = (bool)(SWIG_As_bool(obj6)); | |
5154 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5155 | } | |
5156 | } | |
5157 | if (obj7) { | |
5158 | { | |
5159 | arg9 = (int)(SWIG_As_int(obj7)); | |
5160 | if (SWIG_arg_fail(9)) SWIG_fail; | |
5161 | } | |
5162 | } | |
5163 | if (obj8) { | |
5164 | { | |
5165 | arg10 = (int)(SWIG_As_int(obj8)); | |
5166 | if (SWIG_arg_fail(10)) SWIG_fail; | |
5167 | } | |
d14a1e28 | 5168 | } |
d14a1e28 | 5169 | { |
e3b71cb8 | 5170 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5172 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); |
d14a1e28 RD |
5173 | |
5174 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5175 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5176 | } |
093d3ff1 RD |
5177 | { |
5178 | #if wxUSE_UNICODE | |
5179 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5180 | #else | |
5181 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5182 | #endif | |
5183 | } | |
5184 | { | |
5185 | if (temp1) | |
5186 | delete arg1; | |
5187 | } | |
5188 | { | |
5189 | if (temp2) | |
5190 | delete arg2; | |
5191 | } | |
5192 | { | |
5193 | if (arg4) delete [] arg4; | |
5194 | } | |
d14a1e28 RD |
5195 | return resultobj; |
5196 | fail: | |
093d3ff1 RD |
5197 | { |
5198 | if (temp1) | |
5199 | delete arg1; | |
5200 | } | |
5201 | { | |
5202 | if (temp2) | |
5203 | delete arg2; | |
5204 | } | |
5205 | { | |
5206 | if (arg4) delete [] arg4; | |
5207 | } | |
d14a1e28 RD |
5208 | return NULL; |
5209 | } | |
5210 | ||
5211 | ||
093d3ff1 | 5212 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5213 | PyObject *resultobj; |
093d3ff1 RD |
5214 | wxString *arg1 = 0 ; |
5215 | wxString *arg2 = 0 ; | |
5216 | int arg3 ; | |
5217 | wxString *arg4 = (wxString *) 0 ; | |
5218 | wxWindow *arg5 = (wxWindow *) NULL ; | |
5219 | int arg6 = (int) -1 ; | |
5220 | int arg7 = (int) -1 ; | |
5221 | bool arg8 = (bool) true ; | |
5222 | int arg9 = (int) 150 ; | |
5223 | int arg10 = (int) 200 ; | |
5224 | int result; | |
5225 | bool temp1 = false ; | |
5226 | bool temp2 = false ; | |
5227 | PyObject * obj0 = 0 ; | |
5228 | PyObject * obj1 = 0 ; | |
5229 | PyObject * obj2 = 0 ; | |
5230 | PyObject * obj3 = 0 ; | |
5231 | PyObject * obj4 = 0 ; | |
5232 | PyObject * obj5 = 0 ; | |
5233 | PyObject * obj6 = 0 ; | |
5234 | PyObject * obj7 = 0 ; | |
5235 | PyObject * obj8 = 0 ; | |
d14a1e28 | 5236 | char *kwnames[] = { |
093d3ff1 | 5237 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
5238 | }; |
5239 | ||
093d3ff1 RD |
5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
5241 | { | |
5242 | arg1 = wxString_in_helper(obj0); | |
5243 | if (arg1 == NULL) SWIG_fail; | |
5244 | temp1 = true; | |
5245 | } | |
5246 | { | |
5247 | arg2 = wxString_in_helper(obj1); | |
5248 | if (arg2 == NULL) SWIG_fail; | |
5249 | temp2 = true; | |
5250 | } | |
5251 | { | |
5252 | arg3 = PyList_Size(obj2); | |
5253 | arg4 = wxString_LIST_helper(obj2); | |
5254 | if (arg4 == NULL) SWIG_fail; | |
5255 | } | |
5256 | if (obj3) { | |
5257 | SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5258 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5259 | } | |
5260 | if (obj4) { | |
5261 | { | |
5262 | arg6 = (int)(SWIG_As_int(obj4)); | |
5263 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5264 | } | |
5265 | } | |
5266 | if (obj5) { | |
5267 | { | |
5268 | arg7 = (int)(SWIG_As_int(obj5)); | |
5269 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5270 | } | |
5271 | } | |
5272 | if (obj6) { | |
5273 | { | |
5274 | arg8 = (bool)(SWIG_As_bool(obj6)); | |
5275 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5276 | } | |
5277 | } | |
5278 | if (obj7) { | |
5279 | { | |
5280 | arg9 = (int)(SWIG_As_int(obj7)); | |
5281 | if (SWIG_arg_fail(9)) SWIG_fail; | |
5282 | } | |
5283 | } | |
5284 | if (obj8) { | |
5285 | { | |
5286 | arg10 = (int)(SWIG_As_int(obj8)); | |
5287 | if (SWIG_arg_fail(10)) SWIG_fail; | |
5288 | } | |
5289 | } | |
d14a1e28 | 5290 | { |
e3b71cb8 | 5291 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5293 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); |
d14a1e28 RD |
5294 | |
5295 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5296 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5297 | } |
5298 | { | |
093d3ff1 RD |
5299 | resultobj = SWIG_From_int((int)(result)); |
5300 | } | |
5301 | { | |
5302 | if (temp1) | |
5303 | delete arg1; | |
5304 | } | |
5305 | { | |
5306 | if (temp2) | |
5307 | delete arg2; | |
5308 | } | |
5309 | { | |
5310 | if (arg4) delete [] arg4; | |
d14a1e28 RD |
5311 | } |
5312 | return resultobj; | |
5313 | fail: | |
093d3ff1 RD |
5314 | { |
5315 | if (temp1) | |
5316 | delete arg1; | |
5317 | } | |
5318 | { | |
5319 | if (temp2) | |
5320 | delete arg2; | |
5321 | } | |
5322 | { | |
5323 | if (arg4) delete [] arg4; | |
5324 | } | |
d14a1e28 RD |
5325 | return NULL; |
5326 | } | |
5327 | ||
5328 | ||
093d3ff1 | 5329 | static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5330 | PyObject *resultobj; |
093d3ff1 RD |
5331 | wxString *arg1 = 0 ; |
5332 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5333 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5334 | int arg3 = (int) wxOK|wxCENTRE ; | |
5335 | wxWindow *arg4 = (wxWindow *) NULL ; | |
5336 | int arg5 = (int) -1 ; | |
5337 | int arg6 = (int) -1 ; | |
5338 | int result; | |
5339 | bool temp1 = false ; | |
5340 | bool temp2 = false ; | |
5341 | PyObject * obj0 = 0 ; | |
5342 | PyObject * obj1 = 0 ; | |
5343 | PyObject * obj2 = 0 ; | |
5344 | PyObject * obj3 = 0 ; | |
5345 | PyObject * obj4 = 0 ; | |
5346 | PyObject * obj5 = 0 ; | |
d14a1e28 | 5347 | char *kwnames[] = { |
093d3ff1 | 5348 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
5349 | }; |
5350 | ||
093d3ff1 RD |
5351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
5352 | { | |
5353 | arg1 = wxString_in_helper(obj0); | |
5354 | if (arg1 == NULL) SWIG_fail; | |
5355 | temp1 = true; | |
5356 | } | |
5357 | if (obj1) { | |
5358 | { | |
5359 | arg2 = wxString_in_helper(obj1); | |
5360 | if (arg2 == NULL) SWIG_fail; | |
5361 | temp2 = true; | |
5362 | } | |
5363 | } | |
5364 | if (obj2) { | |
5365 | { | |
5366 | arg3 = (int)(SWIG_As_int(obj2)); | |
5367 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5368 | } | |
5369 | } | |
5370 | if (obj3) { | |
5371 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5372 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5373 | } | |
5374 | if (obj4) { | |
5375 | { | |
5376 | arg5 = (int)(SWIG_As_int(obj4)); | |
5377 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5378 | } | |
5379 | } | |
5380 | if (obj5) { | |
5381 | { | |
5382 | arg6 = (int)(SWIG_As_int(obj5)); | |
5383 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5384 | } | |
5385 | } | |
d14a1e28 | 5386 | { |
e3b71cb8 | 5387 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5389 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
5390 | |
5391 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5392 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5393 | } |
093d3ff1 RD |
5394 | { |
5395 | resultobj = SWIG_From_int((int)(result)); | |
5396 | } | |
5397 | { | |
5398 | if (temp1) | |
5399 | delete arg1; | |
5400 | } | |
5401 | { | |
5402 | if (temp2) | |
5403 | delete arg2; | |
5404 | } | |
d14a1e28 RD |
5405 | return resultobj; |
5406 | fail: | |
093d3ff1 RD |
5407 | { |
5408 | if (temp1) | |
5409 | delete arg1; | |
5410 | } | |
5411 | { | |
5412 | if (temp2) | |
5413 | delete arg2; | |
5414 | } | |
d14a1e28 RD |
5415 | return NULL; |
5416 | } | |
5417 | ||
5418 | ||
093d3ff1 | 5419 | static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5420 | PyObject *resultobj; |
093d3ff1 RD |
5421 | wxString *arg1 = 0 ; |
5422 | wxString *arg2 = 0 ; | |
5423 | wxString *arg3 = 0 ; | |
5424 | long arg4 ; | |
5425 | long arg5 = (long) 0 ; | |
5426 | long arg6 = (long) 100 ; | |
5427 | wxWindow *arg7 = (wxWindow *) NULL ; | |
5428 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
5429 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
5430 | long result; | |
5431 | bool temp1 = false ; | |
5432 | bool temp2 = false ; | |
5433 | bool temp3 = false ; | |
5434 | wxPoint temp8 ; | |
5435 | PyObject * obj0 = 0 ; | |
5436 | PyObject * obj1 = 0 ; | |
5437 | PyObject * obj2 = 0 ; | |
5438 | PyObject * obj3 = 0 ; | |
5439 | PyObject * obj4 = 0 ; | |
5440 | PyObject * obj5 = 0 ; | |
5441 | PyObject * obj6 = 0 ; | |
5442 | PyObject * obj7 = 0 ; | |
d14a1e28 | 5443 | char *kwnames[] = { |
093d3ff1 | 5444 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL |
d14a1e28 RD |
5445 | }; |
5446 | ||
093d3ff1 RD |
5447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
5448 | { | |
5449 | arg1 = wxString_in_helper(obj0); | |
5450 | if (arg1 == NULL) SWIG_fail; | |
5451 | temp1 = true; | |
5452 | } | |
5453 | { | |
5454 | arg2 = wxString_in_helper(obj1); | |
5455 | if (arg2 == NULL) SWIG_fail; | |
5456 | temp2 = true; | |
5457 | } | |
5458 | { | |
5459 | arg3 = wxString_in_helper(obj2); | |
5460 | if (arg3 == NULL) SWIG_fail; | |
5461 | temp3 = true; | |
5462 | } | |
5463 | { | |
5464 | arg4 = (long)(SWIG_As_long(obj3)); | |
5465 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5466 | } | |
5467 | if (obj4) { | |
5468 | { | |
5469 | arg5 = (long)(SWIG_As_long(obj4)); | |
5470 | if (SWIG_arg_fail(5)) SWIG_fail; | |
5471 | } | |
5472 | } | |
5473 | if (obj5) { | |
5474 | { | |
5475 | arg6 = (long)(SWIG_As_long(obj5)); | |
5476 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5477 | } | |
5478 | } | |
5479 | if (obj6) { | |
5480 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5481 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5482 | } | |
5483 | if (obj7) { | |
5484 | { | |
5485 | arg8 = &temp8; | |
5486 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
5487 | } | |
5488 | } | |
d14a1e28 | 5489 | { |
e3b71cb8 | 5490 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5492 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); |
d14a1e28 RD |
5493 | |
5494 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5495 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5496 | } |
5497 | { | |
093d3ff1 RD |
5498 | resultobj = SWIG_From_long((long)(result)); |
5499 | } | |
5500 | { | |
5501 | if (temp1) | |
5502 | delete arg1; | |
5503 | } | |
5504 | { | |
5505 | if (temp2) | |
5506 | delete arg2; | |
5507 | } | |
5508 | { | |
5509 | if (temp3) | |
5510 | delete arg3; | |
d14a1e28 RD |
5511 | } |
5512 | return resultobj; | |
5513 | fail: | |
093d3ff1 RD |
5514 | { |
5515 | if (temp1) | |
5516 | delete arg1; | |
5517 | } | |
5518 | { | |
5519 | if (temp2) | |
5520 | delete arg2; | |
5521 | } | |
5522 | { | |
5523 | if (temp3) | |
5524 | delete arg3; | |
5525 | } | |
d14a1e28 RD |
5526 | return NULL; |
5527 | } | |
5528 | ||
5529 | ||
093d3ff1 | 5530 | static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5531 | PyObject *resultobj; |
093d3ff1 | 5532 | bool result; |
d14a1e28 RD |
5533 | char *kwnames[] = { |
5534 | NULL | |
5535 | }; | |
5536 | ||
093d3ff1 | 5537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; |
d14a1e28 | 5538 | { |
e3b71cb8 | 5539 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5541 | result = (bool)wxColourDisplay(); |
d14a1e28 RD |
5542 | |
5543 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5544 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5545 | } |
093d3ff1 RD |
5546 | { |
5547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5548 | } | |
d14a1e28 RD |
5549 | return resultobj; |
5550 | fail: | |
5551 | return NULL; | |
5552 | } | |
5553 | ||
5554 | ||
093d3ff1 | 5555 | static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5556 | PyObject *resultobj; |
093d3ff1 | 5557 | int result; |
d14a1e28 RD |
5558 | char *kwnames[] = { |
5559 | NULL | |
5560 | }; | |
5561 | ||
093d3ff1 | 5562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; |
d14a1e28 | 5563 | { |
e3b71cb8 | 5564 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5566 | result = (int)wxDisplayDepth(); |
d14a1e28 RD |
5567 | |
5568 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5569 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5570 | } |
5571 | { | |
093d3ff1 | 5572 | resultobj = SWIG_From_int((int)(result)); |
d14a1e28 RD |
5573 | } |
5574 | return resultobj; | |
5575 | fail: | |
5576 | return NULL; | |
5577 | } | |
5578 | ||
5579 | ||
093d3ff1 | 5580 | static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5581 | PyObject *resultobj; |
093d3ff1 | 5582 | int result; |
d14a1e28 | 5583 | char *kwnames[] = { |
093d3ff1 | 5584 | NULL |
d14a1e28 RD |
5585 | }; |
5586 | ||
093d3ff1 | 5587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; |
d14a1e28 | 5588 | { |
e3b71cb8 | 5589 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5591 | result = (int)wxGetDisplayDepth(); |
d14a1e28 RD |
5592 | |
5593 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5594 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5595 | } |
093d3ff1 RD |
5596 | { |
5597 | resultobj = SWIG_From_int((int)(result)); | |
5598 | } | |
d14a1e28 RD |
5599 | return resultobj; |
5600 | fail: | |
5601 | return NULL; | |
5602 | } | |
5603 | ||
5604 | ||
093d3ff1 | 5605 | static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5606 | PyObject *resultobj; |
093d3ff1 RD |
5607 | int *arg1 = (int *) 0 ; |
5608 | int *arg2 = (int *) 0 ; | |
5609 | int temp1 ; | |
5610 | int res1 = 0 ; | |
5611 | int temp2 ; | |
5612 | int res2 = 0 ; | |
d14a1e28 | 5613 | char *kwnames[] = { |
093d3ff1 | 5614 | NULL |
d14a1e28 RD |
5615 | }; |
5616 | ||
093d3ff1 RD |
5617 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
5618 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
5619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
d14a1e28 | 5620 | { |
e3b71cb8 | 5621 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5623 | wxDisplaySize(arg1,arg2); |
d14a1e28 RD |
5624 | |
5625 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5626 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5627 | } |
5628 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
5629 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
5630 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5631 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5632 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
5633 | return resultobj; |
5634 | fail: | |
5635 | return NULL; | |
5636 | } | |
5637 | ||
5638 | ||
093d3ff1 | 5639 | static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5640 | PyObject *resultobj; |
093d3ff1 | 5641 | wxSize result; |
d14a1e28 RD |
5642 | char *kwnames[] = { |
5643 | NULL | |
5644 | }; | |
5645 | ||
093d3ff1 | 5646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; |
d14a1e28 | 5647 | { |
e3b71cb8 | 5648 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5650 | result = wxGetDisplaySize(); |
d14a1e28 RD |
5651 | |
5652 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5653 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5654 | } |
5655 | { | |
093d3ff1 RD |
5656 | wxSize * resultptr; |
5657 | resultptr = new wxSize((wxSize &)(result)); | |
5658 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
d14a1e28 RD |
5659 | } |
5660 | return resultobj; | |
5661 | fail: | |
5662 | return NULL; | |
5663 | } | |
5664 | ||
5665 | ||
093d3ff1 | 5666 | static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5667 | PyObject *resultobj; |
093d3ff1 RD |
5668 | int *arg1 = (int *) 0 ; |
5669 | int *arg2 = (int *) 0 ; | |
5670 | int temp1 ; | |
5671 | int res1 = 0 ; | |
5672 | int temp2 ; | |
5673 | int res2 = 0 ; | |
d14a1e28 | 5674 | char *kwnames[] = { |
093d3ff1 | 5675 | NULL |
d14a1e28 RD |
5676 | }; |
5677 | ||
093d3ff1 RD |
5678 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
5679 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
5681 | { | |
5682 | if (!wxPyCheckForApp()) SWIG_fail; | |
5683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5684 | wxDisplaySizeMM(arg1,arg2); | |
5685 | ||
5686 | wxPyEndAllowThreads(__tstate); | |
5687 | if (PyErr_Occurred()) SWIG_fail; | |
5688 | } | |
5689 | Py_INCREF(Py_None); resultobj = Py_None; | |
5690 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
5691 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5692 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5693 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5694 | return resultobj; | |
5695 | fail: | |
5696 | return NULL; | |
5697 | } | |
5698 | ||
5699 | ||
5700 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject *resultobj; | |
5702 | wxSize result; | |
5703 | char *kwnames[] = { | |
5704 | NULL | |
5705 | }; | |
5706 | ||
5707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
5708 | { | |
5709 | if (!wxPyCheckForApp()) SWIG_fail; | |
5710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5711 | result = wxGetDisplaySizeMM(); | |
5712 | ||
5713 | wxPyEndAllowThreads(__tstate); | |
5714 | if (PyErr_Occurred()) SWIG_fail; | |
5715 | } | |
5716 | { | |
5717 | wxSize * resultptr; | |
5718 | resultptr = new wxSize((wxSize &)(result)); | |
5719 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
5720 | } | |
5721 | return resultobj; | |
5722 | fail: | |
5723 | return NULL; | |
5724 | } | |
5725 | ||
5726 | ||
5727 | static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
5728 | PyObject *resultobj; | |
5729 | int *arg1 = (int *) 0 ; | |
5730 | int *arg2 = (int *) 0 ; | |
5731 | int *arg3 = (int *) 0 ; | |
5732 | int *arg4 = (int *) 0 ; | |
5733 | int temp1 ; | |
5734 | int res1 = 0 ; | |
5735 | int temp2 ; | |
5736 | int res2 = 0 ; | |
5737 | int temp3 ; | |
5738 | int res3 = 0 ; | |
5739 | int temp4 ; | |
5740 | int res4 = 0 ; | |
5741 | char *kwnames[] = { | |
5742 | NULL | |
5743 | }; | |
5744 | ||
5745 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
5746 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
5747 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
5748 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
5749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
5750 | { | |
5751 | if (!wxPyCheckForApp()) SWIG_fail; | |
5752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5753 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
5754 | ||
5755 | wxPyEndAllowThreads(__tstate); | |
5756 | if (PyErr_Occurred()) SWIG_fail; | |
5757 | } | |
5758 | Py_INCREF(Py_None); resultobj = Py_None; | |
5759 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
5760 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
5761 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5762 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5763 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5764 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
5765 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
5766 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
5767 | return resultobj; | |
5768 | fail: | |
5769 | return NULL; | |
5770 | } | |
5771 | ||
5772 | ||
5773 | static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
5774 | PyObject *resultobj; | |
5775 | wxRect result; | |
5776 | char *kwnames[] = { | |
5777 | NULL | |
5778 | }; | |
5779 | ||
5780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
5781 | { | |
5782 | if (!wxPyCheckForApp()) SWIG_fail; | |
5783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5784 | result = wxGetClientDisplayRect(); | |
5785 | ||
5786 | wxPyEndAllowThreads(__tstate); | |
5787 | if (PyErr_Occurred()) SWIG_fail; | |
5788 | } | |
5789 | { | |
5790 | wxRect * resultptr; | |
5791 | resultptr = new wxRect((wxRect &)(result)); | |
5792 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5793 | } | |
5794 | return resultobj; | |
5795 | fail: | |
5796 | return NULL; | |
5797 | } | |
5798 | ||
5799 | ||
5800 | static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
5801 | PyObject *resultobj; | |
5802 | wxCursor *arg1 = 0 ; | |
5803 | PyObject * obj0 = 0 ; | |
5804 | char *kwnames[] = { | |
5805 | (char *) "cursor", NULL | |
5806 | }; | |
5807 | ||
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
5809 | { | |
5810 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
5811 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5812 | if (arg1 == NULL) { | |
5813 | SWIG_null_ref("wxCursor"); | |
5814 | } | |
5815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5816 | } | |
5817 | { | |
5818 | if (!wxPyCheckForApp()) SWIG_fail; | |
5819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5820 | wxSetCursor(*arg1); | |
5821 | ||
5822 | wxPyEndAllowThreads(__tstate); | |
5823 | if (PyErr_Occurred()) SWIG_fail; | |
5824 | } | |
5825 | Py_INCREF(Py_None); resultobj = Py_None; | |
5826 | return resultobj; | |
5827 | fail: | |
5828 | return NULL; | |
5829 | } | |
5830 | ||
5831 | ||
5832 | static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
5833 | PyObject *resultobj; | |
5834 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5835 | PyObject * obj0 = 0 ; | |
5836 | char *kwnames[] = { | |
5837 | (char *) "cursor", NULL | |
5838 | }; | |
5839 | ||
5840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
5841 | if (obj0) { | |
5842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
5843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5844 | } | |
5845 | { | |
5846 | if (!wxPyCheckForApp()) SWIG_fail; | |
5847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5848 | wxBeginBusyCursor(arg1); | |
5849 | ||
5850 | wxPyEndAllowThreads(__tstate); | |
5851 | if (PyErr_Occurred()) SWIG_fail; | |
5852 | } | |
5853 | Py_INCREF(Py_None); resultobj = Py_None; | |
5854 | return resultobj; | |
5855 | fail: | |
5856 | return NULL; | |
5857 | } | |
5858 | ||
5859 | ||
5860 | static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
5861 | PyObject *resultobj; | |
5862 | wxWindow *result; | |
5863 | char *kwnames[] = { | |
5864 | NULL | |
5865 | }; | |
5866 | ||
5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
5868 | { | |
5869 | if (!wxPyCheckForApp()) SWIG_fail; | |
5870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5871 | result = (wxWindow *)wxGetActiveWindow(); | |
5872 | ||
5873 | wxPyEndAllowThreads(__tstate); | |
5874 | if (PyErr_Occurred()) SWIG_fail; | |
5875 | } | |
5876 | { | |
5877 | resultobj = wxPyMake_wxObject(result, 0); | |
5878 | } | |
5879 | return resultobj; | |
5880 | fail: | |
5881 | return NULL; | |
5882 | } | |
5883 | ||
5884 | ||
5885 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
5886 | PyObject *resultobj; | |
5887 | wxPoint *arg1 = 0 ; | |
5888 | wxWindow *result; | |
5889 | wxPoint temp1 ; | |
5890 | PyObject * obj0 = 0 ; | |
5891 | char *kwnames[] = { | |
5892 | (char *) "pt", NULL | |
5893 | }; | |
5894 | ||
5895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
5896 | { | |
5897 | arg1 = &temp1; | |
d14a1e28 RD |
5898 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; |
5899 | } | |
5900 | { | |
e3b71cb8 | 5901 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5903 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
5904 | ||
5905 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5906 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5907 | } |
5908 | { | |
412d302d | 5909 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
5910 | } |
5911 | return resultobj; | |
5912 | fail: | |
5913 | return NULL; | |
5914 | } | |
5915 | ||
5916 | ||
c32bde28 | 5917 | static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5918 | PyObject *resultobj; |
5919 | wxPoint *arg1 = 0 ; | |
5920 | wxWindow *result; | |
5921 | wxPoint temp1 ; | |
5922 | PyObject * obj0 = 0 ; | |
5923 | char *kwnames[] = { | |
5924 | (char *) "pt", NULL | |
5925 | }; | |
5926 | ||
5927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
5928 | { | |
5929 | arg1 = &temp1; | |
5930 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
5931 | } | |
5932 | { | |
e3b71cb8 | 5933 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5935 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
5936 | ||
5937 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5938 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5939 | } |
5940 | { | |
412d302d | 5941 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
5942 | } |
5943 | return resultobj; | |
5944 | fail: | |
5945 | return NULL; | |
5946 | } | |
5947 | ||
5948 | ||
c32bde28 | 5949 | static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5950 | PyObject *resultobj; |
5951 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5952 | wxWindow *result; | |
5953 | PyObject * obj0 = 0 ; | |
5954 | char *kwnames[] = { | |
5955 | (char *) "win", NULL | |
5956 | }; | |
5957 | ||
5958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5959 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5960 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 5961 | { |
e3b71cb8 | 5962 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5964 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
5965 | ||
5966 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5967 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5968 | } |
5969 | { | |
412d302d | 5970 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
5971 | } |
5972 | return resultobj; | |
5973 | fail: | |
5974 | return NULL; | |
5975 | } | |
5976 | ||
5977 | ||
c32bde28 | 5978 | static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) { |
39f61e25 | 5979 | PyObject *resultobj; |
093d3ff1 | 5980 | wxKeyCode arg1 ; |
39f61e25 | 5981 | bool result; |
994141e6 | 5982 | PyObject * obj0 = 0 ; |
39f61e25 RD |
5983 | char *kwnames[] = { |
5984 | (char *) "key", NULL | |
5985 | }; | |
5986 | ||
994141e6 | 5987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
5988 | { |
5989 | arg1 = (wxKeyCode)(SWIG_As_int(obj0)); | |
5990 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5991 | } | |
39f61e25 | 5992 | { |
e3b71cb8 | 5993 | if (!wxPyCheckForApp()) SWIG_fail; |
39f61e25 RD |
5994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5995 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
5996 | ||
5997 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5998 | if (PyErr_Occurred()) SWIG_fail; |
39f61e25 | 5999 | } |
4f89f6a3 RD |
6000 | { |
6001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6002 | } | |
39f61e25 RD |
6003 | return resultobj; |
6004 | fail: | |
6005 | return NULL; | |
6006 | } | |
6007 | ||
6008 | ||
c32bde28 | 6009 | static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6010 | PyObject *resultobj; |
6011 | char *kwnames[] = { | |
6012 | NULL | |
6013 | }; | |
6014 | ||
6015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
6016 | { | |
e3b71cb8 | 6017 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6019 | wxWakeUpMainThread(); | |
6020 | ||
6021 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6022 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6023 | } |
6024 | Py_INCREF(Py_None); resultobj = Py_None; | |
6025 | return resultobj; | |
6026 | fail: | |
6027 | return NULL; | |
6028 | } | |
6029 | ||
6030 | ||
c32bde28 | 6031 | static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6032 | PyObject *resultobj; |
6033 | char *kwnames[] = { | |
6034 | NULL | |
6035 | }; | |
6036 | ||
6037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
6038 | { | |
e3b71cb8 | 6039 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6041 | wxMutexGuiEnter(); | |
6042 | ||
6043 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6044 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6045 | } |
6046 | Py_INCREF(Py_None); resultobj = Py_None; | |
6047 | return resultobj; | |
6048 | fail: | |
6049 | return NULL; | |
6050 | } | |
6051 | ||
6052 | ||
c32bde28 | 6053 | static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6054 | PyObject *resultobj; |
6055 | char *kwnames[] = { | |
6056 | NULL | |
6057 | }; | |
6058 | ||
6059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
6060 | { | |
e3b71cb8 | 6061 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6063 | wxMutexGuiLeave(); | |
6064 | ||
6065 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6066 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6067 | } |
6068 | Py_INCREF(Py_None); resultobj = Py_None; | |
6069 | return resultobj; | |
6070 | fail: | |
6071 | return NULL; | |
6072 | } | |
6073 | ||
6074 | ||
c32bde28 | 6075 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6076 | PyObject *resultobj; |
6077 | wxMutexGuiLocker *result; | |
6078 | char *kwnames[] = { | |
6079 | NULL | |
6080 | }; | |
6081 | ||
6082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
6083 | { | |
e3b71cb8 | 6084 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6086 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
6087 | ||
6088 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6089 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6090 | } |
15afbcd0 | 6091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); |
d14a1e28 RD |
6092 | return resultobj; |
6093 | fail: | |
6094 | return NULL; | |
6095 | } | |
6096 | ||
6097 | ||
c32bde28 | 6098 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6099 | PyObject *resultobj; |
6100 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
6101 | PyObject * obj0 = 0 ; | |
6102 | char *kwnames[] = { | |
6103 | (char *) "self", NULL | |
6104 | }; | |
6105 | ||
6106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6107 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMutexGuiLocker, SWIG_POINTER_EXCEPTION | 0); |
6108 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6109 | { |
6110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6111 | delete arg1; | |
6112 | ||
6113 | wxPyEndAllowThreads(__tstate); | |
6114 | if (PyErr_Occurred()) SWIG_fail; | |
6115 | } | |
6116 | Py_INCREF(Py_None); resultobj = Py_None; | |
6117 | return resultobj; | |
6118 | fail: | |
6119 | return NULL; | |
6120 | } | |
6121 | ||
6122 | ||
c32bde28 | 6123 | static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6124 | PyObject *obj; |
6125 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6126 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
6127 | Py_INCREF(obj); | |
6128 | return Py_BuildValue((char *)""); | |
6129 | } | |
c32bde28 | 6130 | static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6131 | PyObject *resultobj; |
6132 | bool result; | |
6133 | char *kwnames[] = { | |
6134 | NULL | |
6135 | }; | |
6136 | ||
6137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
6138 | { | |
6139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6140 | result = (bool)wxThread_IsMain(); | |
6141 | ||
6142 | wxPyEndAllowThreads(__tstate); | |
6143 | if (PyErr_Occurred()) SWIG_fail; | |
6144 | } | |
4f89f6a3 RD |
6145 | { |
6146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6147 | } | |
d14a1e28 RD |
6148 | return resultobj; |
6149 | fail: | |
6150 | return NULL; | |
6151 | } | |
6152 | ||
6153 | ||
c32bde28 | 6154 | static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6155 | PyObject *resultobj; |
6156 | wxString *arg1 = 0 ; | |
6157 | wxToolTip *result; | |
ae8162c8 | 6158 | bool temp1 = false ; |
d14a1e28 RD |
6159 | PyObject * obj0 = 0 ; |
6160 | char *kwnames[] = { | |
6161 | (char *) "tip", NULL | |
6162 | }; | |
6163 | ||
6164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
6165 | { | |
6166 | arg1 = wxString_in_helper(obj0); | |
6167 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 6168 | temp1 = true; |
d14a1e28 RD |
6169 | } |
6170 | { | |
e3b71cb8 | 6171 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6173 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
6174 | ||
6175 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6176 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6177 | } |
6178 | { | |
412d302d | 6179 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
6180 | } |
6181 | { | |
6182 | if (temp1) | |
6183 | delete arg1; | |
6184 | } | |
6185 | return resultobj; | |
6186 | fail: | |
6187 | { | |
6188 | if (temp1) | |
6189 | delete arg1; | |
6190 | } | |
6191 | return NULL; | |
6192 | } | |
6193 | ||
6194 | ||
c32bde28 | 6195 | static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6196 | PyObject *resultobj; |
6197 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
6198 | wxString *arg2 = 0 ; | |
ae8162c8 | 6199 | bool temp2 = false ; |
d14a1e28 RD |
6200 | PyObject * obj0 = 0 ; |
6201 | PyObject * obj1 = 0 ; | |
6202 | char *kwnames[] = { | |
6203 | (char *) "self",(char *) "tip", NULL | |
6204 | }; | |
6205 | ||
6206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
6208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6209 | { |
6210 | arg2 = wxString_in_helper(obj1); | |
6211 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6212 | temp2 = true; |
d14a1e28 RD |
6213 | } |
6214 | { | |
6215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6216 | (arg1)->SetTip((wxString const &)*arg2); | |
6217 | ||
6218 | wxPyEndAllowThreads(__tstate); | |
6219 | if (PyErr_Occurred()) SWIG_fail; | |
6220 | } | |
6221 | Py_INCREF(Py_None); resultobj = Py_None; | |
6222 | { | |
6223 | if (temp2) | |
6224 | delete arg2; | |
6225 | } | |
6226 | return resultobj; | |
6227 | fail: | |
6228 | { | |
6229 | if (temp2) | |
6230 | delete arg2; | |
6231 | } | |
6232 | return NULL; | |
6233 | } | |
6234 | ||
6235 | ||
c32bde28 | 6236 | static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6237 | PyObject *resultobj; |
6238 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
6239 | wxString result; | |
6240 | PyObject * obj0 = 0 ; | |
6241 | char *kwnames[] = { | |
6242 | (char *) "self", NULL | |
6243 | }; | |
6244 | ||
6245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
6247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6248 | { |
6249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6250 | result = (arg1)->GetTip(); | |
6251 | ||
6252 | wxPyEndAllowThreads(__tstate); | |
6253 | if (PyErr_Occurred()) SWIG_fail; | |
6254 | } | |
6255 | { | |
6256 | #if wxUSE_UNICODE | |
6257 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6258 | #else | |
6259 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6260 | #endif | |
6261 | } | |
6262 | return resultobj; | |
6263 | fail: | |
6264 | return NULL; | |
6265 | } | |
6266 | ||
6267 | ||
c32bde28 | 6268 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6269 | PyObject *resultobj; |
6270 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
6271 | wxWindow *result; | |
6272 | PyObject * obj0 = 0 ; | |
6273 | char *kwnames[] = { | |
6274 | (char *) "self", NULL | |
6275 | }; | |
6276 | ||
6277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); |
6279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6280 | { |
6281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6282 | result = (wxWindow *)(arg1)->GetWindow(); | |
6283 | ||
6284 | wxPyEndAllowThreads(__tstate); | |
6285 | if (PyErr_Occurred()) SWIG_fail; | |
6286 | } | |
6287 | { | |
412d302d | 6288 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
6289 | } |
6290 | return resultobj; | |
6291 | fail: | |
6292 | return NULL; | |
6293 | } | |
6294 | ||
6295 | ||
c32bde28 | 6296 | static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6297 | PyObject *resultobj; |
6298 | bool arg1 ; | |
6299 | PyObject * obj0 = 0 ; | |
6300 | char *kwnames[] = { | |
6301 | (char *) "flag", NULL | |
6302 | }; | |
6303 | ||
6304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6305 | { |
6306 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
6307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6308 | } | |
d14a1e28 RD |
6309 | { |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | wxToolTip::Enable(arg1); | |
6312 | ||
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
6315 | } | |
6316 | Py_INCREF(Py_None); resultobj = Py_None; | |
6317 | return resultobj; | |
6318 | fail: | |
6319 | return NULL; | |
6320 | } | |
6321 | ||
6322 | ||
c32bde28 | 6323 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6324 | PyObject *resultobj; |
6325 | long arg1 ; | |
994141e6 | 6326 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6327 | char *kwnames[] = { |
6328 | (char *) "milliseconds", NULL | |
6329 | }; | |
6330 | ||
994141e6 | 6331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6332 | { |
6333 | arg1 = (long)(SWIG_As_long(obj0)); | |
6334 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6335 | } | |
d14a1e28 RD |
6336 | { |
6337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6338 | wxToolTip::SetDelay(arg1); | |
6339 | ||
6340 | wxPyEndAllowThreads(__tstate); | |
6341 | if (PyErr_Occurred()) SWIG_fail; | |
6342 | } | |
6343 | Py_INCREF(Py_None); resultobj = Py_None; | |
6344 | return resultobj; | |
6345 | fail: | |
6346 | return NULL; | |
6347 | } | |
6348 | ||
6349 | ||
c32bde28 | 6350 | static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6351 | PyObject *obj; |
6352 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6353 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
6354 | Py_INCREF(obj); | |
6355 | return Py_BuildValue((char *)""); | |
6356 | } | |
c32bde28 | 6357 | static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6358 | PyObject *resultobj; |
6359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6360 | wxSize *arg2 = 0 ; | |
6361 | wxCaret *result; | |
6362 | wxSize temp2 ; | |
6363 | PyObject * obj0 = 0 ; | |
6364 | PyObject * obj1 = 0 ; | |
6365 | char *kwnames[] = { | |
6366 | (char *) "window",(char *) "size", NULL | |
6367 | }; | |
6368 | ||
6369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6372 | { |
6373 | arg2 = &temp2; | |
6374 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6375 | } | |
6376 | { | |
e3b71cb8 | 6377 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6379 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
6380 | ||
6381 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6382 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6383 | } |
15afbcd0 | 6384 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); |
d14a1e28 RD |
6385 | return resultobj; |
6386 | fail: | |
6387 | return NULL; | |
6388 | } | |
6389 | ||
6390 | ||
8e738329 | 6391 | static PyObject *_wrap_Caret_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6392 | PyObject *resultobj; |
6393 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6394 | PyObject * obj0 = 0 ; | |
6395 | char *kwnames[] = { | |
6396 | (char *) "self", NULL | |
6397 | }; | |
6398 | ||
8e738329 | 6399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Destroy",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6402 | { |
6403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8e738329 | 6404 | wxCaret_Destroy(arg1); |
d14a1e28 RD |
6405 | |
6406 | wxPyEndAllowThreads(__tstate); | |
6407 | if (PyErr_Occurred()) SWIG_fail; | |
6408 | } | |
6409 | Py_INCREF(Py_None); resultobj = Py_None; | |
6410 | return resultobj; | |
6411 | fail: | |
6412 | return NULL; | |
6413 | } | |
6414 | ||
6415 | ||
c32bde28 | 6416 | static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6417 | PyObject *resultobj; |
6418 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6419 | bool result; | |
6420 | PyObject * obj0 = 0 ; | |
6421 | char *kwnames[] = { | |
6422 | (char *) "self", NULL | |
6423 | }; | |
6424 | ||
6425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6428 | { |
6429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6430 | result = (bool)(arg1)->IsOk(); | |
6431 | ||
6432 | wxPyEndAllowThreads(__tstate); | |
6433 | if (PyErr_Occurred()) SWIG_fail; | |
6434 | } | |
4f89f6a3 RD |
6435 | { |
6436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6437 | } | |
d14a1e28 RD |
6438 | return resultobj; |
6439 | fail: | |
6440 | return NULL; | |
6441 | } | |
6442 | ||
6443 | ||
c32bde28 | 6444 | static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6445 | PyObject *resultobj; |
6446 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6447 | bool result; | |
6448 | PyObject * obj0 = 0 ; | |
6449 | char *kwnames[] = { | |
6450 | (char *) "self", NULL | |
6451 | }; | |
6452 | ||
6453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6456 | { |
6457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6458 | result = (bool)(arg1)->IsVisible(); | |
6459 | ||
6460 | wxPyEndAllowThreads(__tstate); | |
6461 | if (PyErr_Occurred()) SWIG_fail; | |
6462 | } | |
4f89f6a3 RD |
6463 | { |
6464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6465 | } | |
d14a1e28 RD |
6466 | return resultobj; |
6467 | fail: | |
6468 | return NULL; | |
6469 | } | |
6470 | ||
6471 | ||
c32bde28 | 6472 | static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
322913ce RD |
6473 | PyObject *resultobj; |
6474 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6475 | wxPoint result; | |
6476 | PyObject * obj0 = 0 ; | |
6477 | char *kwnames[] = { | |
6478 | (char *) "self", NULL | |
6479 | }; | |
6480 | ||
6481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
322913ce RD |
6484 | { |
6485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6486 | result = (arg1)->GetPosition(); | |
6487 | ||
6488 | wxPyEndAllowThreads(__tstate); | |
6489 | if (PyErr_Occurred()) SWIG_fail; | |
6490 | } | |
6491 | { | |
6492 | wxPoint * resultptr; | |
093d3ff1 | 6493 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 6494 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
322913ce RD |
6495 | } |
6496 | return resultobj; | |
6497 | fail: | |
6498 | return NULL; | |
6499 | } | |
6500 | ||
6501 | ||
c32bde28 | 6502 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6503 | PyObject *resultobj; |
6504 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6505 | int *arg2 = (int *) 0 ; | |
6506 | int *arg3 = (int *) 0 ; | |
6507 | int temp2 ; | |
c32bde28 | 6508 | int res2 = 0 ; |
d14a1e28 | 6509 | int temp3 ; |
c32bde28 | 6510 | int res3 = 0 ; |
d14a1e28 RD |
6511 | PyObject * obj0 = 0 ; |
6512 | char *kwnames[] = { | |
6513 | (char *) "self", NULL | |
6514 | }; | |
6515 | ||
c32bde28 RD |
6516 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
6517 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 6518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6521 | { |
6522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6523 | (arg1)->GetPosition(arg2,arg3); | |
6524 | ||
6525 | wxPyEndAllowThreads(__tstate); | |
6526 | if (PyErr_Occurred()) SWIG_fail; | |
6527 | } | |
6528 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
6529 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
6530 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
6531 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6532 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
6533 | return resultobj; |
6534 | fail: | |
6535 | return NULL; | |
6536 | } | |
6537 | ||
6538 | ||
c32bde28 | 6539 | static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6540 | PyObject *resultobj; |
6541 | wxCaret *arg1 = (wxCaret *) 0 ; | |
322913ce | 6542 | wxSize result; |
d14a1e28 RD |
6543 | PyObject * obj0 = 0 ; |
6544 | char *kwnames[] = { | |
6545 | (char *) "self", NULL | |
6546 | }; | |
6547 | ||
322913ce | 6548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6549 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6550 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6551 | { |
6552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 6553 | result = (arg1)->GetSize(); |
d14a1e28 RD |
6554 | |
6555 | wxPyEndAllowThreads(__tstate); | |
6556 | if (PyErr_Occurred()) SWIG_fail; | |
6557 | } | |
6558 | { | |
322913ce | 6559 | wxSize * resultptr; |
093d3ff1 | 6560 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 6561 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
6562 | } |
6563 | return resultobj; | |
6564 | fail: | |
6565 | return NULL; | |
6566 | } | |
6567 | ||
6568 | ||
c32bde28 | 6569 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6570 | PyObject *resultobj; |
6571 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6572 | int *arg2 = (int *) 0 ; | |
6573 | int *arg3 = (int *) 0 ; | |
6574 | int temp2 ; | |
c32bde28 | 6575 | int res2 = 0 ; |
d14a1e28 | 6576 | int temp3 ; |
c32bde28 | 6577 | int res3 = 0 ; |
d14a1e28 RD |
6578 | PyObject * obj0 = 0 ; |
6579 | char *kwnames[] = { | |
6580 | (char *) "self", NULL | |
6581 | }; | |
6582 | ||
c32bde28 RD |
6583 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
6584 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 6585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6586 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6587 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6588 | { |
6589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6590 | (arg1)->GetSize(arg2,arg3); | |
6591 | ||
6592 | wxPyEndAllowThreads(__tstate); | |
6593 | if (PyErr_Occurred()) SWIG_fail; | |
6594 | } | |
6595 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
6596 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
6597 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
6598 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6599 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
6600 | return resultobj; |
6601 | fail: | |
6602 | return NULL; | |
6603 | } | |
6604 | ||
6605 | ||
c32bde28 | 6606 | static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6607 | PyObject *resultobj; |
6608 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6609 | wxWindow *result; | |
6610 | PyObject * obj0 = 0 ; | |
6611 | char *kwnames[] = { | |
6612 | (char *) "self", NULL | |
6613 | }; | |
6614 | ||
6615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6616 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6618 | { |
6619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6620 | result = (wxWindow *)(arg1)->GetWindow(); | |
6621 | ||
6622 | wxPyEndAllowThreads(__tstate); | |
6623 | if (PyErr_Occurred()) SWIG_fail; | |
6624 | } | |
6625 | { | |
412d302d | 6626 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
6627 | } |
6628 | return resultobj; | |
6629 | fail: | |
6630 | return NULL; | |
6631 | } | |
6632 | ||
6633 | ||
c32bde28 | 6634 | static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6635 | PyObject *resultobj; |
6636 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6637 | int arg2 ; | |
6638 | int arg3 ; | |
6639 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6640 | PyObject * obj1 = 0 ; |
6641 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6642 | char *kwnames[] = { |
6643 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6644 | }; | |
6645 | ||
994141e6 | 6646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
6647 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6649 | { | |
6650 | arg2 = (int)(SWIG_As_int(obj1)); | |
6651 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6652 | } | |
6653 | { | |
6654 | arg3 = (int)(SWIG_As_int(obj2)); | |
6655 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6656 | } | |
d14a1e28 RD |
6657 | { |
6658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6659 | (arg1)->Move(arg2,arg3); | |
6660 | ||
6661 | wxPyEndAllowThreads(__tstate); | |
6662 | if (PyErr_Occurred()) SWIG_fail; | |
6663 | } | |
6664 | Py_INCREF(Py_None); resultobj = Py_None; | |
6665 | return resultobj; | |
6666 | fail: | |
6667 | return NULL; | |
6668 | } | |
6669 | ||
6670 | ||
c32bde28 | 6671 | static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6672 | PyObject *resultobj; |
6673 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6674 | wxPoint *arg2 = 0 ; | |
6675 | wxPoint temp2 ; | |
6676 | PyObject * obj0 = 0 ; | |
6677 | PyObject * obj1 = 0 ; | |
6678 | char *kwnames[] = { | |
6679 | (char *) "self",(char *) "pt", NULL | |
6680 | }; | |
6681 | ||
6682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6685 | { |
6686 | arg2 = &temp2; | |
6687 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6688 | } | |
6689 | { | |
6690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6691 | (arg1)->Move((wxPoint const &)*arg2); | |
6692 | ||
6693 | wxPyEndAllowThreads(__tstate); | |
6694 | if (PyErr_Occurred()) SWIG_fail; | |
6695 | } | |
6696 | Py_INCREF(Py_None); resultobj = Py_None; | |
6697 | return resultobj; | |
6698 | fail: | |
6699 | return NULL; | |
6700 | } | |
6701 | ||
6702 | ||
c32bde28 | 6703 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6704 | PyObject *resultobj; |
6705 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6706 | int arg2 ; | |
6707 | int arg3 ; | |
6708 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6709 | PyObject * obj1 = 0 ; |
6710 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6711 | char *kwnames[] = { |
6712 | (char *) "self",(char *) "width",(char *) "height", NULL | |
6713 | }; | |
6714 | ||
994141e6 | 6715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
6716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6718 | { | |
6719 | arg2 = (int)(SWIG_As_int(obj1)); | |
6720 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6721 | } | |
6722 | { | |
6723 | arg3 = (int)(SWIG_As_int(obj2)); | |
6724 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6725 | } | |
d14a1e28 RD |
6726 | { |
6727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6728 | (arg1)->SetSize(arg2,arg3); | |
6729 | ||
6730 | wxPyEndAllowThreads(__tstate); | |
6731 | if (PyErr_Occurred()) SWIG_fail; | |
6732 | } | |
6733 | Py_INCREF(Py_None); resultobj = Py_None; | |
6734 | return resultobj; | |
6735 | fail: | |
6736 | return NULL; | |
6737 | } | |
6738 | ||
6739 | ||
c32bde28 | 6740 | static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6741 | PyObject *resultobj; |
6742 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6743 | wxSize *arg2 = 0 ; | |
6744 | wxSize temp2 ; | |
6745 | PyObject * obj0 = 0 ; | |
6746 | PyObject * obj1 = 0 ; | |
6747 | char *kwnames[] = { | |
6748 | (char *) "self",(char *) "size", NULL | |
6749 | }; | |
6750 | ||
6751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6752 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6753 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6754 | { |
6755 | arg2 = &temp2; | |
6756 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6757 | } | |
6758 | { | |
6759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6760 | (arg1)->SetSize((wxSize const &)*arg2); | |
6761 | ||
6762 | wxPyEndAllowThreads(__tstate); | |
6763 | if (PyErr_Occurred()) SWIG_fail; | |
6764 | } | |
6765 | Py_INCREF(Py_None); resultobj = Py_None; | |
6766 | return resultobj; | |
6767 | fail: | |
6768 | return NULL; | |
6769 | } | |
6770 | ||
6771 | ||
c32bde28 | 6772 | static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6773 | PyObject *resultobj; |
6774 | wxCaret *arg1 = (wxCaret *) 0 ; | |
ae8162c8 | 6775 | int arg2 = (int) true ; |
d14a1e28 | 6776 | PyObject * obj0 = 0 ; |
994141e6 | 6777 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6778 | char *kwnames[] = { |
6779 | (char *) "self",(char *) "show", NULL | |
6780 | }; | |
6781 | ||
994141e6 | 6782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
6783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 6785 | if (obj1) { |
093d3ff1 RD |
6786 | { |
6787 | arg2 = (int)(SWIG_As_int(obj1)); | |
6788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6789 | } | |
994141e6 | 6790 | } |
d14a1e28 RD |
6791 | { |
6792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6793 | (arg1)->Show(arg2); | |
6794 | ||
6795 | wxPyEndAllowThreads(__tstate); | |
6796 | if (PyErr_Occurred()) SWIG_fail; | |
6797 | } | |
6798 | Py_INCREF(Py_None); resultobj = Py_None; | |
6799 | return resultobj; | |
6800 | fail: | |
6801 | return NULL; | |
6802 | } | |
6803 | ||
6804 | ||
c32bde28 | 6805 | static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6806 | PyObject *resultobj; |
6807 | wxCaret *arg1 = (wxCaret *) 0 ; | |
6808 | PyObject * obj0 = 0 ; | |
6809 | char *kwnames[] = { | |
6810 | (char *) "self", NULL | |
6811 | }; | |
6812 | ||
6813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); |
6815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6816 | { |
6817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6818 | (arg1)->Hide(); | |
6819 | ||
6820 | wxPyEndAllowThreads(__tstate); | |
6821 | if (PyErr_Occurred()) SWIG_fail; | |
6822 | } | |
6823 | Py_INCREF(Py_None); resultobj = Py_None; | |
6824 | return resultobj; | |
6825 | fail: | |
6826 | return NULL; | |
6827 | } | |
6828 | ||
6829 | ||
c32bde28 | 6830 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6831 | PyObject *resultobj; |
6832 | int result; | |
6833 | char *kwnames[] = { | |
6834 | NULL | |
6835 | }; | |
6836 | ||
6837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
6838 | { | |
6839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8e738329 | 6840 | result = (int)wxCaret::GetBlinkTime(); |
d14a1e28 RD |
6841 | |
6842 | wxPyEndAllowThreads(__tstate); | |
6843 | if (PyErr_Occurred()) SWIG_fail; | |
6844 | } | |
093d3ff1 RD |
6845 | { |
6846 | resultobj = SWIG_From_int((int)(result)); | |
6847 | } | |
d14a1e28 RD |
6848 | return resultobj; |
6849 | fail: | |
6850 | return NULL; | |
6851 | } | |
6852 | ||
6853 | ||
c32bde28 | 6854 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6855 | PyObject *resultobj; |
6856 | int arg1 ; | |
994141e6 | 6857 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6858 | char *kwnames[] = { |
6859 | (char *) "milliseconds", NULL | |
6860 | }; | |
6861 | ||
994141e6 | 6862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6863 | { |
6864 | arg1 = (int)(SWIG_As_int(obj0)); | |
6865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6866 | } | |
d14a1e28 RD |
6867 | { |
6868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8e738329 | 6869 | wxCaret::SetBlinkTime(arg1); |
d14a1e28 RD |
6870 | |
6871 | wxPyEndAllowThreads(__tstate); | |
6872 | if (PyErr_Occurred()) SWIG_fail; | |
6873 | } | |
6874 | Py_INCREF(Py_None); resultobj = Py_None; | |
6875 | return resultobj; | |
6876 | fail: | |
6877 | return NULL; | |
6878 | } | |
6879 | ||
6880 | ||
8e738329 RD |
6881 | static PyObject * Caret_swigregister(PyObject *, PyObject *args) { |
6882 | PyObject *obj; | |
6883 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6884 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
6885 | Py_INCREF(obj); | |
6886 | return Py_BuildValue((char *)""); | |
6887 | } | |
c32bde28 | 6888 | static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6889 | PyObject *resultobj; |
6890 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
6891 | wxBusyCursor *result; | |
6892 | PyObject * obj0 = 0 ; | |
6893 | char *kwnames[] = { | |
6894 | (char *) "cursor", NULL | |
6895 | }; | |
6896 | ||
6897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
6898 | if (obj0) { | |
093d3ff1 RD |
6899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); |
6900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6901 | } |
6902 | { | |
e3b71cb8 | 6903 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6905 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
6906 | ||
6907 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6908 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6909 | } |
15afbcd0 | 6910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); |
d14a1e28 RD |
6911 | return resultobj; |
6912 | fail: | |
6913 | return NULL; | |
6914 | } | |
6915 | ||
6916 | ||
c32bde28 | 6917 | static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6918 | PyObject *resultobj; |
6919 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
6920 | PyObject * obj0 = 0 ; | |
6921 | char *kwnames[] = { | |
6922 | (char *) "self", NULL | |
6923 | }; | |
6924 | ||
6925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyCursor, SWIG_POINTER_EXCEPTION | 0); |
6927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6928 | { |
6929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6930 | delete arg1; | |
6931 | ||
6932 | wxPyEndAllowThreads(__tstate); | |
6933 | if (PyErr_Occurred()) SWIG_fail; | |
6934 | } | |
6935 | Py_INCREF(Py_None); resultobj = Py_None; | |
6936 | return resultobj; | |
6937 | fail: | |
6938 | return NULL; | |
6939 | } | |
6940 | ||
6941 | ||
c32bde28 | 6942 | static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6943 | PyObject *obj; |
6944 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6945 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
6946 | Py_INCREF(obj); | |
6947 | return Py_BuildValue((char *)""); | |
6948 | } | |
c32bde28 | 6949 | static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6950 | PyObject *resultobj; |
6951 | wxWindow *arg1 = (wxWindow *) NULL ; | |
6952 | wxWindowDisabler *result; | |
6953 | PyObject * obj0 = 0 ; | |
6954 | char *kwnames[] = { | |
6955 | (char *) "winToSkip", NULL | |
6956 | }; | |
6957 | ||
6958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
6959 | if (obj0) { | |
093d3ff1 RD |
6960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6962 | } |
6963 | { | |
e3b71cb8 | 6964 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6966 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
6967 | ||
6968 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6969 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6970 | } |
15afbcd0 | 6971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); |
d14a1e28 RD |
6972 | return resultobj; |
6973 | fail: | |
6974 | return NULL; | |
6975 | } | |
6976 | ||
6977 | ||
c32bde28 | 6978 | static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6979 | PyObject *resultobj; |
6980 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
6981 | PyObject * obj0 = 0 ; | |
6982 | char *kwnames[] = { | |
6983 | (char *) "self", NULL | |
6984 | }; | |
6985 | ||
6986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6987 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowDisabler, SWIG_POINTER_EXCEPTION | 0); |
6988 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6989 | { |
6990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6991 | delete arg1; | |
6992 | ||
6993 | wxPyEndAllowThreads(__tstate); | |
6994 | if (PyErr_Occurred()) SWIG_fail; | |
6995 | } | |
6996 | Py_INCREF(Py_None); resultobj = Py_None; | |
6997 | return resultobj; | |
6998 | fail: | |
6999 | return NULL; | |
7000 | } | |
7001 | ||
7002 | ||
c32bde28 | 7003 | static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7004 | PyObject *obj; |
7005 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7006 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
7007 | Py_INCREF(obj); | |
7008 | return Py_BuildValue((char *)""); | |
7009 | } | |
c32bde28 | 7010 | static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7011 | PyObject *resultobj; |
7012 | wxString *arg1 = 0 ; | |
7013 | wxBusyInfo *result; | |
ae8162c8 | 7014 | bool temp1 = false ; |
d14a1e28 RD |
7015 | PyObject * obj0 = 0 ; |
7016 | char *kwnames[] = { | |
7017 | (char *) "message", NULL | |
7018 | }; | |
7019 | ||
7020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
7021 | { | |
7022 | arg1 = wxString_in_helper(obj0); | |
7023 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7024 | temp1 = true; |
d14a1e28 RD |
7025 | } |
7026 | { | |
e3b71cb8 | 7027 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7029 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
7030 | ||
7031 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7032 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7033 | } |
15afbcd0 | 7034 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); |
d14a1e28 RD |
7035 | { |
7036 | if (temp1) | |
7037 | delete arg1; | |
7038 | } | |
7039 | return resultobj; | |
7040 | fail: | |
7041 | { | |
7042 | if (temp1) | |
7043 | delete arg1; | |
7044 | } | |
7045 | return NULL; | |
7046 | } | |
7047 | ||
7048 | ||
c32bde28 | 7049 | static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7050 | PyObject *resultobj; |
7051 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
7052 | PyObject * obj0 = 0 ; | |
7053 | char *kwnames[] = { | |
7054 | (char *) "self", NULL | |
7055 | }; | |
7056 | ||
7057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBusyInfo, SWIG_POINTER_EXCEPTION | 0); |
7059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7060 | { |
7061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7062 | delete arg1; | |
7063 | ||
7064 | wxPyEndAllowThreads(__tstate); | |
7065 | if (PyErr_Occurred()) SWIG_fail; | |
7066 | } | |
7067 | Py_INCREF(Py_None); resultobj = Py_None; | |
7068 | return resultobj; | |
7069 | fail: | |
7070 | return NULL; | |
7071 | } | |
7072 | ||
7073 | ||
c32bde28 | 7074 | static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7075 | PyObject *obj; |
7076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7077 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
7078 | Py_INCREF(obj); | |
7079 | return Py_BuildValue((char *)""); | |
7080 | } | |
c32bde28 | 7081 | static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7082 | PyObject *resultobj; |
7083 | wxStopWatch *result; | |
7084 | char *kwnames[] = { | |
7085 | NULL | |
7086 | }; | |
7087 | ||
7088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
7089 | { | |
7090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7091 | result = (wxStopWatch *)new wxStopWatch(); | |
7092 | ||
7093 | wxPyEndAllowThreads(__tstate); | |
7094 | if (PyErr_Occurred()) SWIG_fail; | |
7095 | } | |
15afbcd0 | 7096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); |
d14a1e28 RD |
7097 | return resultobj; |
7098 | fail: | |
7099 | return NULL; | |
7100 | } | |
7101 | ||
7102 | ||
c32bde28 | 7103 | static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7104 | PyObject *resultobj; |
7105 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
7106 | long arg2 = (long) 0 ; | |
7107 | PyObject * obj0 = 0 ; | |
994141e6 | 7108 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7109 | char *kwnames[] = { |
7110 | (char *) "self",(char *) "t0", NULL | |
7111 | }; | |
7112 | ||
994141e6 | 7113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7114 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
7115 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 7116 | if (obj1) { |
093d3ff1 RD |
7117 | { |
7118 | arg2 = (long)(SWIG_As_long(obj1)); | |
7119 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7120 | } | |
994141e6 | 7121 | } |
d14a1e28 RD |
7122 | { |
7123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7124 | (arg1)->Start(arg2); | |
7125 | ||
7126 | wxPyEndAllowThreads(__tstate); | |
7127 | if (PyErr_Occurred()) SWIG_fail; | |
7128 | } | |
7129 | Py_INCREF(Py_None); resultobj = Py_None; | |
7130 | return resultobj; | |
7131 | fail: | |
7132 | return NULL; | |
7133 | } | |
7134 | ||
7135 | ||
c32bde28 | 7136 | static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7137 | PyObject *resultobj; |
7138 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
7139 | PyObject * obj0 = 0 ; | |
7140 | char *kwnames[] = { | |
7141 | (char *) "self", NULL | |
7142 | }; | |
7143 | ||
7144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
7146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7147 | { |
7148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7149 | (arg1)->Pause(); | |
7150 | ||
7151 | wxPyEndAllowThreads(__tstate); | |
7152 | if (PyErr_Occurred()) SWIG_fail; | |
7153 | } | |
7154 | Py_INCREF(Py_None); resultobj = Py_None; | |
7155 | return resultobj; | |
7156 | fail: | |
7157 | return NULL; | |
7158 | } | |
7159 | ||
7160 | ||
c32bde28 | 7161 | static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7162 | PyObject *resultobj; |
7163 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
7164 | PyObject * obj0 = 0 ; | |
7165 | char *kwnames[] = { | |
7166 | (char *) "self", NULL | |
7167 | }; | |
7168 | ||
7169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
7171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7172 | { |
7173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7174 | (arg1)->Resume(); | |
7175 | ||
7176 | wxPyEndAllowThreads(__tstate); | |
7177 | if (PyErr_Occurred()) SWIG_fail; | |
7178 | } | |
7179 | Py_INCREF(Py_None); resultobj = Py_None; | |
7180 | return resultobj; | |
7181 | fail: | |
7182 | return NULL; | |
7183 | } | |
7184 | ||
7185 | ||
c32bde28 | 7186 | static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7187 | PyObject *resultobj; |
7188 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
7189 | long result; | |
7190 | PyObject * obj0 = 0 ; | |
7191 | char *kwnames[] = { | |
7192 | (char *) "self", NULL | |
7193 | }; | |
7194 | ||
7195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStopWatch, SWIG_POINTER_EXCEPTION | 0); |
7197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7198 | { |
7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7200 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
7201 | ||
7202 | wxPyEndAllowThreads(__tstate); | |
7203 | if (PyErr_Occurred()) SWIG_fail; | |
7204 | } | |
093d3ff1 RD |
7205 | { |
7206 | resultobj = SWIG_From_long((long)(result)); | |
7207 | } | |
d14a1e28 RD |
7208 | return resultobj; |
7209 | fail: | |
7210 | return NULL; | |
7211 | } | |
7212 | ||
7213 | ||
c32bde28 | 7214 | static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7215 | PyObject *obj; |
7216 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7217 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
7218 | Py_INCREF(obj); | |
7219 | return Py_BuildValue((char *)""); | |
7220 | } | |
c32bde28 | 7221 | static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7222 | PyObject *resultobj; |
7223 | int arg1 = (int) 9 ; | |
4cf4100f | 7224 | int arg2 = (int) wxID_FILE1 ; |
d14a1e28 | 7225 | wxFileHistory *result; |
994141e6 | 7226 | PyObject * obj0 = 0 ; |
4cf4100f | 7227 | PyObject * obj1 = 0 ; |
d14a1e28 | 7228 | char *kwnames[] = { |
4cf4100f | 7229 | (char *) "maxFiles",(char *) "idBase", NULL |
d14a1e28 RD |
7230 | }; |
7231 | ||
4cf4100f | 7232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail; |
994141e6 | 7233 | if (obj0) { |
093d3ff1 RD |
7234 | { |
7235 | arg1 = (int)(SWIG_As_int(obj0)); | |
7236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7237 | } | |
994141e6 | 7238 | } |
4cf4100f | 7239 | if (obj1) { |
093d3ff1 RD |
7240 | { |
7241 | arg2 = (int)(SWIG_As_int(obj1)); | |
7242 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7243 | } | |
4cf4100f | 7244 | } |
d14a1e28 RD |
7245 | { |
7246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4cf4100f | 7247 | result = (wxFileHistory *)new wxFileHistory(arg1,arg2); |
d14a1e28 RD |
7248 | |
7249 | wxPyEndAllowThreads(__tstate); | |
7250 | if (PyErr_Occurred()) SWIG_fail; | |
7251 | } | |
15afbcd0 | 7252 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); |
d14a1e28 RD |
7253 | return resultobj; |
7254 | fail: | |
7255 | return NULL; | |
7256 | } | |
7257 | ||
7258 | ||
c32bde28 | 7259 | static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7260 | PyObject *resultobj; |
7261 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7262 | PyObject * obj0 = 0 ; | |
7263 | char *kwnames[] = { | |
7264 | (char *) "self", NULL | |
7265 | }; | |
7266 | ||
7267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7270 | { |
7271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7272 | delete arg1; | |
7273 | ||
7274 | wxPyEndAllowThreads(__tstate); | |
7275 | if (PyErr_Occurred()) SWIG_fail; | |
7276 | } | |
7277 | Py_INCREF(Py_None); resultobj = Py_None; | |
7278 | return resultobj; | |
7279 | fail: | |
7280 | return NULL; | |
7281 | } | |
7282 | ||
7283 | ||
c32bde28 | 7284 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7285 | PyObject *resultobj; |
7286 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7287 | wxString *arg2 = 0 ; | |
ae8162c8 | 7288 | bool temp2 = false ; |
d14a1e28 RD |
7289 | PyObject * obj0 = 0 ; |
7290 | PyObject * obj1 = 0 ; | |
7291 | char *kwnames[] = { | |
7292 | (char *) "self",(char *) "file", NULL | |
7293 | }; | |
7294 | ||
7295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7298 | { |
7299 | arg2 = wxString_in_helper(obj1); | |
7300 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7301 | temp2 = true; |
d14a1e28 RD |
7302 | } |
7303 | { | |
7304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7305 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
7306 | ||
7307 | wxPyEndAllowThreads(__tstate); | |
7308 | if (PyErr_Occurred()) SWIG_fail; | |
7309 | } | |
7310 | Py_INCREF(Py_None); resultobj = Py_None; | |
7311 | { | |
7312 | if (temp2) | |
7313 | delete arg2; | |
7314 | } | |
7315 | return resultobj; | |
7316 | fail: | |
7317 | { | |
7318 | if (temp2) | |
7319 | delete arg2; | |
7320 | } | |
7321 | return NULL; | |
7322 | } | |
7323 | ||
7324 | ||
c32bde28 | 7325 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7326 | PyObject *resultobj; |
7327 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7328 | int arg2 ; | |
7329 | PyObject * obj0 = 0 ; | |
994141e6 | 7330 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7331 | char *kwnames[] = { |
7332 | (char *) "self",(char *) "i", NULL | |
7333 | }; | |
7334 | ||
994141e6 | 7335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7338 | { | |
7339 | arg2 = (int)(SWIG_As_int(obj1)); | |
7340 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7341 | } | |
d14a1e28 RD |
7342 | { |
7343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7344 | (arg1)->RemoveFileFromHistory(arg2); | |
7345 | ||
7346 | wxPyEndAllowThreads(__tstate); | |
7347 | if (PyErr_Occurred()) SWIG_fail; | |
7348 | } | |
7349 | Py_INCREF(Py_None); resultobj = Py_None; | |
7350 | return resultobj; | |
7351 | fail: | |
7352 | return NULL; | |
7353 | } | |
7354 | ||
7355 | ||
c32bde28 | 7356 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7357 | PyObject *resultobj; |
7358 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7359 | int result; | |
7360 | PyObject * obj0 = 0 ; | |
7361 | char *kwnames[] = { | |
7362 | (char *) "self", NULL | |
7363 | }; | |
7364 | ||
7365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7366 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7367 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7368 | { |
7369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7370 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
7371 | ||
7372 | wxPyEndAllowThreads(__tstate); | |
7373 | if (PyErr_Occurred()) SWIG_fail; | |
7374 | } | |
093d3ff1 RD |
7375 | { |
7376 | resultobj = SWIG_From_int((int)(result)); | |
7377 | } | |
d14a1e28 RD |
7378 | return resultobj; |
7379 | fail: | |
7380 | return NULL; | |
7381 | } | |
7382 | ||
7383 | ||
c32bde28 | 7384 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7385 | PyObject *resultobj; |
7386 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7387 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7388 | PyObject * obj0 = 0 ; | |
7389 | PyObject * obj1 = 0 ; | |
7390 | char *kwnames[] = { | |
7391 | (char *) "self",(char *) "menu", NULL | |
7392 | }; | |
7393 | ||
7394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7397 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
7398 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7399 | { |
7400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7401 | (arg1)->UseMenu(arg2); | |
7402 | ||
7403 | wxPyEndAllowThreads(__tstate); | |
7404 | if (PyErr_Occurred()) SWIG_fail; | |
7405 | } | |
7406 | Py_INCREF(Py_None); resultobj = Py_None; | |
7407 | return resultobj; | |
7408 | fail: | |
7409 | return NULL; | |
7410 | } | |
7411 | ||
7412 | ||
c32bde28 | 7413 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7414 | PyObject *resultobj; |
7415 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7416 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7417 | PyObject * obj0 = 0 ; | |
7418 | PyObject * obj1 = 0 ; | |
7419 | char *kwnames[] = { | |
7420 | (char *) "self",(char *) "menu", NULL | |
7421 | }; | |
7422 | ||
7423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7426 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
7427 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7428 | { |
7429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7430 | (arg1)->RemoveMenu(arg2); | |
7431 | ||
7432 | wxPyEndAllowThreads(__tstate); | |
7433 | if (PyErr_Occurred()) SWIG_fail; | |
7434 | } | |
7435 | Py_INCREF(Py_None); resultobj = Py_None; | |
7436 | return resultobj; | |
7437 | fail: | |
7438 | return NULL; | |
7439 | } | |
7440 | ||
7441 | ||
c32bde28 | 7442 | static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7443 | PyObject *resultobj; |
7444 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7445 | wxConfigBase *arg2 = 0 ; | |
7446 | PyObject * obj0 = 0 ; | |
7447 | PyObject * obj1 = 0 ; | |
7448 | char *kwnames[] = { | |
7449 | (char *) "self",(char *) "config", NULL | |
7450 | }; | |
7451 | ||
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7453 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7454 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7455 | { | |
7456 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); | |
7457 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7458 | if (arg2 == NULL) { | |
7459 | SWIG_null_ref("wxConfigBase"); | |
7460 | } | |
7461 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7462 | } |
7463 | { | |
7464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7465 | (arg1)->Load(*arg2); | |
7466 | ||
7467 | wxPyEndAllowThreads(__tstate); | |
7468 | if (PyErr_Occurred()) SWIG_fail; | |
7469 | } | |
7470 | Py_INCREF(Py_None); resultobj = Py_None; | |
7471 | return resultobj; | |
7472 | fail: | |
7473 | return NULL; | |
7474 | } | |
7475 | ||
7476 | ||
c32bde28 | 7477 | static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7478 | PyObject *resultobj; |
7479 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7480 | wxConfigBase *arg2 = 0 ; | |
7481 | PyObject * obj0 = 0 ; | |
7482 | PyObject * obj1 = 0 ; | |
7483 | char *kwnames[] = { | |
7484 | (char *) "self",(char *) "config", NULL | |
7485 | }; | |
7486 | ||
7487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7490 | { | |
7491 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); | |
7492 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7493 | if (arg2 == NULL) { | |
7494 | SWIG_null_ref("wxConfigBase"); | |
7495 | } | |
7496 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7497 | } |
7498 | { | |
7499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7500 | (arg1)->Save(*arg2); | |
7501 | ||
7502 | wxPyEndAllowThreads(__tstate); | |
7503 | if (PyErr_Occurred()) SWIG_fail; | |
7504 | } | |
7505 | Py_INCREF(Py_None); resultobj = Py_None; | |
7506 | return resultobj; | |
7507 | fail: | |
7508 | return NULL; | |
7509 | } | |
7510 | ||
7511 | ||
c32bde28 | 7512 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7513 | PyObject *resultobj; |
7514 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7515 | PyObject * obj0 = 0 ; | |
7516 | char *kwnames[] = { | |
7517 | (char *) "self", NULL | |
7518 | }; | |
7519 | ||
7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7523 | { |
7524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7525 | (arg1)->AddFilesToMenu(); | |
7526 | ||
7527 | wxPyEndAllowThreads(__tstate); | |
7528 | if (PyErr_Occurred()) SWIG_fail; | |
7529 | } | |
7530 | Py_INCREF(Py_None); resultobj = Py_None; | |
7531 | return resultobj; | |
7532 | fail: | |
7533 | return NULL; | |
7534 | } | |
7535 | ||
7536 | ||
c32bde28 | 7537 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7538 | PyObject *resultobj; |
7539 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7540 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7541 | PyObject * obj0 = 0 ; | |
7542 | PyObject * obj1 = 0 ; | |
7543 | char *kwnames[] = { | |
7544 | (char *) "self",(char *) "menu", NULL | |
7545 | }; | |
7546 | ||
7547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7550 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
7551 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7552 | { |
7553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7554 | (arg1)->AddFilesToMenu(arg2); | |
7555 | ||
7556 | wxPyEndAllowThreads(__tstate); | |
7557 | if (PyErr_Occurred()) SWIG_fail; | |
7558 | } | |
7559 | Py_INCREF(Py_None); resultobj = Py_None; | |
7560 | return resultobj; | |
7561 | fail: | |
7562 | return NULL; | |
7563 | } | |
7564 | ||
7565 | ||
c32bde28 | 7566 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7567 | PyObject *resultobj; |
7568 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7569 | int arg2 ; | |
7570 | wxString result; | |
7571 | PyObject * obj0 = 0 ; | |
994141e6 | 7572 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7573 | char *kwnames[] = { |
7574 | (char *) "self",(char *) "i", NULL | |
7575 | }; | |
7576 | ||
994141e6 | 7577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 7580 | { |
093d3ff1 RD |
7581 | arg2 = (int)(SWIG_As_int(obj1)); |
7582 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7583 | } | |
7584 | { | |
7585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 RD |
7586 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); |
7587 | ||
7588 | wxPyEndAllowThreads(__tstate); | |
7589 | if (PyErr_Occurred()) SWIG_fail; | |
7590 | } | |
7591 | { | |
7592 | #if wxUSE_UNICODE | |
7593 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7594 | #else | |
7595 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7596 | #endif | |
7597 | } | |
7598 | return resultobj; | |
7599 | fail: | |
7600 | return NULL; | |
7601 | } | |
7602 | ||
7603 | ||
c32bde28 | 7604 | static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7605 | PyObject *resultobj; |
7606 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
7607 | int result; | |
7608 | PyObject * obj0 = 0 ; | |
7609 | char *kwnames[] = { | |
7610 | (char *) "self", NULL | |
7611 | }; | |
7612 | ||
7613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7614 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileHistory, SWIG_POINTER_EXCEPTION | 0); |
7615 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7616 | { |
7617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7618 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
7619 | ||
7620 | wxPyEndAllowThreads(__tstate); | |
7621 | if (PyErr_Occurred()) SWIG_fail; | |
7622 | } | |
093d3ff1 RD |
7623 | { |
7624 | resultobj = SWIG_From_int((int)(result)); | |
7625 | } | |
d14a1e28 RD |
7626 | return resultobj; |
7627 | fail: | |
7628 | return NULL; | |
7629 | } | |
7630 | ||
7631 | ||
c32bde28 | 7632 | static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7633 | PyObject *obj; |
7634 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7635 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
7636 | Py_INCREF(obj); | |
7637 | return Py_BuildValue((char *)""); | |
7638 | } | |
c32bde28 | 7639 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7640 | PyObject *resultobj; |
7641 | wxString *arg1 = 0 ; | |
7642 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
7643 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7644 | wxSingleInstanceChecker *result; | |
ae8162c8 RD |
7645 | bool temp1 = false ; |
7646 | bool temp2 = false ; | |
d14a1e28 RD |
7647 | PyObject * obj0 = 0 ; |
7648 | PyObject * obj1 = 0 ; | |
7649 | char *kwnames[] = { | |
7650 | (char *) "name",(char *) "path", NULL | |
7651 | }; | |
7652 | ||
7653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
7654 | { | |
7655 | arg1 = wxString_in_helper(obj0); | |
7656 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7657 | temp1 = true; |
d14a1e28 RD |
7658 | } |
7659 | if (obj1) { | |
7660 | { | |
7661 | arg2 = wxString_in_helper(obj1); | |
7662 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7663 | temp2 = true; |
d14a1e28 RD |
7664 | } |
7665 | } | |
7666 | { | |
7667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7668 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
7669 | ||
7670 | wxPyEndAllowThreads(__tstate); | |
7671 | if (PyErr_Occurred()) SWIG_fail; | |
7672 | } | |
15afbcd0 | 7673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
7674 | { |
7675 | if (temp1) | |
7676 | delete arg1; | |
7677 | } | |
7678 | { | |
7679 | if (temp2) | |
7680 | delete arg2; | |
7681 | } | |
7682 | return resultobj; | |
7683 | fail: | |
7684 | { | |
7685 | if (temp1) | |
7686 | delete arg1; | |
7687 | } | |
7688 | { | |
7689 | if (temp2) | |
7690 | delete arg2; | |
7691 | } | |
7692 | return NULL; | |
7693 | } | |
7694 | ||
7695 | ||
c32bde28 | 7696 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7697 | PyObject *resultobj; |
7698 | wxSingleInstanceChecker *result; | |
7699 | char *kwnames[] = { | |
7700 | NULL | |
7701 | }; | |
7702 | ||
7703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
7704 | { | |
7705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7706 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
7707 | ||
7708 | wxPyEndAllowThreads(__tstate); | |
7709 | if (PyErr_Occurred()) SWIG_fail; | |
7710 | } | |
15afbcd0 | 7711 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
7712 | return resultobj; |
7713 | fail: | |
7714 | return NULL; | |
7715 | } | |
7716 | ||
7717 | ||
c32bde28 | 7718 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7719 | PyObject *resultobj; |
7720 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
7721 | PyObject * obj0 = 0 ; | |
7722 | char *kwnames[] = { | |
7723 | (char *) "self", NULL | |
7724 | }; | |
7725 | ||
7726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
7728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7729 | { |
7730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7731 | delete arg1; | |
7732 | ||
7733 | wxPyEndAllowThreads(__tstate); | |
7734 | if (PyErr_Occurred()) SWIG_fail; | |
7735 | } | |
7736 | Py_INCREF(Py_None); resultobj = Py_None; | |
7737 | return resultobj; | |
7738 | fail: | |
7739 | return NULL; | |
7740 | } | |
7741 | ||
7742 | ||
c32bde28 | 7743 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7744 | PyObject *resultobj; |
7745 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
7746 | wxString *arg2 = 0 ; | |
7747 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7748 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7749 | bool result; | |
ae8162c8 RD |
7750 | bool temp2 = false ; |
7751 | bool temp3 = false ; | |
d14a1e28 RD |
7752 | PyObject * obj0 = 0 ; |
7753 | PyObject * obj1 = 0 ; | |
7754 | PyObject * obj2 = 0 ; | |
7755 | char *kwnames[] = { | |
7756 | (char *) "self",(char *) "name",(char *) "path", NULL | |
7757 | }; | |
7758 | ||
7759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
7761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7762 | { |
7763 | arg2 = wxString_in_helper(obj1); | |
7764 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7765 | temp2 = true; |
d14a1e28 RD |
7766 | } |
7767 | if (obj2) { | |
7768 | { | |
7769 | arg3 = wxString_in_helper(obj2); | |
7770 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7771 | temp3 = true; |
d14a1e28 RD |
7772 | } |
7773 | } | |
7774 | { | |
7775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7776 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
7777 | ||
7778 | wxPyEndAllowThreads(__tstate); | |
7779 | if (PyErr_Occurred()) SWIG_fail; | |
7780 | } | |
4f89f6a3 RD |
7781 | { |
7782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7783 | } | |
d14a1e28 RD |
7784 | { |
7785 | if (temp2) | |
7786 | delete arg2; | |
7787 | } | |
7788 | { | |
7789 | if (temp3) | |
7790 | delete arg3; | |
7791 | } | |
7792 | return resultobj; | |
7793 | fail: | |
7794 | { | |
7795 | if (temp2) | |
7796 | delete arg2; | |
7797 | } | |
7798 | { | |
7799 | if (temp3) | |
7800 | delete arg3; | |
7801 | } | |
7802 | return NULL; | |
7803 | } | |
7804 | ||
7805 | ||
c32bde28 | 7806 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7807 | PyObject *resultobj; |
7808 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
7809 | bool result; | |
7810 | PyObject * obj0 = 0 ; | |
7811 | char *kwnames[] = { | |
7812 | (char *) "self", NULL | |
7813 | }; | |
7814 | ||
7815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7816 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_EXCEPTION | 0); |
7817 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7818 | { |
7819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7820 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
7821 | ||
7822 | wxPyEndAllowThreads(__tstate); | |
7823 | if (PyErr_Occurred()) SWIG_fail; | |
7824 | } | |
4f89f6a3 RD |
7825 | { |
7826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7827 | } | |
d14a1e28 RD |
7828 | return resultobj; |
7829 | fail: | |
7830 | return NULL; | |
7831 | } | |
7832 | ||
7833 | ||
c32bde28 | 7834 | static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7835 | PyObject *obj; |
7836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7837 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
7838 | Py_INCREF(obj); | |
7839 | return Py_BuildValue((char *)""); | |
7840 | } | |
68350608 RD |
7841 | static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) { |
7842 | PyObject *resultobj; | |
7843 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7844 | wxDC *arg2 = 0 ; | |
7845 | bool result; | |
7846 | PyObject * obj0 = 0 ; | |
7847 | PyObject * obj1 = 0 ; | |
7848 | char *kwnames[] = { | |
7849 | (char *) "window",(char *) "dc", NULL | |
7850 | }; | |
7851 | ||
7852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DrawWindowOnDC",kwnames,&obj0,&obj1)) goto fail; | |
7853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7855 | { | |
7856 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
7857 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7858 | if (arg2 == NULL) { | |
7859 | SWIG_null_ref("wxDC"); | |
7860 | } | |
7861 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7862 | } | |
7863 | { | |
7864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7865 | result = (bool)wxDrawWindowOnDC(arg1,(wxDC const &)*arg2); | |
7866 | ||
7867 | wxPyEndAllowThreads(__tstate); | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | } | |
7870 | { | |
7871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7872 | } | |
7873 | return resultobj; | |
7874 | fail: | |
7875 | return NULL; | |
7876 | } | |
7877 | ||
7878 | ||
c32bde28 | 7879 | static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7880 | PyObject *resultobj; |
7881 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
7882 | PyObject * obj0 = 0 ; | |
7883 | char *kwnames[] = { | |
7884 | (char *) "self", NULL | |
7885 | }; | |
7886 | ||
7887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7888 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
7889 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7890 | { |
7891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7892 | delete arg1; | |
7893 | ||
7894 | wxPyEndAllowThreads(__tstate); | |
7895 | if (PyErr_Occurred()) SWIG_fail; | |
7896 | } | |
7897 | Py_INCREF(Py_None); resultobj = Py_None; | |
7898 | return resultobj; | |
7899 | fail: | |
7900 | return NULL; | |
7901 | } | |
7902 | ||
7903 | ||
c32bde28 | 7904 | static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7905 | PyObject *resultobj; |
7906 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
7907 | wxString result; | |
7908 | PyObject * obj0 = 0 ; | |
7909 | char *kwnames[] = { | |
7910 | (char *) "self", NULL | |
7911 | }; | |
7912 | ||
7913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
7915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7916 | { |
7917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7918 | result = (arg1)->GetTip(); | |
7919 | ||
7920 | wxPyEndAllowThreads(__tstate); | |
7921 | if (PyErr_Occurred()) SWIG_fail; | |
7922 | } | |
7923 | { | |
7924 | #if wxUSE_UNICODE | |
7925 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7926 | #else | |
7927 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7928 | #endif | |
7929 | } | |
7930 | return resultobj; | |
7931 | fail: | |
7932 | return NULL; | |
7933 | } | |
7934 | ||
7935 | ||
c32bde28 | 7936 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7937 | PyObject *resultobj; |
7938 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
7939 | size_t result; | |
7940 | PyObject * obj0 = 0 ; | |
7941 | char *kwnames[] = { | |
7942 | (char *) "self", NULL | |
7943 | }; | |
7944 | ||
7945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7946 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
7947 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7948 | { |
7949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7950 | result = (size_t)(arg1)->GetCurrentTip(); | |
7951 | ||
7952 | wxPyEndAllowThreads(__tstate); | |
7953 | if (PyErr_Occurred()) SWIG_fail; | |
7954 | } | |
093d3ff1 RD |
7955 | { |
7956 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
7957 | } | |
d14a1e28 RD |
7958 | return resultobj; |
7959 | fail: | |
7960 | return NULL; | |
7961 | } | |
7962 | ||
7963 | ||
c32bde28 | 7964 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7965 | PyObject *resultobj; |
7966 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
7967 | wxString *arg2 = 0 ; | |
7968 | wxString result; | |
ae8162c8 | 7969 | bool temp2 = false ; |
d14a1e28 RD |
7970 | PyObject * obj0 = 0 ; |
7971 | PyObject * obj1 = 0 ; | |
7972 | char *kwnames[] = { | |
7973 | (char *) "self",(char *) "tip", NULL | |
7974 | }; | |
7975 | ||
7976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); |
7978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7979 | { |
7980 | arg2 = wxString_in_helper(obj1); | |
7981 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7982 | temp2 = true; |
d14a1e28 RD |
7983 | } |
7984 | { | |
7985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7986 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
7987 | ||
7988 | wxPyEndAllowThreads(__tstate); | |
7989 | if (PyErr_Occurred()) SWIG_fail; | |
7990 | } | |
7991 | { | |
7992 | #if wxUSE_UNICODE | |
7993 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7994 | #else | |
7995 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7996 | #endif | |
7997 | } | |
7998 | { | |
7999 | if (temp2) | |
8000 | delete arg2; | |
8001 | } | |
8002 | return resultobj; | |
8003 | fail: | |
8004 | { | |
8005 | if (temp2) | |
8006 | delete arg2; | |
8007 | } | |
8008 | return NULL; | |
8009 | } | |
8010 | ||
8011 | ||
c32bde28 | 8012 | static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8013 | PyObject *obj; |
8014 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8015 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
8016 | Py_INCREF(obj); | |
8017 | return Py_BuildValue((char *)""); | |
8018 | } | |
c32bde28 | 8019 | static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8020 | PyObject *resultobj; |
8021 | size_t arg1 ; | |
8022 | wxPyTipProvider *result; | |
8023 | PyObject * obj0 = 0 ; | |
8024 | char *kwnames[] = { | |
8025 | (char *) "currentTip", NULL | |
8026 | }; | |
8027 | ||
8028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8029 | { |
8030 | arg1 = (size_t)(SWIG_As_unsigned_SS_long(obj0)); | |
8031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8032 | } | |
d14a1e28 RD |
8033 | { |
8034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8035 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
8036 | ||
8037 | wxPyEndAllowThreads(__tstate); | |
8038 | if (PyErr_Occurred()) SWIG_fail; | |
8039 | } | |
15afbcd0 | 8040 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); |
d14a1e28 RD |
8041 | return resultobj; |
8042 | fail: | |
8043 | return NULL; | |
8044 | } | |
8045 | ||
8046 | ||
c32bde28 | 8047 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8048 | PyObject *resultobj; |
8049 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
8050 | PyObject *arg2 = (PyObject *) 0 ; | |
8051 | PyObject *arg3 = (PyObject *) 0 ; | |
8052 | PyObject * obj0 = 0 ; | |
8053 | PyObject * obj1 = 0 ; | |
8054 | PyObject * obj2 = 0 ; | |
8055 | char *kwnames[] = { | |
8056 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8057 | }; | |
8058 | ||
8059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8060 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTipProvider, SWIG_POINTER_EXCEPTION | 0); |
8061 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8062 | arg2 = obj1; |
8063 | arg3 = obj2; | |
8064 | { | |
8065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8066 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8067 | ||
8068 | wxPyEndAllowThreads(__tstate); | |
8069 | if (PyErr_Occurred()) SWIG_fail; | |
8070 | } | |
8071 | Py_INCREF(Py_None); resultobj = Py_None; | |
8072 | return resultobj; | |
8073 | fail: | |
8074 | return NULL; | |
8075 | } | |
8076 | ||
8077 | ||
c32bde28 | 8078 | static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8079 | PyObject *obj; |
8080 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8081 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
8082 | Py_INCREF(obj); | |
8083 | return Py_BuildValue((char *)""); | |
8084 | } | |
c32bde28 | 8085 | static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8086 | PyObject *resultobj; |
8087 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8088 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
ae8162c8 | 8089 | bool arg3 = (bool) true ; |
d14a1e28 RD |
8090 | bool result; |
8091 | PyObject * obj0 = 0 ; | |
8092 | PyObject * obj1 = 0 ; | |
8093 | PyObject * obj2 = 0 ; | |
8094 | char *kwnames[] = { | |
8095 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
8096 | }; | |
8097 | ||
8098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
8100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8101 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTipProvider, SWIG_POINTER_EXCEPTION | 0); | |
8102 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 8103 | if (obj2) { |
093d3ff1 RD |
8104 | { |
8105 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8106 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8107 | } | |
d14a1e28 RD |
8108 | } |
8109 | { | |
e3b71cb8 | 8110 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8112 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
8113 | ||
8114 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8115 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8116 | } |
4f89f6a3 RD |
8117 | { |
8118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8119 | } | |
d14a1e28 RD |
8120 | return resultobj; |
8121 | fail: | |
8122 | return NULL; | |
8123 | } | |
8124 | ||
8125 | ||
c32bde28 | 8126 | static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8127 | PyObject *resultobj; |
8128 | wxString *arg1 = 0 ; | |
8129 | size_t arg2 ; | |
8130 | wxTipProvider *result; | |
ae8162c8 | 8131 | bool temp1 = false ; |
d14a1e28 RD |
8132 | PyObject * obj0 = 0 ; |
8133 | PyObject * obj1 = 0 ; | |
8134 | char *kwnames[] = { | |
8135 | (char *) "filename",(char *) "currentTip", NULL | |
8136 | }; | |
8137 | ||
8138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
8139 | { | |
8140 | arg1 = wxString_in_helper(obj0); | |
8141 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8142 | temp1 = true; |
d14a1e28 | 8143 | } |
093d3ff1 RD |
8144 | { |
8145 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
8146 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8147 | } | |
d14a1e28 | 8148 | { |
e3b71cb8 | 8149 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8151 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
8152 | ||
8153 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8154 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8155 | } |
15afbcd0 | 8156 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); |
d14a1e28 RD |
8157 | { |
8158 | if (temp1) | |
8159 | delete arg1; | |
8160 | } | |
8161 | return resultobj; | |
8162 | fail: | |
8163 | { | |
8164 | if (temp1) | |
8165 | delete arg1; | |
8166 | } | |
8167 | return NULL; | |
8168 | } | |
8169 | ||
8170 | ||
c32bde28 | 8171 | static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8172 | PyObject *resultobj; |
8173 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8174 | int arg2 = (int) -1 ; | |
8175 | wxPyTimer *result; | |
8176 | PyObject * obj0 = 0 ; | |
994141e6 | 8177 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8178 | char *kwnames[] = { |
8179 | (char *) "owner",(char *) "id", NULL | |
8180 | }; | |
8181 | ||
994141e6 | 8182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8183 | if (obj0) { |
093d3ff1 RD |
8184 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
8185 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 8186 | } |
994141e6 | 8187 | if (obj1) { |
093d3ff1 RD |
8188 | { |
8189 | arg2 = (int)(SWIG_As_int(obj1)); | |
8190 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8191 | } | |
994141e6 | 8192 | } |
d14a1e28 | 8193 | { |
e3b71cb8 | 8194 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8196 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
8197 | ||
8198 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8199 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8200 | } |
15afbcd0 | 8201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); |
d14a1e28 RD |
8202 | return resultobj; |
8203 | fail: | |
8204 | return NULL; | |
8205 | } | |
8206 | ||
8207 | ||
c32bde28 | 8208 | static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8209 | PyObject *resultobj; |
8210 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8211 | PyObject * obj0 = 0 ; | |
8212 | char *kwnames[] = { | |
8213 | (char *) "self", NULL | |
8214 | }; | |
8215 | ||
8216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8219 | { |
8220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8221 | delete arg1; | |
8222 | ||
8223 | wxPyEndAllowThreads(__tstate); | |
8224 | if (PyErr_Occurred()) SWIG_fail; | |
8225 | } | |
8226 | Py_INCREF(Py_None); resultobj = Py_None; | |
8227 | return resultobj; | |
8228 | fail: | |
8229 | return NULL; | |
8230 | } | |
8231 | ||
8232 | ||
c32bde28 | 8233 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
7722248d RD |
8234 | PyObject *resultobj; |
8235 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8236 | PyObject *arg2 = (PyObject *) 0 ; | |
8237 | PyObject *arg3 = (PyObject *) 0 ; | |
4276dc52 | 8238 | int arg4 = (int) 1 ; |
7722248d RD |
8239 | PyObject * obj0 = 0 ; |
8240 | PyObject * obj1 = 0 ; | |
8241 | PyObject * obj2 = 0 ; | |
4276dc52 | 8242 | PyObject * obj3 = 0 ; |
7722248d | 8243 | char *kwnames[] = { |
4276dc52 | 8244 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
7722248d RD |
8245 | }; |
8246 | ||
4276dc52 | 8247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
8248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7722248d RD |
8250 | arg2 = obj1; |
8251 | arg3 = obj2; | |
4276dc52 | 8252 | if (obj3) { |
093d3ff1 RD |
8253 | { |
8254 | arg4 = (int)(SWIG_As_int(obj3)); | |
8255 | if (SWIG_arg_fail(4)) SWIG_fail; | |
8256 | } | |
4276dc52 | 8257 | } |
7722248d RD |
8258 | { |
8259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 8260 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
7722248d RD |
8261 | |
8262 | wxPyEndAllowThreads(__tstate); | |
8263 | if (PyErr_Occurred()) SWIG_fail; | |
8264 | } | |
8265 | Py_INCREF(Py_None); resultobj = Py_None; | |
8266 | return resultobj; | |
8267 | fail: | |
8268 | return NULL; | |
8269 | } | |
8270 | ||
8271 | ||
c32bde28 | 8272 | static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8273 | PyObject *resultobj; |
8274 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8275 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
8276 | int arg3 = (int) -1 ; | |
8277 | PyObject * obj0 = 0 ; | |
8278 | PyObject * obj1 = 0 ; | |
994141e6 | 8279 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8280 | char *kwnames[] = { |
8281 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
8282 | }; | |
8283 | ||
994141e6 | 8284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8287 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
8288 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 8289 | if (obj2) { |
093d3ff1 RD |
8290 | { |
8291 | arg3 = (int)(SWIG_As_int(obj2)); | |
8292 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8293 | } | |
994141e6 | 8294 | } |
d14a1e28 RD |
8295 | { |
8296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8297 | (arg1)->SetOwner(arg2,arg3); | |
8298 | ||
8299 | wxPyEndAllowThreads(__tstate); | |
8300 | if (PyErr_Occurred()) SWIG_fail; | |
8301 | } | |
8302 | Py_INCREF(Py_None); resultobj = Py_None; | |
8303 | return resultobj; | |
8304 | fail: | |
8305 | return NULL; | |
8306 | } | |
8307 | ||
8308 | ||
c32bde28 | 8309 | static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
1c0f361b RD |
8310 | PyObject *resultobj; |
8311 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8312 | wxEvtHandler *result; | |
8313 | PyObject * obj0 = 0 ; | |
8314 | char *kwnames[] = { | |
8315 | (char *) "self", NULL | |
8316 | }; | |
8317 | ||
8318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8319 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8320 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1c0f361b RD |
8321 | { |
8322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8323 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
8324 | ||
8325 | wxPyEndAllowThreads(__tstate); | |
8326 | if (PyErr_Occurred()) SWIG_fail; | |
8327 | } | |
8328 | { | |
412d302d | 8329 | resultobj = wxPyMake_wxObject(result, 0); |
1c0f361b RD |
8330 | } |
8331 | return resultobj; | |
8332 | fail: | |
8333 | return NULL; | |
8334 | } | |
8335 | ||
8336 | ||
c32bde28 | 8337 | static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8338 | PyObject *resultobj; |
8339 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8340 | int arg2 = (int) -1 ; | |
ae8162c8 | 8341 | bool arg3 = (bool) false ; |
d14a1e28 RD |
8342 | bool result; |
8343 | PyObject * obj0 = 0 ; | |
994141e6 | 8344 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8345 | PyObject * obj2 = 0 ; |
8346 | char *kwnames[] = { | |
8347 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
8348 | }; | |
8349 | ||
994141e6 | 8350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 8353 | if (obj1) { |
093d3ff1 RD |
8354 | { |
8355 | arg2 = (int)(SWIG_As_int(obj1)); | |
8356 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8357 | } | |
994141e6 | 8358 | } |
d14a1e28 | 8359 | if (obj2) { |
093d3ff1 RD |
8360 | { |
8361 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8362 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8363 | } | |
d14a1e28 RD |
8364 | } |
8365 | { | |
8366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8367 | result = (bool)(arg1)->Start(arg2,arg3); | |
8368 | ||
8369 | wxPyEndAllowThreads(__tstate); | |
8370 | if (PyErr_Occurred()) SWIG_fail; | |
8371 | } | |
4f89f6a3 RD |
8372 | { |
8373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8374 | } | |
d14a1e28 RD |
8375 | return resultobj; |
8376 | fail: | |
8377 | return NULL; | |
8378 | } | |
8379 | ||
8380 | ||
c32bde28 | 8381 | static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8382 | PyObject *resultobj; |
8383 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8384 | PyObject * obj0 = 0 ; | |
8385 | char *kwnames[] = { | |
8386 | (char *) "self", NULL | |
8387 | }; | |
8388 | ||
8389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8392 | { |
8393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8394 | (arg1)->Stop(); | |
8395 | ||
8396 | wxPyEndAllowThreads(__tstate); | |
8397 | if (PyErr_Occurred()) SWIG_fail; | |
8398 | } | |
8399 | Py_INCREF(Py_None); resultobj = Py_None; | |
8400 | return resultobj; | |
8401 | fail: | |
8402 | return NULL; | |
8403 | } | |
8404 | ||
8405 | ||
c32bde28 | 8406 | static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8407 | PyObject *resultobj; |
8408 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8409 | bool result; | |
8410 | PyObject * obj0 = 0 ; | |
8411 | char *kwnames[] = { | |
8412 | (char *) "self", NULL | |
8413 | }; | |
8414 | ||
8415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8418 | { |
8419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8420 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
8421 | ||
8422 | wxPyEndAllowThreads(__tstate); | |
8423 | if (PyErr_Occurred()) SWIG_fail; | |
8424 | } | |
4f89f6a3 RD |
8425 | { |
8426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8427 | } | |
d14a1e28 RD |
8428 | return resultobj; |
8429 | fail: | |
8430 | return NULL; | |
8431 | } | |
8432 | ||
8433 | ||
c32bde28 | 8434 | static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8435 | PyObject *resultobj; |
8436 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8437 | int result; | |
8438 | PyObject * obj0 = 0 ; | |
8439 | char *kwnames[] = { | |
8440 | (char *) "self", NULL | |
8441 | }; | |
8442 | ||
8443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8446 | { |
8447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8448 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
8449 | ||
8450 | wxPyEndAllowThreads(__tstate); | |
8451 | if (PyErr_Occurred()) SWIG_fail; | |
8452 | } | |
093d3ff1 RD |
8453 | { |
8454 | resultobj = SWIG_From_int((int)(result)); | |
8455 | } | |
d14a1e28 RD |
8456 | return resultobj; |
8457 | fail: | |
8458 | return NULL; | |
8459 | } | |
8460 | ||
8461 | ||
c32bde28 | 8462 | static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8463 | PyObject *resultobj; |
8464 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8465 | bool result; | |
8466 | PyObject * obj0 = 0 ; | |
8467 | char *kwnames[] = { | |
8468 | (char *) "self", NULL | |
8469 | }; | |
8470 | ||
8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8474 | { |
8475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8476 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
8477 | ||
8478 | wxPyEndAllowThreads(__tstate); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
4f89f6a3 RD |
8481 | { |
8482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8483 | } | |
d14a1e28 RD |
8484 | return resultobj; |
8485 | fail: | |
8486 | return NULL; | |
8487 | } | |
8488 | ||
8489 | ||
c32bde28 | 8490 | static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
cc6dd355 RD |
8491 | PyObject *resultobj; |
8492 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
8493 | int result; | |
8494 | PyObject * obj0 = 0 ; | |
8495 | char *kwnames[] = { | |
8496 | (char *) "self", NULL | |
8497 | }; | |
8498 | ||
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8500 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTimer, SWIG_POINTER_EXCEPTION | 0); |
8501 | if (SWIG_arg_fail(1)) SWIG_fail; | |
cc6dd355 RD |
8502 | { |
8503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8504 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
8505 | ||
8506 | wxPyEndAllowThreads(__tstate); | |
8507 | if (PyErr_Occurred()) SWIG_fail; | |
8508 | } | |
093d3ff1 RD |
8509 | { |
8510 | resultobj = SWIG_From_int((int)(result)); | |
8511 | } | |
cc6dd355 RD |
8512 | return resultobj; |
8513 | fail: | |
8514 | return NULL; | |
8515 | } | |
8516 | ||
8517 | ||
c32bde28 | 8518 | static PyObject * Timer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8519 | PyObject *obj; |
8520 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8521 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
8522 | Py_INCREF(obj); | |
8523 | return Py_BuildValue((char *)""); | |
8524 | } | |
c32bde28 | 8525 | static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8526 | PyObject *resultobj; |
8527 | int arg1 = (int) 0 ; | |
8528 | int arg2 = (int) 0 ; | |
8529 | wxTimerEvent *result; | |
994141e6 RD |
8530 | PyObject * obj0 = 0 ; |
8531 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8532 | char *kwnames[] = { |
8533 | (char *) "timerid",(char *) "interval", NULL | |
8534 | }; | |
8535 | ||
994141e6 RD |
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; |
8537 | if (obj0) { | |
093d3ff1 RD |
8538 | { |
8539 | arg1 = (int)(SWIG_As_int(obj0)); | |
8540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8541 | } | |
994141e6 RD |
8542 | } |
8543 | if (obj1) { | |
093d3ff1 RD |
8544 | { |
8545 | arg2 = (int)(SWIG_As_int(obj1)); | |
8546 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8547 | } | |
994141e6 | 8548 | } |
d14a1e28 RD |
8549 | { |
8550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8551 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
8552 | ||
8553 | wxPyEndAllowThreads(__tstate); | |
8554 | if (PyErr_Occurred()) SWIG_fail; | |
8555 | } | |
15afbcd0 | 8556 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); |
d14a1e28 RD |
8557 | return resultobj; |
8558 | fail: | |
8559 | return NULL; | |
8560 | } | |
8561 | ||
8562 | ||
c32bde28 | 8563 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8564 | PyObject *resultobj; |
8565 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
8566 | int result; | |
8567 | PyObject * obj0 = 0 ; | |
8568 | char *kwnames[] = { | |
8569 | (char *) "self", NULL | |
8570 | }; | |
8571 | ||
8572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8573 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerEvent, SWIG_POINTER_EXCEPTION | 0); |
8574 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8575 | { |
8576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8577 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
8578 | ||
8579 | wxPyEndAllowThreads(__tstate); | |
8580 | if (PyErr_Occurred()) SWIG_fail; | |
8581 | } | |
093d3ff1 RD |
8582 | { |
8583 | resultobj = SWIG_From_int((int)(result)); | |
8584 | } | |
d14a1e28 RD |
8585 | return resultobj; |
8586 | fail: | |
8587 | return NULL; | |
8588 | } | |
8589 | ||
8590 | ||
c32bde28 | 8591 | static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8592 | PyObject *obj; |
8593 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8594 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
8595 | Py_INCREF(obj); | |
8596 | return Py_BuildValue((char *)""); | |
8597 | } | |
c32bde28 | 8598 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
8599 | PyObject *resultobj; |
8600 | wxTimer *arg1 = 0 ; | |
8601 | wxTimerRunner *result; | |
8602 | PyObject * obj0 = 0 ; | |
8603 | ||
8604 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
093d3ff1 RD |
8605 | { |
8606 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0); | |
8607 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8608 | if (arg1 == NULL) { | |
8609 | SWIG_null_ref("wxTimer"); | |
8610 | } | |
8611 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8612 | } |
8613 | { | |
e3b71cb8 | 8614 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8616 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
8617 | ||
8618 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8619 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8620 | } |
15afbcd0 | 8621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
8622 | return resultobj; |
8623 | fail: | |
8624 | return NULL; | |
8625 | } | |
8626 | ||
8627 | ||
c32bde28 | 8628 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
8629 | PyObject *resultobj; |
8630 | wxTimer *arg1 = 0 ; | |
8631 | int arg2 ; | |
ae8162c8 | 8632 | bool arg3 = (bool) false ; |
d14a1e28 RD |
8633 | wxTimerRunner *result; |
8634 | PyObject * obj0 = 0 ; | |
994141e6 | 8635 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8636 | PyObject * obj2 = 0 ; |
8637 | ||
994141e6 | 8638 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8639 | { |
8640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0); | |
8641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8642 | if (arg1 == NULL) { | |
8643 | SWIG_null_ref("wxTimer"); | |
8644 | } | |
8645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8646 | } | |
8647 | { | |
8648 | arg2 = (int)(SWIG_As_int(obj1)); | |
8649 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8650 | } | |
d14a1e28 | 8651 | if (obj2) { |
093d3ff1 RD |
8652 | { |
8653 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8654 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8655 | } | |
d14a1e28 RD |
8656 | } |
8657 | { | |
e3b71cb8 | 8658 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8660 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
8661 | ||
8662 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8663 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8664 | } |
15afbcd0 | 8665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
8666 | return resultobj; |
8667 | fail: | |
8668 | return NULL; | |
8669 | } | |
8670 | ||
8671 | ||
8672 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
8673 | int argc; | |
8674 | PyObject *argv[4]; | |
8675 | int ii; | |
8676 | ||
8677 | argc = PyObject_Length(args); | |
8678 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
8679 | argv[ii] = PyTuple_GetItem(args,ii); | |
8680 | } | |
8681 | if (argc == 1) { | |
8682 | int _v; | |
8683 | { | |
093d3ff1 | 8684 | void *ptr = 0; |
15afbcd0 | 8685 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
8686 | _v = 0; |
8687 | PyErr_Clear(); | |
8688 | } else { | |
093d3ff1 | 8689 | _v = (ptr != 0); |
d14a1e28 RD |
8690 | } |
8691 | } | |
8692 | if (_v) { | |
8693 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
8694 | } | |
8695 | } | |
8696 | if ((argc >= 2) && (argc <= 3)) { | |
8697 | int _v; | |
8698 | { | |
093d3ff1 | 8699 | void *ptr = 0; |
15afbcd0 | 8700 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
8701 | _v = 0; |
8702 | PyErr_Clear(); | |
8703 | } else { | |
093d3ff1 | 8704 | _v = (ptr != 0); |
d14a1e28 RD |
8705 | } |
8706 | } | |
8707 | if (_v) { | |
c32bde28 | 8708 | _v = SWIG_Check_int(argv[1]); |
d14a1e28 RD |
8709 | if (_v) { |
8710 | if (argc <= 2) { | |
8711 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
8712 | } | |
c32bde28 | 8713 | _v = SWIG_Check_bool(argv[2]); |
d14a1e28 RD |
8714 | if (_v) { |
8715 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
8716 | } | |
8717 | } | |
8718 | } | |
8719 | } | |
8720 | ||
093d3ff1 | 8721 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_TimerRunner'"); |
d14a1e28 RD |
8722 | return NULL; |
8723 | } | |
8724 | ||
8725 | ||
c32bde28 | 8726 | static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8727 | PyObject *resultobj; |
8728 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
8729 | PyObject * obj0 = 0 ; | |
8730 | char *kwnames[] = { | |
8731 | (char *) "self", NULL | |
8732 | }; | |
8733 | ||
8734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0); |
8736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8737 | { |
8738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8739 | delete arg1; | |
8740 | ||
8741 | wxPyEndAllowThreads(__tstate); | |
8742 | if (PyErr_Occurred()) SWIG_fail; | |
8743 | } | |
8744 | Py_INCREF(Py_None); resultobj = Py_None; | |
8745 | return resultobj; | |
8746 | fail: | |
8747 | return NULL; | |
8748 | } | |
8749 | ||
8750 | ||
c32bde28 | 8751 | static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8752 | PyObject *resultobj; |
8753 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
8754 | int arg2 ; | |
ae8162c8 | 8755 | bool arg3 = (bool) false ; |
d14a1e28 | 8756 | PyObject * obj0 = 0 ; |
994141e6 | 8757 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8758 | PyObject * obj2 = 0 ; |
8759 | char *kwnames[] = { | |
8760 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
8761 | }; | |
8762 | ||
994141e6 | 8763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8764 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_EXCEPTION | 0); |
8765 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8766 | { | |
8767 | arg2 = (int)(SWIG_As_int(obj1)); | |
8768 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8769 | } | |
d14a1e28 | 8770 | if (obj2) { |
093d3ff1 RD |
8771 | { |
8772 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8773 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8774 | } | |
d14a1e28 RD |
8775 | } |
8776 | { | |
8777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8778 | (arg1)->Start(arg2,arg3); | |
8779 | ||
8780 | wxPyEndAllowThreads(__tstate); | |
8781 | if (PyErr_Occurred()) SWIG_fail; | |
8782 | } | |
8783 | Py_INCREF(Py_None); resultobj = Py_None; | |
8784 | return resultobj; | |
8785 | fail: | |
8786 | return NULL; | |
8787 | } | |
8788 | ||
8789 | ||
c32bde28 | 8790 | static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8791 | PyObject *obj; |
8792 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8793 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
8794 | Py_INCREF(obj); | |
8795 | return Py_BuildValue((char *)""); | |
8796 | } | |
c32bde28 | 8797 | static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8798 | PyObject *resultobj; |
8799 | wxLog *result; | |
8800 | char *kwnames[] = { | |
8801 | NULL | |
8802 | }; | |
8803 | ||
8804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
8805 | { | |
8806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8807 | result = (wxLog *)new wxLog(); | |
8808 | ||
8809 | wxPyEndAllowThreads(__tstate); | |
8810 | if (PyErr_Occurred()) SWIG_fail; | |
8811 | } | |
15afbcd0 | 8812 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); |
d14a1e28 RD |
8813 | return resultobj; |
8814 | fail: | |
8815 | return NULL; | |
8816 | } | |
8817 | ||
8818 | ||
c32bde28 | 8819 | static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8820 | PyObject *resultobj; |
8821 | bool result; | |
8822 | char *kwnames[] = { | |
8823 | NULL | |
8824 | }; | |
8825 | ||
8826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
8827 | { | |
8828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8829 | result = (bool)wxLog::IsEnabled(); | |
8830 | ||
8831 | wxPyEndAllowThreads(__tstate); | |
8832 | if (PyErr_Occurred()) SWIG_fail; | |
8833 | } | |
4f89f6a3 RD |
8834 | { |
8835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8836 | } | |
d14a1e28 RD |
8837 | return resultobj; |
8838 | fail: | |
8839 | return NULL; | |
8840 | } | |
8841 | ||
8842 | ||
c32bde28 | 8843 | static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8844 | PyObject *resultobj; |
ae8162c8 | 8845 | bool arg1 = (bool) true ; |
d14a1e28 RD |
8846 | bool result; |
8847 | PyObject * obj0 = 0 ; | |
8848 | char *kwnames[] = { | |
8849 | (char *) "doIt", NULL | |
8850 | }; | |
8851 | ||
8852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
8853 | if (obj0) { | |
093d3ff1 RD |
8854 | { |
8855 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
8856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8857 | } | |
d14a1e28 RD |
8858 | } |
8859 | { | |
8860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8861 | result = (bool)wxLog::EnableLogging(arg1); | |
8862 | ||
8863 | wxPyEndAllowThreads(__tstate); | |
8864 | if (PyErr_Occurred()) SWIG_fail; | |
8865 | } | |
4f89f6a3 RD |
8866 | { |
8867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8868 | } | |
d14a1e28 RD |
8869 | return resultobj; |
8870 | fail: | |
8871 | return NULL; | |
8872 | } | |
8873 | ||
8874 | ||
c32bde28 | 8875 | static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8876 | PyObject *resultobj; |
8877 | wxLogLevel arg1 ; | |
8878 | wxChar *arg2 = (wxChar *) 0 ; | |
8879 | time_t arg3 ; | |
8880 | PyObject * obj0 = 0 ; | |
8881 | PyObject * obj1 = 0 ; | |
8882 | PyObject * obj2 = 0 ; | |
8883 | char *kwnames[] = { | |
8884 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
8885 | }; | |
8886 | ||
8887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8888 | { |
8889 | arg1 = (wxLogLevel)(SWIG_As_unsigned_SS_long(obj0)); | |
8890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8891 | } | |
8892 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); | |
8893 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8894 | { | |
8895 | arg3 = (time_t)(SWIG_As_unsigned_SS_int(obj2)); | |
8896 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8897 | } | |
d14a1e28 RD |
8898 | { |
8899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8900 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
8901 | ||
8902 | wxPyEndAllowThreads(__tstate); | |
8903 | if (PyErr_Occurred()) SWIG_fail; | |
8904 | } | |
8905 | Py_INCREF(Py_None); resultobj = Py_None; | |
8906 | return resultobj; | |
8907 | fail: | |
8908 | return NULL; | |
8909 | } | |
8910 | ||
8911 | ||
c32bde28 | 8912 | static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8913 | PyObject *resultobj; |
8914 | wxLog *arg1 = (wxLog *) 0 ; | |
8915 | PyObject * obj0 = 0 ; | |
8916 | char *kwnames[] = { | |
8917 | (char *) "self", NULL | |
8918 | }; | |
8919 | ||
8920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8921 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
8922 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8923 | { |
8924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8925 | (arg1)->Flush(); | |
8926 | ||
8927 | wxPyEndAllowThreads(__tstate); | |
8928 | if (PyErr_Occurred()) SWIG_fail; | |
8929 | } | |
8930 | Py_INCREF(Py_None); resultobj = Py_None; | |
8931 | return resultobj; | |
8932 | fail: | |
8933 | return NULL; | |
8934 | } | |
8935 | ||
8936 | ||
c32bde28 | 8937 | static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8938 | PyObject *resultobj; |
8939 | char *kwnames[] = { | |
8940 | NULL | |
8941 | }; | |
8942 | ||
8943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
8944 | { | |
8945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8946 | wxLog::FlushActive(); | |
8947 | ||
8948 | wxPyEndAllowThreads(__tstate); | |
8949 | if (PyErr_Occurred()) SWIG_fail; | |
8950 | } | |
8951 | Py_INCREF(Py_None); resultobj = Py_None; | |
8952 | return resultobj; | |
8953 | fail: | |
8954 | return NULL; | |
8955 | } | |
8956 | ||
8957 | ||
c32bde28 | 8958 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8959 | PyObject *resultobj; |
8960 | wxLog *result; | |
8961 | char *kwnames[] = { | |
8962 | NULL | |
8963 | }; | |
8964 | ||
8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
8966 | { | |
8967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8968 | result = (wxLog *)wxLog::GetActiveTarget(); | |
8969 | ||
8970 | wxPyEndAllowThreads(__tstate); | |
8971 | if (PyErr_Occurred()) SWIG_fail; | |
8972 | } | |
15afbcd0 | 8973 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
8974 | return resultobj; |
8975 | fail: | |
8976 | return NULL; | |
8977 | } | |
8978 | ||
8979 | ||
c32bde28 | 8980 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8981 | PyObject *resultobj; |
8982 | wxLog *arg1 = (wxLog *) 0 ; | |
8983 | wxLog *result; | |
8984 | PyObject * obj0 = 0 ; | |
8985 | char *kwnames[] = { | |
8986 | (char *) "pLogger", NULL | |
8987 | }; | |
8988 | ||
8989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
8991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8992 | { |
8993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8994 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
8995 | ||
8996 | wxPyEndAllowThreads(__tstate); | |
8997 | if (PyErr_Occurred()) SWIG_fail; | |
8998 | } | |
15afbcd0 | 8999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
9000 | return resultobj; |
9001 | fail: | |
9002 | return NULL; | |
9003 | } | |
9004 | ||
9005 | ||
c32bde28 | 9006 | static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9007 | PyObject *resultobj; |
9008 | char *kwnames[] = { | |
9009 | NULL | |
9010 | }; | |
9011 | ||
9012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
9013 | { | |
9014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9015 | wxLog::Suspend(); | |
9016 | ||
9017 | wxPyEndAllowThreads(__tstate); | |
9018 | if (PyErr_Occurred()) SWIG_fail; | |
9019 | } | |
9020 | Py_INCREF(Py_None); resultobj = Py_None; | |
9021 | return resultobj; | |
9022 | fail: | |
9023 | return NULL; | |
9024 | } | |
9025 | ||
9026 | ||
c32bde28 | 9027 | static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9028 | PyObject *resultobj; |
9029 | char *kwnames[] = { | |
9030 | NULL | |
9031 | }; | |
9032 | ||
9033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
9034 | { | |
9035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9036 | wxLog::Resume(); | |
9037 | ||
9038 | wxPyEndAllowThreads(__tstate); | |
9039 | if (PyErr_Occurred()) SWIG_fail; | |
9040 | } | |
9041 | Py_INCREF(Py_None); resultobj = Py_None; | |
9042 | return resultobj; | |
9043 | fail: | |
9044 | return NULL; | |
9045 | } | |
9046 | ||
9047 | ||
c32bde28 | 9048 | static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 9049 | PyObject *resultobj; |
ae8162c8 | 9050 | bool arg1 = (bool) true ; |
d14a1e28 RD |
9051 | PyObject * obj0 = 0 ; |
9052 | char *kwnames[] = { | |
9053 | (char *) "bVerbose", NULL | |
9054 | }; | |
9055 | ||
9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
9057 | if (obj0) { | |
093d3ff1 RD |
9058 | { |
9059 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
9060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9061 | } | |
d14a1e28 RD |
9062 | } |
9063 | { | |
9064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9065 | wxLog::SetVerbose(arg1); | |
9066 | ||
9067 | wxPyEndAllowThreads(__tstate); | |
9068 | if (PyErr_Occurred()) SWIG_fail; | |
9069 | } | |
9070 | Py_INCREF(Py_None); resultobj = Py_None; | |
9071 | return resultobj; | |
9072 | fail: | |
9073 | return NULL; | |
9074 | } | |
9075 | ||
9076 | ||
c32bde28 | 9077 | static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9078 | PyObject *resultobj; |
9079 | wxLogLevel arg1 ; | |
9080 | PyObject * obj0 = 0 ; | |
9081 | char *kwnames[] = { | |
9082 | (char *) "logLevel", NULL | |
9083 | }; | |
9084 | ||
9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9086 | { |
9087 | arg1 = (wxLogLevel)(SWIG_As_unsigned_SS_long(obj0)); | |
9088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9089 | } | |
d14a1e28 RD |
9090 | { |
9091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9092 | wxLog::SetLogLevel(arg1); | |
9093 | ||
9094 | wxPyEndAllowThreads(__tstate); | |
9095 | if (PyErr_Occurred()) SWIG_fail; | |
9096 | } | |
9097 | Py_INCREF(Py_None); resultobj = Py_None; | |
9098 | return resultobj; | |
9099 | fail: | |
9100 | return NULL; | |
9101 | } | |
9102 | ||
9103 | ||
c32bde28 | 9104 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9105 | PyObject *resultobj; |
9106 | char *kwnames[] = { | |
9107 | NULL | |
9108 | }; | |
9109 | ||
9110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
9111 | { | |
9112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9113 | wxLog::DontCreateOnDemand(); | |
9114 | ||
9115 | wxPyEndAllowThreads(__tstate); | |
9116 | if (PyErr_Occurred()) SWIG_fail; | |
9117 | } | |
9118 | Py_INCREF(Py_None); resultobj = Py_None; | |
9119 | return resultobj; | |
9120 | fail: | |
9121 | return NULL; | |
9122 | } | |
9123 | ||
9124 | ||
c32bde28 | 9125 | static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9126 | PyObject *resultobj; |
9127 | wxTraceMask arg1 ; | |
9128 | PyObject * obj0 = 0 ; | |
9129 | char *kwnames[] = { | |
9130 | (char *) "ulMask", NULL | |
9131 | }; | |
9132 | ||
9133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9134 | { |
9135 | arg1 = (wxTraceMask)(SWIG_As_unsigned_SS_long(obj0)); | |
9136 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9137 | } | |
d14a1e28 RD |
9138 | { |
9139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9140 | wxLog::SetTraceMask(arg1); | |
9141 | ||
9142 | wxPyEndAllowThreads(__tstate); | |
9143 | if (PyErr_Occurred()) SWIG_fail; | |
9144 | } | |
9145 | Py_INCREF(Py_None); resultobj = Py_None; | |
9146 | return resultobj; | |
9147 | fail: | |
9148 | return NULL; | |
9149 | } | |
9150 | ||
9151 | ||
c32bde28 | 9152 | static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9153 | PyObject *resultobj; |
9154 | wxString *arg1 = 0 ; | |
ae8162c8 | 9155 | bool temp1 = false ; |
d14a1e28 RD |
9156 | PyObject * obj0 = 0 ; |
9157 | char *kwnames[] = { | |
9158 | (char *) "str", NULL | |
9159 | }; | |
9160 | ||
9161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
9162 | { | |
9163 | arg1 = wxString_in_helper(obj0); | |
9164 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9165 | temp1 = true; |
d14a1e28 RD |
9166 | } |
9167 | { | |
9168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9169 | wxLog::AddTraceMask((wxString const &)*arg1); | |
9170 | ||
9171 | wxPyEndAllowThreads(__tstate); | |
9172 | if (PyErr_Occurred()) SWIG_fail; | |
9173 | } | |
9174 | Py_INCREF(Py_None); resultobj = Py_None; | |
9175 | { | |
9176 | if (temp1) | |
9177 | delete arg1; | |
9178 | } | |
9179 | return resultobj; | |
9180 | fail: | |
9181 | { | |
9182 | if (temp1) | |
9183 | delete arg1; | |
9184 | } | |
9185 | return NULL; | |
9186 | } | |
9187 | ||
9188 | ||
c32bde28 | 9189 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9190 | PyObject *resultobj; |
9191 | wxString *arg1 = 0 ; | |
ae8162c8 | 9192 | bool temp1 = false ; |
d14a1e28 RD |
9193 | PyObject * obj0 = 0 ; |
9194 | char *kwnames[] = { | |
9195 | (char *) "str", NULL | |
9196 | }; | |
9197 | ||
9198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
9199 | { | |
9200 | arg1 = wxString_in_helper(obj0); | |
9201 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9202 | temp1 = true; |
d14a1e28 RD |
9203 | } |
9204 | { | |
9205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9206 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
9207 | ||
9208 | wxPyEndAllowThreads(__tstate); | |
9209 | if (PyErr_Occurred()) SWIG_fail; | |
9210 | } | |
9211 | Py_INCREF(Py_None); resultobj = Py_None; | |
9212 | { | |
9213 | if (temp1) | |
9214 | delete arg1; | |
9215 | } | |
9216 | return resultobj; | |
9217 | fail: | |
9218 | { | |
9219 | if (temp1) | |
9220 | delete arg1; | |
9221 | } | |
9222 | return NULL; | |
9223 | } | |
9224 | ||
9225 | ||
c32bde28 | 9226 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9227 | PyObject *resultobj; |
9228 | char *kwnames[] = { | |
9229 | NULL | |
9230 | }; | |
9231 | ||
9232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
9233 | { | |
9234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9235 | wxLog::ClearTraceMasks(); | |
9236 | ||
9237 | wxPyEndAllowThreads(__tstate); | |
9238 | if (PyErr_Occurred()) SWIG_fail; | |
9239 | } | |
9240 | Py_INCREF(Py_None); resultobj = Py_None; | |
9241 | return resultobj; | |
9242 | fail: | |
9243 | return NULL; | |
9244 | } | |
9245 | ||
9246 | ||
c32bde28 | 9247 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9248 | PyObject *resultobj; |
9249 | wxArrayString *result; | |
9250 | char *kwnames[] = { | |
9251 | NULL | |
9252 | }; | |
9253 | ||
9254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
9255 | { | |
9256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9257 | { | |
9258 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
9259 | result = (wxArrayString *) &_result_ref; | |
9260 | } | |
9261 | ||
9262 | wxPyEndAllowThreads(__tstate); | |
9263 | if (PyErr_Occurred()) SWIG_fail; | |
9264 | } | |
9265 | { | |
9266 | resultobj = wxArrayString2PyList_helper(*result); | |
9267 | } | |
9268 | return resultobj; | |
9269 | fail: | |
9270 | return NULL; | |
9271 | } | |
9272 | ||
9273 | ||
c32bde28 | 9274 | static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9275 | PyObject *resultobj; |
9276 | wxChar *arg1 = (wxChar *) 0 ; | |
9277 | PyObject * obj0 = 0 ; | |
9278 | char *kwnames[] = { | |
9279 | (char *) "ts", NULL | |
9280 | }; | |
9281 | ||
9282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9283 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); |
9284 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9285 | { |
9286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9287 | wxLog::SetTimestamp((wxChar const *)arg1); | |
9288 | ||
9289 | wxPyEndAllowThreads(__tstate); | |
9290 | if (PyErr_Occurred()) SWIG_fail; | |
9291 | } | |
9292 | Py_INCREF(Py_None); resultobj = Py_None; | |
9293 | return resultobj; | |
9294 | fail: | |
9295 | return NULL; | |
9296 | } | |
9297 | ||
9298 | ||
c32bde28 | 9299 | static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9300 | PyObject *resultobj; |
9301 | bool result; | |
9302 | char *kwnames[] = { | |
9303 | NULL | |
9304 | }; | |
9305 | ||
9306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
9307 | { | |
9308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9309 | result = (bool)wxLog::GetVerbose(); | |
9310 | ||
9311 | wxPyEndAllowThreads(__tstate); | |
9312 | if (PyErr_Occurred()) SWIG_fail; | |
9313 | } | |
4f89f6a3 RD |
9314 | { |
9315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9316 | } | |
d14a1e28 RD |
9317 | return resultobj; |
9318 | fail: | |
9319 | return NULL; | |
9320 | } | |
9321 | ||
9322 | ||
c32bde28 | 9323 | static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9324 | PyObject *resultobj; |
9325 | wxTraceMask result; | |
9326 | char *kwnames[] = { | |
9327 | NULL | |
9328 | }; | |
9329 | ||
9330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
9331 | { | |
9332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9333 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
9334 | ||
9335 | wxPyEndAllowThreads(__tstate); | |
9336 | if (PyErr_Occurred()) SWIG_fail; | |
9337 | } | |
093d3ff1 RD |
9338 | { |
9339 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
9340 | } | |
d14a1e28 RD |
9341 | return resultobj; |
9342 | fail: | |
9343 | return NULL; | |
9344 | } | |
9345 | ||
9346 | ||
c32bde28 | 9347 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9348 | PyObject *resultobj; |
9349 | wxChar *arg1 = (wxChar *) 0 ; | |
9350 | bool result; | |
9351 | PyObject * obj0 = 0 ; | |
9352 | char *kwnames[] = { | |
9353 | (char *) "mask", NULL | |
9354 | }; | |
9355 | ||
9356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9357 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChar, SWIG_POINTER_EXCEPTION | 0); |
9358 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9359 | { |
9360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9361 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
9362 | ||
9363 | wxPyEndAllowThreads(__tstate); | |
9364 | if (PyErr_Occurred()) SWIG_fail; | |
9365 | } | |
4f89f6a3 RD |
9366 | { |
9367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9368 | } | |
d14a1e28 RD |
9369 | return resultobj; |
9370 | fail: | |
9371 | return NULL; | |
9372 | } | |
9373 | ||
9374 | ||
c32bde28 | 9375 | static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9376 | PyObject *resultobj; |
9377 | wxLogLevel result; | |
9378 | char *kwnames[] = { | |
9379 | NULL | |
9380 | }; | |
9381 | ||
9382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
9383 | { | |
9384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9385 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
9386 | ||
9387 | wxPyEndAllowThreads(__tstate); | |
9388 | if (PyErr_Occurred()) SWIG_fail; | |
9389 | } | |
093d3ff1 RD |
9390 | { |
9391 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
9392 | } | |
d14a1e28 RD |
9393 | return resultobj; |
9394 | fail: | |
9395 | return NULL; | |
9396 | } | |
9397 | ||
9398 | ||
c32bde28 | 9399 | static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9400 | PyObject *resultobj; |
9401 | wxChar *result; | |
9402 | char *kwnames[] = { | |
9403 | NULL | |
9404 | }; | |
9405 | ||
9406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
9407 | { | |
9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9409 | result = (wxChar *)wxLog::GetTimestamp(); | |
9410 | ||
9411 | wxPyEndAllowThreads(__tstate); | |
9412 | if (PyErr_Occurred()) SWIG_fail; | |
9413 | } | |
15afbcd0 | 9414 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); |
d14a1e28 RD |
9415 | return resultobj; |
9416 | fail: | |
9417 | return NULL; | |
9418 | } | |
9419 | ||
9420 | ||
c32bde28 | 9421 | static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9422 | PyObject *resultobj; |
9423 | wxString result; | |
9424 | char *kwnames[] = { | |
9425 | NULL | |
9426 | }; | |
9427 | ||
9428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
9429 | { | |
9430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9431 | result = Log_TimeStamp(); | |
9432 | ||
9433 | wxPyEndAllowThreads(__tstate); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | } | |
9436 | { | |
9437 | #if wxUSE_UNICODE | |
9438 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9439 | #else | |
9440 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9441 | #endif | |
9442 | } | |
9443 | return resultobj; | |
9444 | fail: | |
9445 | return NULL; | |
9446 | } | |
9447 | ||
9448 | ||
c32bde28 | 9449 | static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9450 | PyObject *resultobj; |
9451 | wxLog *arg1 = (wxLog *) 0 ; | |
9452 | PyObject * obj0 = 0 ; | |
9453 | char *kwnames[] = { | |
9454 | (char *) "self", NULL | |
9455 | }; | |
9456 | ||
9457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
9459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9460 | { |
9461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9462 | wxLog_Destroy(arg1); | |
9463 | ||
9464 | wxPyEndAllowThreads(__tstate); | |
9465 | if (PyErr_Occurred()) SWIG_fail; | |
9466 | } | |
9467 | Py_INCREF(Py_None); resultobj = Py_None; | |
9468 | return resultobj; | |
9469 | fail: | |
9470 | return NULL; | |
9471 | } | |
9472 | ||
9473 | ||
c32bde28 | 9474 | static PyObject * Log_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9475 | PyObject *obj; |
9476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9477 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
9478 | Py_INCREF(obj); | |
9479 | return Py_BuildValue((char *)""); | |
9480 | } | |
c32bde28 | 9481 | static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9482 | PyObject *resultobj; |
9483 | wxLogStderr *result; | |
9484 | char *kwnames[] = { | |
9485 | NULL | |
9486 | }; | |
9487 | ||
9488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
9489 | { | |
9490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9491 | result = (wxLogStderr *)new wxLogStderr(); | |
9492 | ||
9493 | wxPyEndAllowThreads(__tstate); | |
9494 | if (PyErr_Occurred()) SWIG_fail; | |
9495 | } | |
15afbcd0 | 9496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); |
d14a1e28 RD |
9497 | return resultobj; |
9498 | fail: | |
9499 | return NULL; | |
9500 | } | |
9501 | ||
9502 | ||
c32bde28 | 9503 | static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9504 | PyObject *obj; |
9505 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9506 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
9507 | Py_INCREF(obj); | |
9508 | return Py_BuildValue((char *)""); | |
9509 | } | |
c32bde28 | 9510 | static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9511 | PyObject *resultobj; |
9512 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9513 | wxLogTextCtrl *result; | |
9514 | PyObject * obj0 = 0 ; | |
9515 | char *kwnames[] = { | |
9516 | (char *) "pTextCtrl", NULL | |
9517 | }; | |
9518 | ||
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9522 | { |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9524 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
9525 | ||
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
15afbcd0 | 9529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); |
d14a1e28 RD |
9530 | return resultobj; |
9531 | fail: | |
9532 | return NULL; | |
9533 | } | |
9534 | ||
9535 | ||
c32bde28 | 9536 | static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9537 | PyObject *obj; |
9538 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9539 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
9540 | Py_INCREF(obj); | |
9541 | return Py_BuildValue((char *)""); | |
9542 | } | |
c32bde28 | 9543 | static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9544 | PyObject *resultobj; |
9545 | wxLogGui *result; | |
9546 | char *kwnames[] = { | |
9547 | NULL | |
9548 | }; | |
9549 | ||
9550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
9551 | { | |
9552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9553 | result = (wxLogGui *)new wxLogGui(); | |
9554 | ||
9555 | wxPyEndAllowThreads(__tstate); | |
9556 | if (PyErr_Occurred()) SWIG_fail; | |
9557 | } | |
15afbcd0 | 9558 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); |
d14a1e28 RD |
9559 | return resultobj; |
9560 | fail: | |
9561 | return NULL; | |
9562 | } | |
9563 | ||
9564 | ||
c32bde28 | 9565 | static PyObject * LogGui_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9566 | PyObject *obj; |
9567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9568 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
9569 | Py_INCREF(obj); | |
9570 | return Py_BuildValue((char *)""); | |
9571 | } | |
c32bde28 | 9572 | static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9573 | PyObject *resultobj; |
9574 | wxFrame *arg1 = (wxFrame *) 0 ; | |
9575 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
9576 | bool arg3 = (bool) true ; |
9577 | bool arg4 = (bool) true ; | |
d14a1e28 | 9578 | wxLogWindow *result; |
ae8162c8 | 9579 | bool temp2 = false ; |
d14a1e28 RD |
9580 | PyObject * obj0 = 0 ; |
9581 | PyObject * obj1 = 0 ; | |
9582 | PyObject * obj2 = 0 ; | |
9583 | PyObject * obj3 = 0 ; | |
9584 | char *kwnames[] = { | |
9585 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
9586 | }; | |
9587 | ||
9588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
9589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0); |
9590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9591 | { |
9592 | arg2 = wxString_in_helper(obj1); | |
9593 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9594 | temp2 = true; |
d14a1e28 RD |
9595 | } |
9596 | if (obj2) { | |
093d3ff1 RD |
9597 | { |
9598 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
9599 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9600 | } | |
d14a1e28 RD |
9601 | } |
9602 | if (obj3) { | |
093d3ff1 RD |
9603 | { |
9604 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
9605 | if (SWIG_arg_fail(4)) SWIG_fail; | |
9606 | } | |
d14a1e28 RD |
9607 | } |
9608 | { | |
9609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9610 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
9611 | ||
9612 | wxPyEndAllowThreads(__tstate); | |
9613 | if (PyErr_Occurred()) SWIG_fail; | |
9614 | } | |
15afbcd0 | 9615 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); |
d14a1e28 RD |
9616 | { |
9617 | if (temp2) | |
9618 | delete arg2; | |
9619 | } | |
9620 | return resultobj; | |
9621 | fail: | |
9622 | { | |
9623 | if (temp2) | |
9624 | delete arg2; | |
9625 | } | |
9626 | return NULL; | |
9627 | } | |
9628 | ||
9629 | ||
c32bde28 | 9630 | static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9631 | PyObject *resultobj; |
9632 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
ae8162c8 | 9633 | bool arg2 = (bool) true ; |
d14a1e28 RD |
9634 | PyObject * obj0 = 0 ; |
9635 | PyObject * obj1 = 0 ; | |
9636 | char *kwnames[] = { | |
9637 | (char *) "self",(char *) "bShow", NULL | |
9638 | }; | |
9639 | ||
9640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
9642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 9643 | if (obj1) { |
093d3ff1 RD |
9644 | { |
9645 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
9646 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9647 | } | |
d14a1e28 RD |
9648 | } |
9649 | { | |
9650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9651 | (arg1)->Show(arg2); | |
9652 | ||
9653 | wxPyEndAllowThreads(__tstate); | |
9654 | if (PyErr_Occurred()) SWIG_fail; | |
9655 | } | |
9656 | Py_INCREF(Py_None); resultobj = Py_None; | |
9657 | return resultobj; | |
9658 | fail: | |
9659 | return NULL; | |
9660 | } | |
9661 | ||
9662 | ||
c32bde28 | 9663 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9664 | PyObject *resultobj; |
9665 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
9666 | wxFrame *result; | |
9667 | PyObject * obj0 = 0 ; | |
9668 | char *kwnames[] = { | |
9669 | (char *) "self", NULL | |
9670 | }; | |
9671 | ||
9672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
9674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9675 | { |
9676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9677 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
9678 | ||
9679 | wxPyEndAllowThreads(__tstate); | |
9680 | if (PyErr_Occurred()) SWIG_fail; | |
9681 | } | |
9682 | { | |
412d302d | 9683 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
9684 | } |
9685 | return resultobj; | |
9686 | fail: | |
9687 | return NULL; | |
9688 | } | |
9689 | ||
9690 | ||
c32bde28 | 9691 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9692 | PyObject *resultobj; |
9693 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
9694 | wxLog *result; | |
9695 | PyObject * obj0 = 0 ; | |
9696 | char *kwnames[] = { | |
9697 | (char *) "self", NULL | |
9698 | }; | |
9699 | ||
9700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9701 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
9702 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9703 | { |
9704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9705 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
9706 | ||
9707 | wxPyEndAllowThreads(__tstate); | |
9708 | if (PyErr_Occurred()) SWIG_fail; | |
9709 | } | |
15afbcd0 | 9710 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
9711 | return resultobj; |
9712 | fail: | |
9713 | return NULL; | |
9714 | } | |
9715 | ||
9716 | ||
c32bde28 | 9717 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9718 | PyObject *resultobj; |
9719 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
9720 | bool result; | |
9721 | PyObject * obj0 = 0 ; | |
9722 | char *kwnames[] = { | |
9723 | (char *) "self", NULL | |
9724 | }; | |
9725 | ||
9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
9728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9729 | { |
9730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9731 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
9732 | ||
9733 | wxPyEndAllowThreads(__tstate); | |
9734 | if (PyErr_Occurred()) SWIG_fail; | |
9735 | } | |
4f89f6a3 RD |
9736 | { |
9737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9738 | } | |
d14a1e28 RD |
9739 | return resultobj; |
9740 | fail: | |
9741 | return NULL; | |
9742 | } | |
9743 | ||
9744 | ||
c32bde28 | 9745 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9746 | PyObject *resultobj; |
9747 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
9748 | bool arg2 ; | |
9749 | PyObject * obj0 = 0 ; | |
9750 | PyObject * obj1 = 0 ; | |
9751 | char *kwnames[] = { | |
9752 | (char *) "self",(char *) "bDoPass", NULL | |
9753 | }; | |
9754 | ||
9755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogWindow, SWIG_POINTER_EXCEPTION | 0); |
9757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9758 | { | |
9759 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
9760 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9761 | } | |
d14a1e28 RD |
9762 | { |
9763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9764 | (arg1)->PassMessages(arg2); | |
9765 | ||
9766 | wxPyEndAllowThreads(__tstate); | |
9767 | if (PyErr_Occurred()) SWIG_fail; | |
9768 | } | |
9769 | Py_INCREF(Py_None); resultobj = Py_None; | |
9770 | return resultobj; | |
9771 | fail: | |
9772 | return NULL; | |
9773 | } | |
9774 | ||
9775 | ||
c32bde28 | 9776 | static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9777 | PyObject *obj; |
9778 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9779 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
9780 | Py_INCREF(obj); | |
9781 | return Py_BuildValue((char *)""); | |
9782 | } | |
c32bde28 | 9783 | static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9784 | PyObject *resultobj; |
9785 | wxLog *arg1 = (wxLog *) 0 ; | |
9786 | wxLogChain *result; | |
9787 | PyObject * obj0 = 0 ; | |
9788 | char *kwnames[] = { | |
9789 | (char *) "logger", NULL | |
9790 | }; | |
9791 | ||
9792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9793 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); |
9794 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9795 | { |
9796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9797 | result = (wxLogChain *)new wxLogChain(arg1); | |
9798 | ||
9799 | wxPyEndAllowThreads(__tstate); | |
9800 | if (PyErr_Occurred()) SWIG_fail; | |
9801 | } | |
15afbcd0 | 9802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); |
d14a1e28 RD |
9803 | return resultobj; |
9804 | fail: | |
9805 | return NULL; | |
9806 | } | |
9807 | ||
9808 | ||
c32bde28 | 9809 | static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9810 | PyObject *resultobj; |
9811 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
9812 | wxLog *arg2 = (wxLog *) 0 ; | |
9813 | PyObject * obj0 = 0 ; | |
9814 | PyObject * obj1 = 0 ; | |
9815 | char *kwnames[] = { | |
9816 | (char *) "self",(char *) "logger", NULL | |
9817 | }; | |
9818 | ||
9819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9820 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
9821 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9822 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0); | |
9823 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
9824 | { |
9825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9826 | (arg1)->SetLog(arg2); | |
9827 | ||
9828 | wxPyEndAllowThreads(__tstate); | |
9829 | if (PyErr_Occurred()) SWIG_fail; | |
9830 | } | |
9831 | Py_INCREF(Py_None); resultobj = Py_None; | |
9832 | return resultobj; | |
9833 | fail: | |
9834 | return NULL; | |
9835 | } | |
9836 | ||
9837 | ||
c32bde28 | 9838 | static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9839 | PyObject *resultobj; |
9840 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
9841 | bool arg2 ; | |
9842 | PyObject * obj0 = 0 ; | |
9843 | PyObject * obj1 = 0 ; | |
9844 | char *kwnames[] = { | |
9845 | (char *) "self",(char *) "bDoPass", NULL | |
9846 | }; | |
9847 | ||
9848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
9850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9851 | { | |
9852 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
9853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9854 | } | |
d14a1e28 RD |
9855 | { |
9856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9857 | (arg1)->PassMessages(arg2); | |
9858 | ||
9859 | wxPyEndAllowThreads(__tstate); | |
9860 | if (PyErr_Occurred()) SWIG_fail; | |
9861 | } | |
9862 | Py_INCREF(Py_None); resultobj = Py_None; | |
9863 | return resultobj; | |
9864 | fail: | |
9865 | return NULL; | |
9866 | } | |
9867 | ||
9868 | ||
c32bde28 | 9869 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9870 | PyObject *resultobj; |
9871 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
9872 | bool result; | |
9873 | PyObject * obj0 = 0 ; | |
9874 | char *kwnames[] = { | |
9875 | (char *) "self", NULL | |
9876 | }; | |
9877 | ||
9878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
9880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9881 | { |
9882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9883 | result = (bool)(arg1)->IsPassingMessages(); | |
9884 | ||
9885 | wxPyEndAllowThreads(__tstate); | |
9886 | if (PyErr_Occurred()) SWIG_fail; | |
9887 | } | |
4f89f6a3 RD |
9888 | { |
9889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9890 | } | |
d14a1e28 RD |
9891 | return resultobj; |
9892 | fail: | |
9893 | return NULL; | |
9894 | } | |
9895 | ||
9896 | ||
c32bde28 | 9897 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9898 | PyObject *resultobj; |
9899 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
9900 | wxLog *result; | |
9901 | PyObject * obj0 = 0 ; | |
9902 | char *kwnames[] = { | |
9903 | (char *) "self", NULL | |
9904 | }; | |
9905 | ||
9906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogChain, SWIG_POINTER_EXCEPTION | 0); |
9908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9909 | { |
9910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9911 | result = (wxLog *)(arg1)->GetOldLog(); | |
9912 | ||
9913 | wxPyEndAllowThreads(__tstate); | |
9914 | if (PyErr_Occurred()) SWIG_fail; | |
9915 | } | |
15afbcd0 | 9916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
9917 | return resultobj; |
9918 | fail: | |
9919 | return NULL; | |
9920 | } | |
9921 | ||
9922 | ||
c32bde28 | 9923 | static PyObject * LogChain_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9924 | PyObject *obj; |
9925 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9926 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
9927 | Py_INCREF(obj); | |
9928 | return Py_BuildValue((char *)""); | |
9929 | } | |
c32bde28 | 9930 | static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9931 | PyObject *resultobj; |
9932 | unsigned long result; | |
9933 | char *kwnames[] = { | |
9934 | NULL | |
9935 | }; | |
9936 | ||
9937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
9938 | { | |
9939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9940 | result = (unsigned long)wxSysErrorCode(); | |
9941 | ||
9942 | wxPyEndAllowThreads(__tstate); | |
9943 | if (PyErr_Occurred()) SWIG_fail; | |
9944 | } | |
093d3ff1 RD |
9945 | { |
9946 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
9947 | } | |
d14a1e28 RD |
9948 | return resultobj; |
9949 | fail: | |
9950 | return NULL; | |
9951 | } | |
9952 | ||
9953 | ||
c32bde28 | 9954 | static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9955 | PyObject *resultobj; |
9956 | unsigned long arg1 = (unsigned long) 0 ; | |
9957 | wxString result; | |
9958 | PyObject * obj0 = 0 ; | |
9959 | char *kwnames[] = { | |
9960 | (char *) "nErrCode", NULL | |
9961 | }; | |
9962 | ||
9963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
9964 | if (obj0) { | |
093d3ff1 RD |
9965 | { |
9966 | arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0)); | |
9967 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9968 | } | |
d14a1e28 RD |
9969 | } |
9970 | { | |
9971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9972 | result = wxSysErrorMsg(arg1); | |
9973 | ||
9974 | wxPyEndAllowThreads(__tstate); | |
9975 | if (PyErr_Occurred()) SWIG_fail; | |
9976 | } | |
9977 | { | |
9978 | #if wxUSE_UNICODE | |
9979 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9980 | #else | |
9981 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9982 | #endif | |
9983 | } | |
9984 | return resultobj; | |
9985 | fail: | |
9986 | return NULL; | |
9987 | } | |
9988 | ||
9989 | ||
c32bde28 | 9990 | static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9991 | PyObject *resultobj; |
9992 | wxString *arg1 = 0 ; | |
ae8162c8 | 9993 | bool temp1 = false ; |
d14a1e28 RD |
9994 | PyObject * obj0 = 0 ; |
9995 | char *kwnames[] = { | |
9996 | (char *) "msg", NULL | |
9997 | }; | |
9998 | ||
9999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
10000 | { | |
10001 | arg1 = wxString_in_helper(obj0); | |
10002 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10003 | temp1 = true; |
d14a1e28 RD |
10004 | } |
10005 | { | |
10006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10007 | wxPyLogFatalError((wxString const &)*arg1); |
d14a1e28 RD |
10008 | |
10009 | wxPyEndAllowThreads(__tstate); | |
10010 | if (PyErr_Occurred()) SWIG_fail; | |
10011 | } | |
10012 | Py_INCREF(Py_None); resultobj = Py_None; | |
10013 | { | |
10014 | if (temp1) | |
10015 | delete arg1; | |
10016 | } | |
10017 | return resultobj; | |
10018 | fail: | |
10019 | { | |
10020 | if (temp1) | |
10021 | delete arg1; | |
10022 | } | |
10023 | return NULL; | |
10024 | } | |
10025 | ||
10026 | ||
c32bde28 | 10027 | static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10028 | PyObject *resultobj; |
10029 | wxString *arg1 = 0 ; | |
ae8162c8 | 10030 | bool temp1 = false ; |
d14a1e28 RD |
10031 | PyObject * obj0 = 0 ; |
10032 | char *kwnames[] = { | |
10033 | (char *) "msg", NULL | |
10034 | }; | |
10035 | ||
10036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
10037 | { | |
10038 | arg1 = wxString_in_helper(obj0); | |
10039 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10040 | temp1 = true; |
d14a1e28 RD |
10041 | } |
10042 | { | |
10043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10044 | wxPyLogError((wxString const &)*arg1); |
d14a1e28 RD |
10045 | |
10046 | wxPyEndAllowThreads(__tstate); | |
10047 | if (PyErr_Occurred()) SWIG_fail; | |
10048 | } | |
10049 | Py_INCREF(Py_None); resultobj = Py_None; | |
10050 | { | |
10051 | if (temp1) | |
10052 | delete arg1; | |
10053 | } | |
10054 | return resultobj; | |
10055 | fail: | |
10056 | { | |
10057 | if (temp1) | |
10058 | delete arg1; | |
10059 | } | |
10060 | return NULL; | |
10061 | } | |
10062 | ||
10063 | ||
c32bde28 | 10064 | static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10065 | PyObject *resultobj; |
10066 | wxString *arg1 = 0 ; | |
ae8162c8 | 10067 | bool temp1 = false ; |
d14a1e28 RD |
10068 | PyObject * obj0 = 0 ; |
10069 | char *kwnames[] = { | |
10070 | (char *) "msg", NULL | |
10071 | }; | |
10072 | ||
10073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
10074 | { | |
10075 | arg1 = wxString_in_helper(obj0); | |
10076 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10077 | temp1 = true; |
d14a1e28 RD |
10078 | } |
10079 | { | |
10080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10081 | wxPyLogWarning((wxString const &)*arg1); |
d14a1e28 RD |
10082 | |
10083 | wxPyEndAllowThreads(__tstate); | |
10084 | if (PyErr_Occurred()) SWIG_fail; | |
10085 | } | |
10086 | Py_INCREF(Py_None); resultobj = Py_None; | |
10087 | { | |
10088 | if (temp1) | |
10089 | delete arg1; | |
10090 | } | |
10091 | return resultobj; | |
10092 | fail: | |
10093 | { | |
10094 | if (temp1) | |
10095 | delete arg1; | |
10096 | } | |
10097 | return NULL; | |
10098 | } | |
10099 | ||
10100 | ||
c32bde28 | 10101 | static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10102 | PyObject *resultobj; |
10103 | wxString *arg1 = 0 ; | |
ae8162c8 | 10104 | bool temp1 = false ; |
d14a1e28 RD |
10105 | PyObject * obj0 = 0 ; |
10106 | char *kwnames[] = { | |
10107 | (char *) "msg", NULL | |
10108 | }; | |
10109 | ||
10110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
10111 | { | |
10112 | arg1 = wxString_in_helper(obj0); | |
10113 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10114 | temp1 = true; |
d14a1e28 RD |
10115 | } |
10116 | { | |
10117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10118 | wxPyLogMessage((wxString const &)*arg1); |
d14a1e28 RD |
10119 | |
10120 | wxPyEndAllowThreads(__tstate); | |
10121 | if (PyErr_Occurred()) SWIG_fail; | |
10122 | } | |
10123 | Py_INCREF(Py_None); resultobj = Py_None; | |
10124 | { | |
10125 | if (temp1) | |
10126 | delete arg1; | |
10127 | } | |
10128 | return resultobj; | |
10129 | fail: | |
10130 | { | |
10131 | if (temp1) | |
10132 | delete arg1; | |
10133 | } | |
10134 | return NULL; | |
10135 | } | |
10136 | ||
10137 | ||
c32bde28 | 10138 | static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10139 | PyObject *resultobj; |
10140 | wxString *arg1 = 0 ; | |
ae8162c8 | 10141 | bool temp1 = false ; |
d14a1e28 RD |
10142 | PyObject * obj0 = 0 ; |
10143 | char *kwnames[] = { | |
10144 | (char *) "msg", NULL | |
10145 | }; | |
10146 | ||
10147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
10148 | { | |
10149 | arg1 = wxString_in_helper(obj0); | |
10150 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10151 | temp1 = true; |
d14a1e28 RD |
10152 | } |
10153 | { | |
10154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10155 | wxPyLogInfo((wxString const &)*arg1); |
d14a1e28 RD |
10156 | |
10157 | wxPyEndAllowThreads(__tstate); | |
10158 | if (PyErr_Occurred()) SWIG_fail; | |
10159 | } | |
10160 | Py_INCREF(Py_None); resultobj = Py_None; | |
10161 | { | |
10162 | if (temp1) | |
10163 | delete arg1; | |
10164 | } | |
10165 | return resultobj; | |
10166 | fail: | |
10167 | { | |
10168 | if (temp1) | |
10169 | delete arg1; | |
10170 | } | |
10171 | return NULL; | |
10172 | } | |
10173 | ||
10174 | ||
c32bde28 | 10175 | static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10176 | PyObject *resultobj; |
10177 | wxString *arg1 = 0 ; | |
ae8162c8 | 10178 | bool temp1 = false ; |
d14a1e28 RD |
10179 | PyObject * obj0 = 0 ; |
10180 | char *kwnames[] = { | |
10181 | (char *) "msg", NULL | |
10182 | }; | |
10183 | ||
10184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
10185 | { | |
10186 | arg1 = wxString_in_helper(obj0); | |
10187 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10188 | temp1 = true; |
d14a1e28 RD |
10189 | } |
10190 | { | |
10191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10192 | wxPyLogDebug((wxString const &)*arg1); |
d14a1e28 RD |
10193 | |
10194 | wxPyEndAllowThreads(__tstate); | |
10195 | if (PyErr_Occurred()) SWIG_fail; | |
10196 | } | |
10197 | Py_INCREF(Py_None); resultobj = Py_None; | |
10198 | { | |
10199 | if (temp1) | |
10200 | delete arg1; | |
10201 | } | |
10202 | return resultobj; | |
10203 | fail: | |
10204 | { | |
10205 | if (temp1) | |
10206 | delete arg1; | |
10207 | } | |
10208 | return NULL; | |
10209 | } | |
10210 | ||
10211 | ||
c32bde28 | 10212 | static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10213 | PyObject *resultobj; |
10214 | wxString *arg1 = 0 ; | |
ae8162c8 | 10215 | bool temp1 = false ; |
d14a1e28 RD |
10216 | PyObject * obj0 = 0 ; |
10217 | char *kwnames[] = { | |
10218 | (char *) "msg", NULL | |
10219 | }; | |
10220 | ||
10221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
10222 | { | |
10223 | arg1 = wxString_in_helper(obj0); | |
10224 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10225 | temp1 = true; |
d14a1e28 RD |
10226 | } |
10227 | { | |
10228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10229 | wxPyLogVerbose((wxString const &)*arg1); |
d14a1e28 RD |
10230 | |
10231 | wxPyEndAllowThreads(__tstate); | |
10232 | if (PyErr_Occurred()) SWIG_fail; | |
10233 | } | |
10234 | Py_INCREF(Py_None); resultobj = Py_None; | |
10235 | { | |
10236 | if (temp1) | |
10237 | delete arg1; | |
10238 | } | |
10239 | return resultobj; | |
10240 | fail: | |
10241 | { | |
10242 | if (temp1) | |
10243 | delete arg1; | |
10244 | } | |
10245 | return NULL; | |
10246 | } | |
10247 | ||
10248 | ||
c32bde28 | 10249 | static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10250 | PyObject *resultobj; |
10251 | wxString *arg1 = 0 ; | |
ae8162c8 | 10252 | bool temp1 = false ; |
d14a1e28 RD |
10253 | PyObject * obj0 = 0 ; |
10254 | char *kwnames[] = { | |
10255 | (char *) "msg", NULL | |
10256 | }; | |
10257 | ||
10258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
10259 | { | |
10260 | arg1 = wxString_in_helper(obj0); | |
10261 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10262 | temp1 = true; |
d14a1e28 RD |
10263 | } |
10264 | { | |
10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10266 | wxPyLogStatus((wxString const &)*arg1); |
d14a1e28 RD |
10267 | |
10268 | wxPyEndAllowThreads(__tstate); | |
10269 | if (PyErr_Occurred()) SWIG_fail; | |
10270 | } | |
10271 | Py_INCREF(Py_None); resultobj = Py_None; | |
10272 | { | |
10273 | if (temp1) | |
10274 | delete arg1; | |
10275 | } | |
10276 | return resultobj; | |
10277 | fail: | |
10278 | { | |
10279 | if (temp1) | |
10280 | delete arg1; | |
10281 | } | |
10282 | return NULL; | |
10283 | } | |
10284 | ||
10285 | ||
c32bde28 | 10286 | static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10287 | PyObject *resultobj; |
10288 | wxFrame *arg1 = (wxFrame *) 0 ; | |
10289 | wxString *arg2 = 0 ; | |
ae8162c8 | 10290 | bool temp2 = false ; |
d14a1e28 RD |
10291 | PyObject * obj0 = 0 ; |
10292 | PyObject * obj1 = 0 ; | |
10293 | char *kwnames[] = { | |
10294 | (char *) "pFrame",(char *) "msg", NULL | |
10295 | }; | |
10296 | ||
10297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0); |
10299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10300 | { |
10301 | arg2 = wxString_in_helper(obj1); | |
10302 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10303 | temp2 = true; |
d14a1e28 RD |
10304 | } |
10305 | { | |
10306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10307 | wxPyLogStatusFrame(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
10308 | |
10309 | wxPyEndAllowThreads(__tstate); | |
10310 | if (PyErr_Occurred()) SWIG_fail; | |
10311 | } | |
10312 | Py_INCREF(Py_None); resultobj = Py_None; | |
10313 | { | |
10314 | if (temp2) | |
10315 | delete arg2; | |
10316 | } | |
10317 | return resultobj; | |
10318 | fail: | |
10319 | { | |
10320 | if (temp2) | |
10321 | delete arg2; | |
10322 | } | |
10323 | return NULL; | |
10324 | } | |
10325 | ||
10326 | ||
c32bde28 | 10327 | static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10328 | PyObject *resultobj; |
10329 | wxString *arg1 = 0 ; | |
ae8162c8 | 10330 | bool temp1 = false ; |
d14a1e28 RD |
10331 | PyObject * obj0 = 0 ; |
10332 | char *kwnames[] = { | |
10333 | (char *) "msg", NULL | |
10334 | }; | |
10335 | ||
10336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
10337 | { | |
10338 | arg1 = wxString_in_helper(obj0); | |
10339 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10340 | temp1 = true; |
d14a1e28 RD |
10341 | } |
10342 | { | |
10343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10344 | wxPyLogSysError((wxString const &)*arg1); |
d14a1e28 RD |
10345 | |
10346 | wxPyEndAllowThreads(__tstate); | |
10347 | if (PyErr_Occurred()) SWIG_fail; | |
10348 | } | |
10349 | Py_INCREF(Py_None); resultobj = Py_None; | |
10350 | { | |
10351 | if (temp1) | |
10352 | delete arg1; | |
10353 | } | |
10354 | return resultobj; | |
10355 | fail: | |
10356 | { | |
10357 | if (temp1) | |
10358 | delete arg1; | |
10359 | } | |
10360 | return NULL; | |
10361 | } | |
10362 | ||
10363 | ||
f78cc896 RD |
10364 | static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) { |
10365 | PyObject *resultobj; | |
10366 | unsigned long arg1 ; | |
10367 | wxString *arg2 = 0 ; | |
10368 | bool temp2 = false ; | |
10369 | PyObject * obj0 = 0 ; | |
10370 | PyObject * obj1 = 0 ; | |
10371 | char *kwnames[] = { | |
10372 | (char *) "level",(char *) "msg", NULL | |
10373 | }; | |
10374 | ||
10375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10376 | { |
10377 | arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0)); | |
10378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10379 | } | |
f78cc896 RD |
10380 | { |
10381 | arg2 = wxString_in_helper(obj1); | |
10382 | if (arg2 == NULL) SWIG_fail; | |
10383 | temp2 = true; | |
10384 | } | |
10385 | { | |
10386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10387 | wxPyLogGeneric(arg1,(wxString const &)*arg2); | |
10388 | ||
10389 | wxPyEndAllowThreads(__tstate); | |
10390 | if (PyErr_Occurred()) SWIG_fail; | |
10391 | } | |
10392 | Py_INCREF(Py_None); resultobj = Py_None; | |
10393 | { | |
10394 | if (temp2) | |
10395 | delete arg2; | |
10396 | } | |
10397 | return resultobj; | |
10398 | fail: | |
10399 | { | |
10400 | if (temp2) | |
10401 | delete arg2; | |
10402 | } | |
10403 | return NULL; | |
10404 | } | |
10405 | ||
10406 | ||
c32bde28 | 10407 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 | 10408 | PyObject *resultobj; |
cc6dd355 RD |
10409 | unsigned long arg1 ; |
10410 | wxString *arg2 = 0 ; | |
ae8162c8 | 10411 | bool temp2 = false ; |
d14a1e28 | 10412 | PyObject * obj0 = 0 ; |
cc6dd355 | 10413 | PyObject * obj1 = 0 ; |
d14a1e28 | 10414 | |
cc6dd355 | 10415 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10416 | { |
10417 | arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0)); | |
10418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10419 | } | |
d14a1e28 | 10420 | { |
cc6dd355 RD |
10421 | arg2 = wxString_in_helper(obj1); |
10422 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10423 | temp2 = true; |
d14a1e28 RD |
10424 | } |
10425 | { | |
10426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10427 | wxPyLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
10428 | |
10429 | wxPyEndAllowThreads(__tstate); | |
10430 | if (PyErr_Occurred()) SWIG_fail; | |
10431 | } | |
10432 | Py_INCREF(Py_None); resultobj = Py_None; | |
10433 | { | |
cc6dd355 RD |
10434 | if (temp2) |
10435 | delete arg2; | |
d14a1e28 RD |
10436 | } |
10437 | return resultobj; | |
10438 | fail: | |
10439 | { | |
cc6dd355 RD |
10440 | if (temp2) |
10441 | delete arg2; | |
d14a1e28 RD |
10442 | } |
10443 | return NULL; | |
10444 | } | |
10445 | ||
10446 | ||
c32bde28 | 10447 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
10448 | PyObject *resultobj; |
10449 | wxString *arg1 = 0 ; | |
10450 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
10451 | bool temp1 = false ; |
10452 | bool temp2 = false ; | |
d14a1e28 RD |
10453 | PyObject * obj0 = 0 ; |
10454 | PyObject * obj1 = 0 ; | |
d14a1e28 | 10455 | |
cc6dd355 | 10456 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
10457 | { |
10458 | arg1 = wxString_in_helper(obj0); | |
10459 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10460 | temp1 = true; |
d14a1e28 RD |
10461 | } |
10462 | { | |
10463 | arg2 = wxString_in_helper(obj1); | |
10464 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10465 | temp2 = true; |
d14a1e28 RD |
10466 | } |
10467 | { | |
10468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 10469 | wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2); |
d14a1e28 RD |
10470 | |
10471 | wxPyEndAllowThreads(__tstate); | |
10472 | if (PyErr_Occurred()) SWIG_fail; | |
10473 | } | |
10474 | Py_INCREF(Py_None); resultobj = Py_None; | |
10475 | { | |
10476 | if (temp1) | |
10477 | delete arg1; | |
10478 | } | |
10479 | { | |
10480 | if (temp2) | |
10481 | delete arg2; | |
10482 | } | |
10483 | return resultobj; | |
10484 | fail: | |
10485 | { | |
10486 | if (temp1) | |
10487 | delete arg1; | |
10488 | } | |
10489 | { | |
10490 | if (temp2) | |
10491 | delete arg2; | |
10492 | } | |
10493 | return NULL; | |
10494 | } | |
10495 | ||
10496 | ||
cc6dd355 RD |
10497 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
10498 | int argc; | |
10499 | PyObject *argv[3]; | |
10500 | int ii; | |
10501 | ||
10502 | argc = PyObject_Length(args); | |
10503 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
10504 | argv[ii] = PyTuple_GetItem(args,ii); | |
10505 | } | |
10506 | if (argc == 2) { | |
10507 | int _v; | |
10508 | { | |
4d5c3d91 | 10509 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
cc6dd355 RD |
10510 | } |
10511 | if (_v) { | |
10512 | { | |
4d5c3d91 | 10513 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
10514 | } |
10515 | if (_v) { | |
10516 | return _wrap_LogTrace__SWIG_1(self,args); | |
10517 | } | |
10518 | } | |
10519 | } | |
10520 | if (argc == 2) { | |
10521 | int _v; | |
c32bde28 | 10522 | _v = SWIG_Check_unsigned_SS_long(argv[0]); |
cc6dd355 RD |
10523 | if (_v) { |
10524 | { | |
4d5c3d91 | 10525 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
10526 | } |
10527 | if (_v) { | |
10528 | return _wrap_LogTrace__SWIG_0(self,args); | |
10529 | } | |
10530 | } | |
10531 | } | |
10532 | ||
093d3ff1 | 10533 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'LogTrace'"); |
cc6dd355 RD |
10534 | return NULL; |
10535 | } | |
10536 | ||
10537 | ||
c32bde28 | 10538 | static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10539 | PyObject *resultobj; |
10540 | wxString *arg1 = 0 ; | |
10541 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
10542 | bool temp1 = false ; |
10543 | bool temp2 = false ; | |
d14a1e28 RD |
10544 | PyObject * obj0 = 0 ; |
10545 | PyObject * obj1 = 0 ; | |
10546 | char *kwnames[] = { | |
10547 | (char *) "title",(char *) "text", NULL | |
10548 | }; | |
10549 | ||
10550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
10551 | { | |
10552 | arg1 = wxString_in_helper(obj0); | |
10553 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10554 | temp1 = true; |
d14a1e28 RD |
10555 | } |
10556 | { | |
10557 | arg2 = wxString_in_helper(obj1); | |
10558 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10559 | temp2 = true; |
d14a1e28 RD |
10560 | } |
10561 | { | |
10562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10563 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
10564 | ||
10565 | wxPyEndAllowThreads(__tstate); | |
10566 | if (PyErr_Occurred()) SWIG_fail; | |
10567 | } | |
10568 | Py_INCREF(Py_None); resultobj = Py_None; | |
10569 | { | |
10570 | if (temp1) | |
10571 | delete arg1; | |
10572 | } | |
10573 | { | |
10574 | if (temp2) | |
10575 | delete arg2; | |
10576 | } | |
10577 | return resultobj; | |
10578 | fail: | |
10579 | { | |
10580 | if (temp1) | |
10581 | delete arg1; | |
10582 | } | |
10583 | { | |
10584 | if (temp2) | |
10585 | delete arg2; | |
10586 | } | |
10587 | return NULL; | |
10588 | } | |
10589 | ||
10590 | ||
c32bde28 | 10591 | static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10592 | PyObject *resultobj; |
10593 | wxLogNull *result; | |
10594 | char *kwnames[] = { | |
10595 | NULL | |
10596 | }; | |
10597 | ||
10598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
10599 | { | |
10600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10601 | result = (wxLogNull *)new wxLogNull(); | |
10602 | ||
10603 | wxPyEndAllowThreads(__tstate); | |
10604 | if (PyErr_Occurred()) SWIG_fail; | |
10605 | } | |
15afbcd0 | 10606 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); |
d14a1e28 RD |
10607 | return resultobj; |
10608 | fail: | |
10609 | return NULL; | |
10610 | } | |
10611 | ||
10612 | ||
c32bde28 | 10613 | static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10614 | PyObject *resultobj; |
10615 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
10616 | PyObject * obj0 = 0 ; | |
10617 | char *kwnames[] = { | |
10618 | (char *) "self", NULL | |
10619 | }; | |
10620 | ||
10621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10622 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLogNull, SWIG_POINTER_EXCEPTION | 0); |
10623 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10624 | { |
10625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10626 | delete arg1; | |
10627 | ||
10628 | wxPyEndAllowThreads(__tstate); | |
10629 | if (PyErr_Occurred()) SWIG_fail; | |
10630 | } | |
10631 | Py_INCREF(Py_None); resultobj = Py_None; | |
10632 | return resultobj; | |
10633 | fail: | |
10634 | return NULL; | |
10635 | } | |
10636 | ||
10637 | ||
c32bde28 | 10638 | static PyObject * LogNull_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10639 | PyObject *obj; |
10640 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10641 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
10642 | Py_INCREF(obj); | |
10643 | return Py_BuildValue((char *)""); | |
10644 | } | |
c32bde28 | 10645 | static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10646 | PyObject *resultobj; |
10647 | wxPyLog *result; | |
10648 | char *kwnames[] = { | |
10649 | NULL | |
10650 | }; | |
10651 | ||
10652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
10653 | { | |
10654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10655 | result = (wxPyLog *)new wxPyLog(); | |
10656 | ||
10657 | wxPyEndAllowThreads(__tstate); | |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
10659 | } | |
15afbcd0 | 10660 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); |
d14a1e28 RD |
10661 | return resultobj; |
10662 | fail: | |
10663 | return NULL; | |
10664 | } | |
10665 | ||
10666 | ||
c32bde28 | 10667 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10668 | PyObject *resultobj; |
10669 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
10670 | PyObject *arg2 = (PyObject *) 0 ; | |
10671 | PyObject *arg3 = (PyObject *) 0 ; | |
10672 | PyObject * obj0 = 0 ; | |
10673 | PyObject * obj1 = 0 ; | |
10674 | PyObject * obj2 = 0 ; | |
10675 | char *kwnames[] = { | |
10676 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10677 | }; | |
10678 | ||
10679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyLog, SWIG_POINTER_EXCEPTION | 0); |
10681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10682 | arg2 = obj1; |
10683 | arg3 = obj2; | |
10684 | { | |
10685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10686 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10687 | ||
10688 | wxPyEndAllowThreads(__tstate); | |
10689 | if (PyErr_Occurred()) SWIG_fail; | |
10690 | } | |
10691 | Py_INCREF(Py_None); resultobj = Py_None; | |
10692 | return resultobj; | |
10693 | fail: | |
10694 | return NULL; | |
10695 | } | |
10696 | ||
10697 | ||
c32bde28 | 10698 | static PyObject * PyLog_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10699 | PyObject *obj; |
10700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10701 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
10702 | Py_INCREF(obj); | |
10703 | return Py_BuildValue((char *)""); | |
10704 | } | |
c32bde28 | 10705 | static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10706 | PyObject *resultobj; |
10707 | int arg1 ; | |
093d3ff1 | 10708 | wxSignal arg2 = (wxSignal) wxSIGTERM ; |
1823fbb4 | 10709 | int arg3 = (int) wxKILL_NOCHILDREN ; |
093d3ff1 | 10710 | wxKillError result; |
994141e6 RD |
10711 | PyObject * obj0 = 0 ; |
10712 | PyObject * obj1 = 0 ; | |
1823fbb4 | 10713 | PyObject * obj2 = 0 ; |
d14a1e28 | 10714 | char *kwnames[] = { |
1823fbb4 | 10715 | (char *) "pid",(char *) "sig",(char *) "flags", NULL |
d14a1e28 RD |
10716 | }; |
10717 | ||
1823fbb4 | 10718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Process_Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10719 | { |
10720 | arg1 = (int)(SWIG_As_int(obj0)); | |
10721 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10722 | } | |
994141e6 | 10723 | if (obj1) { |
093d3ff1 RD |
10724 | { |
10725 | arg2 = (wxSignal)(SWIG_As_int(obj1)); | |
10726 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10727 | } | |
994141e6 | 10728 | } |
1823fbb4 | 10729 | if (obj2) { |
093d3ff1 RD |
10730 | { |
10731 | arg3 = (int)(SWIG_As_int(obj2)); | |
10732 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10733 | } | |
1823fbb4 | 10734 | } |
d14a1e28 RD |
10735 | { |
10736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10737 | result = (wxKillError)wxPyProcess::Kill(arg1,(wxSignal )arg2,arg3); |
d14a1e28 RD |
10738 | |
10739 | wxPyEndAllowThreads(__tstate); | |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
10741 | } | |
093d3ff1 | 10742 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
10743 | return resultobj; |
10744 | fail: | |
10745 | return NULL; | |
10746 | } | |
10747 | ||
10748 | ||
c32bde28 | 10749 | static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10750 | PyObject *resultobj; |
10751 | int arg1 ; | |
10752 | bool result; | |
994141e6 | 10753 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10754 | char *kwnames[] = { |
10755 | (char *) "pid", NULL | |
10756 | }; | |
10757 | ||
994141e6 | 10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
10759 | { |
10760 | arg1 = (int)(SWIG_As_int(obj0)); | |
10761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10762 | } | |
d14a1e28 RD |
10763 | { |
10764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10765 | result = (bool)wxPyProcess::Exists(arg1); | |
10766 | ||
10767 | wxPyEndAllowThreads(__tstate); | |
10768 | if (PyErr_Occurred()) SWIG_fail; | |
10769 | } | |
4f89f6a3 RD |
10770 | { |
10771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10772 | } | |
d14a1e28 RD |
10773 | return resultobj; |
10774 | fail: | |
10775 | return NULL; | |
10776 | } | |
10777 | ||
10778 | ||
c32bde28 | 10779 | static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10780 | PyObject *resultobj; |
10781 | wxString *arg1 = 0 ; | |
10782 | int arg2 = (int) wxEXEC_ASYNC ; | |
10783 | wxPyProcess *result; | |
ae8162c8 | 10784 | bool temp1 = false ; |
d14a1e28 | 10785 | PyObject * obj0 = 0 ; |
994141e6 | 10786 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10787 | char *kwnames[] = { |
10788 | (char *) "cmd",(char *) "flags", NULL | |
10789 | }; | |
10790 | ||
994141e6 | 10791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
10792 | { |
10793 | arg1 = wxString_in_helper(obj0); | |
10794 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10795 | temp1 = true; |
d14a1e28 | 10796 | } |
994141e6 | 10797 | if (obj1) { |
093d3ff1 RD |
10798 | { |
10799 | arg2 = (int)(SWIG_As_int(obj1)); | |
10800 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10801 | } | |
994141e6 | 10802 | } |
d14a1e28 RD |
10803 | { |
10804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10805 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
10806 | ||
10807 | wxPyEndAllowThreads(__tstate); | |
10808 | if (PyErr_Occurred()) SWIG_fail; | |
10809 | } | |
15afbcd0 | 10810 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); |
d14a1e28 RD |
10811 | { |
10812 | if (temp1) | |
10813 | delete arg1; | |
10814 | } | |
10815 | return resultobj; | |
10816 | fail: | |
10817 | { | |
10818 | if (temp1) | |
10819 | delete arg1; | |
10820 | } | |
10821 | return NULL; | |
10822 | } | |
10823 | ||
10824 | ||
c32bde28 | 10825 | static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10826 | PyObject *resultobj; |
10827 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
10828 | int arg2 = (int) -1 ; | |
10829 | wxPyProcess *result; | |
10830 | PyObject * obj0 = 0 ; | |
994141e6 | 10831 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10832 | char *kwnames[] = { |
10833 | (char *) "parent",(char *) "id", NULL | |
10834 | }; | |
10835 | ||
994141e6 | 10836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10837 | if (obj0) { |
093d3ff1 RD |
10838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
10839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 10840 | } |
994141e6 | 10841 | if (obj1) { |
093d3ff1 RD |
10842 | { |
10843 | arg2 = (int)(SWIG_As_int(obj1)); | |
10844 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10845 | } | |
994141e6 | 10846 | } |
d14a1e28 RD |
10847 | { |
10848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10849 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
10850 | ||
10851 | wxPyEndAllowThreads(__tstate); | |
10852 | if (PyErr_Occurred()) SWIG_fail; | |
10853 | } | |
15afbcd0 | 10854 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); |
d14a1e28 RD |
10855 | return resultobj; |
10856 | fail: | |
10857 | return NULL; | |
10858 | } | |
10859 | ||
10860 | ||
c32bde28 | 10861 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10862 | PyObject *resultobj; |
10863 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
10864 | PyObject *arg2 = (PyObject *) 0 ; | |
10865 | PyObject *arg3 = (PyObject *) 0 ; | |
10866 | PyObject * obj0 = 0 ; | |
10867 | PyObject * obj1 = 0 ; | |
10868 | PyObject * obj2 = 0 ; | |
10869 | char *kwnames[] = { | |
10870 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10871 | }; | |
10872 | ||
10873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10874 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
10875 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10876 | arg2 = obj1; |
10877 | arg3 = obj2; | |
10878 | { | |
10879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10880 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10881 | ||
10882 | wxPyEndAllowThreads(__tstate); | |
10883 | if (PyErr_Occurred()) SWIG_fail; | |
10884 | } | |
10885 | Py_INCREF(Py_None); resultobj = Py_None; | |
10886 | return resultobj; | |
10887 | fail: | |
10888 | return NULL; | |
10889 | } | |
10890 | ||
10891 | ||
c32bde28 | 10892 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10893 | PyObject *resultobj; |
10894 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
10895 | int arg2 ; | |
10896 | int arg3 ; | |
10897 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10898 | PyObject * obj1 = 0 ; |
10899 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10900 | char *kwnames[] = { |
10901 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
10902 | }; | |
10903 | ||
994141e6 | 10904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
10906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10907 | { | |
10908 | arg2 = (int)(SWIG_As_int(obj1)); | |
10909 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10910 | } | |
10911 | { | |
10912 | arg3 = (int)(SWIG_As_int(obj2)); | |
10913 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10914 | } | |
d14a1e28 RD |
10915 | { |
10916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10917 | (arg1)->base_OnTerminate(arg2,arg3); | |
10918 | ||
10919 | wxPyEndAllowThreads(__tstate); | |
10920 | if (PyErr_Occurred()) SWIG_fail; | |
10921 | } | |
10922 | Py_INCREF(Py_None); resultobj = Py_None; | |
10923 | return resultobj; | |
10924 | fail: | |
10925 | return NULL; | |
10926 | } | |
10927 | ||
10928 | ||
c32bde28 | 10929 | static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10930 | PyObject *resultobj; |
10931 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
10932 | PyObject * obj0 = 0 ; | |
10933 | char *kwnames[] = { | |
10934 | (char *) "self", NULL | |
10935 | }; | |
10936 | ||
10937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
10939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10940 | { |
10941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10942 | (arg1)->Redirect(); | |
10943 | ||
10944 | wxPyEndAllowThreads(__tstate); | |
10945 | if (PyErr_Occurred()) SWIG_fail; | |
10946 | } | |
10947 | Py_INCREF(Py_None); resultobj = Py_None; | |
10948 | return resultobj; | |
10949 | fail: | |
10950 | return NULL; | |
10951 | } | |
10952 | ||
10953 | ||
c32bde28 | 10954 | static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10955 | PyObject *resultobj; |
10956 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
10957 | bool result; | |
10958 | PyObject * obj0 = 0 ; | |
10959 | char *kwnames[] = { | |
10960 | (char *) "self", NULL | |
10961 | }; | |
10962 | ||
10963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
10965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10966 | { |
10967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10968 | result = (bool)(arg1)->IsRedirected(); | |
10969 | ||
10970 | wxPyEndAllowThreads(__tstate); | |
10971 | if (PyErr_Occurred()) SWIG_fail; | |
10972 | } | |
4f89f6a3 RD |
10973 | { |
10974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10975 | } | |
d14a1e28 RD |
10976 | return resultobj; |
10977 | fail: | |
10978 | return NULL; | |
10979 | } | |
10980 | ||
10981 | ||
c32bde28 | 10982 | static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10983 | PyObject *resultobj; |
10984 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
10985 | PyObject * obj0 = 0 ; | |
10986 | char *kwnames[] = { | |
10987 | (char *) "self", NULL | |
10988 | }; | |
10989 | ||
10990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10991 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
10992 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10993 | { |
10994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10995 | (arg1)->Detach(); | |
10996 | ||
10997 | wxPyEndAllowThreads(__tstate); | |
10998 | if (PyErr_Occurred()) SWIG_fail; | |
10999 | } | |
11000 | Py_INCREF(Py_None); resultobj = Py_None; | |
11001 | return resultobj; | |
11002 | fail: | |
11003 | return NULL; | |
11004 | } | |
11005 | ||
11006 | ||
c32bde28 | 11007 | static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11008 | PyObject *resultobj; |
11009 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11010 | wxInputStream *result; | |
11011 | PyObject * obj0 = 0 ; | |
11012 | char *kwnames[] = { | |
11013 | (char *) "self", NULL | |
11014 | }; | |
11015 | ||
11016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11019 | { |
11020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11021 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
11022 | ||
11023 | wxPyEndAllowThreads(__tstate); | |
11024 | if (PyErr_Occurred()) SWIG_fail; | |
11025 | } | |
11026 | { | |
11027 | wxPyInputStream * _ptr = NULL; | |
11028 | ||
11029 | if (result) { | |
11030 | _ptr = new wxPyInputStream(result); | |
11031 | } | |
fc71d09b | 11032 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d14a1e28 RD |
11033 | } |
11034 | return resultobj; | |
11035 | fail: | |
11036 | return NULL; | |
11037 | } | |
11038 | ||
11039 | ||
c32bde28 | 11040 | static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11041 | PyObject *resultobj; |
11042 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11043 | wxInputStream *result; | |
11044 | PyObject * obj0 = 0 ; | |
11045 | char *kwnames[] = { | |
11046 | (char *) "self", NULL | |
11047 | }; | |
11048 | ||
11049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11050 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11051 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11052 | { |
11053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11054 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
11055 | ||
11056 | wxPyEndAllowThreads(__tstate); | |
11057 | if (PyErr_Occurred()) SWIG_fail; | |
11058 | } | |
11059 | { | |
11060 | wxPyInputStream * _ptr = NULL; | |
11061 | ||
11062 | if (result) { | |
11063 | _ptr = new wxPyInputStream(result); | |
11064 | } | |
fc71d09b | 11065 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d14a1e28 RD |
11066 | } |
11067 | return resultobj; | |
11068 | fail: | |
11069 | return NULL; | |
11070 | } | |
11071 | ||
11072 | ||
c32bde28 | 11073 | static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11074 | PyObject *resultobj; |
11075 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11076 | wxOutputStream *result; | |
11077 | PyObject * obj0 = 0 ; | |
11078 | char *kwnames[] = { | |
11079 | (char *) "self", NULL | |
11080 | }; | |
11081 | ||
11082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11085 | { |
11086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11087 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
11088 | ||
11089 | wxPyEndAllowThreads(__tstate); | |
11090 | if (PyErr_Occurred()) SWIG_fail; | |
11091 | } | |
15afbcd0 | 11092 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); |
d14a1e28 RD |
11093 | return resultobj; |
11094 | fail: | |
11095 | return NULL; | |
11096 | } | |
11097 | ||
11098 | ||
c32bde28 | 11099 | static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11100 | PyObject *resultobj; |
11101 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11102 | PyObject * obj0 = 0 ; | |
11103 | char *kwnames[] = { | |
11104 | (char *) "self", NULL | |
11105 | }; | |
11106 | ||
11107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11110 | { |
11111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11112 | (arg1)->CloseOutput(); | |
11113 | ||
11114 | wxPyEndAllowThreads(__tstate); | |
11115 | if (PyErr_Occurred()) SWIG_fail; | |
11116 | } | |
11117 | Py_INCREF(Py_None); resultobj = Py_None; | |
11118 | return resultobj; | |
11119 | fail: | |
11120 | return NULL; | |
11121 | } | |
11122 | ||
11123 | ||
c32bde28 | 11124 | static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11125 | PyObject *resultobj; |
11126 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11127 | bool result; | |
11128 | PyObject * obj0 = 0 ; | |
11129 | char *kwnames[] = { | |
11130 | (char *) "self", NULL | |
11131 | }; | |
11132 | ||
11133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11134 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11135 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11136 | { |
11137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11138 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
11139 | ||
11140 | wxPyEndAllowThreads(__tstate); | |
11141 | if (PyErr_Occurred()) SWIG_fail; | |
11142 | } | |
4f89f6a3 RD |
11143 | { |
11144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11145 | } | |
d14a1e28 RD |
11146 | return resultobj; |
11147 | fail: | |
11148 | return NULL; | |
11149 | } | |
11150 | ||
11151 | ||
c32bde28 | 11152 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11153 | PyObject *resultobj; |
11154 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11155 | bool result; | |
11156 | PyObject * obj0 = 0 ; | |
11157 | char *kwnames[] = { | |
11158 | (char *) "self", NULL | |
11159 | }; | |
11160 | ||
11161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11162 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11164 | { |
11165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11166 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
11167 | ||
11168 | wxPyEndAllowThreads(__tstate); | |
11169 | if (PyErr_Occurred()) SWIG_fail; | |
11170 | } | |
4f89f6a3 RD |
11171 | { |
11172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11173 | } | |
d14a1e28 RD |
11174 | return resultobj; |
11175 | fail: | |
11176 | return NULL; | |
11177 | } | |
11178 | ||
11179 | ||
c32bde28 | 11180 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11181 | PyObject *resultobj; |
11182 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
11183 | bool result; | |
11184 | PyObject * obj0 = 0 ; | |
11185 | char *kwnames[] = { | |
11186 | (char *) "self", NULL | |
11187 | }; | |
11188 | ||
11189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11192 | { |
11193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11194 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
11195 | ||
11196 | wxPyEndAllowThreads(__tstate); | |
11197 | if (PyErr_Occurred()) SWIG_fail; | |
11198 | } | |
4f89f6a3 RD |
11199 | { |
11200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11201 | } | |
d14a1e28 RD |
11202 | return resultobj; |
11203 | fail: | |
11204 | return NULL; | |
11205 | } | |
11206 | ||
11207 | ||
c32bde28 | 11208 | static PyObject * Process_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11209 | PyObject *obj; |
11210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11211 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
11212 | Py_INCREF(obj); | |
11213 | return Py_BuildValue((char *)""); | |
11214 | } | |
c32bde28 | 11215 | static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11216 | PyObject *resultobj; |
11217 | int arg1 = (int) 0 ; | |
11218 | int arg2 = (int) 0 ; | |
11219 | int arg3 = (int) 0 ; | |
11220 | wxProcessEvent *result; | |
994141e6 RD |
11221 | PyObject * obj0 = 0 ; |
11222 | PyObject * obj1 = 0 ; | |
11223 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11224 | char *kwnames[] = { |
11225 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
11226 | }; | |
11227 | ||
994141e6 RD |
11228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
11229 | if (obj0) { | |
093d3ff1 RD |
11230 | { |
11231 | arg1 = (int)(SWIG_As_int(obj0)); | |
11232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11233 | } | |
994141e6 RD |
11234 | } |
11235 | if (obj1) { | |
093d3ff1 RD |
11236 | { |
11237 | arg2 = (int)(SWIG_As_int(obj1)); | |
11238 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11239 | } | |
994141e6 RD |
11240 | } |
11241 | if (obj2) { | |
093d3ff1 RD |
11242 | { |
11243 | arg3 = (int)(SWIG_As_int(obj2)); | |
11244 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11245 | } | |
994141e6 | 11246 | } |
d14a1e28 RD |
11247 | { |
11248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11249 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
11250 | ||
11251 | wxPyEndAllowThreads(__tstate); | |
11252 | if (PyErr_Occurred()) SWIG_fail; | |
11253 | } | |
15afbcd0 | 11254 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); |
d14a1e28 RD |
11255 | return resultobj; |
11256 | fail: | |
11257 | return NULL; | |
11258 | } | |
11259 | ||
11260 | ||
c32bde28 | 11261 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11262 | PyObject *resultobj; |
11263 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11264 | int result; | |
11265 | PyObject * obj0 = 0 ; | |
11266 | char *kwnames[] = { | |
11267 | (char *) "self", NULL | |
11268 | }; | |
11269 | ||
11270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11271 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11272 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11273 | { |
11274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11275 | result = (int)(arg1)->GetPid(); | |
11276 | ||
11277 | wxPyEndAllowThreads(__tstate); | |
11278 | if (PyErr_Occurred()) SWIG_fail; | |
11279 | } | |
093d3ff1 RD |
11280 | { |
11281 | resultobj = SWIG_From_int((int)(result)); | |
11282 | } | |
d14a1e28 RD |
11283 | return resultobj; |
11284 | fail: | |
11285 | return NULL; | |
11286 | } | |
11287 | ||
11288 | ||
c32bde28 | 11289 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11290 | PyObject *resultobj; |
11291 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11292 | int result; | |
11293 | PyObject * obj0 = 0 ; | |
11294 | char *kwnames[] = { | |
11295 | (char *) "self", NULL | |
11296 | }; | |
11297 | ||
11298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11299 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11300 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11301 | { |
11302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11303 | result = (int)(arg1)->GetExitCode(); | |
11304 | ||
11305 | wxPyEndAllowThreads(__tstate); | |
11306 | if (PyErr_Occurred()) SWIG_fail; | |
11307 | } | |
093d3ff1 RD |
11308 | { |
11309 | resultobj = SWIG_From_int((int)(result)); | |
11310 | } | |
d14a1e28 RD |
11311 | return resultobj; |
11312 | fail: | |
11313 | return NULL; | |
11314 | } | |
11315 | ||
11316 | ||
c32bde28 | 11317 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11318 | PyObject *resultobj; |
11319 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11320 | int arg2 ; | |
11321 | PyObject * obj0 = 0 ; | |
994141e6 | 11322 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11323 | char *kwnames[] = { |
11324 | (char *) "self",(char *) "m_pid", NULL | |
11325 | }; | |
11326 | ||
994141e6 | 11327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11330 | { | |
11331 | arg2 = (int)(SWIG_As_int(obj1)); | |
11332 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11333 | } | |
d14a1e28 RD |
11334 | if (arg1) (arg1)->m_pid = arg2; |
11335 | ||
11336 | Py_INCREF(Py_None); resultobj = Py_None; | |
11337 | return resultobj; | |
11338 | fail: | |
11339 | return NULL; | |
11340 | } | |
11341 | ||
11342 | ||
c32bde28 | 11343 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11344 | PyObject *resultobj; |
11345 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11346 | int result; | |
11347 | PyObject * obj0 = 0 ; | |
11348 | char *kwnames[] = { | |
11349 | (char *) "self", NULL | |
11350 | }; | |
11351 | ||
11352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11355 | result = (int) ((arg1)->m_pid); |
11356 | ||
093d3ff1 RD |
11357 | { |
11358 | resultobj = SWIG_From_int((int)(result)); | |
11359 | } | |
d14a1e28 RD |
11360 | return resultobj; |
11361 | fail: | |
11362 | return NULL; | |
11363 | } | |
11364 | ||
11365 | ||
c32bde28 | 11366 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11367 | PyObject *resultobj; |
11368 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11369 | int arg2 ; | |
11370 | PyObject * obj0 = 0 ; | |
994141e6 | 11371 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11372 | char *kwnames[] = { |
11373 | (char *) "self",(char *) "m_exitcode", NULL | |
11374 | }; | |
11375 | ||
994141e6 | 11376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11379 | { | |
11380 | arg2 = (int)(SWIG_As_int(obj1)); | |
11381 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11382 | } | |
d14a1e28 RD |
11383 | if (arg1) (arg1)->m_exitcode = arg2; |
11384 | ||
11385 | Py_INCREF(Py_None); resultobj = Py_None; | |
11386 | return resultobj; | |
11387 | fail: | |
11388 | return NULL; | |
11389 | } | |
11390 | ||
11391 | ||
c32bde28 | 11392 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11393 | PyObject *resultobj; |
11394 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
11395 | int result; | |
11396 | PyObject * obj0 = 0 ; | |
11397 | char *kwnames[] = { | |
11398 | (char *) "self", NULL | |
11399 | }; | |
11400 | ||
11401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_EXCEPTION | 0); |
11403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11404 | result = (int) ((arg1)->m_exitcode); |
11405 | ||
093d3ff1 RD |
11406 | { |
11407 | resultobj = SWIG_From_int((int)(result)); | |
11408 | } | |
d14a1e28 RD |
11409 | return resultobj; |
11410 | fail: | |
11411 | return NULL; | |
11412 | } | |
11413 | ||
11414 | ||
c32bde28 | 11415 | static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11416 | PyObject *obj; |
11417 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11418 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
11419 | Py_INCREF(obj); | |
11420 | return Py_BuildValue((char *)""); | |
11421 | } | |
c32bde28 | 11422 | static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11423 | PyObject *resultobj; |
11424 | wxString *arg1 = 0 ; | |
11425 | int arg2 = (int) wxEXEC_ASYNC ; | |
11426 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
11427 | long result; | |
ae8162c8 | 11428 | bool temp1 = false ; |
d14a1e28 | 11429 | PyObject * obj0 = 0 ; |
994141e6 | 11430 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11431 | PyObject * obj2 = 0 ; |
11432 | char *kwnames[] = { | |
11433 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
11434 | }; | |
11435 | ||
994141e6 | 11436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
11437 | { |
11438 | arg1 = wxString_in_helper(obj0); | |
11439 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11440 | temp1 = true; |
d14a1e28 | 11441 | } |
994141e6 | 11442 | if (obj1) { |
093d3ff1 RD |
11443 | { |
11444 | arg2 = (int)(SWIG_As_int(obj1)); | |
11445 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11446 | } | |
994141e6 | 11447 | } |
d14a1e28 | 11448 | if (obj2) { |
093d3ff1 RD |
11449 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyProcess, SWIG_POINTER_EXCEPTION | 0); |
11450 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
11451 | } |
11452 | { | |
e3b71cb8 | 11453 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11455 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
11456 | ||
11457 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11458 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11459 | } |
093d3ff1 RD |
11460 | { |
11461 | resultobj = SWIG_From_long((long)(result)); | |
11462 | } | |
d14a1e28 RD |
11463 | { |
11464 | if (temp1) | |
11465 | delete arg1; | |
11466 | } | |
11467 | return resultobj; | |
11468 | fail: | |
11469 | { | |
11470 | if (temp1) | |
11471 | delete arg1; | |
11472 | } | |
11473 | return NULL; | |
11474 | } | |
11475 | ||
11476 | ||
1823fbb4 RD |
11477 | static PyObject *_wrap_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
11478 | PyObject *resultobj; | |
11479 | long arg1 ; | |
093d3ff1 | 11480 | wxSignal arg2 = (wxSignal) wxSIGTERM ; |
1823fbb4 RD |
11481 | wxKillError *arg3 = (wxKillError *) 0 ; |
11482 | int arg4 = (int) wxKILL_NOCHILDREN ; | |
11483 | int result; | |
11484 | wxKillError temp3 ; | |
11485 | PyObject * obj0 = 0 ; | |
11486 | PyObject * obj1 = 0 ; | |
11487 | PyObject * obj2 = 0 ; | |
11488 | char *kwnames[] = { | |
11489 | (char *) "pid",(char *) "sig",(char *) "flags", NULL | |
11490 | }; | |
11491 | ||
11492 | { | |
11493 | arg3 = &temp3; | |
11494 | } | |
11495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11496 | { |
11497 | arg1 = (long)(SWIG_As_long(obj0)); | |
11498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11499 | } | |
1823fbb4 | 11500 | if (obj1) { |
093d3ff1 RD |
11501 | { |
11502 | arg2 = (wxSignal)(SWIG_As_int(obj1)); | |
11503 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11504 | } | |
1823fbb4 RD |
11505 | } |
11506 | if (obj2) { | |
093d3ff1 RD |
11507 | { |
11508 | arg4 = (int)(SWIG_As_int(obj2)); | |
11509 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11510 | } | |
1823fbb4 RD |
11511 | } |
11512 | { | |
11513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11514 | result = (int)wxKill(arg1,(wxSignal )arg2,arg3,arg4); | |
11515 | ||
11516 | wxPyEndAllowThreads(__tstate); | |
11517 | if (PyErr_Occurred()) SWIG_fail; | |
11518 | } | |
093d3ff1 RD |
11519 | { |
11520 | resultobj = SWIG_From_int((int)(result)); | |
11521 | } | |
1823fbb4 RD |
11522 | { |
11523 | PyObject* o; | |
11524 | o = PyInt_FromLong((long) (*arg3)); | |
11525 | resultobj = t_output_helper(resultobj, o); | |
11526 | } | |
11527 | return resultobj; | |
11528 | fail: | |
11529 | return NULL; | |
11530 | } | |
11531 | ||
11532 | ||
c32bde28 | 11533 | static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11534 | PyObject *resultobj; |
11535 | int arg1 = (int) wxJOYSTICK1 ; | |
11536 | wxJoystick *result; | |
994141e6 | 11537 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
11538 | char *kwnames[] = { |
11539 | (char *) "joystick", NULL | |
11540 | }; | |
11541 | ||
994141e6 RD |
11542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; |
11543 | if (obj0) { | |
093d3ff1 RD |
11544 | { |
11545 | arg1 = (int)(SWIG_As_int(obj0)); | |
11546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11547 | } | |
994141e6 | 11548 | } |
d14a1e28 | 11549 | { |
e3b71cb8 | 11550 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11552 | result = (wxJoystick *)new wxJoystick(arg1); | |
11553 | ||
11554 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11555 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11556 | } |
15afbcd0 | 11557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); |
d14a1e28 RD |
11558 | return resultobj; |
11559 | fail: | |
11560 | return NULL; | |
11561 | } | |
11562 | ||
11563 | ||
c32bde28 | 11564 | static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11565 | PyObject *resultobj; |
11566 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11567 | PyObject * obj0 = 0 ; | |
11568 | char *kwnames[] = { | |
11569 | (char *) "self", NULL | |
11570 | }; | |
11571 | ||
11572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11573 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11574 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11575 | { |
11576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11577 | delete arg1; | |
11578 | ||
11579 | wxPyEndAllowThreads(__tstate); | |
11580 | if (PyErr_Occurred()) SWIG_fail; | |
11581 | } | |
11582 | Py_INCREF(Py_None); resultobj = Py_None; | |
11583 | return resultobj; | |
11584 | fail: | |
11585 | return NULL; | |
11586 | } | |
11587 | ||
11588 | ||
c32bde28 | 11589 | static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11590 | PyObject *resultobj; |
11591 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11592 | wxPoint result; | |
11593 | PyObject * obj0 = 0 ; | |
11594 | char *kwnames[] = { | |
11595 | (char *) "self", NULL | |
11596 | }; | |
11597 | ||
11598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11601 | { |
11602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11603 | result = (arg1)->GetPosition(); | |
11604 | ||
11605 | wxPyEndAllowThreads(__tstate); | |
11606 | if (PyErr_Occurred()) SWIG_fail; | |
11607 | } | |
11608 | { | |
11609 | wxPoint * resultptr; | |
093d3ff1 | 11610 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 11611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
11612 | } |
11613 | return resultobj; | |
11614 | fail: | |
11615 | return NULL; | |
11616 | } | |
11617 | ||
11618 | ||
c32bde28 | 11619 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11620 | PyObject *resultobj; |
11621 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11622 | int result; | |
11623 | PyObject * obj0 = 0 ; | |
11624 | char *kwnames[] = { | |
11625 | (char *) "self", NULL | |
11626 | }; | |
11627 | ||
11628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11631 | { |
11632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11633 | result = (int)(arg1)->GetZPosition(); | |
11634 | ||
11635 | wxPyEndAllowThreads(__tstate); | |
11636 | if (PyErr_Occurred()) SWIG_fail; | |
11637 | } | |
093d3ff1 RD |
11638 | { |
11639 | resultobj = SWIG_From_int((int)(result)); | |
11640 | } | |
d14a1e28 RD |
11641 | return resultobj; |
11642 | fail: | |
11643 | return NULL; | |
11644 | } | |
11645 | ||
11646 | ||
c32bde28 | 11647 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11648 | PyObject *resultobj; |
11649 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11650 | int result; | |
11651 | PyObject * obj0 = 0 ; | |
11652 | char *kwnames[] = { | |
11653 | (char *) "self", NULL | |
11654 | }; | |
11655 | ||
11656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11659 | { |
11660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11661 | result = (int)(arg1)->GetButtonState(); | |
11662 | ||
11663 | wxPyEndAllowThreads(__tstate); | |
11664 | if (PyErr_Occurred()) SWIG_fail; | |
11665 | } | |
093d3ff1 RD |
11666 | { |
11667 | resultobj = SWIG_From_int((int)(result)); | |
11668 | } | |
d14a1e28 RD |
11669 | return resultobj; |
11670 | fail: | |
11671 | return NULL; | |
11672 | } | |
11673 | ||
11674 | ||
c32bde28 | 11675 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11676 | PyObject *resultobj; |
11677 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11678 | int result; | |
11679 | PyObject * obj0 = 0 ; | |
11680 | char *kwnames[] = { | |
11681 | (char *) "self", NULL | |
11682 | }; | |
11683 | ||
11684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11685 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11686 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11687 | { |
11688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11689 | result = (int)(arg1)->GetPOVPosition(); | |
11690 | ||
11691 | wxPyEndAllowThreads(__tstate); | |
11692 | if (PyErr_Occurred()) SWIG_fail; | |
11693 | } | |
093d3ff1 RD |
11694 | { |
11695 | resultobj = SWIG_From_int((int)(result)); | |
11696 | } | |
d14a1e28 RD |
11697 | return resultobj; |
11698 | fail: | |
11699 | return NULL; | |
11700 | } | |
11701 | ||
11702 | ||
c32bde28 | 11703 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11704 | PyObject *resultobj; |
11705 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11706 | int result; | |
11707 | PyObject * obj0 = 0 ; | |
11708 | char *kwnames[] = { | |
11709 | (char *) "self", NULL | |
11710 | }; | |
11711 | ||
11712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11715 | { |
11716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11717 | result = (int)(arg1)->GetPOVCTSPosition(); | |
11718 | ||
11719 | wxPyEndAllowThreads(__tstate); | |
11720 | if (PyErr_Occurred()) SWIG_fail; | |
11721 | } | |
093d3ff1 RD |
11722 | { |
11723 | resultobj = SWIG_From_int((int)(result)); | |
11724 | } | |
d14a1e28 RD |
11725 | return resultobj; |
11726 | fail: | |
11727 | return NULL; | |
11728 | } | |
11729 | ||
11730 | ||
c32bde28 | 11731 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11732 | PyObject *resultobj; |
11733 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11734 | int result; | |
11735 | PyObject * obj0 = 0 ; | |
11736 | char *kwnames[] = { | |
11737 | (char *) "self", NULL | |
11738 | }; | |
11739 | ||
11740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11741 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11742 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11743 | { |
11744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11745 | result = (int)(arg1)->GetRudderPosition(); | |
11746 | ||
11747 | wxPyEndAllowThreads(__tstate); | |
11748 | if (PyErr_Occurred()) SWIG_fail; | |
11749 | } | |
093d3ff1 RD |
11750 | { |
11751 | resultobj = SWIG_From_int((int)(result)); | |
11752 | } | |
d14a1e28 RD |
11753 | return resultobj; |
11754 | fail: | |
11755 | return NULL; | |
11756 | } | |
11757 | ||
11758 | ||
c32bde28 | 11759 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11760 | PyObject *resultobj; |
11761 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11762 | int result; | |
11763 | PyObject * obj0 = 0 ; | |
11764 | char *kwnames[] = { | |
11765 | (char *) "self", NULL | |
11766 | }; | |
11767 | ||
11768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11769 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11770 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11771 | { |
11772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11773 | result = (int)(arg1)->GetUPosition(); | |
11774 | ||
11775 | wxPyEndAllowThreads(__tstate); | |
11776 | if (PyErr_Occurred()) SWIG_fail; | |
11777 | } | |
093d3ff1 RD |
11778 | { |
11779 | resultobj = SWIG_From_int((int)(result)); | |
11780 | } | |
d14a1e28 RD |
11781 | return resultobj; |
11782 | fail: | |
11783 | return NULL; | |
11784 | } | |
11785 | ||
11786 | ||
c32bde28 | 11787 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11788 | PyObject *resultobj; |
11789 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11790 | int result; | |
11791 | PyObject * obj0 = 0 ; | |
11792 | char *kwnames[] = { | |
11793 | (char *) "self", NULL | |
11794 | }; | |
11795 | ||
11796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11799 | { |
11800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11801 | result = (int)(arg1)->GetVPosition(); | |
11802 | ||
11803 | wxPyEndAllowThreads(__tstate); | |
11804 | if (PyErr_Occurred()) SWIG_fail; | |
11805 | } | |
093d3ff1 RD |
11806 | { |
11807 | resultobj = SWIG_From_int((int)(result)); | |
11808 | } | |
d14a1e28 RD |
11809 | return resultobj; |
11810 | fail: | |
11811 | return NULL; | |
11812 | } | |
11813 | ||
11814 | ||
c32bde28 | 11815 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11816 | PyObject *resultobj; |
11817 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11818 | int result; | |
11819 | PyObject * obj0 = 0 ; | |
11820 | char *kwnames[] = { | |
11821 | (char *) "self", NULL | |
11822 | }; | |
11823 | ||
11824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11827 | { |
11828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11829 | result = (int)(arg1)->GetMovementThreshold(); | |
11830 | ||
11831 | wxPyEndAllowThreads(__tstate); | |
11832 | if (PyErr_Occurred()) SWIG_fail; | |
11833 | } | |
093d3ff1 RD |
11834 | { |
11835 | resultobj = SWIG_From_int((int)(result)); | |
11836 | } | |
d14a1e28 RD |
11837 | return resultobj; |
11838 | fail: | |
11839 | return NULL; | |
11840 | } | |
11841 | ||
11842 | ||
c32bde28 | 11843 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11844 | PyObject *resultobj; |
11845 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11846 | int arg2 ; | |
11847 | PyObject * obj0 = 0 ; | |
994141e6 | 11848 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11849 | char *kwnames[] = { |
11850 | (char *) "self",(char *) "threshold", NULL | |
11851 | }; | |
11852 | ||
994141e6 | 11853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11856 | { | |
11857 | arg2 = (int)(SWIG_As_int(obj1)); | |
11858 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11859 | } | |
d14a1e28 RD |
11860 | { |
11861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11862 | (arg1)->SetMovementThreshold(arg2); | |
11863 | ||
11864 | wxPyEndAllowThreads(__tstate); | |
11865 | if (PyErr_Occurred()) SWIG_fail; | |
11866 | } | |
11867 | Py_INCREF(Py_None); resultobj = Py_None; | |
11868 | return resultobj; | |
11869 | fail: | |
11870 | return NULL; | |
11871 | } | |
11872 | ||
11873 | ||
c32bde28 | 11874 | static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11875 | PyObject *resultobj; |
11876 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11877 | bool result; | |
11878 | PyObject * obj0 = 0 ; | |
11879 | char *kwnames[] = { | |
11880 | (char *) "self", NULL | |
11881 | }; | |
11882 | ||
11883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11886 | { |
11887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11888 | result = (bool)(arg1)->IsOk(); | |
11889 | ||
11890 | wxPyEndAllowThreads(__tstate); | |
11891 | if (PyErr_Occurred()) SWIG_fail; | |
11892 | } | |
4f89f6a3 RD |
11893 | { |
11894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11895 | } | |
d14a1e28 RD |
11896 | return resultobj; |
11897 | fail: | |
11898 | return NULL; | |
11899 | } | |
11900 | ||
11901 | ||
c32bde28 | 11902 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11903 | PyObject *resultobj; |
11904 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11905 | int result; | |
11906 | PyObject * obj0 = 0 ; | |
11907 | char *kwnames[] = { | |
11908 | (char *) "self", NULL | |
11909 | }; | |
11910 | ||
11911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11914 | { |
11915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11916 | result = (int)(arg1)->GetNumberJoysticks(); | |
11917 | ||
11918 | wxPyEndAllowThreads(__tstate); | |
11919 | if (PyErr_Occurred()) SWIG_fail; | |
11920 | } | |
093d3ff1 RD |
11921 | { |
11922 | resultobj = SWIG_From_int((int)(result)); | |
11923 | } | |
d14a1e28 RD |
11924 | return resultobj; |
11925 | fail: | |
11926 | return NULL; | |
11927 | } | |
11928 | ||
11929 | ||
c32bde28 | 11930 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11931 | PyObject *resultobj; |
11932 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11933 | int result; | |
11934 | PyObject * obj0 = 0 ; | |
11935 | char *kwnames[] = { | |
11936 | (char *) "self", NULL | |
11937 | }; | |
11938 | ||
11939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11942 | { |
11943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11944 | result = (int)(arg1)->GetManufacturerId(); | |
11945 | ||
11946 | wxPyEndAllowThreads(__tstate); | |
11947 | if (PyErr_Occurred()) SWIG_fail; | |
11948 | } | |
093d3ff1 RD |
11949 | { |
11950 | resultobj = SWIG_From_int((int)(result)); | |
11951 | } | |
d14a1e28 RD |
11952 | return resultobj; |
11953 | fail: | |
11954 | return NULL; | |
11955 | } | |
11956 | ||
11957 | ||
c32bde28 | 11958 | static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11959 | PyObject *resultobj; |
11960 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11961 | int result; | |
11962 | PyObject * obj0 = 0 ; | |
11963 | char *kwnames[] = { | |
11964 | (char *) "self", NULL | |
11965 | }; | |
11966 | ||
11967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11970 | { |
11971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11972 | result = (int)(arg1)->GetProductId(); | |
11973 | ||
11974 | wxPyEndAllowThreads(__tstate); | |
11975 | if (PyErr_Occurred()) SWIG_fail; | |
11976 | } | |
093d3ff1 RD |
11977 | { |
11978 | resultobj = SWIG_From_int((int)(result)); | |
11979 | } | |
d14a1e28 RD |
11980 | return resultobj; |
11981 | fail: | |
11982 | return NULL; | |
11983 | } | |
11984 | ||
11985 | ||
c32bde28 | 11986 | static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11987 | PyObject *resultobj; |
11988 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11989 | wxString result; | |
11990 | PyObject * obj0 = 0 ; | |
11991 | char *kwnames[] = { | |
11992 | (char *) "self", NULL | |
11993 | }; | |
11994 | ||
11995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
11997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11998 | { |
11999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12000 | result = (arg1)->GetProductName(); | |
12001 | ||
12002 | wxPyEndAllowThreads(__tstate); | |
12003 | if (PyErr_Occurred()) SWIG_fail; | |
12004 | } | |
12005 | { | |
12006 | #if wxUSE_UNICODE | |
12007 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12008 | #else | |
12009 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12010 | #endif | |
12011 | } | |
12012 | return resultobj; | |
12013 | fail: | |
12014 | return NULL; | |
12015 | } | |
12016 | ||
12017 | ||
c32bde28 | 12018 | static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12019 | PyObject *resultobj; |
12020 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12021 | int result; | |
12022 | PyObject * obj0 = 0 ; | |
12023 | char *kwnames[] = { | |
12024 | (char *) "self", NULL | |
12025 | }; | |
12026 | ||
12027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12028 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12029 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12030 | { |
12031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12032 | result = (int)(arg1)->GetXMin(); | |
12033 | ||
12034 | wxPyEndAllowThreads(__tstate); | |
12035 | if (PyErr_Occurred()) SWIG_fail; | |
12036 | } | |
093d3ff1 RD |
12037 | { |
12038 | resultobj = SWIG_From_int((int)(result)); | |
12039 | } | |
d14a1e28 RD |
12040 | return resultobj; |
12041 | fail: | |
12042 | return NULL; | |
12043 | } | |
12044 | ||
12045 | ||
c32bde28 | 12046 | static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12047 | PyObject *resultobj; |
12048 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12049 | int result; | |
12050 | PyObject * obj0 = 0 ; | |
12051 | char *kwnames[] = { | |
12052 | (char *) "self", NULL | |
12053 | }; | |
12054 | ||
12055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12058 | { |
12059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12060 | result = (int)(arg1)->GetYMin(); | |
12061 | ||
12062 | wxPyEndAllowThreads(__tstate); | |
12063 | if (PyErr_Occurred()) SWIG_fail; | |
12064 | } | |
093d3ff1 RD |
12065 | { |
12066 | resultobj = SWIG_From_int((int)(result)); | |
12067 | } | |
d14a1e28 RD |
12068 | return resultobj; |
12069 | fail: | |
12070 | return NULL; | |
12071 | } | |
12072 | ||
12073 | ||
c32bde28 | 12074 | static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12075 | PyObject *resultobj; |
12076 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12077 | int result; | |
12078 | PyObject * obj0 = 0 ; | |
12079 | char *kwnames[] = { | |
12080 | (char *) "self", NULL | |
12081 | }; | |
12082 | ||
12083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12084 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12086 | { |
12087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12088 | result = (int)(arg1)->GetZMin(); | |
12089 | ||
12090 | wxPyEndAllowThreads(__tstate); | |
12091 | if (PyErr_Occurred()) SWIG_fail; | |
12092 | } | |
093d3ff1 RD |
12093 | { |
12094 | resultobj = SWIG_From_int((int)(result)); | |
12095 | } | |
d14a1e28 RD |
12096 | return resultobj; |
12097 | fail: | |
12098 | return NULL; | |
12099 | } | |
12100 | ||
12101 | ||
c32bde28 | 12102 | static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12103 | PyObject *resultobj; |
12104 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12105 | int result; | |
12106 | PyObject * obj0 = 0 ; | |
12107 | char *kwnames[] = { | |
12108 | (char *) "self", NULL | |
12109 | }; | |
12110 | ||
12111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12112 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12113 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12114 | { |
12115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12116 | result = (int)(arg1)->GetXMax(); | |
12117 | ||
12118 | wxPyEndAllowThreads(__tstate); | |
12119 | if (PyErr_Occurred()) SWIG_fail; | |
12120 | } | |
093d3ff1 RD |
12121 | { |
12122 | resultobj = SWIG_From_int((int)(result)); | |
12123 | } | |
d14a1e28 RD |
12124 | return resultobj; |
12125 | fail: | |
12126 | return NULL; | |
12127 | } | |
12128 | ||
12129 | ||
c32bde28 | 12130 | static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12131 | PyObject *resultobj; |
12132 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12133 | int result; | |
12134 | PyObject * obj0 = 0 ; | |
12135 | char *kwnames[] = { | |
12136 | (char *) "self", NULL | |
12137 | }; | |
12138 | ||
12139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12142 | { |
12143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12144 | result = (int)(arg1)->GetYMax(); | |
12145 | ||
12146 | wxPyEndAllowThreads(__tstate); | |
12147 | if (PyErr_Occurred()) SWIG_fail; | |
12148 | } | |
093d3ff1 RD |
12149 | { |
12150 | resultobj = SWIG_From_int((int)(result)); | |
12151 | } | |
d14a1e28 RD |
12152 | return resultobj; |
12153 | fail: | |
12154 | return NULL; | |
12155 | } | |
12156 | ||
12157 | ||
c32bde28 | 12158 | static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12159 | PyObject *resultobj; |
12160 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12161 | int result; | |
12162 | PyObject * obj0 = 0 ; | |
12163 | char *kwnames[] = { | |
12164 | (char *) "self", NULL | |
12165 | }; | |
12166 | ||
12167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12170 | { |
12171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12172 | result = (int)(arg1)->GetZMax(); | |
12173 | ||
12174 | wxPyEndAllowThreads(__tstate); | |
12175 | if (PyErr_Occurred()) SWIG_fail; | |
12176 | } | |
093d3ff1 RD |
12177 | { |
12178 | resultobj = SWIG_From_int((int)(result)); | |
12179 | } | |
d14a1e28 RD |
12180 | return resultobj; |
12181 | fail: | |
12182 | return NULL; | |
12183 | } | |
12184 | ||
12185 | ||
c32bde28 | 12186 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12187 | PyObject *resultobj; |
12188 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12189 | int result; | |
12190 | PyObject * obj0 = 0 ; | |
12191 | char *kwnames[] = { | |
12192 | (char *) "self", NULL | |
12193 | }; | |
12194 | ||
12195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12198 | { |
12199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12200 | result = (int)(arg1)->GetNumberButtons(); | |
12201 | ||
12202 | wxPyEndAllowThreads(__tstate); | |
12203 | if (PyErr_Occurred()) SWIG_fail; | |
12204 | } | |
093d3ff1 RD |
12205 | { |
12206 | resultobj = SWIG_From_int((int)(result)); | |
12207 | } | |
d14a1e28 RD |
12208 | return resultobj; |
12209 | fail: | |
12210 | return NULL; | |
12211 | } | |
12212 | ||
12213 | ||
c32bde28 | 12214 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12215 | PyObject *resultobj; |
12216 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12217 | int result; | |
12218 | PyObject * obj0 = 0 ; | |
12219 | char *kwnames[] = { | |
12220 | (char *) "self", NULL | |
12221 | }; | |
12222 | ||
12223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12224 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12225 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12226 | { |
12227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12228 | result = (int)(arg1)->GetNumberAxes(); | |
12229 | ||
12230 | wxPyEndAllowThreads(__tstate); | |
12231 | if (PyErr_Occurred()) SWIG_fail; | |
12232 | } | |
093d3ff1 RD |
12233 | { |
12234 | resultobj = SWIG_From_int((int)(result)); | |
12235 | } | |
d14a1e28 RD |
12236 | return resultobj; |
12237 | fail: | |
12238 | return NULL; | |
12239 | } | |
12240 | ||
12241 | ||
c32bde28 | 12242 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12243 | PyObject *resultobj; |
12244 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12245 | int result; | |
12246 | PyObject * obj0 = 0 ; | |
12247 | char *kwnames[] = { | |
12248 | (char *) "self", NULL | |
12249 | }; | |
12250 | ||
12251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12252 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12254 | { |
12255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12256 | result = (int)(arg1)->GetMaxButtons(); | |
12257 | ||
12258 | wxPyEndAllowThreads(__tstate); | |
12259 | if (PyErr_Occurred()) SWIG_fail; | |
12260 | } | |
093d3ff1 RD |
12261 | { |
12262 | resultobj = SWIG_From_int((int)(result)); | |
12263 | } | |
d14a1e28 RD |
12264 | return resultobj; |
12265 | fail: | |
12266 | return NULL; | |
12267 | } | |
12268 | ||
12269 | ||
c32bde28 | 12270 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12271 | PyObject *resultobj; |
12272 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12273 | int result; | |
12274 | PyObject * obj0 = 0 ; | |
12275 | char *kwnames[] = { | |
12276 | (char *) "self", NULL | |
12277 | }; | |
12278 | ||
12279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12282 | { |
12283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12284 | result = (int)(arg1)->GetMaxAxes(); | |
12285 | ||
12286 | wxPyEndAllowThreads(__tstate); | |
12287 | if (PyErr_Occurred()) SWIG_fail; | |
12288 | } | |
093d3ff1 RD |
12289 | { |
12290 | resultobj = SWIG_From_int((int)(result)); | |
12291 | } | |
d14a1e28 RD |
12292 | return resultobj; |
12293 | fail: | |
12294 | return NULL; | |
12295 | } | |
12296 | ||
12297 | ||
c32bde28 | 12298 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12299 | PyObject *resultobj; |
12300 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12301 | int result; | |
12302 | PyObject * obj0 = 0 ; | |
12303 | char *kwnames[] = { | |
12304 | (char *) "self", NULL | |
12305 | }; | |
12306 | ||
12307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12310 | { |
12311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12312 | result = (int)(arg1)->GetPollingMin(); | |
12313 | ||
12314 | wxPyEndAllowThreads(__tstate); | |
12315 | if (PyErr_Occurred()) SWIG_fail; | |
12316 | } | |
093d3ff1 RD |
12317 | { |
12318 | resultobj = SWIG_From_int((int)(result)); | |
12319 | } | |
d14a1e28 RD |
12320 | return resultobj; |
12321 | fail: | |
12322 | return NULL; | |
12323 | } | |
12324 | ||
12325 | ||
c32bde28 | 12326 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12327 | PyObject *resultobj; |
12328 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12329 | int result; | |
12330 | PyObject * obj0 = 0 ; | |
12331 | char *kwnames[] = { | |
12332 | (char *) "self", NULL | |
12333 | }; | |
12334 | ||
12335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12338 | { |
12339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12340 | result = (int)(arg1)->GetPollingMax(); | |
12341 | ||
12342 | wxPyEndAllowThreads(__tstate); | |
12343 | if (PyErr_Occurred()) SWIG_fail; | |
12344 | } | |
093d3ff1 RD |
12345 | { |
12346 | resultobj = SWIG_From_int((int)(result)); | |
12347 | } | |
d14a1e28 RD |
12348 | return resultobj; |
12349 | fail: | |
12350 | return NULL; | |
12351 | } | |
12352 | ||
12353 | ||
c32bde28 | 12354 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12355 | PyObject *resultobj; |
12356 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12357 | int result; | |
12358 | PyObject * obj0 = 0 ; | |
12359 | char *kwnames[] = { | |
12360 | (char *) "self", NULL | |
12361 | }; | |
12362 | ||
12363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12366 | { |
12367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12368 | result = (int)(arg1)->GetRudderMin(); | |
12369 | ||
12370 | wxPyEndAllowThreads(__tstate); | |
12371 | if (PyErr_Occurred()) SWIG_fail; | |
12372 | } | |
093d3ff1 RD |
12373 | { |
12374 | resultobj = SWIG_From_int((int)(result)); | |
12375 | } | |
d14a1e28 RD |
12376 | return resultobj; |
12377 | fail: | |
12378 | return NULL; | |
12379 | } | |
12380 | ||
12381 | ||
c32bde28 | 12382 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12383 | PyObject *resultobj; |
12384 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12385 | int result; | |
12386 | PyObject * obj0 = 0 ; | |
12387 | char *kwnames[] = { | |
12388 | (char *) "self", NULL | |
12389 | }; | |
12390 | ||
12391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12394 | { |
12395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12396 | result = (int)(arg1)->GetRudderMax(); | |
12397 | ||
12398 | wxPyEndAllowThreads(__tstate); | |
12399 | if (PyErr_Occurred()) SWIG_fail; | |
12400 | } | |
093d3ff1 RD |
12401 | { |
12402 | resultobj = SWIG_From_int((int)(result)); | |
12403 | } | |
d14a1e28 RD |
12404 | return resultobj; |
12405 | fail: | |
12406 | return NULL; | |
12407 | } | |
12408 | ||
12409 | ||
c32bde28 | 12410 | static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12411 | PyObject *resultobj; |
12412 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12413 | int result; | |
12414 | PyObject * obj0 = 0 ; | |
12415 | char *kwnames[] = { | |
12416 | (char *) "self", NULL | |
12417 | }; | |
12418 | ||
12419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12420 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12421 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12422 | { |
12423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12424 | result = (int)(arg1)->GetUMin(); | |
12425 | ||
12426 | wxPyEndAllowThreads(__tstate); | |
12427 | if (PyErr_Occurred()) SWIG_fail; | |
12428 | } | |
093d3ff1 RD |
12429 | { |
12430 | resultobj = SWIG_From_int((int)(result)); | |
12431 | } | |
d14a1e28 RD |
12432 | return resultobj; |
12433 | fail: | |
12434 | return NULL; | |
12435 | } | |
12436 | ||
12437 | ||
c32bde28 | 12438 | static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12439 | PyObject *resultobj; |
12440 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12441 | int result; | |
12442 | PyObject * obj0 = 0 ; | |
12443 | char *kwnames[] = { | |
12444 | (char *) "self", NULL | |
12445 | }; | |
12446 | ||
12447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12448 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12449 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12450 | { |
12451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12452 | result = (int)(arg1)->GetUMax(); | |
12453 | ||
12454 | wxPyEndAllowThreads(__tstate); | |
12455 | if (PyErr_Occurred()) SWIG_fail; | |
12456 | } | |
093d3ff1 RD |
12457 | { |
12458 | resultobj = SWIG_From_int((int)(result)); | |
12459 | } | |
d14a1e28 RD |
12460 | return resultobj; |
12461 | fail: | |
12462 | return NULL; | |
12463 | } | |
12464 | ||
12465 | ||
c32bde28 | 12466 | static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12467 | PyObject *resultobj; |
12468 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12469 | int result; | |
12470 | PyObject * obj0 = 0 ; | |
12471 | char *kwnames[] = { | |
12472 | (char *) "self", NULL | |
12473 | }; | |
12474 | ||
12475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12478 | { |
12479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12480 | result = (int)(arg1)->GetVMin(); | |
12481 | ||
12482 | wxPyEndAllowThreads(__tstate); | |
12483 | if (PyErr_Occurred()) SWIG_fail; | |
12484 | } | |
093d3ff1 RD |
12485 | { |
12486 | resultobj = SWIG_From_int((int)(result)); | |
12487 | } | |
d14a1e28 RD |
12488 | return resultobj; |
12489 | fail: | |
12490 | return NULL; | |
12491 | } | |
12492 | ||
12493 | ||
c32bde28 | 12494 | static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12495 | PyObject *resultobj; |
12496 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12497 | int result; | |
12498 | PyObject * obj0 = 0 ; | |
12499 | char *kwnames[] = { | |
12500 | (char *) "self", NULL | |
12501 | }; | |
12502 | ||
12503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12504 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12505 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12506 | { |
12507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12508 | result = (int)(arg1)->GetVMax(); | |
12509 | ||
12510 | wxPyEndAllowThreads(__tstate); | |
12511 | if (PyErr_Occurred()) SWIG_fail; | |
12512 | } | |
093d3ff1 RD |
12513 | { |
12514 | resultobj = SWIG_From_int((int)(result)); | |
12515 | } | |
d14a1e28 RD |
12516 | return resultobj; |
12517 | fail: | |
12518 | return NULL; | |
12519 | } | |
12520 | ||
12521 | ||
c32bde28 | 12522 | static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12523 | PyObject *resultobj; |
12524 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12525 | bool result; | |
12526 | PyObject * obj0 = 0 ; | |
12527 | char *kwnames[] = { | |
12528 | (char *) "self", NULL | |
12529 | }; | |
12530 | ||
12531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12532 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12533 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12534 | { |
12535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12536 | result = (bool)(arg1)->HasRudder(); | |
12537 | ||
12538 | wxPyEndAllowThreads(__tstate); | |
12539 | if (PyErr_Occurred()) SWIG_fail; | |
12540 | } | |
4f89f6a3 RD |
12541 | { |
12542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12543 | } | |
d14a1e28 RD |
12544 | return resultobj; |
12545 | fail: | |
12546 | return NULL; | |
12547 | } | |
12548 | ||
12549 | ||
c32bde28 | 12550 | static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12551 | PyObject *resultobj; |
12552 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12553 | bool result; | |
12554 | PyObject * obj0 = 0 ; | |
12555 | char *kwnames[] = { | |
12556 | (char *) "self", NULL | |
12557 | }; | |
12558 | ||
12559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12562 | { |
12563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12564 | result = (bool)(arg1)->HasZ(); | |
12565 | ||
12566 | wxPyEndAllowThreads(__tstate); | |
12567 | if (PyErr_Occurred()) SWIG_fail; | |
12568 | } | |
4f89f6a3 RD |
12569 | { |
12570 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12571 | } | |
d14a1e28 RD |
12572 | return resultobj; |
12573 | fail: | |
12574 | return NULL; | |
12575 | } | |
12576 | ||
12577 | ||
c32bde28 | 12578 | static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12579 | PyObject *resultobj; |
12580 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12581 | bool result; | |
12582 | PyObject * obj0 = 0 ; | |
12583 | char *kwnames[] = { | |
12584 | (char *) "self", NULL | |
12585 | }; | |
12586 | ||
12587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12590 | { |
12591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12592 | result = (bool)(arg1)->HasU(); | |
12593 | ||
12594 | wxPyEndAllowThreads(__tstate); | |
12595 | if (PyErr_Occurred()) SWIG_fail; | |
12596 | } | |
4f89f6a3 RD |
12597 | { |
12598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12599 | } | |
d14a1e28 RD |
12600 | return resultobj; |
12601 | fail: | |
12602 | return NULL; | |
12603 | } | |
12604 | ||
12605 | ||
c32bde28 | 12606 | static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12607 | PyObject *resultobj; |
12608 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12609 | bool result; | |
12610 | PyObject * obj0 = 0 ; | |
12611 | char *kwnames[] = { | |
12612 | (char *) "self", NULL | |
12613 | }; | |
12614 | ||
12615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12616 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12618 | { |
12619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12620 | result = (bool)(arg1)->HasV(); | |
12621 | ||
12622 | wxPyEndAllowThreads(__tstate); | |
12623 | if (PyErr_Occurred()) SWIG_fail; | |
12624 | } | |
4f89f6a3 RD |
12625 | { |
12626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12627 | } | |
d14a1e28 RD |
12628 | return resultobj; |
12629 | fail: | |
12630 | return NULL; | |
12631 | } | |
12632 | ||
12633 | ||
c32bde28 | 12634 | static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12635 | PyObject *resultobj; |
12636 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12637 | bool result; | |
12638 | PyObject * obj0 = 0 ; | |
12639 | char *kwnames[] = { | |
12640 | (char *) "self", NULL | |
12641 | }; | |
12642 | ||
12643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12646 | { |
12647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12648 | result = (bool)(arg1)->HasPOV(); | |
12649 | ||
12650 | wxPyEndAllowThreads(__tstate); | |
12651 | if (PyErr_Occurred()) SWIG_fail; | |
12652 | } | |
4f89f6a3 RD |
12653 | { |
12654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12655 | } | |
d14a1e28 RD |
12656 | return resultobj; |
12657 | fail: | |
12658 | return NULL; | |
12659 | } | |
12660 | ||
12661 | ||
c32bde28 | 12662 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12663 | PyObject *resultobj; |
12664 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12665 | bool result; | |
12666 | PyObject * obj0 = 0 ; | |
12667 | char *kwnames[] = { | |
12668 | (char *) "self", NULL | |
12669 | }; | |
12670 | ||
12671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12674 | { |
12675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12676 | result = (bool)(arg1)->HasPOV4Dir(); | |
12677 | ||
12678 | wxPyEndAllowThreads(__tstate); | |
12679 | if (PyErr_Occurred()) SWIG_fail; | |
12680 | } | |
4f89f6a3 RD |
12681 | { |
12682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12683 | } | |
d14a1e28 RD |
12684 | return resultobj; |
12685 | fail: | |
12686 | return NULL; | |
12687 | } | |
12688 | ||
12689 | ||
c32bde28 | 12690 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12691 | PyObject *resultobj; |
12692 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12693 | bool result; | |
12694 | PyObject * obj0 = 0 ; | |
12695 | char *kwnames[] = { | |
12696 | (char *) "self", NULL | |
12697 | }; | |
12698 | ||
12699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12700 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12701 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12702 | { |
12703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12704 | result = (bool)(arg1)->HasPOVCTS(); | |
12705 | ||
12706 | wxPyEndAllowThreads(__tstate); | |
12707 | if (PyErr_Occurred()) SWIG_fail; | |
12708 | } | |
4f89f6a3 RD |
12709 | { |
12710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12711 | } | |
d14a1e28 RD |
12712 | return resultobj; |
12713 | fail: | |
12714 | return NULL; | |
12715 | } | |
12716 | ||
12717 | ||
c32bde28 | 12718 | static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12719 | PyObject *resultobj; |
12720 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12721 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12722 | int arg3 = (int) 0 ; | |
12723 | bool result; | |
12724 | PyObject * obj0 = 0 ; | |
12725 | PyObject * obj1 = 0 ; | |
994141e6 | 12726 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12727 | char *kwnames[] = { |
12728 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
12729 | }; | |
12730 | ||
994141e6 | 12731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
12732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12734 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12735 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 12736 | if (obj2) { |
093d3ff1 RD |
12737 | { |
12738 | arg3 = (int)(SWIG_As_int(obj2)); | |
12739 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12740 | } | |
994141e6 | 12741 | } |
d14a1e28 RD |
12742 | { |
12743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12744 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
12745 | ||
12746 | wxPyEndAllowThreads(__tstate); | |
12747 | if (PyErr_Occurred()) SWIG_fail; | |
12748 | } | |
4f89f6a3 RD |
12749 | { |
12750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12751 | } | |
d14a1e28 RD |
12752 | return resultobj; |
12753 | fail: | |
12754 | return NULL; | |
12755 | } | |
12756 | ||
12757 | ||
c32bde28 | 12758 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12759 | PyObject *resultobj; |
12760 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
12761 | bool result; | |
12762 | PyObject * obj0 = 0 ; | |
12763 | char *kwnames[] = { | |
12764 | (char *) "self", NULL | |
12765 | }; | |
12766 | ||
12767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12768 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystick, SWIG_POINTER_EXCEPTION | 0); |
12769 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12770 | { |
12771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12772 | result = (bool)(arg1)->ReleaseCapture(); | |
12773 | ||
12774 | wxPyEndAllowThreads(__tstate); | |
12775 | if (PyErr_Occurred()) SWIG_fail; | |
12776 | } | |
4f89f6a3 RD |
12777 | { |
12778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12779 | } | |
d14a1e28 RD |
12780 | return resultobj; |
12781 | fail: | |
12782 | return NULL; | |
12783 | } | |
12784 | ||
12785 | ||
c32bde28 | 12786 | static PyObject * Joystick_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12787 | PyObject *obj; |
12788 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12789 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
12790 | Py_INCREF(obj); | |
12791 | return Py_BuildValue((char *)""); | |
12792 | } | |
c32bde28 | 12793 | static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12794 | PyObject *resultobj; |
12795 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12796 | int arg2 = (int) 0 ; | |
12797 | int arg3 = (int) wxJOYSTICK1 ; | |
12798 | int arg4 = (int) 0 ; | |
12799 | wxJoystickEvent *result; | |
994141e6 RD |
12800 | PyObject * obj0 = 0 ; |
12801 | PyObject * obj1 = 0 ; | |
12802 | PyObject * obj2 = 0 ; | |
12803 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12804 | char *kwnames[] = { |
12805 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
12806 | }; | |
12807 | ||
994141e6 RD |
12808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12809 | if (obj0) { | |
093d3ff1 RD |
12810 | { |
12811 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
12812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12813 | } | |
994141e6 RD |
12814 | } |
12815 | if (obj1) { | |
093d3ff1 RD |
12816 | { |
12817 | arg2 = (int)(SWIG_As_int(obj1)); | |
12818 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12819 | } | |
994141e6 RD |
12820 | } |
12821 | if (obj2) { | |
093d3ff1 RD |
12822 | { |
12823 | arg3 = (int)(SWIG_As_int(obj2)); | |
12824 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12825 | } | |
994141e6 RD |
12826 | } |
12827 | if (obj3) { | |
093d3ff1 RD |
12828 | { |
12829 | arg4 = (int)(SWIG_As_int(obj3)); | |
12830 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12831 | } | |
994141e6 | 12832 | } |
d14a1e28 RD |
12833 | { |
12834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12835 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
12836 | ||
12837 | wxPyEndAllowThreads(__tstate); | |
12838 | if (PyErr_Occurred()) SWIG_fail; | |
12839 | } | |
15afbcd0 | 12840 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); |
d14a1e28 RD |
12841 | return resultobj; |
12842 | fail: | |
12843 | return NULL; | |
12844 | } | |
12845 | ||
12846 | ||
c32bde28 | 12847 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12848 | PyObject *resultobj; |
12849 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12850 | wxPoint result; | |
12851 | PyObject * obj0 = 0 ; | |
12852 | char *kwnames[] = { | |
12853 | (char *) "self", NULL | |
12854 | }; | |
12855 | ||
12856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
12858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12859 | { |
12860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12861 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
12862 | ||
12863 | wxPyEndAllowThreads(__tstate); | |
12864 | if (PyErr_Occurred()) SWIG_fail; | |
12865 | } | |
12866 | { | |
12867 | wxPoint * resultptr; | |
093d3ff1 | 12868 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 12869 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
12870 | } |
12871 | return resultobj; | |
12872 | fail: | |
12873 | return NULL; | |
12874 | } | |
12875 | ||
12876 | ||
c32bde28 | 12877 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12878 | PyObject *resultobj; |
12879 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12880 | int result; | |
12881 | PyObject * obj0 = 0 ; | |
12882 | char *kwnames[] = { | |
12883 | (char *) "self", NULL | |
12884 | }; | |
12885 | ||
12886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
12888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12889 | { |
12890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12891 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
12892 | ||
12893 | wxPyEndAllowThreads(__tstate); | |
12894 | if (PyErr_Occurred()) SWIG_fail; | |
12895 | } | |
093d3ff1 RD |
12896 | { |
12897 | resultobj = SWIG_From_int((int)(result)); | |
12898 | } | |
d14a1e28 RD |
12899 | return resultobj; |
12900 | fail: | |
12901 | return NULL; | |
12902 | } | |
12903 | ||
12904 | ||
c32bde28 | 12905 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12906 | PyObject *resultobj; |
12907 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12908 | int result; | |
12909 | PyObject * obj0 = 0 ; | |
12910 | char *kwnames[] = { | |
12911 | (char *) "self", NULL | |
12912 | }; | |
12913 | ||
12914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12915 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
12916 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12917 | { |
12918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12919 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
12920 | ||
12921 | wxPyEndAllowThreads(__tstate); | |
12922 | if (PyErr_Occurred()) SWIG_fail; | |
12923 | } | |
093d3ff1 RD |
12924 | { |
12925 | resultobj = SWIG_From_int((int)(result)); | |
12926 | } | |
d14a1e28 RD |
12927 | return resultobj; |
12928 | fail: | |
12929 | return NULL; | |
12930 | } | |
12931 | ||
12932 | ||
c32bde28 | 12933 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12934 | PyObject *resultobj; |
12935 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12936 | int result; | |
12937 | PyObject * obj0 = 0 ; | |
12938 | char *kwnames[] = { | |
12939 | (char *) "self", NULL | |
12940 | }; | |
12941 | ||
12942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12943 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
12944 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12945 | { |
12946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12947 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
12948 | ||
12949 | wxPyEndAllowThreads(__tstate); | |
12950 | if (PyErr_Occurred()) SWIG_fail; | |
12951 | } | |
093d3ff1 RD |
12952 | { |
12953 | resultobj = SWIG_From_int((int)(result)); | |
12954 | } | |
d14a1e28 RD |
12955 | return resultobj; |
12956 | fail: | |
12957 | return NULL; | |
12958 | } | |
12959 | ||
12960 | ||
c32bde28 | 12961 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12962 | PyObject *resultobj; |
12963 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12964 | int result; | |
12965 | PyObject * obj0 = 0 ; | |
12966 | char *kwnames[] = { | |
12967 | (char *) "self", NULL | |
12968 | }; | |
12969 | ||
12970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12971 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
12972 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12973 | { |
12974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12975 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
12976 | ||
12977 | wxPyEndAllowThreads(__tstate); | |
12978 | if (PyErr_Occurred()) SWIG_fail; | |
12979 | } | |
093d3ff1 RD |
12980 | { |
12981 | resultobj = SWIG_From_int((int)(result)); | |
12982 | } | |
d14a1e28 RD |
12983 | return resultobj; |
12984 | fail: | |
12985 | return NULL; | |
12986 | } | |
12987 | ||
12988 | ||
c32bde28 | 12989 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12990 | PyObject *resultobj; |
12991 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12992 | int arg2 ; | |
12993 | PyObject * obj0 = 0 ; | |
994141e6 | 12994 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12995 | char *kwnames[] = { |
12996 | (char *) "self",(char *) "stick", NULL | |
12997 | }; | |
12998 | ||
994141e6 | 12999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13000 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13001 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13002 | { | |
13003 | arg2 = (int)(SWIG_As_int(obj1)); | |
13004 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13005 | } | |
d14a1e28 RD |
13006 | { |
13007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13008 | (arg1)->SetJoystick(arg2); | |
13009 | ||
13010 | wxPyEndAllowThreads(__tstate); | |
13011 | if (PyErr_Occurred()) SWIG_fail; | |
13012 | } | |
13013 | Py_INCREF(Py_None); resultobj = Py_None; | |
13014 | return resultobj; | |
13015 | fail: | |
13016 | return NULL; | |
13017 | } | |
13018 | ||
13019 | ||
c32bde28 | 13020 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13021 | PyObject *resultobj; |
13022 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13023 | int arg2 ; | |
13024 | PyObject * obj0 = 0 ; | |
994141e6 | 13025 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13026 | char *kwnames[] = { |
13027 | (char *) "self",(char *) "state", NULL | |
13028 | }; | |
13029 | ||
994141e6 | 13030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13031 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13032 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13033 | { | |
13034 | arg2 = (int)(SWIG_As_int(obj1)); | |
13035 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13036 | } | |
d14a1e28 RD |
13037 | { |
13038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13039 | (arg1)->SetButtonState(arg2); | |
13040 | ||
13041 | wxPyEndAllowThreads(__tstate); | |
13042 | if (PyErr_Occurred()) SWIG_fail; | |
13043 | } | |
13044 | Py_INCREF(Py_None); resultobj = Py_None; | |
13045 | return resultobj; | |
13046 | fail: | |
13047 | return NULL; | |
13048 | } | |
13049 | ||
13050 | ||
c32bde28 | 13051 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13052 | PyObject *resultobj; |
13053 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13054 | int arg2 ; | |
13055 | PyObject * obj0 = 0 ; | |
994141e6 | 13056 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13057 | char *kwnames[] = { |
13058 | (char *) "self",(char *) "change", NULL | |
13059 | }; | |
13060 | ||
994141e6 | 13061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13062 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13063 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13064 | { | |
13065 | arg2 = (int)(SWIG_As_int(obj1)); | |
13066 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13067 | } | |
d14a1e28 RD |
13068 | { |
13069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13070 | (arg1)->SetButtonChange(arg2); | |
13071 | ||
13072 | wxPyEndAllowThreads(__tstate); | |
13073 | if (PyErr_Occurred()) SWIG_fail; | |
13074 | } | |
13075 | Py_INCREF(Py_None); resultobj = Py_None; | |
13076 | return resultobj; | |
13077 | fail: | |
13078 | return NULL; | |
13079 | } | |
13080 | ||
13081 | ||
c32bde28 | 13082 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13083 | PyObject *resultobj; |
13084 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13085 | wxPoint *arg2 = 0 ; | |
13086 | wxPoint temp2 ; | |
13087 | PyObject * obj0 = 0 ; | |
13088 | PyObject * obj1 = 0 ; | |
13089 | char *kwnames[] = { | |
13090 | (char *) "self",(char *) "pos", NULL | |
13091 | }; | |
13092 | ||
13093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13096 | { |
13097 | arg2 = &temp2; | |
13098 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13099 | } | |
13100 | { | |
13101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13102 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
13103 | ||
13104 | wxPyEndAllowThreads(__tstate); | |
13105 | if (PyErr_Occurred()) SWIG_fail; | |
13106 | } | |
13107 | Py_INCREF(Py_None); resultobj = Py_None; | |
13108 | return resultobj; | |
13109 | fail: | |
13110 | return NULL; | |
13111 | } | |
13112 | ||
13113 | ||
c32bde28 | 13114 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13115 | PyObject *resultobj; |
13116 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13117 | int arg2 ; | |
13118 | PyObject * obj0 = 0 ; | |
994141e6 | 13119 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13120 | char *kwnames[] = { |
13121 | (char *) "self",(char *) "zPos", NULL | |
13122 | }; | |
13123 | ||
994141e6 | 13124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13127 | { | |
13128 | arg2 = (int)(SWIG_As_int(obj1)); | |
13129 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13130 | } | |
d14a1e28 RD |
13131 | { |
13132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13133 | (arg1)->SetZPosition(arg2); | |
13134 | ||
13135 | wxPyEndAllowThreads(__tstate); | |
13136 | if (PyErr_Occurred()) SWIG_fail; | |
13137 | } | |
13138 | Py_INCREF(Py_None); resultobj = Py_None; | |
13139 | return resultobj; | |
13140 | fail: | |
13141 | return NULL; | |
13142 | } | |
13143 | ||
13144 | ||
c32bde28 | 13145 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13146 | PyObject *resultobj; |
13147 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13148 | bool result; | |
13149 | PyObject * obj0 = 0 ; | |
13150 | char *kwnames[] = { | |
13151 | (char *) "self", NULL | |
13152 | }; | |
13153 | ||
13154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13155 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13156 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13157 | { |
13158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13159 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
13160 | ||
13161 | wxPyEndAllowThreads(__tstate); | |
13162 | if (PyErr_Occurred()) SWIG_fail; | |
13163 | } | |
4f89f6a3 RD |
13164 | { |
13165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13166 | } | |
d14a1e28 RD |
13167 | return resultobj; |
13168 | fail: | |
13169 | return NULL; | |
13170 | } | |
13171 | ||
13172 | ||
c32bde28 | 13173 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13174 | PyObject *resultobj; |
13175 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13176 | bool result; | |
13177 | PyObject * obj0 = 0 ; | |
13178 | char *kwnames[] = { | |
13179 | (char *) "self", NULL | |
13180 | }; | |
13181 | ||
13182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13183 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13184 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13185 | { |
13186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13187 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
13188 | ||
13189 | wxPyEndAllowThreads(__tstate); | |
13190 | if (PyErr_Occurred()) SWIG_fail; | |
13191 | } | |
4f89f6a3 RD |
13192 | { |
13193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13194 | } | |
d14a1e28 RD |
13195 | return resultobj; |
13196 | fail: | |
13197 | return NULL; | |
13198 | } | |
13199 | ||
13200 | ||
c32bde28 | 13201 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13202 | PyObject *resultobj; |
13203 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13204 | bool result; | |
13205 | PyObject * obj0 = 0 ; | |
13206 | char *kwnames[] = { | |
13207 | (char *) "self", NULL | |
13208 | }; | |
13209 | ||
13210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13213 | { |
13214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13215 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
13216 | ||
13217 | wxPyEndAllowThreads(__tstate); | |
13218 | if (PyErr_Occurred()) SWIG_fail; | |
13219 | } | |
4f89f6a3 RD |
13220 | { |
13221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13222 | } | |
d14a1e28 RD |
13223 | return resultobj; |
13224 | fail: | |
13225 | return NULL; | |
13226 | } | |
13227 | ||
13228 | ||
c32bde28 | 13229 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13230 | PyObject *resultobj; |
13231 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13232 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
13233 | bool result; | |
13234 | PyObject * obj0 = 0 ; | |
994141e6 | 13235 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13236 | char *kwnames[] = { |
13237 | (char *) "self",(char *) "but", NULL | |
13238 | }; | |
13239 | ||
994141e6 | 13240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13241 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13242 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 13243 | if (obj1) { |
093d3ff1 RD |
13244 | { |
13245 | arg2 = (int)(SWIG_As_int(obj1)); | |
13246 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13247 | } | |
994141e6 | 13248 | } |
d14a1e28 RD |
13249 | { |
13250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13251 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
13252 | ||
13253 | wxPyEndAllowThreads(__tstate); | |
13254 | if (PyErr_Occurred()) SWIG_fail; | |
13255 | } | |
4f89f6a3 RD |
13256 | { |
13257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13258 | } | |
d14a1e28 RD |
13259 | return resultobj; |
13260 | fail: | |
13261 | return NULL; | |
13262 | } | |
13263 | ||
13264 | ||
c32bde28 | 13265 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13266 | PyObject *resultobj; |
13267 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13268 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
13269 | bool result; | |
13270 | PyObject * obj0 = 0 ; | |
994141e6 | 13271 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13272 | char *kwnames[] = { |
13273 | (char *) "self",(char *) "but", NULL | |
13274 | }; | |
13275 | ||
994141e6 | 13276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 13279 | if (obj1) { |
093d3ff1 RD |
13280 | { |
13281 | arg2 = (int)(SWIG_As_int(obj1)); | |
13282 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13283 | } | |
994141e6 | 13284 | } |
d14a1e28 RD |
13285 | { |
13286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13287 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
13288 | ||
13289 | wxPyEndAllowThreads(__tstate); | |
13290 | if (PyErr_Occurred()) SWIG_fail; | |
13291 | } | |
4f89f6a3 RD |
13292 | { |
13293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13294 | } | |
d14a1e28 RD |
13295 | return resultobj; |
13296 | fail: | |
13297 | return NULL; | |
13298 | } | |
13299 | ||
13300 | ||
c32bde28 | 13301 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13302 | PyObject *resultobj; |
13303 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
13304 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
13305 | bool result; | |
13306 | PyObject * obj0 = 0 ; | |
994141e6 | 13307 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13308 | char *kwnames[] = { |
13309 | (char *) "self",(char *) "but", NULL | |
13310 | }; | |
13311 | ||
994141e6 | 13312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_EXCEPTION | 0); |
13314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 13315 | if (obj1) { |
093d3ff1 RD |
13316 | { |
13317 | arg2 = (int)(SWIG_As_int(obj1)); | |
13318 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13319 | } | |
994141e6 | 13320 | } |
d14a1e28 RD |
13321 | { |
13322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13323 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
13324 | ||
13325 | wxPyEndAllowThreads(__tstate); | |
13326 | if (PyErr_Occurred()) SWIG_fail; | |
13327 | } | |
4f89f6a3 RD |
13328 | { |
13329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13330 | } | |
d14a1e28 RD |
13331 | return resultobj; |
13332 | fail: | |
13333 | return NULL; | |
13334 | } | |
13335 | ||
13336 | ||
c32bde28 | 13337 | static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13338 | PyObject *obj; |
13339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13340 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
13341 | Py_INCREF(obj); | |
13342 | return Py_BuildValue((char *)""); | |
13343 | } | |
c32bde28 | 13344 | static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 13345 | PyObject *resultobj; |
36cadbf7 RD |
13346 | wxString const &arg1_defvalue = wxPyEmptyString ; |
13347 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4d5c3d91 | 13348 | wxSound *result; |
ae8162c8 | 13349 | bool temp1 = false ; |
d14a1e28 | 13350 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
13351 | char *kwnames[] = { |
13352 | (char *) "fileName", NULL | |
13353 | }; | |
d14a1e28 | 13354 | |
36cadbf7 RD |
13355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
13356 | if (obj0) { | |
13357 | { | |
13358 | arg1 = wxString_in_helper(obj0); | |
13359 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13360 | temp1 = true; |
36cadbf7 | 13361 | } |
d14a1e28 RD |
13362 | } |
13363 | { | |
e3b71cb8 | 13364 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 13365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36cadbf7 | 13366 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d14a1e28 RD |
13367 | |
13368 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13369 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13370 | } |
15afbcd0 | 13371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
13372 | { |
13373 | if (temp1) | |
13374 | delete arg1; | |
13375 | } | |
13376 | return resultobj; | |
13377 | fail: | |
13378 | { | |
13379 | if (temp1) | |
13380 | delete arg1; | |
13381 | } | |
13382 | return NULL; | |
13383 | } | |
13384 | ||
13385 | ||
c32bde28 | 13386 | static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 13387 | PyObject *resultobj; |
36cadbf7 | 13388 | PyObject *arg1 = (PyObject *) 0 ; |
4d5c3d91 | 13389 | wxSound *result; |
d14a1e28 | 13390 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
13391 | char *kwnames[] = { |
13392 | (char *) "data", NULL | |
13393 | }; | |
d14a1e28 | 13394 | |
36cadbf7 RD |
13395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
13396 | arg1 = obj0; | |
d14a1e28 | 13397 | { |
e3b71cb8 | 13398 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 13399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36cadbf7 | 13400 | result = (wxSound *)new_wxSound(arg1); |
d14a1e28 RD |
13401 | |
13402 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13403 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13404 | } |
15afbcd0 | 13405 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
13406 | return resultobj; |
13407 | fail: | |
4d5c3d91 RD |
13408 | return NULL; |
13409 | } | |
13410 | ||
13411 | ||
c32bde28 | 13412 | static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 13413 | PyObject *resultobj; |
4d5c3d91 | 13414 | wxSound *arg1 = (wxSound *) 0 ; |
d14a1e28 RD |
13415 | PyObject * obj0 = 0 ; |
13416 | char *kwnames[] = { | |
13417 | (char *) "self", NULL | |
13418 | }; | |
13419 | ||
4d5c3d91 | 13420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
13421 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
13422 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13423 | { |
13424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13425 | delete arg1; | |
13426 | ||
13427 | wxPyEndAllowThreads(__tstate); | |
13428 | if (PyErr_Occurred()) SWIG_fail; | |
13429 | } | |
13430 | Py_INCREF(Py_None); resultobj = Py_None; | |
13431 | return resultobj; | |
13432 | fail: | |
13433 | return NULL; | |
13434 | } | |
13435 | ||
13436 | ||
c32bde28 | 13437 | static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 13438 | PyObject *resultobj; |
4d5c3d91 RD |
13439 | wxSound *arg1 = (wxSound *) 0 ; |
13440 | wxString *arg2 = 0 ; | |
d14a1e28 | 13441 | bool result; |
ae8162c8 | 13442 | bool temp2 = false ; |
d14a1e28 | 13443 | PyObject * obj0 = 0 ; |
4d5c3d91 | 13444 | PyObject * obj1 = 0 ; |
36cadbf7 RD |
13445 | char *kwnames[] = { |
13446 | (char *) "self",(char *) "fileName", NULL | |
13447 | }; | |
d14a1e28 | 13448 | |
36cadbf7 | 13449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
13451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4d5c3d91 RD |
13452 | { |
13453 | arg2 = wxString_in_helper(obj1); | |
13454 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13455 | temp2 = true; |
4d5c3d91 | 13456 | } |
d14a1e28 RD |
13457 | { |
13458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 13459 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d14a1e28 RD |
13460 | |
13461 | wxPyEndAllowThreads(__tstate); | |
13462 | if (PyErr_Occurred()) SWIG_fail; | |
13463 | } | |
4f89f6a3 RD |
13464 | { |
13465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13466 | } | |
4d5c3d91 RD |
13467 | { |
13468 | if (temp2) | |
13469 | delete arg2; | |
13470 | } | |
d14a1e28 RD |
13471 | return resultobj; |
13472 | fail: | |
4d5c3d91 RD |
13473 | { |
13474 | if (temp2) | |
13475 | delete arg2; | |
13476 | } | |
d14a1e28 RD |
13477 | return NULL; |
13478 | } | |
13479 | ||
13480 | ||
c32bde28 | 13481 | static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 13482 | PyObject *resultobj; |
4d5c3d91 | 13483 | wxSound *arg1 = (wxSound *) 0 ; |
36cadbf7 | 13484 | PyObject *arg2 = (PyObject *) 0 ; |
d14a1e28 RD |
13485 | bool result; |
13486 | PyObject * obj0 = 0 ; | |
13487 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
13488 | char *kwnames[] = { |
13489 | (char *) "self",(char *) "data", NULL | |
13490 | }; | |
4d5c3d91 | 13491 | |
36cadbf7 | 13492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
13494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36cadbf7 | 13495 | arg2 = obj1; |
4d5c3d91 RD |
13496 | { |
13497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 13498 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
4d5c3d91 RD |
13499 | |
13500 | wxPyEndAllowThreads(__tstate); | |
13501 | if (PyErr_Occurred()) SWIG_fail; | |
13502 | } | |
4f89f6a3 RD |
13503 | { |
13504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13505 | } | |
4d5c3d91 RD |
13506 | return resultobj; |
13507 | fail: | |
13508 | return NULL; | |
13509 | } | |
13510 | ||
13511 | ||
c32bde28 | 13512 | static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
13513 | PyObject *resultobj; |
13514 | wxSound *arg1 = (wxSound *) 0 ; | |
13515 | bool result; | |
13516 | PyObject * obj0 = 0 ; | |
d14a1e28 | 13517 | char *kwnames[] = { |
4d5c3d91 | 13518 | (char *) "self", NULL |
d14a1e28 RD |
13519 | }; |
13520 | ||
4d5c3d91 | 13521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
13522 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
13523 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4d5c3d91 RD |
13524 | { |
13525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13526 | result = (bool)(arg1)->IsOk(); | |
13527 | ||
13528 | wxPyEndAllowThreads(__tstate); | |
13529 | if (PyErr_Occurred()) SWIG_fail; | |
13530 | } | |
4f89f6a3 RD |
13531 | { |
13532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13533 | } | |
4d5c3d91 RD |
13534 | return resultobj; |
13535 | fail: | |
13536 | return NULL; | |
13537 | } | |
13538 | ||
13539 | ||
c32bde28 | 13540 | static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
13541 | PyObject *resultobj; |
13542 | wxSound *arg1 = (wxSound *) 0 ; | |
13543 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
13544 | bool result; | |
13545 | PyObject * obj0 = 0 ; | |
13546 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
13547 | char *kwnames[] = { |
13548 | (char *) "self",(char *) "flags", NULL | |
13549 | }; | |
4d5c3d91 | 13550 | |
36cadbf7 | 13551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13552 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSound, SWIG_POINTER_EXCEPTION | 0); |
13553 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13554 | if (obj1) { |
093d3ff1 RD |
13555 | { |
13556 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
13557 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13558 | } | |
d14a1e28 | 13559 | } |
4d5c3d91 | 13560 | { |
e3b71cb8 | 13561 | if (!wxPyCheckForApp()) SWIG_fail; |
4d5c3d91 RD |
13562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13563 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
13564 | ||
13565 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13566 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 | 13567 | } |
4f89f6a3 RD |
13568 | { |
13569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13570 | } | |
4d5c3d91 RD |
13571 | return resultobj; |
13572 | fail: | |
13573 | return NULL; | |
13574 | } | |
13575 | ||
13576 | ||
c32bde28 | 13577 | static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
13578 | PyObject *resultobj; |
13579 | wxString *arg1 = 0 ; | |
13580 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
13581 | bool result; | |
ae8162c8 | 13582 | bool temp1 = false ; |
4d5c3d91 RD |
13583 | PyObject * obj0 = 0 ; |
13584 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
13585 | char *kwnames[] = { |
13586 | (char *) "filename",(char *) "flags", NULL | |
13587 | }; | |
4d5c3d91 | 13588 | |
36cadbf7 | 13589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
4d5c3d91 RD |
13590 | { |
13591 | arg1 = wxString_in_helper(obj0); | |
13592 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13593 | temp1 = true; |
4d5c3d91 RD |
13594 | } |
13595 | if (obj1) { | |
093d3ff1 RD |
13596 | { |
13597 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
13598 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13599 | } | |
d14a1e28 RD |
13600 | } |
13601 | { | |
e3b71cb8 | 13602 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 13603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 13604 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); |
d14a1e28 RD |
13605 | |
13606 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13607 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13608 | } |
4f89f6a3 RD |
13609 | { |
13610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13611 | } | |
4d5c3d91 RD |
13612 | { |
13613 | if (temp1) | |
13614 | delete arg1; | |
13615 | } | |
d14a1e28 RD |
13616 | return resultobj; |
13617 | fail: | |
4d5c3d91 RD |
13618 | { |
13619 | if (temp1) | |
13620 | delete arg1; | |
13621 | } | |
d14a1e28 RD |
13622 | return NULL; |
13623 | } | |
13624 | ||
13625 | ||
c32bde28 | 13626 | static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
13627 | PyObject *resultobj; |
13628 | char *kwnames[] = { | |
13629 | NULL | |
13630 | }; | |
13631 | ||
13632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
13633 | { | |
e3b71cb8 | 13634 | if (!wxPyCheckForApp()) SWIG_fail; |
4d5c3d91 RD |
13635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13636 | wxSound::Stop(); | |
13637 | ||
13638 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13639 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
13640 | } |
13641 | Py_INCREF(Py_None); resultobj = Py_None; | |
13642 | return resultobj; | |
13643 | fail: | |
13644 | return NULL; | |
13645 | } | |
13646 | ||
13647 | ||
c32bde28 | 13648 | static PyObject * Sound_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13649 | PyObject *obj; |
13650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4d5c3d91 | 13651 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); |
d14a1e28 RD |
13652 | Py_INCREF(obj); |
13653 | return Py_BuildValue((char *)""); | |
13654 | } | |
c32bde28 | 13655 | static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13656 | PyObject *resultobj; |
13657 | wxString *arg1 = 0 ; | |
13658 | wxString *arg2 = 0 ; | |
13659 | wxString *arg3 = 0 ; | |
13660 | wxString *arg4 = 0 ; | |
13661 | wxFileTypeInfo *result; | |
ae8162c8 RD |
13662 | bool temp1 = false ; |
13663 | bool temp2 = false ; | |
13664 | bool temp3 = false ; | |
13665 | bool temp4 = false ; | |
d14a1e28 RD |
13666 | PyObject * obj0 = 0 ; |
13667 | PyObject * obj1 = 0 ; | |
13668 | PyObject * obj2 = 0 ; | |
13669 | PyObject * obj3 = 0 ; | |
13670 | char *kwnames[] = { | |
13671 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
13672 | }; | |
13673 | ||
13674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13675 | { | |
13676 | arg1 = wxString_in_helper(obj0); | |
13677 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13678 | temp1 = true; |
d14a1e28 RD |
13679 | } |
13680 | { | |
13681 | arg2 = wxString_in_helper(obj1); | |
13682 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13683 | temp2 = true; |
d14a1e28 RD |
13684 | } |
13685 | { | |
13686 | arg3 = wxString_in_helper(obj2); | |
13687 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13688 | temp3 = true; |
d14a1e28 RD |
13689 | } |
13690 | { | |
13691 | arg4 = wxString_in_helper(obj3); | |
13692 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13693 | temp4 = true; |
d14a1e28 RD |
13694 | } |
13695 | { | |
13696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13697 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
13698 | ||
13699 | wxPyEndAllowThreads(__tstate); | |
13700 | if (PyErr_Occurred()) SWIG_fail; | |
13701 | } | |
15afbcd0 | 13702 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
13703 | { |
13704 | if (temp1) | |
13705 | delete arg1; | |
13706 | } | |
13707 | { | |
13708 | if (temp2) | |
13709 | delete arg2; | |
13710 | } | |
13711 | { | |
13712 | if (temp3) | |
13713 | delete arg3; | |
13714 | } | |
13715 | { | |
13716 | if (temp4) | |
13717 | delete arg4; | |
13718 | } | |
13719 | return resultobj; | |
13720 | fail: | |
13721 | { | |
13722 | if (temp1) | |
13723 | delete arg1; | |
13724 | } | |
13725 | { | |
13726 | if (temp2) | |
13727 | delete arg2; | |
13728 | } | |
13729 | { | |
13730 | if (temp3) | |
13731 | delete arg3; | |
13732 | } | |
13733 | { | |
13734 | if (temp4) | |
13735 | delete arg4; | |
13736 | } | |
13737 | return NULL; | |
13738 | } | |
13739 | ||
13740 | ||
c32bde28 | 13741 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13742 | PyObject *resultobj; |
13743 | wxArrayString *arg1 = 0 ; | |
13744 | wxFileTypeInfo *result; | |
ae8162c8 | 13745 | bool temp1 = false ; |
d14a1e28 RD |
13746 | PyObject * obj0 = 0 ; |
13747 | char *kwnames[] = { | |
13748 | (char *) "sArray", NULL | |
13749 | }; | |
13750 | ||
13751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
13752 | { | |
13753 | if (! PySequence_Check(obj0)) { | |
13754 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13755 | SWIG_fail; | |
13756 | } | |
13757 | arg1 = new wxArrayString; | |
ae8162c8 | 13758 | temp1 = true; |
d14a1e28 RD |
13759 | int i, len=PySequence_Length(obj0); |
13760 | for (i=0; i<len; i++) { | |
13761 | PyObject* item = PySequence_GetItem(obj0, i); | |
13762 | #if wxUSE_UNICODE | |
13763 | PyObject* str = PyObject_Unicode(item); | |
13764 | #else | |
13765 | PyObject* str = PyObject_Str(item); | |
13766 | #endif | |
74a57fcd | 13767 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13768 | arg1->Add(Py2wxString(str)); |
13769 | Py_DECREF(item); | |
13770 | Py_DECREF(str); | |
13771 | } | |
13772 | } | |
13773 | { | |
13774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13775 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
13776 | ||
13777 | wxPyEndAllowThreads(__tstate); | |
13778 | if (PyErr_Occurred()) SWIG_fail; | |
13779 | } | |
15afbcd0 | 13780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 | 13781 | { |
3adfb63b | 13782 | if (temp1) delete arg1; |
d14a1e28 RD |
13783 | } |
13784 | return resultobj; | |
13785 | fail: | |
13786 | { | |
3adfb63b | 13787 | if (temp1) delete arg1; |
d14a1e28 RD |
13788 | } |
13789 | return NULL; | |
13790 | } | |
13791 | ||
13792 | ||
c32bde28 | 13793 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13794 | PyObject *resultobj; |
13795 | wxFileTypeInfo *result; | |
13796 | char *kwnames[] = { | |
13797 | NULL | |
13798 | }; | |
13799 | ||
13800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
13801 | { | |
13802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13803 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
13804 | ||
13805 | wxPyEndAllowThreads(__tstate); | |
13806 | if (PyErr_Occurred()) SWIG_fail; | |
13807 | } | |
15afbcd0 | 13808 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
13809 | return resultobj; |
13810 | fail: | |
13811 | return NULL; | |
13812 | } | |
13813 | ||
13814 | ||
c32bde28 | 13815 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13816 | PyObject *resultobj; |
13817 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
13818 | bool result; | |
13819 | PyObject * obj0 = 0 ; | |
13820 | char *kwnames[] = { | |
13821 | (char *) "self", NULL | |
13822 | }; | |
13823 | ||
13824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
13826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13827 | { |
13828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13829 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
13830 | ||
13831 | wxPyEndAllowThreads(__tstate); | |
13832 | if (PyErr_Occurred()) SWIG_fail; | |
13833 | } | |
4f89f6a3 RD |
13834 | { |
13835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13836 | } | |
d14a1e28 RD |
13837 | return resultobj; |
13838 | fail: | |
13839 | return NULL; | |
13840 | } | |
13841 | ||
13842 | ||
c32bde28 | 13843 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13844 | PyObject *resultobj; |
13845 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
13846 | wxString *arg2 = 0 ; | |
13847 | int arg3 = (int) 0 ; | |
ae8162c8 | 13848 | bool temp2 = false ; |
d14a1e28 RD |
13849 | PyObject * obj0 = 0 ; |
13850 | PyObject * obj1 = 0 ; | |
994141e6 | 13851 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13852 | char *kwnames[] = { |
13853 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
13854 | }; | |
13855 | ||
994141e6 | 13856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
13857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
13858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13859 | { |
13860 | arg2 = wxString_in_helper(obj1); | |
13861 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13862 | temp2 = true; |
d14a1e28 | 13863 | } |
994141e6 | 13864 | if (obj2) { |
093d3ff1 RD |
13865 | { |
13866 | arg3 = (int)(SWIG_As_int(obj2)); | |
13867 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13868 | } | |
994141e6 | 13869 | } |
d14a1e28 RD |
13870 | { |
13871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13872 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
13873 | ||
13874 | wxPyEndAllowThreads(__tstate); | |
13875 | if (PyErr_Occurred()) SWIG_fail; | |
13876 | } | |
13877 | Py_INCREF(Py_None); resultobj = Py_None; | |
13878 | { | |
13879 | if (temp2) | |
13880 | delete arg2; | |
13881 | } | |
13882 | return resultobj; | |
13883 | fail: | |
13884 | { | |
13885 | if (temp2) | |
13886 | delete arg2; | |
13887 | } | |
13888 | return NULL; | |
13889 | } | |
13890 | ||
13891 | ||
c32bde28 | 13892 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13893 | PyObject *resultobj; |
13894 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
13895 | wxString *arg2 = 0 ; | |
ae8162c8 | 13896 | bool temp2 = false ; |
d14a1e28 RD |
13897 | PyObject * obj0 = 0 ; |
13898 | PyObject * obj1 = 0 ; | |
13899 | char *kwnames[] = { | |
13900 | (char *) "self",(char *) "shortDesc", NULL | |
13901 | }; | |
13902 | ||
13903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
13905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13906 | { |
13907 | arg2 = wxString_in_helper(obj1); | |
13908 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13909 | temp2 = true; |
d14a1e28 RD |
13910 | } |
13911 | { | |
13912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13913 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
13914 | ||
13915 | wxPyEndAllowThreads(__tstate); | |
13916 | if (PyErr_Occurred()) SWIG_fail; | |
13917 | } | |
13918 | Py_INCREF(Py_None); resultobj = Py_None; | |
13919 | { | |
13920 | if (temp2) | |
13921 | delete arg2; | |
13922 | } | |
13923 | return resultobj; | |
13924 | fail: | |
13925 | { | |
13926 | if (temp2) | |
13927 | delete arg2; | |
13928 | } | |
13929 | return NULL; | |
13930 | } | |
13931 | ||
13932 | ||
c32bde28 | 13933 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13934 | PyObject *resultobj; |
13935 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
13936 | wxString *result; | |
13937 | PyObject * obj0 = 0 ; | |
13938 | char *kwnames[] = { | |
13939 | (char *) "self", NULL | |
13940 | }; | |
13941 | ||
13942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13943 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
13944 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13945 | { |
13946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13947 | { | |
13948 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
13949 | result = (wxString *) &_result_ref; | |
13950 | } | |
13951 | ||
13952 | wxPyEndAllowThreads(__tstate); | |
13953 | if (PyErr_Occurred()) SWIG_fail; | |
13954 | } | |
cc6dd355 RD |
13955 | { |
13956 | #if wxUSE_UNICODE | |
13957 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13958 | #else | |
13959 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13960 | #endif | |
13961 | } | |
d14a1e28 RD |
13962 | return resultobj; |
13963 | fail: | |
13964 | return NULL; | |
13965 | } | |
13966 | ||
13967 | ||
c32bde28 | 13968 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13969 | PyObject *resultobj; |
13970 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
13971 | wxString *result; | |
13972 | PyObject * obj0 = 0 ; | |
13973 | char *kwnames[] = { | |
13974 | (char *) "self", NULL | |
13975 | }; | |
13976 | ||
13977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13978 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
13979 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13980 | { |
13981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13982 | { | |
13983 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
13984 | result = (wxString *) &_result_ref; | |
13985 | } | |
13986 | ||
13987 | wxPyEndAllowThreads(__tstate); | |
13988 | if (PyErr_Occurred()) SWIG_fail; | |
13989 | } | |
cc6dd355 RD |
13990 | { |
13991 | #if wxUSE_UNICODE | |
13992 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13993 | #else | |
13994 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13995 | #endif | |
13996 | } | |
d14a1e28 RD |
13997 | return resultobj; |
13998 | fail: | |
13999 | return NULL; | |
14000 | } | |
14001 | ||
14002 | ||
c32bde28 | 14003 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14004 | PyObject *resultobj; |
14005 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14006 | wxString *result; | |
14007 | PyObject * obj0 = 0 ; | |
14008 | char *kwnames[] = { | |
14009 | (char *) "self", NULL | |
14010 | }; | |
14011 | ||
14012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14015 | { |
14016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14017 | { | |
14018 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
14019 | result = (wxString *) &_result_ref; | |
14020 | } | |
14021 | ||
14022 | wxPyEndAllowThreads(__tstate); | |
14023 | if (PyErr_Occurred()) SWIG_fail; | |
14024 | } | |
cc6dd355 RD |
14025 | { |
14026 | #if wxUSE_UNICODE | |
14027 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14028 | #else | |
14029 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14030 | #endif | |
14031 | } | |
d14a1e28 RD |
14032 | return resultobj; |
14033 | fail: | |
14034 | return NULL; | |
14035 | } | |
14036 | ||
14037 | ||
c32bde28 | 14038 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14039 | PyObject *resultobj; |
14040 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14041 | wxString *result; | |
14042 | PyObject * obj0 = 0 ; | |
14043 | char *kwnames[] = { | |
14044 | (char *) "self", NULL | |
14045 | }; | |
14046 | ||
14047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14050 | { |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14052 | { | |
14053 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
14054 | result = (wxString *) &_result_ref; | |
14055 | } | |
14056 | ||
14057 | wxPyEndAllowThreads(__tstate); | |
14058 | if (PyErr_Occurred()) SWIG_fail; | |
14059 | } | |
cc6dd355 RD |
14060 | { |
14061 | #if wxUSE_UNICODE | |
14062 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14063 | #else | |
14064 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14065 | #endif | |
14066 | } | |
d14a1e28 RD |
14067 | return resultobj; |
14068 | fail: | |
14069 | return NULL; | |
14070 | } | |
14071 | ||
14072 | ||
c32bde28 | 14073 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14074 | PyObject *resultobj; |
14075 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14076 | wxString *result; | |
14077 | PyObject * obj0 = 0 ; | |
14078 | char *kwnames[] = { | |
14079 | (char *) "self", NULL | |
14080 | }; | |
14081 | ||
14082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14085 | { |
14086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14087 | { | |
14088 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
14089 | result = (wxString *) &_result_ref; | |
14090 | } | |
14091 | ||
14092 | wxPyEndAllowThreads(__tstate); | |
14093 | if (PyErr_Occurred()) SWIG_fail; | |
14094 | } | |
cc6dd355 RD |
14095 | { |
14096 | #if wxUSE_UNICODE | |
14097 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14098 | #else | |
14099 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14100 | #endif | |
14101 | } | |
d14a1e28 RD |
14102 | return resultobj; |
14103 | fail: | |
14104 | return NULL; | |
14105 | } | |
14106 | ||
14107 | ||
c32bde28 | 14108 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14109 | PyObject *resultobj; |
14110 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14111 | wxArrayString *result; | |
14112 | PyObject * obj0 = 0 ; | |
14113 | char *kwnames[] = { | |
14114 | (char *) "self", NULL | |
14115 | }; | |
14116 | ||
14117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14120 | { |
14121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14122 | { | |
14123 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
14124 | result = (wxArrayString *) &_result_ref; | |
14125 | } | |
14126 | ||
14127 | wxPyEndAllowThreads(__tstate); | |
14128 | if (PyErr_Occurred()) SWIG_fail; | |
14129 | } | |
14130 | { | |
14131 | resultobj = wxArrayString2PyList_helper(*result); | |
14132 | } | |
14133 | return resultobj; | |
14134 | fail: | |
14135 | return NULL; | |
14136 | } | |
14137 | ||
14138 | ||
c32bde28 | 14139 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14140 | PyObject *resultobj; |
14141 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14142 | int result; | |
14143 | PyObject * obj0 = 0 ; | |
14144 | char *kwnames[] = { | |
14145 | (char *) "self", NULL | |
14146 | }; | |
14147 | ||
14148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14151 | { |
14152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14153 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
14154 | ||
14155 | wxPyEndAllowThreads(__tstate); | |
14156 | if (PyErr_Occurred()) SWIG_fail; | |
14157 | } | |
093d3ff1 RD |
14158 | { |
14159 | resultobj = SWIG_From_int((int)(result)); | |
14160 | } | |
d14a1e28 RD |
14161 | return resultobj; |
14162 | fail: | |
14163 | return NULL; | |
14164 | } | |
14165 | ||
14166 | ||
c32bde28 | 14167 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14168 | PyObject *resultobj; |
14169 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14170 | wxString *result; | |
14171 | PyObject * obj0 = 0 ; | |
14172 | char *kwnames[] = { | |
14173 | (char *) "self", NULL | |
14174 | }; | |
14175 | ||
14176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14177 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14178 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14179 | { |
14180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14181 | { | |
14182 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
14183 | result = (wxString *) &_result_ref; | |
14184 | } | |
14185 | ||
14186 | wxPyEndAllowThreads(__tstate); | |
14187 | if (PyErr_Occurred()) SWIG_fail; | |
14188 | } | |
cc6dd355 RD |
14189 | { |
14190 | #if wxUSE_UNICODE | |
14191 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14192 | #else | |
14193 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14194 | #endif | |
14195 | } | |
d14a1e28 RD |
14196 | return resultobj; |
14197 | fail: | |
14198 | return NULL; | |
14199 | } | |
14200 | ||
14201 | ||
c32bde28 | 14202 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14203 | PyObject *resultobj; |
14204 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
14205 | int result; | |
14206 | PyObject * obj0 = 0 ; | |
14207 | char *kwnames[] = { | |
14208 | (char *) "self", NULL | |
14209 | }; | |
14210 | ||
14211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14212 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); |
14213 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14214 | { |
14215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14216 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
14217 | ||
14218 | wxPyEndAllowThreads(__tstate); | |
14219 | if (PyErr_Occurred()) SWIG_fail; | |
14220 | } | |
093d3ff1 RD |
14221 | { |
14222 | resultobj = SWIG_From_int((int)(result)); | |
14223 | } | |
d14a1e28 RD |
14224 | return resultobj; |
14225 | fail: | |
14226 | return NULL; | |
14227 | } | |
14228 | ||
14229 | ||
c32bde28 | 14230 | static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14231 | PyObject *obj; |
14232 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14233 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
14234 | Py_INCREF(obj); | |
14235 | return Py_BuildValue((char *)""); | |
14236 | } | |
c32bde28 | 14237 | static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14238 | PyObject *resultobj; |
14239 | wxFileTypeInfo *arg1 = 0 ; | |
14240 | wxFileType *result; | |
14241 | PyObject * obj0 = 0 ; | |
14242 | char *kwnames[] = { | |
14243 | (char *) "ftInfo", NULL | |
14244 | }; | |
14245 | ||
14246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14247 | { |
14248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
14249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14250 | if (arg1 == NULL) { | |
14251 | SWIG_null_ref("wxFileTypeInfo"); | |
14252 | } | |
14253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14254 | } |
14255 | { | |
14256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14257 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
14258 | ||
14259 | wxPyEndAllowThreads(__tstate); | |
14260 | if (PyErr_Occurred()) SWIG_fail; | |
14261 | } | |
15afbcd0 | 14262 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
14263 | return resultobj; |
14264 | fail: | |
14265 | return NULL; | |
14266 | } | |
14267 | ||
14268 | ||
c32bde28 | 14269 | static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14270 | PyObject *resultobj; |
14271 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14272 | PyObject * obj0 = 0 ; | |
14273 | char *kwnames[] = { | |
14274 | (char *) "self", NULL | |
14275 | }; | |
14276 | ||
14277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14280 | { |
14281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14282 | delete arg1; | |
14283 | ||
14284 | wxPyEndAllowThreads(__tstate); | |
14285 | if (PyErr_Occurred()) SWIG_fail; | |
14286 | } | |
14287 | Py_INCREF(Py_None); resultobj = Py_None; | |
14288 | return resultobj; | |
14289 | fail: | |
14290 | return NULL; | |
14291 | } | |
14292 | ||
14293 | ||
c32bde28 | 14294 | static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14295 | PyObject *resultobj; |
14296 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14297 | PyObject *result; | |
14298 | PyObject * obj0 = 0 ; | |
14299 | char *kwnames[] = { | |
14300 | (char *) "self", NULL | |
14301 | }; | |
14302 | ||
14303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14306 | { |
14307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14308 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
14309 | ||
14310 | wxPyEndAllowThreads(__tstate); | |
14311 | if (PyErr_Occurred()) SWIG_fail; | |
14312 | } | |
14313 | resultobj = result; | |
14314 | return resultobj; | |
14315 | fail: | |
14316 | return NULL; | |
14317 | } | |
14318 | ||
14319 | ||
c32bde28 | 14320 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14321 | PyObject *resultobj; |
14322 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14323 | PyObject *result; | |
14324 | PyObject * obj0 = 0 ; | |
14325 | char *kwnames[] = { | |
14326 | (char *) "self", NULL | |
14327 | }; | |
14328 | ||
14329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14332 | { |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
14339 | resultobj = result; | |
14340 | return resultobj; | |
14341 | fail: | |
14342 | return NULL; | |
14343 | } | |
14344 | ||
14345 | ||
c32bde28 | 14346 | static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14347 | PyObject *resultobj; |
14348 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14349 | PyObject *result; | |
14350 | PyObject * obj0 = 0 ; | |
14351 | char *kwnames[] = { | |
14352 | (char *) "self", NULL | |
14353 | }; | |
14354 | ||
14355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14358 | { |
14359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14360 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
14361 | ||
14362 | wxPyEndAllowThreads(__tstate); | |
14363 | if (PyErr_Occurred()) SWIG_fail; | |
14364 | } | |
14365 | resultobj = result; | |
14366 | return resultobj; | |
14367 | fail: | |
14368 | return NULL; | |
14369 | } | |
14370 | ||
14371 | ||
c32bde28 | 14372 | static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14373 | PyObject *resultobj; |
14374 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14375 | wxIcon *result; | |
14376 | PyObject * obj0 = 0 ; | |
14377 | char *kwnames[] = { | |
14378 | (char *) "self", NULL | |
14379 | }; | |
14380 | ||
14381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14384 | { |
14385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14386 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
14387 | ||
14388 | wxPyEndAllowThreads(__tstate); | |
14389 | if (PyErr_Occurred()) SWIG_fail; | |
14390 | } | |
15afbcd0 | 14391 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
14392 | return resultobj; |
14393 | fail: | |
14394 | return NULL; | |
14395 | } | |
14396 | ||
14397 | ||
c32bde28 | 14398 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14399 | PyObject *resultobj; |
14400 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14401 | PyObject *result; | |
14402 | PyObject * obj0 = 0 ; | |
14403 | char *kwnames[] = { | |
14404 | (char *) "self", NULL | |
14405 | }; | |
14406 | ||
14407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14410 | { |
14411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14412 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
14413 | ||
14414 | wxPyEndAllowThreads(__tstate); | |
14415 | if (PyErr_Occurred()) SWIG_fail; | |
14416 | } | |
14417 | resultobj = result; | |
14418 | return resultobj; | |
14419 | fail: | |
14420 | return NULL; | |
14421 | } | |
14422 | ||
14423 | ||
c32bde28 | 14424 | static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14425 | PyObject *resultobj; |
14426 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14427 | PyObject *result; | |
14428 | PyObject * obj0 = 0 ; | |
14429 | char *kwnames[] = { | |
14430 | (char *) "self", NULL | |
14431 | }; | |
14432 | ||
14433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14436 | { |
14437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14438 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
14439 | ||
14440 | wxPyEndAllowThreads(__tstate); | |
14441 | if (PyErr_Occurred()) SWIG_fail; | |
14442 | } | |
14443 | resultobj = result; | |
14444 | return resultobj; | |
14445 | fail: | |
14446 | return NULL; | |
14447 | } | |
14448 | ||
14449 | ||
c32bde28 | 14450 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14451 | PyObject *resultobj; |
14452 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14453 | wxString *arg2 = 0 ; | |
14454 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14455 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14456 | PyObject *result; | |
ae8162c8 RD |
14457 | bool temp2 = false ; |
14458 | bool temp3 = false ; | |
d14a1e28 RD |
14459 | PyObject * obj0 = 0 ; |
14460 | PyObject * obj1 = 0 ; | |
14461 | PyObject * obj2 = 0 ; | |
14462 | char *kwnames[] = { | |
14463 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
14464 | }; | |
14465 | ||
14466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
14467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14469 | { |
14470 | arg2 = wxString_in_helper(obj1); | |
14471 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14472 | temp2 = true; |
d14a1e28 RD |
14473 | } |
14474 | if (obj2) { | |
14475 | { | |
14476 | arg3 = wxString_in_helper(obj2); | |
14477 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14478 | temp3 = true; |
d14a1e28 RD |
14479 | } |
14480 | } | |
14481 | { | |
14482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14483 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
14484 | ||
14485 | wxPyEndAllowThreads(__tstate); | |
14486 | if (PyErr_Occurred()) SWIG_fail; | |
14487 | } | |
14488 | resultobj = result; | |
14489 | { | |
14490 | if (temp2) | |
14491 | delete arg2; | |
14492 | } | |
14493 | { | |
14494 | if (temp3) | |
14495 | delete arg3; | |
14496 | } | |
14497 | return resultobj; | |
14498 | fail: | |
14499 | { | |
14500 | if (temp2) | |
14501 | delete arg2; | |
14502 | } | |
14503 | { | |
14504 | if (temp3) | |
14505 | delete arg3; | |
14506 | } | |
14507 | return NULL; | |
14508 | } | |
14509 | ||
14510 | ||
c32bde28 | 14511 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14512 | PyObject *resultobj; |
14513 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14514 | wxString *arg2 = 0 ; | |
14515 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14516 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14517 | PyObject *result; | |
ae8162c8 RD |
14518 | bool temp2 = false ; |
14519 | bool temp3 = false ; | |
d14a1e28 RD |
14520 | PyObject * obj0 = 0 ; |
14521 | PyObject * obj1 = 0 ; | |
14522 | PyObject * obj2 = 0 ; | |
14523 | char *kwnames[] = { | |
14524 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
14525 | }; | |
14526 | ||
14527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
14528 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14529 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14530 | { |
14531 | arg2 = wxString_in_helper(obj1); | |
14532 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14533 | temp2 = true; |
d14a1e28 RD |
14534 | } |
14535 | if (obj2) { | |
14536 | { | |
14537 | arg3 = wxString_in_helper(obj2); | |
14538 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14539 | temp3 = true; |
d14a1e28 RD |
14540 | } |
14541 | } | |
14542 | { | |
14543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14544 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
14545 | ||
14546 | wxPyEndAllowThreads(__tstate); | |
14547 | if (PyErr_Occurred()) SWIG_fail; | |
14548 | } | |
14549 | resultobj = result; | |
14550 | { | |
14551 | if (temp2) | |
14552 | delete arg2; | |
14553 | } | |
14554 | { | |
14555 | if (temp3) | |
14556 | delete arg3; | |
14557 | } | |
14558 | return resultobj; | |
14559 | fail: | |
14560 | { | |
14561 | if (temp2) | |
14562 | delete arg2; | |
14563 | } | |
14564 | { | |
14565 | if (temp3) | |
14566 | delete arg3; | |
14567 | } | |
14568 | return NULL; | |
14569 | } | |
14570 | ||
14571 | ||
c32bde28 | 14572 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14573 | PyObject *resultobj; |
14574 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14575 | wxString *arg2 = 0 ; | |
14576 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14577 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14578 | PyObject *result; | |
ae8162c8 RD |
14579 | bool temp2 = false ; |
14580 | bool temp3 = false ; | |
d14a1e28 RD |
14581 | PyObject * obj0 = 0 ; |
14582 | PyObject * obj1 = 0 ; | |
14583 | PyObject * obj2 = 0 ; | |
14584 | char *kwnames[] = { | |
14585 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
14586 | }; | |
14587 | ||
14588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
14589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14591 | { |
14592 | arg2 = wxString_in_helper(obj1); | |
14593 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14594 | temp2 = true; |
d14a1e28 RD |
14595 | } |
14596 | if (obj2) { | |
14597 | { | |
14598 | arg3 = wxString_in_helper(obj2); | |
14599 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14600 | temp3 = true; |
d14a1e28 RD |
14601 | } |
14602 | } | |
14603 | { | |
14604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14605 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
14606 | ||
14607 | wxPyEndAllowThreads(__tstate); | |
14608 | if (PyErr_Occurred()) SWIG_fail; | |
14609 | } | |
14610 | resultobj = result; | |
14611 | { | |
14612 | if (temp2) | |
14613 | delete arg2; | |
14614 | } | |
14615 | { | |
14616 | if (temp3) | |
14617 | delete arg3; | |
14618 | } | |
14619 | return resultobj; | |
14620 | fail: | |
14621 | { | |
14622 | if (temp2) | |
14623 | delete arg2; | |
14624 | } | |
14625 | { | |
14626 | if (temp3) | |
14627 | delete arg3; | |
14628 | } | |
14629 | return NULL; | |
14630 | } | |
14631 | ||
14632 | ||
c32bde28 | 14633 | static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14634 | PyObject *resultobj; |
14635 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14636 | wxString *arg2 = 0 ; | |
14637 | wxString *arg3 = 0 ; | |
ae8162c8 | 14638 | bool arg4 = (bool) true ; |
d14a1e28 | 14639 | bool result; |
ae8162c8 RD |
14640 | bool temp2 = false ; |
14641 | bool temp3 = false ; | |
d14a1e28 RD |
14642 | PyObject * obj0 = 0 ; |
14643 | PyObject * obj1 = 0 ; | |
14644 | PyObject * obj2 = 0 ; | |
14645 | PyObject * obj3 = 0 ; | |
14646 | char *kwnames[] = { | |
14647 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
14648 | }; | |
14649 | ||
14650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
14651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14653 | { |
14654 | arg2 = wxString_in_helper(obj1); | |
14655 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14656 | temp2 = true; |
d14a1e28 RD |
14657 | } |
14658 | { | |
14659 | arg3 = wxString_in_helper(obj2); | |
14660 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14661 | temp3 = true; |
d14a1e28 RD |
14662 | } |
14663 | if (obj3) { | |
093d3ff1 RD |
14664 | { |
14665 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
14666 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14667 | } | |
d14a1e28 RD |
14668 | } |
14669 | { | |
14670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14671 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
14672 | ||
14673 | wxPyEndAllowThreads(__tstate); | |
14674 | if (PyErr_Occurred()) SWIG_fail; | |
14675 | } | |
4f89f6a3 RD |
14676 | { |
14677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14678 | } | |
d14a1e28 RD |
14679 | { |
14680 | if (temp2) | |
14681 | delete arg2; | |
14682 | } | |
14683 | { | |
14684 | if (temp3) | |
14685 | delete arg3; | |
14686 | } | |
14687 | return resultobj; | |
14688 | fail: | |
14689 | { | |
14690 | if (temp2) | |
14691 | delete arg2; | |
14692 | } | |
14693 | { | |
14694 | if (temp3) | |
14695 | delete arg3; | |
14696 | } | |
14697 | return NULL; | |
14698 | } | |
14699 | ||
14700 | ||
c32bde28 | 14701 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14702 | PyObject *resultobj; |
14703 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14704 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
14705 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14706 | int arg3 = (int) 0 ; | |
14707 | bool result; | |
ae8162c8 | 14708 | bool temp2 = false ; |
d14a1e28 RD |
14709 | PyObject * obj0 = 0 ; |
14710 | PyObject * obj1 = 0 ; | |
994141e6 | 14711 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14712 | char *kwnames[] = { |
14713 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
14714 | }; | |
14715 | ||
994141e6 | 14716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14719 | if (obj1) { |
14720 | { | |
14721 | arg2 = wxString_in_helper(obj1); | |
14722 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14723 | temp2 = true; |
d14a1e28 RD |
14724 | } |
14725 | } | |
994141e6 | 14726 | if (obj2) { |
093d3ff1 RD |
14727 | { |
14728 | arg3 = (int)(SWIG_As_int(obj2)); | |
14729 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14730 | } | |
994141e6 | 14731 | } |
d14a1e28 RD |
14732 | { |
14733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14734 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
14735 | ||
14736 | wxPyEndAllowThreads(__tstate); | |
14737 | if (PyErr_Occurred()) SWIG_fail; | |
14738 | } | |
4f89f6a3 RD |
14739 | { |
14740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14741 | } | |
d14a1e28 RD |
14742 | { |
14743 | if (temp2) | |
14744 | delete arg2; | |
14745 | } | |
14746 | return resultobj; | |
14747 | fail: | |
14748 | { | |
14749 | if (temp2) | |
14750 | delete arg2; | |
14751 | } | |
14752 | return NULL; | |
14753 | } | |
14754 | ||
14755 | ||
c32bde28 | 14756 | static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14757 | PyObject *resultobj; |
14758 | wxFileType *arg1 = (wxFileType *) 0 ; | |
14759 | bool result; | |
14760 | PyObject * obj0 = 0 ; | |
14761 | char *kwnames[] = { | |
14762 | (char *) "self", NULL | |
14763 | }; | |
14764 | ||
14765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); |
14767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14768 | { |
14769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14770 | result = (bool)(arg1)->Unassociate(); | |
14771 | ||
14772 | wxPyEndAllowThreads(__tstate); | |
14773 | if (PyErr_Occurred()) SWIG_fail; | |
14774 | } | |
4f89f6a3 RD |
14775 | { |
14776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14777 | } | |
d14a1e28 RD |
14778 | return resultobj; |
14779 | fail: | |
14780 | return NULL; | |
14781 | } | |
14782 | ||
14783 | ||
c32bde28 | 14784 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14785 | PyObject *resultobj; |
14786 | wxString *arg1 = 0 ; | |
14787 | wxString *arg2 = 0 ; | |
14788 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14789 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14790 | wxString result; | |
ae8162c8 RD |
14791 | bool temp1 = false ; |
14792 | bool temp2 = false ; | |
14793 | bool temp3 = false ; | |
d14a1e28 RD |
14794 | PyObject * obj0 = 0 ; |
14795 | PyObject * obj1 = 0 ; | |
14796 | PyObject * obj2 = 0 ; | |
14797 | char *kwnames[] = { | |
14798 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
14799 | }; | |
14800 | ||
14801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14802 | { | |
14803 | arg1 = wxString_in_helper(obj0); | |
14804 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14805 | temp1 = true; |
d14a1e28 RD |
14806 | } |
14807 | { | |
14808 | arg2 = wxString_in_helper(obj1); | |
14809 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14810 | temp2 = true; |
d14a1e28 RD |
14811 | } |
14812 | if (obj2) { | |
14813 | { | |
14814 | arg3 = wxString_in_helper(obj2); | |
14815 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14816 | temp3 = true; |
d14a1e28 RD |
14817 | } |
14818 | } | |
14819 | { | |
14820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14821 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
14822 | ||
14823 | wxPyEndAllowThreads(__tstate); | |
14824 | if (PyErr_Occurred()) SWIG_fail; | |
14825 | } | |
14826 | { | |
14827 | #if wxUSE_UNICODE | |
14828 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14829 | #else | |
14830 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14831 | #endif | |
14832 | } | |
14833 | { | |
14834 | if (temp1) | |
14835 | delete arg1; | |
14836 | } | |
14837 | { | |
14838 | if (temp2) | |
14839 | delete arg2; | |
14840 | } | |
14841 | { | |
14842 | if (temp3) | |
14843 | delete arg3; | |
14844 | } | |
14845 | return resultobj; | |
14846 | fail: | |
14847 | { | |
14848 | if (temp1) | |
14849 | delete arg1; | |
14850 | } | |
14851 | { | |
14852 | if (temp2) | |
14853 | delete arg2; | |
14854 | } | |
14855 | { | |
14856 | if (temp3) | |
14857 | delete arg3; | |
14858 | } | |
14859 | return NULL; | |
14860 | } | |
14861 | ||
14862 | ||
c32bde28 | 14863 | static PyObject * FileType_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14864 | PyObject *obj; |
14865 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14866 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
14867 | Py_INCREF(obj); | |
14868 | return Py_BuildValue((char *)""); | |
14869 | } | |
c32bde28 | 14870 | static int _wrap_TheMimeTypesManager_set(PyObject *) { |
d14a1e28 RD |
14871 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); |
14872 | return 1; | |
14873 | } | |
14874 | ||
14875 | ||
093d3ff1 | 14876 | static PyObject *_wrap_TheMimeTypesManager_get(void) { |
d14a1e28 RD |
14877 | PyObject *pyobj; |
14878 | ||
15afbcd0 | 14879 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); |
d14a1e28 RD |
14880 | return pyobj; |
14881 | } | |
14882 | ||
14883 | ||
c32bde28 | 14884 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14885 | PyObject *resultobj; |
14886 | wxString *arg1 = 0 ; | |
14887 | wxString *arg2 = 0 ; | |
14888 | bool result; | |
ae8162c8 RD |
14889 | bool temp1 = false ; |
14890 | bool temp2 = false ; | |
d14a1e28 RD |
14891 | PyObject * obj0 = 0 ; |
14892 | PyObject * obj1 = 0 ; | |
14893 | char *kwnames[] = { | |
14894 | (char *) "mimeType",(char *) "wildcard", NULL | |
14895 | }; | |
14896 | ||
14897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
14898 | { | |
14899 | arg1 = wxString_in_helper(obj0); | |
14900 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14901 | temp1 = true; |
d14a1e28 RD |
14902 | } |
14903 | { | |
14904 | arg2 = wxString_in_helper(obj1); | |
14905 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14906 | temp2 = true; |
d14a1e28 RD |
14907 | } |
14908 | { | |
14909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14910 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
14911 | ||
14912 | wxPyEndAllowThreads(__tstate); | |
14913 | if (PyErr_Occurred()) SWIG_fail; | |
14914 | } | |
4f89f6a3 RD |
14915 | { |
14916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14917 | } | |
d14a1e28 RD |
14918 | { |
14919 | if (temp1) | |
14920 | delete arg1; | |
14921 | } | |
14922 | { | |
14923 | if (temp2) | |
14924 | delete arg2; | |
14925 | } | |
14926 | return resultobj; | |
14927 | fail: | |
14928 | { | |
14929 | if (temp1) | |
14930 | delete arg1; | |
14931 | } | |
14932 | { | |
14933 | if (temp2) | |
14934 | delete arg2; | |
14935 | } | |
14936 | return NULL; | |
14937 | } | |
14938 | ||
14939 | ||
c32bde28 | 14940 | static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14941 | PyObject *resultobj; |
14942 | wxMimeTypesManager *result; | |
14943 | char *kwnames[] = { | |
14944 | NULL | |
14945 | }; | |
14946 | ||
14947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
14948 | { | |
14949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14950 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
14951 | ||
14952 | wxPyEndAllowThreads(__tstate); | |
14953 | if (PyErr_Occurred()) SWIG_fail; | |
14954 | } | |
15afbcd0 | 14955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); |
d14a1e28 RD |
14956 | return resultobj; |
14957 | fail: | |
14958 | return NULL; | |
14959 | } | |
14960 | ||
14961 | ||
c32bde28 | 14962 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14963 | PyObject *resultobj; |
14964 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
14965 | int arg2 = (int) wxMAILCAP_ALL ; | |
14966 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14967 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
ae8162c8 | 14968 | bool temp3 = false ; |
d14a1e28 | 14969 | PyObject * obj0 = 0 ; |
994141e6 | 14970 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14971 | PyObject * obj2 = 0 ; |
14972 | char *kwnames[] = { | |
14973 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
14974 | }; | |
14975 | ||
994141e6 | 14976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
14978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 14979 | if (obj1) { |
093d3ff1 RD |
14980 | { |
14981 | arg2 = (int)(SWIG_As_int(obj1)); | |
14982 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14983 | } | |
994141e6 | 14984 | } |
d14a1e28 RD |
14985 | if (obj2) { |
14986 | { | |
14987 | arg3 = wxString_in_helper(obj2); | |
14988 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14989 | temp3 = true; |
d14a1e28 RD |
14990 | } |
14991 | } | |
14992 | { | |
14993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14994 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
14995 | ||
14996 | wxPyEndAllowThreads(__tstate); | |
14997 | if (PyErr_Occurred()) SWIG_fail; | |
14998 | } | |
14999 | Py_INCREF(Py_None); resultobj = Py_None; | |
15000 | { | |
15001 | if (temp3) | |
15002 | delete arg3; | |
15003 | } | |
15004 | return resultobj; | |
15005 | fail: | |
15006 | { | |
15007 | if (temp3) | |
15008 | delete arg3; | |
15009 | } | |
15010 | return NULL; | |
15011 | } | |
15012 | ||
15013 | ||
c32bde28 | 15014 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15015 | PyObject *resultobj; |
15016 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15017 | PyObject * obj0 = 0 ; | |
15018 | char *kwnames[] = { | |
15019 | (char *) "self", NULL | |
15020 | }; | |
15021 | ||
15022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15025 | { |
15026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15027 | (arg1)->ClearData(); | |
15028 | ||
15029 | wxPyEndAllowThreads(__tstate); | |
15030 | if (PyErr_Occurred()) SWIG_fail; | |
15031 | } | |
15032 | Py_INCREF(Py_None); resultobj = Py_None; | |
15033 | return resultobj; | |
15034 | fail: | |
15035 | return NULL; | |
15036 | } | |
15037 | ||
15038 | ||
c32bde28 | 15039 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15040 | PyObject *resultobj; |
15041 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15042 | wxString *arg2 = 0 ; | |
15043 | wxFileType *result; | |
ae8162c8 | 15044 | bool temp2 = false ; |
d14a1e28 RD |
15045 | PyObject * obj0 = 0 ; |
15046 | PyObject * obj1 = 0 ; | |
15047 | char *kwnames[] = { | |
15048 | (char *) "self",(char *) "ext", NULL | |
15049 | }; | |
15050 | ||
15051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15054 | { |
15055 | arg2 = wxString_in_helper(obj1); | |
15056 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15057 | temp2 = true; |
d14a1e28 RD |
15058 | } |
15059 | { | |
15060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15061 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
15062 | ||
15063 | wxPyEndAllowThreads(__tstate); | |
15064 | if (PyErr_Occurred()) SWIG_fail; | |
15065 | } | |
15afbcd0 | 15066 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
15067 | { |
15068 | if (temp2) | |
15069 | delete arg2; | |
15070 | } | |
15071 | return resultobj; | |
15072 | fail: | |
15073 | { | |
15074 | if (temp2) | |
15075 | delete arg2; | |
15076 | } | |
15077 | return NULL; | |
15078 | } | |
15079 | ||
15080 | ||
c32bde28 | 15081 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15082 | PyObject *resultobj; |
15083 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15084 | wxString *arg2 = 0 ; | |
15085 | wxFileType *result; | |
ae8162c8 | 15086 | bool temp2 = false ; |
d14a1e28 RD |
15087 | PyObject * obj0 = 0 ; |
15088 | PyObject * obj1 = 0 ; | |
15089 | char *kwnames[] = { | |
15090 | (char *) "self",(char *) "mimeType", NULL | |
15091 | }; | |
15092 | ||
15093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15096 | { |
15097 | arg2 = wxString_in_helper(obj1); | |
15098 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15099 | temp2 = true; |
d14a1e28 RD |
15100 | } |
15101 | { | |
15102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15103 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
15104 | ||
15105 | wxPyEndAllowThreads(__tstate); | |
15106 | if (PyErr_Occurred()) SWIG_fail; | |
15107 | } | |
15afbcd0 | 15108 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
15109 | { |
15110 | if (temp2) | |
15111 | delete arg2; | |
15112 | } | |
15113 | return resultobj; | |
15114 | fail: | |
15115 | { | |
15116 | if (temp2) | |
15117 | delete arg2; | |
15118 | } | |
15119 | return NULL; | |
15120 | } | |
15121 | ||
15122 | ||
c32bde28 | 15123 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15124 | PyObject *resultobj; |
15125 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15126 | wxString *arg2 = 0 ; | |
ae8162c8 | 15127 | bool arg3 = (bool) false ; |
d14a1e28 | 15128 | bool result; |
ae8162c8 | 15129 | bool temp2 = false ; |
d14a1e28 RD |
15130 | PyObject * obj0 = 0 ; |
15131 | PyObject * obj1 = 0 ; | |
15132 | PyObject * obj2 = 0 ; | |
15133 | char *kwnames[] = { | |
15134 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
15135 | }; | |
15136 | ||
15137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15138 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15139 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15140 | { |
15141 | arg2 = wxString_in_helper(obj1); | |
15142 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15143 | temp2 = true; |
d14a1e28 RD |
15144 | } |
15145 | if (obj2) { | |
093d3ff1 RD |
15146 | { |
15147 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
15148 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15149 | } | |
d14a1e28 RD |
15150 | } |
15151 | { | |
15152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15153 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
15154 | ||
15155 | wxPyEndAllowThreads(__tstate); | |
15156 | if (PyErr_Occurred()) SWIG_fail; | |
15157 | } | |
4f89f6a3 RD |
15158 | { |
15159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15160 | } | |
d14a1e28 RD |
15161 | { |
15162 | if (temp2) | |
15163 | delete arg2; | |
15164 | } | |
15165 | return resultobj; | |
15166 | fail: | |
15167 | { | |
15168 | if (temp2) | |
15169 | delete arg2; | |
15170 | } | |
15171 | return NULL; | |
15172 | } | |
15173 | ||
15174 | ||
c32bde28 | 15175 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15176 | PyObject *resultobj; |
15177 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15178 | wxString *arg2 = 0 ; | |
15179 | bool result; | |
ae8162c8 | 15180 | bool temp2 = false ; |
d14a1e28 RD |
15181 | PyObject * obj0 = 0 ; |
15182 | PyObject * obj1 = 0 ; | |
15183 | char *kwnames[] = { | |
15184 | (char *) "self",(char *) "filename", NULL | |
15185 | }; | |
15186 | ||
15187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15190 | { |
15191 | arg2 = wxString_in_helper(obj1); | |
15192 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15193 | temp2 = true; |
d14a1e28 RD |
15194 | } |
15195 | { | |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
15198 | ||
15199 | wxPyEndAllowThreads(__tstate); | |
15200 | if (PyErr_Occurred()) SWIG_fail; | |
15201 | } | |
4f89f6a3 RD |
15202 | { |
15203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15204 | } | |
d14a1e28 RD |
15205 | { |
15206 | if (temp2) | |
15207 | delete arg2; | |
15208 | } | |
15209 | return resultobj; | |
15210 | fail: | |
15211 | { | |
15212 | if (temp2) | |
15213 | delete arg2; | |
15214 | } | |
15215 | return NULL; | |
15216 | } | |
15217 | ||
15218 | ||
c32bde28 | 15219 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15220 | PyObject *resultobj; |
15221 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15222 | PyObject *result; | |
15223 | PyObject * obj0 = 0 ; | |
15224 | char *kwnames[] = { | |
15225 | (char *) "self", NULL | |
15226 | }; | |
15227 | ||
15228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15231 | { |
15232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15233 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
15234 | ||
15235 | wxPyEndAllowThreads(__tstate); | |
15236 | if (PyErr_Occurred()) SWIG_fail; | |
15237 | } | |
15238 | resultobj = result; | |
15239 | return resultobj; | |
15240 | fail: | |
15241 | return NULL; | |
15242 | } | |
15243 | ||
15244 | ||
c32bde28 | 15245 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15246 | PyObject *resultobj; |
15247 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15248 | wxFileTypeInfo *arg2 = 0 ; | |
15249 | PyObject * obj0 = 0 ; | |
15250 | PyObject * obj1 = 0 ; | |
15251 | char *kwnames[] = { | |
15252 | (char *) "self",(char *) "ft", NULL | |
15253 | }; | |
15254 | ||
15255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15256 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15257 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15258 | { | |
15259 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
15260 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15261 | if (arg2 == NULL) { | |
15262 | SWIG_null_ref("wxFileTypeInfo"); | |
15263 | } | |
15264 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
15265 | } |
15266 | { | |
15267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15268 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
15269 | ||
15270 | wxPyEndAllowThreads(__tstate); | |
15271 | if (PyErr_Occurred()) SWIG_fail; | |
15272 | } | |
15273 | Py_INCREF(Py_None); resultobj = Py_None; | |
15274 | return resultobj; | |
15275 | fail: | |
15276 | return NULL; | |
15277 | } | |
15278 | ||
15279 | ||
c32bde28 | 15280 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15281 | PyObject *resultobj; |
15282 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15283 | wxFileTypeInfo *arg2 = 0 ; | |
15284 | wxFileType *result; | |
15285 | PyObject * obj0 = 0 ; | |
15286 | PyObject * obj1 = 0 ; | |
15287 | char *kwnames[] = { | |
15288 | (char *) "self",(char *) "ftInfo", NULL | |
15289 | }; | |
15290 | ||
15291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15294 | { | |
15295 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_EXCEPTION | 0); | |
15296 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15297 | if (arg2 == NULL) { | |
15298 | SWIG_null_ref("wxFileTypeInfo"); | |
15299 | } | |
15300 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
15301 | } |
15302 | { | |
15303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15304 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
15305 | ||
15306 | wxPyEndAllowThreads(__tstate); | |
15307 | if (PyErr_Occurred()) SWIG_fail; | |
15308 | } | |
15afbcd0 | 15309 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
15310 | return resultobj; |
15311 | fail: | |
15312 | return NULL; | |
15313 | } | |
15314 | ||
15315 | ||
c32bde28 | 15316 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15317 | PyObject *resultobj; |
15318 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15319 | wxFileType *arg2 = (wxFileType *) 0 ; | |
15320 | bool result; | |
15321 | PyObject * obj0 = 0 ; | |
15322 | PyObject * obj1 = 0 ; | |
15323 | char *kwnames[] = { | |
15324 | (char *) "self",(char *) "ft", NULL | |
15325 | }; | |
15326 | ||
15327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15330 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileType, SWIG_POINTER_EXCEPTION | 0); | |
15331 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
15332 | { |
15333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15334 | result = (bool)(arg1)->Unassociate(arg2); | |
15335 | ||
15336 | wxPyEndAllowThreads(__tstate); | |
15337 | if (PyErr_Occurred()) SWIG_fail; | |
15338 | } | |
4f89f6a3 RD |
15339 | { |
15340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15341 | } | |
d14a1e28 RD |
15342 | return resultobj; |
15343 | fail: | |
15344 | return NULL; | |
15345 | } | |
15346 | ||
15347 | ||
c32bde28 | 15348 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15349 | PyObject *resultobj; |
15350 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
15351 | PyObject * obj0 = 0 ; | |
15352 | char *kwnames[] = { | |
15353 | (char *) "self", NULL | |
15354 | }; | |
15355 | ||
15356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15357 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_EXCEPTION | 0); |
15358 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15359 | { |
15360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15361 | delete arg1; | |
15362 | ||
15363 | wxPyEndAllowThreads(__tstate); | |
15364 | if (PyErr_Occurred()) SWIG_fail; | |
15365 | } | |
15366 | Py_INCREF(Py_None); resultobj = Py_None; | |
15367 | return resultobj; | |
15368 | fail: | |
15369 | return NULL; | |
15370 | } | |
15371 | ||
15372 | ||
c32bde28 | 15373 | static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15374 | PyObject *obj; |
15375 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15376 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
15377 | Py_INCREF(obj); | |
15378 | return Py_BuildValue((char *)""); | |
15379 | } | |
c32bde28 | 15380 | static int _wrap_ART_TOOLBAR_set(PyObject *) { |
d14a1e28 RD |
15381 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); |
15382 | return 1; | |
15383 | } | |
15384 | ||
15385 | ||
093d3ff1 | 15386 | static PyObject *_wrap_ART_TOOLBAR_get(void) { |
d14a1e28 RD |
15387 | PyObject *pyobj; |
15388 | ||
15389 | { | |
15390 | #if wxUSE_UNICODE | |
15391 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
15392 | #else | |
15393 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
15394 | #endif | |
15395 | } | |
15396 | return pyobj; | |
15397 | } | |
15398 | ||
15399 | ||
c32bde28 | 15400 | static int _wrap_ART_MENU_set(PyObject *) { |
d14a1e28 RD |
15401 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); |
15402 | return 1; | |
15403 | } | |
15404 | ||
15405 | ||
093d3ff1 | 15406 | static PyObject *_wrap_ART_MENU_get(void) { |
d14a1e28 RD |
15407 | PyObject *pyobj; |
15408 | ||
15409 | { | |
15410 | #if wxUSE_UNICODE | |
15411 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
15412 | #else | |
15413 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
15414 | #endif | |
15415 | } | |
15416 | return pyobj; | |
15417 | } | |
15418 | ||
15419 | ||
c32bde28 | 15420 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { |
d14a1e28 RD |
15421 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); |
15422 | return 1; | |
15423 | } | |
15424 | ||
15425 | ||
093d3ff1 | 15426 | static PyObject *_wrap_ART_FRAME_ICON_get(void) { |
d14a1e28 RD |
15427 | PyObject *pyobj; |
15428 | ||
15429 | { | |
15430 | #if wxUSE_UNICODE | |
15431 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
15432 | #else | |
15433 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
15434 | #endif | |
15435 | } | |
15436 | return pyobj; | |
15437 | } | |
15438 | ||
15439 | ||
c32bde28 | 15440 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { |
d14a1e28 RD |
15441 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); |
15442 | return 1; | |
15443 | } | |
15444 | ||
15445 | ||
093d3ff1 | 15446 | static PyObject *_wrap_ART_CMN_DIALOG_get(void) { |
d14a1e28 RD |
15447 | PyObject *pyobj; |
15448 | ||
15449 | { | |
15450 | #if wxUSE_UNICODE | |
15451 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
15452 | #else | |
15453 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
15454 | #endif | |
15455 | } | |
15456 | return pyobj; | |
15457 | } | |
15458 | ||
15459 | ||
c32bde28 | 15460 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { |
d14a1e28 RD |
15461 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); |
15462 | return 1; | |
15463 | } | |
15464 | ||
15465 | ||
093d3ff1 | 15466 | static PyObject *_wrap_ART_HELP_BROWSER_get(void) { |
d14a1e28 RD |
15467 | PyObject *pyobj; |
15468 | ||
15469 | { | |
15470 | #if wxUSE_UNICODE | |
15471 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
15472 | #else | |
15473 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
15474 | #endif | |
15475 | } | |
15476 | return pyobj; | |
15477 | } | |
15478 | ||
15479 | ||
c32bde28 | 15480 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { |
d14a1e28 RD |
15481 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); |
15482 | return 1; | |
15483 | } | |
15484 | ||
15485 | ||
093d3ff1 | 15486 | static PyObject *_wrap_ART_MESSAGE_BOX_get(void) { |
d14a1e28 RD |
15487 | PyObject *pyobj; |
15488 | ||
15489 | { | |
15490 | #if wxUSE_UNICODE | |
15491 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
15492 | #else | |
15493 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
15494 | #endif | |
15495 | } | |
15496 | return pyobj; | |
15497 | } | |
15498 | ||
15499 | ||
c32bde28 | 15500 | static int _wrap_ART_BUTTON_set(PyObject *) { |
4cf4100f RD |
15501 | PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only."); |
15502 | return 1; | |
15503 | } | |
15504 | ||
15505 | ||
093d3ff1 | 15506 | static PyObject *_wrap_ART_BUTTON_get(void) { |
4cf4100f RD |
15507 | PyObject *pyobj; |
15508 | ||
15509 | { | |
15510 | #if wxUSE_UNICODE | |
15511 | pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
15512 | #else | |
15513 | pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
15514 | #endif | |
15515 | } | |
15516 | return pyobj; | |
15517 | } | |
15518 | ||
15519 | ||
c32bde28 | 15520 | static int _wrap_ART_OTHER_set(PyObject *) { |
d14a1e28 RD |
15521 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); |
15522 | return 1; | |
15523 | } | |
15524 | ||
15525 | ||
093d3ff1 | 15526 | static PyObject *_wrap_ART_OTHER_get(void) { |
d14a1e28 RD |
15527 | PyObject *pyobj; |
15528 | ||
15529 | { | |
15530 | #if wxUSE_UNICODE | |
15531 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
15532 | #else | |
15533 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
15534 | #endif | |
15535 | } | |
15536 | return pyobj; | |
15537 | } | |
15538 | ||
15539 | ||
c32bde28 | 15540 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { |
d14a1e28 RD |
15541 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); |
15542 | return 1; | |
15543 | } | |
15544 | ||
15545 | ||
093d3ff1 | 15546 | static PyObject *_wrap_ART_ADD_BOOKMARK_get(void) { |
d14a1e28 RD |
15547 | PyObject *pyobj; |
15548 | ||
15549 | { | |
15550 | #if wxUSE_UNICODE | |
15551 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
15552 | #else | |
15553 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
15554 | #endif | |
15555 | } | |
15556 | return pyobj; | |
15557 | } | |
15558 | ||
15559 | ||
c32bde28 | 15560 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { |
d14a1e28 RD |
15561 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); |
15562 | return 1; | |
15563 | } | |
15564 | ||
15565 | ||
093d3ff1 | 15566 | static PyObject *_wrap_ART_DEL_BOOKMARK_get(void) { |
d14a1e28 RD |
15567 | PyObject *pyobj; |
15568 | ||
15569 | { | |
15570 | #if wxUSE_UNICODE | |
15571 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
15572 | #else | |
15573 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
15574 | #endif | |
15575 | } | |
15576 | return pyobj; | |
15577 | } | |
15578 | ||
15579 | ||
c32bde28 | 15580 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { |
d14a1e28 RD |
15581 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); |
15582 | return 1; | |
15583 | } | |
15584 | ||
15585 | ||
093d3ff1 | 15586 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get(void) { |
d14a1e28 RD |
15587 | PyObject *pyobj; |
15588 | ||
15589 | { | |
15590 | #if wxUSE_UNICODE | |
15591 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
15592 | #else | |
15593 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
15594 | #endif | |
15595 | } | |
15596 | return pyobj; | |
15597 | } | |
15598 | ||
15599 | ||
c32bde28 | 15600 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { |
d14a1e28 RD |
15601 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); |
15602 | return 1; | |
15603 | } | |
15604 | ||
15605 | ||
093d3ff1 | 15606 | static PyObject *_wrap_ART_HELP_SETTINGS_get(void) { |
d14a1e28 RD |
15607 | PyObject *pyobj; |
15608 | ||
15609 | { | |
15610 | #if wxUSE_UNICODE | |
15611 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
15612 | #else | |
15613 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
15614 | #endif | |
15615 | } | |
15616 | return pyobj; | |
15617 | } | |
15618 | ||
15619 | ||
c32bde28 | 15620 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { |
d14a1e28 RD |
15621 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); |
15622 | return 1; | |
15623 | } | |
15624 | ||
15625 | ||
093d3ff1 | 15626 | static PyObject *_wrap_ART_HELP_BOOK_get(void) { |
d14a1e28 RD |
15627 | PyObject *pyobj; |
15628 | ||
15629 | { | |
15630 | #if wxUSE_UNICODE | |
15631 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
15632 | #else | |
15633 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
15634 | #endif | |
15635 | } | |
15636 | return pyobj; | |
15637 | } | |
15638 | ||
15639 | ||
c32bde28 | 15640 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { |
d14a1e28 RD |
15641 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); |
15642 | return 1; | |
15643 | } | |
15644 | ||
15645 | ||
093d3ff1 | 15646 | static PyObject *_wrap_ART_HELP_FOLDER_get(void) { |
d14a1e28 RD |
15647 | PyObject *pyobj; |
15648 | ||
15649 | { | |
15650 | #if wxUSE_UNICODE | |
15651 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
15652 | #else | |
15653 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
15654 | #endif | |
15655 | } | |
15656 | return pyobj; | |
15657 | } | |
15658 | ||
15659 | ||
c32bde28 | 15660 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { |
d14a1e28 RD |
15661 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); |
15662 | return 1; | |
15663 | } | |
15664 | ||
15665 | ||
093d3ff1 | 15666 | static PyObject *_wrap_ART_HELP_PAGE_get(void) { |
d14a1e28 RD |
15667 | PyObject *pyobj; |
15668 | ||
15669 | { | |
15670 | #if wxUSE_UNICODE | |
15671 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
15672 | #else | |
15673 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
15674 | #endif | |
15675 | } | |
15676 | return pyobj; | |
15677 | } | |
15678 | ||
15679 | ||
c32bde28 | 15680 | static int _wrap_ART_GO_BACK_set(PyObject *) { |
d14a1e28 RD |
15681 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); |
15682 | return 1; | |
15683 | } | |
15684 | ||
15685 | ||
093d3ff1 | 15686 | static PyObject *_wrap_ART_GO_BACK_get(void) { |
d14a1e28 RD |
15687 | PyObject *pyobj; |
15688 | ||
15689 | { | |
15690 | #if wxUSE_UNICODE | |
15691 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
15692 | #else | |
15693 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
15694 | #endif | |
15695 | } | |
15696 | return pyobj; | |
15697 | } | |
15698 | ||
15699 | ||
c32bde28 | 15700 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { |
d14a1e28 RD |
15701 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); |
15702 | return 1; | |
15703 | } | |
15704 | ||
15705 | ||
093d3ff1 | 15706 | static PyObject *_wrap_ART_GO_FORWARD_get(void) { |
d14a1e28 RD |
15707 | PyObject *pyobj; |
15708 | ||
15709 | { | |
15710 | #if wxUSE_UNICODE | |
15711 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
15712 | #else | |
15713 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
15714 | #endif | |
15715 | } | |
15716 | return pyobj; | |
15717 | } | |
15718 | ||
15719 | ||
c32bde28 | 15720 | static int _wrap_ART_GO_UP_set(PyObject *) { |
d14a1e28 RD |
15721 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); |
15722 | return 1; | |
15723 | } | |
15724 | ||
15725 | ||
093d3ff1 | 15726 | static PyObject *_wrap_ART_GO_UP_get(void) { |
d14a1e28 RD |
15727 | PyObject *pyobj; |
15728 | ||
15729 | { | |
15730 | #if wxUSE_UNICODE | |
15731 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
15732 | #else | |
15733 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
15734 | #endif | |
15735 | } | |
15736 | return pyobj; | |
15737 | } | |
15738 | ||
15739 | ||
c32bde28 | 15740 | static int _wrap_ART_GO_DOWN_set(PyObject *) { |
d14a1e28 RD |
15741 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); |
15742 | return 1; | |
15743 | } | |
15744 | ||
15745 | ||
093d3ff1 | 15746 | static PyObject *_wrap_ART_GO_DOWN_get(void) { |
d14a1e28 RD |
15747 | PyObject *pyobj; |
15748 | ||
15749 | { | |
15750 | #if wxUSE_UNICODE | |
15751 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
15752 | #else | |
15753 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
15754 | #endif | |
15755 | } | |
15756 | return pyobj; | |
15757 | } | |
15758 | ||
15759 | ||
c32bde28 | 15760 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { |
d14a1e28 RD |
15761 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); |
15762 | return 1; | |
15763 | } | |
15764 | ||
15765 | ||
093d3ff1 | 15766 | static PyObject *_wrap_ART_GO_TO_PARENT_get(void) { |
d14a1e28 RD |
15767 | PyObject *pyobj; |
15768 | ||
15769 | { | |
15770 | #if wxUSE_UNICODE | |
15771 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
15772 | #else | |
15773 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
15774 | #endif | |
15775 | } | |
15776 | return pyobj; | |
15777 | } | |
15778 | ||
15779 | ||
c32bde28 | 15780 | static int _wrap_ART_GO_HOME_set(PyObject *) { |
d14a1e28 RD |
15781 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); |
15782 | return 1; | |
15783 | } | |
15784 | ||
15785 | ||
093d3ff1 | 15786 | static PyObject *_wrap_ART_GO_HOME_get(void) { |
d14a1e28 RD |
15787 | PyObject *pyobj; |
15788 | ||
15789 | { | |
15790 | #if wxUSE_UNICODE | |
15791 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
15792 | #else | |
15793 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
15794 | #endif | |
15795 | } | |
15796 | return pyobj; | |
15797 | } | |
15798 | ||
15799 | ||
c32bde28 | 15800 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { |
d14a1e28 RD |
15801 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); |
15802 | return 1; | |
15803 | } | |
15804 | ||
15805 | ||
093d3ff1 | 15806 | static PyObject *_wrap_ART_FILE_OPEN_get(void) { |
d14a1e28 RD |
15807 | PyObject *pyobj; |
15808 | ||
15809 | { | |
15810 | #if wxUSE_UNICODE | |
15811 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
15812 | #else | |
15813 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
15814 | #endif | |
15815 | } | |
15816 | return pyobj; | |
15817 | } | |
15818 | ||
15819 | ||
0c243d93 RD |
15820 | static int _wrap_ART_FILE_SAVE_set(PyObject *) { |
15821 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE is read-only."); | |
15822 | return 1; | |
15823 | } | |
15824 | ||
15825 | ||
15826 | static PyObject *_wrap_ART_FILE_SAVE_get(void) { | |
15827 | PyObject *pyobj; | |
15828 | ||
15829 | { | |
15830 | #if wxUSE_UNICODE | |
15831 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len()); | |
15832 | #else | |
15833 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len()); | |
15834 | #endif | |
15835 | } | |
15836 | return pyobj; | |
15837 | } | |
15838 | ||
15839 | ||
15840 | static int _wrap_ART_FILE_SAVE_AS_set(PyObject *) { | |
15841 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_SAVE_AS is read-only."); | |
15842 | return 1; | |
15843 | } | |
15844 | ||
15845 | ||
15846 | static PyObject *_wrap_ART_FILE_SAVE_AS_get(void) { | |
15847 | PyObject *pyobj; | |
15848 | ||
15849 | { | |
15850 | #if wxUSE_UNICODE | |
15851 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len()); | |
15852 | #else | |
15853 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len()); | |
15854 | #endif | |
15855 | } | |
15856 | return pyobj; | |
15857 | } | |
15858 | ||
15859 | ||
c32bde28 | 15860 | static int _wrap_ART_PRINT_set(PyObject *) { |
d14a1e28 RD |
15861 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); |
15862 | return 1; | |
15863 | } | |
15864 | ||
15865 | ||
093d3ff1 | 15866 | static PyObject *_wrap_ART_PRINT_get(void) { |
d14a1e28 RD |
15867 | PyObject *pyobj; |
15868 | ||
15869 | { | |
15870 | #if wxUSE_UNICODE | |
15871 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
15872 | #else | |
15873 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
15874 | #endif | |
15875 | } | |
15876 | return pyobj; | |
15877 | } | |
15878 | ||
15879 | ||
c32bde28 | 15880 | static int _wrap_ART_HELP_set(PyObject *) { |
d14a1e28 RD |
15881 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); |
15882 | return 1; | |
15883 | } | |
15884 | ||
15885 | ||
093d3ff1 | 15886 | static PyObject *_wrap_ART_HELP_get(void) { |
d14a1e28 RD |
15887 | PyObject *pyobj; |
15888 | ||
15889 | { | |
15890 | #if wxUSE_UNICODE | |
15891 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
15892 | #else | |
15893 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
15894 | #endif | |
15895 | } | |
15896 | return pyobj; | |
15897 | } | |
15898 | ||
15899 | ||
c32bde28 | 15900 | static int _wrap_ART_TIP_set(PyObject *) { |
d14a1e28 RD |
15901 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); |
15902 | return 1; | |
15903 | } | |
15904 | ||
15905 | ||
093d3ff1 | 15906 | static PyObject *_wrap_ART_TIP_get(void) { |
d14a1e28 RD |
15907 | PyObject *pyobj; |
15908 | ||
15909 | { | |
15910 | #if wxUSE_UNICODE | |
15911 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
15912 | #else | |
15913 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
15914 | #endif | |
15915 | } | |
15916 | return pyobj; | |
15917 | } | |
15918 | ||
15919 | ||
c32bde28 | 15920 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { |
d14a1e28 RD |
15921 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); |
15922 | return 1; | |
15923 | } | |
15924 | ||
15925 | ||
093d3ff1 | 15926 | static PyObject *_wrap_ART_REPORT_VIEW_get(void) { |
d14a1e28 RD |
15927 | PyObject *pyobj; |
15928 | ||
15929 | { | |
15930 | #if wxUSE_UNICODE | |
15931 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
15932 | #else | |
15933 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
15934 | #endif | |
15935 | } | |
15936 | return pyobj; | |
15937 | } | |
15938 | ||
15939 | ||
c32bde28 | 15940 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { |
d14a1e28 RD |
15941 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); |
15942 | return 1; | |
15943 | } | |
15944 | ||
15945 | ||
093d3ff1 | 15946 | static PyObject *_wrap_ART_LIST_VIEW_get(void) { |
d14a1e28 RD |
15947 | PyObject *pyobj; |
15948 | ||
15949 | { | |
15950 | #if wxUSE_UNICODE | |
15951 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
15952 | #else | |
15953 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
15954 | #endif | |
15955 | } | |
15956 | return pyobj; | |
15957 | } | |
15958 | ||
15959 | ||
c32bde28 | 15960 | static int _wrap_ART_NEW_DIR_set(PyObject *) { |
d14a1e28 RD |
15961 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); |
15962 | return 1; | |
15963 | } | |
15964 | ||
15965 | ||
093d3ff1 | 15966 | static PyObject *_wrap_ART_NEW_DIR_get(void) { |
d14a1e28 RD |
15967 | PyObject *pyobj; |
15968 | ||
15969 | { | |
15970 | #if wxUSE_UNICODE | |
15971 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
15972 | #else | |
15973 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
15974 | #endif | |
15975 | } | |
15976 | return pyobj; | |
15977 | } | |
15978 | ||
15979 | ||
f78cc896 RD |
15980 | static int _wrap_ART_HARDDISK_set(PyObject *) { |
15981 | PyErr_SetString(PyExc_TypeError,"Variable ART_HARDDISK is read-only."); | |
15982 | return 1; | |
15983 | } | |
15984 | ||
15985 | ||
093d3ff1 | 15986 | static PyObject *_wrap_ART_HARDDISK_get(void) { |
f78cc896 RD |
15987 | PyObject *pyobj; |
15988 | ||
15989 | { | |
15990 | #if wxUSE_UNICODE | |
15991 | pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
15992 | #else | |
15993 | pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
15994 | #endif | |
15995 | } | |
15996 | return pyobj; | |
15997 | } | |
15998 | ||
15999 | ||
16000 | static int _wrap_ART_FLOPPY_set(PyObject *) { | |
16001 | PyErr_SetString(PyExc_TypeError,"Variable ART_FLOPPY is read-only."); | |
16002 | return 1; | |
16003 | } | |
16004 | ||
16005 | ||
093d3ff1 | 16006 | static PyObject *_wrap_ART_FLOPPY_get(void) { |
f78cc896 RD |
16007 | PyObject *pyobj; |
16008 | ||
16009 | { | |
16010 | #if wxUSE_UNICODE | |
16011 | pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
16012 | #else | |
16013 | pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
16014 | #endif | |
16015 | } | |
16016 | return pyobj; | |
16017 | } | |
16018 | ||
16019 | ||
16020 | static int _wrap_ART_CDROM_set(PyObject *) { | |
16021 | PyErr_SetString(PyExc_TypeError,"Variable ART_CDROM is read-only."); | |
16022 | return 1; | |
16023 | } | |
16024 | ||
16025 | ||
093d3ff1 | 16026 | static PyObject *_wrap_ART_CDROM_get(void) { |
f78cc896 RD |
16027 | PyObject *pyobj; |
16028 | ||
16029 | { | |
16030 | #if wxUSE_UNICODE | |
16031 | pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
16032 | #else | |
16033 | pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
16034 | #endif | |
16035 | } | |
16036 | return pyobj; | |
16037 | } | |
16038 | ||
16039 | ||
16040 | static int _wrap_ART_REMOVABLE_set(PyObject *) { | |
16041 | PyErr_SetString(PyExc_TypeError,"Variable ART_REMOVABLE is read-only."); | |
16042 | return 1; | |
16043 | } | |
16044 | ||
16045 | ||
093d3ff1 | 16046 | static PyObject *_wrap_ART_REMOVABLE_get(void) { |
f78cc896 RD |
16047 | PyObject *pyobj; |
16048 | ||
16049 | { | |
16050 | #if wxUSE_UNICODE | |
16051 | pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
16052 | #else | |
16053 | pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
16054 | #endif | |
16055 | } | |
16056 | return pyobj; | |
16057 | } | |
16058 | ||
16059 | ||
c32bde28 | 16060 | static int _wrap_ART_FOLDER_set(PyObject *) { |
d14a1e28 RD |
16061 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); |
16062 | return 1; | |
16063 | } | |
16064 | ||
16065 | ||
093d3ff1 | 16066 | static PyObject *_wrap_ART_FOLDER_get(void) { |
d14a1e28 RD |
16067 | PyObject *pyobj; |
16068 | ||
16069 | { | |
16070 | #if wxUSE_UNICODE | |
16071 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
16072 | #else | |
16073 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
16074 | #endif | |
16075 | } | |
16076 | return pyobj; | |
16077 | } | |
16078 | ||
16079 | ||
f78cc896 RD |
16080 | static int _wrap_ART_FOLDER_OPEN_set(PyObject *) { |
16081 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER_OPEN is read-only."); | |
16082 | return 1; | |
16083 | } | |
16084 | ||
16085 | ||
093d3ff1 | 16086 | static PyObject *_wrap_ART_FOLDER_OPEN_get(void) { |
f78cc896 RD |
16087 | PyObject *pyobj; |
16088 | ||
16089 | { | |
16090 | #if wxUSE_UNICODE | |
16091 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
16092 | #else | |
16093 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
16094 | #endif | |
16095 | } | |
16096 | return pyobj; | |
16097 | } | |
16098 | ||
16099 | ||
c32bde28 | 16100 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { |
d14a1e28 RD |
16101 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); |
16102 | return 1; | |
16103 | } | |
16104 | ||
16105 | ||
093d3ff1 | 16106 | static PyObject *_wrap_ART_GO_DIR_UP_get(void) { |
d14a1e28 RD |
16107 | PyObject *pyobj; |
16108 | ||
16109 | { | |
16110 | #if wxUSE_UNICODE | |
16111 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
16112 | #else | |
16113 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
16114 | #endif | |
16115 | } | |
16116 | return pyobj; | |
16117 | } | |
16118 | ||
16119 | ||
c32bde28 | 16120 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { |
d14a1e28 RD |
16121 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); |
16122 | return 1; | |
16123 | } | |
16124 | ||
16125 | ||
093d3ff1 | 16126 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get(void) { |
d14a1e28 RD |
16127 | PyObject *pyobj; |
16128 | ||
16129 | { | |
16130 | #if wxUSE_UNICODE | |
16131 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
16132 | #else | |
16133 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
16134 | #endif | |
16135 | } | |
16136 | return pyobj; | |
16137 | } | |
16138 | ||
16139 | ||
c32bde28 | 16140 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { |
d14a1e28 RD |
16141 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); |
16142 | return 1; | |
16143 | } | |
16144 | ||
16145 | ||
093d3ff1 | 16146 | static PyObject *_wrap_ART_NORMAL_FILE_get(void) { |
d14a1e28 RD |
16147 | PyObject *pyobj; |
16148 | ||
16149 | { | |
16150 | #if wxUSE_UNICODE | |
16151 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
16152 | #else | |
16153 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
16154 | #endif | |
16155 | } | |
16156 | return pyobj; | |
16157 | } | |
16158 | ||
16159 | ||
c32bde28 | 16160 | static int _wrap_ART_TICK_MARK_set(PyObject *) { |
d14a1e28 RD |
16161 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); |
16162 | return 1; | |
16163 | } | |
16164 | ||
16165 | ||
093d3ff1 | 16166 | static PyObject *_wrap_ART_TICK_MARK_get(void) { |
d14a1e28 RD |
16167 | PyObject *pyobj; |
16168 | ||
16169 | { | |
16170 | #if wxUSE_UNICODE | |
16171 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
16172 | #else | |
16173 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
16174 | #endif | |
16175 | } | |
16176 | return pyobj; | |
16177 | } | |
16178 | ||
16179 | ||
c32bde28 | 16180 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { |
d14a1e28 RD |
16181 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); |
16182 | return 1; | |
16183 | } | |
16184 | ||
16185 | ||
093d3ff1 | 16186 | static PyObject *_wrap_ART_CROSS_MARK_get(void) { |
d14a1e28 RD |
16187 | PyObject *pyobj; |
16188 | ||
16189 | { | |
16190 | #if wxUSE_UNICODE | |
16191 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
16192 | #else | |
16193 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
16194 | #endif | |
16195 | } | |
16196 | return pyobj; | |
16197 | } | |
16198 | ||
16199 | ||
c32bde28 | 16200 | static int _wrap_ART_ERROR_set(PyObject *) { |
d14a1e28 RD |
16201 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); |
16202 | return 1; | |
16203 | } | |
16204 | ||
16205 | ||
093d3ff1 | 16206 | static PyObject *_wrap_ART_ERROR_get(void) { |
d14a1e28 RD |
16207 | PyObject *pyobj; |
16208 | ||
16209 | { | |
16210 | #if wxUSE_UNICODE | |
16211 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
16212 | #else | |
16213 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
16214 | #endif | |
16215 | } | |
16216 | return pyobj; | |
16217 | } | |
16218 | ||
16219 | ||
c32bde28 | 16220 | static int _wrap_ART_QUESTION_set(PyObject *) { |
d14a1e28 RD |
16221 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); |
16222 | return 1; | |
16223 | } | |
16224 | ||
16225 | ||
093d3ff1 | 16226 | static PyObject *_wrap_ART_QUESTION_get(void) { |
d14a1e28 RD |
16227 | PyObject *pyobj; |
16228 | ||
16229 | { | |
16230 | #if wxUSE_UNICODE | |
16231 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
16232 | #else | |
16233 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
16234 | #endif | |
16235 | } | |
16236 | return pyobj; | |
16237 | } | |
16238 | ||
16239 | ||
c32bde28 | 16240 | static int _wrap_ART_WARNING_set(PyObject *) { |
d14a1e28 RD |
16241 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); |
16242 | return 1; | |
16243 | } | |
16244 | ||
16245 | ||
093d3ff1 | 16246 | static PyObject *_wrap_ART_WARNING_get(void) { |
d14a1e28 RD |
16247 | PyObject *pyobj; |
16248 | ||
16249 | { | |
16250 | #if wxUSE_UNICODE | |
16251 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
16252 | #else | |
16253 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
16254 | #endif | |
16255 | } | |
16256 | return pyobj; | |
16257 | } | |
16258 | ||
16259 | ||
c32bde28 | 16260 | static int _wrap_ART_INFORMATION_set(PyObject *) { |
d14a1e28 RD |
16261 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); |
16262 | return 1; | |
16263 | } | |
16264 | ||
16265 | ||
093d3ff1 | 16266 | static PyObject *_wrap_ART_INFORMATION_get(void) { |
d14a1e28 RD |
16267 | PyObject *pyobj; |
16268 | ||
16269 | { | |
16270 | #if wxUSE_UNICODE | |
16271 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
16272 | #else | |
16273 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
16274 | #endif | |
16275 | } | |
16276 | return pyobj; | |
16277 | } | |
16278 | ||
16279 | ||
c32bde28 | 16280 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { |
d14a1e28 RD |
16281 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); |
16282 | return 1; | |
16283 | } | |
16284 | ||
16285 | ||
093d3ff1 | 16286 | static PyObject *_wrap_ART_MISSING_IMAGE_get(void) { |
d14a1e28 RD |
16287 | PyObject *pyobj; |
16288 | ||
16289 | { | |
16290 | #if wxUSE_UNICODE | |
16291 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
16292 | #else | |
16293 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
16294 | #endif | |
16295 | } | |
16296 | return pyobj; | |
16297 | } | |
16298 | ||
16299 | ||
0c243d93 RD |
16300 | static int _wrap_ART_COPY_set(PyObject *) { |
16301 | PyErr_SetString(PyExc_TypeError,"Variable ART_COPY is read-only."); | |
16302 | return 1; | |
16303 | } | |
16304 | ||
16305 | ||
16306 | static PyObject *_wrap_ART_COPY_get(void) { | |
16307 | PyObject *pyobj; | |
16308 | ||
16309 | { | |
16310 | #if wxUSE_UNICODE | |
16311 | pyobj = PyUnicode_FromWideChar((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len()); | |
16312 | #else | |
16313 | pyobj = PyString_FromStringAndSize((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len()); | |
16314 | #endif | |
16315 | } | |
16316 | return pyobj; | |
16317 | } | |
16318 | ||
16319 | ||
16320 | static int _wrap_ART_CUT_set(PyObject *) { | |
16321 | PyErr_SetString(PyExc_TypeError,"Variable ART_CUT is read-only."); | |
16322 | return 1; | |
16323 | } | |
16324 | ||
16325 | ||
16326 | static PyObject *_wrap_ART_CUT_get(void) { | |
16327 | PyObject *pyobj; | |
16328 | ||
16329 | { | |
16330 | #if wxUSE_UNICODE | |
16331 | pyobj = PyUnicode_FromWideChar((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len()); | |
16332 | #else | |
16333 | pyobj = PyString_FromStringAndSize((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len()); | |
16334 | #endif | |
16335 | } | |
16336 | return pyobj; | |
16337 | } | |
16338 | ||
16339 | ||
16340 | static int _wrap_ART_PASTE_set(PyObject *) { | |
16341 | PyErr_SetString(PyExc_TypeError,"Variable ART_PASTE is read-only."); | |
16342 | return 1; | |
16343 | } | |
16344 | ||
16345 | ||
16346 | static PyObject *_wrap_ART_PASTE_get(void) { | |
16347 | PyObject *pyobj; | |
16348 | ||
16349 | { | |
16350 | #if wxUSE_UNICODE | |
16351 | pyobj = PyUnicode_FromWideChar((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len()); | |
16352 | #else | |
16353 | pyobj = PyString_FromStringAndSize((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len()); | |
16354 | #endif | |
16355 | } | |
16356 | return pyobj; | |
16357 | } | |
16358 | ||
16359 | ||
16360 | static int _wrap_ART_DELETE_set(PyObject *) { | |
16361 | PyErr_SetString(PyExc_TypeError,"Variable ART_DELETE is read-only."); | |
16362 | return 1; | |
16363 | } | |
16364 | ||
16365 | ||
16366 | static PyObject *_wrap_ART_DELETE_get(void) { | |
16367 | PyObject *pyobj; | |
16368 | ||
16369 | { | |
16370 | #if wxUSE_UNICODE | |
16371 | pyobj = PyUnicode_FromWideChar((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len()); | |
16372 | #else | |
16373 | pyobj = PyString_FromStringAndSize((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len()); | |
16374 | #endif | |
16375 | } | |
16376 | return pyobj; | |
16377 | } | |
16378 | ||
16379 | ||
16380 | static int _wrap_ART_UNDO_set(PyObject *) { | |
16381 | PyErr_SetString(PyExc_TypeError,"Variable ART_UNDO is read-only."); | |
16382 | return 1; | |
16383 | } | |
16384 | ||
16385 | ||
16386 | static PyObject *_wrap_ART_UNDO_get(void) { | |
16387 | PyObject *pyobj; | |
16388 | ||
16389 | { | |
16390 | #if wxUSE_UNICODE | |
16391 | pyobj = PyUnicode_FromWideChar((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len()); | |
16392 | #else | |
16393 | pyobj = PyString_FromStringAndSize((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len()); | |
16394 | #endif | |
16395 | } | |
16396 | return pyobj; | |
16397 | } | |
16398 | ||
16399 | ||
16400 | static int _wrap_ART_REDO_set(PyObject *) { | |
16401 | PyErr_SetString(PyExc_TypeError,"Variable ART_REDO is read-only."); | |
16402 | return 1; | |
16403 | } | |
16404 | ||
16405 | ||
16406 | static PyObject *_wrap_ART_REDO_get(void) { | |
16407 | PyObject *pyobj; | |
16408 | ||
16409 | { | |
16410 | #if wxUSE_UNICODE | |
16411 | pyobj = PyUnicode_FromWideChar((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len()); | |
16412 | #else | |
16413 | pyobj = PyString_FromStringAndSize((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len()); | |
16414 | #endif | |
16415 | } | |
16416 | return pyobj; | |
16417 | } | |
16418 | ||
16419 | ||
16420 | static int _wrap_ART_QUIT_set(PyObject *) { | |
16421 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUIT is read-only."); | |
16422 | return 1; | |
16423 | } | |
16424 | ||
16425 | ||
16426 | static PyObject *_wrap_ART_QUIT_get(void) { | |
16427 | PyObject *pyobj; | |
16428 | ||
16429 | { | |
16430 | #if wxUSE_UNICODE | |
16431 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len()); | |
16432 | #else | |
16433 | pyobj = PyString_FromStringAndSize((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len()); | |
16434 | #endif | |
16435 | } | |
16436 | return pyobj; | |
16437 | } | |
16438 | ||
16439 | ||
16440 | static int _wrap_ART_FIND_set(PyObject *) { | |
16441 | PyErr_SetString(PyExc_TypeError,"Variable ART_FIND is read-only."); | |
16442 | return 1; | |
16443 | } | |
16444 | ||
16445 | ||
16446 | static PyObject *_wrap_ART_FIND_get(void) { | |
16447 | PyObject *pyobj; | |
16448 | ||
16449 | { | |
16450 | #if wxUSE_UNICODE | |
16451 | pyobj = PyUnicode_FromWideChar((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len()); | |
16452 | #else | |
16453 | pyobj = PyString_FromStringAndSize((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len()); | |
16454 | #endif | |
16455 | } | |
16456 | return pyobj; | |
16457 | } | |
16458 | ||
16459 | ||
16460 | static int _wrap_ART_FIND_AND_REPLACE_set(PyObject *) { | |
16461 | PyErr_SetString(PyExc_TypeError,"Variable ART_FIND_AND_REPLACE is read-only."); | |
16462 | return 1; | |
16463 | } | |
16464 | ||
16465 | ||
16466 | static PyObject *_wrap_ART_FIND_AND_REPLACE_get(void) { | |
16467 | PyObject *pyobj; | |
16468 | ||
16469 | { | |
16470 | #if wxUSE_UNICODE | |
16471 | pyobj = PyUnicode_FromWideChar((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len()); | |
16472 | #else | |
16473 | pyobj = PyString_FromStringAndSize((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len()); | |
16474 | #endif | |
16475 | } | |
16476 | return pyobj; | |
16477 | } | |
16478 | ||
16479 | ||
c32bde28 | 16480 | static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16481 | PyObject *resultobj; |
16482 | wxPyArtProvider *result; | |
16483 | char *kwnames[] = { | |
16484 | NULL | |
16485 | }; | |
16486 | ||
16487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
16488 | { | |
e3b71cb8 | 16489 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16491 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
16492 | ||
16493 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16494 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16495 | } |
15afbcd0 | 16496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); |
d14a1e28 RD |
16497 | return resultobj; |
16498 | fail: | |
16499 | return NULL; | |
16500 | } | |
16501 | ||
16502 | ||
c32bde28 | 16503 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16504 | PyObject *resultobj; |
16505 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
16506 | PyObject *arg2 = (PyObject *) 0 ; | |
16507 | PyObject *arg3 = (PyObject *) 0 ; | |
16508 | PyObject * obj0 = 0 ; | |
16509 | PyObject * obj1 = 0 ; | |
16510 | PyObject * obj2 = 0 ; | |
16511 | char *kwnames[] = { | |
16512 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
16513 | }; | |
16514 | ||
16515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
16516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
16517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16518 | arg2 = obj1; |
16519 | arg3 = obj2; | |
16520 | { | |
16521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16522 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16523 | ||
16524 | wxPyEndAllowThreads(__tstate); | |
16525 | if (PyErr_Occurred()) SWIG_fail; | |
16526 | } | |
16527 | Py_INCREF(Py_None); resultobj = Py_None; | |
16528 | return resultobj; | |
16529 | fail: | |
16530 | return NULL; | |
16531 | } | |
16532 | ||
16533 | ||
c32bde28 | 16534 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16535 | PyObject *resultobj; |
16536 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
16537 | PyObject * obj0 = 0 ; | |
16538 | char *kwnames[] = { | |
16539 | (char *) "provider", NULL | |
16540 | }; | |
16541 | ||
16542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16543 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
16544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16545 | { |
16546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16547 | wxPyArtProvider::PushProvider(arg1); | |
16548 | ||
16549 | wxPyEndAllowThreads(__tstate); | |
16550 | if (PyErr_Occurred()) SWIG_fail; | |
16551 | } | |
16552 | Py_INCREF(Py_None); resultobj = Py_None; | |
16553 | return resultobj; | |
16554 | fail: | |
16555 | return NULL; | |
16556 | } | |
16557 | ||
16558 | ||
c32bde28 | 16559 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16560 | PyObject *resultobj; |
16561 | bool result; | |
16562 | char *kwnames[] = { | |
16563 | NULL | |
16564 | }; | |
16565 | ||
16566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
16567 | { | |
16568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16569 | result = (bool)wxPyArtProvider::PopProvider(); | |
16570 | ||
16571 | wxPyEndAllowThreads(__tstate); | |
16572 | if (PyErr_Occurred()) SWIG_fail; | |
16573 | } | |
4f89f6a3 RD |
16574 | { |
16575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16576 | } | |
d14a1e28 RD |
16577 | return resultobj; |
16578 | fail: | |
16579 | return NULL; | |
16580 | } | |
16581 | ||
16582 | ||
c32bde28 | 16583 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16584 | PyObject *resultobj; |
16585 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
16586 | bool result; | |
16587 | PyObject * obj0 = 0 ; | |
16588 | char *kwnames[] = { | |
16589 | (char *) "provider", NULL | |
16590 | }; | |
16591 | ||
16592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
16594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16595 | { |
16596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16597 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
16598 | ||
16599 | wxPyEndAllowThreads(__tstate); | |
16600 | if (PyErr_Occurred()) SWIG_fail; | |
16601 | } | |
4f89f6a3 RD |
16602 | { |
16603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16604 | } | |
d14a1e28 RD |
16605 | return resultobj; |
16606 | fail: | |
16607 | return NULL; | |
16608 | } | |
16609 | ||
16610 | ||
c32bde28 | 16611 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16612 | PyObject *resultobj; |
16613 | wxString *arg1 = 0 ; | |
16614 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
16615 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16616 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
16617 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
16618 | wxBitmap result; | |
ae8162c8 RD |
16619 | bool temp1 = false ; |
16620 | bool temp2 = false ; | |
d14a1e28 RD |
16621 | wxSize temp3 ; |
16622 | PyObject * obj0 = 0 ; | |
16623 | PyObject * obj1 = 0 ; | |
16624 | PyObject * obj2 = 0 ; | |
16625 | char *kwnames[] = { | |
16626 | (char *) "id",(char *) "client",(char *) "size", NULL | |
16627 | }; | |
16628 | ||
16629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16630 | { | |
16631 | arg1 = wxString_in_helper(obj0); | |
16632 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16633 | temp1 = true; |
d14a1e28 RD |
16634 | } |
16635 | if (obj1) { | |
16636 | { | |
16637 | arg2 = wxString_in_helper(obj1); | |
16638 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16639 | temp2 = true; |
d14a1e28 RD |
16640 | } |
16641 | } | |
16642 | if (obj2) { | |
16643 | { | |
16644 | arg3 = &temp3; | |
16645 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16646 | } | |
16647 | } | |
16648 | { | |
e3b71cb8 | 16649 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16651 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
16652 | ||
16653 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16654 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16655 | } |
16656 | { | |
16657 | wxBitmap * resultptr; | |
093d3ff1 | 16658 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 16659 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
16660 | } |
16661 | { | |
16662 | if (temp1) | |
16663 | delete arg1; | |
16664 | } | |
16665 | { | |
16666 | if (temp2) | |
16667 | delete arg2; | |
16668 | } | |
16669 | return resultobj; | |
16670 | fail: | |
16671 | { | |
16672 | if (temp1) | |
16673 | delete arg1; | |
16674 | } | |
16675 | { | |
16676 | if (temp2) | |
16677 | delete arg2; | |
16678 | } | |
16679 | return NULL; | |
16680 | } | |
16681 | ||
16682 | ||
c32bde28 | 16683 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16684 | PyObject *resultobj; |
16685 | wxString *arg1 = 0 ; | |
16686 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
16687 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16688 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
16689 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
16690 | wxIcon result; | |
ae8162c8 RD |
16691 | bool temp1 = false ; |
16692 | bool temp2 = false ; | |
d14a1e28 RD |
16693 | wxSize temp3 ; |
16694 | PyObject * obj0 = 0 ; | |
16695 | PyObject * obj1 = 0 ; | |
16696 | PyObject * obj2 = 0 ; | |
16697 | char *kwnames[] = { | |
16698 | (char *) "id",(char *) "client",(char *) "size", NULL | |
16699 | }; | |
16700 | ||
16701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16702 | { | |
16703 | arg1 = wxString_in_helper(obj0); | |
16704 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16705 | temp1 = true; |
d14a1e28 RD |
16706 | } |
16707 | if (obj1) { | |
16708 | { | |
16709 | arg2 = wxString_in_helper(obj1); | |
16710 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16711 | temp2 = true; |
d14a1e28 RD |
16712 | } |
16713 | } | |
16714 | if (obj2) { | |
16715 | { | |
16716 | arg3 = &temp3; | |
16717 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16718 | } | |
16719 | } | |
16720 | { | |
e3b71cb8 | 16721 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16723 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
16724 | ||
16725 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16726 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16727 | } |
16728 | { | |
16729 | wxIcon * resultptr; | |
093d3ff1 | 16730 | resultptr = new wxIcon((wxIcon &)(result)); |
15afbcd0 | 16731 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
16732 | } |
16733 | { | |
16734 | if (temp1) | |
16735 | delete arg1; | |
16736 | } | |
16737 | { | |
16738 | if (temp2) | |
16739 | delete arg2; | |
16740 | } | |
16741 | return resultobj; | |
16742 | fail: | |
16743 | { | |
16744 | if (temp1) | |
16745 | delete arg1; | |
16746 | } | |
16747 | { | |
16748 | if (temp2) | |
16749 | delete arg2; | |
16750 | } | |
16751 | return NULL; | |
16752 | } | |
16753 | ||
16754 | ||
9c874b48 RD |
16755 | static PyObject *_wrap_ArtProvider_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
16756 | PyObject *resultobj; | |
16757 | wxString *arg1 = 0 ; | |
16758 | bool arg2 = (bool) false ; | |
16759 | wxSize result; | |
16760 | bool temp1 = false ; | |
16761 | PyObject * obj0 = 0 ; | |
16762 | PyObject * obj1 = 0 ; | |
16763 | char *kwnames[] = { | |
16764 | (char *) "client",(char *) "platform_dependent", NULL | |
16765 | }; | |
16766 | ||
16767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ArtProvider_GetSize",kwnames,&obj0,&obj1)) goto fail; | |
16768 | { | |
16769 | arg1 = wxString_in_helper(obj0); | |
16770 | if (arg1 == NULL) SWIG_fail; | |
16771 | temp1 = true; | |
16772 | } | |
16773 | if (obj1) { | |
16774 | { | |
16775 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
16776 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16777 | } | |
16778 | } | |
16779 | { | |
16780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16781 | result = wxPyArtProvider::GetSize((wxString const &)*arg1,arg2); | |
16782 | ||
16783 | wxPyEndAllowThreads(__tstate); | |
16784 | if (PyErr_Occurred()) SWIG_fail; | |
16785 | } | |
16786 | { | |
16787 | wxSize * resultptr; | |
16788 | resultptr = new wxSize((wxSize &)(result)); | |
16789 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16790 | } | |
16791 | { | |
16792 | if (temp1) | |
16793 | delete arg1; | |
16794 | } | |
16795 | return resultobj; | |
16796 | fail: | |
16797 | { | |
16798 | if (temp1) | |
16799 | delete arg1; | |
16800 | } | |
16801 | return NULL; | |
16802 | } | |
16803 | ||
16804 | ||
c32bde28 | 16805 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
16806 | PyObject *resultobj; |
16807 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
16808 | PyObject * obj0 = 0 ; | |
16809 | char *kwnames[] = { | |
16810 | (char *) "self", NULL | |
16811 | }; | |
16812 | ||
16813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0); |
16815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1e0c8722 RD |
16816 | { |
16817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16818 | wxPyArtProvider_Destroy(arg1); | |
16819 | ||
16820 | wxPyEndAllowThreads(__tstate); | |
16821 | if (PyErr_Occurred()) SWIG_fail; | |
16822 | } | |
16823 | Py_INCREF(Py_None); resultobj = Py_None; | |
16824 | return resultobj; | |
16825 | fail: | |
16826 | return NULL; | |
16827 | } | |
16828 | ||
16829 | ||
c32bde28 | 16830 | static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16831 | PyObject *obj; |
16832 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16833 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
16834 | Py_INCREF(obj); | |
16835 | return Py_BuildValue((char *)""); | |
16836 | } | |
c32bde28 | 16837 | static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16838 | PyObject *resultobj; |
16839 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16840 | PyObject * obj0 = 0 ; | |
16841 | char *kwnames[] = { | |
16842 | (char *) "self", NULL | |
16843 | }; | |
16844 | ||
16845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16846 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
16847 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16848 | { |
16849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16850 | delete arg1; | |
16851 | ||
16852 | wxPyEndAllowThreads(__tstate); | |
16853 | if (PyErr_Occurred()) SWIG_fail; | |
16854 | } | |
16855 | Py_INCREF(Py_None); resultobj = Py_None; | |
16856 | return resultobj; | |
16857 | fail: | |
16858 | return NULL; | |
16859 | } | |
16860 | ||
16861 | ||
c32bde28 | 16862 | static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16863 | PyObject *resultobj; |
16864 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16865 | wxConfigBase *result; | |
16866 | PyObject * obj0 = 0 ; | |
16867 | char *kwnames[] = { | |
b88bce5f | 16868 | (char *) "config", NULL |
d14a1e28 RD |
16869 | }; |
16870 | ||
16871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
16873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16874 | { |
16875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16876 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
16877 | ||
16878 | wxPyEndAllowThreads(__tstate); | |
16879 | if (PyErr_Occurred()) SWIG_fail; | |
16880 | } | |
15afbcd0 | 16881 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
16882 | return resultobj; |
16883 | fail: | |
16884 | return NULL; | |
16885 | } | |
16886 | ||
16887 | ||
c32bde28 | 16888 | static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16889 | PyObject *resultobj; |
ae8162c8 | 16890 | bool arg1 = (bool) true ; |
d14a1e28 RD |
16891 | wxConfigBase *result; |
16892 | PyObject * obj0 = 0 ; | |
16893 | char *kwnames[] = { | |
16894 | (char *) "createOnDemand", NULL | |
16895 | }; | |
16896 | ||
16897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
16898 | if (obj0) { | |
093d3ff1 RD |
16899 | { |
16900 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
16901 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16902 | } | |
d14a1e28 RD |
16903 | } |
16904 | { | |
16905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16906 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
16907 | ||
16908 | wxPyEndAllowThreads(__tstate); | |
16909 | if (PyErr_Occurred()) SWIG_fail; | |
16910 | } | |
15afbcd0 | 16911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
16912 | return resultobj; |
16913 | fail: | |
16914 | return NULL; | |
16915 | } | |
16916 | ||
16917 | ||
c32bde28 | 16918 | static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16919 | PyObject *resultobj; |
16920 | wxConfigBase *result; | |
16921 | char *kwnames[] = { | |
16922 | NULL | |
16923 | }; | |
16924 | ||
16925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
16926 | { | |
16927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16928 | result = (wxConfigBase *)wxConfigBase::Create(); | |
16929 | ||
16930 | wxPyEndAllowThreads(__tstate); | |
16931 | if (PyErr_Occurred()) SWIG_fail; | |
16932 | } | |
15afbcd0 | 16933 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
16934 | return resultobj; |
16935 | fail: | |
16936 | return NULL; | |
16937 | } | |
16938 | ||
16939 | ||
c32bde28 | 16940 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16941 | PyObject *resultobj; |
16942 | char *kwnames[] = { | |
16943 | NULL | |
16944 | }; | |
16945 | ||
16946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
16947 | { | |
16948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16949 | wxConfigBase::DontCreateOnDemand(); | |
16950 | ||
16951 | wxPyEndAllowThreads(__tstate); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
16954 | Py_INCREF(Py_None); resultobj = Py_None; | |
16955 | return resultobj; | |
16956 | fail: | |
16957 | return NULL; | |
16958 | } | |
16959 | ||
16960 | ||
c32bde28 | 16961 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16962 | PyObject *resultobj; |
16963 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16964 | wxString *arg2 = 0 ; | |
ae8162c8 | 16965 | bool temp2 = false ; |
d14a1e28 RD |
16966 | PyObject * obj0 = 0 ; |
16967 | PyObject * obj1 = 0 ; | |
16968 | char *kwnames[] = { | |
b88bce5f | 16969 | (char *) "self",(char *) "path", NULL |
d14a1e28 RD |
16970 | }; |
16971 | ||
16972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16973 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
16974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16975 | { |
16976 | arg2 = wxString_in_helper(obj1); | |
16977 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16978 | temp2 = true; |
d14a1e28 RD |
16979 | } |
16980 | { | |
16981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16982 | (arg1)->SetPath((wxString const &)*arg2); | |
16983 | ||
16984 | wxPyEndAllowThreads(__tstate); | |
16985 | if (PyErr_Occurred()) SWIG_fail; | |
16986 | } | |
16987 | Py_INCREF(Py_None); resultobj = Py_None; | |
16988 | { | |
16989 | if (temp2) | |
16990 | delete arg2; | |
16991 | } | |
16992 | return resultobj; | |
16993 | fail: | |
16994 | { | |
16995 | if (temp2) | |
16996 | delete arg2; | |
16997 | } | |
16998 | return NULL; | |
16999 | } | |
17000 | ||
17001 | ||
c32bde28 | 17002 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17003 | PyObject *resultobj; |
17004 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17005 | wxString *result; | |
17006 | PyObject * obj0 = 0 ; | |
17007 | char *kwnames[] = { | |
17008 | (char *) "self", NULL | |
17009 | }; | |
17010 | ||
17011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17012 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17013 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17014 | { |
17015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17016 | { | |
17017 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
17018 | result = (wxString *) &_result_ref; | |
17019 | } | |
17020 | ||
17021 | wxPyEndAllowThreads(__tstate); | |
17022 | if (PyErr_Occurred()) SWIG_fail; | |
17023 | } | |
cc6dd355 RD |
17024 | { |
17025 | #if wxUSE_UNICODE | |
17026 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17027 | #else | |
17028 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17029 | #endif | |
17030 | } | |
d14a1e28 RD |
17031 | return resultobj; |
17032 | fail: | |
17033 | return NULL; | |
17034 | } | |
17035 | ||
17036 | ||
c32bde28 | 17037 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17038 | PyObject *resultobj; |
17039 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17040 | PyObject *result; | |
17041 | PyObject * obj0 = 0 ; | |
17042 | char *kwnames[] = { | |
17043 | (char *) "self", NULL | |
17044 | }; | |
17045 | ||
17046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17047 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17048 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17049 | { |
17050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17051 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
17052 | ||
17053 | wxPyEndAllowThreads(__tstate); | |
17054 | if (PyErr_Occurred()) SWIG_fail; | |
17055 | } | |
17056 | resultobj = result; | |
17057 | return resultobj; | |
17058 | fail: | |
17059 | return NULL; | |
17060 | } | |
17061 | ||
17062 | ||
c32bde28 | 17063 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17064 | PyObject *resultobj; |
17065 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17066 | long arg2 ; | |
17067 | PyObject *result; | |
17068 | PyObject * obj0 = 0 ; | |
994141e6 | 17069 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17070 | char *kwnames[] = { |
17071 | (char *) "self",(char *) "index", NULL | |
17072 | }; | |
17073 | ||
994141e6 | 17074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17077 | { | |
17078 | arg2 = (long)(SWIG_As_long(obj1)); | |
17079 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17080 | } | |
d14a1e28 RD |
17081 | { |
17082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17083 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
17084 | ||
17085 | wxPyEndAllowThreads(__tstate); | |
17086 | if (PyErr_Occurred()) SWIG_fail; | |
17087 | } | |
17088 | resultobj = result; | |
17089 | return resultobj; | |
17090 | fail: | |
17091 | return NULL; | |
17092 | } | |
17093 | ||
17094 | ||
c32bde28 | 17095 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17096 | PyObject *resultobj; |
17097 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17098 | PyObject *result; | |
17099 | PyObject * obj0 = 0 ; | |
17100 | char *kwnames[] = { | |
17101 | (char *) "self", NULL | |
17102 | }; | |
17103 | ||
17104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17105 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17107 | { |
17108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17109 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
17110 | ||
17111 | wxPyEndAllowThreads(__tstate); | |
17112 | if (PyErr_Occurred()) SWIG_fail; | |
17113 | } | |
17114 | resultobj = result; | |
17115 | return resultobj; | |
17116 | fail: | |
17117 | return NULL; | |
17118 | } | |
17119 | ||
17120 | ||
c32bde28 | 17121 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17122 | PyObject *resultobj; |
17123 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17124 | long arg2 ; | |
17125 | PyObject *result; | |
17126 | PyObject * obj0 = 0 ; | |
994141e6 | 17127 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17128 | char *kwnames[] = { |
17129 | (char *) "self",(char *) "index", NULL | |
17130 | }; | |
17131 | ||
994141e6 | 17132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17135 | { | |
17136 | arg2 = (long)(SWIG_As_long(obj1)); | |
17137 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17138 | } | |
d14a1e28 RD |
17139 | { |
17140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17141 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
17142 | ||
17143 | wxPyEndAllowThreads(__tstate); | |
17144 | if (PyErr_Occurred()) SWIG_fail; | |
17145 | } | |
17146 | resultobj = result; | |
17147 | return resultobj; | |
17148 | fail: | |
17149 | return NULL; | |
17150 | } | |
17151 | ||
17152 | ||
c32bde28 | 17153 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17154 | PyObject *resultobj; |
17155 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 17156 | bool arg2 = (bool) false ; |
d14a1e28 RD |
17157 | size_t result; |
17158 | PyObject * obj0 = 0 ; | |
17159 | PyObject * obj1 = 0 ; | |
17160 | char *kwnames[] = { | |
b88bce5f | 17161 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
17162 | }; |
17163 | ||
17164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17165 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17166 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 17167 | if (obj1) { |
093d3ff1 RD |
17168 | { |
17169 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17170 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17171 | } | |
d14a1e28 RD |
17172 | } |
17173 | { | |
17174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17175 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
17176 | ||
17177 | wxPyEndAllowThreads(__tstate); | |
17178 | if (PyErr_Occurred()) SWIG_fail; | |
17179 | } | |
093d3ff1 RD |
17180 | { |
17181 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
17182 | } | |
d14a1e28 RD |
17183 | return resultobj; |
17184 | fail: | |
17185 | return NULL; | |
17186 | } | |
17187 | ||
17188 | ||
c32bde28 | 17189 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17190 | PyObject *resultobj; |
17191 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 17192 | bool arg2 = (bool) false ; |
d14a1e28 RD |
17193 | size_t result; |
17194 | PyObject * obj0 = 0 ; | |
17195 | PyObject * obj1 = 0 ; | |
17196 | char *kwnames[] = { | |
b88bce5f | 17197 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
17198 | }; |
17199 | ||
17200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 17203 | if (obj1) { |
093d3ff1 RD |
17204 | { |
17205 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17206 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17207 | } | |
d14a1e28 RD |
17208 | } |
17209 | { | |
17210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17211 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
17212 | ||
17213 | wxPyEndAllowThreads(__tstate); | |
17214 | if (PyErr_Occurred()) SWIG_fail; | |
17215 | } | |
093d3ff1 RD |
17216 | { |
17217 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
17218 | } | |
d14a1e28 RD |
17219 | return resultobj; |
17220 | fail: | |
17221 | return NULL; | |
17222 | } | |
17223 | ||
17224 | ||
c32bde28 | 17225 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17226 | PyObject *resultobj; |
17227 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17228 | wxString *arg2 = 0 ; | |
17229 | bool result; | |
ae8162c8 | 17230 | bool temp2 = false ; |
d14a1e28 RD |
17231 | PyObject * obj0 = 0 ; |
17232 | PyObject * obj1 = 0 ; | |
17233 | char *kwnames[] = { | |
b88bce5f | 17234 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
17235 | }; |
17236 | ||
17237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17240 | { |
17241 | arg2 = wxString_in_helper(obj1); | |
17242 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17243 | temp2 = true; |
d14a1e28 RD |
17244 | } |
17245 | { | |
17246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17247 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
17248 | ||
17249 | wxPyEndAllowThreads(__tstate); | |
17250 | if (PyErr_Occurred()) SWIG_fail; | |
17251 | } | |
4f89f6a3 RD |
17252 | { |
17253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17254 | } | |
d14a1e28 RD |
17255 | { |
17256 | if (temp2) | |
17257 | delete arg2; | |
17258 | } | |
17259 | return resultobj; | |
17260 | fail: | |
17261 | { | |
17262 | if (temp2) | |
17263 | delete arg2; | |
17264 | } | |
17265 | return NULL; | |
17266 | } | |
17267 | ||
17268 | ||
c32bde28 | 17269 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17270 | PyObject *resultobj; |
17271 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17272 | wxString *arg2 = 0 ; | |
17273 | bool result; | |
ae8162c8 | 17274 | bool temp2 = false ; |
d14a1e28 RD |
17275 | PyObject * obj0 = 0 ; |
17276 | PyObject * obj1 = 0 ; | |
17277 | char *kwnames[] = { | |
b88bce5f | 17278 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
17279 | }; |
17280 | ||
17281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17282 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17283 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17284 | { |
17285 | arg2 = wxString_in_helper(obj1); | |
17286 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17287 | temp2 = true; |
d14a1e28 RD |
17288 | } |
17289 | { | |
17290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17291 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
17292 | ||
17293 | wxPyEndAllowThreads(__tstate); | |
17294 | if (PyErr_Occurred()) SWIG_fail; | |
17295 | } | |
4f89f6a3 RD |
17296 | { |
17297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17298 | } | |
d14a1e28 RD |
17299 | { |
17300 | if (temp2) | |
17301 | delete arg2; | |
17302 | } | |
17303 | return resultobj; | |
17304 | fail: | |
17305 | { | |
17306 | if (temp2) | |
17307 | delete arg2; | |
17308 | } | |
17309 | return NULL; | |
17310 | } | |
17311 | ||
17312 | ||
c32bde28 | 17313 | static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17314 | PyObject *resultobj; |
17315 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17316 | wxString *arg2 = 0 ; | |
17317 | bool result; | |
ae8162c8 | 17318 | bool temp2 = false ; |
d14a1e28 RD |
17319 | PyObject * obj0 = 0 ; |
17320 | PyObject * obj1 = 0 ; | |
17321 | char *kwnames[] = { | |
b88bce5f | 17322 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
17323 | }; |
17324 | ||
17325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17326 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17328 | { |
17329 | arg2 = wxString_in_helper(obj1); | |
17330 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17331 | temp2 = true; |
d14a1e28 RD |
17332 | } |
17333 | { | |
17334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17335 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
17336 | ||
17337 | wxPyEndAllowThreads(__tstate); | |
17338 | if (PyErr_Occurred()) SWIG_fail; | |
17339 | } | |
4f89f6a3 RD |
17340 | { |
17341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17342 | } | |
d14a1e28 RD |
17343 | { |
17344 | if (temp2) | |
17345 | delete arg2; | |
17346 | } | |
17347 | return resultobj; | |
17348 | fail: | |
17349 | { | |
17350 | if (temp2) | |
17351 | delete arg2; | |
17352 | } | |
17353 | return NULL; | |
17354 | } | |
17355 | ||
17356 | ||
c32bde28 | 17357 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17358 | PyObject *resultobj; |
17359 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17360 | wxString *arg2 = 0 ; | |
093d3ff1 | 17361 | wxConfigBase::EntryType result; |
ae8162c8 | 17362 | bool temp2 = false ; |
d14a1e28 RD |
17363 | PyObject * obj0 = 0 ; |
17364 | PyObject * obj1 = 0 ; | |
17365 | char *kwnames[] = { | |
17366 | (char *) "self",(char *) "name", NULL | |
17367 | }; | |
17368 | ||
17369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17372 | { |
17373 | arg2 = wxString_in_helper(obj1); | |
17374 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17375 | temp2 = true; |
d14a1e28 RD |
17376 | } |
17377 | { | |
17378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17379 | result = (wxConfigBase::EntryType)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); |
d14a1e28 RD |
17380 | |
17381 | wxPyEndAllowThreads(__tstate); | |
17382 | if (PyErr_Occurred()) SWIG_fail; | |
17383 | } | |
093d3ff1 | 17384 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
17385 | { |
17386 | if (temp2) | |
17387 | delete arg2; | |
17388 | } | |
17389 | return resultobj; | |
17390 | fail: | |
17391 | { | |
17392 | if (temp2) | |
17393 | delete arg2; | |
17394 | } | |
17395 | return NULL; | |
17396 | } | |
17397 | ||
17398 | ||
c32bde28 | 17399 | static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17400 | PyObject *resultobj; |
17401 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17402 | wxString *arg2 = 0 ; | |
17403 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17404 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17405 | wxString result; | |
ae8162c8 RD |
17406 | bool temp2 = false ; |
17407 | bool temp3 = false ; | |
d14a1e28 RD |
17408 | PyObject * obj0 = 0 ; |
17409 | PyObject * obj1 = 0 ; | |
17410 | PyObject * obj2 = 0 ; | |
17411 | char *kwnames[] = { | |
17412 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
17413 | }; | |
17414 | ||
17415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
17416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17418 | { |
17419 | arg2 = wxString_in_helper(obj1); | |
17420 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17421 | temp2 = true; |
d14a1e28 RD |
17422 | } |
17423 | if (obj2) { | |
17424 | { | |
17425 | arg3 = wxString_in_helper(obj2); | |
17426 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 17427 | temp3 = true; |
d14a1e28 RD |
17428 | } |
17429 | } | |
17430 | { | |
17431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17432 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
17433 | ||
17434 | wxPyEndAllowThreads(__tstate); | |
17435 | if (PyErr_Occurred()) SWIG_fail; | |
17436 | } | |
17437 | { | |
17438 | #if wxUSE_UNICODE | |
17439 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17440 | #else | |
17441 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17442 | #endif | |
17443 | } | |
17444 | { | |
17445 | if (temp2) | |
17446 | delete arg2; | |
17447 | } | |
17448 | { | |
17449 | if (temp3) | |
17450 | delete arg3; | |
17451 | } | |
17452 | return resultobj; | |
17453 | fail: | |
17454 | { | |
17455 | if (temp2) | |
17456 | delete arg2; | |
17457 | } | |
17458 | { | |
17459 | if (temp3) | |
17460 | delete arg3; | |
17461 | } | |
17462 | return NULL; | |
17463 | } | |
17464 | ||
17465 | ||
c32bde28 | 17466 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17467 | PyObject *resultobj; |
17468 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17469 | wxString *arg2 = 0 ; | |
17470 | long arg3 = (long) 0 ; | |
17471 | long result; | |
ae8162c8 | 17472 | bool temp2 = false ; |
d14a1e28 RD |
17473 | PyObject * obj0 = 0 ; |
17474 | PyObject * obj1 = 0 ; | |
994141e6 | 17475 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17476 | char *kwnames[] = { |
17477 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
17478 | }; | |
17479 | ||
994141e6 | 17480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
17481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17483 | { |
17484 | arg2 = wxString_in_helper(obj1); | |
17485 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17486 | temp2 = true; |
d14a1e28 | 17487 | } |
994141e6 | 17488 | if (obj2) { |
093d3ff1 RD |
17489 | { |
17490 | arg3 = (long)(SWIG_As_long(obj2)); | |
17491 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17492 | } | |
994141e6 | 17493 | } |
d14a1e28 RD |
17494 | { |
17495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17496 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
17497 | ||
17498 | wxPyEndAllowThreads(__tstate); | |
17499 | if (PyErr_Occurred()) SWIG_fail; | |
17500 | } | |
093d3ff1 RD |
17501 | { |
17502 | resultobj = SWIG_From_long((long)(result)); | |
17503 | } | |
d14a1e28 RD |
17504 | { |
17505 | if (temp2) | |
17506 | delete arg2; | |
17507 | } | |
17508 | return resultobj; | |
17509 | fail: | |
17510 | { | |
17511 | if (temp2) | |
17512 | delete arg2; | |
17513 | } | |
17514 | return NULL; | |
17515 | } | |
17516 | ||
17517 | ||
c32bde28 | 17518 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17519 | PyObject *resultobj; |
17520 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17521 | wxString *arg2 = 0 ; | |
17522 | double arg3 = (double) 0.0 ; | |
17523 | double result; | |
ae8162c8 | 17524 | bool temp2 = false ; |
d14a1e28 RD |
17525 | PyObject * obj0 = 0 ; |
17526 | PyObject * obj1 = 0 ; | |
994141e6 | 17527 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17528 | char *kwnames[] = { |
17529 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
17530 | }; | |
17531 | ||
994141e6 | 17532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
17533 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17534 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17535 | { |
17536 | arg2 = wxString_in_helper(obj1); | |
17537 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17538 | temp2 = true; |
d14a1e28 | 17539 | } |
994141e6 | 17540 | if (obj2) { |
093d3ff1 RD |
17541 | { |
17542 | arg3 = (double)(SWIG_As_double(obj2)); | |
17543 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17544 | } | |
994141e6 | 17545 | } |
d14a1e28 RD |
17546 | { |
17547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17548 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
17549 | ||
17550 | wxPyEndAllowThreads(__tstate); | |
17551 | if (PyErr_Occurred()) SWIG_fail; | |
17552 | } | |
093d3ff1 RD |
17553 | { |
17554 | resultobj = SWIG_From_double((double)(result)); | |
17555 | } | |
d14a1e28 RD |
17556 | { |
17557 | if (temp2) | |
17558 | delete arg2; | |
17559 | } | |
17560 | return resultobj; | |
17561 | fail: | |
17562 | { | |
17563 | if (temp2) | |
17564 | delete arg2; | |
17565 | } | |
17566 | return NULL; | |
17567 | } | |
17568 | ||
17569 | ||
c32bde28 | 17570 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17571 | PyObject *resultobj; |
17572 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17573 | wxString *arg2 = 0 ; | |
ae8162c8 | 17574 | bool arg3 = (bool) false ; |
d14a1e28 | 17575 | bool result; |
ae8162c8 | 17576 | bool temp2 = false ; |
d14a1e28 RD |
17577 | PyObject * obj0 = 0 ; |
17578 | PyObject * obj1 = 0 ; | |
17579 | PyObject * obj2 = 0 ; | |
17580 | char *kwnames[] = { | |
17581 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
17582 | }; | |
17583 | ||
17584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
17585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17587 | { |
17588 | arg2 = wxString_in_helper(obj1); | |
17589 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17590 | temp2 = true; |
d14a1e28 RD |
17591 | } |
17592 | if (obj2) { | |
093d3ff1 RD |
17593 | { |
17594 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
17595 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17596 | } | |
d14a1e28 RD |
17597 | } |
17598 | { | |
17599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17600 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
17601 | ||
17602 | wxPyEndAllowThreads(__tstate); | |
17603 | if (PyErr_Occurred()) SWIG_fail; | |
17604 | } | |
4f89f6a3 RD |
17605 | { |
17606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17607 | } | |
d14a1e28 RD |
17608 | { |
17609 | if (temp2) | |
17610 | delete arg2; | |
17611 | } | |
17612 | return resultobj; | |
17613 | fail: | |
17614 | { | |
17615 | if (temp2) | |
17616 | delete arg2; | |
17617 | } | |
17618 | return NULL; | |
17619 | } | |
17620 | ||
17621 | ||
c32bde28 | 17622 | static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17623 | PyObject *resultobj; |
17624 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17625 | wxString *arg2 = 0 ; | |
17626 | wxString *arg3 = 0 ; | |
17627 | bool result; | |
ae8162c8 RD |
17628 | bool temp2 = false ; |
17629 | bool temp3 = false ; | |
d14a1e28 RD |
17630 | PyObject * obj0 = 0 ; |
17631 | PyObject * obj1 = 0 ; | |
17632 | PyObject * obj2 = 0 ; | |
17633 | char *kwnames[] = { | |
17634 | (char *) "self",(char *) "key",(char *) "value", NULL | |
17635 | }; | |
17636 | ||
17637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
17638 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17639 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17640 | { |
17641 | arg2 = wxString_in_helper(obj1); | |
17642 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17643 | temp2 = true; |
d14a1e28 RD |
17644 | } |
17645 | { | |
17646 | arg3 = wxString_in_helper(obj2); | |
17647 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 17648 | temp3 = true; |
d14a1e28 RD |
17649 | } |
17650 | { | |
17651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17652 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
17653 | ||
17654 | wxPyEndAllowThreads(__tstate); | |
17655 | if (PyErr_Occurred()) SWIG_fail; | |
17656 | } | |
4f89f6a3 RD |
17657 | { |
17658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17659 | } | |
d14a1e28 RD |
17660 | { |
17661 | if (temp2) | |
17662 | delete arg2; | |
17663 | } | |
17664 | { | |
17665 | if (temp3) | |
17666 | delete arg3; | |
17667 | } | |
17668 | return resultobj; | |
17669 | fail: | |
17670 | { | |
17671 | if (temp2) | |
17672 | delete arg2; | |
17673 | } | |
17674 | { | |
17675 | if (temp3) | |
17676 | delete arg3; | |
17677 | } | |
17678 | return NULL; | |
17679 | } | |
17680 | ||
17681 | ||
c32bde28 | 17682 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17683 | PyObject *resultobj; |
17684 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17685 | wxString *arg2 = 0 ; | |
17686 | long arg3 ; | |
17687 | bool result; | |
ae8162c8 | 17688 | bool temp2 = false ; |
d14a1e28 RD |
17689 | PyObject * obj0 = 0 ; |
17690 | PyObject * obj1 = 0 ; | |
994141e6 | 17691 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17692 | char *kwnames[] = { |
17693 | (char *) "self",(char *) "key",(char *) "value", NULL | |
17694 | }; | |
17695 | ||
994141e6 | 17696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
17697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17699 | { |
17700 | arg2 = wxString_in_helper(obj1); | |
17701 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17702 | temp2 = true; |
d14a1e28 | 17703 | } |
093d3ff1 RD |
17704 | { |
17705 | arg3 = (long)(SWIG_As_long(obj2)); | |
17706 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17707 | } | |
d14a1e28 RD |
17708 | { |
17709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17710 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
17711 | ||
17712 | wxPyEndAllowThreads(__tstate); | |
17713 | if (PyErr_Occurred()) SWIG_fail; | |
17714 | } | |
4f89f6a3 RD |
17715 | { |
17716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17717 | } | |
d14a1e28 RD |
17718 | { |
17719 | if (temp2) | |
17720 | delete arg2; | |
17721 | } | |
17722 | return resultobj; | |
17723 | fail: | |
17724 | { | |
17725 | if (temp2) | |
17726 | delete arg2; | |
17727 | } | |
17728 | return NULL; | |
17729 | } | |
17730 | ||
17731 | ||
c32bde28 | 17732 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17733 | PyObject *resultobj; |
17734 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17735 | wxString *arg2 = 0 ; | |
17736 | double arg3 ; | |
17737 | bool result; | |
ae8162c8 | 17738 | bool temp2 = false ; |
d14a1e28 RD |
17739 | PyObject * obj0 = 0 ; |
17740 | PyObject * obj1 = 0 ; | |
994141e6 | 17741 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17742 | char *kwnames[] = { |
17743 | (char *) "self",(char *) "key",(char *) "value", NULL | |
17744 | }; | |
17745 | ||
994141e6 | 17746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
17747 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17748 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17749 | { |
17750 | arg2 = wxString_in_helper(obj1); | |
17751 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17752 | temp2 = true; |
d14a1e28 | 17753 | } |
093d3ff1 RD |
17754 | { |
17755 | arg3 = (double)(SWIG_As_double(obj2)); | |
17756 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17757 | } | |
d14a1e28 RD |
17758 | { |
17759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17760 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
17761 | ||
17762 | wxPyEndAllowThreads(__tstate); | |
17763 | if (PyErr_Occurred()) SWIG_fail; | |
17764 | } | |
4f89f6a3 RD |
17765 | { |
17766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17767 | } | |
d14a1e28 RD |
17768 | { |
17769 | if (temp2) | |
17770 | delete arg2; | |
17771 | } | |
17772 | return resultobj; | |
17773 | fail: | |
17774 | { | |
17775 | if (temp2) | |
17776 | delete arg2; | |
17777 | } | |
17778 | return NULL; | |
17779 | } | |
17780 | ||
17781 | ||
c32bde28 | 17782 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17783 | PyObject *resultobj; |
17784 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17785 | wxString *arg2 = 0 ; | |
17786 | bool arg3 ; | |
17787 | bool result; | |
ae8162c8 | 17788 | bool temp2 = false ; |
d14a1e28 RD |
17789 | PyObject * obj0 = 0 ; |
17790 | PyObject * obj1 = 0 ; | |
17791 | PyObject * obj2 = 0 ; | |
17792 | char *kwnames[] = { | |
17793 | (char *) "self",(char *) "key",(char *) "value", NULL | |
17794 | }; | |
17795 | ||
17796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
17797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17799 | { |
17800 | arg2 = wxString_in_helper(obj1); | |
17801 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17802 | temp2 = true; |
d14a1e28 | 17803 | } |
093d3ff1 RD |
17804 | { |
17805 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
17806 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17807 | } | |
d14a1e28 RD |
17808 | { |
17809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17810 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
17811 | ||
17812 | wxPyEndAllowThreads(__tstate); | |
17813 | if (PyErr_Occurred()) SWIG_fail; | |
17814 | } | |
4f89f6a3 RD |
17815 | { |
17816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17817 | } | |
d14a1e28 RD |
17818 | { |
17819 | if (temp2) | |
17820 | delete arg2; | |
17821 | } | |
17822 | return resultobj; | |
17823 | fail: | |
17824 | { | |
17825 | if (temp2) | |
17826 | delete arg2; | |
17827 | } | |
17828 | return NULL; | |
17829 | } | |
17830 | ||
17831 | ||
c32bde28 | 17832 | static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17833 | PyObject *resultobj; |
17834 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 17835 | bool arg2 = (bool) false ; |
d14a1e28 RD |
17836 | bool result; |
17837 | PyObject * obj0 = 0 ; | |
17838 | PyObject * obj1 = 0 ; | |
17839 | char *kwnames[] = { | |
b88bce5f | 17840 | (char *) "self",(char *) "currentOnly", NULL |
d14a1e28 RD |
17841 | }; |
17842 | ||
17843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17844 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 17846 | if (obj1) { |
093d3ff1 RD |
17847 | { |
17848 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17849 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17850 | } | |
d14a1e28 RD |
17851 | } |
17852 | { | |
17853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17854 | result = (bool)(arg1)->Flush(arg2); | |
17855 | ||
17856 | wxPyEndAllowThreads(__tstate); | |
17857 | if (PyErr_Occurred()) SWIG_fail; | |
17858 | } | |
4f89f6a3 RD |
17859 | { |
17860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17861 | } | |
d14a1e28 RD |
17862 | return resultobj; |
17863 | fail: | |
17864 | return NULL; | |
17865 | } | |
17866 | ||
17867 | ||
c32bde28 | 17868 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17869 | PyObject *resultobj; |
17870 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17871 | wxString *arg2 = 0 ; | |
17872 | wxString *arg3 = 0 ; | |
17873 | bool result; | |
ae8162c8 RD |
17874 | bool temp2 = false ; |
17875 | bool temp3 = false ; | |
d14a1e28 RD |
17876 | PyObject * obj0 = 0 ; |
17877 | PyObject * obj1 = 0 ; | |
17878 | PyObject * obj2 = 0 ; | |
17879 | char *kwnames[] = { | |
17880 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
17881 | }; | |
17882 | ||
17883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
17884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17886 | { |
17887 | arg2 = wxString_in_helper(obj1); | |
17888 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17889 | temp2 = true; |
d14a1e28 RD |
17890 | } |
17891 | { | |
17892 | arg3 = wxString_in_helper(obj2); | |
17893 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 17894 | temp3 = true; |
d14a1e28 RD |
17895 | } |
17896 | { | |
17897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17898 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
17899 | ||
17900 | wxPyEndAllowThreads(__tstate); | |
17901 | if (PyErr_Occurred()) SWIG_fail; | |
17902 | } | |
4f89f6a3 RD |
17903 | { |
17904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17905 | } | |
d14a1e28 RD |
17906 | { |
17907 | if (temp2) | |
17908 | delete arg2; | |
17909 | } | |
17910 | { | |
17911 | if (temp3) | |
17912 | delete arg3; | |
17913 | } | |
17914 | return resultobj; | |
17915 | fail: | |
17916 | { | |
17917 | if (temp2) | |
17918 | delete arg2; | |
17919 | } | |
17920 | { | |
17921 | if (temp3) | |
17922 | delete arg3; | |
17923 | } | |
17924 | return NULL; | |
17925 | } | |
17926 | ||
17927 | ||
c32bde28 | 17928 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17929 | PyObject *resultobj; |
17930 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17931 | wxString *arg2 = 0 ; | |
17932 | wxString *arg3 = 0 ; | |
17933 | bool result; | |
ae8162c8 RD |
17934 | bool temp2 = false ; |
17935 | bool temp3 = false ; | |
d14a1e28 RD |
17936 | PyObject * obj0 = 0 ; |
17937 | PyObject * obj1 = 0 ; | |
17938 | PyObject * obj2 = 0 ; | |
17939 | char *kwnames[] = { | |
17940 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
17941 | }; | |
17942 | ||
17943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
17944 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
17945 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17946 | { |
17947 | arg2 = wxString_in_helper(obj1); | |
17948 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17949 | temp2 = true; |
d14a1e28 RD |
17950 | } |
17951 | { | |
17952 | arg3 = wxString_in_helper(obj2); | |
17953 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 17954 | temp3 = true; |
d14a1e28 RD |
17955 | } |
17956 | { | |
17957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17958 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
17959 | ||
17960 | wxPyEndAllowThreads(__tstate); | |
17961 | if (PyErr_Occurred()) SWIG_fail; | |
17962 | } | |
4f89f6a3 RD |
17963 | { |
17964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17965 | } | |
d14a1e28 RD |
17966 | { |
17967 | if (temp2) | |
17968 | delete arg2; | |
17969 | } | |
17970 | { | |
17971 | if (temp3) | |
17972 | delete arg3; | |
17973 | } | |
17974 | return resultobj; | |
17975 | fail: | |
17976 | { | |
17977 | if (temp2) | |
17978 | delete arg2; | |
17979 | } | |
17980 | { | |
17981 | if (temp3) | |
17982 | delete arg3; | |
17983 | } | |
17984 | return NULL; | |
17985 | } | |
17986 | ||
17987 | ||
c32bde28 | 17988 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17989 | PyObject *resultobj; |
17990 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17991 | wxString *arg2 = 0 ; | |
ae8162c8 | 17992 | bool arg3 = (bool) true ; |
d14a1e28 | 17993 | bool result; |
ae8162c8 | 17994 | bool temp2 = false ; |
d14a1e28 RD |
17995 | PyObject * obj0 = 0 ; |
17996 | PyObject * obj1 = 0 ; | |
17997 | PyObject * obj2 = 0 ; | |
17998 | char *kwnames[] = { | |
b88bce5f | 17999 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL |
d14a1e28 RD |
18000 | }; |
18001 | ||
18002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
18003 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18004 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18005 | { |
18006 | arg2 = wxString_in_helper(obj1); | |
18007 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18008 | temp2 = true; |
d14a1e28 RD |
18009 | } |
18010 | if (obj2) { | |
093d3ff1 RD |
18011 | { |
18012 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
18013 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18014 | } | |
d14a1e28 RD |
18015 | } |
18016 | { | |
18017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18018 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
18019 | ||
18020 | wxPyEndAllowThreads(__tstate); | |
18021 | if (PyErr_Occurred()) SWIG_fail; | |
18022 | } | |
4f89f6a3 RD |
18023 | { |
18024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18025 | } | |
d14a1e28 RD |
18026 | { |
18027 | if (temp2) | |
18028 | delete arg2; | |
18029 | } | |
18030 | return resultobj; | |
18031 | fail: | |
18032 | { | |
18033 | if (temp2) | |
18034 | delete arg2; | |
18035 | } | |
18036 | return NULL; | |
18037 | } | |
18038 | ||
18039 | ||
c32bde28 | 18040 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18041 | PyObject *resultobj; |
18042 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18043 | wxString *arg2 = 0 ; | |
18044 | bool result; | |
ae8162c8 | 18045 | bool temp2 = false ; |
d14a1e28 RD |
18046 | PyObject * obj0 = 0 ; |
18047 | PyObject * obj1 = 0 ; | |
18048 | char *kwnames[] = { | |
18049 | (char *) "self",(char *) "key", NULL | |
18050 | }; | |
18051 | ||
18052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18055 | { |
18056 | arg2 = wxString_in_helper(obj1); | |
18057 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18058 | temp2 = true; |
d14a1e28 RD |
18059 | } |
18060 | { | |
18061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18062 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
18063 | ||
18064 | wxPyEndAllowThreads(__tstate); | |
18065 | if (PyErr_Occurred()) SWIG_fail; | |
18066 | } | |
4f89f6a3 RD |
18067 | { |
18068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18069 | } | |
d14a1e28 RD |
18070 | { |
18071 | if (temp2) | |
18072 | delete arg2; | |
18073 | } | |
18074 | return resultobj; | |
18075 | fail: | |
18076 | { | |
18077 | if (temp2) | |
18078 | delete arg2; | |
18079 | } | |
18080 | return NULL; | |
18081 | } | |
18082 | ||
18083 | ||
c32bde28 | 18084 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18085 | PyObject *resultobj; |
18086 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18087 | bool result; | |
18088 | PyObject * obj0 = 0 ; | |
18089 | char *kwnames[] = { | |
18090 | (char *) "self", NULL | |
18091 | }; | |
18092 | ||
18093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18096 | { |
18097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18098 | result = (bool)(arg1)->DeleteAll(); | |
18099 | ||
18100 | wxPyEndAllowThreads(__tstate); | |
18101 | if (PyErr_Occurred()) SWIG_fail; | |
18102 | } | |
4f89f6a3 RD |
18103 | { |
18104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18105 | } | |
d14a1e28 RD |
18106 | return resultobj; |
18107 | fail: | |
18108 | return NULL; | |
18109 | } | |
18110 | ||
18111 | ||
c32bde28 | 18112 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18113 | PyObject *resultobj; |
18114 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 18115 | bool arg2 = (bool) true ; |
d14a1e28 | 18116 | PyObject * obj0 = 0 ; |
b88bce5f | 18117 | PyObject * obj1 = 0 ; |
d14a1e28 | 18118 | char *kwnames[] = { |
b88bce5f | 18119 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
18120 | }; |
18121 | ||
b88bce5f | 18122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
18123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b88bce5f | 18125 | if (obj1) { |
093d3ff1 RD |
18126 | { |
18127 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18128 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18129 | } | |
b88bce5f | 18130 | } |
d14a1e28 RD |
18131 | { |
18132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 18133 | (arg1)->SetExpandEnvVars(arg2); |
d14a1e28 RD |
18134 | |
18135 | wxPyEndAllowThreads(__tstate); | |
18136 | if (PyErr_Occurred()) SWIG_fail; | |
18137 | } | |
b88bce5f | 18138 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
18139 | return resultobj; |
18140 | fail: | |
18141 | return NULL; | |
18142 | } | |
18143 | ||
18144 | ||
c32bde28 | 18145 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18146 | PyObject *resultobj; |
18147 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 18148 | bool result; |
d14a1e28 | 18149 | PyObject * obj0 = 0 ; |
d14a1e28 | 18150 | char *kwnames[] = { |
b88bce5f | 18151 | (char *) "self", NULL |
d14a1e28 RD |
18152 | }; |
18153 | ||
b88bce5f | 18154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
18155 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18156 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18157 | { |
18158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 18159 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); |
d14a1e28 RD |
18160 | |
18161 | wxPyEndAllowThreads(__tstate); | |
18162 | if (PyErr_Occurred()) SWIG_fail; | |
18163 | } | |
4f89f6a3 RD |
18164 | { |
18165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18166 | } | |
d14a1e28 RD |
18167 | return resultobj; |
18168 | fail: | |
18169 | return NULL; | |
18170 | } | |
18171 | ||
18172 | ||
c32bde28 | 18173 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18174 | PyObject *resultobj; |
18175 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 18176 | bool arg2 = (bool) true ; |
d14a1e28 RD |
18177 | PyObject * obj0 = 0 ; |
18178 | PyObject * obj1 = 0 ; | |
18179 | char *kwnames[] = { | |
b88bce5f | 18180 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
18181 | }; |
18182 | ||
18183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18184 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18185 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 18186 | if (obj1) { |
093d3ff1 RD |
18187 | { |
18188 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18189 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18190 | } | |
d14a1e28 RD |
18191 | } |
18192 | { | |
18193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18194 | (arg1)->SetRecordDefaults(arg2); | |
18195 | ||
18196 | wxPyEndAllowThreads(__tstate); | |
18197 | if (PyErr_Occurred()) SWIG_fail; | |
18198 | } | |
18199 | Py_INCREF(Py_None); resultobj = Py_None; | |
18200 | return resultobj; | |
18201 | fail: | |
18202 | return NULL; | |
18203 | } | |
18204 | ||
18205 | ||
c32bde28 | 18206 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18207 | PyObject *resultobj; |
18208 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18209 | bool result; | |
18210 | PyObject * obj0 = 0 ; | |
18211 | char *kwnames[] = { | |
18212 | (char *) "self", NULL | |
18213 | }; | |
18214 | ||
18215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18218 | { |
18219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18220 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
18221 | ||
18222 | wxPyEndAllowThreads(__tstate); | |
18223 | if (PyErr_Occurred()) SWIG_fail; | |
18224 | } | |
4f89f6a3 RD |
18225 | { |
18226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18227 | } | |
d14a1e28 RD |
18228 | return resultobj; |
18229 | fail: | |
18230 | return NULL; | |
18231 | } | |
18232 | ||
18233 | ||
c32bde28 | 18234 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18235 | PyObject *resultobj; |
18236 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18237 | wxString *arg2 = 0 ; | |
18238 | wxString result; | |
ae8162c8 | 18239 | bool temp2 = false ; |
d14a1e28 RD |
18240 | PyObject * obj0 = 0 ; |
18241 | PyObject * obj1 = 0 ; | |
18242 | char *kwnames[] = { | |
18243 | (char *) "self",(char *) "str", NULL | |
18244 | }; | |
18245 | ||
18246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18247 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18248 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18249 | { |
18250 | arg2 = wxString_in_helper(obj1); | |
18251 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18252 | temp2 = true; |
d14a1e28 RD |
18253 | } |
18254 | { | |
18255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18256 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
18257 | ||
18258 | wxPyEndAllowThreads(__tstate); | |
18259 | if (PyErr_Occurred()) SWIG_fail; | |
18260 | } | |
18261 | { | |
18262 | #if wxUSE_UNICODE | |
18263 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18264 | #else | |
18265 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18266 | #endif | |
18267 | } | |
18268 | { | |
18269 | if (temp2) | |
18270 | delete arg2; | |
18271 | } | |
18272 | return resultobj; | |
18273 | fail: | |
18274 | { | |
18275 | if (temp2) | |
18276 | delete arg2; | |
18277 | } | |
18278 | return NULL; | |
18279 | } | |
18280 | ||
18281 | ||
c32bde28 | 18282 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18283 | PyObject *resultobj; |
18284 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18285 | wxString result; | |
18286 | PyObject * obj0 = 0 ; | |
18287 | char *kwnames[] = { | |
18288 | (char *) "self", NULL | |
18289 | }; | |
18290 | ||
18291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18294 | { |
18295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18296 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
18297 | ||
18298 | wxPyEndAllowThreads(__tstate); | |
18299 | if (PyErr_Occurred()) SWIG_fail; | |
18300 | } | |
18301 | { | |
18302 | #if wxUSE_UNICODE | |
18303 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18304 | #else | |
18305 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18306 | #endif | |
18307 | } | |
18308 | return resultobj; | |
18309 | fail: | |
18310 | return NULL; | |
18311 | } | |
18312 | ||
18313 | ||
c32bde28 | 18314 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18315 | PyObject *resultobj; |
18316 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18317 | wxString result; | |
18318 | PyObject * obj0 = 0 ; | |
18319 | char *kwnames[] = { | |
18320 | (char *) "self", NULL | |
18321 | }; | |
18322 | ||
18323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18326 | { |
18327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18328 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
18329 | ||
18330 | wxPyEndAllowThreads(__tstate); | |
18331 | if (PyErr_Occurred()) SWIG_fail; | |
18332 | } | |
18333 | { | |
18334 | #if wxUSE_UNICODE | |
18335 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18336 | #else | |
18337 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18338 | #endif | |
18339 | } | |
18340 | return resultobj; | |
18341 | fail: | |
18342 | return NULL; | |
18343 | } | |
18344 | ||
18345 | ||
c32bde28 | 18346 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18347 | PyObject *resultobj; |
18348 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18349 | wxString *arg2 = 0 ; | |
ae8162c8 | 18350 | bool temp2 = false ; |
d14a1e28 RD |
18351 | PyObject * obj0 = 0 ; |
18352 | PyObject * obj1 = 0 ; | |
18353 | char *kwnames[] = { | |
18354 | (char *) "self",(char *) "appName", NULL | |
18355 | }; | |
18356 | ||
18357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18358 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18359 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18360 | { |
18361 | arg2 = wxString_in_helper(obj1); | |
18362 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18363 | temp2 = true; |
d14a1e28 RD |
18364 | } |
18365 | { | |
18366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18367 | (arg1)->SetAppName((wxString const &)*arg2); | |
18368 | ||
18369 | wxPyEndAllowThreads(__tstate); | |
18370 | if (PyErr_Occurred()) SWIG_fail; | |
18371 | } | |
18372 | Py_INCREF(Py_None); resultobj = Py_None; | |
18373 | { | |
18374 | if (temp2) | |
18375 | delete arg2; | |
18376 | } | |
18377 | return resultobj; | |
18378 | fail: | |
18379 | { | |
18380 | if (temp2) | |
18381 | delete arg2; | |
18382 | } | |
18383 | return NULL; | |
18384 | } | |
18385 | ||
18386 | ||
c32bde28 | 18387 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18388 | PyObject *resultobj; |
18389 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18390 | wxString *arg2 = 0 ; | |
ae8162c8 | 18391 | bool temp2 = false ; |
d14a1e28 RD |
18392 | PyObject * obj0 = 0 ; |
18393 | PyObject * obj1 = 0 ; | |
18394 | char *kwnames[] = { | |
18395 | (char *) "self",(char *) "vendorName", NULL | |
18396 | }; | |
18397 | ||
18398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18401 | { |
18402 | arg2 = wxString_in_helper(obj1); | |
18403 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18404 | temp2 = true; |
d14a1e28 RD |
18405 | } |
18406 | { | |
18407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18408 | (arg1)->SetVendorName((wxString const &)*arg2); | |
18409 | ||
18410 | wxPyEndAllowThreads(__tstate); | |
18411 | if (PyErr_Occurred()) SWIG_fail; | |
18412 | } | |
18413 | Py_INCREF(Py_None); resultobj = Py_None; | |
18414 | { | |
18415 | if (temp2) | |
18416 | delete arg2; | |
18417 | } | |
18418 | return resultobj; | |
18419 | fail: | |
18420 | { | |
18421 | if (temp2) | |
18422 | delete arg2; | |
18423 | } | |
18424 | return NULL; | |
18425 | } | |
18426 | ||
18427 | ||
c32bde28 | 18428 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18429 | PyObject *resultobj; |
18430 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18431 | long arg2 ; | |
18432 | PyObject * obj0 = 0 ; | |
994141e6 | 18433 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18434 | char *kwnames[] = { |
18435 | (char *) "self",(char *) "style", NULL | |
18436 | }; | |
18437 | ||
994141e6 | 18438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
18439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18441 | { | |
18442 | arg2 = (long)(SWIG_As_long(obj1)); | |
18443 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18444 | } | |
d14a1e28 RD |
18445 | { |
18446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18447 | (arg1)->SetStyle(arg2); | |
18448 | ||
18449 | wxPyEndAllowThreads(__tstate); | |
18450 | if (PyErr_Occurred()) SWIG_fail; | |
18451 | } | |
18452 | Py_INCREF(Py_None); resultobj = Py_None; | |
18453 | return resultobj; | |
18454 | fail: | |
18455 | return NULL; | |
18456 | } | |
18457 | ||
18458 | ||
c32bde28 | 18459 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18460 | PyObject *resultobj; |
18461 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18462 | long result; | |
18463 | PyObject * obj0 = 0 ; | |
18464 | char *kwnames[] = { | |
18465 | (char *) "self", NULL | |
18466 | }; | |
18467 | ||
18468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18469 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18470 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18471 | { |
18472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18473 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
18474 | ||
18475 | wxPyEndAllowThreads(__tstate); | |
18476 | if (PyErr_Occurred()) SWIG_fail; | |
18477 | } | |
093d3ff1 RD |
18478 | { |
18479 | resultobj = SWIG_From_long((long)(result)); | |
18480 | } | |
d14a1e28 RD |
18481 | return resultobj; |
18482 | fail: | |
18483 | return NULL; | |
18484 | } | |
18485 | ||
18486 | ||
c32bde28 | 18487 | static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18488 | PyObject *obj; |
18489 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18490 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
18491 | Py_INCREF(obj); | |
18492 | return Py_BuildValue((char *)""); | |
18493 | } | |
c32bde28 | 18494 | static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18495 | PyObject *resultobj; |
18496 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
18497 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
18498 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
18499 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
18500 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18501 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18502 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18503 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4f89f6a3 | 18504 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 18505 | wxConfig *result; |
ae8162c8 RD |
18506 | bool temp1 = false ; |
18507 | bool temp2 = false ; | |
18508 | bool temp3 = false ; | |
18509 | bool temp4 = false ; | |
d14a1e28 RD |
18510 | PyObject * obj0 = 0 ; |
18511 | PyObject * obj1 = 0 ; | |
18512 | PyObject * obj2 = 0 ; | |
18513 | PyObject * obj3 = 0 ; | |
994141e6 | 18514 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
18515 | char *kwnames[] = { |
18516 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
18517 | }; | |
18518 | ||
994141e6 | 18519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
18520 | if (obj0) { |
18521 | { | |
18522 | arg1 = wxString_in_helper(obj0); | |
18523 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 18524 | temp1 = true; |
d14a1e28 RD |
18525 | } |
18526 | } | |
18527 | if (obj1) { | |
18528 | { | |
18529 | arg2 = wxString_in_helper(obj1); | |
18530 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18531 | temp2 = true; |
d14a1e28 RD |
18532 | } |
18533 | } | |
18534 | if (obj2) { | |
18535 | { | |
18536 | arg3 = wxString_in_helper(obj2); | |
18537 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18538 | temp3 = true; |
d14a1e28 RD |
18539 | } |
18540 | } | |
18541 | if (obj3) { | |
18542 | { | |
18543 | arg4 = wxString_in_helper(obj3); | |
18544 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 18545 | temp4 = true; |
d14a1e28 RD |
18546 | } |
18547 | } | |
994141e6 | 18548 | if (obj4) { |
093d3ff1 RD |
18549 | { |
18550 | arg5 = (long)(SWIG_As_long(obj4)); | |
18551 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18552 | } | |
994141e6 | 18553 | } |
d14a1e28 RD |
18554 | { |
18555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18556 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
18557 | ||
18558 | wxPyEndAllowThreads(__tstate); | |
18559 | if (PyErr_Occurred()) SWIG_fail; | |
18560 | } | |
15afbcd0 | 18561 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); |
d14a1e28 RD |
18562 | { |
18563 | if (temp1) | |
18564 | delete arg1; | |
18565 | } | |
18566 | { | |
18567 | if (temp2) | |
18568 | delete arg2; | |
18569 | } | |
18570 | { | |
18571 | if (temp3) | |
18572 | delete arg3; | |
18573 | } | |
18574 | { | |
18575 | if (temp4) | |
18576 | delete arg4; | |
18577 | } | |
18578 | return resultobj; | |
18579 | fail: | |
18580 | { | |
18581 | if (temp1) | |
18582 | delete arg1; | |
18583 | } | |
18584 | { | |
18585 | if (temp2) | |
18586 | delete arg2; | |
18587 | } | |
18588 | { | |
18589 | if (temp3) | |
18590 | delete arg3; | |
18591 | } | |
18592 | { | |
18593 | if (temp4) | |
18594 | delete arg4; | |
18595 | } | |
18596 | return NULL; | |
18597 | } | |
18598 | ||
18599 | ||
c32bde28 | 18600 | static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18601 | PyObject *resultobj; |
18602 | wxConfig *arg1 = (wxConfig *) 0 ; | |
18603 | PyObject * obj0 = 0 ; | |
18604 | char *kwnames[] = { | |
18605 | (char *) "self", NULL | |
18606 | }; | |
18607 | ||
18608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18609 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfig, SWIG_POINTER_EXCEPTION | 0); |
18610 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18611 | { |
18612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18613 | delete arg1; | |
18614 | ||
18615 | wxPyEndAllowThreads(__tstate); | |
18616 | if (PyErr_Occurred()) SWIG_fail; | |
18617 | } | |
18618 | Py_INCREF(Py_None); resultobj = Py_None; | |
18619 | return resultobj; | |
18620 | fail: | |
18621 | return NULL; | |
18622 | } | |
18623 | ||
18624 | ||
c32bde28 | 18625 | static PyObject * Config_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18626 | PyObject *obj; |
18627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18628 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
18629 | Py_INCREF(obj); | |
18630 | return Py_BuildValue((char *)""); | |
18631 | } | |
c32bde28 | 18632 | static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18633 | PyObject *resultobj; |
18634 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
18635 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
18636 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
18637 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
18638 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18639 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18640 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18641 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4276dc52 | 18642 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 18643 | wxFileConfig *result; |
ae8162c8 RD |
18644 | bool temp1 = false ; |
18645 | bool temp2 = false ; | |
18646 | bool temp3 = false ; | |
18647 | bool temp4 = false ; | |
d14a1e28 RD |
18648 | PyObject * obj0 = 0 ; |
18649 | PyObject * obj1 = 0 ; | |
18650 | PyObject * obj2 = 0 ; | |
18651 | PyObject * obj3 = 0 ; | |
994141e6 | 18652 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
18653 | char *kwnames[] = { |
18654 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
18655 | }; | |
18656 | ||
994141e6 | 18657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
18658 | if (obj0) { |
18659 | { | |
18660 | arg1 = wxString_in_helper(obj0); | |
18661 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 18662 | temp1 = true; |
d14a1e28 RD |
18663 | } |
18664 | } | |
18665 | if (obj1) { | |
18666 | { | |
18667 | arg2 = wxString_in_helper(obj1); | |
18668 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18669 | temp2 = true; |
d14a1e28 RD |
18670 | } |
18671 | } | |
18672 | if (obj2) { | |
18673 | { | |
18674 | arg3 = wxString_in_helper(obj2); | |
18675 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18676 | temp3 = true; |
d14a1e28 RD |
18677 | } |
18678 | } | |
18679 | if (obj3) { | |
18680 | { | |
18681 | arg4 = wxString_in_helper(obj3); | |
18682 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 18683 | temp4 = true; |
d14a1e28 RD |
18684 | } |
18685 | } | |
994141e6 | 18686 | if (obj4) { |
093d3ff1 RD |
18687 | { |
18688 | arg5 = (long)(SWIG_As_long(obj4)); | |
18689 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18690 | } | |
994141e6 | 18691 | } |
d14a1e28 RD |
18692 | { |
18693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18694 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
18695 | ||
18696 | wxPyEndAllowThreads(__tstate); | |
18697 | if (PyErr_Occurred()) SWIG_fail; | |
18698 | } | |
15afbcd0 | 18699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); |
d14a1e28 RD |
18700 | { |
18701 | if (temp1) | |
18702 | delete arg1; | |
18703 | } | |
18704 | { | |
18705 | if (temp2) | |
18706 | delete arg2; | |
18707 | } | |
18708 | { | |
18709 | if (temp3) | |
18710 | delete arg3; | |
18711 | } | |
18712 | { | |
18713 | if (temp4) | |
18714 | delete arg4; | |
18715 | } | |
18716 | return resultobj; | |
18717 | fail: | |
18718 | { | |
18719 | if (temp1) | |
18720 | delete arg1; | |
18721 | } | |
18722 | { | |
18723 | if (temp2) | |
18724 | delete arg2; | |
18725 | } | |
18726 | { | |
18727 | if (temp3) | |
18728 | delete arg3; | |
18729 | } | |
18730 | { | |
18731 | if (temp4) | |
18732 | delete arg4; | |
18733 | } | |
18734 | return NULL; | |
18735 | } | |
18736 | ||
18737 | ||
c32bde28 | 18738 | static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18739 | PyObject *resultobj; |
18740 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
18741 | PyObject * obj0 = 0 ; | |
18742 | char *kwnames[] = { | |
18743 | (char *) "self", NULL | |
18744 | }; | |
18745 | ||
18746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18747 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileConfig, SWIG_POINTER_EXCEPTION | 0); |
18748 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18749 | { |
18750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18751 | delete arg1; | |
18752 | ||
18753 | wxPyEndAllowThreads(__tstate); | |
18754 | if (PyErr_Occurred()) SWIG_fail; | |
18755 | } | |
18756 | Py_INCREF(Py_None); resultobj = Py_None; | |
18757 | return resultobj; | |
18758 | fail: | |
18759 | return NULL; | |
18760 | } | |
18761 | ||
18762 | ||
c32bde28 | 18763 | static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18764 | PyObject *obj; |
18765 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18766 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
18767 | Py_INCREF(obj); | |
18768 | return Py_BuildValue((char *)""); | |
18769 | } | |
c32bde28 | 18770 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
b88bce5f RD |
18771 | PyObject *resultobj; |
18772 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
18773 | wxString *arg2 = 0 ; | |
18774 | wxConfigPathChanger *result; | |
ae8162c8 | 18775 | bool temp2 = false ; |
b88bce5f RD |
18776 | PyObject * obj0 = 0 ; |
18777 | PyObject * obj1 = 0 ; | |
18778 | char *kwnames[] = { | |
18779 | (char *) "config",(char *) "entry", NULL | |
18780 | }; | |
18781 | ||
18782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); |
18784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b88bce5f RD |
18785 | { |
18786 | arg2 = wxString_in_helper(obj1); | |
18787 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18788 | temp2 = true; |
b88bce5f RD |
18789 | } |
18790 | { | |
18791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18792 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
18793 | ||
18794 | wxPyEndAllowThreads(__tstate); | |
18795 | if (PyErr_Occurred()) SWIG_fail; | |
18796 | } | |
15afbcd0 | 18797 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); |
b88bce5f RD |
18798 | { |
18799 | if (temp2) | |
18800 | delete arg2; | |
18801 | } | |
18802 | return resultobj; | |
18803 | fail: | |
18804 | { | |
18805 | if (temp2) | |
18806 | delete arg2; | |
18807 | } | |
18808 | return NULL; | |
18809 | } | |
18810 | ||
18811 | ||
c32bde28 | 18812 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
b88bce5f RD |
18813 | PyObject *resultobj; |
18814 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
18815 | PyObject * obj0 = 0 ; | |
18816 | char *kwnames[] = { | |
18817 | (char *) "self", NULL | |
18818 | }; | |
18819 | ||
18820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0); |
18822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b88bce5f RD |
18823 | { |
18824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18825 | delete arg1; | |
18826 | ||
18827 | wxPyEndAllowThreads(__tstate); | |
18828 | if (PyErr_Occurred()) SWIG_fail; | |
18829 | } | |
18830 | Py_INCREF(Py_None); resultobj = Py_None; | |
18831 | return resultobj; | |
18832 | fail: | |
18833 | return NULL; | |
18834 | } | |
18835 | ||
18836 | ||
c32bde28 | 18837 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) { |
b88bce5f RD |
18838 | PyObject *resultobj; |
18839 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
18840 | wxString *result; | |
18841 | PyObject * obj0 = 0 ; | |
18842 | char *kwnames[] = { | |
18843 | (char *) "self", NULL | |
18844 | }; | |
18845 | ||
18846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18847 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_EXCEPTION | 0); |
18848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b88bce5f RD |
18849 | { |
18850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18851 | { | |
18852 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
18853 | result = (wxString *) &_result_ref; | |
18854 | } | |
18855 | ||
18856 | wxPyEndAllowThreads(__tstate); | |
18857 | if (PyErr_Occurred()) SWIG_fail; | |
18858 | } | |
18859 | { | |
18860 | #if wxUSE_UNICODE | |
18861 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18862 | #else | |
18863 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18864 | #endif | |
18865 | } | |
18866 | return resultobj; | |
18867 | fail: | |
18868 | return NULL; | |
18869 | } | |
18870 | ||
18871 | ||
c32bde28 | 18872 | static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) { |
b88bce5f RD |
18873 | PyObject *obj; |
18874 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18875 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
18876 | Py_INCREF(obj); | |
18877 | return Py_BuildValue((char *)""); | |
18878 | } | |
c32bde28 | 18879 | static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18880 | PyObject *resultobj; |
18881 | wxString *arg1 = 0 ; | |
18882 | wxString result; | |
ae8162c8 | 18883 | bool temp1 = false ; |
d14a1e28 RD |
18884 | PyObject * obj0 = 0 ; |
18885 | char *kwnames[] = { | |
18886 | (char *) "sz", NULL | |
18887 | }; | |
18888 | ||
18889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
18890 | { | |
18891 | arg1 = wxString_in_helper(obj0); | |
18892 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 18893 | temp1 = true; |
d14a1e28 RD |
18894 | } |
18895 | { | |
18896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18897 | result = wxExpandEnvVars((wxString const &)*arg1); | |
18898 | ||
18899 | wxPyEndAllowThreads(__tstate); | |
18900 | if (PyErr_Occurred()) SWIG_fail; | |
18901 | } | |
18902 | { | |
18903 | #if wxUSE_UNICODE | |
18904 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18905 | #else | |
18906 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18907 | #endif | |
18908 | } | |
18909 | { | |
18910 | if (temp1) | |
18911 | delete arg1; | |
18912 | } | |
18913 | return resultobj; | |
18914 | fail: | |
18915 | { | |
18916 | if (temp1) | |
18917 | delete arg1; | |
18918 | } | |
18919 | return NULL; | |
18920 | } | |
18921 | ||
18922 | ||
7557b9b5 RD |
18923 | static int _wrap_DefaultDateTimeFormat_set(PyObject *) { |
18924 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTimeFormat is read-only."); | |
b2dc1044 RD |
18925 | return 1; |
18926 | } | |
18927 | ||
18928 | ||
7557b9b5 | 18929 | static PyObject *_wrap_DefaultDateTimeFormat_get(void) { |
b2dc1044 RD |
18930 | PyObject *pyobj; |
18931 | ||
18932 | { | |
18933 | #if wxUSE_UNICODE | |
7557b9b5 | 18934 | pyobj = PyUnicode_FromWideChar((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len()); |
b2dc1044 | 18935 | #else |
7557b9b5 | 18936 | pyobj = PyString_FromStringAndSize((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len()); |
b2dc1044 RD |
18937 | #endif |
18938 | } | |
18939 | return pyobj; | |
18940 | } | |
18941 | ||
18942 | ||
7557b9b5 RD |
18943 | static int _wrap_DefaultTimeSpanFormat_set(PyObject *) { |
18944 | PyErr_SetString(PyExc_TypeError,"Variable DefaultTimeSpanFormat is read-only."); | |
b2dc1044 RD |
18945 | return 1; |
18946 | } | |
18947 | ||
18948 | ||
7557b9b5 | 18949 | static PyObject *_wrap_DefaultTimeSpanFormat_get(void) { |
b2dc1044 RD |
18950 | PyObject *pyobj; |
18951 | ||
18952 | { | |
18953 | #if wxUSE_UNICODE | |
7557b9b5 | 18954 | pyobj = PyUnicode_FromWideChar((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len()); |
b2dc1044 | 18955 | #else |
7557b9b5 | 18956 | pyobj = PyString_FromStringAndSize((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len()); |
b2dc1044 RD |
18957 | #endif |
18958 | } | |
18959 | return pyobj; | |
18960 | } | |
18961 | ||
18962 | ||
c32bde28 | 18963 | static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18964 | PyObject *resultobj; |
093d3ff1 | 18965 | wxDateTime::Country arg1 ; |
994141e6 | 18966 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18967 | char *kwnames[] = { |
18968 | (char *) "country", NULL | |
18969 | }; | |
18970 | ||
994141e6 | 18971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
18972 | { |
18973 | arg1 = (wxDateTime::Country)(SWIG_As_int(obj0)); | |
18974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18975 | } | |
d14a1e28 RD |
18976 | { |
18977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18978 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
18979 | ||
18980 | wxPyEndAllowThreads(__tstate); | |
18981 | if (PyErr_Occurred()) SWIG_fail; | |
18982 | } | |
18983 | Py_INCREF(Py_None); resultobj = Py_None; | |
18984 | return resultobj; | |
18985 | fail: | |
18986 | return NULL; | |
18987 | } | |
18988 | ||
18989 | ||
c32bde28 | 18990 | static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18991 | PyObject *resultobj; |
093d3ff1 | 18992 | wxDateTime::Country result; |
d14a1e28 RD |
18993 | char *kwnames[] = { |
18994 | NULL | |
18995 | }; | |
18996 | ||
18997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
18998 | { | |
18999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19000 | result = (wxDateTime::Country)wxDateTime::GetCountry(); |
d14a1e28 RD |
19001 | |
19002 | wxPyEndAllowThreads(__tstate); | |
19003 | if (PyErr_Occurred()) SWIG_fail; | |
19004 | } | |
093d3ff1 | 19005 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
19006 | return resultobj; |
19007 | fail: | |
19008 | return NULL; | |
19009 | } | |
19010 | ||
19011 | ||
c32bde28 | 19012 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 19013 | PyObject *resultobj; |
093d3ff1 | 19014 | wxDateTime::Country arg1 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 | 19015 | bool result; |
994141e6 | 19016 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19017 | char *kwnames[] = { |
19018 | (char *) "country", NULL | |
19019 | }; | |
19020 | ||
994141e6 RD |
19021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; |
19022 | if (obj0) { | |
093d3ff1 RD |
19023 | { |
19024 | arg1 = (wxDateTime::Country)(SWIG_As_int(obj0)); | |
19025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19026 | } | |
994141e6 | 19027 | } |
d14a1e28 RD |
19028 | { |
19029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19030 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
19031 | ||
19032 | wxPyEndAllowThreads(__tstate); | |
19033 | if (PyErr_Occurred()) SWIG_fail; | |
19034 | } | |
4f89f6a3 RD |
19035 | { |
19036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19037 | } | |
d14a1e28 RD |
19038 | return resultobj; |
19039 | fail: | |
19040 | return NULL; | |
19041 | } | |
19042 | ||
19043 | ||
c32bde28 | 19044 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 19045 | PyObject *resultobj; |
093d3ff1 | 19046 | wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d14a1e28 | 19047 | int result; |
994141e6 | 19048 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19049 | char *kwnames[] = { |
19050 | (char *) "cal", NULL | |
19051 | }; | |
19052 | ||
994141e6 RD |
19053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; |
19054 | if (obj0) { | |
093d3ff1 RD |
19055 | { |
19056 | arg1 = (wxDateTime::Calendar)(SWIG_As_int(obj0)); | |
19057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19058 | } | |
994141e6 | 19059 | } |
d14a1e28 RD |
19060 | { |
19061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19062 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
19063 | ||
19064 | wxPyEndAllowThreads(__tstate); | |
19065 | if (PyErr_Occurred()) SWIG_fail; | |
19066 | } | |
093d3ff1 RD |
19067 | { |
19068 | resultobj = SWIG_From_int((int)(result)); | |
19069 | } | |
d14a1e28 RD |
19070 | return resultobj; |
19071 | fail: | |
19072 | return NULL; | |
19073 | } | |
19074 | ||
19075 | ||
c32bde28 | 19076 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19077 | PyObject *resultobj; |
19078 | int arg1 ; | |
19079 | int result; | |
994141e6 | 19080 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19081 | char *kwnames[] = { |
19082 | (char *) "year", NULL | |
19083 | }; | |
19084 | ||
994141e6 | 19085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
19086 | { |
19087 | arg1 = (int)(SWIG_As_int(obj0)); | |
19088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19089 | } | |
d14a1e28 RD |
19090 | { |
19091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19092 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
19093 | ||
19094 | wxPyEndAllowThreads(__tstate); | |
19095 | if (PyErr_Occurred()) SWIG_fail; | |
19096 | } | |
093d3ff1 RD |
19097 | { |
19098 | resultobj = SWIG_From_int((int)(result)); | |
19099 | } | |
d14a1e28 RD |
19100 | return resultobj; |
19101 | fail: | |
19102 | return NULL; | |
19103 | } | |
19104 | ||
19105 | ||
c32bde28 | 19106 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 19107 | PyObject *resultobj; |
093d3ff1 RD |
19108 | wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
19109 | wxDateTime::Month result; | |
994141e6 | 19110 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19111 | char *kwnames[] = { |
19112 | (char *) "cal", NULL | |
19113 | }; | |
19114 | ||
994141e6 RD |
19115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; |
19116 | if (obj0) { | |
093d3ff1 RD |
19117 | { |
19118 | arg1 = (wxDateTime::Calendar)(SWIG_As_int(obj0)); | |
19119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19120 | } | |
994141e6 | 19121 | } |
d14a1e28 RD |
19122 | { |
19123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19124 | result = (wxDateTime::Month)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); |
d14a1e28 RD |
19125 | |
19126 | wxPyEndAllowThreads(__tstate); | |
19127 | if (PyErr_Occurred()) SWIG_fail; | |
19128 | } | |
093d3ff1 | 19129 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
19130 | return resultobj; |
19131 | fail: | |
19132 | return NULL; | |
19133 | } | |
19134 | ||
19135 | ||
c32bde28 | 19136 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19137 | PyObject *resultobj; |
19138 | int arg1 = (int) wxDateTime::Inv_Year ; | |
093d3ff1 | 19139 | wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
d14a1e28 | 19140 | bool result; |
994141e6 RD |
19141 | PyObject * obj0 = 0 ; |
19142 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19143 | char *kwnames[] = { |
19144 | (char *) "year",(char *) "cal", NULL | |
19145 | }; | |
19146 | ||
994141e6 RD |
19147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; |
19148 | if (obj0) { | |
093d3ff1 RD |
19149 | { |
19150 | arg1 = (int)(SWIG_As_int(obj0)); | |
19151 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19152 | } | |
994141e6 RD |
19153 | } |
19154 | if (obj1) { | |
093d3ff1 RD |
19155 | { |
19156 | arg2 = (wxDateTime::Calendar)(SWIG_As_int(obj1)); | |
19157 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19158 | } | |
994141e6 | 19159 | } |
d14a1e28 RD |
19160 | { |
19161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19162 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
19163 | ||
19164 | wxPyEndAllowThreads(__tstate); | |
19165 | if (PyErr_Occurred()) SWIG_fail; | |
19166 | } | |
4f89f6a3 RD |
19167 | { |
19168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19169 | } | |
d14a1e28 RD |
19170 | return resultobj; |
19171 | fail: | |
19172 | return NULL; | |
19173 | } | |
19174 | ||
19175 | ||
c32bde28 | 19176 | static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19177 | PyObject *resultobj; |
19178 | int arg1 = (int) wxDateTime::Inv_Year ; | |
19179 | int result; | |
994141e6 | 19180 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19181 | char *kwnames[] = { |
19182 | (char *) "year", NULL | |
19183 | }; | |
19184 | ||
994141e6 RD |
19185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; |
19186 | if (obj0) { | |
093d3ff1 RD |
19187 | { |
19188 | arg1 = (int)(SWIG_As_int(obj0)); | |
19189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19190 | } | |
994141e6 | 19191 | } |
d14a1e28 RD |
19192 | { |
19193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19194 | result = (int)wxDateTime::GetCentury(arg1); | |
19195 | ||
19196 | wxPyEndAllowThreads(__tstate); | |
19197 | if (PyErr_Occurred()) SWIG_fail; | |
19198 | } | |
093d3ff1 RD |
19199 | { |
19200 | resultobj = SWIG_From_int((int)(result)); | |
19201 | } | |
d14a1e28 RD |
19202 | return resultobj; |
19203 | fail: | |
19204 | return NULL; | |
19205 | } | |
19206 | ||
19207 | ||
c32bde28 | 19208 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19209 | PyObject *resultobj; |
19210 | int arg1 ; | |
093d3ff1 | 19211 | wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
322913ce | 19212 | int result; |
994141e6 RD |
19213 | PyObject * obj0 = 0 ; |
19214 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19215 | char *kwnames[] = { |
19216 | (char *) "year",(char *) "cal", NULL | |
19217 | }; | |
19218 | ||
994141e6 | 19219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19220 | { |
19221 | arg1 = (int)(SWIG_As_int(obj0)); | |
19222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19223 | } | |
994141e6 | 19224 | if (obj1) { |
093d3ff1 RD |
19225 | { |
19226 | arg2 = (wxDateTime::Calendar)(SWIG_As_int(obj1)); | |
19227 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19228 | } | |
994141e6 | 19229 | } |
d14a1e28 RD |
19230 | { |
19231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19232 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
19233 | |
19234 | wxPyEndAllowThreads(__tstate); | |
19235 | if (PyErr_Occurred()) SWIG_fail; | |
19236 | } | |
093d3ff1 RD |
19237 | { |
19238 | resultobj = SWIG_From_int((int)(result)); | |
19239 | } | |
d14a1e28 RD |
19240 | return resultobj; |
19241 | fail: | |
19242 | return NULL; | |
19243 | } | |
19244 | ||
19245 | ||
c32bde28 | 19246 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 19247 | PyObject *resultobj; |
093d3ff1 | 19248 | wxDateTime::Month arg1 ; |
d14a1e28 | 19249 | int arg2 = (int) wxDateTime::Inv_Year ; |
093d3ff1 | 19250 | wxDateTime::Calendar arg3 = (wxDateTime::Calendar) wxDateTime::Gregorian ; |
322913ce | 19251 | int result; |
994141e6 RD |
19252 | PyObject * obj0 = 0 ; |
19253 | PyObject * obj1 = 0 ; | |
19254 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
19255 | char *kwnames[] = { |
19256 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
19257 | }; | |
19258 | ||
994141e6 | 19259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
19260 | { |
19261 | arg1 = (wxDateTime::Month)(SWIG_As_int(obj0)); | |
19262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19263 | } | |
994141e6 | 19264 | if (obj1) { |
093d3ff1 RD |
19265 | { |
19266 | arg2 = (int)(SWIG_As_int(obj1)); | |
19267 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19268 | } | |
994141e6 RD |
19269 | } |
19270 | if (obj2) { | |
093d3ff1 RD |
19271 | { |
19272 | arg3 = (wxDateTime::Calendar)(SWIG_As_int(obj2)); | |
19273 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19274 | } | |
994141e6 | 19275 | } |
d14a1e28 RD |
19276 | { |
19277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19278 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
19279 | |
19280 | wxPyEndAllowThreads(__tstate); | |
19281 | if (PyErr_Occurred()) SWIG_fail; | |
19282 | } | |
093d3ff1 RD |
19283 | { |
19284 | resultobj = SWIG_From_int((int)(result)); | |
19285 | } | |
d14a1e28 RD |
19286 | return resultobj; |
19287 | fail: | |
19288 | return NULL; | |
19289 | } | |
19290 | ||
19291 | ||
c32bde28 | 19292 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 19293 | PyObject *resultobj; |
093d3ff1 RD |
19294 | wxDateTime::Month arg1 ; |
19295 | wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ; | |
d14a1e28 | 19296 | wxString result; |
994141e6 RD |
19297 | PyObject * obj0 = 0 ; |
19298 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19299 | char *kwnames[] = { |
19300 | (char *) "month",(char *) "flags", NULL | |
19301 | }; | |
19302 | ||
994141e6 | 19303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19304 | { |
19305 | arg1 = (wxDateTime::Month)(SWIG_As_int(obj0)); | |
19306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19307 | } | |
994141e6 | 19308 | if (obj1) { |
093d3ff1 RD |
19309 | { |
19310 | arg2 = (wxDateTime::NameFlags)(SWIG_As_int(obj1)); | |
19311 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19312 | } | |
994141e6 | 19313 | } |
d14a1e28 RD |
19314 | { |
19315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19316 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
19317 | ||
19318 | wxPyEndAllowThreads(__tstate); | |
19319 | if (PyErr_Occurred()) SWIG_fail; | |
19320 | } | |
19321 | { | |
19322 | #if wxUSE_UNICODE | |
19323 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19324 | #else | |
19325 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19326 | #endif | |
19327 | } | |
19328 | return resultobj; | |
19329 | fail: | |
19330 | return NULL; | |
19331 | } | |
19332 | ||
19333 | ||
c32bde28 | 19334 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 19335 | PyObject *resultobj; |
093d3ff1 RD |
19336 | wxDateTime::WeekDay arg1 ; |
19337 | wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ; | |
d14a1e28 | 19338 | wxString result; |
994141e6 RD |
19339 | PyObject * obj0 = 0 ; |
19340 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19341 | char *kwnames[] = { |
19342 | (char *) "weekday",(char *) "flags", NULL | |
19343 | }; | |
19344 | ||
994141e6 | 19345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19346 | { |
19347 | arg1 = (wxDateTime::WeekDay)(SWIG_As_int(obj0)); | |
19348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19349 | } | |
994141e6 | 19350 | if (obj1) { |
093d3ff1 RD |
19351 | { |
19352 | arg2 = (wxDateTime::NameFlags)(SWIG_As_int(obj1)); | |
19353 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19354 | } | |
994141e6 | 19355 | } |
d14a1e28 RD |
19356 | { |
19357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19358 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
19359 | ||
19360 | wxPyEndAllowThreads(__tstate); | |
19361 | if (PyErr_Occurred()) SWIG_fail; | |
19362 | } | |
19363 | { | |
19364 | #if wxUSE_UNICODE | |
19365 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19366 | #else | |
19367 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19368 | #endif | |
19369 | } | |
19370 | return resultobj; | |
19371 | fail: | |
19372 | return NULL; | |
19373 | } | |
19374 | ||
19375 | ||
c32bde28 | 19376 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 19377 | PyObject *resultobj; |
b9d6a5f3 | 19378 | PyObject *result; |
d14a1e28 | 19379 | char *kwnames[] = { |
b9d6a5f3 | 19380 | NULL |
d14a1e28 RD |
19381 | }; |
19382 | ||
b9d6a5f3 | 19383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetAmPmStrings",kwnames)) goto fail; |
d14a1e28 RD |
19384 | { |
19385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b9d6a5f3 | 19386 | result = (PyObject *)DateTime_GetAmPmStrings(); |
d14a1e28 RD |
19387 | |
19388 | wxPyEndAllowThreads(__tstate); | |
19389 | if (PyErr_Occurred()) SWIG_fail; | |
19390 | } | |
b9d6a5f3 | 19391 | resultobj = result; |
d14a1e28 RD |
19392 | return resultobj; |
19393 | fail: | |
19394 | return NULL; | |
19395 | } | |
19396 | ||
19397 | ||
c32bde28 | 19398 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19399 | PyObject *resultobj; |
19400 | int arg1 = (int) wxDateTime::Inv_Year ; | |
093d3ff1 | 19401 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 | 19402 | bool result; |
994141e6 RD |
19403 | PyObject * obj0 = 0 ; |
19404 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19405 | char *kwnames[] = { |
19406 | (char *) "year",(char *) "country", NULL | |
19407 | }; | |
19408 | ||
994141e6 RD |
19409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; |
19410 | if (obj0) { | |
093d3ff1 RD |
19411 | { |
19412 | arg1 = (int)(SWIG_As_int(obj0)); | |
19413 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19414 | } | |
994141e6 RD |
19415 | } |
19416 | if (obj1) { | |
093d3ff1 RD |
19417 | { |
19418 | arg2 = (wxDateTime::Country)(SWIG_As_int(obj1)); | |
19419 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19420 | } | |
994141e6 | 19421 | } |
d14a1e28 RD |
19422 | { |
19423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19424 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
19425 | ||
19426 | wxPyEndAllowThreads(__tstate); | |
19427 | if (PyErr_Occurred()) SWIG_fail; | |
19428 | } | |
4f89f6a3 RD |
19429 | { |
19430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19431 | } | |
d14a1e28 RD |
19432 | return resultobj; |
19433 | fail: | |
19434 | return NULL; | |
19435 | } | |
19436 | ||
19437 | ||
c32bde28 | 19438 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19439 | PyObject *resultobj; |
19440 | int arg1 = (int) wxDateTime::Inv_Year ; | |
093d3ff1 | 19441 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 | 19442 | wxDateTime result; |
994141e6 RD |
19443 | PyObject * obj0 = 0 ; |
19444 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19445 | char *kwnames[] = { |
19446 | (char *) "year",(char *) "country", NULL | |
19447 | }; | |
19448 | ||
994141e6 RD |
19449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; |
19450 | if (obj0) { | |
093d3ff1 RD |
19451 | { |
19452 | arg1 = (int)(SWIG_As_int(obj0)); | |
19453 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19454 | } | |
994141e6 RD |
19455 | } |
19456 | if (obj1) { | |
093d3ff1 RD |
19457 | { |
19458 | arg2 = (wxDateTime::Country)(SWIG_As_int(obj1)); | |
19459 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19460 | } | |
994141e6 | 19461 | } |
d14a1e28 RD |
19462 | { |
19463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19464 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
19465 | ||
19466 | wxPyEndAllowThreads(__tstate); | |
19467 | if (PyErr_Occurred()) SWIG_fail; | |
19468 | } | |
19469 | { | |
19470 | wxDateTime * resultptr; | |
093d3ff1 | 19471 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 19472 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19473 | } |
19474 | return resultobj; | |
19475 | fail: | |
19476 | return NULL; | |
19477 | } | |
19478 | ||
19479 | ||
c32bde28 | 19480 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19481 | PyObject *resultobj; |
19482 | int arg1 = (int) wxDateTime::Inv_Year ; | |
093d3ff1 | 19483 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 | 19484 | wxDateTime result; |
994141e6 RD |
19485 | PyObject * obj0 = 0 ; |
19486 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19487 | char *kwnames[] = { |
19488 | (char *) "year",(char *) "country", NULL | |
19489 | }; | |
19490 | ||
994141e6 RD |
19491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; |
19492 | if (obj0) { | |
093d3ff1 RD |
19493 | { |
19494 | arg1 = (int)(SWIG_As_int(obj0)); | |
19495 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19496 | } | |
994141e6 RD |
19497 | } |
19498 | if (obj1) { | |
093d3ff1 RD |
19499 | { |
19500 | arg2 = (wxDateTime::Country)(SWIG_As_int(obj1)); | |
19501 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19502 | } | |
994141e6 | 19503 | } |
d14a1e28 RD |
19504 | { |
19505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19506 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
19507 | ||
19508 | wxPyEndAllowThreads(__tstate); | |
19509 | if (PyErr_Occurred()) SWIG_fail; | |
19510 | } | |
19511 | { | |
19512 | wxDateTime * resultptr; | |
093d3ff1 | 19513 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 19514 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19515 | } |
19516 | return resultobj; | |
19517 | fail: | |
19518 | return NULL; | |
19519 | } | |
19520 | ||
19521 | ||
c32bde28 | 19522 | static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19523 | PyObject *resultobj; |
19524 | wxDateTime result; | |
19525 | char *kwnames[] = { | |
19526 | NULL | |
19527 | }; | |
19528 | ||
19529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
19530 | { | |
19531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19532 | result = wxDateTime::Now(); | |
19533 | ||
19534 | wxPyEndAllowThreads(__tstate); | |
19535 | if (PyErr_Occurred()) SWIG_fail; | |
19536 | } | |
19537 | { | |
19538 | wxDateTime * resultptr; | |
093d3ff1 | 19539 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 19540 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19541 | } |
19542 | return resultobj; | |
19543 | fail: | |
19544 | return NULL; | |
19545 | } | |
19546 | ||
19547 | ||
c32bde28 | 19548 | static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19549 | PyObject *resultobj; |
19550 | wxDateTime result; | |
19551 | char *kwnames[] = { | |
19552 | NULL | |
19553 | }; | |
19554 | ||
19555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
19556 | { | |
19557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19558 | result = wxDateTime::UNow(); | |
19559 | ||
19560 | wxPyEndAllowThreads(__tstate); | |
19561 | if (PyErr_Occurred()) SWIG_fail; | |
19562 | } | |
19563 | { | |
19564 | wxDateTime * resultptr; | |
093d3ff1 | 19565 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 19566 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19567 | } |
19568 | return resultobj; | |
19569 | fail: | |
19570 | return NULL; | |
19571 | } | |
19572 | ||
19573 | ||
c32bde28 | 19574 | static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19575 | PyObject *resultobj; |
19576 | wxDateTime result; | |
19577 | char *kwnames[] = { | |
19578 | NULL | |
19579 | }; | |
19580 | ||
19581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
19582 | { | |
19583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19584 | result = wxDateTime::Today(); | |
19585 | ||
19586 | wxPyEndAllowThreads(__tstate); | |
19587 | if (PyErr_Occurred()) SWIG_fail; | |
19588 | } | |
19589 | { | |
19590 | wxDateTime * resultptr; | |
093d3ff1 | 19591 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 19592 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19593 | } |
19594 | return resultobj; | |
19595 | fail: | |
19596 | return NULL; | |
19597 | } | |
19598 | ||
19599 | ||
c32bde28 | 19600 | static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19601 | PyObject *resultobj; |
19602 | wxDateTime *result; | |
19603 | char *kwnames[] = { | |
19604 | NULL | |
19605 | }; | |
19606 | ||
19607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
19608 | { | |
19609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19610 | result = (wxDateTime *)new wxDateTime(); | |
19611 | ||
19612 | wxPyEndAllowThreads(__tstate); | |
19613 | if (PyErr_Occurred()) SWIG_fail; | |
19614 | } | |
15afbcd0 | 19615 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19616 | return resultobj; |
19617 | fail: | |
19618 | return NULL; | |
19619 | } | |
19620 | ||
19621 | ||
c32bde28 | 19622 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19623 | PyObject *resultobj; |
19624 | time_t arg1 ; | |
19625 | wxDateTime *result; | |
19626 | PyObject * obj0 = 0 ; | |
19627 | char *kwnames[] = { | |
19628 | (char *) "timet", NULL | |
19629 | }; | |
19630 | ||
19631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19632 | { |
19633 | arg1 = (time_t)(SWIG_As_unsigned_SS_int(obj0)); | |
19634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19635 | } | |
d14a1e28 RD |
19636 | { |
19637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19638 | result = (wxDateTime *)new wxDateTime(arg1); | |
19639 | ||
19640 | wxPyEndAllowThreads(__tstate); | |
19641 | if (PyErr_Occurred()) SWIG_fail; | |
19642 | } | |
15afbcd0 | 19643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19644 | return resultobj; |
19645 | fail: | |
19646 | return NULL; | |
19647 | } | |
19648 | ||
19649 | ||
c32bde28 | 19650 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19651 | PyObject *resultobj; |
19652 | double arg1 ; | |
19653 | wxDateTime *result; | |
994141e6 | 19654 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19655 | char *kwnames[] = { |
19656 | (char *) "jdn", NULL | |
19657 | }; | |
19658 | ||
994141e6 | 19659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
19660 | { |
19661 | arg1 = (double)(SWIG_As_double(obj0)); | |
19662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19663 | } | |
d14a1e28 RD |
19664 | { |
19665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19666 | result = (wxDateTime *)new wxDateTime(arg1); | |
19667 | ||
19668 | wxPyEndAllowThreads(__tstate); | |
19669 | if (PyErr_Occurred()) SWIG_fail; | |
19670 | } | |
15afbcd0 | 19671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19672 | return resultobj; |
19673 | fail: | |
19674 | return NULL; | |
19675 | } | |
19676 | ||
19677 | ||
c32bde28 | 19678 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 19679 | PyObject *resultobj; |
322913ce RD |
19680 | int arg1 ; |
19681 | int arg2 = (int) 0 ; | |
19682 | int arg3 = (int) 0 ; | |
19683 | int arg4 = (int) 0 ; | |
d14a1e28 | 19684 | wxDateTime *result; |
994141e6 RD |
19685 | PyObject * obj0 = 0 ; |
19686 | PyObject * obj1 = 0 ; | |
19687 | PyObject * obj2 = 0 ; | |
19688 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
19689 | char *kwnames[] = { |
19690 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
19691 | }; | |
19692 | ||
994141e6 | 19693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
19694 | { |
19695 | arg1 = (int)(SWIG_As_int(obj0)); | |
19696 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19697 | } | |
994141e6 | 19698 | if (obj1) { |
093d3ff1 RD |
19699 | { |
19700 | arg2 = (int)(SWIG_As_int(obj1)); | |
19701 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19702 | } | |
994141e6 RD |
19703 | } |
19704 | if (obj2) { | |
093d3ff1 RD |
19705 | { |
19706 | arg3 = (int)(SWIG_As_int(obj2)); | |
19707 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19708 | } | |
994141e6 RD |
19709 | } |
19710 | if (obj3) { | |
093d3ff1 RD |
19711 | { |
19712 | arg4 = (int)(SWIG_As_int(obj3)); | |
19713 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19714 | } | |
994141e6 | 19715 | } |
d14a1e28 RD |
19716 | { |
19717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19718 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
19719 | ||
19720 | wxPyEndAllowThreads(__tstate); | |
19721 | if (PyErr_Occurred()) SWIG_fail; | |
19722 | } | |
15afbcd0 | 19723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19724 | return resultobj; |
19725 | fail: | |
19726 | return NULL; | |
19727 | } | |
19728 | ||
19729 | ||
c32bde28 | 19730 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 19731 | PyObject *resultobj; |
322913ce | 19732 | int arg1 ; |
093d3ff1 | 19733 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d14a1e28 | 19734 | int arg3 = (int) wxDateTime::Inv_Year ; |
322913ce RD |
19735 | int arg4 = (int) 0 ; |
19736 | int arg5 = (int) 0 ; | |
19737 | int arg6 = (int) 0 ; | |
19738 | int arg7 = (int) 0 ; | |
d14a1e28 | 19739 | wxDateTime *result; |
994141e6 RD |
19740 | PyObject * obj0 = 0 ; |
19741 | PyObject * obj1 = 0 ; | |
19742 | PyObject * obj2 = 0 ; | |
19743 | PyObject * obj3 = 0 ; | |
19744 | PyObject * obj4 = 0 ; | |
19745 | PyObject * obj5 = 0 ; | |
19746 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
19747 | char *kwnames[] = { |
19748 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
19749 | }; | |
19750 | ||
994141e6 | 19751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
19752 | { |
19753 | arg1 = (int)(SWIG_As_int(obj0)); | |
19754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19755 | } | |
994141e6 | 19756 | if (obj1) { |
093d3ff1 RD |
19757 | { |
19758 | arg2 = (wxDateTime::Month)(SWIG_As_int(obj1)); | |
19759 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19760 | } | |
994141e6 RD |
19761 | } |
19762 | if (obj2) { | |
093d3ff1 RD |
19763 | { |
19764 | arg3 = (int)(SWIG_As_int(obj2)); | |
19765 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19766 | } | |
994141e6 RD |
19767 | } |
19768 | if (obj3) { | |
093d3ff1 RD |
19769 | { |
19770 | arg4 = (int)(SWIG_As_int(obj3)); | |
19771 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19772 | } | |
994141e6 RD |
19773 | } |
19774 | if (obj4) { | |
093d3ff1 RD |
19775 | { |
19776 | arg5 = (int)(SWIG_As_int(obj4)); | |
19777 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19778 | } | |
994141e6 RD |
19779 | } |
19780 | if (obj5) { | |
093d3ff1 RD |
19781 | { |
19782 | arg6 = (int)(SWIG_As_int(obj5)); | |
19783 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19784 | } | |
994141e6 RD |
19785 | } |
19786 | if (obj6) { | |
093d3ff1 RD |
19787 | { |
19788 | arg7 = (int)(SWIG_As_int(obj6)); | |
19789 | if (SWIG_arg_fail(7)) SWIG_fail; | |
19790 | } | |
994141e6 | 19791 | } |
d14a1e28 RD |
19792 | { |
19793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19794 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
19795 | ||
19796 | wxPyEndAllowThreads(__tstate); | |
19797 | if (PyErr_Occurred()) SWIG_fail; | |
19798 | } | |
15afbcd0 | 19799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19800 | return resultobj; |
19801 | fail: | |
19802 | return NULL; | |
19803 | } | |
19804 | ||
19805 | ||
c32bde28 | 19806 | static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19807 | PyObject *resultobj; |
19808 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19809 | PyObject * obj0 = 0 ; | |
19810 | char *kwnames[] = { | |
19811 | (char *) "self", NULL | |
19812 | }; | |
19813 | ||
19814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19815 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
19816 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19817 | { |
19818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19819 | delete arg1; | |
19820 | ||
19821 | wxPyEndAllowThreads(__tstate); | |
19822 | if (PyErr_Occurred()) SWIG_fail; | |
19823 | } | |
19824 | Py_INCREF(Py_None); resultobj = Py_None; | |
19825 | return resultobj; | |
19826 | fail: | |
19827 | return NULL; | |
19828 | } | |
19829 | ||
19830 | ||
c32bde28 | 19831 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19832 | PyObject *resultobj; |
19833 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19834 | wxDateTime *result; | |
19835 | PyObject * obj0 = 0 ; | |
19836 | char *kwnames[] = { | |
19837 | (char *) "self", NULL | |
19838 | }; | |
19839 | ||
19840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
19842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19843 | { |
19844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19845 | { | |
19846 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
19847 | result = (wxDateTime *) &_result_ref; | |
19848 | } | |
19849 | ||
19850 | wxPyEndAllowThreads(__tstate); | |
19851 | if (PyErr_Occurred()) SWIG_fail; | |
19852 | } | |
15afbcd0 | 19853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19854 | return resultobj; |
19855 | fail: | |
19856 | return NULL; | |
19857 | } | |
19858 | ||
19859 | ||
c32bde28 | 19860 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19861 | PyObject *resultobj; |
19862 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19863 | time_t arg2 ; | |
19864 | wxDateTime *result; | |
19865 | PyObject * obj0 = 0 ; | |
19866 | PyObject * obj1 = 0 ; | |
19867 | char *kwnames[] = { | |
19868 | (char *) "self",(char *) "timet", NULL | |
19869 | }; | |
19870 | ||
19871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
19873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19874 | { | |
19875 | arg2 = (time_t)(SWIG_As_unsigned_SS_int(obj1)); | |
19876 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19877 | } | |
d14a1e28 RD |
19878 | { |
19879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19880 | { | |
19881 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
19882 | result = (wxDateTime *) &_result_ref; | |
19883 | } | |
19884 | ||
19885 | wxPyEndAllowThreads(__tstate); | |
19886 | if (PyErr_Occurred()) SWIG_fail; | |
19887 | } | |
15afbcd0 | 19888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19889 | return resultobj; |
19890 | fail: | |
19891 | return NULL; | |
19892 | } | |
19893 | ||
19894 | ||
c32bde28 | 19895 | static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19896 | PyObject *resultobj; |
19897 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19898 | double arg2 ; | |
19899 | wxDateTime *result; | |
19900 | PyObject * obj0 = 0 ; | |
994141e6 | 19901 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19902 | char *kwnames[] = { |
19903 | (char *) "self",(char *) "jdn", NULL | |
19904 | }; | |
19905 | ||
994141e6 | 19906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
19908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19909 | { | |
19910 | arg2 = (double)(SWIG_As_double(obj1)); | |
19911 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19912 | } | |
d14a1e28 RD |
19913 | { |
19914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19915 | { | |
19916 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
19917 | result = (wxDateTime *) &_result_ref; | |
19918 | } | |
19919 | ||
19920 | wxPyEndAllowThreads(__tstate); | |
19921 | if (PyErr_Occurred()) SWIG_fail; | |
19922 | } | |
15afbcd0 | 19923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19924 | return resultobj; |
19925 | fail: | |
19926 | return NULL; | |
19927 | } | |
19928 | ||
19929 | ||
c32bde28 | 19930 | static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19931 | PyObject *resultobj; |
19932 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce RD |
19933 | int arg2 ; |
19934 | int arg3 = (int) 0 ; | |
19935 | int arg4 = (int) 0 ; | |
19936 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
19937 | wxDateTime *result; |
19938 | PyObject * obj0 = 0 ; | |
994141e6 RD |
19939 | PyObject * obj1 = 0 ; |
19940 | PyObject * obj2 = 0 ; | |
19941 | PyObject * obj3 = 0 ; | |
19942 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
19943 | char *kwnames[] = { |
19944 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
19945 | }; | |
19946 | ||
994141e6 | 19947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
19948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
19949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19950 | { | |
19951 | arg2 = (int)(SWIG_As_int(obj1)); | |
19952 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19953 | } | |
994141e6 | 19954 | if (obj2) { |
093d3ff1 RD |
19955 | { |
19956 | arg3 = (int)(SWIG_As_int(obj2)); | |
19957 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19958 | } | |
994141e6 RD |
19959 | } |
19960 | if (obj3) { | |
093d3ff1 RD |
19961 | { |
19962 | arg4 = (int)(SWIG_As_int(obj3)); | |
19963 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19964 | } | |
994141e6 RD |
19965 | } |
19966 | if (obj4) { | |
093d3ff1 RD |
19967 | { |
19968 | arg5 = (int)(SWIG_As_int(obj4)); | |
19969 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19970 | } | |
994141e6 | 19971 | } |
d14a1e28 RD |
19972 | { |
19973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19974 | { | |
19975 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
19976 | result = (wxDateTime *) &_result_ref; | |
19977 | } | |
19978 | ||
19979 | wxPyEndAllowThreads(__tstate); | |
19980 | if (PyErr_Occurred()) SWIG_fail; | |
19981 | } | |
15afbcd0 | 19982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19983 | return resultobj; |
19984 | fail: | |
19985 | return NULL; | |
19986 | } | |
19987 | ||
19988 | ||
c32bde28 | 19989 | static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19990 | PyObject *resultobj; |
19991 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 19992 | int arg2 ; |
093d3ff1 | 19993 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d14a1e28 | 19994 | int arg4 = (int) wxDateTime::Inv_Year ; |
322913ce RD |
19995 | int arg5 = (int) 0 ; |
19996 | int arg6 = (int) 0 ; | |
19997 | int arg7 = (int) 0 ; | |
19998 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
19999 | wxDateTime *result; |
20000 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20001 | PyObject * obj1 = 0 ; |
20002 | PyObject * obj2 = 0 ; | |
20003 | PyObject * obj3 = 0 ; | |
20004 | PyObject * obj4 = 0 ; | |
20005 | PyObject * obj5 = 0 ; | |
20006 | PyObject * obj6 = 0 ; | |
20007 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
20008 | char *kwnames[] = { |
20009 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
20010 | }; | |
20011 | ||
994141e6 | 20012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
20013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20015 | { | |
20016 | arg2 = (int)(SWIG_As_int(obj1)); | |
20017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20018 | } | |
994141e6 | 20019 | if (obj2) { |
093d3ff1 RD |
20020 | { |
20021 | arg3 = (wxDateTime::Month)(SWIG_As_int(obj2)); | |
20022 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20023 | } | |
994141e6 RD |
20024 | } |
20025 | if (obj3) { | |
093d3ff1 RD |
20026 | { |
20027 | arg4 = (int)(SWIG_As_int(obj3)); | |
20028 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20029 | } | |
20030 | } | |
994141e6 | 20031 | if (obj4) { |
093d3ff1 RD |
20032 | { |
20033 | arg5 = (int)(SWIG_As_int(obj4)); | |
20034 | if (SWIG_arg_fail(5)) SWIG_fail; | |
20035 | } | |
994141e6 RD |
20036 | } |
20037 | if (obj5) { | |
093d3ff1 RD |
20038 | { |
20039 | arg6 = (int)(SWIG_As_int(obj5)); | |
20040 | if (SWIG_arg_fail(6)) SWIG_fail; | |
20041 | } | |
994141e6 RD |
20042 | } |
20043 | if (obj6) { | |
093d3ff1 RD |
20044 | { |
20045 | arg7 = (int)(SWIG_As_int(obj6)); | |
20046 | if (SWIG_arg_fail(7)) SWIG_fail; | |
20047 | } | |
994141e6 RD |
20048 | } |
20049 | if (obj7) { | |
093d3ff1 RD |
20050 | { |
20051 | arg8 = (int)(SWIG_As_int(obj7)); | |
20052 | if (SWIG_arg_fail(8)) SWIG_fail; | |
20053 | } | |
994141e6 | 20054 | } |
d14a1e28 RD |
20055 | { |
20056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20057 | { | |
20058 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
20059 | result = (wxDateTime *) &_result_ref; | |
20060 | } | |
20061 | ||
20062 | wxPyEndAllowThreads(__tstate); | |
20063 | if (PyErr_Occurred()) SWIG_fail; | |
20064 | } | |
15afbcd0 | 20065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20066 | return resultobj; |
20067 | fail: | |
20068 | return NULL; | |
20069 | } | |
20070 | ||
20071 | ||
c32bde28 | 20072 | static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20073 | PyObject *resultobj; |
20074 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20075 | wxDateTime *result; | |
20076 | PyObject * obj0 = 0 ; | |
20077 | char *kwnames[] = { | |
20078 | (char *) "self", NULL | |
20079 | }; | |
20080 | ||
20081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20084 | { |
20085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20086 | { | |
20087 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
20088 | result = (wxDateTime *) &_result_ref; | |
20089 | } | |
20090 | ||
20091 | wxPyEndAllowThreads(__tstate); | |
20092 | if (PyErr_Occurred()) SWIG_fail; | |
20093 | } | |
15afbcd0 | 20094 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20095 | return resultobj; |
20096 | fail: | |
20097 | return NULL; | |
20098 | } | |
20099 | ||
20100 | ||
c32bde28 | 20101 | static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20102 | PyObject *resultobj; |
20103 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20104 | int arg2 ; | |
20105 | wxDateTime *result; | |
20106 | PyObject * obj0 = 0 ; | |
994141e6 | 20107 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20108 | char *kwnames[] = { |
20109 | (char *) "self",(char *) "year", NULL | |
20110 | }; | |
20111 | ||
994141e6 | 20112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20113 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20114 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20115 | { | |
20116 | arg2 = (int)(SWIG_As_int(obj1)); | |
20117 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20118 | } | |
d14a1e28 RD |
20119 | { |
20120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20121 | { | |
20122 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
20123 | result = (wxDateTime *) &_result_ref; | |
20124 | } | |
20125 | ||
20126 | wxPyEndAllowThreads(__tstate); | |
20127 | if (PyErr_Occurred()) SWIG_fail; | |
20128 | } | |
15afbcd0 | 20129 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20130 | return resultobj; |
20131 | fail: | |
20132 | return NULL; | |
20133 | } | |
20134 | ||
20135 | ||
c32bde28 | 20136 | static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20137 | PyObject *resultobj; |
20138 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 20139 | wxDateTime::Month arg2 ; |
d14a1e28 RD |
20140 | wxDateTime *result; |
20141 | PyObject * obj0 = 0 ; | |
994141e6 | 20142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20143 | char *kwnames[] = { |
20144 | (char *) "self",(char *) "month", NULL | |
20145 | }; | |
20146 | ||
994141e6 | 20147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20150 | { | |
20151 | arg2 = (wxDateTime::Month)(SWIG_As_int(obj1)); | |
20152 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20153 | } | |
d14a1e28 RD |
20154 | { |
20155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20156 | { | |
20157 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
20158 | result = (wxDateTime *) &_result_ref; | |
20159 | } | |
20160 | ||
20161 | wxPyEndAllowThreads(__tstate); | |
20162 | if (PyErr_Occurred()) SWIG_fail; | |
20163 | } | |
15afbcd0 | 20164 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20165 | return resultobj; |
20166 | fail: | |
20167 | return NULL; | |
20168 | } | |
20169 | ||
20170 | ||
c32bde28 | 20171 | static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20172 | PyObject *resultobj; |
20173 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 20174 | int arg2 ; |
d14a1e28 RD |
20175 | wxDateTime *result; |
20176 | PyObject * obj0 = 0 ; | |
994141e6 | 20177 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20178 | char *kwnames[] = { |
20179 | (char *) "self",(char *) "day", NULL | |
20180 | }; | |
20181 | ||
994141e6 | 20182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20183 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20184 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20185 | { | |
20186 | arg2 = (int)(SWIG_As_int(obj1)); | |
20187 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20188 | } | |
d14a1e28 RD |
20189 | { |
20190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20191 | { | |
20192 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
20193 | result = (wxDateTime *) &_result_ref; | |
20194 | } | |
20195 | ||
20196 | wxPyEndAllowThreads(__tstate); | |
20197 | if (PyErr_Occurred()) SWIG_fail; | |
20198 | } | |
15afbcd0 | 20199 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20200 | return resultobj; |
20201 | fail: | |
20202 | return NULL; | |
20203 | } | |
20204 | ||
20205 | ||
c32bde28 | 20206 | static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20207 | PyObject *resultobj; |
20208 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 20209 | int arg2 ; |
d14a1e28 RD |
20210 | wxDateTime *result; |
20211 | PyObject * obj0 = 0 ; | |
994141e6 | 20212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20213 | char *kwnames[] = { |
20214 | (char *) "self",(char *) "hour", NULL | |
20215 | }; | |
20216 | ||
994141e6 | 20217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20220 | { | |
20221 | arg2 = (int)(SWIG_As_int(obj1)); | |
20222 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20223 | } | |
d14a1e28 RD |
20224 | { |
20225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20226 | { | |
20227 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
20228 | result = (wxDateTime *) &_result_ref; | |
20229 | } | |
20230 | ||
20231 | wxPyEndAllowThreads(__tstate); | |
20232 | if (PyErr_Occurred()) SWIG_fail; | |
20233 | } | |
15afbcd0 | 20234 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20235 | return resultobj; |
20236 | fail: | |
20237 | return NULL; | |
20238 | } | |
20239 | ||
20240 | ||
c32bde28 | 20241 | static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20242 | PyObject *resultobj; |
20243 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 20244 | int arg2 ; |
d14a1e28 RD |
20245 | wxDateTime *result; |
20246 | PyObject * obj0 = 0 ; | |
994141e6 | 20247 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20248 | char *kwnames[] = { |
20249 | (char *) "self",(char *) "minute", NULL | |
20250 | }; | |
20251 | ||
994141e6 | 20252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20253 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20255 | { | |
20256 | arg2 = (int)(SWIG_As_int(obj1)); | |
20257 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20258 | } | |
d14a1e28 RD |
20259 | { |
20260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20261 | { | |
20262 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
20263 | result = (wxDateTime *) &_result_ref; | |
20264 | } | |
20265 | ||
20266 | wxPyEndAllowThreads(__tstate); | |
20267 | if (PyErr_Occurred()) SWIG_fail; | |
20268 | } | |
15afbcd0 | 20269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20270 | return resultobj; |
20271 | fail: | |
20272 | return NULL; | |
20273 | } | |
20274 | ||
20275 | ||
c32bde28 | 20276 | static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20277 | PyObject *resultobj; |
20278 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 20279 | int arg2 ; |
d14a1e28 RD |
20280 | wxDateTime *result; |
20281 | PyObject * obj0 = 0 ; | |
994141e6 | 20282 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20283 | char *kwnames[] = { |
20284 | (char *) "self",(char *) "second", NULL | |
20285 | }; | |
20286 | ||
994141e6 | 20287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20290 | { | |
20291 | arg2 = (int)(SWIG_As_int(obj1)); | |
20292 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20293 | } | |
d14a1e28 RD |
20294 | { |
20295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20296 | { | |
20297 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
20298 | result = (wxDateTime *) &_result_ref; | |
20299 | } | |
20300 | ||
20301 | wxPyEndAllowThreads(__tstate); | |
20302 | if (PyErr_Occurred()) SWIG_fail; | |
20303 | } | |
15afbcd0 | 20304 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20305 | return resultobj; |
20306 | fail: | |
20307 | return NULL; | |
20308 | } | |
20309 | ||
20310 | ||
c32bde28 | 20311 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20312 | PyObject *resultobj; |
20313 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 20314 | int arg2 ; |
d14a1e28 RD |
20315 | wxDateTime *result; |
20316 | PyObject * obj0 = 0 ; | |
994141e6 | 20317 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20318 | char *kwnames[] = { |
20319 | (char *) "self",(char *) "millisecond", NULL | |
20320 | }; | |
20321 | ||
994141e6 | 20322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20323 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20324 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20325 | { | |
20326 | arg2 = (int)(SWIG_As_int(obj1)); | |
20327 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20328 | } | |
d14a1e28 RD |
20329 | { |
20330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20331 | { | |
20332 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
20333 | result = (wxDateTime *) &_result_ref; | |
20334 | } | |
20335 | ||
20336 | wxPyEndAllowThreads(__tstate); | |
20337 | if (PyErr_Occurred()) SWIG_fail; | |
20338 | } | |
15afbcd0 | 20339 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20340 | return resultobj; |
20341 | fail: | |
20342 | return NULL; | |
20343 | } | |
20344 | ||
20345 | ||
c32bde28 | 20346 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20347 | PyObject *resultobj; |
20348 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 RD |
20349 | wxDateTime::WeekDay arg2 ; |
20350 | wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d14a1e28 RD |
20351 | wxDateTime *result; |
20352 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20353 | PyObject * obj1 = 0 ; |
20354 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20355 | char *kwnames[] = { |
20356 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
20357 | }; | |
20358 | ||
994141e6 | 20359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20362 | { | |
20363 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20364 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20365 | } | |
994141e6 | 20366 | if (obj2) { |
093d3ff1 RD |
20367 | { |
20368 | arg3 = (wxDateTime::WeekFlags)(SWIG_As_int(obj2)); | |
20369 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20370 | } | |
994141e6 | 20371 | } |
d14a1e28 RD |
20372 | { |
20373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20374 | { | |
20375 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
20376 | result = (wxDateTime *) &_result_ref; | |
20377 | } | |
20378 | ||
20379 | wxPyEndAllowThreads(__tstate); | |
20380 | if (PyErr_Occurred()) SWIG_fail; | |
20381 | } | |
15afbcd0 | 20382 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20383 | return resultobj; |
20384 | fail: | |
20385 | return NULL; | |
20386 | } | |
20387 | ||
20388 | ||
c32bde28 | 20389 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20390 | PyObject *resultobj; |
20391 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 RD |
20392 | wxDateTime::WeekDay arg2 ; |
20393 | wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d14a1e28 RD |
20394 | wxDateTime result; |
20395 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20396 | PyObject * obj1 = 0 ; |
20397 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20398 | char *kwnames[] = { |
20399 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
20400 | }; | |
20401 | ||
994141e6 | 20402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20405 | { | |
20406 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20407 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20408 | } | |
994141e6 | 20409 | if (obj2) { |
093d3ff1 RD |
20410 | { |
20411 | arg3 = (wxDateTime::WeekFlags)(SWIG_As_int(obj2)); | |
20412 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20413 | } | |
994141e6 | 20414 | } |
d14a1e28 RD |
20415 | { |
20416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20417 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
20418 | ||
20419 | wxPyEndAllowThreads(__tstate); | |
20420 | if (PyErr_Occurred()) SWIG_fail; | |
20421 | } | |
20422 | { | |
20423 | wxDateTime * resultptr; | |
093d3ff1 | 20424 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 20425 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20426 | } |
20427 | return resultobj; | |
20428 | fail: | |
20429 | return NULL; | |
20430 | } | |
20431 | ||
20432 | ||
c32bde28 | 20433 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20434 | PyObject *resultobj; |
20435 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 20436 | wxDateTime::WeekDay arg2 ; |
d14a1e28 RD |
20437 | wxDateTime *result; |
20438 | PyObject * obj0 = 0 ; | |
994141e6 | 20439 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20440 | char *kwnames[] = { |
20441 | (char *) "self",(char *) "weekday", NULL | |
20442 | }; | |
20443 | ||
994141e6 | 20444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20447 | { | |
20448 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20449 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20450 | } | |
d14a1e28 RD |
20451 | { |
20452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20453 | { | |
20454 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
20455 | result = (wxDateTime *) &_result_ref; | |
20456 | } | |
20457 | ||
20458 | wxPyEndAllowThreads(__tstate); | |
20459 | if (PyErr_Occurred()) SWIG_fail; | |
20460 | } | |
15afbcd0 | 20461 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20462 | return resultobj; |
20463 | fail: | |
20464 | return NULL; | |
20465 | } | |
20466 | ||
20467 | ||
c32bde28 | 20468 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20469 | PyObject *resultobj; |
20470 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 20471 | wxDateTime::WeekDay arg2 ; |
d14a1e28 RD |
20472 | wxDateTime result; |
20473 | PyObject * obj0 = 0 ; | |
994141e6 | 20474 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20475 | char *kwnames[] = { |
20476 | (char *) "self",(char *) "weekday", NULL | |
20477 | }; | |
20478 | ||
994141e6 | 20479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20482 | { | |
20483 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20484 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20485 | } | |
d14a1e28 RD |
20486 | { |
20487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20488 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
20489 | ||
20490 | wxPyEndAllowThreads(__tstate); | |
20491 | if (PyErr_Occurred()) SWIG_fail; | |
20492 | } | |
20493 | { | |
20494 | wxDateTime * resultptr; | |
093d3ff1 | 20495 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 20496 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20497 | } |
20498 | return resultobj; | |
20499 | fail: | |
20500 | return NULL; | |
20501 | } | |
20502 | ||
20503 | ||
c32bde28 | 20504 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20505 | PyObject *resultobj; |
20506 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 20507 | wxDateTime::WeekDay arg2 ; |
d14a1e28 RD |
20508 | wxDateTime *result; |
20509 | PyObject * obj0 = 0 ; | |
994141e6 | 20510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20511 | char *kwnames[] = { |
20512 | (char *) "self",(char *) "weekday", NULL | |
20513 | }; | |
20514 | ||
994141e6 | 20515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20518 | { | |
20519 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20520 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20521 | } | |
d14a1e28 RD |
20522 | { |
20523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20524 | { | |
20525 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
20526 | result = (wxDateTime *) &_result_ref; | |
20527 | } | |
20528 | ||
20529 | wxPyEndAllowThreads(__tstate); | |
20530 | if (PyErr_Occurred()) SWIG_fail; | |
20531 | } | |
15afbcd0 | 20532 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20533 | return resultobj; |
20534 | fail: | |
20535 | return NULL; | |
20536 | } | |
20537 | ||
20538 | ||
c32bde28 | 20539 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20540 | PyObject *resultobj; |
20541 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 20542 | wxDateTime::WeekDay arg2 ; |
d14a1e28 RD |
20543 | wxDateTime result; |
20544 | PyObject * obj0 = 0 ; | |
994141e6 | 20545 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20546 | char *kwnames[] = { |
20547 | (char *) "self",(char *) "weekday", NULL | |
20548 | }; | |
20549 | ||
994141e6 | 20550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20553 | { | |
20554 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20555 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20556 | } | |
d14a1e28 RD |
20557 | { |
20558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20559 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
20560 | ||
20561 | wxPyEndAllowThreads(__tstate); | |
20562 | if (PyErr_Occurred()) SWIG_fail; | |
20563 | } | |
20564 | { | |
20565 | wxDateTime * resultptr; | |
093d3ff1 | 20566 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 20567 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20568 | } |
20569 | return resultobj; | |
20570 | fail: | |
20571 | return NULL; | |
20572 | } | |
20573 | ||
20574 | ||
c32bde28 | 20575 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20576 | PyObject *resultobj; |
20577 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 20578 | wxDateTime::WeekDay arg2 ; |
d14a1e28 | 20579 | int arg3 = (int) 1 ; |
093d3ff1 | 20580 | wxDateTime::Month arg4 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d14a1e28 RD |
20581 | int arg5 = (int) wxDateTime::Inv_Year ; |
20582 | bool result; | |
20583 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20584 | PyObject * obj1 = 0 ; |
20585 | PyObject * obj2 = 0 ; | |
20586 | PyObject * obj3 = 0 ; | |
20587 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
20588 | char *kwnames[] = { |
20589 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
20590 | }; | |
20591 | ||
994141e6 | 20592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
20593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20595 | { | |
20596 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20597 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20598 | } | |
994141e6 | 20599 | if (obj2) { |
093d3ff1 RD |
20600 | { |
20601 | arg3 = (int)(SWIG_As_int(obj2)); | |
20602 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20603 | } | |
994141e6 RD |
20604 | } |
20605 | if (obj3) { | |
093d3ff1 RD |
20606 | { |
20607 | arg4 = (wxDateTime::Month)(SWIG_As_int(obj3)); | |
20608 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20609 | } | |
994141e6 RD |
20610 | } |
20611 | if (obj4) { | |
093d3ff1 RD |
20612 | { |
20613 | arg5 = (int)(SWIG_As_int(obj4)); | |
20614 | if (SWIG_arg_fail(5)) SWIG_fail; | |
20615 | } | |
994141e6 | 20616 | } |
d14a1e28 RD |
20617 | { |
20618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20619 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
20620 | ||
20621 | wxPyEndAllowThreads(__tstate); | |
20622 | if (PyErr_Occurred()) SWIG_fail; | |
20623 | } | |
4f89f6a3 RD |
20624 | { |
20625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20626 | } | |
d14a1e28 RD |
20627 | return resultobj; |
20628 | fail: | |
20629 | return NULL; | |
20630 | } | |
20631 | ||
20632 | ||
c32bde28 | 20633 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20634 | PyObject *resultobj; |
20635 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 RD |
20636 | wxDateTime::WeekDay arg2 ; |
20637 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; | |
d14a1e28 RD |
20638 | int arg4 = (int) wxDateTime::Inv_Year ; |
20639 | bool result; | |
20640 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20641 | PyObject * obj1 = 0 ; |
20642 | PyObject * obj2 = 0 ; | |
20643 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20644 | char *kwnames[] = { |
20645 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
20646 | }; | |
20647 | ||
994141e6 | 20648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
20649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20651 | { | |
20652 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20653 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20654 | } | |
994141e6 | 20655 | if (obj2) { |
093d3ff1 RD |
20656 | { |
20657 | arg3 = (wxDateTime::Month)(SWIG_As_int(obj2)); | |
20658 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20659 | } | |
994141e6 RD |
20660 | } |
20661 | if (obj3) { | |
093d3ff1 RD |
20662 | { |
20663 | arg4 = (int)(SWIG_As_int(obj3)); | |
20664 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20665 | } | |
994141e6 | 20666 | } |
d14a1e28 RD |
20667 | { |
20668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20669 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
20670 | ||
20671 | wxPyEndAllowThreads(__tstate); | |
20672 | if (PyErr_Occurred()) SWIG_fail; | |
20673 | } | |
4f89f6a3 RD |
20674 | { |
20675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20676 | } | |
d14a1e28 RD |
20677 | return resultobj; |
20678 | fail: | |
20679 | return NULL; | |
20680 | } | |
20681 | ||
20682 | ||
c32bde28 | 20683 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20684 | PyObject *resultobj; |
20685 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 RD |
20686 | wxDateTime::WeekDay arg2 ; |
20687 | wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ; | |
d14a1e28 RD |
20688 | int arg4 = (int) wxDateTime::Inv_Year ; |
20689 | wxDateTime result; | |
20690 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20691 | PyObject * obj1 = 0 ; |
20692 | PyObject * obj2 = 0 ; | |
20693 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20694 | char *kwnames[] = { |
20695 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
20696 | }; | |
20697 | ||
994141e6 | 20698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
20699 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20701 | { | |
20702 | arg2 = (wxDateTime::WeekDay)(SWIG_As_int(obj1)); | |
20703 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20704 | } | |
994141e6 | 20705 | if (obj2) { |
093d3ff1 RD |
20706 | { |
20707 | arg3 = (wxDateTime::Month)(SWIG_As_int(obj2)); | |
20708 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20709 | } | |
994141e6 RD |
20710 | } |
20711 | if (obj3) { | |
093d3ff1 RD |
20712 | { |
20713 | arg4 = (int)(SWIG_As_int(obj3)); | |
20714 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20715 | } | |
994141e6 | 20716 | } |
d14a1e28 RD |
20717 | { |
20718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20719 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
20720 | ||
20721 | wxPyEndAllowThreads(__tstate); | |
20722 | if (PyErr_Occurred()) SWIG_fail; | |
20723 | } | |
20724 | { | |
20725 | wxDateTime * resultptr; | |
093d3ff1 | 20726 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 20727 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20728 | } |
20729 | return resultobj; | |
20730 | fail: | |
20731 | return NULL; | |
20732 | } | |
20733 | ||
20734 | ||
c32bde28 | 20735 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20736 | PyObject *resultobj; |
20737 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 20738 | int arg2 ; |
093d3ff1 RD |
20739 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
20740 | wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d14a1e28 RD |
20741 | bool result; |
20742 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20743 | PyObject * obj1 = 0 ; |
20744 | PyObject * obj2 = 0 ; | |
20745 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20746 | char *kwnames[] = { |
20747 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
20748 | }; | |
20749 | ||
994141e6 | 20750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
20751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20753 | { | |
20754 | arg2 = (int)(SWIG_As_int(obj1)); | |
20755 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20756 | } | |
994141e6 | 20757 | if (obj2) { |
093d3ff1 RD |
20758 | { |
20759 | arg3 = (wxDateTime::WeekDay)(SWIG_As_int(obj2)); | |
20760 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20761 | } | |
994141e6 RD |
20762 | } |
20763 | if (obj3) { | |
093d3ff1 RD |
20764 | { |
20765 | arg4 = (wxDateTime::WeekFlags)(SWIG_As_int(obj3)); | |
20766 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20767 | } | |
994141e6 | 20768 | } |
d14a1e28 RD |
20769 | { |
20770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20771 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
20772 | ||
20773 | wxPyEndAllowThreads(__tstate); | |
20774 | if (PyErr_Occurred()) SWIG_fail; | |
20775 | } | |
4f89f6a3 RD |
20776 | { |
20777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20778 | } | |
d14a1e28 RD |
20779 | return resultobj; |
20780 | fail: | |
20781 | return NULL; | |
20782 | } | |
20783 | ||
20784 | ||
c32bde28 | 20785 | static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20786 | PyObject *resultobj; |
20787 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 20788 | int arg2 ; |
093d3ff1 RD |
20789 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
20790 | wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; | |
d14a1e28 RD |
20791 | wxDateTime result; |
20792 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20793 | PyObject * obj1 = 0 ; |
20794 | PyObject * obj2 = 0 ; | |
20795 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20796 | char *kwnames[] = { |
20797 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
20798 | }; | |
20799 | ||
994141e6 | 20800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
20801 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20802 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20803 | { | |
20804 | arg2 = (int)(SWIG_As_int(obj1)); | |
20805 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20806 | } | |
994141e6 | 20807 | if (obj2) { |
093d3ff1 RD |
20808 | { |
20809 | arg3 = (wxDateTime::WeekDay)(SWIG_As_int(obj2)); | |
20810 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20811 | } | |
994141e6 RD |
20812 | } |
20813 | if (obj3) { | |
093d3ff1 RD |
20814 | { |
20815 | arg4 = (wxDateTime::WeekFlags)(SWIG_As_int(obj3)); | |
20816 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20817 | } | |
994141e6 | 20818 | } |
d14a1e28 RD |
20819 | { |
20820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20821 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
20822 | ||
20823 | wxPyEndAllowThreads(__tstate); | |
20824 | if (PyErr_Occurred()) SWIG_fail; | |
20825 | } | |
20826 | { | |
20827 | wxDateTime * resultptr; | |
093d3ff1 | 20828 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 20829 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20830 | } |
20831 | return resultobj; | |
20832 | fail: | |
20833 | return NULL; | |
20834 | } | |
20835 | ||
20836 | ||
7e63a440 RD |
20837 | static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
20838 | PyObject *resultobj; | |
20839 | int arg1 ; | |
20840 | int arg2 ; | |
093d3ff1 | 20841 | wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ; |
7e63a440 RD |
20842 | wxDateTime result; |
20843 | PyObject * obj0 = 0 ; | |
20844 | PyObject * obj1 = 0 ; | |
20845 | PyObject * obj2 = 0 ; | |
20846 | char *kwnames[] = { | |
20847 | (char *) "year",(char *) "numWeek",(char *) "weekday", NULL | |
20848 | }; | |
20849 | ||
20850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
20851 | { |
20852 | arg1 = (int)(SWIG_As_int(obj0)); | |
20853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20854 | } | |
20855 | { | |
20856 | arg2 = (int)(SWIG_As_int(obj1)); | |
20857 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20858 | } | |
7e63a440 | 20859 | if (obj2) { |
093d3ff1 RD |
20860 | { |
20861 | arg3 = (wxDateTime::WeekDay)(SWIG_As_int(obj2)); | |
20862 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20863 | } | |
7e63a440 RD |
20864 | } |
20865 | { | |
20866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20867 | result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3); | |
20868 | ||
20869 | wxPyEndAllowThreads(__tstate); | |
20870 | if (PyErr_Occurred()) SWIG_fail; | |
20871 | } | |
20872 | { | |
20873 | wxDateTime * resultptr; | |
093d3ff1 | 20874 | resultptr = new wxDateTime((wxDateTime &)(result)); |
7e63a440 RD |
20875 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
20876 | } | |
20877 | return resultobj; | |
20878 | fail: | |
20879 | return NULL; | |
20880 | } | |
20881 | ||
20882 | ||
c32bde28 | 20883 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20884 | PyObject *resultobj; |
20885 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 20886 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d14a1e28 RD |
20887 | int arg3 = (int) wxDateTime::Inv_Year ; |
20888 | wxDateTime *result; | |
20889 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20890 | PyObject * obj1 = 0 ; |
20891 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20892 | char *kwnames[] = { |
20893 | (char *) "self",(char *) "month",(char *) "year", NULL | |
20894 | }; | |
20895 | ||
994141e6 | 20896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 20899 | if (obj1) { |
093d3ff1 RD |
20900 | { |
20901 | arg2 = (wxDateTime::Month)(SWIG_As_int(obj1)); | |
20902 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20903 | } | |
994141e6 RD |
20904 | } |
20905 | if (obj2) { | |
093d3ff1 RD |
20906 | { |
20907 | arg3 = (int)(SWIG_As_int(obj2)); | |
20908 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20909 | } | |
994141e6 | 20910 | } |
d14a1e28 RD |
20911 | { |
20912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20913 | { | |
20914 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
20915 | result = (wxDateTime *) &_result_ref; | |
20916 | } | |
20917 | ||
20918 | wxPyEndAllowThreads(__tstate); | |
20919 | if (PyErr_Occurred()) SWIG_fail; | |
20920 | } | |
15afbcd0 | 20921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20922 | return resultobj; |
20923 | fail: | |
20924 | return NULL; | |
20925 | } | |
20926 | ||
20927 | ||
c32bde28 | 20928 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20929 | PyObject *resultobj; |
20930 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 20931 | wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ; |
d14a1e28 RD |
20932 | int arg3 = (int) wxDateTime::Inv_Year ; |
20933 | wxDateTime result; | |
20934 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20935 | PyObject * obj1 = 0 ; |
20936 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20937 | char *kwnames[] = { |
20938 | (char *) "self",(char *) "month",(char *) "year", NULL | |
20939 | }; | |
20940 | ||
994141e6 | 20941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20942 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20943 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 20944 | if (obj1) { |
093d3ff1 RD |
20945 | { |
20946 | arg2 = (wxDateTime::Month)(SWIG_As_int(obj1)); | |
20947 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20948 | } | |
994141e6 RD |
20949 | } |
20950 | if (obj2) { | |
093d3ff1 RD |
20951 | { |
20952 | arg3 = (int)(SWIG_As_int(obj2)); | |
20953 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20954 | } | |
994141e6 | 20955 | } |
d14a1e28 RD |
20956 | { |
20957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20958 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
20959 | ||
20960 | wxPyEndAllowThreads(__tstate); | |
20961 | if (PyErr_Occurred()) SWIG_fail; | |
20962 | } | |
20963 | { | |
20964 | wxDateTime * resultptr; | |
093d3ff1 | 20965 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 20966 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20967 | } |
20968 | return resultobj; | |
20969 | fail: | |
20970 | return NULL; | |
20971 | } | |
20972 | ||
20973 | ||
c32bde28 | 20974 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20975 | PyObject *resultobj; |
20976 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 20977 | int arg2 ; |
d14a1e28 RD |
20978 | wxDateTime *result; |
20979 | PyObject * obj0 = 0 ; | |
994141e6 | 20980 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20981 | char *kwnames[] = { |
20982 | (char *) "self",(char *) "yday", NULL | |
20983 | }; | |
20984 | ||
994141e6 | 20985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
20987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20988 | { | |
20989 | arg2 = (int)(SWIG_As_int(obj1)); | |
20990 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20991 | } | |
d14a1e28 RD |
20992 | { |
20993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20994 | { | |
20995 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
20996 | result = (wxDateTime *) &_result_ref; | |
20997 | } | |
20998 | ||
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
15afbcd0 | 21002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21003 | return resultobj; |
21004 | fail: | |
21005 | return NULL; | |
21006 | } | |
21007 | ||
21008 | ||
c32bde28 | 21009 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21010 | PyObject *resultobj; |
21011 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 21012 | int arg2 ; |
d14a1e28 RD |
21013 | wxDateTime result; |
21014 | PyObject * obj0 = 0 ; | |
994141e6 | 21015 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21016 | char *kwnames[] = { |
21017 | (char *) "self",(char *) "yday", NULL | |
21018 | }; | |
21019 | ||
994141e6 | 21020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21023 | { | |
21024 | arg2 = (int)(SWIG_As_int(obj1)); | |
21025 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21026 | } | |
d14a1e28 RD |
21027 | { |
21028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21029 | result = (arg1)->GetYearDay(arg2); | |
21030 | ||
21031 | wxPyEndAllowThreads(__tstate); | |
21032 | if (PyErr_Occurred()) SWIG_fail; | |
21033 | } | |
21034 | { | |
21035 | wxDateTime * resultptr; | |
093d3ff1 | 21036 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 21037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
21038 | } |
21039 | return resultobj; | |
21040 | fail: | |
21041 | return NULL; | |
21042 | } | |
21043 | ||
21044 | ||
c32bde28 | 21045 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21046 | PyObject *resultobj; |
21047 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21048 | double result; | |
21049 | PyObject * obj0 = 0 ; | |
21050 | char *kwnames[] = { | |
21051 | (char *) "self", NULL | |
21052 | }; | |
21053 | ||
21054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21055 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21056 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21057 | { |
21058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21059 | result = (double)(arg1)->GetJulianDayNumber(); | |
21060 | ||
21061 | wxPyEndAllowThreads(__tstate); | |
21062 | if (PyErr_Occurred()) SWIG_fail; | |
21063 | } | |
093d3ff1 RD |
21064 | { |
21065 | resultobj = SWIG_From_double((double)(result)); | |
21066 | } | |
d14a1e28 RD |
21067 | return resultobj; |
21068 | fail: | |
21069 | return NULL; | |
21070 | } | |
21071 | ||
21072 | ||
c32bde28 | 21073 | static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21074 | PyObject *resultobj; |
21075 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21076 | double result; | |
21077 | PyObject * obj0 = 0 ; | |
21078 | char *kwnames[] = { | |
21079 | (char *) "self", NULL | |
21080 | }; | |
21081 | ||
21082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21085 | { |
21086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21087 | result = (double)(arg1)->GetJDN(); | |
21088 | ||
21089 | wxPyEndAllowThreads(__tstate); | |
21090 | if (PyErr_Occurred()) SWIG_fail; | |
21091 | } | |
093d3ff1 RD |
21092 | { |
21093 | resultobj = SWIG_From_double((double)(result)); | |
21094 | } | |
d14a1e28 RD |
21095 | return resultobj; |
21096 | fail: | |
21097 | return NULL; | |
21098 | } | |
21099 | ||
21100 | ||
c32bde28 | 21101 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21102 | PyObject *resultobj; |
21103 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21104 | double result; | |
21105 | PyObject * obj0 = 0 ; | |
21106 | char *kwnames[] = { | |
21107 | (char *) "self", NULL | |
21108 | }; | |
21109 | ||
21110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21113 | { |
21114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21115 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
21116 | ||
21117 | wxPyEndAllowThreads(__tstate); | |
21118 | if (PyErr_Occurred()) SWIG_fail; | |
21119 | } | |
093d3ff1 RD |
21120 | { |
21121 | resultobj = SWIG_From_double((double)(result)); | |
21122 | } | |
d14a1e28 RD |
21123 | return resultobj; |
21124 | fail: | |
21125 | return NULL; | |
21126 | } | |
21127 | ||
21128 | ||
c32bde28 | 21129 | static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21130 | PyObject *resultobj; |
21131 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21132 | double result; | |
21133 | PyObject * obj0 = 0 ; | |
21134 | char *kwnames[] = { | |
21135 | (char *) "self", NULL | |
21136 | }; | |
21137 | ||
21138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21139 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21140 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21141 | { |
21142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21143 | result = (double)(arg1)->GetMJD(); | |
21144 | ||
21145 | wxPyEndAllowThreads(__tstate); | |
21146 | if (PyErr_Occurred()) SWIG_fail; | |
21147 | } | |
093d3ff1 RD |
21148 | { |
21149 | resultobj = SWIG_From_double((double)(result)); | |
21150 | } | |
d14a1e28 RD |
21151 | return resultobj; |
21152 | fail: | |
21153 | return NULL; | |
21154 | } | |
21155 | ||
21156 | ||
c32bde28 | 21157 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21158 | PyObject *resultobj; |
21159 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21160 | double result; | |
21161 | PyObject * obj0 = 0 ; | |
21162 | char *kwnames[] = { | |
21163 | (char *) "self", NULL | |
21164 | }; | |
21165 | ||
21166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21167 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21168 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21169 | { |
21170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21171 | result = (double)(arg1)->GetRataDie(); | |
21172 | ||
21173 | wxPyEndAllowThreads(__tstate); | |
21174 | if (PyErr_Occurred()) SWIG_fail; | |
21175 | } | |
093d3ff1 RD |
21176 | { |
21177 | resultobj = SWIG_From_double((double)(result)); | |
21178 | } | |
d14a1e28 RD |
21179 | return resultobj; |
21180 | fail: | |
21181 | return NULL; | |
21182 | } | |
21183 | ||
21184 | ||
c32bde28 | 21185 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21186 | PyObject *resultobj; |
21187 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21188 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 21189 | bool arg3 = (bool) false ; |
d14a1e28 | 21190 | wxDateTime result; |
ae8162c8 | 21191 | bool temp2 = false ; |
d14a1e28 RD |
21192 | PyObject * obj0 = 0 ; |
21193 | PyObject * obj1 = 0 ; | |
21194 | PyObject * obj2 = 0 ; | |
21195 | char *kwnames[] = { | |
21196 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
21197 | }; | |
21198 | ||
21199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
21200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21202 | { |
21203 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 21204 | temp2 = true; |
d14a1e28 RD |
21205 | } |
21206 | if (obj2) { | |
093d3ff1 RD |
21207 | { |
21208 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
21209 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21210 | } | |
d14a1e28 RD |
21211 | } |
21212 | { | |
21213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21214 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
21215 | ||
21216 | wxPyEndAllowThreads(__tstate); | |
21217 | if (PyErr_Occurred()) SWIG_fail; | |
21218 | } | |
21219 | { | |
21220 | wxDateTime * resultptr; | |
093d3ff1 | 21221 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 21222 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
21223 | } |
21224 | { | |
7722248d | 21225 | if (temp2) delete arg2; |
d14a1e28 RD |
21226 | } |
21227 | return resultobj; | |
21228 | fail: | |
21229 | { | |
7722248d | 21230 | if (temp2) delete arg2; |
d14a1e28 RD |
21231 | } |
21232 | return NULL; | |
21233 | } | |
21234 | ||
21235 | ||
c32bde28 | 21236 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21237 | PyObject *resultobj; |
21238 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21239 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 21240 | bool arg3 = (bool) false ; |
d14a1e28 | 21241 | wxDateTime *result; |
ae8162c8 | 21242 | bool temp2 = false ; |
d14a1e28 RD |
21243 | PyObject * obj0 = 0 ; |
21244 | PyObject * obj1 = 0 ; | |
21245 | PyObject * obj2 = 0 ; | |
21246 | char *kwnames[] = { | |
21247 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
21248 | }; | |
21249 | ||
21250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
21251 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21252 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21253 | { |
21254 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 21255 | temp2 = true; |
d14a1e28 RD |
21256 | } |
21257 | if (obj2) { | |
093d3ff1 RD |
21258 | { |
21259 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
21260 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21261 | } | |
d14a1e28 RD |
21262 | } |
21263 | { | |
21264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21265 | { | |
21266 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
21267 | result = (wxDateTime *) &_result_ref; | |
21268 | } | |
21269 | ||
21270 | wxPyEndAllowThreads(__tstate); | |
21271 | if (PyErr_Occurred()) SWIG_fail; | |
21272 | } | |
15afbcd0 | 21273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 | 21274 | { |
7722248d | 21275 | if (temp2) delete arg2; |
d14a1e28 RD |
21276 | } |
21277 | return resultobj; | |
21278 | fail: | |
21279 | { | |
7722248d | 21280 | if (temp2) delete arg2; |
d14a1e28 RD |
21281 | } |
21282 | return NULL; | |
21283 | } | |
21284 | ||
21285 | ||
c32bde28 | 21286 | static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21287 | PyObject *resultobj; |
21288 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
ae8162c8 | 21289 | bool arg2 = (bool) false ; |
d14a1e28 RD |
21290 | wxDateTime result; |
21291 | PyObject * obj0 = 0 ; | |
21292 | PyObject * obj1 = 0 ; | |
21293 | char *kwnames[] = { | |
21294 | (char *) "self",(char *) "noDST", NULL | |
21295 | }; | |
21296 | ||
21297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 21300 | if (obj1) { |
093d3ff1 RD |
21301 | { |
21302 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21303 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21304 | } | |
d14a1e28 RD |
21305 | } |
21306 | { | |
21307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21308 | result = (arg1)->ToGMT(arg2); | |
21309 | ||
21310 | wxPyEndAllowThreads(__tstate); | |
21311 | if (PyErr_Occurred()) SWIG_fail; | |
21312 | } | |
21313 | { | |
21314 | wxDateTime * resultptr; | |
093d3ff1 | 21315 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 21316 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
21317 | } |
21318 | return resultobj; | |
21319 | fail: | |
21320 | return NULL; | |
21321 | } | |
21322 | ||
21323 | ||
c32bde28 | 21324 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21325 | PyObject *resultobj; |
21326 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
ae8162c8 | 21327 | bool arg2 = (bool) false ; |
d14a1e28 RD |
21328 | wxDateTime *result; |
21329 | PyObject * obj0 = 0 ; | |
21330 | PyObject * obj1 = 0 ; | |
21331 | char *kwnames[] = { | |
21332 | (char *) "self",(char *) "noDST", NULL | |
21333 | }; | |
21334 | ||
21335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 21338 | if (obj1) { |
093d3ff1 RD |
21339 | { |
21340 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21341 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21342 | } | |
d14a1e28 RD |
21343 | } |
21344 | { | |
21345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21346 | { | |
21347 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
21348 | result = (wxDateTime *) &_result_ref; | |
21349 | } | |
21350 | ||
21351 | wxPyEndAllowThreads(__tstate); | |
21352 | if (PyErr_Occurred()) SWIG_fail; | |
21353 | } | |
15afbcd0 | 21354 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
21355 | return resultobj; |
21356 | fail: | |
21357 | return NULL; | |
21358 | } | |
21359 | ||
21360 | ||
c32bde28 | 21361 | static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21362 | PyObject *resultobj; |
21363 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 21364 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 RD |
21365 | int result; |
21366 | PyObject * obj0 = 0 ; | |
994141e6 | 21367 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21368 | char *kwnames[] = { |
21369 | (char *) "self",(char *) "country", NULL | |
21370 | }; | |
21371 | ||
994141e6 | 21372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21373 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21374 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 21375 | if (obj1) { |
093d3ff1 RD |
21376 | { |
21377 | arg2 = (wxDateTime::Country)(SWIG_As_int(obj1)); | |
21378 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21379 | } | |
994141e6 | 21380 | } |
d14a1e28 RD |
21381 | { |
21382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21383 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
21384 | ||
21385 | wxPyEndAllowThreads(__tstate); | |
21386 | if (PyErr_Occurred()) SWIG_fail; | |
21387 | } | |
093d3ff1 RD |
21388 | { |
21389 | resultobj = SWIG_From_int((int)(result)); | |
21390 | } | |
d14a1e28 RD |
21391 | return resultobj; |
21392 | fail: | |
21393 | return NULL; | |
21394 | } | |
21395 | ||
21396 | ||
c32bde28 | 21397 | static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21398 | PyObject *resultobj; |
21399 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21400 | bool result; | |
21401 | PyObject * obj0 = 0 ; | |
21402 | char *kwnames[] = { | |
21403 | (char *) "self", NULL | |
21404 | }; | |
21405 | ||
21406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21407 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21408 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21409 | { |
21410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21411 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
21412 | ||
21413 | wxPyEndAllowThreads(__tstate); | |
21414 | if (PyErr_Occurred()) SWIG_fail; | |
21415 | } | |
4f89f6a3 RD |
21416 | { |
21417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21418 | } | |
d14a1e28 RD |
21419 | return resultobj; |
21420 | fail: | |
21421 | return NULL; | |
21422 | } | |
21423 | ||
21424 | ||
c32bde28 | 21425 | static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21426 | PyObject *resultobj; |
21427 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21428 | time_t result; | |
21429 | PyObject * obj0 = 0 ; | |
21430 | char *kwnames[] = { | |
21431 | (char *) "self", NULL | |
21432 | }; | |
21433 | ||
21434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21435 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21436 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21437 | { |
21438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21439 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
21440 | ||
21441 | wxPyEndAllowThreads(__tstate); | |
21442 | if (PyErr_Occurred()) SWIG_fail; | |
21443 | } | |
093d3ff1 RD |
21444 | { |
21445 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
21446 | } | |
d14a1e28 RD |
21447 | return resultobj; |
21448 | fail: | |
21449 | return NULL; | |
21450 | } | |
21451 | ||
21452 | ||
c32bde28 | 21453 | static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21454 | PyObject *resultobj; |
21455 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21456 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21457 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
21458 | int result; | |
ae8162c8 | 21459 | bool temp2 = false ; |
d14a1e28 RD |
21460 | PyObject * obj0 = 0 ; |
21461 | PyObject * obj1 = 0 ; | |
21462 | char *kwnames[] = { | |
21463 | (char *) "self",(char *) "tz", NULL | |
21464 | }; | |
21465 | ||
21466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21469 | if (obj1) { |
21470 | { | |
21471 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 21472 | temp2 = true; |
d14a1e28 RD |
21473 | } |
21474 | } | |
21475 | { | |
21476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21477 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
21478 | ||
21479 | wxPyEndAllowThreads(__tstate); | |
21480 | if (PyErr_Occurred()) SWIG_fail; | |
21481 | } | |
093d3ff1 RD |
21482 | { |
21483 | resultobj = SWIG_From_int((int)(result)); | |
21484 | } | |
d14a1e28 | 21485 | { |
7722248d | 21486 | if (temp2) delete arg2; |
d14a1e28 RD |
21487 | } |
21488 | return resultobj; | |
21489 | fail: | |
21490 | { | |
7722248d | 21491 | if (temp2) delete arg2; |
d14a1e28 RD |
21492 | } |
21493 | return NULL; | |
21494 | } | |
21495 | ||
21496 | ||
c32bde28 | 21497 | static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21498 | PyObject *resultobj; |
21499 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21500 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21501 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
093d3ff1 | 21502 | wxDateTime::Month result; |
ae8162c8 | 21503 | bool temp2 = false ; |
d14a1e28 RD |
21504 | PyObject * obj0 = 0 ; |
21505 | PyObject * obj1 = 0 ; | |
21506 | char *kwnames[] = { | |
21507 | (char *) "self",(char *) "tz", NULL | |
21508 | }; | |
21509 | ||
21510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21513 | if (obj1) { |
21514 | { | |
21515 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 21516 | temp2 = true; |
d14a1e28 RD |
21517 | } |
21518 | } | |
21519 | { | |
21520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21521 | result = (wxDateTime::Month)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
21522 | |
21523 | wxPyEndAllowThreads(__tstate); | |
21524 | if (PyErr_Occurred()) SWIG_fail; | |
21525 | } | |
093d3ff1 | 21526 | resultobj = SWIG_From_int((result)); |
d14a1e28 | 21527 | { |
7722248d | 21528 | if (temp2) delete arg2; |
d14a1e28 RD |
21529 | } |
21530 | return resultobj; | |
21531 | fail: | |
21532 | { | |
7722248d | 21533 | if (temp2) delete arg2; |
d14a1e28 RD |
21534 | } |
21535 | return NULL; | |
21536 | } | |
21537 | ||
21538 | ||
c32bde28 | 21539 | static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21540 | PyObject *resultobj; |
21541 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21542 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21543 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 21544 | int result; |
ae8162c8 | 21545 | bool temp2 = false ; |
d14a1e28 RD |
21546 | PyObject * obj0 = 0 ; |
21547 | PyObject * obj1 = 0 ; | |
21548 | char *kwnames[] = { | |
21549 | (char *) "self",(char *) "tz", NULL | |
21550 | }; | |
21551 | ||
21552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21553 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21554 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21555 | if (obj1) { |
21556 | { | |
21557 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 21558 | temp2 = true; |
d14a1e28 RD |
21559 | } |
21560 | } | |
21561 | { | |
21562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 21563 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
21564 | |
21565 | wxPyEndAllowThreads(__tstate); | |
21566 | if (PyErr_Occurred()) SWIG_fail; | |
21567 | } | |
093d3ff1 RD |
21568 | { |
21569 | resultobj = SWIG_From_int((int)(result)); | |
21570 | } | |
d14a1e28 | 21571 | { |
7722248d | 21572 | if (temp2) delete arg2; |
d14a1e28 RD |
21573 | } |
21574 | return resultobj; | |
21575 | fail: | |
21576 | { | |
7722248d | 21577 | if (temp2) delete arg2; |
d14a1e28 RD |
21578 | } |
21579 | return NULL; | |
21580 | } | |
21581 | ||
21582 | ||
c32bde28 | 21583 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21584 | PyObject *resultobj; |
21585 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21586 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21587 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
093d3ff1 | 21588 | wxDateTime::WeekDay result; |
ae8162c8 | 21589 | bool temp2 = false ; |
d14a1e28 RD |
21590 | PyObject * obj0 = 0 ; |
21591 | PyObject * obj1 = 0 ; | |
21592 | char *kwnames[] = { | |
21593 | (char *) "self",(char *) "tz", NULL | |
21594 | }; | |
21595 | ||
21596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21597 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21598 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21599 | if (obj1) { |
21600 | { | |
21601 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 21602 | temp2 = true; |
d14a1e28 RD |
21603 | } |
21604 | } | |
21605 | { | |
21606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21607 | result = (wxDateTime::WeekDay)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
21608 | |
21609 | wxPyEndAllowThreads(__tstate); | |
21610 | if (PyErr_Occurred()) SWIG_fail; | |
21611 | } | |
093d3ff1 | 21612 | resultobj = SWIG_From_int((result)); |
d14a1e28 | 21613 | { |
7722248d | 21614 | if (temp2) delete arg2; |
d14a1e28 RD |
21615 | } |
21616 | return resultobj; | |
21617 | fail: | |
21618 | { | |
7722248d | 21619 | if (temp2) delete arg2; |
d14a1e28 RD |
21620 | } |
21621 | return NULL; | |
21622 | } | |
21623 | ||
21624 | ||
c32bde28 | 21625 | static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21626 | PyObject *resultobj; |
21627 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21628 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21629 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 21630 | int result; |
ae8162c8 | 21631 | bool temp2 = false ; |
d14a1e28 RD |
21632 | PyObject * obj0 = 0 ; |
21633 | PyObject * obj1 = 0 ; | |
21634 | char *kwnames[] = { | |
21635 | (char *) "self",(char *) "tz", NULL | |
21636 | }; | |
21637 | ||
21638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21641 | if (obj1) { |
21642 | { | |
21643 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 21644 | temp2 = true; |
d14a1e28 RD |
21645 | } |
21646 | } | |
21647 | { | |
21648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 21649 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
21650 | |
21651 | wxPyEndAllowThreads(__tstate); | |
21652 | if (PyErr_Occurred()) SWIG_fail; | |
21653 | } | |
093d3ff1 RD |
21654 | { |
21655 | resultobj = SWIG_From_int((int)(result)); | |
21656 | } | |
d14a1e28 | 21657 | { |
7722248d | 21658 | if (temp2) delete arg2; |
d14a1e28 RD |
21659 | } |
21660 | return resultobj; | |
21661 | fail: | |
21662 | { | |
7722248d | 21663 | if (temp2) delete arg2; |
d14a1e28 RD |
21664 | } |
21665 | return NULL; | |
21666 | } | |
21667 | ||
21668 | ||
c32bde28 | 21669 | static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21670 | PyObject *resultobj; |
21671 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21672 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21673 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 21674 | int result; |
ae8162c8 | 21675 | bool temp2 = false ; |
d14a1e28 RD |
21676 | PyObject * obj0 = 0 ; |
21677 | PyObject * obj1 = 0 ; | |
21678 | char *kwnames[] = { | |
21679 | (char *) "self",(char *) "tz", NULL | |
21680 | }; | |
21681 | ||
21682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21685 | if (obj1) { |
21686 | { | |
21687 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 21688 | temp2 = true; |
d14a1e28 RD |
21689 | } |
21690 | } | |
21691 | { | |
21692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 21693 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
21694 | |
21695 | wxPyEndAllowThreads(__tstate); | |
21696 | if (PyErr_Occurred()) SWIG_fail; | |
21697 | } | |
093d3ff1 RD |
21698 | { |
21699 | resultobj = SWIG_From_int((int)(result)); | |
21700 | } | |
d14a1e28 | 21701 | { |
7722248d | 21702 | if (temp2) delete arg2; |
d14a1e28 RD |
21703 | } |
21704 | return resultobj; | |
21705 | fail: | |
21706 | { | |
7722248d | 21707 | if (temp2) delete arg2; |
d14a1e28 RD |
21708 | } |
21709 | return NULL; | |
21710 | } | |
21711 | ||
21712 | ||
c32bde28 | 21713 | static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21714 | PyObject *resultobj; |
21715 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21716 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21717 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 21718 | int result; |
ae8162c8 | 21719 | bool temp2 = false ; |
d14a1e28 RD |
21720 | PyObject * obj0 = 0 ; |
21721 | PyObject * obj1 = 0 ; | |
21722 | char *kwnames[] = { | |
21723 | (char *) "self",(char *) "tz", NULL | |
21724 | }; | |
21725 | ||
21726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21729 | if (obj1) { |
21730 | { | |
21731 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 21732 | temp2 = true; |
d14a1e28 RD |
21733 | } |
21734 | } | |
21735 | { | |
21736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 21737 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
21738 | |
21739 | wxPyEndAllowThreads(__tstate); | |
21740 | if (PyErr_Occurred()) SWIG_fail; | |
21741 | } | |
093d3ff1 RD |
21742 | { |
21743 | resultobj = SWIG_From_int((int)(result)); | |
21744 | } | |
d14a1e28 | 21745 | { |
7722248d | 21746 | if (temp2) delete arg2; |
d14a1e28 RD |
21747 | } |
21748 | return resultobj; | |
21749 | fail: | |
21750 | { | |
7722248d | 21751 | if (temp2) delete arg2; |
d14a1e28 RD |
21752 | } |
21753 | return NULL; | |
21754 | } | |
21755 | ||
21756 | ||
c32bde28 | 21757 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21758 | PyObject *resultobj; |
21759 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21760 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21761 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 21762 | int result; |
ae8162c8 | 21763 | bool temp2 = false ; |
d14a1e28 RD |
21764 | PyObject * obj0 = 0 ; |
21765 | PyObject * obj1 = 0 ; | |
21766 | char *kwnames[] = { | |
21767 | (char *) "self",(char *) "tz", NULL | |
21768 | }; | |
21769 | ||
21770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21771 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21772 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21773 | if (obj1) { |
21774 | { | |
21775 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 21776 | temp2 = true; |
d14a1e28 RD |
21777 | } |
21778 | } | |
21779 | { | |
21780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 21781 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
21782 | |
21783 | wxPyEndAllowThreads(__tstate); | |
21784 | if (PyErr_Occurred()) SWIG_fail; | |
21785 | } | |
093d3ff1 RD |
21786 | { |
21787 | resultobj = SWIG_From_int((int)(result)); | |
21788 | } | |
d14a1e28 | 21789 | { |
7722248d | 21790 | if (temp2) delete arg2; |
d14a1e28 RD |
21791 | } |
21792 | return resultobj; | |
21793 | fail: | |
21794 | { | |
7722248d | 21795 | if (temp2) delete arg2; |
d14a1e28 RD |
21796 | } |
21797 | return NULL; | |
21798 | } | |
21799 | ||
21800 | ||
c32bde28 | 21801 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21802 | PyObject *resultobj; |
21803 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21804 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
21805 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 21806 | int result; |
ae8162c8 | 21807 | bool temp2 = false ; |
d14a1e28 RD |
21808 | PyObject * obj0 = 0 ; |
21809 | PyObject * obj1 = 0 ; | |
21810 | char *kwnames[] = { | |
21811 | (char *) "self",(char *) "tz", NULL | |
21812 | }; | |
21813 | ||
21814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21815 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21816 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21817 | if (obj1) { |
21818 | { | |
21819 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 21820 | temp2 = true; |
d14a1e28 RD |
21821 | } |
21822 | } | |
21823 | { | |
21824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 21825 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
21826 | |
21827 | wxPyEndAllowThreads(__tstate); | |
21828 | if (PyErr_Occurred()) SWIG_fail; | |
21829 | } | |
093d3ff1 RD |
21830 | { |
21831 | resultobj = SWIG_From_int((int)(result)); | |
21832 | } | |
d14a1e28 | 21833 | { |
7722248d | 21834 | if (temp2) delete arg2; |
d14a1e28 RD |
21835 | } |
21836 | return resultobj; | |
21837 | fail: | |
21838 | { | |
7722248d | 21839 | if (temp2) delete arg2; |
d14a1e28 RD |
21840 | } |
21841 | return NULL; | |
21842 | } | |
21843 | ||
21844 | ||
c32bde28 | 21845 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21846 | PyObject *resultobj; |
21847 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 21848 | wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; |
d14a1e28 RD |
21849 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; |
21850 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 21851 | int result; |
ae8162c8 | 21852 | bool temp3 = false ; |
d14a1e28 | 21853 | PyObject * obj0 = 0 ; |
994141e6 | 21854 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21855 | PyObject * obj2 = 0 ; |
21856 | char *kwnames[] = { | |
21857 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
21858 | }; | |
21859 | ||
994141e6 | 21860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 21863 | if (obj1) { |
093d3ff1 RD |
21864 | { |
21865 | arg2 = (wxDateTime::WeekFlags)(SWIG_As_int(obj1)); | |
21866 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21867 | } | |
994141e6 | 21868 | } |
d14a1e28 RD |
21869 | if (obj2) { |
21870 | { | |
21871 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 21872 | temp3 = true; |
d14a1e28 RD |
21873 | } |
21874 | } | |
21875 | { | |
21876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 21877 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
21878 | |
21879 | wxPyEndAllowThreads(__tstate); | |
21880 | if (PyErr_Occurred()) SWIG_fail; | |
21881 | } | |
093d3ff1 RD |
21882 | { |
21883 | resultobj = SWIG_From_int((int)(result)); | |
21884 | } | |
d14a1e28 | 21885 | { |
7722248d | 21886 | if (temp3) delete arg3; |
d14a1e28 RD |
21887 | } |
21888 | return resultobj; | |
21889 | fail: | |
21890 | { | |
7722248d | 21891 | if (temp3) delete arg3; |
d14a1e28 RD |
21892 | } |
21893 | return NULL; | |
21894 | } | |
21895 | ||
21896 | ||
c32bde28 | 21897 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21898 | PyObject *resultobj; |
21899 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 21900 | wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ; |
d14a1e28 RD |
21901 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; |
21902 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 21903 | int result; |
ae8162c8 | 21904 | bool temp3 = false ; |
d14a1e28 | 21905 | PyObject * obj0 = 0 ; |
994141e6 | 21906 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21907 | PyObject * obj2 = 0 ; |
21908 | char *kwnames[] = { | |
21909 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
21910 | }; | |
21911 | ||
994141e6 | 21912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 21915 | if (obj1) { |
093d3ff1 RD |
21916 | { |
21917 | arg2 = (wxDateTime::WeekFlags)(SWIG_As_int(obj1)); | |
21918 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21919 | } | |
994141e6 | 21920 | } |
d14a1e28 RD |
21921 | if (obj2) { |
21922 | { | |
21923 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 21924 | temp3 = true; |
d14a1e28 RD |
21925 | } |
21926 | } | |
21927 | { | |
21928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 21929 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
21930 | |
21931 | wxPyEndAllowThreads(__tstate); | |
21932 | if (PyErr_Occurred()) SWIG_fail; | |
21933 | } | |
093d3ff1 RD |
21934 | { |
21935 | resultobj = SWIG_From_int((int)(result)); | |
21936 | } | |
d14a1e28 | 21937 | { |
7722248d | 21938 | if (temp3) delete arg3; |
d14a1e28 RD |
21939 | } |
21940 | return resultobj; | |
21941 | fail: | |
21942 | { | |
7722248d | 21943 | if (temp3) delete arg3; |
d14a1e28 RD |
21944 | } |
21945 | return NULL; | |
21946 | } | |
21947 | ||
21948 | ||
c32bde28 | 21949 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21950 | PyObject *resultobj; |
21951 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
093d3ff1 | 21952 | wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ; |
d14a1e28 RD |
21953 | bool result; |
21954 | PyObject * obj0 = 0 ; | |
994141e6 | 21955 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21956 | char *kwnames[] = { |
21957 | (char *) "self",(char *) "country", NULL | |
21958 | }; | |
21959 | ||
994141e6 | 21960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 21963 | if (obj1) { |
093d3ff1 RD |
21964 | { |
21965 | arg2 = (wxDateTime::Country)(SWIG_As_int(obj1)); | |
21966 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21967 | } | |
994141e6 | 21968 | } |
d14a1e28 RD |
21969 | { |
21970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21971 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
21972 | ||
21973 | wxPyEndAllowThreads(__tstate); | |
21974 | if (PyErr_Occurred()) SWIG_fail; | |
21975 | } | |
4f89f6a3 RD |
21976 | { |
21977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21978 | } | |
d14a1e28 RD |
21979 | return resultobj; |
21980 | fail: | |
21981 | return NULL; | |
21982 | } | |
21983 | ||
21984 | ||
c32bde28 | 21985 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21986 | PyObject *resultobj; |
21987 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21988 | wxDateTime *arg2 = 0 ; | |
21989 | bool result; | |
21990 | PyObject * obj0 = 0 ; | |
21991 | PyObject * obj1 = 0 ; | |
21992 | char *kwnames[] = { | |
21993 | (char *) "self",(char *) "datetime", NULL | |
21994 | }; | |
21995 | ||
21996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21997 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
21998 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21999 | { | |
22000 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22001 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22002 | if (arg2 == NULL) { | |
22003 | SWIG_null_ref("wxDateTime"); | |
22004 | } | |
22005 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22006 | } |
22007 | { | |
22008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22009 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
22010 | ||
22011 | wxPyEndAllowThreads(__tstate); | |
22012 | if (PyErr_Occurred()) SWIG_fail; | |
22013 | } | |
4f89f6a3 RD |
22014 | { |
22015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22016 | } | |
d14a1e28 RD |
22017 | return resultobj; |
22018 | fail: | |
22019 | return NULL; | |
22020 | } | |
22021 | ||
22022 | ||
c32bde28 | 22023 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22024 | PyObject *resultobj; |
22025 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22026 | wxDateTime *arg2 = 0 ; | |
22027 | bool result; | |
22028 | PyObject * obj0 = 0 ; | |
22029 | PyObject * obj1 = 0 ; | |
22030 | char *kwnames[] = { | |
22031 | (char *) "self",(char *) "datetime", NULL | |
22032 | }; | |
22033 | ||
22034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22035 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22037 | { | |
22038 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22040 | if (arg2 == NULL) { | |
22041 | SWIG_null_ref("wxDateTime"); | |
22042 | } | |
22043 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22044 | } |
22045 | { | |
22046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22047 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
22048 | ||
22049 | wxPyEndAllowThreads(__tstate); | |
22050 | if (PyErr_Occurred()) SWIG_fail; | |
22051 | } | |
4f89f6a3 RD |
22052 | { |
22053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22054 | } | |
d14a1e28 RD |
22055 | return resultobj; |
22056 | fail: | |
22057 | return NULL; | |
22058 | } | |
22059 | ||
22060 | ||
c32bde28 | 22061 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22062 | PyObject *resultobj; |
22063 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22064 | wxDateTime *arg2 = 0 ; | |
22065 | bool result; | |
22066 | PyObject * obj0 = 0 ; | |
22067 | PyObject * obj1 = 0 ; | |
22068 | char *kwnames[] = { | |
22069 | (char *) "self",(char *) "datetime", NULL | |
22070 | }; | |
22071 | ||
22072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22073 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22074 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22075 | { | |
22076 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22077 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22078 | if (arg2 == NULL) { | |
22079 | SWIG_null_ref("wxDateTime"); | |
22080 | } | |
22081 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22082 | } |
22083 | { | |
22084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22085 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
22086 | ||
22087 | wxPyEndAllowThreads(__tstate); | |
22088 | if (PyErr_Occurred()) SWIG_fail; | |
22089 | } | |
4f89f6a3 RD |
22090 | { |
22091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22092 | } | |
d14a1e28 RD |
22093 | return resultobj; |
22094 | fail: | |
22095 | return NULL; | |
22096 | } | |
22097 | ||
22098 | ||
c32bde28 | 22099 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22100 | PyObject *resultobj; |
22101 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22102 | wxDateTime *arg2 = 0 ; | |
22103 | wxDateTime *arg3 = 0 ; | |
22104 | bool result; | |
22105 | PyObject * obj0 = 0 ; | |
22106 | PyObject * obj1 = 0 ; | |
22107 | PyObject * obj2 = 0 ; | |
22108 | char *kwnames[] = { | |
22109 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
22110 | }; | |
22111 | ||
22112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
22113 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22114 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22115 | { | |
22116 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22117 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22118 | if (arg2 == NULL) { | |
22119 | SWIG_null_ref("wxDateTime"); | |
22120 | } | |
22121 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 22122 | } |
093d3ff1 RD |
22123 | { |
22124 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22125 | if (SWIG_arg_fail(3)) SWIG_fail; | |
22126 | if (arg3 == NULL) { | |
22127 | SWIG_null_ref("wxDateTime"); | |
22128 | } | |
22129 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
22130 | } |
22131 | { | |
22132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22133 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
22134 | ||
22135 | wxPyEndAllowThreads(__tstate); | |
22136 | if (PyErr_Occurred()) SWIG_fail; | |
22137 | } | |
4f89f6a3 RD |
22138 | { |
22139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22140 | } | |
d14a1e28 RD |
22141 | return resultobj; |
22142 | fail: | |
22143 | return NULL; | |
22144 | } | |
22145 | ||
22146 | ||
c32bde28 | 22147 | static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22148 | PyObject *resultobj; |
22149 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22150 | wxDateTime *arg2 = 0 ; | |
22151 | wxDateTime *arg3 = 0 ; | |
22152 | bool result; | |
22153 | PyObject * obj0 = 0 ; | |
22154 | PyObject * obj1 = 0 ; | |
22155 | PyObject * obj2 = 0 ; | |
22156 | char *kwnames[] = { | |
22157 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
22158 | }; | |
22159 | ||
22160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
22161 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22162 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22163 | { | |
22164 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22165 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22166 | if (arg2 == NULL) { | |
22167 | SWIG_null_ref("wxDateTime"); | |
22168 | } | |
22169 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 22170 | } |
093d3ff1 RD |
22171 | { |
22172 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22173 | if (SWIG_arg_fail(3)) SWIG_fail; | |
22174 | if (arg3 == NULL) { | |
22175 | SWIG_null_ref("wxDateTime"); | |
22176 | } | |
22177 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
22178 | } |
22179 | { | |
22180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22181 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
22182 | ||
22183 | wxPyEndAllowThreads(__tstate); | |
22184 | if (PyErr_Occurred()) SWIG_fail; | |
22185 | } | |
4f89f6a3 RD |
22186 | { |
22187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22188 | } | |
d14a1e28 RD |
22189 | return resultobj; |
22190 | fail: | |
22191 | return NULL; | |
22192 | } | |
22193 | ||
22194 | ||
c32bde28 | 22195 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22196 | PyObject *resultobj; |
22197 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22198 | wxDateTime *arg2 = 0 ; | |
22199 | bool result; | |
22200 | PyObject * obj0 = 0 ; | |
22201 | PyObject * obj1 = 0 ; | |
22202 | char *kwnames[] = { | |
22203 | (char *) "self",(char *) "dt", NULL | |
22204 | }; | |
22205 | ||
22206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22209 | { | |
22210 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22211 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22212 | if (arg2 == NULL) { | |
22213 | SWIG_null_ref("wxDateTime"); | |
22214 | } | |
22215 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22216 | } |
22217 | { | |
22218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22219 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
22220 | ||
22221 | wxPyEndAllowThreads(__tstate); | |
22222 | if (PyErr_Occurred()) SWIG_fail; | |
22223 | } | |
4f89f6a3 RD |
22224 | { |
22225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22226 | } | |
d14a1e28 RD |
22227 | return resultobj; |
22228 | fail: | |
22229 | return NULL; | |
22230 | } | |
22231 | ||
22232 | ||
c32bde28 | 22233 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22234 | PyObject *resultobj; |
22235 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22236 | wxDateTime *arg2 = 0 ; | |
22237 | bool result; | |
22238 | PyObject * obj0 = 0 ; | |
22239 | PyObject * obj1 = 0 ; | |
22240 | char *kwnames[] = { | |
22241 | (char *) "self",(char *) "dt", NULL | |
22242 | }; | |
22243 | ||
22244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22247 | { | |
22248 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22249 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22250 | if (arg2 == NULL) { | |
22251 | SWIG_null_ref("wxDateTime"); | |
22252 | } | |
22253 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22254 | } |
22255 | { | |
22256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22257 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
22258 | ||
22259 | wxPyEndAllowThreads(__tstate); | |
22260 | if (PyErr_Occurred()) SWIG_fail; | |
22261 | } | |
4f89f6a3 RD |
22262 | { |
22263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22264 | } | |
d14a1e28 RD |
22265 | return resultobj; |
22266 | fail: | |
22267 | return NULL; | |
22268 | } | |
22269 | ||
22270 | ||
c32bde28 | 22271 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22272 | PyObject *resultobj; |
22273 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22274 | wxDateTime *arg2 = 0 ; | |
22275 | wxTimeSpan *arg3 = 0 ; | |
22276 | bool result; | |
22277 | PyObject * obj0 = 0 ; | |
22278 | PyObject * obj1 = 0 ; | |
22279 | PyObject * obj2 = 0 ; | |
22280 | char *kwnames[] = { | |
22281 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
22282 | }; | |
22283 | ||
22284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
22285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22287 | { | |
22288 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22289 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22290 | if (arg2 == NULL) { | |
22291 | SWIG_null_ref("wxDateTime"); | |
22292 | } | |
22293 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 22294 | } |
093d3ff1 RD |
22295 | { |
22296 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22297 | if (SWIG_arg_fail(3)) SWIG_fail; | |
22298 | if (arg3 == NULL) { | |
22299 | SWIG_null_ref("wxTimeSpan"); | |
22300 | } | |
22301 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
22302 | } |
22303 | { | |
22304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22305 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
22306 | ||
22307 | wxPyEndAllowThreads(__tstate); | |
22308 | if (PyErr_Occurred()) SWIG_fail; | |
22309 | } | |
4f89f6a3 RD |
22310 | { |
22311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22312 | } | |
d14a1e28 RD |
22313 | return resultobj; |
22314 | fail: | |
22315 | return NULL; | |
22316 | } | |
22317 | ||
22318 | ||
c32bde28 | 22319 | static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22320 | PyObject *resultobj; |
22321 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22322 | wxTimeSpan *arg2 = 0 ; | |
22323 | wxDateTime *result; | |
22324 | PyObject * obj0 = 0 ; | |
22325 | PyObject * obj1 = 0 ; | |
22326 | char *kwnames[] = { | |
22327 | (char *) "self",(char *) "diff", NULL | |
22328 | }; | |
22329 | ||
22330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22333 | { | |
22334 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22335 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22336 | if (arg2 == NULL) { | |
22337 | SWIG_null_ref("wxTimeSpan"); | |
22338 | } | |
22339 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22340 | } |
22341 | { | |
22342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22343 | { | |
22344 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
22345 | result = (wxDateTime *) &_result_ref; | |
22346 | } | |
22347 | ||
22348 | wxPyEndAllowThreads(__tstate); | |
22349 | if (PyErr_Occurred()) SWIG_fail; | |
22350 | } | |
15afbcd0 | 22351 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
22352 | return resultobj; |
22353 | fail: | |
22354 | return NULL; | |
22355 | } | |
22356 | ||
22357 | ||
c32bde28 | 22358 | static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22359 | PyObject *resultobj; |
22360 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22361 | wxDateSpan *arg2 = 0 ; | |
22362 | wxDateTime *result; | |
22363 | PyObject * obj0 = 0 ; | |
22364 | PyObject * obj1 = 0 ; | |
22365 | char *kwnames[] = { | |
22366 | (char *) "self",(char *) "diff", NULL | |
22367 | }; | |
22368 | ||
22369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22372 | { | |
22373 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
22374 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22375 | if (arg2 == NULL) { | |
22376 | SWIG_null_ref("wxDateSpan"); | |
22377 | } | |
22378 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22379 | } |
22380 | { | |
22381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22382 | { | |
22383 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
22384 | result = (wxDateTime *) &_result_ref; | |
22385 | } | |
22386 | ||
22387 | wxPyEndAllowThreads(__tstate); | |
22388 | if (PyErr_Occurred()) SWIG_fail; | |
22389 | } | |
15afbcd0 | 22390 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
22391 | return resultobj; |
22392 | fail: | |
22393 | return NULL; | |
22394 | } | |
22395 | ||
22396 | ||
c32bde28 | 22397 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22398 | PyObject *resultobj; |
22399 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22400 | wxTimeSpan *arg2 = 0 ; | |
22401 | wxDateTime *result; | |
22402 | PyObject * obj0 = 0 ; | |
22403 | PyObject * obj1 = 0 ; | |
22404 | char *kwnames[] = { | |
22405 | (char *) "self",(char *) "diff", NULL | |
22406 | }; | |
22407 | ||
22408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22411 | { | |
22412 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22413 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22414 | if (arg2 == NULL) { | |
22415 | SWIG_null_ref("wxTimeSpan"); | |
22416 | } | |
22417 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22418 | } |
22419 | { | |
22420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22421 | { | |
22422 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
22423 | result = (wxDateTime *) &_result_ref; | |
22424 | } | |
22425 | ||
22426 | wxPyEndAllowThreads(__tstate); | |
22427 | if (PyErr_Occurred()) SWIG_fail; | |
22428 | } | |
15afbcd0 | 22429 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
22430 | return resultobj; |
22431 | fail: | |
22432 | return NULL; | |
22433 | } | |
22434 | ||
22435 | ||
c32bde28 | 22436 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22437 | PyObject *resultobj; |
22438 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22439 | wxDateSpan *arg2 = 0 ; | |
22440 | wxDateTime *result; | |
22441 | PyObject * obj0 = 0 ; | |
22442 | PyObject * obj1 = 0 ; | |
22443 | char *kwnames[] = { | |
22444 | (char *) "self",(char *) "diff", NULL | |
22445 | }; | |
22446 | ||
22447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22448 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22449 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22450 | { | |
22451 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
22452 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22453 | if (arg2 == NULL) { | |
22454 | SWIG_null_ref("wxDateSpan"); | |
22455 | } | |
22456 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22457 | } |
22458 | { | |
22459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22460 | { | |
22461 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
22462 | result = (wxDateTime *) &_result_ref; | |
22463 | } | |
22464 | ||
22465 | wxPyEndAllowThreads(__tstate); | |
22466 | if (PyErr_Occurred()) SWIG_fail; | |
22467 | } | |
15afbcd0 | 22468 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
22469 | return resultobj; |
22470 | fail: | |
22471 | return NULL; | |
22472 | } | |
22473 | ||
22474 | ||
c32bde28 | 22475 | static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22476 | PyObject *resultobj; |
22477 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22478 | wxDateTime *arg2 = 0 ; | |
22479 | wxTimeSpan result; | |
22480 | PyObject * obj0 = 0 ; | |
22481 | PyObject * obj1 = 0 ; | |
22482 | char *kwnames[] = { | |
22483 | (char *) "self",(char *) "dt", NULL | |
22484 | }; | |
22485 | ||
22486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22487 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22488 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22489 | { | |
22490 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22491 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22492 | if (arg2 == NULL) { | |
22493 | SWIG_null_ref("wxDateTime"); | |
22494 | } | |
22495 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22496 | } |
22497 | { | |
22498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22499 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
22500 | ||
22501 | wxPyEndAllowThreads(__tstate); | |
22502 | if (PyErr_Occurred()) SWIG_fail; | |
22503 | } | |
22504 | { | |
22505 | wxTimeSpan * resultptr; | |
093d3ff1 | 22506 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 22507 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22508 | } |
22509 | return resultobj; | |
22510 | fail: | |
22511 | return NULL; | |
22512 | } | |
22513 | ||
22514 | ||
c32bde28 | 22515 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
22516 | PyObject *resultobj; |
22517 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22518 | wxTimeSpan *arg2 = 0 ; | |
22519 | wxDateTime *result; | |
22520 | PyObject * obj0 = 0 ; | |
22521 | PyObject * obj1 = 0 ; | |
22522 | ||
22523 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
22525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22526 | { | |
22527 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22528 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22529 | if (arg2 == NULL) { | |
22530 | SWIG_null_ref("wxTimeSpan"); | |
22531 | } | |
22532 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22533 | } |
22534 | { | |
22535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22536 | { | |
22537 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
22538 | result = (wxDateTime *) &_result_ref; | |
22539 | } | |
22540 | ||
22541 | wxPyEndAllowThreads(__tstate); | |
22542 | if (PyErr_Occurred()) SWIG_fail; | |
22543 | } | |
c32bde28 | 22544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
22545 | return resultobj; |
22546 | fail: | |
22547 | return NULL; | |
22548 | } | |
22549 | ||
22550 | ||
c32bde28 | 22551 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
22552 | PyObject *resultobj; |
22553 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22554 | wxDateSpan *arg2 = 0 ; | |
22555 | wxDateTime *result; | |
22556 | PyObject * obj0 = 0 ; | |
22557 | PyObject * obj1 = 0 ; | |
22558 | ||
22559 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
22561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22562 | { | |
22563 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
22564 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22565 | if (arg2 == NULL) { | |
22566 | SWIG_null_ref("wxDateSpan"); | |
22567 | } | |
22568 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22569 | } |
22570 | { | |
22571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22572 | { | |
22573 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
22574 | result = (wxDateTime *) &_result_ref; | |
22575 | } | |
22576 | ||
22577 | wxPyEndAllowThreads(__tstate); | |
22578 | if (PyErr_Occurred()) SWIG_fail; | |
22579 | } | |
c32bde28 | 22580 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
22581 | return resultobj; |
22582 | fail: | |
22583 | return NULL; | |
22584 | } | |
22585 | ||
22586 | ||
22587 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
22588 | int argc; | |
22589 | PyObject *argv[3]; | |
22590 | int ii; | |
22591 | ||
22592 | argc = PyObject_Length(args); | |
22593 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
22594 | argv[ii] = PyTuple_GetItem(args,ii); | |
22595 | } | |
22596 | if (argc == 2) { | |
22597 | int _v; | |
22598 | { | |
22599 | void *ptr; | |
15afbcd0 | 22600 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
22601 | _v = 0; |
22602 | PyErr_Clear(); | |
22603 | } else { | |
22604 | _v = 1; | |
22605 | } | |
22606 | } | |
22607 | if (_v) { | |
22608 | { | |
093d3ff1 | 22609 | void *ptr = 0; |
15afbcd0 | 22610 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
22611 | _v = 0; |
22612 | PyErr_Clear(); | |
22613 | } else { | |
093d3ff1 | 22614 | _v = (ptr != 0); |
d14a1e28 RD |
22615 | } |
22616 | } | |
22617 | if (_v) { | |
22618 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
22619 | } | |
22620 | } | |
22621 | } | |
22622 | if (argc == 2) { | |
22623 | int _v; | |
22624 | { | |
22625 | void *ptr; | |
15afbcd0 | 22626 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
22627 | _v = 0; |
22628 | PyErr_Clear(); | |
22629 | } else { | |
22630 | _v = 1; | |
22631 | } | |
22632 | } | |
22633 | if (_v) { | |
22634 | { | |
093d3ff1 | 22635 | void *ptr = 0; |
15afbcd0 | 22636 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
22637 | _v = 0; |
22638 | PyErr_Clear(); | |
22639 | } else { | |
093d3ff1 | 22640 | _v = (ptr != 0); |
d14a1e28 RD |
22641 | } |
22642 | } | |
22643 | if (_v) { | |
22644 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
22645 | } | |
22646 | } | |
22647 | } | |
22648 | ||
093d3ff1 | 22649 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___iadd__'"); |
d14a1e28 RD |
22650 | return NULL; |
22651 | } | |
22652 | ||
22653 | ||
c32bde28 | 22654 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
22655 | PyObject *resultobj; |
22656 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22657 | wxTimeSpan *arg2 = 0 ; | |
22658 | wxDateTime *result; | |
22659 | PyObject * obj0 = 0 ; | |
22660 | PyObject * obj1 = 0 ; | |
22661 | ||
22662 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
22664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22665 | { | |
22666 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22667 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22668 | if (arg2 == NULL) { | |
22669 | SWIG_null_ref("wxTimeSpan"); | |
22670 | } | |
22671 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22672 | } |
22673 | { | |
22674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22675 | { | |
22676 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
22677 | result = (wxDateTime *) &_result_ref; | |
22678 | } | |
22679 | ||
22680 | wxPyEndAllowThreads(__tstate); | |
22681 | if (PyErr_Occurred()) SWIG_fail; | |
22682 | } | |
c32bde28 | 22683 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
22684 | return resultobj; |
22685 | fail: | |
22686 | return NULL; | |
22687 | } | |
22688 | ||
22689 | ||
c32bde28 | 22690 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
22691 | PyObject *resultobj; |
22692 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22693 | wxDateSpan *arg2 = 0 ; | |
22694 | wxDateTime *result; | |
22695 | PyObject * obj0 = 0 ; | |
22696 | PyObject * obj1 = 0 ; | |
22697 | ||
22698 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22699 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
22700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22701 | { | |
22702 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
22703 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22704 | if (arg2 == NULL) { | |
22705 | SWIG_null_ref("wxDateSpan"); | |
22706 | } | |
22707 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22708 | } |
22709 | { | |
22710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22711 | { | |
22712 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
22713 | result = (wxDateTime *) &_result_ref; | |
22714 | } | |
22715 | ||
22716 | wxPyEndAllowThreads(__tstate); | |
22717 | if (PyErr_Occurred()) SWIG_fail; | |
22718 | } | |
c32bde28 | 22719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
22720 | return resultobj; |
22721 | fail: | |
22722 | return NULL; | |
22723 | } | |
22724 | ||
22725 | ||
22726 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
22727 | int argc; | |
22728 | PyObject *argv[3]; | |
22729 | int ii; | |
22730 | ||
22731 | argc = PyObject_Length(args); | |
22732 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
22733 | argv[ii] = PyTuple_GetItem(args,ii); | |
22734 | } | |
22735 | if (argc == 2) { | |
22736 | int _v; | |
22737 | { | |
22738 | void *ptr; | |
15afbcd0 | 22739 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
22740 | _v = 0; |
22741 | PyErr_Clear(); | |
22742 | } else { | |
22743 | _v = 1; | |
22744 | } | |
22745 | } | |
22746 | if (_v) { | |
22747 | { | |
093d3ff1 | 22748 | void *ptr = 0; |
15afbcd0 | 22749 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
22750 | _v = 0; |
22751 | PyErr_Clear(); | |
22752 | } else { | |
093d3ff1 | 22753 | _v = (ptr != 0); |
d14a1e28 RD |
22754 | } |
22755 | } | |
22756 | if (_v) { | |
22757 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
22758 | } | |
22759 | } | |
22760 | } | |
22761 | if (argc == 2) { | |
22762 | int _v; | |
22763 | { | |
22764 | void *ptr; | |
15afbcd0 | 22765 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
22766 | _v = 0; |
22767 | PyErr_Clear(); | |
22768 | } else { | |
22769 | _v = 1; | |
22770 | } | |
22771 | } | |
22772 | if (_v) { | |
22773 | { | |
093d3ff1 | 22774 | void *ptr = 0; |
15afbcd0 | 22775 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
22776 | _v = 0; |
22777 | PyErr_Clear(); | |
22778 | } else { | |
093d3ff1 | 22779 | _v = (ptr != 0); |
d14a1e28 RD |
22780 | } |
22781 | } | |
22782 | if (_v) { | |
22783 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
22784 | } | |
22785 | } | |
22786 | } | |
22787 | ||
093d3ff1 | 22788 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___isub__'"); |
d14a1e28 RD |
22789 | return NULL; |
22790 | } | |
22791 | ||
22792 | ||
c32bde28 | 22793 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
22794 | PyObject *resultobj; |
22795 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22796 | wxTimeSpan *arg2 = 0 ; | |
22797 | wxDateTime result; | |
22798 | PyObject * obj0 = 0 ; | |
22799 | PyObject * obj1 = 0 ; | |
22800 | ||
22801 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22802 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22803 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22804 | { | |
22805 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22806 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22807 | if (arg2 == NULL) { | |
22808 | SWIG_null_ref("wxTimeSpan"); | |
22809 | } | |
22810 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22811 | } |
22812 | { | |
22813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22814 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
22815 | ||
22816 | wxPyEndAllowThreads(__tstate); | |
22817 | if (PyErr_Occurred()) SWIG_fail; | |
22818 | } | |
22819 | { | |
22820 | wxDateTime * resultptr; | |
093d3ff1 | 22821 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 22822 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
22823 | } |
22824 | return resultobj; | |
22825 | fail: | |
22826 | return NULL; | |
22827 | } | |
22828 | ||
22829 | ||
c32bde28 | 22830 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
22831 | PyObject *resultobj; |
22832 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22833 | wxDateSpan *arg2 = 0 ; | |
22834 | wxDateTime result; | |
22835 | PyObject * obj0 = 0 ; | |
22836 | PyObject * obj1 = 0 ; | |
22837 | ||
22838 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22841 | { | |
22842 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
22843 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22844 | if (arg2 == NULL) { | |
22845 | SWIG_null_ref("wxDateSpan"); | |
22846 | } | |
22847 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22848 | } |
22849 | { | |
22850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22851 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
22852 | ||
22853 | wxPyEndAllowThreads(__tstate); | |
22854 | if (PyErr_Occurred()) SWIG_fail; | |
22855 | } | |
22856 | { | |
22857 | wxDateTime * resultptr; | |
093d3ff1 | 22858 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 22859 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
22860 | } |
22861 | return resultobj; | |
22862 | fail: | |
22863 | return NULL; | |
22864 | } | |
22865 | ||
22866 | ||
22867 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
22868 | int argc; | |
22869 | PyObject *argv[3]; | |
22870 | int ii; | |
22871 | ||
22872 | argc = PyObject_Length(args); | |
22873 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
22874 | argv[ii] = PyTuple_GetItem(args,ii); | |
22875 | } | |
22876 | if (argc == 2) { | |
22877 | int _v; | |
22878 | { | |
22879 | void *ptr; | |
15afbcd0 | 22880 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
22881 | _v = 0; |
22882 | PyErr_Clear(); | |
22883 | } else { | |
22884 | _v = 1; | |
22885 | } | |
22886 | } | |
22887 | if (_v) { | |
22888 | { | |
093d3ff1 | 22889 | void *ptr = 0; |
15afbcd0 | 22890 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
22891 | _v = 0; |
22892 | PyErr_Clear(); | |
22893 | } else { | |
093d3ff1 | 22894 | _v = (ptr != 0); |
d14a1e28 RD |
22895 | } |
22896 | } | |
22897 | if (_v) { | |
22898 | return _wrap_DateTime___add____SWIG_0(self,args); | |
22899 | } | |
22900 | } | |
22901 | } | |
22902 | if (argc == 2) { | |
22903 | int _v; | |
22904 | { | |
22905 | void *ptr; | |
15afbcd0 | 22906 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
22907 | _v = 0; |
22908 | PyErr_Clear(); | |
22909 | } else { | |
22910 | _v = 1; | |
22911 | } | |
22912 | } | |
22913 | if (_v) { | |
22914 | { | |
093d3ff1 | 22915 | void *ptr = 0; |
15afbcd0 | 22916 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
22917 | _v = 0; |
22918 | PyErr_Clear(); | |
22919 | } else { | |
093d3ff1 | 22920 | _v = (ptr != 0); |
d14a1e28 RD |
22921 | } |
22922 | } | |
22923 | if (_v) { | |
22924 | return _wrap_DateTime___add____SWIG_1(self,args); | |
22925 | } | |
22926 | } | |
22927 | } | |
22928 | ||
093d3ff1 RD |
22929 | Py_INCREF(Py_NotImplemented); |
22930 | return Py_NotImplemented; | |
d14a1e28 RD |
22931 | } |
22932 | ||
22933 | ||
c32bde28 | 22934 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
22935 | PyObject *resultobj; |
22936 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22937 | wxDateTime *arg2 = 0 ; | |
22938 | wxTimeSpan result; | |
22939 | PyObject * obj0 = 0 ; | |
22940 | PyObject * obj1 = 0 ; | |
22941 | ||
22942 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22943 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22944 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22945 | { | |
22946 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22947 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22948 | if (arg2 == NULL) { | |
22949 | SWIG_null_ref("wxDateTime"); | |
22950 | } | |
22951 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22952 | } |
22953 | { | |
22954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22955 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
22956 | ||
22957 | wxPyEndAllowThreads(__tstate); | |
22958 | if (PyErr_Occurred()) SWIG_fail; | |
22959 | } | |
22960 | { | |
22961 | wxTimeSpan * resultptr; | |
093d3ff1 | 22962 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 22963 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22964 | } |
22965 | return resultobj; | |
22966 | fail: | |
22967 | return NULL; | |
22968 | } | |
22969 | ||
22970 | ||
c32bde28 | 22971 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
22972 | PyObject *resultobj; |
22973 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22974 | wxTimeSpan *arg2 = 0 ; | |
22975 | wxDateTime result; | |
22976 | PyObject * obj0 = 0 ; | |
22977 | PyObject * obj1 = 0 ; | |
22978 | ||
22979 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22980 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
22981 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22982 | { | |
22983 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
22984 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22985 | if (arg2 == NULL) { | |
22986 | SWIG_null_ref("wxTimeSpan"); | |
22987 | } | |
22988 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22989 | } |
22990 | { | |
22991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22992 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
22993 | ||
22994 | wxPyEndAllowThreads(__tstate); | |
22995 | if (PyErr_Occurred()) SWIG_fail; | |
22996 | } | |
22997 | { | |
22998 | wxDateTime * resultptr; | |
093d3ff1 | 22999 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 23000 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
23001 | } |
23002 | return resultobj; | |
23003 | fail: | |
23004 | return NULL; | |
23005 | } | |
23006 | ||
23007 | ||
c32bde28 | 23008 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
23009 | PyObject *resultobj; |
23010 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23011 | wxDateSpan *arg2 = 0 ; | |
23012 | wxDateTime result; | |
23013 | PyObject * obj0 = 0 ; | |
23014 | PyObject * obj1 = 0 ; | |
23015 | ||
23016 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 23019 | { |
093d3ff1 RD |
23020 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
23021 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23022 | if (arg2 == NULL) { | |
23023 | SWIG_null_ref("wxDateSpan"); | |
23024 | } | |
23025 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23026 | } | |
23027 | { | |
23028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 RD |
23029 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); |
23030 | ||
23031 | wxPyEndAllowThreads(__tstate); | |
23032 | if (PyErr_Occurred()) SWIG_fail; | |
23033 | } | |
23034 | { | |
23035 | wxDateTime * resultptr; | |
093d3ff1 | 23036 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 23037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
23038 | } |
23039 | return resultobj; | |
23040 | fail: | |
23041 | return NULL; | |
23042 | } | |
23043 | ||
23044 | ||
23045 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
23046 | int argc; | |
23047 | PyObject *argv[3]; | |
23048 | int ii; | |
23049 | ||
23050 | argc = PyObject_Length(args); | |
23051 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23052 | argv[ii] = PyTuple_GetItem(args,ii); | |
23053 | } | |
23054 | if (argc == 2) { | |
23055 | int _v; | |
23056 | { | |
23057 | void *ptr; | |
15afbcd0 | 23058 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
23059 | _v = 0; |
23060 | PyErr_Clear(); | |
23061 | } else { | |
23062 | _v = 1; | |
23063 | } | |
23064 | } | |
23065 | if (_v) { | |
23066 | { | |
093d3ff1 | 23067 | void *ptr = 0; |
15afbcd0 | 23068 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
23069 | _v = 0; |
23070 | PyErr_Clear(); | |
23071 | } else { | |
093d3ff1 | 23072 | _v = (ptr != 0); |
d14a1e28 RD |
23073 | } |
23074 | } | |
23075 | if (_v) { | |
23076 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
23077 | } | |
23078 | } | |
23079 | } | |
23080 | if (argc == 2) { | |
23081 | int _v; | |
23082 | { | |
23083 | void *ptr; | |
15afbcd0 | 23084 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
23085 | _v = 0; |
23086 | PyErr_Clear(); | |
23087 | } else { | |
23088 | _v = 1; | |
23089 | } | |
23090 | } | |
23091 | if (_v) { | |
23092 | { | |
093d3ff1 | 23093 | void *ptr = 0; |
15afbcd0 | 23094 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
23095 | _v = 0; |
23096 | PyErr_Clear(); | |
23097 | } else { | |
093d3ff1 | 23098 | _v = (ptr != 0); |
d14a1e28 RD |
23099 | } |
23100 | } | |
23101 | if (_v) { | |
23102 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
23103 | } | |
23104 | } | |
23105 | } | |
23106 | if (argc == 2) { | |
23107 | int _v; | |
23108 | { | |
23109 | void *ptr; | |
15afbcd0 | 23110 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
23111 | _v = 0; |
23112 | PyErr_Clear(); | |
23113 | } else { | |
23114 | _v = 1; | |
23115 | } | |
23116 | } | |
23117 | if (_v) { | |
23118 | { | |
093d3ff1 | 23119 | void *ptr = 0; |
15afbcd0 | 23120 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
23121 | _v = 0; |
23122 | PyErr_Clear(); | |
23123 | } else { | |
093d3ff1 | 23124 | _v = (ptr != 0); |
d14a1e28 RD |
23125 | } |
23126 | } | |
23127 | if (_v) { | |
23128 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
23129 | } | |
23130 | } | |
23131 | } | |
23132 | ||
093d3ff1 RD |
23133 | Py_INCREF(Py_NotImplemented); |
23134 | return Py_NotImplemented; | |
d14a1e28 RD |
23135 | } |
23136 | ||
23137 | ||
fef4c27a | 23138 | static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23139 | PyObject *resultobj; |
23140 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 23141 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
23142 | bool result; |
23143 | PyObject * obj0 = 0 ; | |
23144 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23145 | char *kwnames[] = { |
23146 | (char *) "self",(char *) "other", NULL | |
23147 | }; | |
d14a1e28 | 23148 | |
fef4c27a | 23149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___lt__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23150 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23151 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23152 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23153 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23154 | { |
23155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23156 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
23157 | |
23158 | wxPyEndAllowThreads(__tstate); | |
23159 | if (PyErr_Occurred()) SWIG_fail; | |
23160 | } | |
4f89f6a3 RD |
23161 | { |
23162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23163 | } | |
d14a1e28 RD |
23164 | return resultobj; |
23165 | fail: | |
23166 | return NULL; | |
23167 | } | |
23168 | ||
23169 | ||
fef4c27a | 23170 | static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23171 | PyObject *resultobj; |
23172 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 23173 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
23174 | bool result; |
23175 | PyObject * obj0 = 0 ; | |
23176 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23177 | char *kwnames[] = { |
23178 | (char *) "self",(char *) "other", NULL | |
23179 | }; | |
d14a1e28 | 23180 | |
fef4c27a | 23181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___le__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23184 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23185 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23186 | { |
23187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23188 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
23189 | |
23190 | wxPyEndAllowThreads(__tstate); | |
23191 | if (PyErr_Occurred()) SWIG_fail; | |
23192 | } | |
4f89f6a3 RD |
23193 | { |
23194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23195 | } | |
d14a1e28 RD |
23196 | return resultobj; |
23197 | fail: | |
23198 | return NULL; | |
23199 | } | |
23200 | ||
23201 | ||
fef4c27a | 23202 | static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23203 | PyObject *resultobj; |
23204 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 23205 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
23206 | bool result; |
23207 | PyObject * obj0 = 0 ; | |
23208 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23209 | char *kwnames[] = { |
23210 | (char *) "self",(char *) "other", NULL | |
23211 | }; | |
d14a1e28 | 23212 | |
fef4c27a | 23213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___gt__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23214 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23215 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23216 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23217 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23218 | { |
23219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23220 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
23221 | |
23222 | wxPyEndAllowThreads(__tstate); | |
23223 | if (PyErr_Occurred()) SWIG_fail; | |
23224 | } | |
4f89f6a3 RD |
23225 | { |
23226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23227 | } | |
d14a1e28 RD |
23228 | return resultobj; |
23229 | fail: | |
23230 | return NULL; | |
23231 | } | |
23232 | ||
23233 | ||
fef4c27a | 23234 | static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23235 | PyObject *resultobj; |
23236 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 23237 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
23238 | bool result; |
23239 | PyObject * obj0 = 0 ; | |
23240 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23241 | char *kwnames[] = { |
23242 | (char *) "self",(char *) "other", NULL | |
23243 | }; | |
d14a1e28 | 23244 | |
fef4c27a | 23245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ge__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23248 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23249 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23250 | { |
23251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23252 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
23253 | |
23254 | wxPyEndAllowThreads(__tstate); | |
23255 | if (PyErr_Occurred()) SWIG_fail; | |
23256 | } | |
4f89f6a3 RD |
23257 | { |
23258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23259 | } | |
d14a1e28 RD |
23260 | return resultobj; |
23261 | fail: | |
23262 | return NULL; | |
23263 | } | |
23264 | ||
23265 | ||
fef4c27a | 23266 | static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23267 | PyObject *resultobj; |
23268 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 23269 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
23270 | bool result; |
23271 | PyObject * obj0 = 0 ; | |
23272 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23273 | char *kwnames[] = { |
23274 | (char *) "self",(char *) "other", NULL | |
23275 | }; | |
d14a1e28 | 23276 | |
fef4c27a | 23277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___eq__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23280 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23281 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23282 | { |
23283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23284 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
23285 | |
23286 | wxPyEndAllowThreads(__tstate); | |
23287 | if (PyErr_Occurred()) SWIG_fail; | |
23288 | } | |
4f89f6a3 RD |
23289 | { |
23290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23291 | } | |
d14a1e28 RD |
23292 | return resultobj; |
23293 | fail: | |
23294 | return NULL; | |
23295 | } | |
23296 | ||
23297 | ||
fef4c27a | 23298 | static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23299 | PyObject *resultobj; |
23300 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 23301 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
23302 | bool result; |
23303 | PyObject * obj0 = 0 ; | |
23304 | PyObject * obj1 = 0 ; | |
fef4c27a RD |
23305 | char *kwnames[] = { |
23306 | (char *) "self",(char *) "other", NULL | |
23307 | }; | |
d14a1e28 | 23308 | |
fef4c27a | 23309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ne__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23310 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23311 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23312 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23313 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23314 | { |
23315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23316 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
23317 | |
23318 | wxPyEndAllowThreads(__tstate); | |
23319 | if (PyErr_Occurred()) SWIG_fail; | |
23320 | } | |
4f89f6a3 RD |
23321 | { |
23322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23323 | } | |
d14a1e28 RD |
23324 | return resultobj; |
23325 | fail: | |
23326 | return NULL; | |
23327 | } | |
23328 | ||
23329 | ||
c32bde28 | 23330 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23331 | PyObject *resultobj; |
23332 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23333 | wxString *arg2 = 0 ; | |
23334 | int result; | |
ae8162c8 | 23335 | bool temp2 = false ; |
d14a1e28 RD |
23336 | PyObject * obj0 = 0 ; |
23337 | PyObject * obj1 = 0 ; | |
23338 | char *kwnames[] = { | |
23339 | (char *) "self",(char *) "date", NULL | |
23340 | }; | |
23341 | ||
23342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23345 | { |
23346 | arg2 = wxString_in_helper(obj1); | |
23347 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 23348 | temp2 = true; |
d14a1e28 RD |
23349 | } |
23350 | { | |
23351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23352 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
23353 | ||
23354 | wxPyEndAllowThreads(__tstate); | |
23355 | if (PyErr_Occurred()) SWIG_fail; | |
23356 | } | |
093d3ff1 RD |
23357 | { |
23358 | resultobj = SWIG_From_int((int)(result)); | |
23359 | } | |
d14a1e28 RD |
23360 | { |
23361 | if (temp2) | |
23362 | delete arg2; | |
23363 | } | |
23364 | return resultobj; | |
23365 | fail: | |
23366 | { | |
23367 | if (temp2) | |
23368 | delete arg2; | |
23369 | } | |
23370 | return NULL; | |
23371 | } | |
23372 | ||
23373 | ||
c32bde28 | 23374 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23375 | PyObject *resultobj; |
23376 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23377 | wxString *arg2 = 0 ; | |
7557b9b5 | 23378 | wxString const &arg3_defvalue = wxPyDefaultDateTimeFormat ; |
d14a1e28 RD |
23379 | wxString *arg3 = (wxString *) &arg3_defvalue ; |
23380 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
23381 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
23382 | int result; | |
ae8162c8 RD |
23383 | bool temp2 = false ; |
23384 | bool temp3 = false ; | |
d14a1e28 RD |
23385 | PyObject * obj0 = 0 ; |
23386 | PyObject * obj1 = 0 ; | |
23387 | PyObject * obj2 = 0 ; | |
23388 | PyObject * obj3 = 0 ; | |
23389 | char *kwnames[] = { | |
23390 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
23391 | }; | |
23392 | ||
23393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
23394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23396 | { |
23397 | arg2 = wxString_in_helper(obj1); | |
23398 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 23399 | temp2 = true; |
d14a1e28 RD |
23400 | } |
23401 | if (obj2) { | |
23402 | { | |
23403 | arg3 = wxString_in_helper(obj2); | |
23404 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 23405 | temp3 = true; |
d14a1e28 RD |
23406 | } |
23407 | } | |
23408 | if (obj3) { | |
093d3ff1 RD |
23409 | { |
23410 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
23411 | if (SWIG_arg_fail(4)) SWIG_fail; | |
23412 | if (arg4 == NULL) { | |
23413 | SWIG_null_ref("wxDateTime"); | |
23414 | } | |
23415 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
23416 | } |
23417 | } | |
23418 | { | |
23419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23420 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
23421 | ||
23422 | wxPyEndAllowThreads(__tstate); | |
23423 | if (PyErr_Occurred()) SWIG_fail; | |
23424 | } | |
093d3ff1 RD |
23425 | { |
23426 | resultobj = SWIG_From_int((int)(result)); | |
23427 | } | |
d14a1e28 RD |
23428 | { |
23429 | if (temp2) | |
23430 | delete arg2; | |
23431 | } | |
23432 | { | |
23433 | if (temp3) | |
23434 | delete arg3; | |
23435 | } | |
23436 | return resultobj; | |
23437 | fail: | |
23438 | { | |
23439 | if (temp2) | |
23440 | delete arg2; | |
23441 | } | |
23442 | { | |
23443 | if (temp3) | |
23444 | delete arg3; | |
23445 | } | |
23446 | return NULL; | |
23447 | } | |
23448 | ||
23449 | ||
c32bde28 | 23450 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23451 | PyObject *resultobj; |
23452 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23453 | wxString *arg2 = 0 ; | |
23454 | int result; | |
ae8162c8 | 23455 | bool temp2 = false ; |
d14a1e28 RD |
23456 | PyObject * obj0 = 0 ; |
23457 | PyObject * obj1 = 0 ; | |
23458 | char *kwnames[] = { | |
23459 | (char *) "self",(char *) "datetime", NULL | |
23460 | }; | |
23461 | ||
23462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23463 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23464 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23465 | { |
23466 | arg2 = wxString_in_helper(obj1); | |
23467 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 23468 | temp2 = true; |
d14a1e28 RD |
23469 | } |
23470 | { | |
23471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23472 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
23473 | ||
23474 | wxPyEndAllowThreads(__tstate); | |
23475 | if (PyErr_Occurred()) SWIG_fail; | |
23476 | } | |
093d3ff1 RD |
23477 | { |
23478 | resultobj = SWIG_From_int((int)(result)); | |
23479 | } | |
d14a1e28 RD |
23480 | { |
23481 | if (temp2) | |
23482 | delete arg2; | |
23483 | } | |
23484 | return resultobj; | |
23485 | fail: | |
23486 | { | |
23487 | if (temp2) | |
23488 | delete arg2; | |
23489 | } | |
23490 | return NULL; | |
23491 | } | |
23492 | ||
23493 | ||
c32bde28 | 23494 | static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23495 | PyObject *resultobj; |
23496 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23497 | wxString *arg2 = 0 ; | |
23498 | int result; | |
ae8162c8 | 23499 | bool temp2 = false ; |
d14a1e28 RD |
23500 | PyObject * obj0 = 0 ; |
23501 | PyObject * obj1 = 0 ; | |
23502 | char *kwnames[] = { | |
23503 | (char *) "self",(char *) "date", NULL | |
23504 | }; | |
23505 | ||
23506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23507 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23508 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23509 | { |
23510 | arg2 = wxString_in_helper(obj1); | |
23511 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 23512 | temp2 = true; |
d14a1e28 RD |
23513 | } |
23514 | { | |
23515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23516 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
23517 | ||
23518 | wxPyEndAllowThreads(__tstate); | |
23519 | if (PyErr_Occurred()) SWIG_fail; | |
23520 | } | |
093d3ff1 RD |
23521 | { |
23522 | resultobj = SWIG_From_int((int)(result)); | |
23523 | } | |
d14a1e28 RD |
23524 | { |
23525 | if (temp2) | |
23526 | delete arg2; | |
23527 | } | |
23528 | return resultobj; | |
23529 | fail: | |
23530 | { | |
23531 | if (temp2) | |
23532 | delete arg2; | |
23533 | } | |
23534 | return NULL; | |
23535 | } | |
23536 | ||
23537 | ||
c32bde28 | 23538 | static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23539 | PyObject *resultobj; |
23540 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23541 | wxString *arg2 = 0 ; | |
23542 | int result; | |
ae8162c8 | 23543 | bool temp2 = false ; |
d14a1e28 RD |
23544 | PyObject * obj0 = 0 ; |
23545 | PyObject * obj1 = 0 ; | |
23546 | char *kwnames[] = { | |
23547 | (char *) "self",(char *) "time", NULL | |
23548 | }; | |
23549 | ||
23550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23553 | { |
23554 | arg2 = wxString_in_helper(obj1); | |
23555 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 23556 | temp2 = true; |
d14a1e28 RD |
23557 | } |
23558 | { | |
23559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23560 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
23561 | ||
23562 | wxPyEndAllowThreads(__tstate); | |
23563 | if (PyErr_Occurred()) SWIG_fail; | |
23564 | } | |
093d3ff1 RD |
23565 | { |
23566 | resultobj = SWIG_From_int((int)(result)); | |
23567 | } | |
d14a1e28 RD |
23568 | { |
23569 | if (temp2) | |
23570 | delete arg2; | |
23571 | } | |
23572 | return resultobj; | |
23573 | fail: | |
23574 | { | |
23575 | if (temp2) | |
23576 | delete arg2; | |
23577 | } | |
23578 | return NULL; | |
23579 | } | |
23580 | ||
23581 | ||
c32bde28 | 23582 | static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23583 | PyObject *resultobj; |
23584 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
7557b9b5 | 23585 | wxString const &arg2_defvalue = wxPyDefaultDateTimeFormat ; |
d14a1e28 RD |
23586 | wxString *arg2 = (wxString *) &arg2_defvalue ; |
23587 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
23588 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
23589 | wxString result; | |
ae8162c8 RD |
23590 | bool temp2 = false ; |
23591 | bool temp3 = false ; | |
d14a1e28 RD |
23592 | PyObject * obj0 = 0 ; |
23593 | PyObject * obj1 = 0 ; | |
23594 | PyObject * obj2 = 0 ; | |
23595 | char *kwnames[] = { | |
23596 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
23597 | }; | |
23598 | ||
23599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23602 | if (obj1) { |
23603 | { | |
23604 | arg2 = wxString_in_helper(obj1); | |
23605 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 23606 | temp2 = true; |
d14a1e28 RD |
23607 | } |
23608 | } | |
23609 | if (obj2) { | |
23610 | { | |
23611 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 23612 | temp3 = true; |
d14a1e28 RD |
23613 | } |
23614 | } | |
23615 | { | |
23616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23617 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
23618 | ||
23619 | wxPyEndAllowThreads(__tstate); | |
23620 | if (PyErr_Occurred()) SWIG_fail; | |
23621 | } | |
23622 | { | |
23623 | #if wxUSE_UNICODE | |
23624 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23625 | #else | |
23626 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23627 | #endif | |
23628 | } | |
23629 | { | |
23630 | if (temp2) | |
23631 | delete arg2; | |
23632 | } | |
23633 | { | |
7722248d | 23634 | if (temp3) delete arg3; |
d14a1e28 RD |
23635 | } |
23636 | return resultobj; | |
23637 | fail: | |
23638 | { | |
23639 | if (temp2) | |
23640 | delete arg2; | |
23641 | } | |
23642 | { | |
7722248d | 23643 | if (temp3) delete arg3; |
d14a1e28 RD |
23644 | } |
23645 | return NULL; | |
23646 | } | |
23647 | ||
23648 | ||
c32bde28 | 23649 | static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23650 | PyObject *resultobj; |
23651 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23652 | wxString result; | |
23653 | PyObject * obj0 = 0 ; | |
23654 | char *kwnames[] = { | |
23655 | (char *) "self", NULL | |
23656 | }; | |
23657 | ||
23658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23659 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23661 | { |
23662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23663 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
23664 | ||
23665 | wxPyEndAllowThreads(__tstate); | |
23666 | if (PyErr_Occurred()) SWIG_fail; | |
23667 | } | |
23668 | { | |
23669 | #if wxUSE_UNICODE | |
23670 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23671 | #else | |
23672 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23673 | #endif | |
23674 | } | |
23675 | return resultobj; | |
23676 | fail: | |
23677 | return NULL; | |
23678 | } | |
23679 | ||
23680 | ||
c32bde28 | 23681 | static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23682 | PyObject *resultobj; |
23683 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23684 | wxString result; | |
23685 | PyObject * obj0 = 0 ; | |
23686 | char *kwnames[] = { | |
23687 | (char *) "self", NULL | |
23688 | }; | |
23689 | ||
23690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23691 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23692 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23693 | { |
23694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23695 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
23696 | ||
23697 | wxPyEndAllowThreads(__tstate); | |
23698 | if (PyErr_Occurred()) SWIG_fail; | |
23699 | } | |
23700 | { | |
23701 | #if wxUSE_UNICODE | |
23702 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23703 | #else | |
23704 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23705 | #endif | |
23706 | } | |
23707 | return resultobj; | |
23708 | fail: | |
23709 | return NULL; | |
23710 | } | |
23711 | ||
23712 | ||
c32bde28 | 23713 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23714 | PyObject *resultobj; |
23715 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23716 | wxString result; | |
23717 | PyObject * obj0 = 0 ; | |
23718 | char *kwnames[] = { | |
23719 | (char *) "self", NULL | |
23720 | }; | |
23721 | ||
23722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23725 | { |
23726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23727 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
23728 | ||
23729 | wxPyEndAllowThreads(__tstate); | |
23730 | if (PyErr_Occurred()) SWIG_fail; | |
23731 | } | |
23732 | { | |
23733 | #if wxUSE_UNICODE | |
23734 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23735 | #else | |
23736 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23737 | #endif | |
23738 | } | |
23739 | return resultobj; | |
23740 | fail: | |
23741 | return NULL; | |
23742 | } | |
23743 | ||
23744 | ||
c32bde28 | 23745 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23746 | PyObject *resultobj; |
23747 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
23748 | wxString result; | |
23749 | PyObject * obj0 = 0 ; | |
23750 | char *kwnames[] = { | |
23751 | (char *) "self", NULL | |
23752 | }; | |
23753 | ||
23754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); |
23756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23757 | { |
23758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23759 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
23760 | ||
23761 | wxPyEndAllowThreads(__tstate); | |
23762 | if (PyErr_Occurred()) SWIG_fail; | |
23763 | } | |
23764 | { | |
23765 | #if wxUSE_UNICODE | |
23766 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23767 | #else | |
23768 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23769 | #endif | |
23770 | } | |
23771 | return resultobj; | |
23772 | fail: | |
23773 | return NULL; | |
23774 | } | |
23775 | ||
23776 | ||
c32bde28 | 23777 | static PyObject * DateTime_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
23778 | PyObject *obj; |
23779 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23780 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
23781 | Py_INCREF(obj); | |
23782 | return Py_BuildValue((char *)""); | |
23783 | } | |
c32bde28 | 23784 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23785 | PyObject *resultobj; |
23786 | long arg1 ; | |
23787 | wxTimeSpan result; | |
994141e6 | 23788 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23789 | char *kwnames[] = { |
23790 | (char *) "sec", NULL | |
23791 | }; | |
23792 | ||
994141e6 | 23793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
23794 | { |
23795 | arg1 = (long)(SWIG_As_long(obj0)); | |
23796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23797 | } | |
d14a1e28 RD |
23798 | { |
23799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23800 | result = wxTimeSpan::Seconds(arg1); | |
23801 | ||
23802 | wxPyEndAllowThreads(__tstate); | |
23803 | if (PyErr_Occurred()) SWIG_fail; | |
23804 | } | |
23805 | { | |
23806 | wxTimeSpan * resultptr; | |
093d3ff1 | 23807 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 23808 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
23809 | } |
23810 | return resultobj; | |
23811 | fail: | |
23812 | return NULL; | |
23813 | } | |
23814 | ||
23815 | ||
c32bde28 | 23816 | static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23817 | PyObject *resultobj; |
23818 | wxTimeSpan result; | |
23819 | char *kwnames[] = { | |
23820 | NULL | |
23821 | }; | |
23822 | ||
23823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
23824 | { | |
23825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23826 | result = wxTimeSpan::Second(); | |
23827 | ||
23828 | wxPyEndAllowThreads(__tstate); | |
23829 | if (PyErr_Occurred()) SWIG_fail; | |
23830 | } | |
23831 | { | |
23832 | wxTimeSpan * resultptr; | |
093d3ff1 | 23833 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 23834 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
23835 | } |
23836 | return resultobj; | |
23837 | fail: | |
23838 | return NULL; | |
23839 | } | |
23840 | ||
23841 | ||
c32bde28 | 23842 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23843 | PyObject *resultobj; |
23844 | long arg1 ; | |
23845 | wxTimeSpan result; | |
994141e6 | 23846 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23847 | char *kwnames[] = { |
23848 | (char *) "min", NULL | |
23849 | }; | |
23850 | ||
994141e6 | 23851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
23852 | { |
23853 | arg1 = (long)(SWIG_As_long(obj0)); | |
23854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23855 | } | |
d14a1e28 RD |
23856 | { |
23857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23858 | result = wxTimeSpan::Minutes(arg1); | |
23859 | ||
23860 | wxPyEndAllowThreads(__tstate); | |
23861 | if (PyErr_Occurred()) SWIG_fail; | |
23862 | } | |
23863 | { | |
23864 | wxTimeSpan * resultptr; | |
093d3ff1 | 23865 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 23866 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
23867 | } |
23868 | return resultobj; | |
23869 | fail: | |
23870 | return NULL; | |
23871 | } | |
23872 | ||
23873 | ||
c32bde28 | 23874 | static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23875 | PyObject *resultobj; |
23876 | wxTimeSpan result; | |
23877 | char *kwnames[] = { | |
23878 | NULL | |
23879 | }; | |
23880 | ||
23881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
23882 | { | |
23883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23884 | result = wxTimeSpan::Minute(); | |
23885 | ||
23886 | wxPyEndAllowThreads(__tstate); | |
23887 | if (PyErr_Occurred()) SWIG_fail; | |
23888 | } | |
23889 | { | |
23890 | wxTimeSpan * resultptr; | |
093d3ff1 | 23891 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 23892 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
23893 | } |
23894 | return resultobj; | |
23895 | fail: | |
23896 | return NULL; | |
23897 | } | |
23898 | ||
23899 | ||
c32bde28 | 23900 | static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23901 | PyObject *resultobj; |
23902 | long arg1 ; | |
23903 | wxTimeSpan result; | |
994141e6 | 23904 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23905 | char *kwnames[] = { |
23906 | (char *) "hours", NULL | |
23907 | }; | |
23908 | ||
994141e6 | 23909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
23910 | { |
23911 | arg1 = (long)(SWIG_As_long(obj0)); | |
23912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23913 | } | |
d14a1e28 RD |
23914 | { |
23915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23916 | result = wxTimeSpan::Hours(arg1); | |
23917 | ||
23918 | wxPyEndAllowThreads(__tstate); | |
23919 | if (PyErr_Occurred()) SWIG_fail; | |
23920 | } | |
23921 | { | |
23922 | wxTimeSpan * resultptr; | |
093d3ff1 | 23923 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 23924 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
23925 | } |
23926 | return resultobj; | |
23927 | fail: | |
23928 | return NULL; | |
23929 | } | |
23930 | ||
23931 | ||
c32bde28 | 23932 | static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23933 | PyObject *resultobj; |
23934 | wxTimeSpan result; | |
23935 | char *kwnames[] = { | |
23936 | NULL | |
23937 | }; | |
23938 | ||
23939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
23940 | { | |
23941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23942 | result = wxTimeSpan::Hour(); | |
23943 | ||
23944 | wxPyEndAllowThreads(__tstate); | |
23945 | if (PyErr_Occurred()) SWIG_fail; | |
23946 | } | |
23947 | { | |
23948 | wxTimeSpan * resultptr; | |
093d3ff1 | 23949 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 23950 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
23951 | } |
23952 | return resultobj; | |
23953 | fail: | |
23954 | return NULL; | |
23955 | } | |
23956 | ||
23957 | ||
c32bde28 | 23958 | static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23959 | PyObject *resultobj; |
23960 | long arg1 ; | |
23961 | wxTimeSpan result; | |
994141e6 | 23962 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23963 | char *kwnames[] = { |
23964 | (char *) "days", NULL | |
23965 | }; | |
23966 | ||
994141e6 | 23967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
23968 | { |
23969 | arg1 = (long)(SWIG_As_long(obj0)); | |
23970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23971 | } | |
d14a1e28 RD |
23972 | { |
23973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23974 | result = wxTimeSpan::Days(arg1); | |
23975 | ||
23976 | wxPyEndAllowThreads(__tstate); | |
23977 | if (PyErr_Occurred()) SWIG_fail; | |
23978 | } | |
23979 | { | |
23980 | wxTimeSpan * resultptr; | |
093d3ff1 | 23981 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 23982 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
23983 | } |
23984 | return resultobj; | |
23985 | fail: | |
23986 | return NULL; | |
23987 | } | |
23988 | ||
23989 | ||
c32bde28 | 23990 | static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23991 | PyObject *resultobj; |
23992 | wxTimeSpan result; | |
23993 | char *kwnames[] = { | |
23994 | NULL | |
23995 | }; | |
23996 | ||
23997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
23998 | { | |
23999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24000 | result = wxTimeSpan::Day(); | |
24001 | ||
24002 | wxPyEndAllowThreads(__tstate); | |
24003 | if (PyErr_Occurred()) SWIG_fail; | |
24004 | } | |
24005 | { | |
24006 | wxTimeSpan * resultptr; | |
093d3ff1 | 24007 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 24008 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24009 | } |
24010 | return resultobj; | |
24011 | fail: | |
24012 | return NULL; | |
24013 | } | |
24014 | ||
24015 | ||
c32bde28 | 24016 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24017 | PyObject *resultobj; |
24018 | long arg1 ; | |
24019 | wxTimeSpan result; | |
994141e6 | 24020 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
24021 | char *kwnames[] = { |
24022 | (char *) "days", NULL | |
24023 | }; | |
24024 | ||
994141e6 | 24025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
24026 | { |
24027 | arg1 = (long)(SWIG_As_long(obj0)); | |
24028 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24029 | } | |
d14a1e28 RD |
24030 | { |
24031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24032 | result = wxTimeSpan::Weeks(arg1); | |
24033 | ||
24034 | wxPyEndAllowThreads(__tstate); | |
24035 | if (PyErr_Occurred()) SWIG_fail; | |
24036 | } | |
24037 | { | |
24038 | wxTimeSpan * resultptr; | |
093d3ff1 | 24039 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 24040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24041 | } |
24042 | return resultobj; | |
24043 | fail: | |
24044 | return NULL; | |
24045 | } | |
24046 | ||
24047 | ||
c32bde28 | 24048 | static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24049 | PyObject *resultobj; |
24050 | wxTimeSpan result; | |
24051 | char *kwnames[] = { | |
24052 | NULL | |
24053 | }; | |
24054 | ||
24055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
24056 | { | |
24057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24058 | result = wxTimeSpan::Week(); | |
24059 | ||
24060 | wxPyEndAllowThreads(__tstate); | |
24061 | if (PyErr_Occurred()) SWIG_fail; | |
24062 | } | |
24063 | { | |
24064 | wxTimeSpan * resultptr; | |
093d3ff1 | 24065 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 24066 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24067 | } |
24068 | return resultobj; | |
24069 | fail: | |
24070 | return NULL; | |
24071 | } | |
24072 | ||
24073 | ||
c32bde28 | 24074 | static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24075 | PyObject *resultobj; |
24076 | long arg1 = (long) 0 ; | |
24077 | long arg2 = (long) 0 ; | |
24078 | long arg3 = (long) 0 ; | |
24079 | long arg4 = (long) 0 ; | |
24080 | wxTimeSpan *result; | |
994141e6 RD |
24081 | PyObject * obj0 = 0 ; |
24082 | PyObject * obj1 = 0 ; | |
24083 | PyObject * obj2 = 0 ; | |
24084 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24085 | char *kwnames[] = { |
24086 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
24087 | }; | |
24088 | ||
994141e6 RD |
24089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
24090 | if (obj0) { | |
093d3ff1 RD |
24091 | { |
24092 | arg1 = (long)(SWIG_As_long(obj0)); | |
24093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24094 | } | |
994141e6 RD |
24095 | } |
24096 | if (obj1) { | |
093d3ff1 RD |
24097 | { |
24098 | arg2 = (long)(SWIG_As_long(obj1)); | |
24099 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24100 | } | |
994141e6 RD |
24101 | } |
24102 | if (obj2) { | |
093d3ff1 RD |
24103 | { |
24104 | arg3 = (long)(SWIG_As_long(obj2)); | |
24105 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24106 | } | |
994141e6 RD |
24107 | } |
24108 | if (obj3) { | |
093d3ff1 RD |
24109 | { |
24110 | arg4 = (long)(SWIG_As_long(obj3)); | |
24111 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24112 | } | |
994141e6 | 24113 | } |
d14a1e28 RD |
24114 | { |
24115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24116 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
24117 | ||
24118 | wxPyEndAllowThreads(__tstate); | |
24119 | if (PyErr_Occurred()) SWIG_fail; | |
24120 | } | |
15afbcd0 | 24121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24122 | return resultobj; |
24123 | fail: | |
24124 | return NULL; | |
24125 | } | |
24126 | ||
24127 | ||
c32bde28 | 24128 | static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24129 | PyObject *resultobj; |
24130 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24131 | PyObject * obj0 = 0 ; | |
24132 | char *kwnames[] = { | |
24133 | (char *) "self", NULL | |
24134 | }; | |
24135 | ||
24136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24137 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24138 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24139 | { |
24140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24141 | delete arg1; | |
24142 | ||
24143 | wxPyEndAllowThreads(__tstate); | |
24144 | if (PyErr_Occurred()) SWIG_fail; | |
24145 | } | |
24146 | Py_INCREF(Py_None); resultobj = Py_None; | |
24147 | return resultobj; | |
24148 | fail: | |
24149 | return NULL; | |
24150 | } | |
24151 | ||
24152 | ||
c32bde28 | 24153 | static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24154 | PyObject *resultobj; |
24155 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24156 | wxTimeSpan *arg2 = 0 ; | |
24157 | wxTimeSpan *result; | |
24158 | PyObject * obj0 = 0 ; | |
24159 | PyObject * obj1 = 0 ; | |
24160 | char *kwnames[] = { | |
24161 | (char *) "self",(char *) "diff", NULL | |
24162 | }; | |
24163 | ||
24164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24165 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24166 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24167 | { | |
24168 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24169 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24170 | if (arg2 == NULL) { | |
24171 | SWIG_null_ref("wxTimeSpan"); | |
24172 | } | |
24173 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24174 | } |
24175 | { | |
24176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24177 | { | |
24178 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
24179 | result = (wxTimeSpan *) &_result_ref; | |
24180 | } | |
24181 | ||
24182 | wxPyEndAllowThreads(__tstate); | |
24183 | if (PyErr_Occurred()) SWIG_fail; | |
24184 | } | |
15afbcd0 | 24185 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
24186 | return resultobj; |
24187 | fail: | |
24188 | return NULL; | |
24189 | } | |
24190 | ||
24191 | ||
c32bde28 | 24192 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24193 | PyObject *resultobj; |
24194 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24195 | wxTimeSpan *arg2 = 0 ; | |
24196 | wxTimeSpan *result; | |
24197 | PyObject * obj0 = 0 ; | |
24198 | PyObject * obj1 = 0 ; | |
24199 | char *kwnames[] = { | |
24200 | (char *) "self",(char *) "diff", NULL | |
24201 | }; | |
24202 | ||
24203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24204 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24205 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24206 | { | |
24207 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24208 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24209 | if (arg2 == NULL) { | |
24210 | SWIG_null_ref("wxTimeSpan"); | |
24211 | } | |
24212 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24213 | } |
24214 | { | |
24215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24216 | { | |
24217 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
24218 | result = (wxTimeSpan *) &_result_ref; | |
24219 | } | |
24220 | ||
24221 | wxPyEndAllowThreads(__tstate); | |
24222 | if (PyErr_Occurred()) SWIG_fail; | |
24223 | } | |
15afbcd0 | 24224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
24225 | return resultobj; |
24226 | fail: | |
24227 | return NULL; | |
24228 | } | |
24229 | ||
24230 | ||
c32bde28 | 24231 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24232 | PyObject *resultobj; |
24233 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24234 | int arg2 ; | |
24235 | wxTimeSpan *result; | |
24236 | PyObject * obj0 = 0 ; | |
994141e6 | 24237 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24238 | char *kwnames[] = { |
24239 | (char *) "self",(char *) "n", NULL | |
24240 | }; | |
24241 | ||
994141e6 | 24242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24245 | { | |
24246 | arg2 = (int)(SWIG_As_int(obj1)); | |
24247 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24248 | } | |
d14a1e28 RD |
24249 | { |
24250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24251 | { | |
24252 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
24253 | result = (wxTimeSpan *) &_result_ref; | |
24254 | } | |
24255 | ||
24256 | wxPyEndAllowThreads(__tstate); | |
24257 | if (PyErr_Occurred()) SWIG_fail; | |
24258 | } | |
15afbcd0 | 24259 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
24260 | return resultobj; |
24261 | fail: | |
24262 | return NULL; | |
24263 | } | |
24264 | ||
24265 | ||
c32bde28 | 24266 | static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24267 | PyObject *resultobj; |
24268 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24269 | wxTimeSpan *result; | |
24270 | PyObject * obj0 = 0 ; | |
24271 | char *kwnames[] = { | |
24272 | (char *) "self", NULL | |
24273 | }; | |
24274 | ||
24275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24276 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24277 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24278 | { |
24279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24280 | { | |
24281 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
24282 | result = (wxTimeSpan *) &_result_ref; | |
24283 | } | |
24284 | ||
24285 | wxPyEndAllowThreads(__tstate); | |
24286 | if (PyErr_Occurred()) SWIG_fail; | |
24287 | } | |
15afbcd0 | 24288 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
24289 | return resultobj; |
24290 | fail: | |
24291 | return NULL; | |
24292 | } | |
24293 | ||
24294 | ||
c32bde28 | 24295 | static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24296 | PyObject *resultobj; |
24297 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24298 | wxTimeSpan result; | |
24299 | PyObject * obj0 = 0 ; | |
24300 | char *kwnames[] = { | |
24301 | (char *) "self", NULL | |
24302 | }; | |
24303 | ||
24304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24307 | { |
24308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24309 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
24310 | ||
24311 | wxPyEndAllowThreads(__tstate); | |
24312 | if (PyErr_Occurred()) SWIG_fail; | |
24313 | } | |
24314 | { | |
24315 | wxTimeSpan * resultptr; | |
093d3ff1 | 24316 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 24317 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24318 | } |
24319 | return resultobj; | |
24320 | fail: | |
24321 | return NULL; | |
24322 | } | |
24323 | ||
24324 | ||
c32bde28 | 24325 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24326 | PyObject *resultobj; |
24327 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24328 | wxTimeSpan *arg2 = 0 ; | |
24329 | wxTimeSpan *result; | |
24330 | PyObject * obj0 = 0 ; | |
24331 | PyObject * obj1 = 0 ; | |
24332 | char *kwnames[] = { | |
24333 | (char *) "self",(char *) "diff", NULL | |
24334 | }; | |
24335 | ||
24336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
24338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24339 | { | |
24340 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24341 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24342 | if (arg2 == NULL) { | |
24343 | SWIG_null_ref("wxTimeSpan"); | |
24344 | } | |
24345 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24346 | } |
24347 | { | |
24348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24349 | { | |
24350 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
24351 | result = (wxTimeSpan *) &_result_ref; | |
24352 | } | |
24353 | ||
24354 | wxPyEndAllowThreads(__tstate); | |
24355 | if (PyErr_Occurred()) SWIG_fail; | |
24356 | } | |
c32bde28 | 24357 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24358 | return resultobj; |
24359 | fail: | |
24360 | return NULL; | |
24361 | } | |
24362 | ||
24363 | ||
c32bde28 | 24364 | static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24365 | PyObject *resultobj; |
24366 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24367 | wxTimeSpan *arg2 = 0 ; | |
24368 | wxTimeSpan *result; | |
24369 | PyObject * obj0 = 0 ; | |
24370 | PyObject * obj1 = 0 ; | |
24371 | char *kwnames[] = { | |
24372 | (char *) "self",(char *) "diff", NULL | |
24373 | }; | |
24374 | ||
24375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24376 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
24377 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24378 | { | |
24379 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24380 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24381 | if (arg2 == NULL) { | |
24382 | SWIG_null_ref("wxTimeSpan"); | |
24383 | } | |
24384 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24385 | } |
24386 | { | |
24387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24388 | { | |
24389 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
24390 | result = (wxTimeSpan *) &_result_ref; | |
24391 | } | |
24392 | ||
24393 | wxPyEndAllowThreads(__tstate); | |
24394 | if (PyErr_Occurred()) SWIG_fail; | |
24395 | } | |
c32bde28 | 24396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24397 | return resultobj; |
24398 | fail: | |
24399 | return NULL; | |
24400 | } | |
24401 | ||
24402 | ||
c32bde28 | 24403 | static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24404 | PyObject *resultobj; |
24405 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24406 | int arg2 ; | |
24407 | wxTimeSpan *result; | |
24408 | PyObject * obj0 = 0 ; | |
994141e6 | 24409 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24410 | char *kwnames[] = { |
24411 | (char *) "self",(char *) "n", NULL | |
24412 | }; | |
24413 | ||
994141e6 | 24414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
24416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24417 | { | |
24418 | arg2 = (int)(SWIG_As_int(obj1)); | |
24419 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24420 | } | |
d14a1e28 RD |
24421 | { |
24422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24423 | { | |
24424 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
24425 | result = (wxTimeSpan *) &_result_ref; | |
24426 | } | |
24427 | ||
24428 | wxPyEndAllowThreads(__tstate); | |
24429 | if (PyErr_Occurred()) SWIG_fail; | |
24430 | } | |
c32bde28 | 24431 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24432 | return resultobj; |
24433 | fail: | |
24434 | return NULL; | |
24435 | } | |
24436 | ||
24437 | ||
c32bde28 | 24438 | static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24439 | PyObject *resultobj; |
24440 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24441 | wxTimeSpan *result; | |
24442 | PyObject * obj0 = 0 ; | |
24443 | char *kwnames[] = { | |
24444 | (char *) "self", NULL | |
24445 | }; | |
24446 | ||
24447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24448 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24449 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24450 | { |
24451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24452 | { | |
24453 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
24454 | result = (wxTimeSpan *) &_result_ref; | |
24455 | } | |
24456 | ||
24457 | wxPyEndAllowThreads(__tstate); | |
24458 | if (PyErr_Occurred()) SWIG_fail; | |
24459 | } | |
15afbcd0 | 24460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
24461 | return resultobj; |
24462 | fail: | |
24463 | return NULL; | |
24464 | } | |
24465 | ||
24466 | ||
c32bde28 | 24467 | static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24468 | PyObject *resultobj; |
24469 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24470 | wxTimeSpan *arg2 = 0 ; | |
24471 | wxTimeSpan result; | |
24472 | PyObject * obj0 = 0 ; | |
24473 | PyObject * obj1 = 0 ; | |
24474 | char *kwnames[] = { | |
24475 | (char *) "self",(char *) "other", NULL | |
24476 | }; | |
24477 | ||
24478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24481 | { | |
24482 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24483 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24484 | if (arg2 == NULL) { | |
24485 | SWIG_null_ref("wxTimeSpan"); | |
24486 | } | |
24487 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24488 | } |
24489 | { | |
24490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24491 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
24492 | ||
24493 | wxPyEndAllowThreads(__tstate); | |
24494 | if (PyErr_Occurred()) SWIG_fail; | |
24495 | } | |
24496 | { | |
24497 | wxTimeSpan * resultptr; | |
093d3ff1 | 24498 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 24499 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24500 | } |
24501 | return resultobj; | |
24502 | fail: | |
24503 | return NULL; | |
24504 | } | |
24505 | ||
24506 | ||
c32bde28 | 24507 | static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24508 | PyObject *resultobj; |
24509 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24510 | wxTimeSpan *arg2 = 0 ; | |
24511 | wxTimeSpan result; | |
24512 | PyObject * obj0 = 0 ; | |
24513 | PyObject * obj1 = 0 ; | |
24514 | char *kwnames[] = { | |
24515 | (char *) "self",(char *) "other", NULL | |
24516 | }; | |
24517 | ||
24518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24521 | { | |
24522 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24523 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24524 | if (arg2 == NULL) { | |
24525 | SWIG_null_ref("wxTimeSpan"); | |
24526 | } | |
24527 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24528 | } |
24529 | { | |
24530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24531 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
24532 | ||
24533 | wxPyEndAllowThreads(__tstate); | |
24534 | if (PyErr_Occurred()) SWIG_fail; | |
24535 | } | |
24536 | { | |
24537 | wxTimeSpan * resultptr; | |
093d3ff1 | 24538 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 24539 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24540 | } |
24541 | return resultobj; | |
24542 | fail: | |
24543 | return NULL; | |
24544 | } | |
24545 | ||
24546 | ||
c32bde28 | 24547 | static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24548 | PyObject *resultobj; |
24549 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24550 | int arg2 ; | |
24551 | wxTimeSpan result; | |
24552 | PyObject * obj0 = 0 ; | |
994141e6 | 24553 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24554 | char *kwnames[] = { |
24555 | (char *) "self",(char *) "n", NULL | |
24556 | }; | |
24557 | ||
994141e6 | 24558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24561 | { | |
24562 | arg2 = (int)(SWIG_As_int(obj1)); | |
24563 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24564 | } | |
d14a1e28 RD |
24565 | { |
24566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24567 | result = wxTimeSpan___mul__(arg1,arg2); | |
24568 | ||
24569 | wxPyEndAllowThreads(__tstate); | |
24570 | if (PyErr_Occurred()) SWIG_fail; | |
24571 | } | |
24572 | { | |
24573 | wxTimeSpan * resultptr; | |
093d3ff1 | 24574 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 24575 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24576 | } |
24577 | return resultobj; | |
24578 | fail: | |
24579 | return NULL; | |
24580 | } | |
24581 | ||
24582 | ||
c32bde28 | 24583 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24584 | PyObject *resultobj; |
24585 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24586 | int arg2 ; | |
24587 | wxTimeSpan result; | |
24588 | PyObject * obj0 = 0 ; | |
994141e6 | 24589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24590 | char *kwnames[] = { |
24591 | (char *) "self",(char *) "n", NULL | |
24592 | }; | |
24593 | ||
994141e6 | 24594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24597 | { | |
24598 | arg2 = (int)(SWIG_As_int(obj1)); | |
24599 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24600 | } | |
d14a1e28 RD |
24601 | { |
24602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24603 | result = wxTimeSpan___rmul__(arg1,arg2); | |
24604 | ||
24605 | wxPyEndAllowThreads(__tstate); | |
24606 | if (PyErr_Occurred()) SWIG_fail; | |
24607 | } | |
24608 | { | |
24609 | wxTimeSpan * resultptr; | |
093d3ff1 | 24610 | resultptr = new wxTimeSpan((wxTimeSpan &)(result)); |
15afbcd0 | 24611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
24612 | } |
24613 | return resultobj; | |
24614 | fail: | |
24615 | return NULL; | |
24616 | } | |
24617 | ||
24618 | ||
c32bde28 | 24619 | static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24620 | PyObject *resultobj; |
24621 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 24622 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
24623 | bool result; |
24624 | PyObject * obj0 = 0 ; | |
24625 | PyObject * obj1 = 0 ; | |
24626 | char *kwnames[] = { | |
24627 | (char *) "self",(char *) "other", NULL | |
24628 | }; | |
24629 | ||
24630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24633 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24634 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24635 | { |
24636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24637 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
24638 | |
24639 | wxPyEndAllowThreads(__tstate); | |
24640 | if (PyErr_Occurred()) SWIG_fail; | |
24641 | } | |
4f89f6a3 RD |
24642 | { |
24643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24644 | } | |
d14a1e28 RD |
24645 | return resultobj; |
24646 | fail: | |
24647 | return NULL; | |
24648 | } | |
24649 | ||
24650 | ||
c32bde28 | 24651 | static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24652 | PyObject *resultobj; |
24653 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 24654 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
24655 | bool result; |
24656 | PyObject * obj0 = 0 ; | |
24657 | PyObject * obj1 = 0 ; | |
24658 | char *kwnames[] = { | |
24659 | (char *) "self",(char *) "other", NULL | |
24660 | }; | |
24661 | ||
24662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24665 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24666 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24667 | { |
24668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24669 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
24670 | |
24671 | wxPyEndAllowThreads(__tstate); | |
24672 | if (PyErr_Occurred()) SWIG_fail; | |
24673 | } | |
4f89f6a3 RD |
24674 | { |
24675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24676 | } | |
d14a1e28 RD |
24677 | return resultobj; |
24678 | fail: | |
24679 | return NULL; | |
24680 | } | |
24681 | ||
24682 | ||
c32bde28 | 24683 | static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24684 | PyObject *resultobj; |
24685 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 24686 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
24687 | bool result; |
24688 | PyObject * obj0 = 0 ; | |
24689 | PyObject * obj1 = 0 ; | |
24690 | char *kwnames[] = { | |
24691 | (char *) "self",(char *) "other", NULL | |
24692 | }; | |
24693 | ||
24694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24695 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24696 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24697 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24698 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24699 | { |
24700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24701 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
24702 | |
24703 | wxPyEndAllowThreads(__tstate); | |
24704 | if (PyErr_Occurred()) SWIG_fail; | |
24705 | } | |
4f89f6a3 RD |
24706 | { |
24707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24708 | } | |
d14a1e28 RD |
24709 | return resultobj; |
24710 | fail: | |
24711 | return NULL; | |
24712 | } | |
24713 | ||
24714 | ||
c32bde28 | 24715 | static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24716 | PyObject *resultobj; |
24717 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 24718 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
24719 | bool result; |
24720 | PyObject * obj0 = 0 ; | |
24721 | PyObject * obj1 = 0 ; | |
24722 | char *kwnames[] = { | |
24723 | (char *) "self",(char *) "other", NULL | |
24724 | }; | |
24725 | ||
24726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24729 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24730 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24731 | { |
24732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24733 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
24734 | |
24735 | wxPyEndAllowThreads(__tstate); | |
24736 | if (PyErr_Occurred()) SWIG_fail; | |
24737 | } | |
4f89f6a3 RD |
24738 | { |
24739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24740 | } | |
d14a1e28 RD |
24741 | return resultobj; |
24742 | fail: | |
24743 | return NULL; | |
24744 | } | |
24745 | ||
24746 | ||
c32bde28 | 24747 | static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24748 | PyObject *resultobj; |
24749 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 24750 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
24751 | bool result; |
24752 | PyObject * obj0 = 0 ; | |
24753 | PyObject * obj1 = 0 ; | |
24754 | char *kwnames[] = { | |
24755 | (char *) "self",(char *) "other", NULL | |
24756 | }; | |
24757 | ||
24758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24759 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24760 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24761 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24762 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24763 | { |
24764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24765 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
24766 | |
24767 | wxPyEndAllowThreads(__tstate); | |
24768 | if (PyErr_Occurred()) SWIG_fail; | |
24769 | } | |
4f89f6a3 RD |
24770 | { |
24771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24772 | } | |
d14a1e28 RD |
24773 | return resultobj; |
24774 | fail: | |
24775 | return NULL; | |
24776 | } | |
24777 | ||
24778 | ||
c32bde28 | 24779 | static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24780 | PyObject *resultobj; |
24781 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 24782 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
24783 | bool result; |
24784 | PyObject * obj0 = 0 ; | |
24785 | PyObject * obj1 = 0 ; | |
24786 | char *kwnames[] = { | |
24787 | (char *) "self",(char *) "other", NULL | |
24788 | }; | |
24789 | ||
24790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24791 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24792 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24793 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24794 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24795 | { |
24796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24797 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
24798 | |
24799 | wxPyEndAllowThreads(__tstate); | |
24800 | if (PyErr_Occurred()) SWIG_fail; | |
24801 | } | |
4f89f6a3 RD |
24802 | { |
24803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24804 | } | |
d14a1e28 RD |
24805 | return resultobj; |
24806 | fail: | |
24807 | return NULL; | |
24808 | } | |
24809 | ||
24810 | ||
c32bde28 | 24811 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24812 | PyObject *resultobj; |
24813 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24814 | bool result; | |
24815 | PyObject * obj0 = 0 ; | |
24816 | char *kwnames[] = { | |
24817 | (char *) "self", NULL | |
24818 | }; | |
24819 | ||
24820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24823 | { |
24824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24825 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
24826 | ||
24827 | wxPyEndAllowThreads(__tstate); | |
24828 | if (PyErr_Occurred()) SWIG_fail; | |
24829 | } | |
4f89f6a3 RD |
24830 | { |
24831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24832 | } | |
d14a1e28 RD |
24833 | return resultobj; |
24834 | fail: | |
24835 | return NULL; | |
24836 | } | |
24837 | ||
24838 | ||
c32bde28 | 24839 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24840 | PyObject *resultobj; |
24841 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24842 | bool result; | |
24843 | PyObject * obj0 = 0 ; | |
24844 | char *kwnames[] = { | |
24845 | (char *) "self", NULL | |
24846 | }; | |
24847 | ||
24848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24851 | { |
24852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24853 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
24854 | ||
24855 | wxPyEndAllowThreads(__tstate); | |
24856 | if (PyErr_Occurred()) SWIG_fail; | |
24857 | } | |
4f89f6a3 RD |
24858 | { |
24859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24860 | } | |
d14a1e28 RD |
24861 | return resultobj; |
24862 | fail: | |
24863 | return NULL; | |
24864 | } | |
24865 | ||
24866 | ||
c32bde28 | 24867 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24868 | PyObject *resultobj; |
24869 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24870 | bool result; | |
24871 | PyObject * obj0 = 0 ; | |
24872 | char *kwnames[] = { | |
24873 | (char *) "self", NULL | |
24874 | }; | |
24875 | ||
24876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24879 | { |
24880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24881 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
24882 | ||
24883 | wxPyEndAllowThreads(__tstate); | |
24884 | if (PyErr_Occurred()) SWIG_fail; | |
24885 | } | |
4f89f6a3 RD |
24886 | { |
24887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24888 | } | |
d14a1e28 RD |
24889 | return resultobj; |
24890 | fail: | |
24891 | return NULL; | |
24892 | } | |
24893 | ||
24894 | ||
c32bde28 | 24895 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24896 | PyObject *resultobj; |
24897 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24898 | wxTimeSpan *arg2 = 0 ; | |
24899 | bool result; | |
24900 | PyObject * obj0 = 0 ; | |
24901 | PyObject * obj1 = 0 ; | |
24902 | char *kwnames[] = { | |
24903 | (char *) "self",(char *) "ts", NULL | |
24904 | }; | |
24905 | ||
24906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24909 | { | |
24910 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24911 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24912 | if (arg2 == NULL) { | |
24913 | SWIG_null_ref("wxTimeSpan"); | |
24914 | } | |
24915 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24916 | } |
24917 | { | |
24918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24919 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
24920 | ||
24921 | wxPyEndAllowThreads(__tstate); | |
24922 | if (PyErr_Occurred()) SWIG_fail; | |
24923 | } | |
4f89f6a3 RD |
24924 | { |
24925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24926 | } | |
d14a1e28 RD |
24927 | return resultobj; |
24928 | fail: | |
24929 | return NULL; | |
24930 | } | |
24931 | ||
24932 | ||
c32bde28 | 24933 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24934 | PyObject *resultobj; |
24935 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24936 | wxTimeSpan *arg2 = 0 ; | |
24937 | bool result; | |
24938 | PyObject * obj0 = 0 ; | |
24939 | PyObject * obj1 = 0 ; | |
24940 | char *kwnames[] = { | |
24941 | (char *) "self",(char *) "ts", NULL | |
24942 | }; | |
24943 | ||
24944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24947 | { | |
24948 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24950 | if (arg2 == NULL) { | |
24951 | SWIG_null_ref("wxTimeSpan"); | |
24952 | } | |
24953 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24954 | } |
24955 | { | |
24956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24957 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
24958 | ||
24959 | wxPyEndAllowThreads(__tstate); | |
24960 | if (PyErr_Occurred()) SWIG_fail; | |
24961 | } | |
4f89f6a3 RD |
24962 | { |
24963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24964 | } | |
d14a1e28 RD |
24965 | return resultobj; |
24966 | fail: | |
24967 | return NULL; | |
24968 | } | |
24969 | ||
24970 | ||
c32bde28 | 24971 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24972 | PyObject *resultobj; |
24973 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
24974 | wxTimeSpan *arg2 = 0 ; | |
24975 | bool result; | |
24976 | PyObject * obj0 = 0 ; | |
24977 | PyObject * obj1 = 0 ; | |
24978 | char *kwnames[] = { | |
24979 | (char *) "self",(char *) "t", NULL | |
24980 | }; | |
24981 | ||
24982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
24984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24985 | { | |
24986 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); | |
24987 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24988 | if (arg2 == NULL) { | |
24989 | SWIG_null_ref("wxTimeSpan"); | |
24990 | } | |
24991 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24992 | } |
24993 | { | |
24994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24995 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
24996 | ||
24997 | wxPyEndAllowThreads(__tstate); | |
24998 | if (PyErr_Occurred()) SWIG_fail; | |
24999 | } | |
4f89f6a3 RD |
25000 | { |
25001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25002 | } | |
d14a1e28 RD |
25003 | return resultobj; |
25004 | fail: | |
25005 | return NULL; | |
25006 | } | |
25007 | ||
25008 | ||
c32bde28 | 25009 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25010 | PyObject *resultobj; |
25011 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25012 | int result; | |
25013 | PyObject * obj0 = 0 ; | |
25014 | char *kwnames[] = { | |
25015 | (char *) "self", NULL | |
25016 | }; | |
25017 | ||
25018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25021 | { |
25022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25023 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
25024 | ||
25025 | wxPyEndAllowThreads(__tstate); | |
25026 | if (PyErr_Occurred()) SWIG_fail; | |
25027 | } | |
093d3ff1 RD |
25028 | { |
25029 | resultobj = SWIG_From_int((int)(result)); | |
25030 | } | |
d14a1e28 RD |
25031 | return resultobj; |
25032 | fail: | |
25033 | return NULL; | |
25034 | } | |
25035 | ||
25036 | ||
c32bde28 | 25037 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25038 | PyObject *resultobj; |
25039 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25040 | int result; | |
25041 | PyObject * obj0 = 0 ; | |
25042 | char *kwnames[] = { | |
25043 | (char *) "self", NULL | |
25044 | }; | |
25045 | ||
25046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25047 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25048 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25049 | { |
25050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25051 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
25052 | ||
25053 | wxPyEndAllowThreads(__tstate); | |
25054 | if (PyErr_Occurred()) SWIG_fail; | |
25055 | } | |
093d3ff1 RD |
25056 | { |
25057 | resultobj = SWIG_From_int((int)(result)); | |
25058 | } | |
d14a1e28 RD |
25059 | return resultobj; |
25060 | fail: | |
25061 | return NULL; | |
25062 | } | |
25063 | ||
25064 | ||
c32bde28 | 25065 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25066 | PyObject *resultobj; |
25067 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25068 | int result; | |
25069 | PyObject * obj0 = 0 ; | |
25070 | char *kwnames[] = { | |
25071 | (char *) "self", NULL | |
25072 | }; | |
25073 | ||
25074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25077 | { |
25078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25079 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
25080 | ||
25081 | wxPyEndAllowThreads(__tstate); | |
25082 | if (PyErr_Occurred()) SWIG_fail; | |
25083 | } | |
093d3ff1 RD |
25084 | { |
25085 | resultobj = SWIG_From_int((int)(result)); | |
25086 | } | |
d14a1e28 RD |
25087 | return resultobj; |
25088 | fail: | |
25089 | return NULL; | |
25090 | } | |
25091 | ||
25092 | ||
c32bde28 | 25093 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25094 | PyObject *resultobj; |
25095 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25096 | int result; | |
25097 | PyObject * obj0 = 0 ; | |
25098 | char *kwnames[] = { | |
25099 | (char *) "self", NULL | |
25100 | }; | |
25101 | ||
25102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25105 | { |
25106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25107 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
25108 | ||
25109 | wxPyEndAllowThreads(__tstate); | |
25110 | if (PyErr_Occurred()) SWIG_fail; | |
25111 | } | |
093d3ff1 RD |
25112 | { |
25113 | resultobj = SWIG_From_int((int)(result)); | |
25114 | } | |
d14a1e28 RD |
25115 | return resultobj; |
25116 | fail: | |
25117 | return NULL; | |
25118 | } | |
25119 | ||
25120 | ||
c32bde28 | 25121 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25122 | PyObject *resultobj; |
25123 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25124 | wxLongLong result; | |
25125 | PyObject * obj0 = 0 ; | |
25126 | char *kwnames[] = { | |
25127 | (char *) "self", NULL | |
25128 | }; | |
25129 | ||
25130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25133 | { |
25134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25135 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
25136 | ||
25137 | wxPyEndAllowThreads(__tstate); | |
25138 | if (PyErr_Occurred()) SWIG_fail; | |
25139 | } | |
25140 | { | |
25141 | PyObject *hi, *lo, *shifter, *shifted; | |
25142 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
25143 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
25144 | shifter = PyLong_FromLong(32); | |
25145 | shifted = PyNumber_Lshift(hi, shifter); | |
25146 | resultobj = PyNumber_Or(shifted, lo); | |
25147 | Py_DECREF(hi); | |
25148 | Py_DECREF(lo); | |
25149 | Py_DECREF(shifter); | |
25150 | Py_DECREF(shifted); | |
25151 | } | |
25152 | return resultobj; | |
25153 | fail: | |
25154 | return NULL; | |
25155 | } | |
25156 | ||
25157 | ||
c32bde28 | 25158 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25159 | PyObject *resultobj; |
25160 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
25161 | wxLongLong result; | |
25162 | PyObject * obj0 = 0 ; | |
25163 | char *kwnames[] = { | |
25164 | (char *) "self", NULL | |
25165 | }; | |
25166 | ||
25167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25170 | { |
25171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25172 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
25173 | ||
25174 | wxPyEndAllowThreads(__tstate); | |
25175 | if (PyErr_Occurred()) SWIG_fail; | |
25176 | } | |
25177 | { | |
25178 | PyObject *hi, *lo, *shifter, *shifted; | |
25179 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
25180 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
25181 | shifter = PyLong_FromLong(32); | |
25182 | shifted = PyNumber_Lshift(hi, shifter); | |
25183 | resultobj = PyNumber_Or(shifted, lo); | |
25184 | Py_DECREF(hi); | |
25185 | Py_DECREF(lo); | |
25186 | Py_DECREF(shifter); | |
25187 | Py_DECREF(shifted); | |
25188 | } | |
25189 | return resultobj; | |
25190 | fail: | |
25191 | return NULL; | |
25192 | } | |
25193 | ||
25194 | ||
c32bde28 | 25195 | static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25196 | PyObject *resultobj; |
25197 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
7557b9b5 | 25198 | wxString const &arg2_defvalue = wxPyDefaultTimeSpanFormat ; |
d14a1e28 RD |
25199 | wxString *arg2 = (wxString *) &arg2_defvalue ; |
25200 | wxString result; | |
ae8162c8 | 25201 | bool temp2 = false ; |
d14a1e28 RD |
25202 | PyObject * obj0 = 0 ; |
25203 | PyObject * obj1 = 0 ; | |
25204 | char *kwnames[] = { | |
25205 | (char *) "self",(char *) "format", NULL | |
25206 | }; | |
25207 | ||
25208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25209 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_EXCEPTION | 0); |
25210 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25211 | if (obj1) { |
25212 | { | |
25213 | arg2 = wxString_in_helper(obj1); | |
25214 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25215 | temp2 = true; |
d14a1e28 RD |
25216 | } |
25217 | } | |
25218 | { | |
25219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25220 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
25221 | ||
25222 | wxPyEndAllowThreads(__tstate); | |
25223 | if (PyErr_Occurred()) SWIG_fail; | |
25224 | } | |
25225 | { | |
25226 | #if wxUSE_UNICODE | |
25227 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25228 | #else | |
25229 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25230 | #endif | |
25231 | } | |
25232 | { | |
25233 | if (temp2) | |
25234 | delete arg2; | |
25235 | } | |
25236 | return resultobj; | |
25237 | fail: | |
25238 | { | |
25239 | if (temp2) | |
25240 | delete arg2; | |
25241 | } | |
25242 | return NULL; | |
25243 | } | |
25244 | ||
25245 | ||
c32bde28 | 25246 | static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
25247 | PyObject *obj; |
25248 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25249 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
25250 | Py_INCREF(obj); | |
25251 | return Py_BuildValue((char *)""); | |
25252 | } | |
c32bde28 | 25253 | static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25254 | PyObject *resultobj; |
25255 | int arg1 = (int) 0 ; | |
25256 | int arg2 = (int) 0 ; | |
25257 | int arg3 = (int) 0 ; | |
25258 | int arg4 = (int) 0 ; | |
25259 | wxDateSpan *result; | |
994141e6 RD |
25260 | PyObject * obj0 = 0 ; |
25261 | PyObject * obj1 = 0 ; | |
25262 | PyObject * obj2 = 0 ; | |
25263 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25264 | char *kwnames[] = { |
25265 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
25266 | }; | |
25267 | ||
994141e6 RD |
25268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
25269 | if (obj0) { | |
093d3ff1 RD |
25270 | { |
25271 | arg1 = (int)(SWIG_As_int(obj0)); | |
25272 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25273 | } | |
994141e6 RD |
25274 | } |
25275 | if (obj1) { | |
093d3ff1 RD |
25276 | { |
25277 | arg2 = (int)(SWIG_As_int(obj1)); | |
25278 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25279 | } | |
994141e6 RD |
25280 | } |
25281 | if (obj2) { | |
093d3ff1 RD |
25282 | { |
25283 | arg3 = (int)(SWIG_As_int(obj2)); | |
25284 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25285 | } | |
994141e6 RD |
25286 | } |
25287 | if (obj3) { | |
093d3ff1 RD |
25288 | { |
25289 | arg4 = (int)(SWIG_As_int(obj3)); | |
25290 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25291 | } | |
994141e6 | 25292 | } |
d14a1e28 RD |
25293 | { |
25294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25295 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
25296 | ||
25297 | wxPyEndAllowThreads(__tstate); | |
25298 | if (PyErr_Occurred()) SWIG_fail; | |
25299 | } | |
15afbcd0 | 25300 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
25301 | return resultobj; |
25302 | fail: | |
25303 | return NULL; | |
25304 | } | |
25305 | ||
25306 | ||
c32bde28 | 25307 | static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25308 | PyObject *resultobj; |
25309 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25310 | PyObject * obj0 = 0 ; | |
25311 | char *kwnames[] = { | |
25312 | (char *) "self", NULL | |
25313 | }; | |
25314 | ||
25315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25318 | { |
25319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25320 | delete arg1; | |
25321 | ||
25322 | wxPyEndAllowThreads(__tstate); | |
25323 | if (PyErr_Occurred()) SWIG_fail; | |
25324 | } | |
25325 | Py_INCREF(Py_None); resultobj = Py_None; | |
25326 | return resultobj; | |
25327 | fail: | |
25328 | return NULL; | |
25329 | } | |
25330 | ||
25331 | ||
c32bde28 | 25332 | static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25333 | PyObject *resultobj; |
25334 | int arg1 ; | |
25335 | wxDateSpan result; | |
994141e6 | 25336 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25337 | char *kwnames[] = { |
25338 | (char *) "days", NULL | |
25339 | }; | |
25340 | ||
994141e6 | 25341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
25342 | { |
25343 | arg1 = (int)(SWIG_As_int(obj0)); | |
25344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25345 | } | |
d14a1e28 RD |
25346 | { |
25347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25348 | result = wxDateSpan::Days(arg1); | |
25349 | ||
25350 | wxPyEndAllowThreads(__tstate); | |
25351 | if (PyErr_Occurred()) SWIG_fail; | |
25352 | } | |
25353 | { | |
25354 | wxDateSpan * resultptr; | |
093d3ff1 | 25355 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 25356 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
25357 | } |
25358 | return resultobj; | |
25359 | fail: | |
25360 | return NULL; | |
25361 | } | |
25362 | ||
25363 | ||
c32bde28 | 25364 | static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25365 | PyObject *resultobj; |
25366 | wxDateSpan result; | |
25367 | char *kwnames[] = { | |
25368 | NULL | |
25369 | }; | |
25370 | ||
25371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
25372 | { | |
25373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25374 | result = wxDateSpan::Day(); | |
25375 | ||
25376 | wxPyEndAllowThreads(__tstate); | |
25377 | if (PyErr_Occurred()) SWIG_fail; | |
25378 | } | |
25379 | { | |
25380 | wxDateSpan * resultptr; | |
093d3ff1 | 25381 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 25382 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
25383 | } |
25384 | return resultobj; | |
25385 | fail: | |
25386 | return NULL; | |
25387 | } | |
25388 | ||
25389 | ||
c32bde28 | 25390 | static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25391 | PyObject *resultobj; |
25392 | int arg1 ; | |
25393 | wxDateSpan result; | |
994141e6 | 25394 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25395 | char *kwnames[] = { |
25396 | (char *) "weeks", NULL | |
25397 | }; | |
25398 | ||
994141e6 | 25399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
25400 | { |
25401 | arg1 = (int)(SWIG_As_int(obj0)); | |
25402 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25403 | } | |
d14a1e28 RD |
25404 | { |
25405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25406 | result = wxDateSpan::Weeks(arg1); | |
25407 | ||
25408 | wxPyEndAllowThreads(__tstate); | |
25409 | if (PyErr_Occurred()) SWIG_fail; | |
25410 | } | |
25411 | { | |
25412 | wxDateSpan * resultptr; | |
093d3ff1 | 25413 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 25414 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
25415 | } |
25416 | return resultobj; | |
25417 | fail: | |
25418 | return NULL; | |
25419 | } | |
25420 | ||
25421 | ||
c32bde28 | 25422 | static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25423 | PyObject *resultobj; |
25424 | wxDateSpan result; | |
25425 | char *kwnames[] = { | |
25426 | NULL | |
25427 | }; | |
25428 | ||
25429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
25430 | { | |
25431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25432 | result = wxDateSpan::Week(); | |
25433 | ||
25434 | wxPyEndAllowThreads(__tstate); | |
25435 | if (PyErr_Occurred()) SWIG_fail; | |
25436 | } | |
25437 | { | |
25438 | wxDateSpan * resultptr; | |
093d3ff1 | 25439 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 25440 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
25441 | } |
25442 | return resultobj; | |
25443 | fail: | |
25444 | return NULL; | |
25445 | } | |
25446 | ||
25447 | ||
c32bde28 | 25448 | static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25449 | PyObject *resultobj; |
25450 | int arg1 ; | |
25451 | wxDateSpan result; | |
994141e6 | 25452 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25453 | char *kwnames[] = { |
25454 | (char *) "mon", NULL | |
25455 | }; | |
25456 | ||
994141e6 | 25457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
25458 | { |
25459 | arg1 = (int)(SWIG_As_int(obj0)); | |
25460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25461 | } | |
d14a1e28 RD |
25462 | { |
25463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25464 | result = wxDateSpan::Months(arg1); | |
25465 | ||
25466 | wxPyEndAllowThreads(__tstate); | |
25467 | if (PyErr_Occurred()) SWIG_fail; | |
25468 | } | |
25469 | { | |
25470 | wxDateSpan * resultptr; | |
093d3ff1 | 25471 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 25472 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
25473 | } |
25474 | return resultobj; | |
25475 | fail: | |
25476 | return NULL; | |
25477 | } | |
25478 | ||
25479 | ||
c32bde28 | 25480 | static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25481 | PyObject *resultobj; |
25482 | wxDateSpan result; | |
25483 | char *kwnames[] = { | |
25484 | NULL | |
25485 | }; | |
25486 | ||
25487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
25488 | { | |
25489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25490 | result = wxDateSpan::Month(); | |
25491 | ||
25492 | wxPyEndAllowThreads(__tstate); | |
25493 | if (PyErr_Occurred()) SWIG_fail; | |
25494 | } | |
25495 | { | |
25496 | wxDateSpan * resultptr; | |
093d3ff1 | 25497 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 25498 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
25499 | } |
25500 | return resultobj; | |
25501 | fail: | |
25502 | return NULL; | |
25503 | } | |
25504 | ||
25505 | ||
c32bde28 | 25506 | static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25507 | PyObject *resultobj; |
25508 | int arg1 ; | |
25509 | wxDateSpan result; | |
994141e6 | 25510 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25511 | char *kwnames[] = { |
25512 | (char *) "years", NULL | |
25513 | }; | |
25514 | ||
994141e6 | 25515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
25516 | { |
25517 | arg1 = (int)(SWIG_As_int(obj0)); | |
25518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25519 | } | |
d14a1e28 RD |
25520 | { |
25521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25522 | result = wxDateSpan::Years(arg1); | |
25523 | ||
25524 | wxPyEndAllowThreads(__tstate); | |
25525 | if (PyErr_Occurred()) SWIG_fail; | |
25526 | } | |
25527 | { | |
25528 | wxDateSpan * resultptr; | |
093d3ff1 | 25529 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 25530 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
25531 | } |
25532 | return resultobj; | |
25533 | fail: | |
25534 | return NULL; | |
25535 | } | |
25536 | ||
25537 | ||
c32bde28 | 25538 | static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25539 | PyObject *resultobj; |
25540 | wxDateSpan result; | |
25541 | char *kwnames[] = { | |
25542 | NULL | |
25543 | }; | |
25544 | ||
25545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
25546 | { | |
25547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25548 | result = wxDateSpan::Year(); | |
25549 | ||
25550 | wxPyEndAllowThreads(__tstate); | |
25551 | if (PyErr_Occurred()) SWIG_fail; | |
25552 | } | |
25553 | { | |
25554 | wxDateSpan * resultptr; | |
093d3ff1 | 25555 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 25556 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
25557 | } |
25558 | return resultobj; | |
25559 | fail: | |
25560 | return NULL; | |
25561 | } | |
25562 | ||
25563 | ||
c32bde28 | 25564 | static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25565 | PyObject *resultobj; |
25566 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25567 | int arg2 ; | |
25568 | wxDateSpan *result; | |
25569 | PyObject * obj0 = 0 ; | |
994141e6 | 25570 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25571 | char *kwnames[] = { |
25572 | (char *) "self",(char *) "n", NULL | |
25573 | }; | |
25574 | ||
994141e6 | 25575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25578 | { | |
25579 | arg2 = (int)(SWIG_As_int(obj1)); | |
25580 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25581 | } | |
d14a1e28 RD |
25582 | { |
25583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25584 | { | |
25585 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
25586 | result = (wxDateSpan *) &_result_ref; | |
25587 | } | |
25588 | ||
25589 | wxPyEndAllowThreads(__tstate); | |
25590 | if (PyErr_Occurred()) SWIG_fail; | |
25591 | } | |
15afbcd0 | 25592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
25593 | return resultobj; |
25594 | fail: | |
25595 | return NULL; | |
25596 | } | |
25597 | ||
25598 | ||
c32bde28 | 25599 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25600 | PyObject *resultobj; |
25601 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25602 | int arg2 ; | |
25603 | wxDateSpan *result; | |
25604 | PyObject * obj0 = 0 ; | |
994141e6 | 25605 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25606 | char *kwnames[] = { |
25607 | (char *) "self",(char *) "n", NULL | |
25608 | }; | |
25609 | ||
994141e6 | 25610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25611 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25612 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25613 | { | |
25614 | arg2 = (int)(SWIG_As_int(obj1)); | |
25615 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25616 | } | |
d14a1e28 RD |
25617 | { |
25618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25619 | { | |
25620 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
25621 | result = (wxDateSpan *) &_result_ref; | |
25622 | } | |
25623 | ||
25624 | wxPyEndAllowThreads(__tstate); | |
25625 | if (PyErr_Occurred()) SWIG_fail; | |
25626 | } | |
15afbcd0 | 25627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
25628 | return resultobj; |
25629 | fail: | |
25630 | return NULL; | |
25631 | } | |
25632 | ||
25633 | ||
c32bde28 | 25634 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25635 | PyObject *resultobj; |
25636 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25637 | int arg2 ; | |
25638 | wxDateSpan *result; | |
25639 | PyObject * obj0 = 0 ; | |
994141e6 | 25640 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25641 | char *kwnames[] = { |
25642 | (char *) "self",(char *) "n", NULL | |
25643 | }; | |
25644 | ||
994141e6 | 25645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25648 | { | |
25649 | arg2 = (int)(SWIG_As_int(obj1)); | |
25650 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25651 | } | |
d14a1e28 RD |
25652 | { |
25653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25654 | { | |
25655 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
25656 | result = (wxDateSpan *) &_result_ref; | |
25657 | } | |
25658 | ||
25659 | wxPyEndAllowThreads(__tstate); | |
25660 | if (PyErr_Occurred()) SWIG_fail; | |
25661 | } | |
15afbcd0 | 25662 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
25663 | return resultobj; |
25664 | fail: | |
25665 | return NULL; | |
25666 | } | |
25667 | ||
25668 | ||
c32bde28 | 25669 | static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25670 | PyObject *resultobj; |
25671 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25672 | int arg2 ; | |
25673 | wxDateSpan *result; | |
25674 | PyObject * obj0 = 0 ; | |
994141e6 | 25675 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25676 | char *kwnames[] = { |
25677 | (char *) "self",(char *) "n", NULL | |
25678 | }; | |
25679 | ||
994141e6 | 25680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25681 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25682 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25683 | { | |
25684 | arg2 = (int)(SWIG_As_int(obj1)); | |
25685 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25686 | } | |
d14a1e28 RD |
25687 | { |
25688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25689 | { | |
25690 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
25691 | result = (wxDateSpan *) &_result_ref; | |
25692 | } | |
25693 | ||
25694 | wxPyEndAllowThreads(__tstate); | |
25695 | if (PyErr_Occurred()) SWIG_fail; | |
25696 | } | |
15afbcd0 | 25697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
25698 | return resultobj; |
25699 | fail: | |
25700 | return NULL; | |
25701 | } | |
25702 | ||
25703 | ||
c32bde28 | 25704 | static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25705 | PyObject *resultobj; |
25706 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25707 | int result; | |
25708 | PyObject * obj0 = 0 ; | |
25709 | char *kwnames[] = { | |
25710 | (char *) "self", NULL | |
25711 | }; | |
25712 | ||
25713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25714 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25715 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25716 | { |
25717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25718 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
25719 | ||
25720 | wxPyEndAllowThreads(__tstate); | |
25721 | if (PyErr_Occurred()) SWIG_fail; | |
25722 | } | |
093d3ff1 RD |
25723 | { |
25724 | resultobj = SWIG_From_int((int)(result)); | |
25725 | } | |
d14a1e28 RD |
25726 | return resultobj; |
25727 | fail: | |
25728 | return NULL; | |
25729 | } | |
25730 | ||
25731 | ||
c32bde28 | 25732 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25733 | PyObject *resultobj; |
25734 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25735 | int result; | |
25736 | PyObject * obj0 = 0 ; | |
25737 | char *kwnames[] = { | |
25738 | (char *) "self", NULL | |
25739 | }; | |
25740 | ||
25741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25744 | { |
25745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25746 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
25747 | ||
25748 | wxPyEndAllowThreads(__tstate); | |
25749 | if (PyErr_Occurred()) SWIG_fail; | |
25750 | } | |
093d3ff1 RD |
25751 | { |
25752 | resultobj = SWIG_From_int((int)(result)); | |
25753 | } | |
d14a1e28 RD |
25754 | return resultobj; |
25755 | fail: | |
25756 | return NULL; | |
25757 | } | |
25758 | ||
25759 | ||
c32bde28 | 25760 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25761 | PyObject *resultobj; |
25762 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25763 | int result; | |
25764 | PyObject * obj0 = 0 ; | |
25765 | char *kwnames[] = { | |
25766 | (char *) "self", NULL | |
25767 | }; | |
25768 | ||
25769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25772 | { |
25773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25774 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
25775 | ||
25776 | wxPyEndAllowThreads(__tstate); | |
25777 | if (PyErr_Occurred()) SWIG_fail; | |
25778 | } | |
093d3ff1 RD |
25779 | { |
25780 | resultobj = SWIG_From_int((int)(result)); | |
25781 | } | |
d14a1e28 RD |
25782 | return resultobj; |
25783 | fail: | |
25784 | return NULL; | |
25785 | } | |
25786 | ||
25787 | ||
c32bde28 | 25788 | static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25789 | PyObject *resultobj; |
25790 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25791 | int result; | |
25792 | PyObject * obj0 = 0 ; | |
25793 | char *kwnames[] = { | |
25794 | (char *) "self", NULL | |
25795 | }; | |
25796 | ||
25797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25800 | { |
25801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25802 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
25803 | ||
25804 | wxPyEndAllowThreads(__tstate); | |
25805 | if (PyErr_Occurred()) SWIG_fail; | |
25806 | } | |
093d3ff1 RD |
25807 | { |
25808 | resultobj = SWIG_From_int((int)(result)); | |
25809 | } | |
d14a1e28 RD |
25810 | return resultobj; |
25811 | fail: | |
25812 | return NULL; | |
25813 | } | |
25814 | ||
25815 | ||
c32bde28 | 25816 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25817 | PyObject *resultobj; |
25818 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25819 | int result; | |
25820 | PyObject * obj0 = 0 ; | |
25821 | char *kwnames[] = { | |
25822 | (char *) "self", NULL | |
25823 | }; | |
25824 | ||
25825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25828 | { |
25829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25830 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
25831 | ||
25832 | wxPyEndAllowThreads(__tstate); | |
25833 | if (PyErr_Occurred()) SWIG_fail; | |
25834 | } | |
093d3ff1 RD |
25835 | { |
25836 | resultobj = SWIG_From_int((int)(result)); | |
25837 | } | |
d14a1e28 RD |
25838 | return resultobj; |
25839 | fail: | |
25840 | return NULL; | |
25841 | } | |
25842 | ||
25843 | ||
c32bde28 | 25844 | static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25845 | PyObject *resultobj; |
25846 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25847 | wxDateSpan *arg2 = 0 ; | |
25848 | wxDateSpan *result; | |
25849 | PyObject * obj0 = 0 ; | |
25850 | PyObject * obj1 = 0 ; | |
25851 | char *kwnames[] = { | |
25852 | (char *) "self",(char *) "other", NULL | |
25853 | }; | |
25854 | ||
25855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25858 | { | |
25859 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
25860 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25861 | if (arg2 == NULL) { | |
25862 | SWIG_null_ref("wxDateSpan"); | |
25863 | } | |
25864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25865 | } |
25866 | { | |
25867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25868 | { | |
25869 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
25870 | result = (wxDateSpan *) &_result_ref; | |
25871 | } | |
25872 | ||
25873 | wxPyEndAllowThreads(__tstate); | |
25874 | if (PyErr_Occurred()) SWIG_fail; | |
25875 | } | |
15afbcd0 | 25876 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
25877 | return resultobj; |
25878 | fail: | |
25879 | return NULL; | |
25880 | } | |
25881 | ||
25882 | ||
c32bde28 | 25883 | static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25884 | PyObject *resultobj; |
25885 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25886 | wxDateSpan *arg2 = 0 ; | |
25887 | wxDateSpan *result; | |
25888 | PyObject * obj0 = 0 ; | |
25889 | PyObject * obj1 = 0 ; | |
25890 | char *kwnames[] = { | |
25891 | (char *) "self",(char *) "other", NULL | |
25892 | }; | |
25893 | ||
25894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25897 | { | |
25898 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
25899 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25900 | if (arg2 == NULL) { | |
25901 | SWIG_null_ref("wxDateSpan"); | |
25902 | } | |
25903 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25904 | } |
25905 | { | |
25906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25907 | { | |
25908 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
25909 | result = (wxDateSpan *) &_result_ref; | |
25910 | } | |
25911 | ||
25912 | wxPyEndAllowThreads(__tstate); | |
25913 | if (PyErr_Occurred()) SWIG_fail; | |
25914 | } | |
15afbcd0 | 25915 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
25916 | return resultobj; |
25917 | fail: | |
25918 | return NULL; | |
25919 | } | |
25920 | ||
25921 | ||
c32bde28 | 25922 | static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25923 | PyObject *resultobj; |
25924 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25925 | wxDateSpan *result; | |
25926 | PyObject * obj0 = 0 ; | |
25927 | char *kwnames[] = { | |
25928 | (char *) "self", NULL | |
25929 | }; | |
25930 | ||
25931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25934 | { |
25935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25936 | { | |
25937 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
25938 | result = (wxDateSpan *) &_result_ref; | |
25939 | } | |
25940 | ||
25941 | wxPyEndAllowThreads(__tstate); | |
25942 | if (PyErr_Occurred()) SWIG_fail; | |
25943 | } | |
15afbcd0 | 25944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
25945 | return resultobj; |
25946 | fail: | |
25947 | return NULL; | |
25948 | } | |
25949 | ||
25950 | ||
c32bde28 | 25951 | static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25952 | PyObject *resultobj; |
25953 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25954 | int arg2 ; | |
25955 | wxDateSpan *result; | |
25956 | PyObject * obj0 = 0 ; | |
994141e6 | 25957 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25958 | char *kwnames[] = { |
25959 | (char *) "self",(char *) "factor", NULL | |
25960 | }; | |
25961 | ||
994141e6 | 25962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
25964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25965 | { | |
25966 | arg2 = (int)(SWIG_As_int(obj1)); | |
25967 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25968 | } | |
d14a1e28 RD |
25969 | { |
25970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25971 | { | |
25972 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
25973 | result = (wxDateSpan *) &_result_ref; | |
25974 | } | |
25975 | ||
25976 | wxPyEndAllowThreads(__tstate); | |
25977 | if (PyErr_Occurred()) SWIG_fail; | |
25978 | } | |
15afbcd0 | 25979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
25980 | return resultobj; |
25981 | fail: | |
25982 | return NULL; | |
25983 | } | |
25984 | ||
25985 | ||
c32bde28 | 25986 | static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25987 | PyObject *resultobj; |
25988 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
25989 | wxDateSpan *arg2 = 0 ; | |
25990 | wxDateSpan *result; | |
25991 | PyObject * obj0 = 0 ; | |
25992 | PyObject * obj1 = 0 ; | |
25993 | char *kwnames[] = { | |
25994 | (char *) "self",(char *) "other", NULL | |
25995 | }; | |
25996 | ||
25997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
25999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26000 | { | |
26001 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
26002 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26003 | if (arg2 == NULL) { | |
26004 | SWIG_null_ref("wxDateSpan"); | |
26005 | } | |
26006 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26007 | } |
26008 | { | |
26009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26010 | { | |
26011 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
26012 | result = (wxDateSpan *) &_result_ref; | |
26013 | } | |
26014 | ||
26015 | wxPyEndAllowThreads(__tstate); | |
26016 | if (PyErr_Occurred()) SWIG_fail; | |
26017 | } | |
c32bde28 | 26018 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26019 | return resultobj; |
26020 | fail: | |
26021 | return NULL; | |
26022 | } | |
26023 | ||
26024 | ||
c32bde28 | 26025 | static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26026 | PyObject *resultobj; |
26027 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26028 | wxDateSpan *arg2 = 0 ; | |
26029 | wxDateSpan *result; | |
26030 | PyObject * obj0 = 0 ; | |
26031 | PyObject * obj1 = 0 ; | |
26032 | char *kwnames[] = { | |
26033 | (char *) "self",(char *) "other", NULL | |
26034 | }; | |
26035 | ||
26036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26037 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
26038 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26039 | { | |
26040 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
26041 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26042 | if (arg2 == NULL) { | |
26043 | SWIG_null_ref("wxDateSpan"); | |
26044 | } | |
26045 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26046 | } |
26047 | { | |
26048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26049 | { | |
26050 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
26051 | result = (wxDateSpan *) &_result_ref; | |
26052 | } | |
26053 | ||
26054 | wxPyEndAllowThreads(__tstate); | |
26055 | if (PyErr_Occurred()) SWIG_fail; | |
26056 | } | |
c32bde28 | 26057 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26058 | return resultobj; |
26059 | fail: | |
26060 | return NULL; | |
26061 | } | |
26062 | ||
26063 | ||
c32bde28 | 26064 | static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26065 | PyObject *resultobj; |
26066 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26067 | wxDateSpan *result; | |
26068 | PyObject * obj0 = 0 ; | |
26069 | char *kwnames[] = { | |
26070 | (char *) "self", NULL | |
26071 | }; | |
26072 | ||
26073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26076 | { |
26077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26078 | { | |
26079 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
26080 | result = (wxDateSpan *) &_result_ref; | |
26081 | } | |
26082 | ||
26083 | wxPyEndAllowThreads(__tstate); | |
26084 | if (PyErr_Occurred()) SWIG_fail; | |
26085 | } | |
15afbcd0 | 26086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
26087 | return resultobj; |
26088 | fail: | |
26089 | return NULL; | |
26090 | } | |
26091 | ||
26092 | ||
c32bde28 | 26093 | static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26094 | PyObject *resultobj; |
26095 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26096 | int arg2 ; | |
26097 | wxDateSpan *result; | |
26098 | PyObject * obj0 = 0 ; | |
994141e6 | 26099 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26100 | char *kwnames[] = { |
26101 | (char *) "self",(char *) "factor", NULL | |
26102 | }; | |
26103 | ||
994141e6 | 26104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26105 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
26106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26107 | { | |
26108 | arg2 = (int)(SWIG_As_int(obj1)); | |
26109 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26110 | } | |
d14a1e28 RD |
26111 | { |
26112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26113 | { | |
26114 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
26115 | result = (wxDateSpan *) &_result_ref; | |
26116 | } | |
26117 | ||
26118 | wxPyEndAllowThreads(__tstate); | |
26119 | if (PyErr_Occurred()) SWIG_fail; | |
26120 | } | |
c32bde28 | 26121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26122 | return resultobj; |
26123 | fail: | |
26124 | return NULL; | |
26125 | } | |
26126 | ||
26127 | ||
c32bde28 | 26128 | static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26129 | PyObject *resultobj; |
26130 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26131 | wxDateSpan *arg2 = 0 ; | |
26132 | wxDateSpan result; | |
26133 | PyObject * obj0 = 0 ; | |
26134 | PyObject * obj1 = 0 ; | |
26135 | char *kwnames[] = { | |
26136 | (char *) "self",(char *) "other", NULL | |
26137 | }; | |
26138 | ||
26139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26142 | { | |
26143 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
26144 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26145 | if (arg2 == NULL) { | |
26146 | SWIG_null_ref("wxDateSpan"); | |
26147 | } | |
26148 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26149 | } |
26150 | { | |
26151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26152 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
26153 | ||
26154 | wxPyEndAllowThreads(__tstate); | |
26155 | if (PyErr_Occurred()) SWIG_fail; | |
26156 | } | |
26157 | { | |
26158 | wxDateSpan * resultptr; | |
093d3ff1 | 26159 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 26160 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26161 | } |
26162 | return resultobj; | |
26163 | fail: | |
26164 | return NULL; | |
26165 | } | |
26166 | ||
26167 | ||
c32bde28 | 26168 | static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26169 | PyObject *resultobj; |
26170 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26171 | wxDateSpan *arg2 = 0 ; | |
26172 | wxDateSpan result; | |
26173 | PyObject * obj0 = 0 ; | |
26174 | PyObject * obj1 = 0 ; | |
26175 | char *kwnames[] = { | |
26176 | (char *) "self",(char *) "other", NULL | |
26177 | }; | |
26178 | ||
26179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26182 | { | |
26183 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
26184 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26185 | if (arg2 == NULL) { | |
26186 | SWIG_null_ref("wxDateSpan"); | |
26187 | } | |
26188 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26189 | } |
26190 | { | |
26191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26192 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
26193 | ||
26194 | wxPyEndAllowThreads(__tstate); | |
26195 | if (PyErr_Occurred()) SWIG_fail; | |
26196 | } | |
26197 | { | |
26198 | wxDateSpan * resultptr; | |
093d3ff1 | 26199 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 26200 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26201 | } |
26202 | return resultobj; | |
26203 | fail: | |
26204 | return NULL; | |
26205 | } | |
26206 | ||
26207 | ||
c32bde28 | 26208 | static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26209 | PyObject *resultobj; |
26210 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26211 | int arg2 ; | |
26212 | wxDateSpan result; | |
26213 | PyObject * obj0 = 0 ; | |
994141e6 | 26214 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26215 | char *kwnames[] = { |
26216 | (char *) "self",(char *) "n", NULL | |
26217 | }; | |
26218 | ||
994141e6 | 26219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26222 | { | |
26223 | arg2 = (int)(SWIG_As_int(obj1)); | |
26224 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26225 | } | |
d14a1e28 RD |
26226 | { |
26227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26228 | result = wxDateSpan___mul__(arg1,arg2); | |
26229 | ||
26230 | wxPyEndAllowThreads(__tstate); | |
26231 | if (PyErr_Occurred()) SWIG_fail; | |
26232 | } | |
26233 | { | |
26234 | wxDateSpan * resultptr; | |
093d3ff1 | 26235 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 26236 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26237 | } |
26238 | return resultobj; | |
26239 | fail: | |
26240 | return NULL; | |
26241 | } | |
26242 | ||
26243 | ||
c32bde28 | 26244 | static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26245 | PyObject *resultobj; |
26246 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
26247 | int arg2 ; | |
26248 | wxDateSpan result; | |
26249 | PyObject * obj0 = 0 ; | |
994141e6 | 26250 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26251 | char *kwnames[] = { |
26252 | (char *) "self",(char *) "n", NULL | |
26253 | }; | |
26254 | ||
994141e6 | 26255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26256 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26257 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26258 | { | |
26259 | arg2 = (int)(SWIG_As_int(obj1)); | |
26260 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26261 | } | |
d14a1e28 RD |
26262 | { |
26263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26264 | result = wxDateSpan___rmul__(arg1,arg2); | |
26265 | ||
26266 | wxPyEndAllowThreads(__tstate); | |
26267 | if (PyErr_Occurred()) SWIG_fail; | |
26268 | } | |
26269 | { | |
26270 | wxDateSpan * resultptr; | |
093d3ff1 | 26271 | resultptr = new wxDateSpan((wxDateSpan &)(result)); |
15afbcd0 | 26272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
26273 | } |
26274 | return resultobj; | |
26275 | fail: | |
26276 | return NULL; | |
26277 | } | |
26278 | ||
26279 | ||
c32bde28 | 26280 | static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26281 | PyObject *resultobj; |
26282 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 26283 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
26284 | bool result; |
26285 | PyObject * obj0 = 0 ; | |
26286 | PyObject * obj1 = 0 ; | |
26287 | char *kwnames[] = { | |
26288 | (char *) "self",(char *) "other", NULL | |
26289 | }; | |
26290 | ||
26291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26294 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
26295 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26296 | { |
26297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 26298 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
26299 | |
26300 | wxPyEndAllowThreads(__tstate); | |
26301 | if (PyErr_Occurred()) SWIG_fail; | |
26302 | } | |
4f89f6a3 RD |
26303 | { |
26304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26305 | } | |
d14a1e28 RD |
26306 | return resultobj; |
26307 | fail: | |
26308 | return NULL; | |
26309 | } | |
26310 | ||
26311 | ||
c32bde28 | 26312 | static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26313 | PyObject *resultobj; |
26314 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 26315 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
26316 | bool result; |
26317 | PyObject * obj0 = 0 ; | |
26318 | PyObject * obj1 = 0 ; | |
26319 | char *kwnames[] = { | |
26320 | (char *) "self",(char *) "other", NULL | |
26321 | }; | |
26322 | ||
26323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); |
26325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26326 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateSpan, SWIG_POINTER_EXCEPTION | 0); | |
26327 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26328 | { |
26329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 26330 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
26331 | |
26332 | wxPyEndAllowThreads(__tstate); | |
26333 | if (PyErr_Occurred()) SWIG_fail; | |
26334 | } | |
4f89f6a3 RD |
26335 | { |
26336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26337 | } | |
d14a1e28 RD |
26338 | return resultobj; |
26339 | fail: | |
26340 | return NULL; | |
26341 | } | |
26342 | ||
26343 | ||
c32bde28 | 26344 | static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
26345 | PyObject *obj; |
26346 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26347 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
26348 | Py_INCREF(obj); | |
26349 | return Py_BuildValue((char *)""); | |
26350 | } | |
c32bde28 | 26351 | static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26352 | PyObject *resultobj; |
26353 | long result; | |
26354 | char *kwnames[] = { | |
26355 | NULL | |
26356 | }; | |
26357 | ||
26358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
26359 | { | |
26360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26361 | result = (long)wxGetLocalTime(); | |
26362 | ||
26363 | wxPyEndAllowThreads(__tstate); | |
26364 | if (PyErr_Occurred()) SWIG_fail; | |
26365 | } | |
093d3ff1 RD |
26366 | { |
26367 | resultobj = SWIG_From_long((long)(result)); | |
26368 | } | |
d14a1e28 RD |
26369 | return resultobj; |
26370 | fail: | |
26371 | return NULL; | |
26372 | } | |
26373 | ||
26374 | ||
c32bde28 | 26375 | static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26376 | PyObject *resultobj; |
26377 | long result; | |
26378 | char *kwnames[] = { | |
26379 | NULL | |
26380 | }; | |
26381 | ||
26382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
26383 | { | |
26384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26385 | result = (long)wxGetUTCTime(); | |
26386 | ||
26387 | wxPyEndAllowThreads(__tstate); | |
26388 | if (PyErr_Occurred()) SWIG_fail; | |
26389 | } | |
093d3ff1 RD |
26390 | { |
26391 | resultobj = SWIG_From_long((long)(result)); | |
26392 | } | |
d14a1e28 RD |
26393 | return resultobj; |
26394 | fail: | |
26395 | return NULL; | |
26396 | } | |
26397 | ||
26398 | ||
c32bde28 | 26399 | static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26400 | PyObject *resultobj; |
26401 | long result; | |
26402 | char *kwnames[] = { | |
26403 | NULL | |
26404 | }; | |
26405 | ||
26406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
26407 | { | |
26408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26409 | result = (long)wxGetCurrentTime(); | |
26410 | ||
26411 | wxPyEndAllowThreads(__tstate); | |
26412 | if (PyErr_Occurred()) SWIG_fail; | |
26413 | } | |
093d3ff1 RD |
26414 | { |
26415 | resultobj = SWIG_From_long((long)(result)); | |
26416 | } | |
d14a1e28 RD |
26417 | return resultobj; |
26418 | fail: | |
26419 | return NULL; | |
26420 | } | |
26421 | ||
26422 | ||
c32bde28 | 26423 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26424 | PyObject *resultobj; |
26425 | wxLongLong result; | |
26426 | char *kwnames[] = { | |
26427 | NULL | |
26428 | }; | |
26429 | ||
26430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
26431 | { | |
26432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26433 | result = wxGetLocalTimeMillis(); | |
26434 | ||
26435 | wxPyEndAllowThreads(__tstate); | |
26436 | if (PyErr_Occurred()) SWIG_fail; | |
26437 | } | |
26438 | { | |
26439 | PyObject *hi, *lo, *shifter, *shifted; | |
26440 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
26441 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
26442 | shifter = PyLong_FromLong(32); | |
26443 | shifted = PyNumber_Lshift(hi, shifter); | |
26444 | resultobj = PyNumber_Or(shifted, lo); | |
26445 | Py_DECREF(hi); | |
26446 | Py_DECREF(lo); | |
26447 | Py_DECREF(shifter); | |
26448 | Py_DECREF(shifted); | |
26449 | } | |
26450 | return resultobj; | |
26451 | fail: | |
26452 | return NULL; | |
26453 | } | |
26454 | ||
26455 | ||
c32bde28 | 26456 | static int _wrap_DefaultDateTime_set(PyObject *) { |
98e665d3 RD |
26457 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); |
26458 | return 1; | |
26459 | } | |
26460 | ||
26461 | ||
093d3ff1 | 26462 | static PyObject *_wrap_DefaultDateTime_get(void) { |
98e665d3 RD |
26463 | PyObject *pyobj; |
26464 | ||
15afbcd0 | 26465 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); |
98e665d3 RD |
26466 | return pyobj; |
26467 | } | |
26468 | ||
26469 | ||
c32bde28 | 26470 | static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 26471 | PyObject *resultobj; |
093d3ff1 | 26472 | wxDataFormatId arg1 ; |
d14a1e28 | 26473 | wxDataFormat *result; |
994141e6 | 26474 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26475 | char *kwnames[] = { |
26476 | (char *) "type", NULL | |
26477 | }; | |
26478 | ||
994141e6 | 26479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26480 | { |
26481 | arg1 = (wxDataFormatId)(SWIG_As_int(obj0)); | |
26482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26483 | } | |
d14a1e28 RD |
26484 | { |
26485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26486 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
26487 | ||
26488 | wxPyEndAllowThreads(__tstate); | |
26489 | if (PyErr_Occurred()) SWIG_fail; | |
26490 | } | |
15afbcd0 | 26491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
26492 | return resultobj; |
26493 | fail: | |
26494 | return NULL; | |
26495 | } | |
26496 | ||
26497 | ||
c32bde28 | 26498 | static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26499 | PyObject *resultobj; |
26500 | wxString *arg1 = 0 ; | |
26501 | wxDataFormat *result; | |
ae8162c8 | 26502 | bool temp1 = false ; |
d14a1e28 RD |
26503 | PyObject * obj0 = 0 ; |
26504 | char *kwnames[] = { | |
26505 | (char *) "format", NULL | |
26506 | }; | |
26507 | ||
26508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
26509 | { | |
26510 | arg1 = wxString_in_helper(obj0); | |
26511 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 26512 | temp1 = true; |
d14a1e28 RD |
26513 | } |
26514 | { | |
26515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26516 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
26517 | ||
26518 | wxPyEndAllowThreads(__tstate); | |
26519 | if (PyErr_Occurred()) SWIG_fail; | |
26520 | } | |
15afbcd0 | 26521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
26522 | { |
26523 | if (temp1) | |
26524 | delete arg1; | |
26525 | } | |
26526 | return resultobj; | |
26527 | fail: | |
26528 | { | |
26529 | if (temp1) | |
26530 | delete arg1; | |
26531 | } | |
26532 | return NULL; | |
26533 | } | |
26534 | ||
26535 | ||
c32bde28 | 26536 | static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26537 | PyObject *resultobj; |
26538 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
26539 | PyObject * obj0 = 0 ; | |
26540 | char *kwnames[] = { | |
26541 | (char *) "self", NULL | |
26542 | }; | |
26543 | ||
26544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26547 | { |
26548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26549 | delete arg1; | |
26550 | ||
26551 | wxPyEndAllowThreads(__tstate); | |
26552 | if (PyErr_Occurred()) SWIG_fail; | |
26553 | } | |
26554 | Py_INCREF(Py_None); resultobj = Py_None; | |
26555 | return resultobj; | |
26556 | fail: | |
26557 | return NULL; | |
26558 | } | |
26559 | ||
26560 | ||
c32bde28 | 26561 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
26562 | PyObject *resultobj; |
26563 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
093d3ff1 | 26564 | wxDataFormatId arg2 ; |
d14a1e28 RD |
26565 | bool result; |
26566 | PyObject * obj0 = 0 ; | |
994141e6 | 26567 | PyObject * obj1 = 0 ; |
d14a1e28 | 26568 | |
994141e6 | 26569 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26572 | { | |
26573 | arg2 = (wxDataFormatId)(SWIG_As_int(obj1)); | |
26574 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26575 | } | |
d14a1e28 RD |
26576 | { |
26577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 26578 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); |
d14a1e28 RD |
26579 | |
26580 | wxPyEndAllowThreads(__tstate); | |
26581 | if (PyErr_Occurred()) SWIG_fail; | |
26582 | } | |
4f89f6a3 RD |
26583 | { |
26584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26585 | } | |
d14a1e28 RD |
26586 | return resultobj; |
26587 | fail: | |
26588 | return NULL; | |
26589 | } | |
26590 | ||
26591 | ||
c32bde28 | 26592 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
26593 | PyObject *resultobj; |
26594 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
093d3ff1 | 26595 | wxDataFormatId arg2 ; |
d14a1e28 RD |
26596 | bool result; |
26597 | PyObject * obj0 = 0 ; | |
994141e6 | 26598 | PyObject * obj1 = 0 ; |
d14a1e28 | 26599 | |
994141e6 | 26600 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26603 | { | |
26604 | arg2 = (wxDataFormatId)(SWIG_As_int(obj1)); | |
26605 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26606 | } | |
d14a1e28 RD |
26607 | { |
26608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 26609 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); |
d14a1e28 RD |
26610 | |
26611 | wxPyEndAllowThreads(__tstate); | |
26612 | if (PyErr_Occurred()) SWIG_fail; | |
26613 | } | |
4f89f6a3 RD |
26614 | { |
26615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26616 | } | |
d14a1e28 RD |
26617 | return resultobj; |
26618 | fail: | |
26619 | return NULL; | |
26620 | } | |
26621 | ||
26622 | ||
c32bde28 | 26623 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
26624 | PyObject *resultobj; |
26625 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
26626 | wxDataFormat *arg2 = 0 ; | |
26627 | bool result; | |
26628 | PyObject * obj0 = 0 ; | |
26629 | PyObject * obj1 = 0 ; | |
26630 | ||
26631 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26634 | { | |
26635 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
26636 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26637 | if (arg2 == NULL) { | |
26638 | SWIG_null_ref("wxDataFormat"); | |
26639 | } | |
26640 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26641 | } |
26642 | { | |
26643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26644 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
26645 | ||
26646 | wxPyEndAllowThreads(__tstate); | |
26647 | if (PyErr_Occurred()) SWIG_fail; | |
26648 | } | |
4f89f6a3 RD |
26649 | { |
26650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26651 | } | |
d14a1e28 RD |
26652 | return resultobj; |
26653 | fail: | |
26654 | return NULL; | |
26655 | } | |
26656 | ||
26657 | ||
26658 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
26659 | int argc; | |
26660 | PyObject *argv[3]; | |
26661 | int ii; | |
26662 | ||
26663 | argc = PyObject_Length(args); | |
26664 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
26665 | argv[ii] = PyTuple_GetItem(args,ii); | |
26666 | } | |
26667 | if (argc == 2) { | |
26668 | int _v; | |
26669 | { | |
26670 | void *ptr; | |
15afbcd0 | 26671 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
26672 | _v = 0; |
26673 | PyErr_Clear(); | |
26674 | } else { | |
26675 | _v = 1; | |
26676 | } | |
26677 | } | |
26678 | if (_v) { | |
26679 | { | |
093d3ff1 | 26680 | void *ptr = 0; |
15afbcd0 | 26681 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
26682 | _v = 0; |
26683 | PyErr_Clear(); | |
26684 | } else { | |
093d3ff1 | 26685 | _v = (ptr != 0); |
d14a1e28 RD |
26686 | } |
26687 | } | |
26688 | if (_v) { | |
26689 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
26690 | } | |
26691 | } | |
26692 | } | |
26693 | if (argc == 2) { | |
26694 | int _v; | |
26695 | { | |
26696 | void *ptr; | |
15afbcd0 | 26697 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
26698 | _v = 0; |
26699 | PyErr_Clear(); | |
26700 | } else { | |
26701 | _v = 1; | |
26702 | } | |
26703 | } | |
26704 | if (_v) { | |
c32bde28 | 26705 | _v = SWIG_Check_int(argv[1]); |
d14a1e28 RD |
26706 | if (_v) { |
26707 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
26708 | } | |
26709 | } | |
26710 | } | |
26711 | ||
093d3ff1 RD |
26712 | Py_INCREF(Py_NotImplemented); |
26713 | return Py_NotImplemented; | |
d14a1e28 RD |
26714 | } |
26715 | ||
26716 | ||
c32bde28 | 26717 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
26718 | PyObject *resultobj; |
26719 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
26720 | wxDataFormat *arg2 = 0 ; | |
26721 | bool result; | |
26722 | PyObject * obj0 = 0 ; | |
26723 | PyObject * obj1 = 0 ; | |
26724 | ||
26725 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26726 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26727 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26728 | { | |
26729 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
26730 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26731 | if (arg2 == NULL) { | |
26732 | SWIG_null_ref("wxDataFormat"); | |
26733 | } | |
26734 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
26735 | } |
26736 | { | |
26737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26738 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
26739 | ||
26740 | wxPyEndAllowThreads(__tstate); | |
26741 | if (PyErr_Occurred()) SWIG_fail; | |
26742 | } | |
4f89f6a3 RD |
26743 | { |
26744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26745 | } | |
d14a1e28 RD |
26746 | return resultobj; |
26747 | fail: | |
26748 | return NULL; | |
26749 | } | |
26750 | ||
26751 | ||
26752 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
26753 | int argc; | |
26754 | PyObject *argv[3]; | |
26755 | int ii; | |
26756 | ||
26757 | argc = PyObject_Length(args); | |
26758 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
26759 | argv[ii] = PyTuple_GetItem(args,ii); | |
26760 | } | |
26761 | if (argc == 2) { | |
26762 | int _v; | |
26763 | { | |
26764 | void *ptr; | |
15afbcd0 | 26765 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
26766 | _v = 0; |
26767 | PyErr_Clear(); | |
26768 | } else { | |
26769 | _v = 1; | |
26770 | } | |
26771 | } | |
26772 | if (_v) { | |
26773 | { | |
093d3ff1 | 26774 | void *ptr = 0; |
15afbcd0 | 26775 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
26776 | _v = 0; |
26777 | PyErr_Clear(); | |
26778 | } else { | |
093d3ff1 | 26779 | _v = (ptr != 0); |
d14a1e28 RD |
26780 | } |
26781 | } | |
26782 | if (_v) { | |
26783 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
26784 | } | |
26785 | } | |
26786 | } | |
26787 | if (argc == 2) { | |
26788 | int _v; | |
26789 | { | |
26790 | void *ptr; | |
15afbcd0 | 26791 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
26792 | _v = 0; |
26793 | PyErr_Clear(); | |
26794 | } else { | |
26795 | _v = 1; | |
26796 | } | |
26797 | } | |
26798 | if (_v) { | |
c32bde28 | 26799 | _v = SWIG_Check_int(argv[1]); |
d14a1e28 RD |
26800 | if (_v) { |
26801 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
26802 | } | |
26803 | } | |
26804 | } | |
26805 | ||
093d3ff1 RD |
26806 | Py_INCREF(Py_NotImplemented); |
26807 | return Py_NotImplemented; | |
d14a1e28 RD |
26808 | } |
26809 | ||
26810 | ||
c32bde28 | 26811 | static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26812 | PyObject *resultobj; |
26813 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
093d3ff1 | 26814 | wxDataFormatId arg2 ; |
d14a1e28 | 26815 | PyObject * obj0 = 0 ; |
994141e6 | 26816 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26817 | char *kwnames[] = { |
26818 | (char *) "self",(char *) "format", NULL | |
26819 | }; | |
26820 | ||
994141e6 | 26821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26822 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26823 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26824 | { | |
26825 | arg2 = (wxDataFormatId)(SWIG_As_int(obj1)); | |
26826 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26827 | } | |
d14a1e28 RD |
26828 | { |
26829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26830 | (arg1)->SetType((wxDataFormatId )arg2); | |
26831 | ||
26832 | wxPyEndAllowThreads(__tstate); | |
26833 | if (PyErr_Occurred()) SWIG_fail; | |
26834 | } | |
26835 | Py_INCREF(Py_None); resultobj = Py_None; | |
26836 | return resultobj; | |
26837 | fail: | |
26838 | return NULL; | |
26839 | } | |
26840 | ||
26841 | ||
c32bde28 | 26842 | static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26843 | PyObject *resultobj; |
26844 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
093d3ff1 | 26845 | wxDataFormatId result; |
d14a1e28 RD |
26846 | PyObject * obj0 = 0 ; |
26847 | char *kwnames[] = { | |
26848 | (char *) "self", NULL | |
26849 | }; | |
26850 | ||
26851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26852 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26854 | { |
26855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 26856 | result = (wxDataFormatId)((wxDataFormat const *)arg1)->GetType(); |
d14a1e28 RD |
26857 | |
26858 | wxPyEndAllowThreads(__tstate); | |
26859 | if (PyErr_Occurred()) SWIG_fail; | |
26860 | } | |
093d3ff1 | 26861 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
26862 | return resultobj; |
26863 | fail: | |
26864 | return NULL; | |
26865 | } | |
26866 | ||
26867 | ||
c32bde28 | 26868 | static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26869 | PyObject *resultobj; |
26870 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
26871 | wxString result; | |
26872 | PyObject * obj0 = 0 ; | |
26873 | char *kwnames[] = { | |
26874 | (char *) "self", NULL | |
26875 | }; | |
26876 | ||
26877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26878 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26879 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26880 | { |
26881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26882 | result = ((wxDataFormat const *)arg1)->GetId(); | |
26883 | ||
26884 | wxPyEndAllowThreads(__tstate); | |
26885 | if (PyErr_Occurred()) SWIG_fail; | |
26886 | } | |
26887 | { | |
26888 | #if wxUSE_UNICODE | |
26889 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26890 | #else | |
26891 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26892 | #endif | |
26893 | } | |
26894 | return resultobj; | |
26895 | fail: | |
26896 | return NULL; | |
26897 | } | |
26898 | ||
26899 | ||
c32bde28 | 26900 | static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26901 | PyObject *resultobj; |
26902 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
26903 | wxString *arg2 = 0 ; | |
ae8162c8 | 26904 | bool temp2 = false ; |
d14a1e28 RD |
26905 | PyObject * obj0 = 0 ; |
26906 | PyObject * obj1 = 0 ; | |
26907 | char *kwnames[] = { | |
26908 | (char *) "self",(char *) "format", NULL | |
26909 | }; | |
26910 | ||
26911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); |
26913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26914 | { |
26915 | arg2 = wxString_in_helper(obj1); | |
26916 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 26917 | temp2 = true; |
d14a1e28 RD |
26918 | } |
26919 | { | |
26920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26921 | (arg1)->SetId((wxString const &)*arg2); | |
26922 | ||
26923 | wxPyEndAllowThreads(__tstate); | |
26924 | if (PyErr_Occurred()) SWIG_fail; | |
26925 | } | |
26926 | Py_INCREF(Py_None); resultobj = Py_None; | |
26927 | { | |
26928 | if (temp2) | |
26929 | delete arg2; | |
26930 | } | |
26931 | return resultobj; | |
26932 | fail: | |
26933 | { | |
26934 | if (temp2) | |
26935 | delete arg2; | |
26936 | } | |
26937 | return NULL; | |
26938 | } | |
26939 | ||
26940 | ||
c32bde28 | 26941 | static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
26942 | PyObject *obj; |
26943 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26944 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
26945 | Py_INCREF(obj); | |
26946 | return Py_BuildValue((char *)""); | |
26947 | } | |
c32bde28 | 26948 | static int _wrap_FormatInvalid_set(PyObject *) { |
d14a1e28 RD |
26949 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); |
26950 | return 1; | |
26951 | } | |
26952 | ||
26953 | ||
093d3ff1 | 26954 | static PyObject *_wrap_FormatInvalid_get(void) { |
d14a1e28 RD |
26955 | PyObject *pyobj; |
26956 | ||
15afbcd0 | 26957 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
26958 | return pyobj; |
26959 | } | |
26960 | ||
26961 | ||
c32bde28 | 26962 | static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26963 | PyObject *resultobj; |
26964 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
26965 | PyObject * obj0 = 0 ; | |
26966 | char *kwnames[] = { | |
26967 | (char *) "self", NULL | |
26968 | }; | |
26969 | ||
26970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26971 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
26972 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26973 | { |
26974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26975 | delete arg1; | |
26976 | ||
26977 | wxPyEndAllowThreads(__tstate); | |
26978 | if (PyErr_Occurred()) SWIG_fail; | |
26979 | } | |
26980 | Py_INCREF(Py_None); resultobj = Py_None; | |
26981 | return resultobj; | |
26982 | fail: | |
26983 | return NULL; | |
26984 | } | |
26985 | ||
26986 | ||
c32bde28 | 26987 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26988 | PyObject *resultobj; |
26989 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
093d3ff1 RD |
26990 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
26991 | SwigValueWrapper<wxDataFormat > result; | |
d14a1e28 | 26992 | PyObject * obj0 = 0 ; |
994141e6 | 26993 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26994 | char *kwnames[] = { |
26995 | (char *) "self",(char *) "dir", NULL | |
26996 | }; | |
26997 | ||
994141e6 | 26998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26999 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27000 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 27001 | if (obj1) { |
093d3ff1 RD |
27002 | { |
27003 | arg2 = (wxDataObject::Direction)(SWIG_As_int(obj1)); | |
27004 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27005 | } | |
994141e6 | 27006 | } |
d14a1e28 RD |
27007 | { |
27008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27009 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
27010 | ||
27011 | wxPyEndAllowThreads(__tstate); | |
27012 | if (PyErr_Occurred()) SWIG_fail; | |
27013 | } | |
27014 | { | |
27015 | wxDataFormat * resultptr; | |
093d3ff1 | 27016 | resultptr = new wxDataFormat((wxDataFormat &)(result)); |
15afbcd0 | 27017 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
27018 | } |
27019 | return resultobj; | |
27020 | fail: | |
27021 | return NULL; | |
27022 | } | |
27023 | ||
27024 | ||
c32bde28 | 27025 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27026 | PyObject *resultobj; |
27027 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
093d3ff1 | 27028 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
d14a1e28 RD |
27029 | size_t result; |
27030 | PyObject * obj0 = 0 ; | |
994141e6 | 27031 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27032 | char *kwnames[] = { |
27033 | (char *) "self",(char *) "dir", NULL | |
27034 | }; | |
27035 | ||
994141e6 | 27036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27037 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27038 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 27039 | if (obj1) { |
093d3ff1 RD |
27040 | { |
27041 | arg2 = (wxDataObject::Direction)(SWIG_As_int(obj1)); | |
27042 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27043 | } | |
994141e6 | 27044 | } |
d14a1e28 RD |
27045 | { |
27046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27047 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
27048 | ||
27049 | wxPyEndAllowThreads(__tstate); | |
27050 | if (PyErr_Occurred()) SWIG_fail; | |
27051 | } | |
093d3ff1 RD |
27052 | { |
27053 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
27054 | } | |
d14a1e28 RD |
27055 | return resultobj; |
27056 | fail: | |
27057 | return NULL; | |
27058 | } | |
27059 | ||
27060 | ||
c32bde28 | 27061 | static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27062 | PyObject *resultobj; |
27063 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
27064 | wxDataFormat *arg2 = 0 ; | |
093d3ff1 | 27065 | wxDataObject::Direction arg3 = (wxDataObject::Direction) wxDataObject::Get ; |
d14a1e28 RD |
27066 | bool result; |
27067 | PyObject * obj0 = 0 ; | |
27068 | PyObject * obj1 = 0 ; | |
994141e6 | 27069 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27070 | char *kwnames[] = { |
27071 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
27072 | }; | |
27073 | ||
994141e6 | 27074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
27075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27077 | { | |
27078 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27079 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27080 | if (arg2 == NULL) { | |
27081 | SWIG_null_ref("wxDataFormat"); | |
27082 | } | |
27083 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 27084 | } |
994141e6 | 27085 | if (obj2) { |
093d3ff1 RD |
27086 | { |
27087 | arg3 = (wxDataObject::Direction)(SWIG_As_int(obj2)); | |
27088 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27089 | } | |
994141e6 | 27090 | } |
d14a1e28 RD |
27091 | { |
27092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27093 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
27094 | ||
27095 | wxPyEndAllowThreads(__tstate); | |
27096 | if (PyErr_Occurred()) SWIG_fail; | |
27097 | } | |
4f89f6a3 RD |
27098 | { |
27099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27100 | } | |
d14a1e28 RD |
27101 | return resultobj; |
27102 | fail: | |
27103 | return NULL; | |
27104 | } | |
27105 | ||
27106 | ||
c32bde28 | 27107 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27108 | PyObject *resultobj; |
27109 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
27110 | wxDataFormat *arg2 = 0 ; | |
27111 | size_t result; | |
27112 | PyObject * obj0 = 0 ; | |
27113 | PyObject * obj1 = 0 ; | |
27114 | char *kwnames[] = { | |
27115 | (char *) "self",(char *) "format", NULL | |
27116 | }; | |
27117 | ||
27118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27121 | { | |
27122 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27123 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27124 | if (arg2 == NULL) { | |
27125 | SWIG_null_ref("wxDataFormat"); | |
27126 | } | |
27127 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27128 | } |
27129 | { | |
27130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27131 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
27132 | ||
27133 | wxPyEndAllowThreads(__tstate); | |
27134 | if (PyErr_Occurred()) SWIG_fail; | |
27135 | } | |
093d3ff1 RD |
27136 | { |
27137 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
27138 | } | |
d14a1e28 RD |
27139 | return resultobj; |
27140 | fail: | |
27141 | return NULL; | |
27142 | } | |
27143 | ||
27144 | ||
c32bde28 | 27145 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27146 | PyObject *resultobj; |
27147 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
093d3ff1 | 27148 | wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ; |
1a10c483 | 27149 | PyObject *result; |
d14a1e28 RD |
27150 | PyObject * obj0 = 0 ; |
27151 | PyObject * obj1 = 0 ; | |
27152 | char *kwnames[] = { | |
1a10c483 | 27153 | (char *) "self",(char *) "dir", NULL |
d14a1e28 RD |
27154 | }; |
27155 | ||
1a10c483 | 27156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a10c483 | 27159 | if (obj1) { |
093d3ff1 RD |
27160 | { |
27161 | arg2 = (wxDataObject::Direction)(SWIG_As_int(obj1)); | |
27162 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27163 | } | |
994141e6 | 27164 | } |
d14a1e28 RD |
27165 | { |
27166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 27167 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d14a1e28 RD |
27168 | |
27169 | wxPyEndAllowThreads(__tstate); | |
27170 | if (PyErr_Occurred()) SWIG_fail; | |
27171 | } | |
1a10c483 | 27172 | resultobj = result; |
d14a1e28 RD |
27173 | return resultobj; |
27174 | fail: | |
27175 | return NULL; | |
27176 | } | |
27177 | ||
27178 | ||
c32bde28 | 27179 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27180 | PyObject *resultobj; |
27181 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
27182 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 27183 | PyObject *result; |
d14a1e28 RD |
27184 | PyObject * obj0 = 0 ; |
27185 | PyObject * obj1 = 0 ; | |
d14a1e28 | 27186 | char *kwnames[] = { |
1a10c483 | 27187 | (char *) "self",(char *) "format", NULL |
d14a1e28 RD |
27188 | }; |
27189 | ||
1a10c483 | 27190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27193 | { | |
27194 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27195 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27196 | if (arg2 == NULL) { | |
27197 | SWIG_null_ref("wxDataFormat"); | |
27198 | } | |
27199 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 27200 | } |
d14a1e28 RD |
27201 | { |
27202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 27203 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d14a1e28 RD |
27204 | |
27205 | wxPyEndAllowThreads(__tstate); | |
27206 | if (PyErr_Occurred()) SWIG_fail; | |
27207 | } | |
1a10c483 | 27208 | resultobj = result; |
d14a1e28 RD |
27209 | return resultobj; |
27210 | fail: | |
27211 | return NULL; | |
27212 | } | |
27213 | ||
27214 | ||
c32bde28 | 27215 | static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27216 | PyObject *resultobj; |
27217 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
27218 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 27219 | PyObject *arg3 = (PyObject *) 0 ; |
d14a1e28 RD |
27220 | bool result; |
27221 | PyObject * obj0 = 0 ; | |
27222 | PyObject * obj1 = 0 ; | |
27223 | PyObject * obj2 = 0 ; | |
d14a1e28 | 27224 | char *kwnames[] = { |
1a10c483 | 27225 | (char *) "self",(char *) "format",(char *) "data", NULL |
d14a1e28 RD |
27226 | }; |
27227 | ||
1a10c483 | 27228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
27229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
27230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27231 | { | |
27232 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27233 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27234 | if (arg2 == NULL) { | |
27235 | SWIG_null_ref("wxDataFormat"); | |
27236 | } | |
27237 | if (SWIG_arg_fail(2)) SWIG_fail; | |
a41e16b6 | 27238 | } |
1a10c483 | 27239 | arg3 = obj2; |
d14a1e28 RD |
27240 | { |
27241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 27242 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d14a1e28 RD |
27243 | |
27244 | wxPyEndAllowThreads(__tstate); | |
27245 | if (PyErr_Occurred()) SWIG_fail; | |
27246 | } | |
4f89f6a3 RD |
27247 | { |
27248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27249 | } | |
d14a1e28 RD |
27250 | return resultobj; |
27251 | fail: | |
27252 | return NULL; | |
27253 | } | |
27254 | ||
27255 | ||
c32bde28 | 27256 | static PyObject * DataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27257 | PyObject *obj; |
27258 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27259 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
27260 | Py_INCREF(obj); | |
27261 | return Py_BuildValue((char *)""); | |
27262 | } | |
c32bde28 | 27263 | static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27264 | PyObject *resultobj; |
27265 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
27266 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
27267 | wxDataObjectSimple *result; | |
27268 | PyObject * obj0 = 0 ; | |
27269 | char *kwnames[] = { | |
27270 | (char *) "format", NULL | |
27271 | }; | |
27272 | ||
27273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
27274 | if (obj0) { | |
093d3ff1 RD |
27275 | { |
27276 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27277 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27278 | if (arg1 == NULL) { | |
27279 | SWIG_null_ref("wxDataFormat"); | |
27280 | } | |
27281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27282 | } |
27283 | } | |
27284 | { | |
27285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27286 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
27287 | ||
27288 | wxPyEndAllowThreads(__tstate); | |
27289 | if (PyErr_Occurred()) SWIG_fail; | |
27290 | } | |
15afbcd0 | 27291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); |
d14a1e28 RD |
27292 | return resultobj; |
27293 | fail: | |
27294 | return NULL; | |
27295 | } | |
27296 | ||
27297 | ||
c32bde28 | 27298 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27299 | PyObject *resultobj; |
27300 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
27301 | wxDataFormat *result; | |
27302 | PyObject * obj0 = 0 ; | |
27303 | char *kwnames[] = { | |
27304 | (char *) "self", NULL | |
27305 | }; | |
27306 | ||
27307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27310 | { |
27311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27312 | { | |
27313 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
27314 | result = (wxDataFormat *) &_result_ref; | |
27315 | } | |
27316 | ||
27317 | wxPyEndAllowThreads(__tstate); | |
27318 | if (PyErr_Occurred()) SWIG_fail; | |
27319 | } | |
15afbcd0 | 27320 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
27321 | return resultobj; |
27322 | fail: | |
27323 | return NULL; | |
27324 | } | |
27325 | ||
27326 | ||
c32bde28 | 27327 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27328 | PyObject *resultobj; |
27329 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
27330 | wxDataFormat *arg2 = 0 ; | |
27331 | PyObject * obj0 = 0 ; | |
27332 | PyObject * obj1 = 0 ; | |
27333 | char *kwnames[] = { | |
27334 | (char *) "self",(char *) "format", NULL | |
27335 | }; | |
27336 | ||
27337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27340 | { | |
27341 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27342 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27343 | if (arg2 == NULL) { | |
27344 | SWIG_null_ref("wxDataFormat"); | |
27345 | } | |
27346 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27347 | } |
27348 | { | |
27349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27350 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
27351 | ||
27352 | wxPyEndAllowThreads(__tstate); | |
27353 | if (PyErr_Occurred()) SWIG_fail; | |
27354 | } | |
27355 | Py_INCREF(Py_None); resultobj = Py_None; | |
27356 | return resultobj; | |
27357 | fail: | |
27358 | return NULL; | |
27359 | } | |
27360 | ||
27361 | ||
c32bde28 | 27362 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
1a10c483 RD |
27363 | PyObject *resultobj; |
27364 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
27365 | size_t result; | |
27366 | PyObject * obj0 = 0 ; | |
27367 | char *kwnames[] = { | |
27368 | (char *) "self", NULL | |
27369 | }; | |
27370 | ||
27371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27372 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27373 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a10c483 RD |
27374 | { |
27375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27376 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
27377 | ||
27378 | wxPyEndAllowThreads(__tstate); | |
27379 | if (PyErr_Occurred()) SWIG_fail; | |
27380 | } | |
093d3ff1 RD |
27381 | { |
27382 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
27383 | } | |
1a10c483 RD |
27384 | return resultobj; |
27385 | fail: | |
27386 | return NULL; | |
27387 | } | |
27388 | ||
27389 | ||
c32bde28 | 27390 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
1a10c483 RD |
27391 | PyObject *resultobj; |
27392 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
27393 | PyObject *result; | |
27394 | PyObject * obj0 = 0 ; | |
27395 | char *kwnames[] = { | |
27396 | (char *) "self", NULL | |
27397 | }; | |
27398 | ||
27399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a10c483 RD |
27402 | { |
27403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27404 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
27405 | ||
27406 | wxPyEndAllowThreads(__tstate); | |
27407 | if (PyErr_Occurred()) SWIG_fail; | |
27408 | } | |
27409 | resultobj = result; | |
27410 | return resultobj; | |
27411 | fail: | |
27412 | return NULL; | |
27413 | } | |
27414 | ||
27415 | ||
c32bde28 | 27416 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
1a10c483 RD |
27417 | PyObject *resultobj; |
27418 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
27419 | PyObject *arg2 = (PyObject *) 0 ; | |
27420 | bool result; | |
27421 | PyObject * obj0 = 0 ; | |
27422 | PyObject * obj1 = 0 ; | |
27423 | char *kwnames[] = { | |
27424 | (char *) "self",(char *) "data", NULL | |
27425 | }; | |
27426 | ||
27427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a10c483 RD |
27430 | arg2 = obj1; |
27431 | { | |
27432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27433 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
27434 | ||
27435 | wxPyEndAllowThreads(__tstate); | |
27436 | if (PyErr_Occurred()) SWIG_fail; | |
27437 | } | |
27438 | { | |
27439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27440 | } | |
27441 | return resultobj; | |
27442 | fail: | |
27443 | return NULL; | |
27444 | } | |
27445 | ||
27446 | ||
c32bde28 | 27447 | static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27448 | PyObject *obj; |
27449 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27450 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
27451 | Py_INCREF(obj); | |
27452 | return Py_BuildValue((char *)""); | |
27453 | } | |
c32bde28 | 27454 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27455 | PyObject *resultobj; |
27456 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
27457 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
27458 | wxPyDataObjectSimple *result; | |
27459 | PyObject * obj0 = 0 ; | |
27460 | char *kwnames[] = { | |
27461 | (char *) "format", NULL | |
27462 | }; | |
27463 | ||
27464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
27465 | if (obj0) { | |
093d3ff1 RD |
27466 | { |
27467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
27468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27469 | if (arg1 == NULL) { | |
27470 | SWIG_null_ref("wxDataFormat"); | |
27471 | } | |
27472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27473 | } |
27474 | } | |
27475 | { | |
27476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27477 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
27478 | ||
27479 | wxPyEndAllowThreads(__tstate); | |
27480 | if (PyErr_Occurred()) SWIG_fail; | |
27481 | } | |
15afbcd0 | 27482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); |
d14a1e28 RD |
27483 | return resultobj; |
27484 | fail: | |
27485 | return NULL; | |
27486 | } | |
27487 | ||
27488 | ||
c32bde28 | 27489 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27490 | PyObject *resultobj; |
27491 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
27492 | PyObject *arg2 = (PyObject *) 0 ; | |
27493 | PyObject *arg3 = (PyObject *) 0 ; | |
27494 | PyObject * obj0 = 0 ; | |
27495 | PyObject * obj1 = 0 ; | |
27496 | PyObject * obj2 = 0 ; | |
27497 | char *kwnames[] = { | |
27498 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27499 | }; | |
27500 | ||
27501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
27502 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDataObjectSimple, SWIG_POINTER_EXCEPTION | 0); |
27503 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27504 | arg2 = obj1; |
27505 | arg3 = obj2; | |
27506 | { | |
27507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27508 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27509 | ||
27510 | wxPyEndAllowThreads(__tstate); | |
27511 | if (PyErr_Occurred()) SWIG_fail; | |
27512 | } | |
27513 | Py_INCREF(Py_None); resultobj = Py_None; | |
27514 | return resultobj; | |
27515 | fail: | |
27516 | return NULL; | |
27517 | } | |
27518 | ||
27519 | ||
c32bde28 | 27520 | static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27521 | PyObject *obj; |
27522 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27523 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
27524 | Py_INCREF(obj); | |
27525 | return Py_BuildValue((char *)""); | |
27526 | } | |
c32bde28 | 27527 | static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27528 | PyObject *resultobj; |
27529 | wxDataObjectComposite *result; | |
27530 | char *kwnames[] = { | |
27531 | NULL | |
27532 | }; | |
27533 | ||
27534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
27535 | { | |
27536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27537 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
27538 | ||
27539 | wxPyEndAllowThreads(__tstate); | |
27540 | if (PyErr_Occurred()) SWIG_fail; | |
27541 | } | |
15afbcd0 | 27542 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); |
d14a1e28 RD |
27543 | return resultobj; |
27544 | fail: | |
27545 | return NULL; | |
27546 | } | |
27547 | ||
27548 | ||
c32bde28 | 27549 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27550 | PyObject *resultobj; |
27551 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
27552 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
ae8162c8 | 27553 | bool arg3 = (bool) false ; |
d14a1e28 RD |
27554 | PyObject * obj0 = 0 ; |
27555 | PyObject * obj1 = 0 ; | |
994141e6 | 27556 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27557 | char *kwnames[] = { |
27558 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
27559 | }; | |
27560 | ||
994141e6 | 27561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
27562 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObjectComposite, SWIG_POINTER_EXCEPTION | 0); |
27563 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27564 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
27565 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 27566 | if (obj2) { |
093d3ff1 RD |
27567 | { |
27568 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
27569 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27570 | } | |
994141e6 | 27571 | } |
d14a1e28 RD |
27572 | { |
27573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27574 | (arg1)->Add(arg2,arg3); | |
27575 | ||
27576 | wxPyEndAllowThreads(__tstate); | |
27577 | if (PyErr_Occurred()) SWIG_fail; | |
27578 | } | |
27579 | Py_INCREF(Py_None); resultobj = Py_None; | |
27580 | return resultobj; | |
27581 | fail: | |
27582 | return NULL; | |
27583 | } | |
27584 | ||
27585 | ||
c32bde28 | 27586 | static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27587 | PyObject *obj; |
27588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27589 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
27590 | Py_INCREF(obj); | |
27591 | return Py_BuildValue((char *)""); | |
27592 | } | |
c32bde28 | 27593 | static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27594 | PyObject *resultobj; |
27595 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
27596 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27597 | wxTextDataObject *result; | |
ae8162c8 | 27598 | bool temp1 = false ; |
d14a1e28 RD |
27599 | PyObject * obj0 = 0 ; |
27600 | char *kwnames[] = { | |
27601 | (char *) "text", NULL | |
27602 | }; | |
27603 | ||
27604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
27605 | if (obj0) { | |
27606 | { | |
27607 | arg1 = wxString_in_helper(obj0); | |
27608 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 27609 | temp1 = true; |
d14a1e28 RD |
27610 | } |
27611 | } | |
27612 | { | |
27613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27614 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
27615 | ||
27616 | wxPyEndAllowThreads(__tstate); | |
27617 | if (PyErr_Occurred()) SWIG_fail; | |
27618 | } | |
15afbcd0 | 27619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); |
d14a1e28 RD |
27620 | { |
27621 | if (temp1) | |
27622 | delete arg1; | |
27623 | } | |
27624 | return resultobj; | |
27625 | fail: | |
27626 | { | |
27627 | if (temp1) | |
27628 | delete arg1; | |
27629 | } | |
27630 | return NULL; | |
27631 | } | |
27632 | ||
27633 | ||
c32bde28 | 27634 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27635 | PyObject *resultobj; |
27636 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
27637 | size_t result; | |
27638 | PyObject * obj0 = 0 ; | |
27639 | char *kwnames[] = { | |
27640 | (char *) "self", NULL | |
27641 | }; | |
27642 | ||
27643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
27645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27646 | { |
27647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27648 | result = (size_t)(arg1)->GetTextLength(); | |
27649 | ||
27650 | wxPyEndAllowThreads(__tstate); | |
27651 | if (PyErr_Occurred()) SWIG_fail; | |
27652 | } | |
093d3ff1 RD |
27653 | { |
27654 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
27655 | } | |
d14a1e28 RD |
27656 | return resultobj; |
27657 | fail: | |
27658 | return NULL; | |
27659 | } | |
27660 | ||
27661 | ||
c32bde28 | 27662 | static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27663 | PyObject *resultobj; |
27664 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
27665 | wxString result; | |
27666 | PyObject * obj0 = 0 ; | |
27667 | char *kwnames[] = { | |
27668 | (char *) "self", NULL | |
27669 | }; | |
27670 | ||
27671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
27673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27674 | { |
27675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27676 | result = (arg1)->GetText(); | |
27677 | ||
27678 | wxPyEndAllowThreads(__tstate); | |
27679 | if (PyErr_Occurred()) SWIG_fail; | |
27680 | } | |
27681 | { | |
27682 | #if wxUSE_UNICODE | |
27683 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27684 | #else | |
27685 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27686 | #endif | |
27687 | } | |
27688 | return resultobj; | |
27689 | fail: | |
27690 | return NULL; | |
27691 | } | |
27692 | ||
27693 | ||
c32bde28 | 27694 | static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27695 | PyObject *resultobj; |
27696 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
27697 | wxString *arg2 = 0 ; | |
ae8162c8 | 27698 | bool temp2 = false ; |
d14a1e28 RD |
27699 | PyObject * obj0 = 0 ; |
27700 | PyObject * obj1 = 0 ; | |
27701 | char *kwnames[] = { | |
27702 | (char *) "self",(char *) "text", NULL | |
27703 | }; | |
27704 | ||
27705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27706 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
27707 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27708 | { |
27709 | arg2 = wxString_in_helper(obj1); | |
27710 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27711 | temp2 = true; |
d14a1e28 RD |
27712 | } |
27713 | { | |
27714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27715 | (arg1)->SetText((wxString const &)*arg2); | |
27716 | ||
27717 | wxPyEndAllowThreads(__tstate); | |
27718 | if (PyErr_Occurred()) SWIG_fail; | |
27719 | } | |
27720 | Py_INCREF(Py_None); resultobj = Py_None; | |
27721 | { | |
27722 | if (temp2) | |
27723 | delete arg2; | |
27724 | } | |
27725 | return resultobj; | |
27726 | fail: | |
27727 | { | |
27728 | if (temp2) | |
27729 | delete arg2; | |
27730 | } | |
27731 | return NULL; | |
27732 | } | |
27733 | ||
27734 | ||
c32bde28 | 27735 | static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27736 | PyObject *obj; |
27737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27738 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
27739 | Py_INCREF(obj); | |
27740 | return Py_BuildValue((char *)""); | |
27741 | } | |
c32bde28 | 27742 | static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27743 | PyObject *resultobj; |
27744 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
27745 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27746 | wxPyTextDataObject *result; | |
ae8162c8 | 27747 | bool temp1 = false ; |
d14a1e28 RD |
27748 | PyObject * obj0 = 0 ; |
27749 | char *kwnames[] = { | |
27750 | (char *) "text", NULL | |
27751 | }; | |
27752 | ||
27753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
27754 | if (obj0) { | |
27755 | { | |
27756 | arg1 = wxString_in_helper(obj0); | |
27757 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 27758 | temp1 = true; |
d14a1e28 RD |
27759 | } |
27760 | } | |
27761 | { | |
27762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27763 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
27764 | ||
27765 | wxPyEndAllowThreads(__tstate); | |
27766 | if (PyErr_Occurred()) SWIG_fail; | |
27767 | } | |
15afbcd0 | 27768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); |
d14a1e28 RD |
27769 | { |
27770 | if (temp1) | |
27771 | delete arg1; | |
27772 | } | |
27773 | return resultobj; | |
27774 | fail: | |
27775 | { | |
27776 | if (temp1) | |
27777 | delete arg1; | |
27778 | } | |
27779 | return NULL; | |
27780 | } | |
27781 | ||
27782 | ||
c32bde28 | 27783 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27784 | PyObject *resultobj; |
27785 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
27786 | PyObject *arg2 = (PyObject *) 0 ; | |
27787 | PyObject *arg3 = (PyObject *) 0 ; | |
27788 | PyObject * obj0 = 0 ; | |
27789 | PyObject * obj1 = 0 ; | |
27790 | PyObject * obj2 = 0 ; | |
27791 | char *kwnames[] = { | |
27792 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27793 | }; | |
27794 | ||
27795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
27796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDataObject, SWIG_POINTER_EXCEPTION | 0); |
27797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27798 | arg2 = obj1; |
27799 | arg3 = obj2; | |
27800 | { | |
27801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27802 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27803 | ||
27804 | wxPyEndAllowThreads(__tstate); | |
27805 | if (PyErr_Occurred()) SWIG_fail; | |
27806 | } | |
27807 | Py_INCREF(Py_None); resultobj = Py_None; | |
27808 | return resultobj; | |
27809 | fail: | |
27810 | return NULL; | |
27811 | } | |
27812 | ||
27813 | ||
c32bde28 | 27814 | static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27815 | PyObject *obj; |
27816 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27817 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
27818 | Py_INCREF(obj); | |
27819 | return Py_BuildValue((char *)""); | |
27820 | } | |
c32bde28 | 27821 | static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27822 | PyObject *resultobj; |
27823 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
27824 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
27825 | wxBitmapDataObject *result; | |
27826 | PyObject * obj0 = 0 ; | |
27827 | char *kwnames[] = { | |
27828 | (char *) "bitmap", NULL | |
27829 | }; | |
27830 | ||
27831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
27832 | if (obj0) { | |
093d3ff1 RD |
27833 | { |
27834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
27835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27836 | if (arg1 == NULL) { | |
27837 | SWIG_null_ref("wxBitmap"); | |
27838 | } | |
27839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27840 | } |
27841 | } | |
27842 | { | |
27843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27844 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
27845 | ||
27846 | wxPyEndAllowThreads(__tstate); | |
27847 | if (PyErr_Occurred()) SWIG_fail; | |
27848 | } | |
15afbcd0 | 27849 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); |
d14a1e28 RD |
27850 | return resultobj; |
27851 | fail: | |
27852 | return NULL; | |
27853 | } | |
27854 | ||
27855 | ||
c32bde28 | 27856 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27857 | PyObject *resultobj; |
27858 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
27859 | wxBitmap result; | |
27860 | PyObject * obj0 = 0 ; | |
27861 | char *kwnames[] = { | |
27862 | (char *) "self", NULL | |
27863 | }; | |
27864 | ||
27865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
27867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27868 | { |
27869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27870 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
27871 | ||
27872 | wxPyEndAllowThreads(__tstate); | |
27873 | if (PyErr_Occurred()) SWIG_fail; | |
27874 | } | |
27875 | { | |
27876 | wxBitmap * resultptr; | |
093d3ff1 | 27877 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 27878 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
27879 | } |
27880 | return resultobj; | |
27881 | fail: | |
27882 | return NULL; | |
27883 | } | |
27884 | ||
27885 | ||
c32bde28 | 27886 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27887 | PyObject *resultobj; |
27888 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
27889 | wxBitmap *arg2 = 0 ; | |
27890 | PyObject * obj0 = 0 ; | |
27891 | PyObject * obj1 = 0 ; | |
27892 | char *kwnames[] = { | |
27893 | (char *) "self",(char *) "bitmap", NULL | |
27894 | }; | |
27895 | ||
27896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
27898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27899 | { | |
27900 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
27901 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27902 | if (arg2 == NULL) { | |
27903 | SWIG_null_ref("wxBitmap"); | |
27904 | } | |
27905 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27906 | } |
27907 | { | |
27908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27909 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
27910 | ||
27911 | wxPyEndAllowThreads(__tstate); | |
27912 | if (PyErr_Occurred()) SWIG_fail; | |
27913 | } | |
27914 | Py_INCREF(Py_None); resultobj = Py_None; | |
27915 | return resultobj; | |
27916 | fail: | |
27917 | return NULL; | |
27918 | } | |
27919 | ||
27920 | ||
c32bde28 | 27921 | static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27922 | PyObject *obj; |
27923 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27924 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
27925 | Py_INCREF(obj); | |
27926 | return Py_BuildValue((char *)""); | |
27927 | } | |
c32bde28 | 27928 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27929 | PyObject *resultobj; |
27930 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
27931 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
27932 | wxPyBitmapDataObject *result; | |
27933 | PyObject * obj0 = 0 ; | |
27934 | char *kwnames[] = { | |
27935 | (char *) "bitmap", NULL | |
27936 | }; | |
27937 | ||
27938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
27939 | if (obj0) { | |
093d3ff1 RD |
27940 | { |
27941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
27942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27943 | if (arg1 == NULL) { | |
27944 | SWIG_null_ref("wxBitmap"); | |
27945 | } | |
27946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27947 | } |
27948 | } | |
27949 | { | |
27950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27951 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
27952 | ||
27953 | wxPyEndAllowThreads(__tstate); | |
27954 | if (PyErr_Occurred()) SWIG_fail; | |
27955 | } | |
15afbcd0 | 27956 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); |
d14a1e28 RD |
27957 | return resultobj; |
27958 | fail: | |
27959 | return NULL; | |
27960 | } | |
27961 | ||
27962 | ||
c32bde28 | 27963 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27964 | PyObject *resultobj; |
27965 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
27966 | PyObject *arg2 = (PyObject *) 0 ; | |
27967 | PyObject *arg3 = (PyObject *) 0 ; | |
27968 | PyObject * obj0 = 0 ; | |
27969 | PyObject * obj1 = 0 ; | |
27970 | PyObject * obj2 = 0 ; | |
27971 | char *kwnames[] = { | |
27972 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27973 | }; | |
27974 | ||
27975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
27976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyBitmapDataObject, SWIG_POINTER_EXCEPTION | 0); |
27977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27978 | arg2 = obj1; |
27979 | arg3 = obj2; | |
27980 | { | |
27981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27982 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27983 | ||
27984 | wxPyEndAllowThreads(__tstate); | |
27985 | if (PyErr_Occurred()) SWIG_fail; | |
27986 | } | |
27987 | Py_INCREF(Py_None); resultobj = Py_None; | |
27988 | return resultobj; | |
27989 | fail: | |
27990 | return NULL; | |
27991 | } | |
27992 | ||
27993 | ||
c32bde28 | 27994 | static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27995 | PyObject *obj; |
27996 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27997 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
27998 | Py_INCREF(obj); | |
27999 | return Py_BuildValue((char *)""); | |
28000 | } | |
c32bde28 | 28001 | static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28002 | PyObject *resultobj; |
28003 | wxFileDataObject *result; | |
28004 | char *kwnames[] = { | |
28005 | NULL | |
28006 | }; | |
28007 | ||
28008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
28009 | { | |
28010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28011 | result = (wxFileDataObject *)new wxFileDataObject(); | |
28012 | ||
28013 | wxPyEndAllowThreads(__tstate); | |
28014 | if (PyErr_Occurred()) SWIG_fail; | |
28015 | } | |
15afbcd0 | 28016 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); |
d14a1e28 RD |
28017 | return resultobj; |
28018 | fail: | |
28019 | return NULL; | |
28020 | } | |
28021 | ||
28022 | ||
c32bde28 | 28023 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28024 | PyObject *resultobj; |
28025 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
28026 | wxArrayString *result; | |
28027 | PyObject * obj0 = 0 ; | |
28028 | char *kwnames[] = { | |
28029 | (char *) "self", NULL | |
28030 | }; | |
28031 | ||
28032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0); |
28034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28035 | { |
28036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28037 | { | |
28038 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
28039 | result = (wxArrayString *) &_result_ref; | |
28040 | } | |
28041 | ||
28042 | wxPyEndAllowThreads(__tstate); | |
28043 | if (PyErr_Occurred()) SWIG_fail; | |
28044 | } | |
28045 | { | |
28046 | resultobj = wxArrayString2PyList_helper(*result); | |
28047 | } | |
28048 | return resultobj; | |
28049 | fail: | |
28050 | return NULL; | |
28051 | } | |
28052 | ||
28053 | ||
c32bde28 | 28054 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) { |
15afbcd0 RD |
28055 | PyObject *resultobj; |
28056 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
28057 | wxString *arg2 = 0 ; | |
ae8162c8 | 28058 | bool temp2 = false ; |
15afbcd0 RD |
28059 | PyObject * obj0 = 0 ; |
28060 | PyObject * obj1 = 0 ; | |
28061 | char *kwnames[] = { | |
28062 | (char *) "self",(char *) "filename", NULL | |
28063 | }; | |
28064 | ||
28065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28066 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_EXCEPTION | 0); |
28067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15afbcd0 RD |
28068 | { |
28069 | arg2 = wxString_in_helper(obj1); | |
28070 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28071 | temp2 = true; |
15afbcd0 RD |
28072 | } |
28073 | { | |
28074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28075 | (arg1)->AddFile((wxString const &)*arg2); | |
28076 | ||
28077 | wxPyEndAllowThreads(__tstate); | |
28078 | if (PyErr_Occurred()) SWIG_fail; | |
28079 | } | |
28080 | Py_INCREF(Py_None); resultobj = Py_None; | |
28081 | { | |
28082 | if (temp2) | |
28083 | delete arg2; | |
28084 | } | |
28085 | return resultobj; | |
28086 | fail: | |
28087 | { | |
28088 | if (temp2) | |
28089 | delete arg2; | |
28090 | } | |
28091 | return NULL; | |
28092 | } | |
28093 | ||
28094 | ||
c32bde28 | 28095 | static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28096 | PyObject *obj; |
28097 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28098 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
28099 | Py_INCREF(obj); | |
28100 | return Py_BuildValue((char *)""); | |
28101 | } | |
7557b9b5 | 28102 | static PyObject *_wrap_new_CustomDataObject__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 | 28103 | PyObject *resultobj; |
7557b9b5 | 28104 | wxDataFormat *arg1 = 0 ; |
d14a1e28 RD |
28105 | wxCustomDataObject *result; |
28106 | PyObject * obj0 = 0 ; | |
d14a1e28 | 28107 | |
7557b9b5 RD |
28108 | if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail; |
28109 | { | |
28110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
28111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28112 | if (arg1 == NULL) { | |
28113 | SWIG_null_ref("wxDataFormat"); | |
d14a1e28 | 28114 | } |
7557b9b5 | 28115 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 RD |
28116 | } |
28117 | { | |
28118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28119 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
28120 | ||
28121 | wxPyEndAllowThreads(__tstate); | |
28122 | if (PyErr_Occurred()) SWIG_fail; | |
28123 | } | |
15afbcd0 | 28124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); |
d14a1e28 RD |
28125 | return resultobj; |
28126 | fail: | |
28127 | return NULL; | |
28128 | } | |
28129 | ||
28130 | ||
7557b9b5 RD |
28131 | static PyObject *_wrap_new_CustomDataObject__SWIG_1(PyObject *, PyObject *args) { |
28132 | PyObject *resultobj; | |
28133 | wxString *arg1 = 0 ; | |
28134 | wxCustomDataObject *result; | |
28135 | bool temp1 = false ; | |
28136 | PyObject * obj0 = 0 ; | |
28137 | ||
28138 | if(!PyArg_ParseTuple(args,(char *)"O:new_CustomDataObject",&obj0)) goto fail; | |
28139 | { | |
28140 | arg1 = wxString_in_helper(obj0); | |
28141 | if (arg1 == NULL) SWIG_fail; | |
28142 | temp1 = true; | |
28143 | } | |
28144 | { | |
28145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28146 | result = (wxCustomDataObject *)new_wxCustomDataObject__SWIG_1((wxString const &)*arg1); | |
28147 | ||
28148 | wxPyEndAllowThreads(__tstate); | |
28149 | if (PyErr_Occurred()) SWIG_fail; | |
28150 | } | |
28151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
28152 | { | |
28153 | if (temp1) | |
28154 | delete arg1; | |
28155 | } | |
28156 | return resultobj; | |
28157 | fail: | |
28158 | { | |
28159 | if (temp1) | |
28160 | delete arg1; | |
28161 | } | |
28162 | return NULL; | |
28163 | } | |
28164 | ||
28165 | ||
28166 | static PyObject *_wrap_new_CustomDataObject__SWIG_2(PyObject *, PyObject *args) { | |
28167 | PyObject *resultobj; | |
28168 | wxCustomDataObject *result; | |
28169 | ||
28170 | if(!PyArg_ParseTuple(args,(char *)":new_CustomDataObject")) goto fail; | |
28171 | { | |
28172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28173 | result = (wxCustomDataObject *)new wxCustomDataObject(); | |
28174 | ||
28175 | wxPyEndAllowThreads(__tstate); | |
28176 | if (PyErr_Occurred()) SWIG_fail; | |
28177 | } | |
28178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
28179 | return resultobj; | |
28180 | fail: | |
28181 | return NULL; | |
28182 | } | |
28183 | ||
28184 | ||
28185 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args) { | |
28186 | int argc; | |
28187 | PyObject *argv[2]; | |
28188 | int ii; | |
28189 | ||
28190 | argc = PyObject_Length(args); | |
28191 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
28192 | argv[ii] = PyTuple_GetItem(args,ii); | |
28193 | } | |
28194 | if (argc == 0) { | |
28195 | return _wrap_new_CustomDataObject__SWIG_2(self,args); | |
28196 | } | |
28197 | if (argc == 1) { | |
28198 | int _v; | |
28199 | { | |
28200 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
28201 | } | |
28202 | if (_v) { | |
28203 | return _wrap_new_CustomDataObject__SWIG_1(self,args); | |
28204 | } | |
28205 | } | |
28206 | if (argc == 1) { | |
28207 | int _v; | |
28208 | { | |
28209 | void *ptr = 0; | |
28210 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
28211 | _v = 0; | |
28212 | PyErr_Clear(); | |
28213 | } else { | |
28214 | _v = (ptr != 0); | |
28215 | } | |
28216 | } | |
28217 | if (_v) { | |
28218 | return _wrap_new_CustomDataObject__SWIG_0(self,args); | |
28219 | } | |
28220 | } | |
28221 | ||
28222 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_CustomDataObject'"); | |
28223 | return NULL; | |
28224 | } | |
28225 | ||
28226 | ||
c32bde28 | 28227 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28228 | PyObject *resultobj; |
28229 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
28230 | PyObject *arg2 = (PyObject *) 0 ; | |
28231 | bool result; | |
28232 | PyObject * obj0 = 0 ; | |
28233 | PyObject * obj1 = 0 ; | |
28234 | char *kwnames[] = { | |
28235 | (char *) "self",(char *) "data", NULL | |
28236 | }; | |
28237 | ||
28238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28239 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
28240 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28241 | arg2 = obj1; |
28242 | { | |
28243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28244 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
28245 | ||
28246 | wxPyEndAllowThreads(__tstate); | |
28247 | if (PyErr_Occurred()) SWIG_fail; | |
28248 | } | |
4f89f6a3 RD |
28249 | { |
28250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28251 | } | |
d14a1e28 RD |
28252 | return resultobj; |
28253 | fail: | |
28254 | return NULL; | |
28255 | } | |
28256 | ||
28257 | ||
c32bde28 | 28258 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28259 | PyObject *resultobj; |
28260 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
28261 | size_t result; | |
28262 | PyObject * obj0 = 0 ; | |
28263 | char *kwnames[] = { | |
28264 | (char *) "self", NULL | |
28265 | }; | |
28266 | ||
28267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
28269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28270 | { |
28271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28272 | result = (size_t)(arg1)->GetSize(); | |
28273 | ||
28274 | wxPyEndAllowThreads(__tstate); | |
28275 | if (PyErr_Occurred()) SWIG_fail; | |
28276 | } | |
093d3ff1 RD |
28277 | { |
28278 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
28279 | } | |
d14a1e28 RD |
28280 | return resultobj; |
28281 | fail: | |
28282 | return NULL; | |
28283 | } | |
28284 | ||
28285 | ||
c32bde28 | 28286 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28287 | PyObject *resultobj; |
28288 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
28289 | PyObject *result; | |
28290 | PyObject * obj0 = 0 ; | |
28291 | char *kwnames[] = { | |
28292 | (char *) "self", NULL | |
28293 | }; | |
28294 | ||
28295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_EXCEPTION | 0); |
28297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28298 | { |
28299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28300 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
28301 | ||
28302 | wxPyEndAllowThreads(__tstate); | |
28303 | if (PyErr_Occurred()) SWIG_fail; | |
28304 | } | |
28305 | resultobj = result; | |
28306 | return resultobj; | |
28307 | fail: | |
28308 | return NULL; | |
28309 | } | |
28310 | ||
28311 | ||
c32bde28 | 28312 | static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28313 | PyObject *obj; |
28314 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28315 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
28316 | Py_INCREF(obj); | |
28317 | return Py_BuildValue((char *)""); | |
28318 | } | |
c32bde28 | 28319 | static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28320 | PyObject *resultobj; |
28321 | wxURLDataObject *result; | |
28322 | char *kwnames[] = { | |
28323 | NULL | |
28324 | }; | |
28325 | ||
28326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
28327 | { | |
28328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28329 | result = (wxURLDataObject *)new wxURLDataObject(); | |
28330 | ||
28331 | wxPyEndAllowThreads(__tstate); | |
28332 | if (PyErr_Occurred()) SWIG_fail; | |
28333 | } | |
15afbcd0 | 28334 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); |
d14a1e28 RD |
28335 | return resultobj; |
28336 | fail: | |
28337 | return NULL; | |
28338 | } | |
28339 | ||
28340 | ||
c32bde28 | 28341 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28342 | PyObject *resultobj; |
28343 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
28344 | wxString result; | |
28345 | PyObject * obj0 = 0 ; | |
28346 | char *kwnames[] = { | |
28347 | (char *) "self", NULL | |
28348 | }; | |
28349 | ||
28350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0); |
28352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28353 | { |
28354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28355 | result = (arg1)->GetURL(); | |
28356 | ||
28357 | wxPyEndAllowThreads(__tstate); | |
28358 | if (PyErr_Occurred()) SWIG_fail; | |
28359 | } | |
28360 | { | |
28361 | #if wxUSE_UNICODE | |
28362 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28363 | #else | |
28364 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28365 | #endif | |
28366 | } | |
28367 | return resultobj; | |
28368 | fail: | |
28369 | return NULL; | |
28370 | } | |
28371 | ||
28372 | ||
c32bde28 | 28373 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28374 | PyObject *resultobj; |
28375 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
28376 | wxString *arg2 = 0 ; | |
ae8162c8 | 28377 | bool temp2 = false ; |
d14a1e28 RD |
28378 | PyObject * obj0 = 0 ; |
28379 | PyObject * obj1 = 0 ; | |
28380 | char *kwnames[] = { | |
28381 | (char *) "self",(char *) "url", NULL | |
28382 | }; | |
28383 | ||
28384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28385 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_EXCEPTION | 0); |
28386 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28387 | { |
28388 | arg2 = wxString_in_helper(obj1); | |
28389 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28390 | temp2 = true; |
d14a1e28 RD |
28391 | } |
28392 | { | |
28393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28394 | (arg1)->SetURL((wxString const &)*arg2); | |
28395 | ||
28396 | wxPyEndAllowThreads(__tstate); | |
28397 | if (PyErr_Occurred()) SWIG_fail; | |
28398 | } | |
28399 | Py_INCREF(Py_None); resultobj = Py_None; | |
28400 | { | |
28401 | if (temp2) | |
28402 | delete arg2; | |
28403 | } | |
28404 | return resultobj; | |
28405 | fail: | |
28406 | { | |
28407 | if (temp2) | |
28408 | delete arg2; | |
28409 | } | |
28410 | return NULL; | |
28411 | } | |
28412 | ||
28413 | ||
c32bde28 | 28414 | static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28415 | PyObject *obj; |
28416 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28417 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
28418 | Py_INCREF(obj); | |
28419 | return Py_BuildValue((char *)""); | |
28420 | } | |
c32bde28 | 28421 | static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28422 | PyObject *resultobj; |
28423 | wxMetafileDataObject *result; | |
28424 | char *kwnames[] = { | |
28425 | NULL | |
28426 | }; | |
28427 | ||
28428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
28429 | { | |
28430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28431 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
28432 | ||
28433 | wxPyEndAllowThreads(__tstate); | |
28434 | if (PyErr_Occurred()) SWIG_fail; | |
28435 | } | |
15afbcd0 | 28436 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); |
d14a1e28 RD |
28437 | return resultobj; |
28438 | fail: | |
28439 | return NULL; | |
28440 | } | |
28441 | ||
28442 | ||
c32bde28 | 28443 | static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28444 | PyObject *obj; |
28445 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28446 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
28447 | Py_INCREF(obj); | |
28448 | return Py_BuildValue((char *)""); | |
28449 | } | |
c32bde28 | 28450 | static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 28451 | PyObject *resultobj; |
093d3ff1 | 28452 | wxDragResult arg1 ; |
d14a1e28 | 28453 | bool result; |
994141e6 | 28454 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
28455 | char *kwnames[] = { |
28456 | (char *) "res", NULL | |
28457 | }; | |
28458 | ||
994141e6 | 28459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
28460 | { |
28461 | arg1 = (wxDragResult)(SWIG_As_int(obj0)); | |
28462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28463 | } | |
d14a1e28 RD |
28464 | { |
28465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28466 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
28467 | ||
28468 | wxPyEndAllowThreads(__tstate); | |
28469 | if (PyErr_Occurred()) SWIG_fail; | |
28470 | } | |
4f89f6a3 RD |
28471 | { |
28472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28473 | } | |
d14a1e28 RD |
28474 | return resultobj; |
28475 | fail: | |
28476 | return NULL; | |
28477 | } | |
28478 | ||
28479 | ||
c32bde28 | 28480 | static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 28481 | PyObject *resultobj; |
d1e20054 | 28482 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
28483 | wxIcon const &arg2_defvalue = wxNullIcon ; |
28484 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
28485 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
28486 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
28487 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
28488 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
28489 | wxPyDropSource *result; | |
28490 | PyObject * obj0 = 0 ; | |
28491 | PyObject * obj1 = 0 ; | |
28492 | PyObject * obj2 = 0 ; | |
28493 | PyObject * obj3 = 0 ; | |
28494 | char *kwnames[] = { | |
28495 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
28496 | }; | |
28497 | ||
d1e20054 | 28498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
28499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 28501 | if (obj1) { |
093d3ff1 RD |
28502 | { |
28503 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
28504 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28505 | if (arg2 == NULL) { | |
28506 | SWIG_null_ref("wxIcon"); | |
28507 | } | |
28508 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28509 | } |
28510 | } | |
28511 | if (obj2) { | |
093d3ff1 RD |
28512 | { |
28513 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
28514 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28515 | if (arg3 == NULL) { | |
28516 | SWIG_null_ref("wxIcon"); | |
28517 | } | |
28518 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
28519 | } |
28520 | } | |
28521 | if (obj3) { | |
093d3ff1 RD |
28522 | { |
28523 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
28524 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28525 | if (arg4 == NULL) { | |
28526 | SWIG_null_ref("wxIcon"); | |
28527 | } | |
28528 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
28529 | } |
28530 | } | |
28531 | { | |
28532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28533 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
28534 | ||
28535 | wxPyEndAllowThreads(__tstate); | |
28536 | if (PyErr_Occurred()) SWIG_fail; | |
28537 | } | |
15afbcd0 | 28538 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); |
d14a1e28 RD |
28539 | return resultobj; |
28540 | fail: | |
28541 | return NULL; | |
28542 | } | |
28543 | ||
28544 | ||
c32bde28 | 28545 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28546 | PyObject *resultobj; |
28547 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
28548 | PyObject *arg2 = (PyObject *) 0 ; | |
28549 | PyObject *arg3 = (PyObject *) 0 ; | |
28550 | int arg4 ; | |
28551 | PyObject * obj0 = 0 ; | |
28552 | PyObject * obj1 = 0 ; | |
28553 | PyObject * obj2 = 0 ; | |
994141e6 | 28554 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
28555 | char *kwnames[] = { |
28556 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
28557 | }; | |
28558 | ||
994141e6 | 28559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
28560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28562 | arg2 = obj1; |
28563 | arg3 = obj2; | |
093d3ff1 RD |
28564 | { |
28565 | arg4 = (int)(SWIG_As_int(obj3)); | |
28566 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28567 | } | |
d14a1e28 RD |
28568 | { |
28569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28570 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
28571 | ||
28572 | wxPyEndAllowThreads(__tstate); | |
28573 | if (PyErr_Occurred()) SWIG_fail; | |
28574 | } | |
28575 | Py_INCREF(Py_None); resultobj = Py_None; | |
28576 | return resultobj; | |
28577 | fail: | |
28578 | return NULL; | |
28579 | } | |
28580 | ||
28581 | ||
c32bde28 | 28582 | static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28583 | PyObject *resultobj; |
28584 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
28585 | PyObject * obj0 = 0 ; | |
28586 | char *kwnames[] = { | |
28587 | (char *) "self", NULL | |
28588 | }; | |
28589 | ||
28590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28593 | { |
28594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28595 | delete arg1; | |
28596 | ||
28597 | wxPyEndAllowThreads(__tstate); | |
28598 | if (PyErr_Occurred()) SWIG_fail; | |
28599 | } | |
28600 | Py_INCREF(Py_None); resultobj = Py_None; | |
28601 | return resultobj; | |
28602 | fail: | |
28603 | return NULL; | |
28604 | } | |
28605 | ||
28606 | ||
c32bde28 | 28607 | static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28608 | PyObject *resultobj; |
28609 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
28610 | wxDataObject *arg2 = 0 ; | |
28611 | PyObject * obj0 = 0 ; | |
28612 | PyObject * obj1 = 0 ; | |
28613 | char *kwnames[] = { | |
28614 | (char *) "self",(char *) "data", NULL | |
28615 | }; | |
28616 | ||
28617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 28620 | { |
093d3ff1 RD |
28621 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); |
28622 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28623 | if (arg2 == NULL) { | |
28624 | SWIG_null_ref("wxDataObject"); | |
28625 | } | |
28626 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28627 | } | |
28628 | { | |
28629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 RD |
28630 | (arg1)->SetData(*arg2); |
28631 | ||
28632 | wxPyEndAllowThreads(__tstate); | |
28633 | if (PyErr_Occurred()) SWIG_fail; | |
28634 | } | |
28635 | Py_INCREF(Py_None); resultobj = Py_None; | |
28636 | return resultobj; | |
28637 | fail: | |
28638 | return NULL; | |
28639 | } | |
28640 | ||
28641 | ||
c32bde28 | 28642 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28643 | PyObject *resultobj; |
28644 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
28645 | wxDataObject *result; | |
28646 | PyObject * obj0 = 0 ; | |
28647 | char *kwnames[] = { | |
28648 | (char *) "self", NULL | |
28649 | }; | |
28650 | ||
28651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28654 | { |
28655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28656 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
28657 | ||
28658 | wxPyEndAllowThreads(__tstate); | |
28659 | if (PyErr_Occurred()) SWIG_fail; | |
28660 | } | |
15afbcd0 | 28661 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
28662 | return resultobj; |
28663 | fail: | |
28664 | return NULL; | |
28665 | } | |
28666 | ||
28667 | ||
c32bde28 | 28668 | static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28669 | PyObject *resultobj; |
28670 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
093d3ff1 | 28671 | wxDragResult arg2 ; |
d14a1e28 RD |
28672 | wxCursor *arg3 = 0 ; |
28673 | PyObject * obj0 = 0 ; | |
994141e6 | 28674 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28675 | PyObject * obj2 = 0 ; |
28676 | char *kwnames[] = { | |
28677 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
28678 | }; | |
28679 | ||
994141e6 | 28680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
28681 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28682 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28683 | { | |
28684 | arg2 = (wxDragResult)(SWIG_As_int(obj1)); | |
28685 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28686 | } | |
28687 | { | |
28688 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
28689 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28690 | if (arg3 == NULL) { | |
28691 | SWIG_null_ref("wxCursor"); | |
28692 | } | |
28693 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
28694 | } |
28695 | { | |
28696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28697 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
28698 | ||
28699 | wxPyEndAllowThreads(__tstate); | |
28700 | if (PyErr_Occurred()) SWIG_fail; | |
28701 | } | |
28702 | Py_INCREF(Py_None); resultobj = Py_None; | |
28703 | return resultobj; | |
28704 | fail: | |
28705 | return NULL; | |
28706 | } | |
28707 | ||
28708 | ||
c32bde28 | 28709 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28710 | PyObject *resultobj; |
28711 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
28712 | int arg2 = (int) wxDrag_CopyOnly ; | |
093d3ff1 | 28713 | wxDragResult result; |
d14a1e28 | 28714 | PyObject * obj0 = 0 ; |
994141e6 | 28715 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28716 | char *kwnames[] = { |
28717 | (char *) "self",(char *) "flags", NULL | |
28718 | }; | |
28719 | ||
994141e6 | 28720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28721 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28722 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 28723 | if (obj1) { |
093d3ff1 RD |
28724 | { |
28725 | arg2 = (int)(SWIG_As_int(obj1)); | |
28726 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28727 | } | |
994141e6 | 28728 | } |
d14a1e28 RD |
28729 | { |
28730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 28731 | result = (wxDragResult)(arg1)->DoDragDrop(arg2); |
d14a1e28 RD |
28732 | |
28733 | wxPyEndAllowThreads(__tstate); | |
28734 | if (PyErr_Occurred()) SWIG_fail; | |
28735 | } | |
093d3ff1 | 28736 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
28737 | return resultobj; |
28738 | fail: | |
28739 | return NULL; | |
28740 | } | |
28741 | ||
28742 | ||
c32bde28 | 28743 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28744 | PyObject *resultobj; |
28745 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
093d3ff1 | 28746 | wxDragResult arg2 ; |
d14a1e28 RD |
28747 | bool result; |
28748 | PyObject * obj0 = 0 ; | |
994141e6 | 28749 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28750 | char *kwnames[] = { |
28751 | (char *) "self",(char *) "effect", NULL | |
28752 | }; | |
28753 | ||
994141e6 | 28754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_EXCEPTION | 0); |
28756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28757 | { | |
28758 | arg2 = (wxDragResult)(SWIG_As_int(obj1)); | |
28759 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28760 | } | |
d14a1e28 RD |
28761 | { |
28762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28763 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
28764 | ||
28765 | wxPyEndAllowThreads(__tstate); | |
28766 | if (PyErr_Occurred()) SWIG_fail; | |
28767 | } | |
4f89f6a3 RD |
28768 | { |
28769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28770 | } | |
d14a1e28 RD |
28771 | return resultobj; |
28772 | fail: | |
28773 | return NULL; | |
28774 | } | |
28775 | ||
28776 | ||
c32bde28 | 28777 | static PyObject * DropSource_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28778 | PyObject *obj; |
28779 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28780 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
28781 | Py_INCREF(obj); | |
28782 | return Py_BuildValue((char *)""); | |
28783 | } | |
c32bde28 | 28784 | static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28785 | PyObject *resultobj; |
28786 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
28787 | wxPyDropTarget *result; | |
28788 | PyObject * obj0 = 0 ; | |
28789 | char *kwnames[] = { | |
28790 | (char *) "dataObject", NULL | |
28791 | }; | |
28792 | ||
15afbcd0 | 28793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 | 28794 | if (obj0) { |
093d3ff1 RD |
28795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
28796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28797 | } |
28798 | { | |
28799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28800 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
28801 | ||
28802 | wxPyEndAllowThreads(__tstate); | |
28803 | if (PyErr_Occurred()) SWIG_fail; | |
28804 | } | |
15afbcd0 | 28805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); |
d14a1e28 RD |
28806 | return resultobj; |
28807 | fail: | |
28808 | return NULL; | |
28809 | } | |
28810 | ||
28811 | ||
c32bde28 | 28812 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28813 | PyObject *resultobj; |
28814 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
28815 | PyObject *arg2 = (PyObject *) 0 ; | |
28816 | PyObject *arg3 = (PyObject *) 0 ; | |
28817 | PyObject * obj0 = 0 ; | |
28818 | PyObject * obj1 = 0 ; | |
28819 | PyObject * obj2 = 0 ; | |
28820 | char *kwnames[] = { | |
28821 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28822 | }; | |
28823 | ||
28824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
28826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28827 | arg2 = obj1; |
28828 | arg3 = obj2; | |
28829 | { | |
28830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28831 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28832 | ||
28833 | wxPyEndAllowThreads(__tstate); | |
28834 | if (PyErr_Occurred()) SWIG_fail; | |
28835 | } | |
28836 | Py_INCREF(Py_None); resultobj = Py_None; | |
28837 | return resultobj; | |
28838 | fail: | |
28839 | return NULL; | |
28840 | } | |
28841 | ||
28842 | ||
c32bde28 | 28843 | static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28844 | PyObject *resultobj; |
28845 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
28846 | PyObject * obj0 = 0 ; | |
28847 | char *kwnames[] = { | |
28848 | (char *) "self", NULL | |
28849 | }; | |
28850 | ||
28851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28852 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
28853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28854 | { |
28855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28856 | delete arg1; | |
28857 | ||
28858 | wxPyEndAllowThreads(__tstate); | |
28859 | if (PyErr_Occurred()) SWIG_fail; | |
28860 | } | |
28861 | Py_INCREF(Py_None); resultobj = Py_None; | |
28862 | return resultobj; | |
28863 | fail: | |
28864 | return NULL; | |
28865 | } | |
28866 | ||
28867 | ||
c32bde28 | 28868 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28869 | PyObject *resultobj; |
28870 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
28871 | wxDataObject *result; | |
28872 | PyObject * obj0 = 0 ; | |
28873 | char *kwnames[] = { | |
28874 | (char *) "self", NULL | |
28875 | }; | |
28876 | ||
28877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28878 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
28879 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28880 | { |
28881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28882 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
28883 | ||
28884 | wxPyEndAllowThreads(__tstate); | |
28885 | if (PyErr_Occurred()) SWIG_fail; | |
28886 | } | |
15afbcd0 | 28887 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
28888 | return resultobj; |
28889 | fail: | |
28890 | return NULL; | |
28891 | } | |
28892 | ||
28893 | ||
c32bde28 | 28894 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28895 | PyObject *resultobj; |
28896 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
28897 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
28898 | PyObject * obj0 = 0 ; | |
28899 | PyObject * obj1 = 0 ; | |
28900 | char *kwnames[] = { | |
28901 | (char *) "self",(char *) "dataObject", NULL | |
28902 | }; | |
28903 | ||
28904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
28906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28907 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28908 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28909 | { |
28910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28911 | (arg1)->SetDataObject(arg2); | |
28912 | ||
28913 | wxPyEndAllowThreads(__tstate); | |
28914 | if (PyErr_Occurred()) SWIG_fail; | |
28915 | } | |
28916 | Py_INCREF(Py_None); resultobj = Py_None; | |
28917 | return resultobj; | |
28918 | fail: | |
28919 | return NULL; | |
28920 | } | |
28921 | ||
28922 | ||
c32bde28 | 28923 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28924 | PyObject *resultobj; |
28925 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
28926 | int arg2 ; |
28927 | int arg3 ; | |
093d3ff1 RD |
28928 | wxDragResult arg4 ; |
28929 | wxDragResult result; | |
d14a1e28 | 28930 | PyObject * obj0 = 0 ; |
994141e6 RD |
28931 | PyObject * obj1 = 0 ; |
28932 | PyObject * obj2 = 0 ; | |
28933 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
28934 | char *kwnames[] = { |
28935 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
28936 | }; | |
28937 | ||
994141e6 | 28938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
28939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
28940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28941 | { | |
28942 | arg2 = (int)(SWIG_As_int(obj1)); | |
28943 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28944 | } | |
28945 | { | |
28946 | arg3 = (int)(SWIG_As_int(obj2)); | |
28947 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28948 | } | |
28949 | { | |
28950 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
28951 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28952 | } | |
d14a1e28 RD |
28953 | { |
28954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 28955 | result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); |
d14a1e28 RD |
28956 | |
28957 | wxPyEndAllowThreads(__tstate); | |
28958 | if (PyErr_Occurred()) SWIG_fail; | |
28959 | } | |
093d3ff1 | 28960 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
28961 | return resultobj; |
28962 | fail: | |
28963 | return NULL; | |
28964 | } | |
28965 | ||
28966 | ||
c32bde28 | 28967 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28968 | PyObject *resultobj; |
28969 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
28970 | int arg2 ; |
28971 | int arg3 ; | |
093d3ff1 RD |
28972 | wxDragResult arg4 ; |
28973 | wxDragResult result; | |
d14a1e28 | 28974 | PyObject * obj0 = 0 ; |
994141e6 RD |
28975 | PyObject * obj1 = 0 ; |
28976 | PyObject * obj2 = 0 ; | |
28977 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
28978 | char *kwnames[] = { |
28979 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
28980 | }; | |
28981 | ||
994141e6 | 28982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
28983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
28984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28985 | { | |
28986 | arg2 = (int)(SWIG_As_int(obj1)); | |
28987 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28988 | } | |
28989 | { | |
28990 | arg3 = (int)(SWIG_As_int(obj2)); | |
28991 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28992 | } | |
28993 | { | |
28994 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
28995 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28996 | } | |
d14a1e28 RD |
28997 | { |
28998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 28999 | result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); |
d14a1e28 RD |
29000 | |
29001 | wxPyEndAllowThreads(__tstate); | |
29002 | if (PyErr_Occurred()) SWIG_fail; | |
29003 | } | |
093d3ff1 | 29004 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
29005 | return resultobj; |
29006 | fail: | |
29007 | return NULL; | |
29008 | } | |
29009 | ||
29010 | ||
c32bde28 | 29011 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29012 | PyObject *resultobj; |
29013 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
29014 | PyObject * obj0 = 0 ; | |
29015 | char *kwnames[] = { | |
29016 | (char *) "self", NULL | |
29017 | }; | |
29018 | ||
29019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29022 | { |
29023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29024 | (arg1)->base_OnLeave(); | |
29025 | ||
29026 | wxPyEndAllowThreads(__tstate); | |
29027 | if (PyErr_Occurred()) SWIG_fail; | |
29028 | } | |
29029 | Py_INCREF(Py_None); resultobj = Py_None; | |
29030 | return resultobj; | |
29031 | fail: | |
29032 | return NULL; | |
29033 | } | |
29034 | ||
29035 | ||
c32bde28 | 29036 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29037 | PyObject *resultobj; |
29038 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
29039 | int arg2 ; |
29040 | int arg3 ; | |
d14a1e28 RD |
29041 | bool result; |
29042 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29043 | PyObject * obj1 = 0 ; |
29044 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29045 | char *kwnames[] = { |
29046 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29047 | }; | |
29048 | ||
994141e6 | 29049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
29050 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29051 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29052 | { | |
29053 | arg2 = (int)(SWIG_As_int(obj1)); | |
29054 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29055 | } | |
29056 | { | |
29057 | arg3 = (int)(SWIG_As_int(obj2)); | |
29058 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29059 | } | |
d14a1e28 RD |
29060 | { |
29061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29062 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
29063 | ||
29064 | wxPyEndAllowThreads(__tstate); | |
29065 | if (PyErr_Occurred()) SWIG_fail; | |
29066 | } | |
4f89f6a3 RD |
29067 | { |
29068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29069 | } | |
d14a1e28 RD |
29070 | return resultobj; |
29071 | fail: | |
29072 | return NULL; | |
29073 | } | |
29074 | ||
29075 | ||
c32bde28 | 29076 | static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29077 | PyObject *resultobj; |
29078 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
29079 | bool result; | |
29080 | PyObject * obj0 = 0 ; | |
29081 | char *kwnames[] = { | |
29082 | (char *) "self", NULL | |
29083 | }; | |
29084 | ||
29085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29088 | { |
29089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29090 | result = (bool)(arg1)->GetData(); | |
29091 | ||
29092 | wxPyEndAllowThreads(__tstate); | |
29093 | if (PyErr_Occurred()) SWIG_fail; | |
29094 | } | |
4f89f6a3 RD |
29095 | { |
29096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29097 | } | |
d14a1e28 RD |
29098 | return resultobj; |
29099 | fail: | |
29100 | return NULL; | |
29101 | } | |
29102 | ||
29103 | ||
c32bde28 | 29104 | static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29105 | PyObject *obj; |
29106 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29107 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
29108 | Py_INCREF(obj); | |
29109 | return Py_BuildValue((char *)""); | |
29110 | } | |
c32bde28 | 29111 | static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29112 | PyObject *resultobj; |
29113 | wxPyTextDropTarget *result; | |
29114 | char *kwnames[] = { | |
29115 | NULL | |
29116 | }; | |
29117 | ||
29118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
29119 | { | |
29120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29121 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
29122 | ||
29123 | wxPyEndAllowThreads(__tstate); | |
29124 | if (PyErr_Occurred()) SWIG_fail; | |
29125 | } | |
15afbcd0 | 29126 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); |
d14a1e28 RD |
29127 | return resultobj; |
29128 | fail: | |
29129 | return NULL; | |
29130 | } | |
29131 | ||
29132 | ||
c32bde28 | 29133 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29134 | PyObject *resultobj; |
29135 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
29136 | PyObject *arg2 = (PyObject *) 0 ; | |
29137 | PyObject *arg3 = (PyObject *) 0 ; | |
29138 | PyObject * obj0 = 0 ; | |
29139 | PyObject * obj1 = 0 ; | |
29140 | PyObject * obj2 = 0 ; | |
29141 | char *kwnames[] = { | |
29142 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29143 | }; | |
29144 | ||
29145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29148 | arg2 = obj1; |
29149 | arg3 = obj2; | |
29150 | { | |
29151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29152 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29153 | ||
29154 | wxPyEndAllowThreads(__tstate); | |
29155 | if (PyErr_Occurred()) SWIG_fail; | |
29156 | } | |
29157 | Py_INCREF(Py_None); resultobj = Py_None; | |
29158 | return resultobj; | |
29159 | fail: | |
29160 | return NULL; | |
29161 | } | |
29162 | ||
29163 | ||
c32bde28 | 29164 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29165 | PyObject *resultobj; |
29166 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
29167 | int arg2 ; |
29168 | int arg3 ; | |
093d3ff1 RD |
29169 | wxDragResult arg4 ; |
29170 | wxDragResult result; | |
d14a1e28 | 29171 | PyObject * obj0 = 0 ; |
994141e6 RD |
29172 | PyObject * obj1 = 0 ; |
29173 | PyObject * obj2 = 0 ; | |
29174 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
29175 | char *kwnames[] = { |
29176 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29177 | }; | |
29178 | ||
994141e6 | 29179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
29180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29182 | { | |
29183 | arg2 = (int)(SWIG_As_int(obj1)); | |
29184 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29185 | } | |
29186 | { | |
29187 | arg3 = (int)(SWIG_As_int(obj2)); | |
29188 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29189 | } | |
29190 | { | |
29191 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29192 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29193 | } | |
d14a1e28 RD |
29194 | { |
29195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29196 | result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); |
d14a1e28 RD |
29197 | |
29198 | wxPyEndAllowThreads(__tstate); | |
29199 | if (PyErr_Occurred()) SWIG_fail; | |
29200 | } | |
093d3ff1 | 29201 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
29202 | return resultobj; |
29203 | fail: | |
29204 | return NULL; | |
29205 | } | |
29206 | ||
29207 | ||
c32bde28 | 29208 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29209 | PyObject *resultobj; |
29210 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
29211 | int arg2 ; |
29212 | int arg3 ; | |
093d3ff1 RD |
29213 | wxDragResult arg4 ; |
29214 | wxDragResult result; | |
d14a1e28 | 29215 | PyObject * obj0 = 0 ; |
994141e6 RD |
29216 | PyObject * obj1 = 0 ; |
29217 | PyObject * obj2 = 0 ; | |
29218 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
29219 | char *kwnames[] = { |
29220 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29221 | }; | |
29222 | ||
994141e6 | 29223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
29224 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29225 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29226 | { | |
29227 | arg2 = (int)(SWIG_As_int(obj1)); | |
29228 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29229 | } | |
29230 | { | |
29231 | arg3 = (int)(SWIG_As_int(obj2)); | |
29232 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29233 | } | |
29234 | { | |
29235 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29236 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29237 | } | |
d14a1e28 RD |
29238 | { |
29239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29240 | result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); |
d14a1e28 RD |
29241 | |
29242 | wxPyEndAllowThreads(__tstate); | |
29243 | if (PyErr_Occurred()) SWIG_fail; | |
29244 | } | |
093d3ff1 | 29245 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
29246 | return resultobj; |
29247 | fail: | |
29248 | return NULL; | |
29249 | } | |
29250 | ||
29251 | ||
c32bde28 | 29252 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29253 | PyObject *resultobj; |
29254 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
29255 | PyObject * obj0 = 0 ; | |
29256 | char *kwnames[] = { | |
29257 | (char *) "self", NULL | |
29258 | }; | |
29259 | ||
29260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29263 | { |
29264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29265 | (arg1)->base_OnLeave(); | |
29266 | ||
29267 | wxPyEndAllowThreads(__tstate); | |
29268 | if (PyErr_Occurred()) SWIG_fail; | |
29269 | } | |
29270 | Py_INCREF(Py_None); resultobj = Py_None; | |
29271 | return resultobj; | |
29272 | fail: | |
29273 | return NULL; | |
29274 | } | |
29275 | ||
29276 | ||
c32bde28 | 29277 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29278 | PyObject *resultobj; |
29279 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
29280 | int arg2 ; |
29281 | int arg3 ; | |
d14a1e28 RD |
29282 | bool result; |
29283 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29284 | PyObject * obj1 = 0 ; |
29285 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29286 | char *kwnames[] = { |
29287 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29288 | }; | |
29289 | ||
994141e6 | 29290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
29291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29293 | { | |
29294 | arg2 = (int)(SWIG_As_int(obj1)); | |
29295 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29296 | } | |
29297 | { | |
29298 | arg3 = (int)(SWIG_As_int(obj2)); | |
29299 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29300 | } | |
d14a1e28 RD |
29301 | { |
29302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29303 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
29304 | ||
29305 | wxPyEndAllowThreads(__tstate); | |
29306 | if (PyErr_Occurred()) SWIG_fail; | |
29307 | } | |
4f89f6a3 RD |
29308 | { |
29309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29310 | } | |
d14a1e28 RD |
29311 | return resultobj; |
29312 | fail: | |
29313 | return NULL; | |
29314 | } | |
29315 | ||
29316 | ||
c32bde28 | 29317 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29318 | PyObject *resultobj; |
29319 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
29320 | int arg2 ; |
29321 | int arg3 ; | |
093d3ff1 RD |
29322 | wxDragResult arg4 ; |
29323 | wxDragResult result; | |
d14a1e28 | 29324 | PyObject * obj0 = 0 ; |
994141e6 RD |
29325 | PyObject * obj1 = 0 ; |
29326 | PyObject * obj2 = 0 ; | |
29327 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
29328 | char *kwnames[] = { |
29329 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29330 | }; | |
29331 | ||
994141e6 | 29332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
29333 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29334 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29335 | { | |
29336 | arg2 = (int)(SWIG_As_int(obj1)); | |
29337 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29338 | } | |
29339 | { | |
29340 | arg3 = (int)(SWIG_As_int(obj2)); | |
29341 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29342 | } | |
29343 | { | |
29344 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29345 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29346 | } | |
d14a1e28 RD |
29347 | { |
29348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29349 | result = (wxDragResult)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); |
d14a1e28 RD |
29350 | |
29351 | wxPyEndAllowThreads(__tstate); | |
29352 | if (PyErr_Occurred()) SWIG_fail; | |
29353 | } | |
093d3ff1 | 29354 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
29355 | return resultobj; |
29356 | fail: | |
29357 | return NULL; | |
29358 | } | |
29359 | ||
29360 | ||
c32bde28 | 29361 | static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29362 | PyObject *obj; |
29363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29364 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
29365 | Py_INCREF(obj); | |
29366 | return Py_BuildValue((char *)""); | |
29367 | } | |
c32bde28 | 29368 | static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29369 | PyObject *resultobj; |
29370 | wxPyFileDropTarget *result; | |
29371 | char *kwnames[] = { | |
29372 | NULL | |
29373 | }; | |
29374 | ||
29375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
29376 | { | |
29377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29378 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
29379 | ||
29380 | wxPyEndAllowThreads(__tstate); | |
29381 | if (PyErr_Occurred()) SWIG_fail; | |
29382 | } | |
15afbcd0 | 29383 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); |
d14a1e28 RD |
29384 | return resultobj; |
29385 | fail: | |
29386 | return NULL; | |
29387 | } | |
29388 | ||
29389 | ||
c32bde28 | 29390 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29391 | PyObject *resultobj; |
29392 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
29393 | PyObject *arg2 = (PyObject *) 0 ; | |
29394 | PyObject *arg3 = (PyObject *) 0 ; | |
29395 | PyObject * obj0 = 0 ; | |
29396 | PyObject * obj1 = 0 ; | |
29397 | PyObject * obj2 = 0 ; | |
29398 | char *kwnames[] = { | |
29399 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29400 | }; | |
29401 | ||
29402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29405 | arg2 = obj1; |
29406 | arg3 = obj2; | |
29407 | { | |
29408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29409 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29410 | ||
29411 | wxPyEndAllowThreads(__tstate); | |
29412 | if (PyErr_Occurred()) SWIG_fail; | |
29413 | } | |
29414 | Py_INCREF(Py_None); resultobj = Py_None; | |
29415 | return resultobj; | |
29416 | fail: | |
29417 | return NULL; | |
29418 | } | |
29419 | ||
29420 | ||
c32bde28 | 29421 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29422 | PyObject *resultobj; |
29423 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
29424 | int arg2 ; |
29425 | int arg3 ; | |
093d3ff1 RD |
29426 | wxDragResult arg4 ; |
29427 | wxDragResult result; | |
d14a1e28 | 29428 | PyObject * obj0 = 0 ; |
994141e6 RD |
29429 | PyObject * obj1 = 0 ; |
29430 | PyObject * obj2 = 0 ; | |
29431 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
29432 | char *kwnames[] = { |
29433 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29434 | }; | |
29435 | ||
994141e6 | 29436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
29437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29439 | { | |
29440 | arg2 = (int)(SWIG_As_int(obj1)); | |
29441 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29442 | } | |
29443 | { | |
29444 | arg3 = (int)(SWIG_As_int(obj2)); | |
29445 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29446 | } | |
29447 | { | |
29448 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29449 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29450 | } | |
d14a1e28 RD |
29451 | { |
29452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29453 | result = (wxDragResult)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); |
d14a1e28 RD |
29454 | |
29455 | wxPyEndAllowThreads(__tstate); | |
29456 | if (PyErr_Occurred()) SWIG_fail; | |
29457 | } | |
093d3ff1 | 29458 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
29459 | return resultobj; |
29460 | fail: | |
29461 | return NULL; | |
29462 | } | |
29463 | ||
29464 | ||
c32bde28 | 29465 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29466 | PyObject *resultobj; |
29467 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
29468 | int arg2 ; |
29469 | int arg3 ; | |
093d3ff1 RD |
29470 | wxDragResult arg4 ; |
29471 | wxDragResult result; | |
d14a1e28 | 29472 | PyObject * obj0 = 0 ; |
994141e6 RD |
29473 | PyObject * obj1 = 0 ; |
29474 | PyObject * obj2 = 0 ; | |
29475 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
29476 | char *kwnames[] = { |
29477 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29478 | }; | |
29479 | ||
994141e6 | 29480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
29481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29483 | { | |
29484 | arg2 = (int)(SWIG_As_int(obj1)); | |
29485 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29486 | } | |
29487 | { | |
29488 | arg3 = (int)(SWIG_As_int(obj2)); | |
29489 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29490 | } | |
29491 | { | |
29492 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29493 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29494 | } | |
d14a1e28 RD |
29495 | { |
29496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29497 | result = (wxDragResult)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); |
d14a1e28 RD |
29498 | |
29499 | wxPyEndAllowThreads(__tstate); | |
29500 | if (PyErr_Occurred()) SWIG_fail; | |
29501 | } | |
093d3ff1 | 29502 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
29503 | return resultobj; |
29504 | fail: | |
29505 | return NULL; | |
29506 | } | |
29507 | ||
29508 | ||
c32bde28 | 29509 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29510 | PyObject *resultobj; |
29511 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
29512 | PyObject * obj0 = 0 ; | |
29513 | char *kwnames[] = { | |
29514 | (char *) "self", NULL | |
29515 | }; | |
29516 | ||
29517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29520 | { |
29521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29522 | (arg1)->base_OnLeave(); | |
29523 | ||
29524 | wxPyEndAllowThreads(__tstate); | |
29525 | if (PyErr_Occurred()) SWIG_fail; | |
29526 | } | |
29527 | Py_INCREF(Py_None); resultobj = Py_None; | |
29528 | return resultobj; | |
29529 | fail: | |
29530 | return NULL; | |
29531 | } | |
29532 | ||
29533 | ||
c32bde28 | 29534 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29535 | PyObject *resultobj; |
29536 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
29537 | int arg2 ; |
29538 | int arg3 ; | |
d14a1e28 RD |
29539 | bool result; |
29540 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29541 | PyObject * obj1 = 0 ; |
29542 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29543 | char *kwnames[] = { |
29544 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29545 | }; | |
29546 | ||
994141e6 | 29547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
29548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29550 | { | |
29551 | arg2 = (int)(SWIG_As_int(obj1)); | |
29552 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29553 | } | |
29554 | { | |
29555 | arg3 = (int)(SWIG_As_int(obj2)); | |
29556 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29557 | } | |
d14a1e28 RD |
29558 | { |
29559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29560 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
29561 | ||
29562 | wxPyEndAllowThreads(__tstate); | |
29563 | if (PyErr_Occurred()) SWIG_fail; | |
29564 | } | |
4f89f6a3 RD |
29565 | { |
29566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29567 | } | |
d14a1e28 RD |
29568 | return resultobj; |
29569 | fail: | |
29570 | return NULL; | |
29571 | } | |
29572 | ||
29573 | ||
c32bde28 | 29574 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29575 | PyObject *resultobj; |
29576 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
29577 | int arg2 ; |
29578 | int arg3 ; | |
093d3ff1 RD |
29579 | wxDragResult arg4 ; |
29580 | wxDragResult result; | |
d14a1e28 | 29581 | PyObject * obj0 = 0 ; |
994141e6 RD |
29582 | PyObject * obj1 = 0 ; |
29583 | PyObject * obj2 = 0 ; | |
29584 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
29585 | char *kwnames[] = { |
29586 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
29587 | }; | |
29588 | ||
994141e6 | 29589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
29590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_EXCEPTION | 0); |
29591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29592 | { | |
29593 | arg2 = (int)(SWIG_As_int(obj1)); | |
29594 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29595 | } | |
29596 | { | |
29597 | arg3 = (int)(SWIG_As_int(obj2)); | |
29598 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29599 | } | |
29600 | { | |
29601 | arg4 = (wxDragResult)(SWIG_As_int(obj3)); | |
29602 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29603 | } | |
d14a1e28 RD |
29604 | { |
29605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29606 | result = (wxDragResult)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); |
d14a1e28 RD |
29607 | |
29608 | wxPyEndAllowThreads(__tstate); | |
29609 | if (PyErr_Occurred()) SWIG_fail; | |
29610 | } | |
093d3ff1 | 29611 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
29612 | return resultobj; |
29613 | fail: | |
29614 | return NULL; | |
29615 | } | |
29616 | ||
29617 | ||
c32bde28 | 29618 | static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29619 | PyObject *obj; |
29620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29621 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
29622 | Py_INCREF(obj); | |
29623 | return Py_BuildValue((char *)""); | |
29624 | } | |
c32bde28 | 29625 | static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29626 | PyObject *resultobj; |
29627 | wxClipboard *result; | |
29628 | char *kwnames[] = { | |
29629 | NULL | |
29630 | }; | |
29631 | ||
29632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
29633 | { | |
29634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29635 | result = (wxClipboard *)new wxClipboard(); | |
29636 | ||
29637 | wxPyEndAllowThreads(__tstate); | |
29638 | if (PyErr_Occurred()) SWIG_fail; | |
29639 | } | |
15afbcd0 | 29640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); |
d14a1e28 RD |
29641 | return resultobj; |
29642 | fail: | |
29643 | return NULL; | |
29644 | } | |
29645 | ||
29646 | ||
c32bde28 | 29647 | static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29648 | PyObject *resultobj; |
29649 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29650 | PyObject * obj0 = 0 ; | |
29651 | char *kwnames[] = { | |
29652 | (char *) "self", NULL | |
29653 | }; | |
29654 | ||
29655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29656 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29657 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29658 | { |
29659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29660 | delete arg1; | |
29661 | ||
29662 | wxPyEndAllowThreads(__tstate); | |
29663 | if (PyErr_Occurred()) SWIG_fail; | |
29664 | } | |
29665 | Py_INCREF(Py_None); resultobj = Py_None; | |
29666 | return resultobj; | |
29667 | fail: | |
29668 | return NULL; | |
29669 | } | |
29670 | ||
29671 | ||
c32bde28 | 29672 | static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29673 | PyObject *resultobj; |
29674 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29675 | bool result; | |
29676 | PyObject * obj0 = 0 ; | |
29677 | char *kwnames[] = { | |
29678 | (char *) "self", NULL | |
29679 | }; | |
29680 | ||
29681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29684 | { |
29685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29686 | result = (bool)(arg1)->Open(); | |
29687 | ||
29688 | wxPyEndAllowThreads(__tstate); | |
29689 | if (PyErr_Occurred()) SWIG_fail; | |
29690 | } | |
4f89f6a3 RD |
29691 | { |
29692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29693 | } | |
d14a1e28 RD |
29694 | return resultobj; |
29695 | fail: | |
29696 | return NULL; | |
29697 | } | |
29698 | ||
29699 | ||
c32bde28 | 29700 | static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29701 | PyObject *resultobj; |
29702 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29703 | PyObject * obj0 = 0 ; | |
29704 | char *kwnames[] = { | |
29705 | (char *) "self", NULL | |
29706 | }; | |
29707 | ||
29708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29709 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29710 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29711 | { |
29712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29713 | (arg1)->Close(); | |
29714 | ||
29715 | wxPyEndAllowThreads(__tstate); | |
29716 | if (PyErr_Occurred()) SWIG_fail; | |
29717 | } | |
29718 | Py_INCREF(Py_None); resultobj = Py_None; | |
29719 | return resultobj; | |
29720 | fail: | |
29721 | return NULL; | |
29722 | } | |
29723 | ||
29724 | ||
c32bde28 | 29725 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29726 | PyObject *resultobj; |
29727 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29728 | bool result; | |
29729 | PyObject * obj0 = 0 ; | |
29730 | char *kwnames[] = { | |
29731 | (char *) "self", NULL | |
29732 | }; | |
29733 | ||
29734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29737 | { |
29738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29739 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
29740 | ||
29741 | wxPyEndAllowThreads(__tstate); | |
29742 | if (PyErr_Occurred()) SWIG_fail; | |
29743 | } | |
4f89f6a3 RD |
29744 | { |
29745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29746 | } | |
d14a1e28 RD |
29747 | return resultobj; |
29748 | fail: | |
29749 | return NULL; | |
29750 | } | |
29751 | ||
29752 | ||
c32bde28 | 29753 | static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29754 | PyObject *resultobj; |
29755 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29756 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
29757 | bool result; | |
29758 | PyObject * obj0 = 0 ; | |
29759 | PyObject * obj1 = 0 ; | |
29760 | char *kwnames[] = { | |
29761 | (char *) "self",(char *) "data", NULL | |
29762 | }; | |
29763 | ||
29764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29767 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
29768 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29769 | { |
29770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29771 | result = (bool)(arg1)->AddData(arg2); | |
29772 | ||
29773 | wxPyEndAllowThreads(__tstate); | |
29774 | if (PyErr_Occurred()) SWIG_fail; | |
29775 | } | |
4f89f6a3 RD |
29776 | { |
29777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29778 | } | |
d14a1e28 RD |
29779 | return resultobj; |
29780 | fail: | |
29781 | return NULL; | |
29782 | } | |
29783 | ||
29784 | ||
c32bde28 | 29785 | static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29786 | PyObject *resultobj; |
29787 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29788 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
29789 | bool result; | |
29790 | PyObject * obj0 = 0 ; | |
29791 | PyObject * obj1 = 0 ; | |
29792 | char *kwnames[] = { | |
29793 | (char *) "self",(char *) "data", NULL | |
29794 | }; | |
29795 | ||
29796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29799 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
29800 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29801 | { |
29802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29803 | result = (bool)(arg1)->SetData(arg2); | |
29804 | ||
29805 | wxPyEndAllowThreads(__tstate); | |
29806 | if (PyErr_Occurred()) SWIG_fail; | |
29807 | } | |
4f89f6a3 RD |
29808 | { |
29809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29810 | } | |
d14a1e28 RD |
29811 | return resultobj; |
29812 | fail: | |
29813 | return NULL; | |
29814 | } | |
29815 | ||
29816 | ||
c32bde28 | 29817 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29818 | PyObject *resultobj; |
29819 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29820 | wxDataFormat *arg2 = 0 ; | |
29821 | bool result; | |
29822 | PyObject * obj0 = 0 ; | |
29823 | PyObject * obj1 = 0 ; | |
29824 | char *kwnames[] = { | |
29825 | (char *) "self",(char *) "format", NULL | |
29826 | }; | |
29827 | ||
29828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29831 | { | |
29832 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataFormat, SWIG_POINTER_EXCEPTION | 0); | |
29833 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29834 | if (arg2 == NULL) { | |
29835 | SWIG_null_ref("wxDataFormat"); | |
29836 | } | |
29837 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29838 | } |
29839 | { | |
29840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29841 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
29842 | ||
29843 | wxPyEndAllowThreads(__tstate); | |
29844 | if (PyErr_Occurred()) SWIG_fail; | |
29845 | } | |
4f89f6a3 RD |
29846 | { |
29847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29848 | } | |
d14a1e28 RD |
29849 | return resultobj; |
29850 | fail: | |
29851 | return NULL; | |
29852 | } | |
29853 | ||
29854 | ||
c32bde28 | 29855 | static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29856 | PyObject *resultobj; |
29857 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29858 | wxDataObject *arg2 = 0 ; | |
29859 | bool result; | |
29860 | PyObject * obj0 = 0 ; | |
29861 | PyObject * obj1 = 0 ; | |
29862 | char *kwnames[] = { | |
29863 | (char *) "self",(char *) "data", NULL | |
29864 | }; | |
29865 | ||
29866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29867 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29869 | { | |
29870 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDataObject, SWIG_POINTER_EXCEPTION | 0); | |
29871 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29872 | if (arg2 == NULL) { | |
29873 | SWIG_null_ref("wxDataObject"); | |
29874 | } | |
29875 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29876 | } |
29877 | { | |
29878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29879 | result = (bool)(arg1)->GetData(*arg2); | |
29880 | ||
29881 | wxPyEndAllowThreads(__tstate); | |
29882 | if (PyErr_Occurred()) SWIG_fail; | |
29883 | } | |
4f89f6a3 RD |
29884 | { |
29885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29886 | } | |
d14a1e28 RD |
29887 | return resultobj; |
29888 | fail: | |
29889 | return NULL; | |
29890 | } | |
29891 | ||
29892 | ||
c32bde28 | 29893 | static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29894 | PyObject *resultobj; |
29895 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29896 | PyObject * obj0 = 0 ; | |
29897 | char *kwnames[] = { | |
29898 | (char *) "self", NULL | |
29899 | }; | |
29900 | ||
29901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29902 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29903 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29904 | { |
29905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29906 | (arg1)->Clear(); | |
29907 | ||
29908 | wxPyEndAllowThreads(__tstate); | |
29909 | if (PyErr_Occurred()) SWIG_fail; | |
29910 | } | |
29911 | Py_INCREF(Py_None); resultobj = Py_None; | |
29912 | return resultobj; | |
29913 | fail: | |
29914 | return NULL; | |
29915 | } | |
29916 | ||
29917 | ||
c32bde28 | 29918 | static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29919 | PyObject *resultobj; |
29920 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
29921 | bool result; | |
29922 | PyObject * obj0 = 0 ; | |
29923 | char *kwnames[] = { | |
29924 | (char *) "self", NULL | |
29925 | }; | |
29926 | ||
29927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29930 | { |
29931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29932 | result = (bool)(arg1)->Flush(); | |
29933 | ||
29934 | wxPyEndAllowThreads(__tstate); | |
29935 | if (PyErr_Occurred()) SWIG_fail; | |
29936 | } | |
4f89f6a3 RD |
29937 | { |
29938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29939 | } | |
d14a1e28 RD |
29940 | return resultobj; |
29941 | fail: | |
29942 | return NULL; | |
29943 | } | |
29944 | ||
29945 | ||
c32bde28 | 29946 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29947 | PyObject *resultobj; |
29948 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
ae8162c8 | 29949 | bool arg2 = (bool) true ; |
d14a1e28 RD |
29950 | PyObject * obj0 = 0 ; |
29951 | PyObject * obj1 = 0 ; | |
29952 | char *kwnames[] = { | |
29953 | (char *) "self",(char *) "primary", NULL | |
29954 | }; | |
29955 | ||
29956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
29958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 29959 | if (obj1) { |
093d3ff1 RD |
29960 | { |
29961 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
29962 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29963 | } | |
d14a1e28 RD |
29964 | } |
29965 | { | |
29966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29967 | (arg1)->UsePrimarySelection(arg2); | |
29968 | ||
29969 | wxPyEndAllowThreads(__tstate); | |
29970 | if (PyErr_Occurred()) SWIG_fail; | |
29971 | } | |
29972 | Py_INCREF(Py_None); resultobj = Py_None; | |
29973 | return resultobj; | |
29974 | fail: | |
29975 | return NULL; | |
29976 | } | |
29977 | ||
29978 | ||
c32bde28 | 29979 | static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
dfbb5885 RD |
29980 | PyObject *resultobj; |
29981 | wxClipboard *result; | |
29982 | char *kwnames[] = { | |
29983 | NULL | |
29984 | }; | |
29985 | ||
29986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
29987 | { | |
29988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29989 | result = (wxClipboard *)wxClipboard::Get(); | |
29990 | ||
29991 | wxPyEndAllowThreads(__tstate); | |
29992 | if (PyErr_Occurred()) SWIG_fail; | |
29993 | } | |
29994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
29995 | return resultobj; | |
29996 | fail: | |
29997 | return NULL; | |
29998 | } | |
29999 | ||
30000 | ||
c32bde28 | 30001 | static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30002 | PyObject *obj; |
30003 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30004 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
30005 | Py_INCREF(obj); | |
30006 | return Py_BuildValue((char *)""); | |
30007 | } | |
c32bde28 | 30008 | static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30009 | PyObject *resultobj; |
30010 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
30011 | wxClipboardLocker *result; | |
30012 | PyObject * obj0 = 0 ; | |
30013 | char *kwnames[] = { | |
30014 | (char *) "clipboard", NULL | |
30015 | }; | |
30016 | ||
30017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
30018 | if (obj0) { | |
093d3ff1 RD |
30019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboard, SWIG_POINTER_EXCEPTION | 0); |
30020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30021 | } |
30022 | { | |
30023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30024 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
30025 | ||
30026 | wxPyEndAllowThreads(__tstate); | |
30027 | if (PyErr_Occurred()) SWIG_fail; | |
30028 | } | |
15afbcd0 | 30029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); |
d14a1e28 RD |
30030 | return resultobj; |
30031 | fail: | |
30032 | return NULL; | |
30033 | } | |
30034 | ||
30035 | ||
c32bde28 | 30036 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30037 | PyObject *resultobj; |
30038 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
30039 | PyObject * obj0 = 0 ; | |
30040 | char *kwnames[] = { | |
30041 | (char *) "self", NULL | |
30042 | }; | |
30043 | ||
30044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0); |
30046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30047 | { |
30048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30049 | delete arg1; | |
30050 | ||
30051 | wxPyEndAllowThreads(__tstate); | |
30052 | if (PyErr_Occurred()) SWIG_fail; | |
30053 | } | |
30054 | Py_INCREF(Py_None); resultobj = Py_None; | |
30055 | return resultobj; | |
30056 | fail: | |
30057 | return NULL; | |
30058 | } | |
30059 | ||
30060 | ||
c32bde28 | 30061 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30062 | PyObject *resultobj; |
30063 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
30064 | bool result; | |
30065 | PyObject * obj0 = 0 ; | |
30066 | char *kwnames[] = { | |
30067 | (char *) "self", NULL | |
30068 | }; | |
30069 | ||
30070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30071 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_EXCEPTION | 0); |
30072 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30073 | { |
30074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30075 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
30076 | ||
30077 | wxPyEndAllowThreads(__tstate); | |
30078 | if (PyErr_Occurred()) SWIG_fail; | |
30079 | } | |
4f89f6a3 RD |
30080 | { |
30081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30082 | } | |
d14a1e28 RD |
30083 | return resultobj; |
30084 | fail: | |
30085 | return NULL; | |
30086 | } | |
30087 | ||
30088 | ||
c32bde28 | 30089 | static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30090 | PyObject *obj; |
30091 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30092 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
30093 | Py_INCREF(obj); | |
30094 | return Py_BuildValue((char *)""); | |
30095 | } | |
c32bde28 | 30096 | static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30097 | PyObject *resultobj; |
30098 | int arg1 = (int) 0 ; | |
30099 | int arg2 = (int) 0 ; | |
30100 | int arg3 = (int) 0 ; | |
30101 | int arg4 = (int) 0 ; | |
30102 | wxVideoMode *result; | |
30103 | PyObject * obj0 = 0 ; | |
30104 | PyObject * obj1 = 0 ; | |
30105 | PyObject * obj2 = 0 ; | |
30106 | PyObject * obj3 = 0 ; | |
30107 | char *kwnames[] = { | |
30108 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
30109 | }; | |
30110 | ||
30111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30112 | if (obj0) { | |
093d3ff1 RD |
30113 | { |
30114 | arg1 = (int)(SWIG_As_int(obj0)); | |
30115 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30116 | } | |
4276dc52 RD |
30117 | } |
30118 | if (obj1) { | |
093d3ff1 RD |
30119 | { |
30120 | arg2 = (int)(SWIG_As_int(obj1)); | |
30121 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30122 | } | |
4276dc52 RD |
30123 | } |
30124 | if (obj2) { | |
093d3ff1 RD |
30125 | { |
30126 | arg3 = (int)(SWIG_As_int(obj2)); | |
30127 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30128 | } | |
4276dc52 RD |
30129 | } |
30130 | if (obj3) { | |
093d3ff1 RD |
30131 | { |
30132 | arg4 = (int)(SWIG_As_int(obj3)); | |
30133 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30134 | } | |
4276dc52 RD |
30135 | } |
30136 | { | |
30137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30138 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
30139 | ||
30140 | wxPyEndAllowThreads(__tstate); | |
30141 | if (PyErr_Occurred()) SWIG_fail; | |
30142 | } | |
30143 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
30144 | return resultobj; | |
30145 | fail: | |
30146 | return NULL; | |
30147 | } | |
30148 | ||
30149 | ||
c32bde28 | 30150 | static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30151 | PyObject *resultobj; |
30152 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30153 | PyObject * obj0 = 0 ; | |
30154 | char *kwnames[] = { | |
30155 | (char *) "self", NULL | |
30156 | }; | |
30157 | ||
30158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30161 | { |
30162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30163 | delete arg1; | |
30164 | ||
30165 | wxPyEndAllowThreads(__tstate); | |
30166 | if (PyErr_Occurred()) SWIG_fail; | |
30167 | } | |
30168 | Py_INCREF(Py_None); resultobj = Py_None; | |
30169 | return resultobj; | |
30170 | fail: | |
30171 | return NULL; | |
30172 | } | |
30173 | ||
30174 | ||
c32bde28 | 30175 | static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30176 | PyObject *resultobj; |
30177 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30178 | wxVideoMode *arg2 = 0 ; | |
30179 | bool result; | |
30180 | PyObject * obj0 = 0 ; | |
30181 | PyObject * obj1 = 0 ; | |
30182 | char *kwnames[] = { | |
30183 | (char *) "self",(char *) "other", NULL | |
30184 | }; | |
30185 | ||
30186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30189 | { | |
30190 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
30191 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30192 | if (arg2 == NULL) { | |
30193 | SWIG_null_ref("wxVideoMode"); | |
30194 | } | |
30195 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4276dc52 RD |
30196 | } |
30197 | { | |
30198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30199 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
30200 | ||
30201 | wxPyEndAllowThreads(__tstate); | |
30202 | if (PyErr_Occurred()) SWIG_fail; | |
30203 | } | |
4f89f6a3 RD |
30204 | { |
30205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30206 | } | |
4276dc52 RD |
30207 | return resultobj; |
30208 | fail: | |
30209 | return NULL; | |
30210 | } | |
30211 | ||
30212 | ||
c32bde28 | 30213 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30214 | PyObject *resultobj; |
30215 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30216 | int result; | |
30217 | PyObject * obj0 = 0 ; | |
30218 | char *kwnames[] = { | |
30219 | (char *) "self", NULL | |
30220 | }; | |
30221 | ||
30222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30225 | { |
30226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30227 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
30228 | ||
30229 | wxPyEndAllowThreads(__tstate); | |
30230 | if (PyErr_Occurred()) SWIG_fail; | |
30231 | } | |
093d3ff1 RD |
30232 | { |
30233 | resultobj = SWIG_From_int((int)(result)); | |
30234 | } | |
4276dc52 RD |
30235 | return resultobj; |
30236 | fail: | |
30237 | return NULL; | |
30238 | } | |
30239 | ||
30240 | ||
c32bde28 | 30241 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30242 | PyObject *resultobj; |
30243 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30244 | int result; | |
30245 | PyObject * obj0 = 0 ; | |
30246 | char *kwnames[] = { | |
30247 | (char *) "self", NULL | |
30248 | }; | |
30249 | ||
30250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30251 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30252 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30253 | { |
30254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30255 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
30256 | ||
30257 | wxPyEndAllowThreads(__tstate); | |
30258 | if (PyErr_Occurred()) SWIG_fail; | |
30259 | } | |
093d3ff1 RD |
30260 | { |
30261 | resultobj = SWIG_From_int((int)(result)); | |
30262 | } | |
4276dc52 RD |
30263 | return resultobj; |
30264 | fail: | |
30265 | return NULL; | |
30266 | } | |
30267 | ||
30268 | ||
c32bde28 | 30269 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30270 | PyObject *resultobj; |
30271 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30272 | int result; | |
30273 | PyObject * obj0 = 0 ; | |
30274 | char *kwnames[] = { | |
30275 | (char *) "self", NULL | |
30276 | }; | |
30277 | ||
30278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30279 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30280 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30281 | { |
30282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30283 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
30284 | ||
30285 | wxPyEndAllowThreads(__tstate); | |
30286 | if (PyErr_Occurred()) SWIG_fail; | |
30287 | } | |
093d3ff1 RD |
30288 | { |
30289 | resultobj = SWIG_From_int((int)(result)); | |
30290 | } | |
4276dc52 RD |
30291 | return resultobj; |
30292 | fail: | |
30293 | return NULL; | |
30294 | } | |
30295 | ||
30296 | ||
c32bde28 | 30297 | static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30298 | PyObject *resultobj; |
30299 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30300 | bool result; | |
30301 | PyObject * obj0 = 0 ; | |
30302 | char *kwnames[] = { | |
30303 | (char *) "self", NULL | |
30304 | }; | |
30305 | ||
30306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30307 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30308 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30309 | { |
30310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30311 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
30312 | ||
30313 | wxPyEndAllowThreads(__tstate); | |
30314 | if (PyErr_Occurred()) SWIG_fail; | |
30315 | } | |
4f89f6a3 RD |
30316 | { |
30317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30318 | } | |
4276dc52 RD |
30319 | return resultobj; |
30320 | fail: | |
30321 | return NULL; | |
30322 | } | |
30323 | ||
30324 | ||
c32bde28 | 30325 | static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30326 | PyObject *resultobj; |
30327 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30328 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
30329 | bool result; | |
30330 | PyObject * obj0 = 0 ; | |
30331 | PyObject * obj1 = 0 ; | |
30332 | char *kwnames[] = { | |
30333 | (char *) "self",(char *) "other", NULL | |
30334 | }; | |
30335 | ||
30336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30339 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
30340 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4276dc52 RD |
30341 | { |
30342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30343 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
30344 | ||
30345 | wxPyEndAllowThreads(__tstate); | |
30346 | if (PyErr_Occurred()) SWIG_fail; | |
30347 | } | |
4f89f6a3 RD |
30348 | { |
30349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30350 | } | |
4276dc52 RD |
30351 | return resultobj; |
30352 | fail: | |
30353 | return NULL; | |
30354 | } | |
30355 | ||
30356 | ||
c32bde28 | 30357 | static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30358 | PyObject *resultobj; |
30359 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30360 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
30361 | bool result; | |
30362 | PyObject * obj0 = 0 ; | |
30363 | PyObject * obj1 = 0 ; | |
30364 | char *kwnames[] = { | |
30365 | (char *) "self",(char *) "other", NULL | |
30366 | }; | |
30367 | ||
30368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30371 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
30372 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4276dc52 RD |
30373 | { |
30374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30375 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
30376 | ||
30377 | wxPyEndAllowThreads(__tstate); | |
30378 | if (PyErr_Occurred()) SWIG_fail; | |
30379 | } | |
4f89f6a3 RD |
30380 | { |
30381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30382 | } | |
4276dc52 RD |
30383 | return resultobj; |
30384 | fail: | |
30385 | return NULL; | |
30386 | } | |
30387 | ||
30388 | ||
c32bde28 | 30389 | static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30390 | PyObject *resultobj; |
30391 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30392 | int arg2 ; | |
30393 | PyObject * obj0 = 0 ; | |
30394 | PyObject * obj1 = 0 ; | |
30395 | char *kwnames[] = { | |
30396 | (char *) "self",(char *) "w", NULL | |
30397 | }; | |
30398 | ||
30399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30402 | { | |
30403 | arg2 = (int)(SWIG_As_int(obj1)); | |
30404 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30405 | } | |
4276dc52 RD |
30406 | if (arg1) (arg1)->w = arg2; |
30407 | ||
30408 | Py_INCREF(Py_None); resultobj = Py_None; | |
30409 | return resultobj; | |
30410 | fail: | |
30411 | return NULL; | |
30412 | } | |
30413 | ||
30414 | ||
c32bde28 | 30415 | static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30416 | PyObject *resultobj; |
30417 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30418 | int result; | |
30419 | PyObject * obj0 = 0 ; | |
30420 | char *kwnames[] = { | |
30421 | (char *) "self", NULL | |
30422 | }; | |
30423 | ||
30424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30427 | result = (int) ((arg1)->w); |
30428 | ||
093d3ff1 RD |
30429 | { |
30430 | resultobj = SWIG_From_int((int)(result)); | |
30431 | } | |
4276dc52 RD |
30432 | return resultobj; |
30433 | fail: | |
30434 | return NULL; | |
30435 | } | |
30436 | ||
30437 | ||
c32bde28 | 30438 | static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30439 | PyObject *resultobj; |
30440 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30441 | int arg2 ; | |
30442 | PyObject * obj0 = 0 ; | |
30443 | PyObject * obj1 = 0 ; | |
30444 | char *kwnames[] = { | |
30445 | (char *) "self",(char *) "h", NULL | |
30446 | }; | |
30447 | ||
30448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30451 | { | |
30452 | arg2 = (int)(SWIG_As_int(obj1)); | |
30453 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30454 | } | |
4276dc52 RD |
30455 | if (arg1) (arg1)->h = arg2; |
30456 | ||
30457 | Py_INCREF(Py_None); resultobj = Py_None; | |
30458 | return resultobj; | |
30459 | fail: | |
30460 | return NULL; | |
30461 | } | |
30462 | ||
30463 | ||
c32bde28 | 30464 | static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30465 | PyObject *resultobj; |
30466 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30467 | int result; | |
30468 | PyObject * obj0 = 0 ; | |
30469 | char *kwnames[] = { | |
30470 | (char *) "self", NULL | |
30471 | }; | |
30472 | ||
30473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30476 | result = (int) ((arg1)->h); |
30477 | ||
093d3ff1 RD |
30478 | { |
30479 | resultobj = SWIG_From_int((int)(result)); | |
30480 | } | |
4276dc52 RD |
30481 | return resultobj; |
30482 | fail: | |
30483 | return NULL; | |
30484 | } | |
30485 | ||
30486 | ||
c32bde28 | 30487 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30488 | PyObject *resultobj; |
30489 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30490 | int arg2 ; | |
30491 | PyObject * obj0 = 0 ; | |
30492 | PyObject * obj1 = 0 ; | |
30493 | char *kwnames[] = { | |
30494 | (char *) "self",(char *) "bpp", NULL | |
30495 | }; | |
30496 | ||
30497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30500 | { | |
30501 | arg2 = (int)(SWIG_As_int(obj1)); | |
30502 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30503 | } | |
4276dc52 RD |
30504 | if (arg1) (arg1)->bpp = arg2; |
30505 | ||
30506 | Py_INCREF(Py_None); resultobj = Py_None; | |
30507 | return resultobj; | |
30508 | fail: | |
30509 | return NULL; | |
30510 | } | |
30511 | ||
30512 | ||
c32bde28 | 30513 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30514 | PyObject *resultobj; |
30515 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30516 | int result; | |
30517 | PyObject * obj0 = 0 ; | |
30518 | char *kwnames[] = { | |
30519 | (char *) "self", NULL | |
30520 | }; | |
30521 | ||
30522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30523 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30524 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30525 | result = (int) ((arg1)->bpp); |
30526 | ||
093d3ff1 RD |
30527 | { |
30528 | resultobj = SWIG_From_int((int)(result)); | |
30529 | } | |
4276dc52 RD |
30530 | return resultobj; |
30531 | fail: | |
30532 | return NULL; | |
30533 | } | |
30534 | ||
30535 | ||
c32bde28 | 30536 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30537 | PyObject *resultobj; |
30538 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30539 | int arg2 ; | |
30540 | PyObject * obj0 = 0 ; | |
30541 | PyObject * obj1 = 0 ; | |
30542 | char *kwnames[] = { | |
30543 | (char *) "self",(char *) "refresh", NULL | |
30544 | }; | |
30545 | ||
30546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30549 | { | |
30550 | arg2 = (int)(SWIG_As_int(obj1)); | |
30551 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30552 | } | |
4276dc52 RD |
30553 | if (arg1) (arg1)->refresh = arg2; |
30554 | ||
30555 | Py_INCREF(Py_None); resultobj = Py_None; | |
30556 | return resultobj; | |
30557 | fail: | |
30558 | return NULL; | |
30559 | } | |
30560 | ||
30561 | ||
c32bde28 | 30562 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30563 | PyObject *resultobj; |
30564 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
30565 | int result; | |
30566 | PyObject * obj0 = 0 ; | |
30567 | char *kwnames[] = { | |
30568 | (char *) "self", NULL | |
30569 | }; | |
30570 | ||
30571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30572 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); |
30573 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30574 | result = (int) ((arg1)->refresh); |
30575 | ||
093d3ff1 RD |
30576 | { |
30577 | resultobj = SWIG_From_int((int)(result)); | |
30578 | } | |
4276dc52 RD |
30579 | return resultobj; |
30580 | fail: | |
30581 | return NULL; | |
30582 | } | |
30583 | ||
30584 | ||
c32bde28 | 30585 | static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) { |
4276dc52 RD |
30586 | PyObject *obj; |
30587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30588 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
30589 | Py_INCREF(obj); | |
30590 | return Py_BuildValue((char *)""); | |
30591 | } | |
c32bde28 | 30592 | static int _wrap_DefaultVideoMode_set(PyObject *) { |
4276dc52 RD |
30593 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); |
30594 | return 1; | |
30595 | } | |
30596 | ||
30597 | ||
093d3ff1 | 30598 | static PyObject *_wrap_DefaultVideoMode_get(void) { |
4276dc52 RD |
30599 | PyObject *pyobj; |
30600 | ||
30601 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
30602 | return pyobj; | |
30603 | } | |
30604 | ||
30605 | ||
c32bde28 | 30606 | static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30607 | PyObject *resultobj; |
30608 | size_t arg1 = (size_t) 0 ; | |
30609 | wxDisplay *result; | |
30610 | PyObject * obj0 = 0 ; | |
30611 | char *kwnames[] = { | |
30612 | (char *) "index", NULL | |
30613 | }; | |
30614 | ||
30615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
30616 | if (obj0) { | |
093d3ff1 RD |
30617 | { |
30618 | arg1 = (size_t)(SWIG_As_unsigned_SS_long(obj0)); | |
30619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30620 | } | |
4276dc52 RD |
30621 | } |
30622 | { | |
30623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30624 | result = (wxDisplay *)new wxDisplay(arg1); | |
30625 | ||
30626 | wxPyEndAllowThreads(__tstate); | |
30627 | if (PyErr_Occurred()) SWIG_fail; | |
30628 | } | |
30629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
30630 | return resultobj; | |
30631 | fail: | |
30632 | return NULL; | |
30633 | } | |
30634 | ||
30635 | ||
c32bde28 | 30636 | static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30637 | PyObject *resultobj; |
30638 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30639 | PyObject * obj0 = 0 ; | |
30640 | char *kwnames[] = { | |
30641 | (char *) "self", NULL | |
30642 | }; | |
30643 | ||
30644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30645 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30646 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30647 | { |
30648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30649 | delete arg1; | |
30650 | ||
30651 | wxPyEndAllowThreads(__tstate); | |
30652 | if (PyErr_Occurred()) SWIG_fail; | |
30653 | } | |
30654 | Py_INCREF(Py_None); resultobj = Py_None; | |
30655 | return resultobj; | |
30656 | fail: | |
30657 | return NULL; | |
30658 | } | |
30659 | ||
30660 | ||
c32bde28 | 30661 | static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30662 | PyObject *resultobj; |
30663 | size_t result; | |
30664 | char *kwnames[] = { | |
30665 | NULL | |
30666 | }; | |
30667 | ||
30668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
30669 | { | |
30670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30671 | result = (size_t)wxDisplay::GetCount(); | |
30672 | ||
30673 | wxPyEndAllowThreads(__tstate); | |
30674 | if (PyErr_Occurred()) SWIG_fail; | |
30675 | } | |
093d3ff1 RD |
30676 | { |
30677 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
30678 | } | |
4276dc52 RD |
30679 | return resultobj; |
30680 | fail: | |
30681 | return NULL; | |
30682 | } | |
30683 | ||
30684 | ||
c32bde28 | 30685 | static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30686 | PyObject *resultobj; |
30687 | wxPoint *arg1 = 0 ; | |
30688 | int result; | |
30689 | wxPoint temp1 ; | |
30690 | PyObject * obj0 = 0 ; | |
30691 | char *kwnames[] = { | |
30692 | (char *) "pt", NULL | |
30693 | }; | |
30694 | ||
30695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
30696 | { | |
30697 | arg1 = &temp1; | |
30698 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
30699 | } | |
30700 | { | |
30701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30702 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
30703 | ||
30704 | wxPyEndAllowThreads(__tstate); | |
30705 | if (PyErr_Occurred()) SWIG_fail; | |
30706 | } | |
093d3ff1 RD |
30707 | { |
30708 | resultobj = SWIG_From_int((int)(result)); | |
30709 | } | |
4276dc52 RD |
30710 | return resultobj; |
30711 | fail: | |
30712 | return NULL; | |
30713 | } | |
30714 | ||
30715 | ||
c32bde28 | 30716 | static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30717 | PyObject *resultobj; |
30718 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30719 | int result; | |
30720 | PyObject * obj0 = 0 ; | |
30721 | char *kwnames[] = { | |
30722 | (char *) "window", NULL | |
30723 | }; | |
30724 | ||
30725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30726 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30727 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30728 | { |
30729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30730 | result = (int)Display_GetFromWindow(arg1); | |
30731 | ||
30732 | wxPyEndAllowThreads(__tstate); | |
30733 | if (PyErr_Occurred()) SWIG_fail; | |
30734 | } | |
093d3ff1 RD |
30735 | { |
30736 | resultobj = SWIG_From_int((int)(result)); | |
30737 | } | |
4276dc52 RD |
30738 | return resultobj; |
30739 | fail: | |
30740 | return NULL; | |
30741 | } | |
30742 | ||
30743 | ||
c32bde28 | 30744 | static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30745 | PyObject *resultobj; |
30746 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30747 | bool result; | |
30748 | PyObject * obj0 = 0 ; | |
30749 | char *kwnames[] = { | |
30750 | (char *) "self", NULL | |
30751 | }; | |
30752 | ||
30753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30754 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30755 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30756 | { |
30757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30758 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
30759 | ||
30760 | wxPyEndAllowThreads(__tstate); | |
30761 | if (PyErr_Occurred()) SWIG_fail; | |
30762 | } | |
4f89f6a3 RD |
30763 | { |
30764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30765 | } | |
4276dc52 RD |
30766 | return resultobj; |
30767 | fail: | |
30768 | return NULL; | |
30769 | } | |
30770 | ||
30771 | ||
c32bde28 | 30772 | static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30773 | PyObject *resultobj; |
30774 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30775 | wxRect result; | |
30776 | PyObject * obj0 = 0 ; | |
30777 | char *kwnames[] = { | |
30778 | (char *) "self", NULL | |
30779 | }; | |
30780 | ||
30781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30784 | { |
30785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30786 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
30787 | ||
30788 | wxPyEndAllowThreads(__tstate); | |
30789 | if (PyErr_Occurred()) SWIG_fail; | |
30790 | } | |
30791 | { | |
30792 | wxRect * resultptr; | |
093d3ff1 | 30793 | resultptr = new wxRect((wxRect &)(result)); |
4276dc52 RD |
30794 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
30795 | } | |
30796 | return resultobj; | |
30797 | fail: | |
30798 | return NULL; | |
30799 | } | |
30800 | ||
30801 | ||
c32bde28 | 30802 | static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30803 | PyObject *resultobj; |
30804 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30805 | wxString result; | |
30806 | PyObject * obj0 = 0 ; | |
30807 | char *kwnames[] = { | |
30808 | (char *) "self", NULL | |
30809 | }; | |
30810 | ||
30811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30812 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30813 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30814 | { |
30815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30816 | result = ((wxDisplay const *)arg1)->GetName(); | |
30817 | ||
30818 | wxPyEndAllowThreads(__tstate); | |
30819 | if (PyErr_Occurred()) SWIG_fail; | |
30820 | } | |
30821 | { | |
30822 | #if wxUSE_UNICODE | |
30823 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30824 | #else | |
30825 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30826 | #endif | |
30827 | } | |
30828 | return resultobj; | |
30829 | fail: | |
30830 | return NULL; | |
30831 | } | |
30832 | ||
30833 | ||
c32bde28 | 30834 | static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30835 | PyObject *resultobj; |
30836 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30837 | bool result; | |
30838 | PyObject * obj0 = 0 ; | |
30839 | char *kwnames[] = { | |
30840 | (char *) "self", NULL | |
30841 | }; | |
30842 | ||
30843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30844 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30846 | { |
30847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30848 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
30849 | ||
30850 | wxPyEndAllowThreads(__tstate); | |
30851 | if (PyErr_Occurred()) SWIG_fail; | |
30852 | } | |
4f89f6a3 RD |
30853 | { |
30854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30855 | } | |
4276dc52 RD |
30856 | return resultobj; |
30857 | fail: | |
30858 | return NULL; | |
30859 | } | |
30860 | ||
30861 | ||
c32bde28 | 30862 | static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30863 | PyObject *resultobj; |
30864 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30865 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
30866 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
30867 | PyObject *result; | |
30868 | PyObject * obj0 = 0 ; | |
30869 | PyObject * obj1 = 0 ; | |
30870 | char *kwnames[] = { | |
30871 | (char *) "self",(char *) "mode", NULL | |
30872 | }; | |
30873 | ||
30874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 | 30877 | if (obj1) { |
093d3ff1 RD |
30878 | { |
30879 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
30880 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30881 | if (arg2 == NULL) { | |
30882 | SWIG_null_ref("wxVideoMode"); | |
30883 | } | |
30884 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4276dc52 RD |
30885 | } |
30886 | } | |
30887 | { | |
30888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30889 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
30890 | ||
30891 | wxPyEndAllowThreads(__tstate); | |
30892 | if (PyErr_Occurred()) SWIG_fail; | |
30893 | } | |
30894 | resultobj = result; | |
30895 | return resultobj; | |
30896 | fail: | |
30897 | return NULL; | |
30898 | } | |
30899 | ||
30900 | ||
c32bde28 | 30901 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30902 | PyObject *resultobj; |
30903 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30904 | wxVideoMode result; | |
30905 | PyObject * obj0 = 0 ; | |
30906 | char *kwnames[] = { | |
30907 | (char *) "self", NULL | |
30908 | }; | |
30909 | ||
30910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30913 | { |
30914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30915 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
30916 | ||
30917 | wxPyEndAllowThreads(__tstate); | |
30918 | if (PyErr_Occurred()) SWIG_fail; | |
30919 | } | |
30920 | { | |
30921 | wxVideoMode * resultptr; | |
093d3ff1 | 30922 | resultptr = new wxVideoMode((wxVideoMode &)(result)); |
4276dc52 RD |
30923 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); |
30924 | } | |
30925 | return resultobj; | |
30926 | fail: | |
30927 | return NULL; | |
30928 | } | |
30929 | ||
30930 | ||
c32bde28 | 30931 | static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30932 | PyObject *resultobj; |
30933 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30934 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
30935 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
30936 | bool result; | |
30937 | PyObject * obj0 = 0 ; | |
30938 | PyObject * obj1 = 0 ; | |
30939 | char *kwnames[] = { | |
30940 | (char *) "self",(char *) "mode", NULL | |
30941 | }; | |
30942 | ||
30943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30944 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30945 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 | 30946 | if (obj1) { |
093d3ff1 RD |
30947 | { |
30948 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxVideoMode, SWIG_POINTER_EXCEPTION | 0); | |
30949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30950 | if (arg2 == NULL) { | |
30951 | SWIG_null_ref("wxVideoMode"); | |
30952 | } | |
30953 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4276dc52 RD |
30954 | } |
30955 | } | |
30956 | { | |
30957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30958 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
30959 | ||
30960 | wxPyEndAllowThreads(__tstate); | |
30961 | if (PyErr_Occurred()) SWIG_fail; | |
30962 | } | |
4f89f6a3 RD |
30963 | { |
30964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30965 | } | |
4276dc52 RD |
30966 | return resultobj; |
30967 | fail: | |
30968 | return NULL; | |
30969 | } | |
30970 | ||
30971 | ||
c32bde28 | 30972 | static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
30973 | PyObject *resultobj; |
30974 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
30975 | PyObject * obj0 = 0 ; | |
30976 | char *kwnames[] = { | |
30977 | (char *) "self", NULL | |
30978 | }; | |
30979 | ||
30980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30981 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDisplay, SWIG_POINTER_EXCEPTION | 0); |
30982 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
30983 | { |
30984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30985 | (arg1)->ResetMode(); | |
30986 | ||
30987 | wxPyEndAllowThreads(__tstate); | |
30988 | if (PyErr_Occurred()) SWIG_fail; | |
30989 | } | |
30990 | Py_INCREF(Py_None); resultobj = Py_None; | |
30991 | return resultobj; | |
30992 | fail: | |
30993 | return NULL; | |
30994 | } | |
30995 | ||
30996 | ||
c32bde28 | 30997 | static PyObject * Display_swigregister(PyObject *, PyObject *args) { |
4276dc52 RD |
30998 | PyObject *obj; |
30999 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31000 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
31001 | Py_INCREF(obj); | |
31002 | return Py_BuildValue((char *)""); | |
31003 | } | |
d3b6e4ff RD |
31004 | static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
31005 | PyObject *resultobj; | |
31006 | wxStandardPaths *result; | |
31007 | char *kwnames[] = { | |
31008 | NULL | |
31009 | }; | |
31010 | ||
31011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail; | |
31012 | { | |
31013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8fb0e70a | 31014 | result = (wxStandardPaths *)StandardPaths_Get(); |
d3b6e4ff RD |
31015 | |
31016 | wxPyEndAllowThreads(__tstate); | |
31017 | if (PyErr_Occurred()) SWIG_fail; | |
31018 | } | |
31019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0); | |
31020 | return resultobj; | |
31021 | fail: | |
31022 | return NULL; | |
31023 | } | |
31024 | ||
31025 | ||
31026 | static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31027 | PyObject *resultobj; | |
31028 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31029 | wxString result; | |
31030 | PyObject * obj0 = 0 ; | |
31031 | char *kwnames[] = { | |
31032 | (char *) "self", NULL | |
31033 | }; | |
31034 | ||
31035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
31038 | { |
31039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31040 | result = ((wxStandardPaths const *)arg1)->GetConfigDir(); | |
31041 | ||
31042 | wxPyEndAllowThreads(__tstate); | |
31043 | if (PyErr_Occurred()) SWIG_fail; | |
31044 | } | |
31045 | { | |
31046 | #if wxUSE_UNICODE | |
31047 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31048 | #else | |
31049 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31050 | #endif | |
31051 | } | |
31052 | return resultobj; | |
31053 | fail: | |
31054 | return NULL; | |
31055 | } | |
31056 | ||
31057 | ||
31058 | static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31059 | PyObject *resultobj; | |
31060 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31061 | wxString result; | |
31062 | PyObject * obj0 = 0 ; | |
31063 | char *kwnames[] = { | |
31064 | (char *) "self", NULL | |
31065 | }; | |
31066 | ||
31067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
31070 | { |
31071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31072 | result = ((wxStandardPaths const *)arg1)->GetUserConfigDir(); | |
31073 | ||
31074 | wxPyEndAllowThreads(__tstate); | |
31075 | if (PyErr_Occurred()) SWIG_fail; | |
31076 | } | |
31077 | { | |
31078 | #if wxUSE_UNICODE | |
31079 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31080 | #else | |
31081 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31082 | #endif | |
31083 | } | |
31084 | return resultobj; | |
31085 | fail: | |
31086 | return NULL; | |
31087 | } | |
31088 | ||
31089 | ||
31090 | static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31091 | PyObject *resultobj; | |
31092 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31093 | wxString result; | |
31094 | PyObject * obj0 = 0 ; | |
31095 | char *kwnames[] = { | |
31096 | (char *) "self", NULL | |
31097 | }; | |
31098 | ||
31099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
31102 | { |
31103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31104 | result = ((wxStandardPaths const *)arg1)->GetDataDir(); | |
31105 | ||
31106 | wxPyEndAllowThreads(__tstate); | |
31107 | if (PyErr_Occurred()) SWIG_fail; | |
31108 | } | |
31109 | { | |
31110 | #if wxUSE_UNICODE | |
31111 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31112 | #else | |
31113 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31114 | #endif | |
31115 | } | |
31116 | return resultobj; | |
31117 | fail: | |
31118 | return NULL; | |
31119 | } | |
31120 | ||
31121 | ||
31122 | static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31123 | PyObject *resultobj; | |
31124 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31125 | wxString result; | |
31126 | PyObject * obj0 = 0 ; | |
31127 | char *kwnames[] = { | |
31128 | (char *) "self", NULL | |
31129 | }; | |
31130 | ||
31131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
31134 | { |
31135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31136 | result = ((wxStandardPaths const *)arg1)->GetLocalDataDir(); | |
31137 | ||
31138 | wxPyEndAllowThreads(__tstate); | |
31139 | if (PyErr_Occurred()) SWIG_fail; | |
31140 | } | |
31141 | { | |
31142 | #if wxUSE_UNICODE | |
31143 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31144 | #else | |
31145 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31146 | #endif | |
31147 | } | |
31148 | return resultobj; | |
31149 | fail: | |
31150 | return NULL; | |
31151 | } | |
31152 | ||
31153 | ||
31154 | static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31155 | PyObject *resultobj; | |
31156 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31157 | wxString result; | |
31158 | PyObject * obj0 = 0 ; | |
31159 | char *kwnames[] = { | |
31160 | (char *) "self", NULL | |
31161 | }; | |
31162 | ||
31163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
31166 | { |
31167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31168 | result = ((wxStandardPaths const *)arg1)->GetUserDataDir(); | |
31169 | ||
31170 | wxPyEndAllowThreads(__tstate); | |
31171 | if (PyErr_Occurred()) SWIG_fail; | |
31172 | } | |
31173 | { | |
31174 | #if wxUSE_UNICODE | |
31175 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31176 | #else | |
31177 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31178 | #endif | |
31179 | } | |
31180 | return resultobj; | |
31181 | fail: | |
31182 | return NULL; | |
31183 | } | |
31184 | ||
31185 | ||
31186 | static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31187 | PyObject *resultobj; | |
31188 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31189 | wxString result; | |
31190 | PyObject * obj0 = 0 ; | |
31191 | char *kwnames[] = { | |
31192 | (char *) "self", NULL | |
31193 | }; | |
31194 | ||
31195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
31198 | { |
31199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31200 | result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir(); | |
31201 | ||
31202 | wxPyEndAllowThreads(__tstate); | |
31203 | if (PyErr_Occurred()) SWIG_fail; | |
31204 | } | |
31205 | { | |
31206 | #if wxUSE_UNICODE | |
31207 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31208 | #else | |
31209 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31210 | #endif | |
31211 | } | |
31212 | return resultobj; | |
31213 | fail: | |
31214 | return NULL; | |
31215 | } | |
31216 | ||
31217 | ||
31218 | static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
31219 | PyObject *resultobj; | |
31220 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31221 | wxString result; | |
31222 | PyObject * obj0 = 0 ; | |
31223 | char *kwnames[] = { | |
31224 | (char *) "self", NULL | |
31225 | }; | |
31226 | ||
31227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31228 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31229 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
31230 | { |
31231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31232 | result = ((wxStandardPaths const *)arg1)->GetPluginsDir(); | |
31233 | ||
31234 | wxPyEndAllowThreads(__tstate); | |
31235 | if (PyErr_Occurred()) SWIG_fail; | |
31236 | } | |
31237 | { | |
31238 | #if wxUSE_UNICODE | |
31239 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31240 | #else | |
31241 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31242 | #endif | |
31243 | } | |
31244 | return resultobj; | |
31245 | fail: | |
31246 | return NULL; | |
31247 | } | |
31248 | ||
31249 | ||
31250 | static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
31251 | PyObject *resultobj; | |
31252 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31253 | wxString *arg2 = 0 ; | |
31254 | bool temp2 = false ; | |
31255 | PyObject * obj0 = 0 ; | |
31256 | PyObject * obj1 = 0 ; | |
31257 | char *kwnames[] = { | |
31258 | (char *) "self",(char *) "prefix", NULL | |
31259 | }; | |
31260 | ||
31261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
31264 | { |
31265 | arg2 = wxString_in_helper(obj1); | |
31266 | if (arg2 == NULL) SWIG_fail; | |
31267 | temp2 = true; | |
31268 | } | |
31269 | { | |
31270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31271 | (arg1)->SetInstallPrefix((wxString const &)*arg2); | |
31272 | ||
31273 | wxPyEndAllowThreads(__tstate); | |
31274 | if (PyErr_Occurred()) SWIG_fail; | |
31275 | } | |
31276 | Py_INCREF(Py_None); resultobj = Py_None; | |
31277 | { | |
31278 | if (temp2) | |
31279 | delete arg2; | |
31280 | } | |
31281 | return resultobj; | |
31282 | fail: | |
31283 | { | |
31284 | if (temp2) | |
31285 | delete arg2; | |
31286 | } | |
31287 | return NULL; | |
31288 | } | |
31289 | ||
31290 | ||
31291 | static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
31292 | PyObject *resultobj; | |
31293 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
31294 | wxString result; | |
31295 | PyObject * obj0 = 0 ; | |
31296 | char *kwnames[] = { | |
31297 | (char *) "self", NULL | |
31298 | }; | |
31299 | ||
31300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStandardPaths, SWIG_POINTER_EXCEPTION | 0); |
31302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
31303 | { |
31304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31305 | result = ((wxStandardPaths const *)arg1)->GetInstallPrefix(); | |
31306 | ||
31307 | wxPyEndAllowThreads(__tstate); | |
31308 | if (PyErr_Occurred()) SWIG_fail; | |
31309 | } | |
31310 | { | |
31311 | #if wxUSE_UNICODE | |
31312 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31313 | #else | |
31314 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31315 | #endif | |
31316 | } | |
31317 | return resultobj; | |
31318 | fail: | |
31319 | return NULL; | |
31320 | } | |
31321 | ||
31322 | ||
31323 | static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) { | |
31324 | PyObject *obj; | |
31325 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31326 | SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj); | |
31327 | Py_INCREF(obj); | |
31328 | return Py_BuildValue((char *)""); | |
31329 | } | |
d14a1e28 | 31330 | static PyMethodDef SwigMethods[] = { |
093d3ff1 RD |
31331 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
31332 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31333 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31334 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31335 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31336 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31337 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL}, | |
31338 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31339 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31340 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31341 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31342 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31343 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31344 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL}, | |
31345 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31346 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31347 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31348 | { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31349 | { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31350 | { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31351 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31352 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31353 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31354 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31355 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31356 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31357 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31358 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31359 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31360 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31361 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31362 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31363 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31364 | { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31365 | { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31366 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31367 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31368 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31369 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31370 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31371 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31372 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31373 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31374 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31375 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31376 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31377 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31378 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31379 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31380 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31381 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31382 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31383 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31384 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31385 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31386 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31387 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31388 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31389 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31390 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31391 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31392 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31393 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31394 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31395 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31396 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31397 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31398 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31399 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31400 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31401 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31402 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31403 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31404 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31405 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31406 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31407 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31408 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL}, | |
31409 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31410 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31411 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31412 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31413 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31414 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31415 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31416 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL}, | |
31417 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8e738329 | 31418 | { (char *)"Caret_Destroy", (PyCFunction) _wrap_Caret_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
31419 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, |
31420 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31421 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31422 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31423 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31424 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31425 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31426 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31427 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31428 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31429 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31430 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31431 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
31432 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL}, |
31433 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8e738329 | 31434 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL}, |
093d3ff1 RD |
31435 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, |
31436 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31437 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL}, | |
31438 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31439 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31440 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL}, | |
31441 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31442 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31443 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL}, | |
31444 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31445 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31446 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31447 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31448 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31449 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL}, | |
31450 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31451 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31452 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31453 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31454 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31455 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31456 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31457 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31458 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31459 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31460 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31461 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31462 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31463 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL}, | |
31464 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31465 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31466 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31467 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31468 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31469 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL}, | |
68350608 | 31470 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
31471 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, |
31472 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31473 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31474 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31475 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL}, | |
31476 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31477 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31478 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL}, | |
31479 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31480 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31481 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31482 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31483 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31484 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31485 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31486 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31487 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31488 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31489 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31490 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31491 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31492 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL}, | |
31493 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31494 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31495 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL}, | |
31496 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL}, | |
31497 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31498 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31499 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL}, | |
31500 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31501 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31502 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31503 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31504 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31505 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31506 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31507 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31508 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31509 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31510 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31511 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31512 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31513 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31514 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31515 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31516 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31517 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31518 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31519 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31520 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31521 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31522 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31523 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31524 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31525 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31526 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL}, | |
31527 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31528 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL}, | |
31529 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31530 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL}, | |
31531 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31532 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL}, | |
31533 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31534 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31535 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31536 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31537 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31538 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31539 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL}, | |
31540 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31541 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31542 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31543 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31544 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31545 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL}, | |
31546 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31547 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31548 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31549 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31550 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31551 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31552 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31553 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31554 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31555 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31556 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31557 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31558 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31559 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL}, | |
31560 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31561 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31562 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31563 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL}, | |
31564 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31565 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31566 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL}, | |
31567 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31568 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31569 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31570 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31571 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31572 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31573 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31574 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31575 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31576 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31577 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31578 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31579 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31580 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31581 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31582 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31583 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL}, | |
31584 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31585 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31586 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31587 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31588 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31589 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31590 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31591 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL}, | |
31592 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31593 | { (char *)"Kill", (PyCFunction) _wrap_Kill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31594 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31595 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31596 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31597 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31598 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31599 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31600 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31601 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31602 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31603 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31604 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31605 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31606 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31607 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31608 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31609 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31610 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31611 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31612 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31613 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31614 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31615 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31616 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31617 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31618 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31619 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31620 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31621 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31622 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31623 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31624 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31625 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31626 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31627 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31628 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31629 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31630 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31631 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31632 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31633 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31634 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31635 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31636 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31637 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31638 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
31639 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31640 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31641 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31642 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31643 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31644 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31645 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31646 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31647 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31648 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31649 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31650 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31651 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31652 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31653 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31654 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31655 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31656 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL}, | |
31657 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31658 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31659 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31660 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31661 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31662 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31663 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31664 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31665 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31666 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL}, | |
31667 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31668 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31669 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31670 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31671 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31672 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31673 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31674 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31675 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31676 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31677 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31678 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31679 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31680 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31681 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31682 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL}, | |
31683 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31684 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31685 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31686 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31687 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31688 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31689 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31690 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31691 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31692 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31693 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31694 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31695 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31696 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31697 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31698 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL}, | |
31699 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31700 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31701 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31702 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31703 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31704 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31705 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31706 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31707 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31708 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31709 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31710 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31711 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31712 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL}, | |
31713 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31714 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31715 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31716 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31717 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31718 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31719 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
9c874b48 | 31720 | { (char *)"ArtProvider_GetSize", (PyCFunction) _wrap_ArtProvider_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
31721 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, |
31722 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL}, | |
31723 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31724 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31725 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31726 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31727 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31728 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31729 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31730 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31731 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31732 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31733 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31734 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31735 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31736 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31737 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31738 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31739 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31740 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31741 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31742 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31743 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31744 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31745 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31746 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31747 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31748 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31749 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31750 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31751 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31752 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31753 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31754 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31755 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31756 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31757 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31758 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31759 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31760 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31761 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31762 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31763 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31764 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31765 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL}, | |
31766 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31767 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31768 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL}, | |
31769 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31770 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31771 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL}, | |
31772 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31773 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31774 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31775 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL}, | |
31776 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31777 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31778 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31779 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31780 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31781 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31782 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31783 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31784 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31785 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31786 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31787 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31788 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31789 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31790 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31791 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31792 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31793 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31794 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31795 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31796 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31797 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31798 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31799 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31800 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31801 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31802 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31803 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31804 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31805 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31806 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31807 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31808 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31809 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31810 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31811 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31812 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31813 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31814 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31815 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31816 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31817 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31818 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31819 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31820 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31821 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31822 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31823 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31824 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31825 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31826 | { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31827 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31828 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31829 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31830 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31831 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31832 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31833 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31834 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31835 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31836 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31837 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31838 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31839 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31840 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31841 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31842 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31843 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31844 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31845 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31846 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31847 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31848 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31849 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31850 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31851 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31852 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31853 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31854 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31855 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31856 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31857 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31858 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31859 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31860 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31861 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31862 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31863 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31864 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31865 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31866 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31867 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31868 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL}, | |
31869 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL}, | |
31870 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL}, | |
31871 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL}, | |
fef4c27a RD |
31872 | { (char *)"DateTime___lt__", (PyCFunction) _wrap_DateTime___lt__, METH_VARARGS | METH_KEYWORDS, NULL}, |
31873 | { (char *)"DateTime___le__", (PyCFunction) _wrap_DateTime___le__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31874 | { (char *)"DateTime___gt__", (PyCFunction) _wrap_DateTime___gt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31875 | { (char *)"DateTime___ge__", (PyCFunction) _wrap_DateTime___ge__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31876 | { (char *)"DateTime___eq__", (PyCFunction) _wrap_DateTime___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31877 | { (char *)"DateTime___ne__", (PyCFunction) _wrap_DateTime___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
31878 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL}, |
31879 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31880 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31881 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31882 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31883 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31884 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31885 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31886 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31887 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31888 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL}, | |
31889 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31890 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31891 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31892 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31893 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31894 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31895 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31896 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31897 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31898 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31899 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31900 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31901 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31902 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31903 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31904 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31905 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31906 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31907 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31908 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31909 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31910 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31911 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31912 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31913 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31914 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31915 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31916 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31917 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31918 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31919 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31920 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31921 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31922 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31923 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31924 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31925 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31926 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31927 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31928 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31929 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31930 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31931 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31932 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31933 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL}, | |
31934 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31935 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31936 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31937 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31938 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31939 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31940 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31941 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31942 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31943 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31944 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31945 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31946 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31947 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31948 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31949 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31950 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31951 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31952 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31953 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31954 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31955 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31956 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31957 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31958 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31959 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31960 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31961 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31962 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31963 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31964 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31965 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31966 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31967 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL}, | |
31968 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31969 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31970 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31971 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31972 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31973 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31974 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31975 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL}, | |
31976 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL}, | |
31977 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31978 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31979 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31980 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31981 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL}, | |
31982 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31983 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31984 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31985 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31986 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31987 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31988 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31989 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31990 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL}, | |
31991 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31992 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31993 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31994 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31995 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31996 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31997 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL}, | |
31998 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31999 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32000 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL}, | |
32001 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32002 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32003 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL}, | |
32004 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32005 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32006 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32007 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32008 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL}, | |
32009 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32010 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32011 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL}, | |
32012 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32013 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32014 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32015 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL}, | |
32016 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32017 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32018 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL}, | |
32019 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32020 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32021 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32022 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL}, | |
7557b9b5 | 32023 | { (char *)"new_CustomDataObject", _wrap_new_CustomDataObject, METH_VARARGS, NULL}, |
093d3ff1 RD |
32024 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
32025 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32026 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32027 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL}, | |
32028 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32029 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32030 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32031 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL}, | |
32032 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32033 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL}, | |
32034 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32035 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32036 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32037 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32038 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32039 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32040 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32041 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32042 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32043 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL}, | |
32044 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32045 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32046 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32047 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32048 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32049 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32050 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32051 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32052 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32053 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32054 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL}, | |
32055 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32056 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32057 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32058 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32059 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32060 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32061 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32062 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL}, | |
32063 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32064 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32065 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32066 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32067 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32068 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32069 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32070 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL}, | |
32071 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32072 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32073 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32074 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32075 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32076 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32077 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32078 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32079 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32080 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32081 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32082 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32083 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32084 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL}, | |
32085 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32086 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32087 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32088 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL}, | |
32089 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32090 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32091 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32092 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32093 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32094 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32095 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32096 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32097 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32098 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32099 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32100 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32101 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32102 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32103 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32104 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32105 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32106 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL}, | |
32107 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32108 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32109 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32110 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32111 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32112 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32113 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32114 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32115 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32116 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32117 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32118 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32119 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32120 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL}, | |
32121 | { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32122 | { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32123 | { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32124 | { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32125 | { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32126 | { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32127 | { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32128 | { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32129 | { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32130 | { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32131 | { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 32132 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
32133 | }; |
32134 | ||
32135 | ||
32136 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32137 | ||
32138 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32139 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32140 | } | |
32141 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32142 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32143 | } | |
32144 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32145 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32146 | } | |
32147 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32148 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32149 | } | |
32150 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32151 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32152 | } | |
32153 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32154 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32155 | } | |
32156 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
32157 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
32158 | } | |
32159 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32160 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32161 | } | |
32162 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32163 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32164 | } | |
32165 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
32166 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32167 | } | |
32168 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
32169 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32170 | } | |
32171 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
32172 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
32173 | } | |
32174 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32175 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32176 | } | |
32177 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32178 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32179 | } | |
32180 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32181 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32182 | } | |
32183 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32184 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32185 | } | |
32186 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32187 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32188 | } | |
32189 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32190 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32191 | } | |
32192 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32193 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32194 | } | |
32195 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32196 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32197 | } | |
53aa7709 RD |
32198 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
32199 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
32200 | } | |
d14a1e28 RD |
32201 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
32202 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32203 | } | |
32204 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32205 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32206 | } | |
32207 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32208 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32209 | } | |
32210 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32211 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32212 | } | |
32213 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32214 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32215 | } | |
32216 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32217 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32218 | } | |
32219 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32220 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32221 | } | |
32222 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32223 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32224 | } | |
32225 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32226 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32227 | } | |
32228 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32229 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32230 | } | |
32231 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
32232 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
32233 | } | |
32234 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32235 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32236 | } | |
32237 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32238 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32239 | } | |
32240 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32241 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32242 | } | |
32243 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32244 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32245 | } | |
32246 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32247 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32248 | } | |
32249 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32250 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32251 | } | |
32252 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32253 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32254 | } | |
32255 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
32256 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
32257 | } | |
32258 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
32259 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
32260 | } | |
32261 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
32262 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
32263 | } | |
32264 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
32265 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
32266 | } | |
32267 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
32268 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
32269 | } | |
32270 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
32271 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
32272 | } | |
32273 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
32274 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
32275 | } | |
32276 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
32277 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
32278 | } | |
32279 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
32280 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
32281 | } | |
32282 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
32283 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
32284 | } | |
32285 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
32286 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
32287 | } | |
32288 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
32289 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
32290 | } | |
32291 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
32292 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
32293 | } | |
32294 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
32295 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
32296 | } | |
32297 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
32298 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
32299 | } | |
32300 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
32301 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
32302 | } | |
32303 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
32304 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
32305 | } | |
32306 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32307 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
32308 | } | |
32309 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32310 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
32311 | } | |
32312 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32313 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
32314 | } | |
32315 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32316 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
32317 | } | |
32318 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32319 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
32320 | } | |
32321 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32322 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
32323 | } | |
32324 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
32325 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
32326 | } | |
32327 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32328 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32329 | } | |
32330 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32331 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32332 | } | |
32333 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32334 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32335 | } | |
32336 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32337 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32338 | } | |
32339 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
32340 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
32341 | } | |
32342 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32343 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32344 | } | |
32345 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32346 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32347 | } | |
32348 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32349 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32350 | } | |
32351 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32352 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32353 | } | |
32354 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
32355 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
32356 | } | |
32357 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
32358 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
32359 | } | |
32360 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32361 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32362 | } | |
32363 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32364 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32365 | } | |
32366 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32367 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32368 | } | |
32369 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32370 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32371 | } | |
32372 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32373 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32374 | } | |
32375 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32376 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32377 | } | |
32378 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32379 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32380 | } | |
32381 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32382 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32383 | } | |
32384 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32385 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32386 | } | |
32387 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
32388 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
32389 | } | |
32390 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32391 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32392 | } | |
32393 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32394 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32395 | } | |
32396 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32397 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32398 | } | |
32399 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32400 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32401 | } | |
32402 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32403 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32404 | } | |
32405 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
32406 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32407 | } | |
32408 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32409 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32410 | } | |
32411 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32412 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32413 | } | |
32414 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32415 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32416 | } | |
32417 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32418 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32419 | } | |
32420 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32421 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32422 | } | |
32423 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32424 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32425 | } | |
32426 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32427 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32428 | } | |
32429 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
32430 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
32431 | } | |
32432 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32433 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32434 | } | |
32435 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
32436 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
32437 | } | |
32438 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32439 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32440 | } | |
32441 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32442 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32443 | } | |
32444 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32445 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32446 | } | |
32447 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32448 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32449 | } | |
32450 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
32451 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
32452 | } | |
32453 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32454 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32455 | } | |
53aa7709 RD |
32456 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
32457 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
32458 | } | |
d14a1e28 RD |
32459 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
32460 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32461 | } | |
32462 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32463 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32464 | } | |
32465 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32466 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32467 | } | |
32468 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32469 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32470 | } | |
32471 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32472 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32473 | } | |
32474 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32475 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32476 | } | |
32477 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32478 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32479 | } | |
32480 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32481 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32482 | } | |
32483 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32484 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32485 | } | |
32486 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32487 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32488 | } | |
32489 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32490 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32491 | } | |
32492 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32493 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32494 | } | |
32495 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32496 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32497 | } | |
32498 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32499 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32500 | } | |
32501 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32502 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32503 | } | |
32504 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32505 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32506 | } | |
32507 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32508 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32509 | } | |
32510 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32511 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32512 | } | |
32513 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32514 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32515 | } | |
32516 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32517 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32518 | } | |
32519 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32520 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32521 | } | |
51b83b37 RD |
32522 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
32523 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
32524 | } | |
1e0c8722 RD |
32525 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
32526 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32527 | } | |
d14a1e28 RD |
32528 | static void *_p_wxImageTo_p_wxObject(void *x) { |
32529 | return (void *)((wxObject *) ((wxImage *) x)); | |
32530 | } | |
32531 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32532 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32533 | } | |
32534 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
32535 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
32536 | } | |
32537 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
32538 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
32539 | } | |
32540 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32541 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32542 | } | |
32543 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32544 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32545 | } | |
32546 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32547 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32548 | } | |
32549 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32550 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32551 | } | |
32552 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32553 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32554 | } | |
32555 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32556 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32557 | } | |
32558 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
32559 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
32560 | } | |
32561 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32562 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32563 | } | |
32564 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32565 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32566 | } | |
32567 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32568 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32569 | } | |
32570 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32571 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32572 | } | |
32573 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32574 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32575 | } | |
32576 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32577 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32578 | } | |
32579 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32580 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32581 | } | |
32582 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
32583 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
32584 | } | |
32585 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32586 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32587 | } | |
32588 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32589 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32590 | } | |
32591 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32592 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32593 | } | |
32594 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32595 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32596 | } | |
32597 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32598 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32599 | } | |
32600 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
32601 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
32602 | } | |
32603 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32604 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32605 | } | |
32606 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32607 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32608 | } | |
32609 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32610 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32611 | } | |
32612 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
32613 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
32614 | } | |
32615 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
32616 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
32617 | } | |
32618 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
32619 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
32620 | } | |
32621 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
32622 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
32623 | } | |
32624 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
32625 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
32626 | } | |
32627 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
32628 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
32629 | } | |
32630 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
32631 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
32632 | } | |
32633 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32634 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32635 | } | |
32636 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32637 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32638 | } | |
32639 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32640 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32641 | } | |
32642 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
32643 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
32644 | } | |
32645 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
32646 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
32647 | } | |
15afbcd0 RD |
32648 | 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}}; |
32649 | 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}}; | |
32650 | 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}}; | |
32651 | 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}}; | |
15afbcd0 | 32652 | 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 | 32653 | 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}}; |
093d3ff1 | 32654 | 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}}; |
15afbcd0 | 32655 | 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}}; |
4276dc52 | 32656 | 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}}; |
15afbcd0 RD |
32657 | 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}}; |
32658 | 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}}; | |
32659 | 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}}; | |
32660 | 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}}; | |
32661 | 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}}; | |
32662 | 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}}; | |
093d3ff1 RD |
32663 | 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}}; |
32664 | 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}}; | |
15afbcd0 RD |
32665 | 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}}; |
32666 | 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}}; | |
32667 | 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}}; | |
32668 | 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 | 32669 | 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}}; |
15afbcd0 RD |
32670 | 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}}; |
32671 | 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}}; | |
32672 | 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}}; | |
32673 | 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}}; | |
32674 | 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}}; | |
32675 | 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}}; | |
15afbcd0 RD |
32676 | 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}}; |
32677 | 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}}; | |
32678 | 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}}; | |
093d3ff1 | 32679 | 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}}; |
1823fbb4 | 32680 | 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}}; |
15afbcd0 RD |
32681 | 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}}; |
32682 | 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}}; | |
32683 | 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}}; | |
32684 | 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}}; | |
32685 | 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}}; | |
32686 | 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}}; | |
32687 | 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}}; | |
32688 | 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}}; | |
32689 | 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}}; | |
32690 | 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}}; | |
093d3ff1 | 32691 | 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}}; |
15afbcd0 RD |
32692 | 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}}; |
32693 | 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 | 32694 | 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 | 32695 | 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}}; |
4276dc52 | 32696 | 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}}; |
15afbcd0 | 32697 | 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}}; |
093d3ff1 RD |
32698 | 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}}; |
32699 | 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}}; | |
15afbcd0 RD |
32700 | 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}}; |
32701 | 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}}; | |
32702 | 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}}; | |
32703 | 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}}; | |
d3b6e4ff | 32704 | 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}}; |
15afbcd0 RD |
32705 | 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}}; |
32706 | 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}}; | |
32707 | 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}}; | |
093d3ff1 | 32708 | 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}}; |
15afbcd0 RD |
32709 | 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}}; |
32710 | 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}}; | |
32711 | 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}}; | |
32712 | 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}}; | |
32713 | 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}}; | |
32714 | 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}}; | |
32715 | 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}}; | |
32716 | 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}}; | |
32717 | 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 | 32718 | 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}}; |
15afbcd0 RD |
32719 | 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}}; |
32720 | 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}}; | |
32721 | 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}}; | |
093d3ff1 | 32722 | 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}}; |
1823fbb4 | 32723 | 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}}; |
15afbcd0 RD |
32724 | 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}}; |
32725 | 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}}; | |
32726 | 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}}; | |
32727 | 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}}; | |
32728 | 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}}; | |
093d3ff1 RD |
32729 | 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}}; |
32730 | 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}}; | |
32731 | 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}}; | |
15afbcd0 RD |
32732 | 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}}; |
32733 | 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}}; | |
32734 | 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}}; | |
32735 | 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}}; | |
32736 | 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}}; | |
32737 | 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}}; | |
32738 | 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}}; | |
32739 | 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}}; | |
32740 | 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}}; | |
15afbcd0 | 32741 | 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}}; |
093d3ff1 | 32742 | 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}}; |
15afbcd0 | 32743 | 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}}; |
d14a1e28 RD |
32744 | |
32745 | static swig_type_info *swig_types_initial[] = { | |
32746 | _swigt__p_wxLogChain, | |
32747 | _swigt__p_wxMutexGuiLocker, | |
32748 | _swigt__p_wxFileHistory, | |
32749 | _swigt__p_wxLog, | |
d14a1e28 RD |
32750 | _swigt__p_wxMenu, |
32751 | _swigt__p_wxEvent, | |
093d3ff1 | 32752 | _swigt__p_wxDateTime__TimeZone, |
d14a1e28 | 32753 | _swigt__p_wxConfigBase, |
4276dc52 | 32754 | _swigt__p_wxDisplay, |
d14a1e28 RD |
32755 | _swigt__p_wxFileType, |
32756 | _swigt__p_wxLogGui, | |
32757 | _swigt__p_wxFont, | |
32758 | _swigt__p_wxDataFormat, | |
32759 | _swigt__p_wxTimerEvent, | |
32760 | _swigt__p_wxCaret, | |
093d3ff1 RD |
32761 | _swigt__ptrdiff_t, |
32762 | _swigt__std__ptrdiff_t, | |
d14a1e28 RD |
32763 | _swigt__p_int, |
32764 | _swigt__p_wxSize, | |
32765 | _swigt__p_wxClipboard, | |
32766 | _swigt__p_wxStopWatch, | |
68350608 | 32767 | _swigt__p_wxDC, |
d14a1e28 RD |
32768 | _swigt__p_wxClipboardLocker, |
32769 | _swigt__p_wxIcon, | |
32770 | _swigt__p_wxLogStderr, | |
32771 | _swigt__p_wxLogTextCtrl, | |
32772 | _swigt__p_wxTextCtrl, | |
32773 | _swigt__p_wxBusyCursor, | |
d14a1e28 RD |
32774 | _swigt__p_wxBitmapDataObject, |
32775 | _swigt__p_wxTextDataObject, | |
32776 | _swigt__p_wxDataObject, | |
093d3ff1 | 32777 | _swigt__p_wxPyTextDataObject, |
1823fbb4 | 32778 | _swigt__p_wxPyBitmapDataObject, |
994141e6 | 32779 | _swigt__p_wxFileDataObject, |
d14a1e28 RD |
32780 | _swigt__p_wxCustomDataObject, |
32781 | _swigt__p_wxURLDataObject, | |
32782 | _swigt__p_wxMetafileDataObject, | |
4d5c3d91 | 32783 | _swigt__p_wxSound, |
d14a1e28 RD |
32784 | _swigt__p_wxTimerRunner, |
32785 | _swigt__p_wxLogWindow, | |
32786 | _swigt__p_wxTimeSpan, | |
32787 | _swigt__p_wxArrayString, | |
32788 | _swigt__p_wxWindowDisabler, | |
093d3ff1 | 32789 | _swigt__p_form_ops_t, |
d14a1e28 RD |
32790 | _swigt__p_wxToolTip, |
32791 | _swigt__p_wxDataObjectComposite, | |
51b83b37 | 32792 | _swigt__p_wxSystemSettings, |
68350608 | 32793 | _swigt__p_wxFileConfig, |
4276dc52 | 32794 | _swigt__p_wxVideoMode, |
d14a1e28 | 32795 | _swigt__p_wxDataObjectSimple, |
093d3ff1 RD |
32796 | _swigt__p_wxPyDataObjectSimple, |
32797 | _swigt__p_wxDuplexMode, | |
d14a1e28 RD |
32798 | _swigt__p_wxEvtHandler, |
32799 | _swigt__p_wxRect, | |
994141e6 | 32800 | _swigt__p_char, |
d14a1e28 | 32801 | _swigt__p_wxSingleInstanceChecker, |
d3b6e4ff | 32802 | _swigt__p_wxStandardPaths, |
d14a1e28 RD |
32803 | _swigt__p_wxFileTypeInfo, |
32804 | _swigt__p_wxFrame, | |
32805 | _swigt__p_wxTimer, | |
093d3ff1 | 32806 | _swigt__p_wxPaperSize, |
d14a1e28 RD |
32807 | _swigt__p_wxMimeTypesManager, |
32808 | _swigt__p_wxPyArtProvider, | |
32809 | _swigt__p_wxPyTipProvider, | |
32810 | _swigt__p_wxTipProvider, | |
32811 | _swigt__p_wxJoystick, | |
32812 | _swigt__p_wxSystemOptions, | |
32813 | _swigt__p_wxPoint, | |
32814 | _swigt__p_wxJoystickEvent, | |
32815 | _swigt__p_wxCursor, | |
32816 | _swigt__p_wxObject, | |
32817 | _swigt__p_wxOutputStream, | |
32818 | _swigt__p_wxDateTime, | |
32819 | _swigt__p_wxPyDropSource, | |
093d3ff1 | 32820 | _swigt__p_unsigned_long, |
1823fbb4 | 32821 | _swigt__p_wxKillError, |
d14a1e28 RD |
32822 | _swigt__p_wxWindow, |
32823 | _swigt__p_wxString, | |
32824 | _swigt__p_wxPyProcess, | |
32825 | _swigt__p_wxBitmap, | |
32826 | _swigt__p_wxConfig, | |
093d3ff1 RD |
32827 | _swigt__unsigned_int, |
32828 | _swigt__p_unsigned_int, | |
32829 | _swigt__p_unsigned_char, | |
d14a1e28 RD |
32830 | _swigt__p_wxChar, |
32831 | _swigt__p_wxBusyInfo, | |
32832 | _swigt__p_wxPyDropTarget, | |
32833 | _swigt__p_wxPyTextDropTarget, | |
32834 | _swigt__p_wxPyFileDropTarget, | |
32835 | _swigt__p_wxProcessEvent, | |
32836 | _swigt__p_wxPyLog, | |
32837 | _swigt__p_wxLogNull, | |
32838 | _swigt__p_wxColour, | |
d14a1e28 | 32839 | _swigt__p_wxPyTimer, |
093d3ff1 | 32840 | _swigt__p_wxConfigPathChanger, |
d14a1e28 RD |
32841 | _swigt__p_wxDateSpan, |
32842 | 0 | |
32843 | }; | |
32844 | ||
32845 | ||
32846 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
32847 | ||
32848 | static swig_const_info swig_const_table[] = { | |
15afbcd0 RD |
32849 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, |
32850 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
32851 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
32852 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
32853 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
c32bde28 | 32854 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
32855 | |
32856 | #ifdef __cplusplus | |
32857 | } | |
32858 | #endif | |
32859 | ||
093d3ff1 RD |
32860 | |
32861 | #ifdef __cplusplus | |
32862 | extern "C" { | |
32863 | #endif | |
32864 | ||
32865 | /* Python-specific SWIG API */ | |
32866 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
32867 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
32868 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
32869 | ||
32870 | /* ----------------------------------------------------------------------------- | |
32871 | * global variable support code. | |
32872 | * ----------------------------------------------------------------------------- */ | |
32873 | ||
32874 | typedef struct swig_globalvar { | |
32875 | char *name; /* Name of global variable */ | |
32876 | PyObject *(*get_attr)(); /* Return the current value */ | |
32877 | int (*set_attr)(PyObject *); /* Set the value */ | |
32878 | struct swig_globalvar *next; | |
32879 | } swig_globalvar; | |
32880 | ||
32881 | typedef struct swig_varlinkobject { | |
32882 | PyObject_HEAD | |
32883 | swig_globalvar *vars; | |
32884 | } swig_varlinkobject; | |
32885 | ||
32886 | static PyObject * | |
32887 | swig_varlink_repr(swig_varlinkobject *v) { | |
32888 | v = v; | |
32889 | return PyString_FromString("<Swig global variables>"); | |
32890 | } | |
32891 | ||
32892 | static int | |
32893 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
32894 | swig_globalvar *var; | |
32895 | flags = flags; | |
32896 | fprintf(fp,"Swig global variables { "); | |
32897 | for (var = v->vars; var; var=var->next) { | |
32898 | fprintf(fp,"%s", var->name); | |
32899 | if (var->next) fprintf(fp,", "); | |
32900 | } | |
32901 | fprintf(fp," }\n"); | |
32902 | return 0; | |
32903 | } | |
32904 | ||
32905 | static PyObject * | |
32906 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
32907 | swig_globalvar *var = v->vars; | |
32908 | while (var) { | |
32909 | if (strcmp(var->name,n) == 0) { | |
32910 | return (*var->get_attr)(); | |
32911 | } | |
32912 | var = var->next; | |
32913 | } | |
32914 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
32915 | return NULL; | |
32916 | } | |
32917 | ||
32918 | static int | |
32919 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
32920 | swig_globalvar *var = v->vars; | |
32921 | while (var) { | |
32922 | if (strcmp(var->name,n) == 0) { | |
32923 | return (*var->set_attr)(p); | |
32924 | } | |
32925 | var = var->next; | |
32926 | } | |
32927 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
32928 | return 1; | |
32929 | } | |
32930 | ||
32931 | static PyTypeObject varlinktype = { | |
32932 | PyObject_HEAD_INIT(0) | |
32933 | 0, /* Number of items in variable part (ob_size) */ | |
32934 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
32935 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
32936 | 0, /* Itemsize (tp_itemsize) */ | |
32937 | 0, /* Deallocator (tp_dealloc) */ | |
32938 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
32939 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
32940 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
32941 | 0, /* tp_compare */ | |
32942 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
32943 | 0, /* tp_as_number */ | |
32944 | 0, /* tp_as_sequence */ | |
32945 | 0, /* tp_as_mapping */ | |
32946 | 0, /* tp_hash */ | |
32947 | 0, /* tp_call */ | |
32948 | 0, /* tp_str */ | |
32949 | 0, /* tp_getattro */ | |
32950 | 0, /* tp_setattro */ | |
32951 | 0, /* tp_as_buffer */ | |
32952 | 0, /* tp_flags */ | |
32953 | 0, /* tp_doc */ | |
32954 | #if PY_VERSION_HEX >= 0x02000000 | |
32955 | 0, /* tp_traverse */ | |
32956 | 0, /* tp_clear */ | |
32957 | #endif | |
32958 | #if PY_VERSION_HEX >= 0x02010000 | |
32959 | 0, /* tp_richcompare */ | |
32960 | 0, /* tp_weaklistoffset */ | |
32961 | #endif | |
32962 | #if PY_VERSION_HEX >= 0x02020000 | |
32963 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
32964 | #endif | |
32965 | #if PY_VERSION_HEX >= 0x02030000 | |
32966 | 0, /* tp_del */ | |
32967 | #endif | |
32968 | #ifdef COUNT_ALLOCS | |
32969 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
32970 | #endif | |
32971 | }; | |
32972 | ||
32973 | /* Create a variable linking object for use later */ | |
32974 | static PyObject * | |
32975 | SWIG_Python_newvarlink(void) { | |
32976 | swig_varlinkobject *result = 0; | |
32977 | result = PyMem_NEW(swig_varlinkobject,1); | |
32978 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
32979 | result->ob_type = &varlinktype; | |
32980 | result->vars = 0; | |
32981 | result->ob_refcnt = 0; | |
32982 | Py_XINCREF((PyObject *) result); | |
32983 | return ((PyObject*) result); | |
32984 | } | |
32985 | ||
32986 | static void | |
32987 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
32988 | swig_varlinkobject *v; | |
32989 | swig_globalvar *gv; | |
32990 | v= (swig_varlinkobject *) p; | |
32991 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
32992 | gv->name = (char *) malloc(strlen(name)+1); | |
32993 | strcpy(gv->name,name); | |
32994 | gv->get_attr = get_attr; | |
32995 | gv->set_attr = set_attr; | |
32996 | gv->next = v->vars; | |
32997 | v->vars = gv; | |
32998 | } | |
32999 | ||
33000 | /* ----------------------------------------------------------------------------- | |
33001 | * constants/methods manipulation | |
33002 | * ----------------------------------------------------------------------------- */ | |
33003 | ||
33004 | /* Install Constants */ | |
33005 | static void | |
33006 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
33007 | PyObject *obj = 0; | |
33008 | size_t i; | |
33009 | for (i = 0; constants[i].type; i++) { | |
33010 | switch(constants[i].type) { | |
33011 | case SWIG_PY_INT: | |
33012 | obj = PyInt_FromLong(constants[i].lvalue); | |
33013 | break; | |
33014 | case SWIG_PY_FLOAT: | |
33015 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
33016 | break; | |
33017 | case SWIG_PY_STRING: | |
33018 | if (constants[i].pvalue) { | |
33019 | obj = PyString_FromString((char *) constants[i].pvalue); | |
33020 | } else { | |
33021 | Py_INCREF(Py_None); | |
33022 | obj = Py_None; | |
33023 | } | |
33024 | break; | |
33025 | case SWIG_PY_POINTER: | |
33026 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
33027 | break; | |
33028 | case SWIG_PY_BINARY: | |
33029 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
33030 | break; | |
33031 | default: | |
33032 | obj = 0; | |
33033 | break; | |
33034 | } | |
33035 | if (obj) { | |
33036 | PyDict_SetItemString(d,constants[i].name,obj); | |
33037 | Py_DECREF(obj); | |
33038 | } | |
33039 | } | |
33040 | } | |
33041 | ||
33042 | /* -----------------------------------------------------------------------------*/ | |
33043 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33044 | /* -----------------------------------------------------------------------------*/ | |
33045 | ||
33046 | static void | |
33047 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
33048 | swig_const_info *const_table, | |
33049 | swig_type_info **types, | |
33050 | swig_type_info **types_initial) { | |
33051 | size_t i; | |
33052 | for (i = 0; methods[i].ml_name; ++i) { | |
33053 | char *c = methods[i].ml_doc; | |
33054 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
33055 | int j; | |
33056 | swig_const_info *ci = 0; | |
33057 | char *name = c + 10; | |
33058 | for (j = 0; const_table[j].type; j++) { | |
33059 | if (strncmp(const_table[j].name, name, | |
33060 | strlen(const_table[j].name)) == 0) { | |
33061 | ci = &(const_table[j]); | |
33062 | break; | |
33063 | } | |
33064 | } | |
33065 | if (ci) { | |
33066 | size_t shift = (ci->ptype) - types; | |
33067 | swig_type_info *ty = types_initial[shift]; | |
33068 | size_t ldoc = (c - methods[i].ml_doc); | |
33069 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
33070 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
33071 | char *buff = ndoc; | |
33072 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
33073 | strncpy(buff, methods[i].ml_doc, ldoc); | |
33074 | buff += ldoc; | |
33075 | strncpy(buff, "swig_ptr: ", 10); | |
33076 | buff += 10; | |
33077 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
33078 | methods[i].ml_doc = ndoc; | |
33079 | } | |
33080 | } | |
33081 | } | |
33082 | } | |
33083 | ||
33084 | /* -----------------------------------------------------------------------------* | |
33085 | * Initialize type list | |
33086 | * -----------------------------------------------------------------------------*/ | |
33087 | ||
33088 | #if PY_MAJOR_VERSION < 2 | |
33089 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
33090 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
33091 | static int | |
33092 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
33093 | { | |
33094 | PyObject *dict; | |
33095 | if (!PyModule_Check(m)) { | |
33096 | PyErr_SetString(PyExc_TypeError, | |
33097 | "PyModule_AddObject() needs module as first arg"); | |
33098 | return -1; | |
33099 | } | |
33100 | if (!o) { | |
33101 | PyErr_SetString(PyExc_TypeError, | |
33102 | "PyModule_AddObject() needs non-NULL value"); | |
33103 | return -1; | |
33104 | } | |
33105 | ||
33106 | dict = PyModule_GetDict(m); | |
33107 | if (dict == NULL) { | |
33108 | /* Internal error -- modules must have a dict! */ | |
33109 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
33110 | PyModule_GetName(m)); | |
33111 | return -1; | |
33112 | } | |
33113 | if (PyDict_SetItemString(dict, name, o)) | |
33114 | return -1; | |
33115 | Py_DECREF(o); | |
33116 | return 0; | |
33117 | } | |
33118 | #endif | |
33119 | ||
33120 | static swig_type_info ** | |
33121 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
33122 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
33123 | { | |
33124 | NULL, NULL, 0, NULL | |
33125 | } | |
33126 | };/* Sentinel */ | |
33127 | ||
33128 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
33129 | swig_empty_runtime_method_table); | |
33130 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
33131 | if (pointer && module) { | |
33132 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
33133 | } | |
33134 | return type_list_handle; | |
33135 | } | |
33136 | ||
33137 | static swig_type_info ** | |
33138 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
33139 | swig_type_info **type_pointer; | |
33140 | ||
33141 | /* first check if module already created */ | |
33142 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
33143 | if (type_pointer) { | |
33144 | return type_pointer; | |
33145 | } else { | |
33146 | /* create a new module and variable */ | |
33147 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
33148 | } | |
33149 | } | |
33150 | ||
33151 | #ifdef __cplusplus | |
33152 | } | |
33153 | #endif | |
33154 | ||
33155 | /* -----------------------------------------------------------------------------* | |
33156 | * Partial Init method | |
33157 | * -----------------------------------------------------------------------------*/ | |
33158 | ||
33159 | #ifdef SWIG_LINK_RUNTIME | |
33160 | #ifdef __cplusplus | |
33161 | extern "C" | |
33162 | #endif | |
33163 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
33164 | #endif | |
33165 | ||
d14a1e28 RD |
33166 | #ifdef __cplusplus |
33167 | extern "C" | |
33168 | #endif | |
33169 | SWIGEXPORT(void) SWIG_init(void) { | |
33170 | static PyObject *SWIG_globals = 0; | |
33171 | static int typeinit = 0; | |
33172 | PyObject *m, *d; | |
33173 | int i; | |
33174 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
093d3ff1 RD |
33175 | |
33176 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33177 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
33178 | ||
d14a1e28 RD |
33179 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
33180 | d = PyModule_GetDict(m); | |
33181 | ||
33182 | if (!typeinit) { | |
093d3ff1 RD |
33183 | #ifdef SWIG_LINK_RUNTIME |
33184 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
33185 | #else | |
33186 | # ifndef SWIG_STATIC_RUNTIME | |
33187 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
33188 | # endif | |
33189 | #endif | |
d14a1e28 RD |
33190 | for (i = 0; swig_types_initial[i]; i++) { |
33191 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33192 | } | |
33193 | typeinit = 1; | |
33194 | } | |
33195 | SWIG_InstallConstants(d,swig_const_table); | |
33196 | ||
093d3ff1 RD |
33197 | { |
33198 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)(wxSYS_OEM_FIXED_FONT))); | |
33199 | } | |
33200 | { | |
33201 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)(wxSYS_ANSI_FIXED_FONT))); | |
33202 | } | |
33203 | { | |
33204 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)(wxSYS_ANSI_VAR_FONT))); | |
33205 | } | |
33206 | { | |
33207 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)(wxSYS_SYSTEM_FONT))); | |
33208 | } | |
33209 | { | |
33210 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)(wxSYS_DEVICE_DEFAULT_FONT))); | |
33211 | } | |
33212 | { | |
33213 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)(wxSYS_DEFAULT_PALETTE))); | |
33214 | } | |
33215 | { | |
33216 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)(wxSYS_SYSTEM_FIXED_FONT))); | |
33217 | } | |
33218 | { | |
33219 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)(wxSYS_DEFAULT_GUI_FONT))); | |
33220 | } | |
33221 | { | |
33222 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)(wxSYS_ICONTITLE_FONT))); | |
33223 | } | |
33224 | { | |
33225 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)(wxSYS_COLOUR_SCROLLBAR))); | |
33226 | } | |
33227 | { | |
33228 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)(wxSYS_COLOUR_BACKGROUND))); | |
33229 | } | |
33230 | { | |
33231 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)(wxSYS_COLOUR_DESKTOP))); | |
33232 | } | |
33233 | { | |
33234 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)(wxSYS_COLOUR_ACTIVECAPTION))); | |
33235 | } | |
33236 | { | |
33237 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)(wxSYS_COLOUR_INACTIVECAPTION))); | |
33238 | } | |
33239 | { | |
33240 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)(wxSYS_COLOUR_MENU))); | |
33241 | } | |
33242 | { | |
33243 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)(wxSYS_COLOUR_WINDOW))); | |
33244 | } | |
33245 | { | |
33246 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)(wxSYS_COLOUR_WINDOWFRAME))); | |
33247 | } | |
33248 | { | |
33249 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)(wxSYS_COLOUR_MENUTEXT))); | |
33250 | } | |
33251 | { | |
33252 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)(wxSYS_COLOUR_WINDOWTEXT))); | |
33253 | } | |
33254 | { | |
33255 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)(wxSYS_COLOUR_CAPTIONTEXT))); | |
33256 | } | |
33257 | { | |
33258 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)(wxSYS_COLOUR_ACTIVEBORDER))); | |
33259 | } | |
33260 | { | |
33261 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)(wxSYS_COLOUR_INACTIVEBORDER))); | |
33262 | } | |
33263 | { | |
33264 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)(wxSYS_COLOUR_APPWORKSPACE))); | |
33265 | } | |
33266 | { | |
33267 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)(wxSYS_COLOUR_HIGHLIGHT))); | |
33268 | } | |
33269 | { | |
33270 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)(wxSYS_COLOUR_HIGHLIGHTTEXT))); | |
33271 | } | |
33272 | { | |
33273 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)(wxSYS_COLOUR_BTNFACE))); | |
33274 | } | |
33275 | { | |
33276 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)(wxSYS_COLOUR_3DFACE))); | |
33277 | } | |
33278 | { | |
33279 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)(wxSYS_COLOUR_BTNSHADOW))); | |
33280 | } | |
33281 | { | |
33282 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)(wxSYS_COLOUR_3DSHADOW))); | |
33283 | } | |
33284 | { | |
33285 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)(wxSYS_COLOUR_GRAYTEXT))); | |
33286 | } | |
33287 | { | |
33288 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)(wxSYS_COLOUR_BTNTEXT))); | |
33289 | } | |
33290 | { | |
33291 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)(wxSYS_COLOUR_INACTIVECAPTIONTEXT))); | |
33292 | } | |
33293 | { | |
33294 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)(wxSYS_COLOUR_BTNHIGHLIGHT))); | |
33295 | } | |
33296 | { | |
33297 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)(wxSYS_COLOUR_BTNHILIGHT))); | |
33298 | } | |
33299 | { | |
33300 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)(wxSYS_COLOUR_3DHIGHLIGHT))); | |
33301 | } | |
33302 | { | |
33303 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)(wxSYS_COLOUR_3DHILIGHT))); | |
33304 | } | |
33305 | { | |
33306 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)(wxSYS_COLOUR_3DDKSHADOW))); | |
33307 | } | |
33308 | { | |
33309 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)(wxSYS_COLOUR_3DLIGHT))); | |
33310 | } | |
33311 | { | |
33312 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)(wxSYS_COLOUR_INFOTEXT))); | |
33313 | } | |
33314 | { | |
33315 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)(wxSYS_COLOUR_INFOBK))); | |
33316 | } | |
33317 | { | |
33318 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)(wxSYS_COLOUR_LISTBOX))); | |
33319 | } | |
33320 | { | |
33321 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)(wxSYS_COLOUR_HOTLIGHT))); | |
33322 | } | |
33323 | { | |
33324 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)(wxSYS_COLOUR_GRADIENTACTIVECAPTION))); | |
33325 | } | |
33326 | { | |
33327 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)(wxSYS_COLOUR_GRADIENTINACTIVECAPTION))); | |
33328 | } | |
33329 | { | |
33330 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)(wxSYS_COLOUR_MENUHILIGHT))); | |
33331 | } | |
33332 | { | |
33333 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)(wxSYS_COLOUR_MENUBAR))); | |
33334 | } | |
33335 | { | |
33336 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)(wxSYS_COLOUR_MAX))); | |
33337 | } | |
33338 | { | |
33339 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)(wxSYS_MOUSE_BUTTONS))); | |
33340 | } | |
33341 | { | |
33342 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)(wxSYS_BORDER_X))); | |
33343 | } | |
33344 | { | |
33345 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)(wxSYS_BORDER_Y))); | |
33346 | } | |
33347 | { | |
33348 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)(wxSYS_CURSOR_X))); | |
33349 | } | |
33350 | { | |
33351 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)(wxSYS_CURSOR_Y))); | |
33352 | } | |
33353 | { | |
33354 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)(wxSYS_DCLICK_X))); | |
33355 | } | |
33356 | { | |
33357 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)(wxSYS_DCLICK_Y))); | |
33358 | } | |
33359 | { | |
33360 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)(wxSYS_DRAG_X))); | |
33361 | } | |
33362 | { | |
33363 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)(wxSYS_DRAG_Y))); | |
33364 | } | |
33365 | { | |
33366 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)(wxSYS_EDGE_X))); | |
33367 | } | |
33368 | { | |
33369 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)(wxSYS_EDGE_Y))); | |
33370 | } | |
33371 | { | |
33372 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)(wxSYS_HSCROLL_ARROW_X))); | |
33373 | } | |
33374 | { | |
33375 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)(wxSYS_HSCROLL_ARROW_Y))); | |
33376 | } | |
33377 | { | |
33378 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)(wxSYS_HTHUMB_X))); | |
33379 | } | |
33380 | { | |
33381 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)(wxSYS_ICON_X))); | |
33382 | } | |
33383 | { | |
33384 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)(wxSYS_ICON_Y))); | |
33385 | } | |
33386 | { | |
33387 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)(wxSYS_ICONSPACING_X))); | |
33388 | } | |
33389 | { | |
33390 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)(wxSYS_ICONSPACING_Y))); | |
33391 | } | |
33392 | { | |
33393 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)(wxSYS_WINDOWMIN_X))); | |
33394 | } | |
33395 | { | |
33396 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)(wxSYS_WINDOWMIN_Y))); | |
33397 | } | |
33398 | { | |
33399 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)(wxSYS_SCREEN_X))); | |
33400 | } | |
33401 | { | |
33402 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)(wxSYS_SCREEN_Y))); | |
33403 | } | |
33404 | { | |
33405 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)(wxSYS_FRAMESIZE_X))); | |
33406 | } | |
33407 | { | |
33408 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)(wxSYS_FRAMESIZE_Y))); | |
33409 | } | |
33410 | { | |
33411 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)(wxSYS_SMALLICON_X))); | |
33412 | } | |
33413 | { | |
33414 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)(wxSYS_SMALLICON_Y))); | |
33415 | } | |
33416 | { | |
33417 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)(wxSYS_HSCROLL_Y))); | |
33418 | } | |
33419 | { | |
33420 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)(wxSYS_VSCROLL_X))); | |
33421 | } | |
33422 | { | |
33423 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)(wxSYS_VSCROLL_ARROW_X))); | |
33424 | } | |
33425 | { | |
33426 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)(wxSYS_VSCROLL_ARROW_Y))); | |
33427 | } | |
33428 | { | |
33429 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)(wxSYS_VTHUMB_Y))); | |
33430 | } | |
33431 | { | |
33432 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)(wxSYS_CAPTION_Y))); | |
33433 | } | |
33434 | { | |
33435 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)(wxSYS_MENU_Y))); | |
33436 | } | |
33437 | { | |
33438 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)(wxSYS_NETWORK_PRESENT))); | |
33439 | } | |
33440 | { | |
33441 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)(wxSYS_PENWINDOWS_PRESENT))); | |
33442 | } | |
33443 | { | |
33444 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)(wxSYS_SHOW_SOUNDS))); | |
33445 | } | |
33446 | { | |
33447 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)(wxSYS_SWAP_BUTTONS))); | |
33448 | } | |
33449 | { | |
33450 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)(wxSYS_CAN_DRAW_FRAME_DECORATIONS))); | |
33451 | } | |
33452 | { | |
33453 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)(wxSYS_CAN_ICONIZE_FRAME))); | |
33454 | } | |
33455 | { | |
33456 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)(wxSYS_SCREEN_NONE))); | |
33457 | } | |
33458 | { | |
33459 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)(wxSYS_SCREEN_TINY))); | |
33460 | } | |
33461 | { | |
33462 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)(wxSYS_SCREEN_PDA))); | |
33463 | } | |
33464 | { | |
33465 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)(wxSYS_SCREEN_SMALL))); | |
33466 | } | |
33467 | { | |
33468 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)(wxSYS_SCREEN_DESKTOP))); | |
33469 | } | |
33470 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
33471 | SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set); | |
33472 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
33473 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
33474 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
33475 | { | |
33476 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)(wxSHUTDOWN_POWEROFF))); | |
33477 | } | |
33478 | { | |
33479 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)(wxSHUTDOWN_REBOOT))); | |
33480 | } | |
33481 | { | |
33482 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)(wxTIMER_CONTINUOUS))); | |
33483 | } | |
33484 | { | |
33485 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)(wxTIMER_ONE_SHOT))); | |
33486 | } | |
33487 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
33488 | ||
33489 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
33490 | ||
33491 | { | |
33492 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)(wxLOG_FatalError))); | |
33493 | } | |
33494 | { | |
33495 | PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)(wxLOG_Error))); | |
33496 | } | |
33497 | { | |
33498 | PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)(wxLOG_Warning))); | |
33499 | } | |
33500 | { | |
33501 | PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)(wxLOG_Message))); | |
33502 | } | |
33503 | { | |
33504 | PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)(wxLOG_Status))); | |
33505 | } | |
33506 | { | |
33507 | PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)(wxLOG_Info))); | |
33508 | } | |
33509 | { | |
33510 | PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)(wxLOG_Debug))); | |
33511 | } | |
33512 | { | |
33513 | PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)(wxLOG_Trace))); | |
33514 | } | |
33515 | { | |
33516 | PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)(wxLOG_Progress))); | |
33517 | } | |
33518 | { | |
33519 | PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)(wxLOG_User))); | |
33520 | } | |
33521 | { | |
33522 | PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)(wxLOG_Max))); | |
33523 | } | |
33524 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
15afbcd0 RD |
33525 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); |
33526 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
33527 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
33528 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
093d3ff1 RD |
33529 | { |
33530 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)(0x0001))); | |
33531 | } | |
33532 | { | |
33533 | PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)(0x0002))); | |
33534 | } | |
33535 | { | |
33536 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)(0x0004))); | |
33537 | } | |
33538 | { | |
33539 | PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)(0x0008))); | |
33540 | } | |
33541 | { | |
33542 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)(0x0100))); | |
33543 | } | |
33544 | { | |
33545 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)(wxPROCESS_DEFAULT))); | |
33546 | } | |
33547 | { | |
33548 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)(wxPROCESS_REDIRECT))); | |
33549 | } | |
33550 | { | |
33551 | PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)(wxKILL_OK))); | |
33552 | } | |
33553 | { | |
33554 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)(wxKILL_BAD_SIGNAL))); | |
33555 | } | |
33556 | { | |
33557 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)(wxKILL_ACCESS_DENIED))); | |
33558 | } | |
33559 | { | |
33560 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)(wxKILL_NO_PROCESS))); | |
33561 | } | |
33562 | { | |
33563 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)(wxKILL_ERROR))); | |
33564 | } | |
33565 | { | |
33566 | PyDict_SetItemString(d,"KILL_NOCHILDREN", SWIG_From_int((int)(wxKILL_NOCHILDREN))); | |
33567 | } | |
33568 | { | |
33569 | PyDict_SetItemString(d,"KILL_CHILDREN", SWIG_From_int((int)(wxKILL_CHILDREN))); | |
33570 | } | |
33571 | { | |
33572 | PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)(wxSIGNONE))); | |
33573 | } | |
33574 | { | |
33575 | PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)(wxSIGHUP))); | |
33576 | } | |
33577 | { | |
33578 | PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)(wxSIGINT))); | |
33579 | } | |
33580 | { | |
33581 | PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)(wxSIGQUIT))); | |
33582 | } | |
33583 | { | |
33584 | PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)(wxSIGILL))); | |
33585 | } | |
33586 | { | |
33587 | PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)(wxSIGTRAP))); | |
33588 | } | |
33589 | { | |
33590 | PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)(wxSIGABRT))); | |
33591 | } | |
33592 | { | |
33593 | PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)(wxSIGIOT))); | |
33594 | } | |
33595 | { | |
33596 | PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)(wxSIGEMT))); | |
33597 | } | |
33598 | { | |
33599 | PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)(wxSIGFPE))); | |
33600 | } | |
33601 | { | |
33602 | PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)(wxSIGKILL))); | |
33603 | } | |
33604 | { | |
33605 | PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)(wxSIGBUS))); | |
33606 | } | |
33607 | { | |
33608 | PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)(wxSIGSEGV))); | |
33609 | } | |
33610 | { | |
33611 | PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)(wxSIGSYS))); | |
33612 | } | |
33613 | { | |
33614 | PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)(wxSIGPIPE))); | |
33615 | } | |
33616 | { | |
33617 | PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)(wxSIGALRM))); | |
33618 | } | |
33619 | { | |
33620 | PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)(wxSIGTERM))); | |
33621 | } | |
33622 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
33623 | { | |
33624 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)(wxEXEC_ASYNC))); | |
33625 | } | |
33626 | { | |
33627 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)(wxEXEC_SYNC))); | |
33628 | } | |
33629 | { | |
33630 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)(wxEXEC_NOHIDE))); | |
33631 | } | |
33632 | { | |
33633 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)(wxEXEC_MAKE_GROUP_LEADER))); | |
33634 | } | |
33635 | { | |
33636 | PyDict_SetItemString(d,"EXEC_NODISABLE", SWIG_From_int((int)(wxEXEC_NODISABLE))); | |
33637 | } | |
33638 | ||
33639 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
33640 | ||
33641 | { | |
33642 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)(wxJOYSTICK1))); | |
33643 | } | |
33644 | { | |
33645 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)(wxJOYSTICK2))); | |
33646 | } | |
33647 | { | |
33648 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)(wxJOY_BUTTON_ANY))); | |
33649 | } | |
33650 | { | |
33651 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)(wxJOY_BUTTON1))); | |
33652 | } | |
33653 | { | |
33654 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)(wxJOY_BUTTON2))); | |
33655 | } | |
33656 | { | |
33657 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)(wxJOY_BUTTON3))); | |
33658 | } | |
33659 | { | |
33660 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)(wxJOY_BUTTON4))); | |
33661 | } | |
33662 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
33663 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
33664 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
33665 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
33666 | { | |
33667 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)(wxSOUND_SYNC))); | |
33668 | } | |
33669 | { | |
33670 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)(wxSOUND_ASYNC))); | |
33671 | } | |
33672 | { | |
33673 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)(wxSOUND_LOOP))); | |
33674 | } | |
33675 | { | |
33676 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)(wxMAILCAP_STANDARD))); | |
33677 | } | |
33678 | { | |
33679 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)(wxMAILCAP_NETSCAPE))); | |
33680 | } | |
33681 | { | |
33682 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)(wxMAILCAP_KDE))); | |
33683 | } | |
33684 | { | |
33685 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)(wxMAILCAP_GNOME))); | |
33686 | } | |
33687 | { | |
33688 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)(wxMAILCAP_ALL))); | |
33689 | } | |
33690 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
33691 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
33692 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
33693 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
33694 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
33695 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
33696 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
33697 | SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set); | |
33698 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
33699 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
33700 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
33701 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
33702 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
33703 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
33704 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
33705 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
33706 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
33707 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
33708 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
33709 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
33710 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
33711 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
33712 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
0c243d93 RD |
33713 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE",_wrap_ART_FILE_SAVE_get, _wrap_ART_FILE_SAVE_set); |
33714 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_SAVE_AS",_wrap_ART_FILE_SAVE_AS_get, _wrap_ART_FILE_SAVE_AS_set); | |
093d3ff1 RD |
33715 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); |
33716 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
33717 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
d14a1e28 RD |
33718 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); |
33719 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
33720 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
f78cc896 RD |
33721 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HARDDISK",_wrap_ART_HARDDISK_get, _wrap_ART_HARDDISK_set); |
33722 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FLOPPY",_wrap_ART_FLOPPY_get, _wrap_ART_FLOPPY_set); | |
33723 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CDROM",_wrap_ART_CDROM_get, _wrap_ART_CDROM_set); | |
33724 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REMOVABLE",_wrap_ART_REMOVABLE_get, _wrap_ART_REMOVABLE_set); | |
d14a1e28 | 33725 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); |
f78cc896 | 33726 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER_OPEN",_wrap_ART_FOLDER_OPEN_get, _wrap_ART_FOLDER_OPEN_set); |
d14a1e28 RD |
33727 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); |
33728 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
33729 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
33730 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
33731 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
33732 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
33733 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
33734 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
33735 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
33736 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
0c243d93 RD |
33737 | SWIG_addvarlink(SWIG_globals,(char*)"ART_COPY",_wrap_ART_COPY_get, _wrap_ART_COPY_set); |
33738 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CUT",_wrap_ART_CUT_get, _wrap_ART_CUT_set); | |
33739 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PASTE",_wrap_ART_PASTE_get, _wrap_ART_PASTE_set); | |
33740 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DELETE",_wrap_ART_DELETE_get, _wrap_ART_DELETE_set); | |
33741 | SWIG_addvarlink(SWIG_globals,(char*)"ART_UNDO",_wrap_ART_UNDO_get, _wrap_ART_UNDO_set); | |
33742 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REDO",_wrap_ART_REDO_get, _wrap_ART_REDO_set); | |
33743 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUIT",_wrap_ART_QUIT_get, _wrap_ART_QUIT_set); | |
33744 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND",_wrap_ART_FIND_get, _wrap_ART_FIND_set); | |
33745 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FIND_AND_REPLACE",_wrap_ART_FIND_AND_REPLACE_get, _wrap_ART_FIND_AND_REPLACE_set); | |
d14a1e28 RD |
33746 | |
33747 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
33748 | ||
093d3ff1 RD |
33749 | { |
33750 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)(wxCONFIG_USE_LOCAL_FILE))); | |
33751 | } | |
33752 | { | |
33753 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)(wxCONFIG_USE_GLOBAL_FILE))); | |
33754 | } | |
33755 | { | |
33756 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)(wxCONFIG_USE_RELATIVE_PATH))); | |
33757 | } | |
33758 | { | |
33759 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)(wxCONFIG_USE_NO_ESCAPE_CHARACTERS))); | |
33760 | } | |
33761 | { | |
33762 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)(wxConfigBase::Type_Unknown))); | |
33763 | } | |
33764 | { | |
33765 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)(wxConfigBase::Type_String))); | |
33766 | } | |
33767 | { | |
33768 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)(wxConfigBase::Type_Boolean))); | |
33769 | } | |
33770 | { | |
33771 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)(wxConfigBase::Type_Integer))); | |
33772 | } | |
33773 | { | |
33774 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)(wxConfigBase::Type_Float))); | |
33775 | } | |
7557b9b5 RD |
33776 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTimeFormat",_wrap_DefaultDateTimeFormat_get, _wrap_DefaultDateTimeFormat_set); |
33777 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultTimeSpanFormat",_wrap_DefaultTimeSpanFormat_get, _wrap_DefaultTimeSpanFormat_set); | |
093d3ff1 RD |
33778 | { |
33779 | PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)(wxDateTime::Local))); | |
33780 | } | |
33781 | { | |
33782 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)(wxDateTime::GMT_12))); | |
33783 | } | |
33784 | { | |
33785 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)(wxDateTime::GMT_11))); | |
33786 | } | |
33787 | { | |
33788 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)(wxDateTime::GMT_10))); | |
33789 | } | |
33790 | { | |
33791 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)(wxDateTime::GMT_9))); | |
33792 | } | |
33793 | { | |
33794 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)(wxDateTime::GMT_8))); | |
33795 | } | |
33796 | { | |
33797 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)(wxDateTime::GMT_7))); | |
33798 | } | |
33799 | { | |
33800 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)(wxDateTime::GMT_6))); | |
33801 | } | |
33802 | { | |
33803 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)(wxDateTime::GMT_5))); | |
33804 | } | |
33805 | { | |
33806 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)(wxDateTime::GMT_4))); | |
33807 | } | |
33808 | { | |
33809 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)(wxDateTime::GMT_3))); | |
33810 | } | |
33811 | { | |
33812 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)(wxDateTime::GMT_2))); | |
33813 | } | |
33814 | { | |
33815 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)(wxDateTime::GMT_1))); | |
33816 | } | |
33817 | { | |
33818 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)(wxDateTime::GMT0))); | |
33819 | } | |
33820 | { | |
33821 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)(wxDateTime::GMT1))); | |
33822 | } | |
33823 | { | |
33824 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)(wxDateTime::GMT2))); | |
33825 | } | |
33826 | { | |
33827 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)(wxDateTime::GMT3))); | |
33828 | } | |
33829 | { | |
33830 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)(wxDateTime::GMT4))); | |
33831 | } | |
33832 | { | |
33833 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)(wxDateTime::GMT5))); | |
33834 | } | |
33835 | { | |
33836 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)(wxDateTime::GMT6))); | |
33837 | } | |
33838 | { | |
33839 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)(wxDateTime::GMT7))); | |
33840 | } | |
33841 | { | |
33842 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)(wxDateTime::GMT8))); | |
33843 | } | |
33844 | { | |
33845 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)(wxDateTime::GMT9))); | |
33846 | } | |
33847 | { | |
33848 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)(wxDateTime::GMT10))); | |
33849 | } | |
33850 | { | |
33851 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)(wxDateTime::GMT11))); | |
33852 | } | |
33853 | { | |
33854 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)(wxDateTime::GMT12))); | |
33855 | } | |
33856 | { | |
33857 | PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)(wxDateTime::WET))); | |
33858 | } | |
33859 | { | |
33860 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)(wxDateTime::WEST))); | |
33861 | } | |
33862 | { | |
33863 | PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)(wxDateTime::CET))); | |
33864 | } | |
33865 | { | |
33866 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)(wxDateTime::CEST))); | |
33867 | } | |
33868 | { | |
33869 | PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)(wxDateTime::EET))); | |
33870 | } | |
33871 | { | |
33872 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)(wxDateTime::EEST))); | |
33873 | } | |
33874 | { | |
33875 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)(wxDateTime::MSK))); | |
33876 | } | |
33877 | { | |
33878 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)(wxDateTime::MSD))); | |
33879 | } | |
33880 | { | |
33881 | PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)(wxDateTime::AST))); | |
33882 | } | |
33883 | { | |
33884 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)(wxDateTime::ADT))); | |
33885 | } | |
33886 | { | |
33887 | PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)(wxDateTime::EST))); | |
33888 | } | |
33889 | { | |
33890 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)(wxDateTime::EDT))); | |
33891 | } | |
33892 | { | |
33893 | PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)(wxDateTime::CST))); | |
33894 | } | |
33895 | { | |
33896 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)(wxDateTime::CDT))); | |
33897 | } | |
33898 | { | |
33899 | PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)(wxDateTime::MST))); | |
33900 | } | |
33901 | { | |
33902 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)(wxDateTime::MDT))); | |
33903 | } | |
33904 | { | |
33905 | PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)(wxDateTime::PST))); | |
33906 | } | |
33907 | { | |
33908 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)(wxDateTime::PDT))); | |
33909 | } | |
33910 | { | |
33911 | PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)(wxDateTime::HST))); | |
33912 | } | |
33913 | { | |
33914 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)(wxDateTime::AKST))); | |
33915 | } | |
33916 | { | |
33917 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)(wxDateTime::AKDT))); | |
33918 | } | |
33919 | { | |
33920 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)(wxDateTime::A_WST))); | |
33921 | } | |
33922 | { | |
33923 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)(wxDateTime::A_CST))); | |
33924 | } | |
33925 | { | |
33926 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)(wxDateTime::A_EST))); | |
33927 | } | |
33928 | { | |
33929 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)(wxDateTime::A_ESST))); | |
33930 | } | |
33931 | { | |
33932 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)(wxDateTime::UTC))); | |
33933 | } | |
33934 | { | |
33935 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)(wxDateTime::Gregorian))); | |
33936 | } | |
33937 | { | |
33938 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)(wxDateTime::Julian))); | |
33939 | } | |
33940 | { | |
33941 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)(wxDateTime::Gr_Unknown))); | |
33942 | } | |
33943 | { | |
33944 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)(wxDateTime::Gr_Standard))); | |
33945 | } | |
33946 | { | |
33947 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)(wxDateTime::Gr_Alaska))); | |
33948 | } | |
33949 | { | |
33950 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)(wxDateTime::Gr_Albania))); | |
33951 | } | |
33952 | { | |
33953 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)(wxDateTime::Gr_Austria))); | |
33954 | } | |
33955 | { | |
33956 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)(wxDateTime::Gr_Austria_Brixen))); | |
33957 | } | |
33958 | { | |
33959 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)(wxDateTime::Gr_Austria_Salzburg))); | |
33960 | } | |
33961 | { | |
33962 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)(wxDateTime::Gr_Austria_Tyrol))); | |
33963 | } | |
33964 | { | |
33965 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)(wxDateTime::Gr_Austria_Carinthia))); | |
33966 | } | |
33967 | { | |
33968 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)(wxDateTime::Gr_Austria_Styria))); | |
33969 | } | |
33970 | { | |
33971 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)(wxDateTime::Gr_Belgium))); | |
33972 | } | |
33973 | { | |
33974 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)(wxDateTime::Gr_Bulgaria))); | |
33975 | } | |
33976 | { | |
33977 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)(wxDateTime::Gr_Bulgaria_1))); | |
33978 | } | |
33979 | { | |
33980 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)(wxDateTime::Gr_Bulgaria_2))); | |
33981 | } | |
33982 | { | |
33983 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)(wxDateTime::Gr_Bulgaria_3))); | |
33984 | } | |
33985 | { | |
33986 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)(wxDateTime::Gr_Canada))); | |
33987 | } | |
33988 | { | |
33989 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)(wxDateTime::Gr_China))); | |
33990 | } | |
33991 | { | |
33992 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)(wxDateTime::Gr_China_1))); | |
33993 | } | |
33994 | { | |
33995 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)(wxDateTime::Gr_China_2))); | |
33996 | } | |
33997 | { | |
33998 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)(wxDateTime::Gr_Czechoslovakia))); | |
33999 | } | |
34000 | { | |
34001 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)(wxDateTime::Gr_Denmark))); | |
34002 | } | |
34003 | { | |
34004 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)(wxDateTime::Gr_Egypt))); | |
34005 | } | |
34006 | { | |
34007 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)(wxDateTime::Gr_Estonia))); | |
34008 | } | |
34009 | { | |
34010 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)(wxDateTime::Gr_Finland))); | |
34011 | } | |
34012 | { | |
34013 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)(wxDateTime::Gr_France))); | |
34014 | } | |
34015 | { | |
34016 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)(wxDateTime::Gr_France_Alsace))); | |
34017 | } | |
34018 | { | |
34019 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)(wxDateTime::Gr_France_Lorraine))); | |
34020 | } | |
34021 | { | |
34022 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)(wxDateTime::Gr_France_Strasbourg))); | |
34023 | } | |
34024 | { | |
34025 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)(wxDateTime::Gr_Germany))); | |
34026 | } | |
34027 | { | |
34028 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)(wxDateTime::Gr_Germany_Catholic))); | |
34029 | } | |
34030 | { | |
34031 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)(wxDateTime::Gr_Germany_Prussia))); | |
34032 | } | |
34033 | { | |
34034 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)(wxDateTime::Gr_Germany_Protestant))); | |
34035 | } | |
34036 | { | |
34037 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)(wxDateTime::Gr_GreatBritain))); | |
34038 | } | |
34039 | { | |
34040 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)(wxDateTime::Gr_Greece))); | |
34041 | } | |
34042 | { | |
34043 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)(wxDateTime::Gr_Hungary))); | |
34044 | } | |
34045 | { | |
34046 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)(wxDateTime::Gr_Ireland))); | |
34047 | } | |
34048 | { | |
34049 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)(wxDateTime::Gr_Italy))); | |
34050 | } | |
34051 | { | |
34052 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)(wxDateTime::Gr_Japan))); | |
34053 | } | |
34054 | { | |
34055 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)(wxDateTime::Gr_Japan_1))); | |
34056 | } | |
34057 | { | |
34058 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)(wxDateTime::Gr_Japan_2))); | |
34059 | } | |
34060 | { | |
34061 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)(wxDateTime::Gr_Japan_3))); | |
34062 | } | |
34063 | { | |
34064 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)(wxDateTime::Gr_Latvia))); | |
34065 | } | |
34066 | { | |
34067 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)(wxDateTime::Gr_Lithuania))); | |
34068 | } | |
34069 | { | |
34070 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)(wxDateTime::Gr_Luxemburg))); | |
34071 | } | |
34072 | { | |
34073 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)(wxDateTime::Gr_Netherlands))); | |
34074 | } | |
34075 | { | |
34076 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)(wxDateTime::Gr_Netherlands_Groningen))); | |
34077 | } | |
34078 | { | |
34079 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)(wxDateTime::Gr_Netherlands_Gelderland))); | |
34080 | } | |
34081 | { | |
34082 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)(wxDateTime::Gr_Netherlands_Utrecht))); | |
34083 | } | |
34084 | { | |
34085 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)(wxDateTime::Gr_Netherlands_Friesland))); | |
34086 | } | |
34087 | { | |
34088 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)(wxDateTime::Gr_Norway))); | |
34089 | } | |
34090 | { | |
34091 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)(wxDateTime::Gr_Poland))); | |
34092 | } | |
34093 | { | |
34094 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)(wxDateTime::Gr_Portugal))); | |
34095 | } | |
34096 | { | |
34097 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)(wxDateTime::Gr_Romania))); | |
34098 | } | |
34099 | { | |
34100 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)(wxDateTime::Gr_Russia))); | |
34101 | } | |
34102 | { | |
34103 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)(wxDateTime::Gr_Scotland))); | |
34104 | } | |
34105 | { | |
34106 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)(wxDateTime::Gr_Spain))); | |
34107 | } | |
34108 | { | |
34109 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)(wxDateTime::Gr_Sweden))); | |
34110 | } | |
34111 | { | |
34112 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)(wxDateTime::Gr_Switzerland))); | |
34113 | } | |
34114 | { | |
34115 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)(wxDateTime::Gr_Switzerland_Catholic))); | |
34116 | } | |
34117 | { | |
34118 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)(wxDateTime::Gr_Switzerland_Protestant))); | |
34119 | } | |
34120 | { | |
34121 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)(wxDateTime::Gr_Turkey))); | |
34122 | } | |
34123 | { | |
34124 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)(wxDateTime::Gr_USA))); | |
34125 | } | |
34126 | { | |
34127 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)(wxDateTime::Gr_Wales))); | |
34128 | } | |
34129 | { | |
34130 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)(wxDateTime::Gr_Yugoslavia))); | |
34131 | } | |
34132 | { | |
34133 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)(wxDateTime::Country_Unknown))); | |
34134 | } | |
34135 | { | |
34136 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)(wxDateTime::Country_Default))); | |
34137 | } | |
34138 | { | |
34139 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)(wxDateTime::Country_WesternEurope_Start))); | |
34140 | } | |
34141 | { | |
34142 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)(wxDateTime::Country_EEC))); | |
34143 | } | |
34144 | { | |
34145 | PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)(wxDateTime::France))); | |
34146 | } | |
34147 | { | |
34148 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)(wxDateTime::Germany))); | |
34149 | } | |
34150 | { | |
34151 | PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)(wxDateTime::UK))); | |
34152 | } | |
34153 | { | |
34154 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)(wxDateTime::Country_WesternEurope_End))); | |
34155 | } | |
34156 | { | |
34157 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)(wxDateTime::Russia))); | |
34158 | } | |
34159 | { | |
34160 | PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)(wxDateTime::USA))); | |
34161 | } | |
34162 | { | |
34163 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)(wxDateTime::Jan))); | |
34164 | } | |
34165 | { | |
34166 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)(wxDateTime::Feb))); | |
34167 | } | |
34168 | { | |
34169 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)(wxDateTime::Mar))); | |
34170 | } | |
34171 | { | |
34172 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)(wxDateTime::Apr))); | |
34173 | } | |
34174 | { | |
34175 | PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)(wxDateTime::May))); | |
34176 | } | |
34177 | { | |
34178 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)(wxDateTime::Jun))); | |
34179 | } | |
34180 | { | |
34181 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)(wxDateTime::Jul))); | |
34182 | } | |
34183 | { | |
34184 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)(wxDateTime::Aug))); | |
34185 | } | |
34186 | { | |
34187 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)(wxDateTime::Sep))); | |
34188 | } | |
34189 | { | |
34190 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)(wxDateTime::Oct))); | |
34191 | } | |
34192 | { | |
34193 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)(wxDateTime::Nov))); | |
34194 | } | |
34195 | { | |
34196 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)(wxDateTime::Dec))); | |
34197 | } | |
34198 | { | |
34199 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)(wxDateTime::Inv_Month))); | |
34200 | } | |
34201 | { | |
34202 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)(wxDateTime::Sun))); | |
34203 | } | |
34204 | { | |
34205 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)(wxDateTime::Mon))); | |
34206 | } | |
34207 | { | |
34208 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)(wxDateTime::Tue))); | |
34209 | } | |
34210 | { | |
34211 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)(wxDateTime::Wed))); | |
34212 | } | |
34213 | { | |
34214 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)(wxDateTime::Thu))); | |
34215 | } | |
34216 | { | |
34217 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)(wxDateTime::Fri))); | |
34218 | } | |
34219 | { | |
34220 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)(wxDateTime::Sat))); | |
34221 | } | |
34222 | { | |
34223 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)(wxDateTime::Inv_WeekDay))); | |
34224 | } | |
34225 | { | |
34226 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)(wxDateTime::Inv_Year))); | |
34227 | } | |
34228 | { | |
34229 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)(wxDateTime::Name_Full))); | |
34230 | } | |
34231 | { | |
34232 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)(wxDateTime::Name_Abbr))); | |
34233 | } | |
34234 | { | |
34235 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)(wxDateTime::Default_First))); | |
34236 | } | |
34237 | { | |
34238 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)(wxDateTime::Monday_First))); | |
34239 | } | |
34240 | { | |
34241 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)(wxDateTime::Sunday_First))); | |
34242 | } | |
34243 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); | |
34244 | { | |
34245 | PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)(wxDF_INVALID))); | |
34246 | } | |
34247 | { | |
34248 | PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)(wxDF_TEXT))); | |
34249 | } | |
34250 | { | |
34251 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)(wxDF_BITMAP))); | |
34252 | } | |
34253 | { | |
34254 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)(wxDF_METAFILE))); | |
34255 | } | |
34256 | { | |
34257 | PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)(wxDF_SYLK))); | |
34258 | } | |
34259 | { | |
34260 | PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)(wxDF_DIF))); | |
34261 | } | |
34262 | { | |
34263 | PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)(wxDF_TIFF))); | |
34264 | } | |
34265 | { | |
34266 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)(wxDF_OEMTEXT))); | |
34267 | } | |
34268 | { | |
34269 | PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)(wxDF_DIB))); | |
34270 | } | |
34271 | { | |
34272 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)(wxDF_PALETTE))); | |
34273 | } | |
34274 | { | |
34275 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)(wxDF_PENDATA))); | |
34276 | } | |
34277 | { | |
34278 | PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)(wxDF_RIFF))); | |
34279 | } | |
34280 | { | |
34281 | PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)(wxDF_WAVE))); | |
34282 | } | |
34283 | { | |
34284 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)(wxDF_UNICODETEXT))); | |
34285 | } | |
34286 | { | |
34287 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)(wxDF_ENHMETAFILE))); | |
34288 | } | |
34289 | { | |
34290 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)(wxDF_FILENAME))); | |
34291 | } | |
34292 | { | |
34293 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)(wxDF_LOCALE))); | |
34294 | } | |
34295 | { | |
34296 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)(wxDF_PRIVATE))); | |
34297 | } | |
34298 | { | |
34299 | PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)(wxDF_HTML))); | |
34300 | } | |
34301 | { | |
34302 | PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)(wxDF_MAX))); | |
34303 | } | |
34304 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
34305 | { | |
34306 | PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)(wxDataObject::Get))); | |
34307 | } | |
34308 | { | |
34309 | PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)(wxDataObject::Set))); | |
34310 | } | |
34311 | { | |
34312 | PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)(wxDataObject::Both))); | |
34313 | } | |
34314 | { | |
34315 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)(wxDrag_CopyOnly))); | |
34316 | } | |
34317 | { | |
34318 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)(wxDrag_AllowMove))); | |
34319 | } | |
34320 | { | |
34321 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)(wxDrag_DefaultMove))); | |
34322 | } | |
34323 | { | |
34324 | PyDict_SetItemString(d,"DragError", SWIG_From_int((int)(wxDragError))); | |
34325 | } | |
34326 | { | |
34327 | PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)(wxDragNone))); | |
34328 | } | |
34329 | { | |
34330 | PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)(wxDragCopy))); | |
34331 | } | |
34332 | { | |
34333 | PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)(wxDragMove))); | |
34334 | } | |
34335 | { | |
34336 | PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)(wxDragLink))); | |
34337 | } | |
34338 | { | |
34339 | PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)(wxDragCancel))); | |
34340 | } | |
d14a1e28 RD |
34341 | |
34342 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
34343 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
34344 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
34345 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
34346 | ||
4276dc52 | 34347 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
d14a1e28 RD |
34348 | } |
34349 |